/* ============================================================
   shared.css — WOLF
   Upvising's base theme: design tokens and site chrome
   (header, footer, mobile menu, side panel).

   Token names are semantic, not brand names: a site changes the
   values, never the variable names. Every value below is editable
   under WOLF → Theme Settings and printed back as an override on
   these same variables — so per-client colour lives in the
   database, not in this file.

   The shipped values are Step Rental Japan's.
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  /* -- Palette -- */
  --wolf-accent:        #FD661E;  /* the one accent: links, buttons, hovers */
  --wolf-accent-hover:  #E45410;
  /* Surfaces and ink are separate tokens even though they ship the same
     value. They are not the same job: one is a background you can make light,
     the other is text that has to stay readable on a white page. Merging them
     means a light footer silently turns the body copy and the inner-page
     navigation invisible. */
  --wolf-dark:          #181D4E;  /* dark surfaces: footer, dropdowns, back-to-top */
  --wolf-ink:           #181D4E;  /* text on light: body, headings, side panel     */
  --wolf-dark-sticky:   #171C4B;  /* sticky header bar                      */
  --wolf-dark-menu:     #141841;  /* mobile menu ground                     */
  --wolf-pill-bg:       #0A0C1F;  /* language pill                          */
  --wolf-panel-bg:      #F5F6FA;  /* side panel ground                      */
  --wolf-on-dark:       #F8F8F8;  /* primary text on dark surfaces          */
  --wolf-on-dark-muted: #B5B6C5;  /* secondary text on dark surfaces        */

  /* -- Type --
     The display face may be an Adobe Fonts (Typekit) family, which loads only
     when a kit URL is set in Theme Settings. The second family is the
     Google-served stand-in, then the platform CJK faces so Japanese and
     Traditional Chinese never hit tofu. */
  --font-display: 'termina', 'Saira', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-body:    'DM Sans', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;

  /* -- Chrome metrics --
     Editable under WOLF → Theme Settings → Sizes. */
  --container: 1320px;
  --content-pad-max: 88px;       /* ceiling of the .content-area clamp */
  --header-gutter: clamp(20px, 5.5vw, 100px);
  --header-height: 124px;        /* resting, over the hero */
  --header-height-stuck: 88px;   /* after scroll           */
  --header-height-mobile: 78px;
  --header-solid-bg: #FFFFFF;    /* header ground on inner pages */
  --logo-height: 40px;           /* resting header */
  --logo-height-stuck: 34px;     /* after scroll   */
  --logo-height-mobile: 22px;    /* mobile header and mobile menu */
  --nav-font-size: 14px;
  --mobile-nav-size: 20px;
  --footer-cta-size: 47px;       /* largest size; scales down fluidly */
  --footer-nav-size: 14px;
  --footer-legal-size: 16px;
  --footer-legal-weight: 400;

  /* -- Neutrals & effects -- */
  --bg: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-dark: var(--wolf-dark);
  --dark: var(--wolf-dark);
  --text: var(--wolf-ink);
  --text-light: #5F5F65;
  --text-muted: #8A8B9B;
  --border: #E4E5EE;
  --border-light: #F0F1F6;
  --shadow: 0 2px 8px rgba(24, 29, 78, 0.08);
  --shadow-md: 0 4px 16px rgba(24, 29, 78, 0.12);
  --shadow-lg: 0 8px 32px rgba(24, 29, 78, 0.18);
  --radius: 4px;
  --radius-sm: 4px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --transition: all 0.25s ease;
  --footer-bg: var(--wolf-dark);

  /* Aliases kept because the per-language font override writes to these
     names as well — see wolf_language_font_css() in functions.php. */
  --font-serif: var(--font-display);
  --font-sans: var(--font-body);
}

/* Per-language fonts are injected inline by the theme (wolf_language_font_css)
   from GoTran's per-language font config — see functions.php. */
/* ============================================================
   2. CSS RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
/* No !important on the html margin: WordPress sets `html { margin-top: 32px }`
   to clear the admin bar, and an !important reset here would silently break
   that for every logged-in editor. */
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
p { margin: 0 0 1em; overflow: visible; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 72px) 0; }
.section-lg { padding: clamp(80px, 10vw, 120px) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; } .mt-5 { margin-top: 40px; } .mt-6 { margin-top: 48px; }
.mt-7 { margin-top: 56px; } .mt-8 { margin-top: 64px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 40px; } .mb-6 { margin-bottom: 48px; }
.pt-1 { padding-top: 8px; } .pt-2 { padding-top: 16px; } .pt-3 { padding-top: 24px; }
.pt-4 { padding-top: 32px; } .pt-6 { padding-top: 48px; } .pt-8 { padding-top: 64px; }
.pb-1 { padding-bottom: 8px; } .pb-2 { padding-bottom: 16px; } .pb-3 { padding-bottom: 24px; }
.pb-4 { padding-bottom: 32px; } .pb-6 { padding-bottom: 48px; } .pb-8 { padding-bottom: 64px; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--wolf-ink); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
h4 { font-size: 1rem; font-weight: 600; line-height: 1.4; }

.lead { font-size: 1.125rem; color: var(--text-light); line-height: 1.7; }

/* ============================================================
   CHROME TYPOGRAPHY IS PINNED
   ------------------------------------------------------------
   Several chrome selectors below repeat their own class —
   `.footer-cta.footer-cta`, `.nav-link.nav-link`. That is
   deliberate, not a typo.

   Elementor's Site Settings → Theme Style writes
   `.elementor-kit-{id} h2` and `.elementor-kit-{id} a`
   (specificity 0-1-1) onto the body class, and its stylesheet
   loads after this one. A plain single-class rule (0-1-0) would
   lose, so setting a global H2 in Elementor would silently
   resize the footer sign-off and the two 19px headings — and
   make the "Footer sign-off size" setting look broken.

   Repeating the class lifts these to 0-2-x without changing
   which elements they match, which an ancestor prefix would:
   .nav-link legitimately appears in the header, the mobile
   menu, the side panel and the footer.

   Scope is deliberate: only the chrome is pinned. Content
   headings (.entry-title, .entry-content h2…) are left free, so
   Theme Style still governs page typography as it should.
   ============================================================ */

/* ============================================================
   5. SITE HEADER
   ------------------------------------------------------------
   Two resting schemes, one sticky state:

     .site-header--overlay  transparent, light text — sits over a
                            dark hero (front page).
     .site-header--solid    white ground, navy text — every other
                            page.
     .is-stuck              navy bar, light text, shorter. Applies
                            to both schemes once the page scrolls.
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  /* The header is position:fixed, so the height change is contained to its
     own subtree and cannot reflow the page. It flips once per scroll state,
     not per frame. */
  transition: height 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

/* Scheme: text/icon colour is driven by one variable per state. */
.site-header--overlay { --header-ink: var(--wolf-on-dark); }
.site-header--solid   { --header-ink: var(--wolf-ink); background: var(--header-solid-bg); }
.site-header.is-stuck {
  --header-ink: var(--wolf-on-dark);
  height: var(--header-height-stuck);
  background: var(--wolf-dark-sticky);
  box-shadow: 0 6px 28px rgba(10, 12, 31, 0.28);
}

/* Slide the bar away when scrolling down, bring it back on the way up. */
.site-header.is-hidden { transform: translateY(-100%); }

/* Clear the WordPress admin bar for logged-in users. Needed in both positioning
   modes: the bar is fixed, and an absolutely positioned header resolves `top`
   against the initial containing block, which the html margin does not move. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.site-header__inner {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 var(--header-gutter);
}

/* -- Brand ------------------------------------------------- */
.site-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.site-brand__logo {
  display: block;
  width: auto;
  height: var(--logo-height);
  /* No max-width here: with height as the control, a cap would silently win
     for any wide wordmark and make the height setting look broken. The
     1025–1200px rule below is what keeps a large logo off the navigation. */
  object-fit: contain;
  transition: height 0.35s ease;
}
.is-stuck .site-brand__logo { height: var(--logo-height-stuck); }
/* Light logo over dark grounds, navy logo on white. */
.site-header--overlay .site-brand__logo--dark,
.site-header.is-stuck .site-brand__logo--dark,
.site-header--solid:not(.is-stuck) .site-brand__logo--light { display: none; }

/* -- Primary navigation ------------------------------------ */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.8vw, 12px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 13px;
  font-family: var(--font-display);
  font-size: var(--nav-font-size);
  font-weight: 600;
  line-height: 1.5;
  color: var(--header-ink);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--wolf-accent); }
.nav-list .nav-item.is-current > .nav-link.nav-link::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 2px;
  background: currentColor;
}
.nav-arrow {
  width: 8px;
  height: 8px;
  flex: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.7;
  transition: transform 0.25s ease;
}

/* -- Dropdowns (only if a menu item has children) ----------- */
.nav-item--has-children { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--wolf-dark);
  border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(10, 12, 31, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-item--has-children:hover > .dropdown,
.nav-item--has-children:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item--has-children:hover > .nav-link .nav-arrow { transform: translateY(1px) rotate(225deg); }
.dropdown.dropdown a {
  display: block;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--wolf-on-dark-muted);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.dropdown a:hover { color: var(--wolf-on-dark); background: rgba(255, 255, 255, 0.06); }

/* -- Header actions ---------------------------------------- */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

/* Language pill (rendered by the translation plugin, or the fallback below) */
.lang-pill.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--wolf-pill-bg);
  color: var(--wolf-on-dark);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-pill:hover { background: var(--wolf-accent); color: var(--wolf-on-dark); }
.lang-pill__chevron {
  width: 7px;
  height: 7px;
  flex: none;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--wolf-dark);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(10, 12, 31, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 5;
}
.lang-switcher { position: relative; }
.lang-switcher.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu.lang-menu a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--wolf-on-dark-muted);
  text-decoration: none;
}
.lang-menu a:hover,
.lang-menu [aria-current='true'] { color: var(--wolf-on-dark); background: rgba(255, 255, 255, 0.06); }

/* Panel toggle — the 2×2 grid mark */
.panel-toggle,
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--header-ink);
  cursor: pointer;
  transition: color 0.2s ease;
}
.panel-toggle:hover,
.burger:hover { color: var(--wolf-accent); }
.panel-toggle__grid {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  gap: 4px;
}
.panel-toggle__grid span {
  display: block;
  width: 9px;
  height: 9px;
  background: currentColor;
}

/* Hamburger */
.burger { display: none; flex-direction: column; gap: 5px; }
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -- Content offset ----------------------------------------
   Overlay pages let the hero run under the header; every other
   page is pushed clear of the fixed bar. */
body.has-solid-header .site-main { padding-top: var(--header-height); }

/* Give a longer menu room before the burger takes over. */
@media (min-width: 1025px) and (max-width: 1200px) {
  /* min(): honour the configured height, but never let the logo grow past the
     point where it would crowd the navigation at this width. */
  .site-brand__logo { height: min(var(--logo-height), 32px); }
  .is-stuck .site-brand__logo { height: min(var(--logo-height-stuck), 30px); }
  .nav-link { padding: 12px 9px; }
}

@media (max-width: 1024px) {
  /* The bar scrolls away with the page below the desktop breakpoint, matching
     the live site — there is no sticky variant on phones or tablets. */
  .site-header { position: absolute; height: var(--header-height-mobile); }
  .site-header.is-stuck { height: var(--header-height-mobile); }
  .site-header__inner { grid-template-columns: auto 1fr; }
  .site-brand__logo,
  .is-stuck .site-brand__logo { height: var(--logo-height-mobile); max-width: 190px; }
  .site-nav { display: none; }
  .panel-toggle { display: none; }
  .burger { display: inline-flex; }
  body.has-solid-header .site-main { padding-top: var(--header-height-mobile); }
}

/* ============================================================
   5b. MOBILE MENU — full-screen overlay
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  background: var(--wolf-dark-menu);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height-mobile);
  padding: 0 clamp(20px, 5vw, 32px);
}
.mobile-menu__bar .site-brand__logo { height: var(--logo-height-mobile); max-width: 190px; }
.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wolf-on-dark);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.mobile-menu__close:hover { color: var(--wolf-accent); transform: rotate(90deg); }
.mobile-menu__close svg { width: 20px; height: 20px; display: block; }
.mobile-menu__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 40px) 48px;
  text-align: center;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-nav-list .nav-link.nav-link {
  justify-content: center;
  padding: 3px 40px;
  font-size: var(--mobile-nav-size);
  line-height: 1.5;
  color: var(--wolf-on-dark-muted);
}
.mobile-nav-list .nav-link:hover { color: var(--wolf-accent); }
.mobile-nav-list .nav-item.is-current > .nav-link { color: var(--wolf-on-dark); }
.mobile-nav-list .nav-item.is-current > .nav-link::after { display: none; }
.mobile-nav-list .dropdown {
  position: static;
  min-width: 0;
  padding: 4px 0 8px;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  display: none;
}
.mobile-nav-list .nav-item--has-children.is-open > .dropdown { display: block; }
.mobile-nav-list .nav-item--has-children.is-open > .nav-link .nav-arrow { transform: translateY(1px) rotate(225deg); }
.mobile-nav-list .dropdown a { text-align: center; font-size: 16px; }
.mobile-menu__divider {
  width: min(320px, 100%);
  height: 1px;
  border: 0;
  margin: 8px 0 0;
  background: rgba(181, 182, 197, 0.25);
  background-color: color-mix(in srgb, var(--wolf-on-dark-muted) 25%, transparent);
}

/* Shared social row (mobile menu + side panel + footer) */
.social-row { display: flex; align-items: center; gap: 20px; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wolf-on-dark-muted);
  transition: color 0.2s ease;
}
.social-row a:hover { color: var(--wolf-accent); }
.social-row svg { width: 17px; height: 17px; display: block; fill: currentColor; }

/* ============================================================
   5c. SIDE PANEL — desktop slide-in
   ============================================================ */
.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(10, 12, 31, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.panel-backdrop.is-open { opacity: 1; visibility: visible; }
.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10003;
  width: min(388px, 92vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px clamp(24px, 3vw, 40px) 40px;
  background: var(--wolf-panel-bg);
  color: var(--wolf-ink);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.4s;
}
.side-panel.is-open { transform: translateX(0); visibility: visible; }
.side-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.side-panel__head .site-brand__logo { height: 30px; max-width: 200px; }
.side-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 47px;
  height: 47px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wolf-accent);
  color: var(--wolf-on-dark);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.side-panel__close:hover { background: var(--wolf-accent-hover); transform: rotate(90deg); }
.side-panel__close svg { width: 16px; height: 16px; display: block; }
/* Optional heading / intro / menu block. Takes the free space so the socials
   and contact blocks stay pinned to the bottom of the panel. */
.side-panel__body { flex: 1 1 auto; }
.side-panel__heading.side-panel__heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--wolf-ink);
}
.side-panel__intro.side-panel__intro {
  margin: 0 0 26px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-light);
}
.side-panel__nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-panel__nav-list .nav-link.nav-link {
  padding: 7px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--wolf-ink);
}
.side-panel__nav-list .nav-link:hover { color: var(--wolf-accent); }
.side-panel__nav-list .is-current > .nav-link { color: var(--wolf-accent); }

.side-panel__socials {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: auto;
}
.side-panel__socials.side-panel__socials a {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--wolf-ink);
  font-family: var(--font-body);
  font-size: 17px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.side-panel__socials a:hover { color: var(--wolf-accent); }
.side-panel__socials svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.side-panel__contact {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(24, 29, 78, 0.12);
}
.side-panel__phone.side-panel__phone {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--wolf-ink);
  text-decoration: none;
}
.side-panel__phone:hover { color: var(--wolf-accent); }
.side-panel__email.side-panel__email {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--wolf-accent);
  text-decoration: none;
}
.side-panel__email:hover { text-decoration: underline; }

/* Lock the page behind an open overlay */
body.is-locked { overflow: hidden; }

/* Admin bar again: the overlays are full-viewport and would otherwise put
   their own close buttons underneath it. */
.admin-bar .mobile-menu { top: 32px; }
.admin-bar .side-panel { top: 32px; height: calc(100% - 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .mobile-menu { top: 46px; }
  .admin-bar .side-panel { top: 46px; height: calc(100% - 46px); }
}
/* ============================================================
   18. SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--wolf-dark);
  color: var(--wolf-on-dark-muted);
  font-family: var(--font-body);
  font-size: 16px;
}
.site-footer a { color: inherit; text-decoration: none; }

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) clamp(20px, 4vw, 40px) clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

/* -- Column 1: the sign-off line -- */
.footer-cta.footer-cta {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.3vw, var(--footer-cta-size));
  font-weight: 600;
  line-height: 1.02;
  color: var(--wolf-on-dark);
}

/* -- Column 2: menu --
   Two lists when a second footer menu is assigned, one when it is not. The
   split is on the nav rather than on the lists so a single menu keeps its
   full column width instead of sitting in half of one. */
.footer-nav--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(16px, 2vw, 32px);
}
.footer-nav--split .lang-switcher { grid-column: 1 / -1; }

.footer-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav-list.footer-nav-list a {
  display: inline-block;
  padding: 3.5px 0;
  font-family: var(--font-display);
  font-size: var(--footer-nav-size);
  line-height: 1.5;
  transition: color 0.2s ease;
}
.footer-nav-list a:hover { color: var(--wolf-accent); }
.footer-nav-list .is-current > a { color: var(--wolf-accent); }
.site-footer .lang-switcher { margin-top: 18px; }

/* -- Column 3: contact -- */
.footer-heading.footer-heading {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--wolf-on-dark);
}
.footer-email.footer-email {
  display: block;
  width: fit-content;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--wolf-on-dark-muted);
  border-bottom: 1px solid rgba(181, 182, 197, 0.5);
  border-bottom-color: color-mix(in srgb, var(--wolf-on-dark-muted) 50%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-email:hover { color: var(--wolf-accent); border-color: var(--wolf-accent); }
.footer-phone.footer-phone {
  display: block;
  width: fit-content;
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  color: var(--wolf-on-dark);
  transition: color 0.2s ease;
}
.footer-phone:hover { color: var(--wolf-accent); }
.footer-socials { margin-top: 30px; gap: 12px; }
.footer-socials a {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(181, 182, 197, 0.35);
  border-color: color-mix(in srgb, var(--wolf-on-dark-muted) 35%, transparent);
  border-radius: 50%;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.footer-socials a:hover { color: var(--wolf-on-dark); border-color: var(--wolf-accent); background: var(--wolf-accent); }

/* -- Legal bar -- */
.footer-bottom.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px clamp(20px, 4vw, 40px) 34px;
  border-top: 1px solid rgba(181, 182, 197, 0.22);
  border-top-color: color-mix(in srgb, var(--wolf-on-dark-muted) 22%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: var(--footer-legal-size);
  font-weight: var(--footer-legal-weight);
}
.footer-bottom.footer-bottom a {
  font-family: var(--font-body);
  font-size: inherit;
  transition: color 0.2s ease;
}
.footer-bottom a:hover { color: var(--wolf-accent); }
.footer-sep { padding: 0 4px; opacity: 0.6; }

/* -- Back to top -- */
.to-top {
  position: fixed;
  right: 34px;
  bottom: 34px;
  z-index: 8500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  /* Derived from the text colour, not a fixed white: the background is
     configurable, so a light footer palette would otherwise leave a white
     arrow on a white button. The rgba line is the fallback for browsers
     without color-mix(). */
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-color: color-mix(in srgb, var(--wolf-on-dark) 20%, transparent);
  background: var(--wolf-dark);
  color: var(--wolf-on-dark);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--wolf-accent); }
.to-top svg { width: 16px; height: 16px; display: block; }

@media (max-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px clamp(24px, 4vw, 48px); }
  .footer-cta { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 36px; }
  /* A shade smaller on a phone, derived from the setting rather than fixed:
     a shop that raised the legal bar to 20px meant it everywhere. */
  .footer-bottom { justify-content: flex-start; padding-bottom: 40px; font-size: calc(var(--footer-legal-size) - 1px); }
  .footer-nav--split { grid-template-columns: minmax(0, 1fr); }
  .to-top { right: 20px; bottom: 20px; }
}

/* ============================================================
   19. BUTTONS
   ============================================================ */
.btn,
.wp-block-button__link,
input[type='submit'],
button[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--wolf-accent);
  color: var(--wolf-on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover,
.wp-block-button__link:hover,
input[type='submit']:hover,
button[type='submit']:hover { background: var(--wolf-accent-hover); color: var(--wolf-on-dark); }
.btn--outline {
  background: transparent;
  border-color: var(--wolf-ink);
  color: var(--wolf-ink);
}
.btn--outline:hover { background: var(--wolf-dark); border-color: var(--wolf-dark); color: var(--wolf-on-dark); }
.btn--sm { padding: 10px 22px; font-size: 14px; }

/* ============================================================
   20. FORMS
   ============================================================ */
.form-control,
input[type='text'],
input[type='email'],
input[type='url'],
input[type='tel'],
input[type='number'],
input[type='date'],
input[type='search'],
input[type='password'],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--wolf-accent);
  box-shadow: 0 0 0 3px rgba(253, 102, 30, 0.16);
}
textarea { min-height: 140px; resize: vertical; }
label { display: inline-block; margin-bottom: 6px; font-size: 15px; font-weight: 500; }

/* ============================================================
   21. CONTENT — posts, pages and archives
   ------------------------------------------------------------
   Elementor renders its own markup, so these styles only matter
   for content WordPress outputs itself: the blog, search results,
   and any page not built in Elementor.
   ============================================================ */
.content-area {
  max-width: var(--container);
  margin: 0 auto;
  /* Fluid, and it stays fluid: the setting tunes only the ceiling.
     --content-pad-max is written by inc/dynamic-css.php as html:root
     (0-1-1) when it differs from the shipped 88px. NEVER re-point a
     settings-written variable from a :root media query in this file —
     :root is 0-1-0 and loses to that block at every width, so the media
     query would be silently dead. A clamp() needs no media query anyway. */
  padding: clamp(40px, 6vw, var(--content-pad-max)) clamp(20px, 4vw, 40px);
}
.content-area--narrow { max-width: 780px; }

/* Second wrapper stacked directly under the first — page.php opens one for
   comments. Without this the seam pays the vertical pad twice, plus
   .comments-area's own clamp(40px, 6vw, 72px). */
.content-area--attached { padding-top: 0; }

.entry-header { margin-bottom: 32px; }
/* Title present for assistive tech only: no visible box, so no gap. */
.entry-header--bare { margin-bottom: 0; }
.entry-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--wolf-ink);
}
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--wolf-accent); }
.entry-meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}
.entry-meta a { color: inherit; }
.entry-meta a:hover { color: var(--wolf-accent); }

/* Sibling of .entry-content, so the `> * + *` rhythm below cannot reach it.
   Matches .entry-header's step. */
.entry-thumb { margin: 0 0 32px; }

.entry-content { font-size: 17px; line-height: 1.75; color: var(--text-light); }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.8em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--wolf-ink);
}
.entry-content h2 { font-size: clamp(22px, 2.6vw, 30px); }
.entry-content h3 { font-size: clamp(19px, 2.2vw, 24px); }
.entry-content h4 { font-size: 18px; }
.entry-content a { color: var(--wolf-accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--wolf-accent-hover); }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote {
  margin-left: 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--border);
  font-size: 19px;
  line-height: 1.6;
  color: var(--wolf-ink);
}
.entry-content img,
.entry-content figure { max-width: 100%; height: auto; }
.entry-content figcaption { margin-top: 8px; font-size: 14px; color: var(--text-muted); }
.entry-content code,
.entry-content pre {
  background: var(--border-light);
  border-radius: var(--radius);
  font-size: 15px;
}
.entry-content code { padding: 2px 6px; }
.entry-content pre { padding: 18px 20px; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }

/* Post list */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.post-card__thumb {
  display: block;
  margin-bottom: 18px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--border-light);
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card .entry-title { font-size: 21px; }
.post-card__excerpt { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--text-light); }

/* Pagination */
.wolf-pagination {
  margin-top: clamp(36px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wolf-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--wolf-ink);
  text-decoration: none;
}
.wolf-pagination .page-numbers:hover,
.wolf-pagination .page-numbers.current {
  background: var(--wolf-accent);
  border-color: var(--wolf-accent);
  color: var(--wolf-on-dark);
}

/* Comments */
.comments-area { margin-top: clamp(40px, 6vw, 72px); }
.comments-title,
.comment-reply-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--wolf-ink);
}
.comment-list { margin: 0 0 40px; padding: 0; list-style: none; }
.comment-list li { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.comment-list .children { margin: 24px 0 0 28px; padding: 0; list-style: none; }
.comment-meta { margin-bottom: 8px; font-size: 14px; color: var(--text-muted); }
.comment-form p { margin-bottom: 16px; }

/* Search form */
.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form label { flex: 1; margin: 0; }

/* ============================================================
   22. ACCESSIBILITY & PRINT
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--wolf-accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .mobile-menu,
  .side-panel,
  .panel-backdrop,
  .to-top { display: none !important; }
  body { background: #fff; color: #000; }
  .site-main { padding-top: 0 !important; }
}
