/*
Theme Name: MAVERYK31
Theme URI: https://www.maveryk31.com
Author: MAVERYK31
Description: Custom bilingual theme for MAVERYK31, a car dealership in Gifu, Japan. Built on Underscores conventions, no page builder.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: maveryk31
*/

/* ---------- Fonts ----------
 * Same pairing as reactheme.com/products/wordpress/autodetail/: Oxanium
 * for headings, Manrope for body/nav text. Self-hosted (rather than
 * loaded from Google's CDN) to avoid a third-party request. Both are
 * variable fonts, so one file each covers the whole weight range. Neither
 * covers Japanese glyphs, so the system CJK stack stays as the fallback
 * for JP text -- these only take effect on Latin characters. */
@font-face {
  font-family: "Oxanium";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/oxanium.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --color-bg: #0b0b0c;
  --color-bg-alt: #17171a;
  --color-fg: #f5f5f3;
  --color-fg-muted: #a8a8ad;
  --color-accent: #d62828;
  --color-accent-hover: #ef3b3b;
  --color-border: rgba(245, 245, 243, 0.12);
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Oxanium", var(--font-system);
  --font-body: "Manrope", var(--font-system);
  --container: 1200px;
  --radius: 6px;
  --nav-height: 80px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0 0 1em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--color-border);
  color: var(--color-fg);
}

.btn-outline:hover {
  border-color: var(--color-fg);
  transform: translateY(-2px);
}

/* ---------- Site header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

/* Transparent over the hero until scrolled, then solid -- matches
 * vespaclubdavao.com's navbar (no tint/blur at rest, solid + shadow once
 * scrolled). Kept on a pseudo-element rather than directly on
 * .site-header for consistent stacking with the rest of the header. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
}

.site-header.is-scrolled::before {
  background: var(--color-bg);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.site-header .container {
  /* .site-header is itself display:flex, which without this would let
     .container shrink-wrap to its content instead of stretching to its
     max-width -- leaving space-between almost nothing to work with, so
     the logo and nav ended up clustered in the middle instead of at the
     true left/right edges. */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo img {
  /* Natural ratio of maveryk31-logo-header.png (795x222 ≈ 3.581:1) --
     fixed width+height at that exact ratio so the logo scales without
     distortion. */
  width: 150px;
  height: 42px;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-navigation ul:not(.lang-switcher) {
  display: flex;
  gap: 28px;
}

.main-navigation a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  list-style: none;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.lang-switcher li {
  list-style: none;
  line-height: 0;
}

.lang-switcher a,
.lang-switcher span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switcher a:hover {
  color: var(--color-fg);
}

.lang-switcher a:focus-visible,
.lang-switcher span:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.lang-switcher .current-lang a,
.lang-switcher .lang-item-current a,
.lang-switcher .lang-item-current span {
  color: #fff;
  background: var(--color-accent);
}

.lang-switcher .current-lang a:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-fg);
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Slideshow: three photos crossfade in turn, each with a slow Ken-Burns
   zoom-out while active (recipe matched to vespaclubdavao.com's hero). */
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.is-active {
  opacity: 1;
  animation: mvkHeroZoom 7s ease-out forwards;
}

@keyframes mvkHeroZoom {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

.hero-slide-front {
  background-image: url("assets/images/zfront.jpg");
}

.hero-slide-back {
  background-image: url("assets/images/zback.jpg");
}

.hero-slide-ferrari {
  background-image: url("assets/images/zferrari348.jpg");
  background-position: center 68%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(100deg, rgba(11, 11, 12, 0.94) 0%, rgba(11, 11, 12, 0.82) 40%, rgba(11, 11, 12, 0.45) 75%, rgba(11, 11, 12, 0.25) 100%),
    radial-gradient(circle at 82% 78%, rgba(214, 40, 40, 0.16), transparent 50%);
}

@media (max-width: 780px) {
  .hero-overlay {
    background-image:
      linear-gradient(180deg, rgba(11, 11, 12, 0.8) 0%, rgba(11, 11, 12, 0.6) 55%, rgba(11, 11, 12, 0.92) 100%);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
}

.hero-main {
  max-width: 780px;
}

.hero-body {
  margin: 0 0 36px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-fg-muted);
  max-width: 640px;
}

/* ---------- Eyebrow label (used above hero/section headings) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-fg-muted);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--color-accent);
}

.text-accent {
  color: var(--color-accent);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-fg);
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* 3-photo collage background: gauge/engine at reduced opacity flanking
   the full-opacity interior shot in the middle, with a dark scrim on top
   for text legibility. */
.section-collage {
  position: relative;
  overflow: hidden;
}

.collage-bg {
  position: absolute;
  inset: 0;
  display: flex;
}

.collage-photo {
  flex: 1;
  background-size: cover;
  background-position: center;
}

.collage-photo-shop2 {
  background-image: url("assets/images/shop2.jpg");
  opacity: 0.65;
}

.collage-photo-gauge {
  background-image: url("assets/images/gauge.jpg");
  opacity: 1;
}

.collage-photo-engine {
  background-image: url("assets/images/engine.jpg");
  opacity: 0.65;
}

.section-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.55);
}

.section-collage .container {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--color-fg-muted);
}

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
}

.service-card-number {
  position: absolute;
  top: -6px;
  right: 16px;
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-fg);
  opacity: 0.1;
  pointer-events: none;
}

.service-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 1;
}

.service-card-coming-soon {
  opacity: 0.7;
}

.service-card-coming-soon:hover {
  opacity: 1;
}

.service-card-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(214, 40, 40, 0.14);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-fg-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  position: relative;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  margin: 0;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 20px;
  font-size: 3.5rem;
  font-weight: 900;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--color-accent);
  opacity: 0.25;
  line-height: 1;
}

.testimonial-card blockquote {
  position: relative;
  margin: 20px 0 20px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-fg);
}

.testimonial-card figcaption {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.why-card {
  text-align: center;
  padding: 8px;
}

.why-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(214, 40, 40, 0.14);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--color-fg-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-accent);
}

.cta-banner-inner {
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 640px;
}

.btn-banner {
  background: #fff;
  color: var(--color-accent);
  white-space: nowrap;
}

.btn-banner:hover {
  background: var(--color-bg);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Real results (before/after) ---------- */
.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 56px;
  align-items: center;
}

.results-copy .section-eyebrow {
  margin-bottom: 18px;
}

.results-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.results-copy p {
  color: var(--color-fg-muted);
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .results-layout {
    grid-template-columns: 1fr;
  }
}

.ba-slider {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 560px;
  overflow: hidden;
  border-radius: var(--radius);
  user-select: none;
  cursor: ew-resize;
  border: 1px solid var(--color-border);
}

.ba-slider-after,
.ba-slider-before {
  position: absolute;
  inset: 0;
}

.ba-slider-before {
  clip-path: inset(0 50% 0 0);
}

.ba-slider-after img,
.ba-slider-before img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider-label {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.7);
  color: var(--color-fg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-slider-label-before {
  left: 16px;
}

.ba-slider-label-after {
  right: 16px;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  border: none;
  padding: 0;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.ba-slider-handle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  letter-spacing: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ---------- Company profile / store info ---------- */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 720px;
}

.profile-table tr {
  border-bottom: 1px solid var(--color-border);
}

.profile-table th,
.profile-table td {
  text-align: left;
  padding: 16px 12px 16px 0;
  vertical-align: top;
}

.profile-table th {
  width: 180px;
  color: var(--color-fg-muted);
  font-weight: 600;
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 64px;
}

.contact-form-wrap .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 20px;
}

.contact-form-wrap label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea {
  width: 100%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--color-fg);
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form-wrap .wpcf7-submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form-wrap .wpcf7-submit:hover {
  background: var(--color-accent-hover);
}

.contact-form-wrap .wpcf7-not-valid-tip {
  color: var(--color-accent);
  font-size: 0.82rem;
  margin-top: 4px;
}

.contact-form-wrap .wpcf7-response-output {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  padding: 160px 0 60px;
  border-bottom: 1px solid var(--color-border);
}

.page-banner .section-eyebrow {
  margin-bottom: 14px;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Photo variant: same dark gradient overlay recipe as .hero, for a
   consistent look across every full-bleed photo section on the site.
   The photo lives on its own ::before layer (separate from the ::after
   gradient) so its opacity can be tuned per-variant without fading the
   gradient or the heading text above it. */
.page-banner-photo {
  position: relative;
  padding: 200px 0 90px;
  border-bottom: none;
  overflow: hidden;
}

.page-banner-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.page-banner-photo::after {
  /* Flat, uniform scrim for text legibility -- same darkness at every
     point of the photo, no left-to-right or positional falloff. */
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(11, 11, 12, 0.5);
  z-index: 1;
}

.page-banner-photo > .container {
  position: relative;
  z-index: 2;
}

.page-banner-photo-shop::before {
  background-image: url("assets/images/shop1.jpg");
  /* The cars sit low in the source photo; shift the crop down so they
     stay centered in the frame instead of getting cut off at the feet. */
  background-position: center 78%;
  opacity: 0.75;
}

.page-banner-photo-zinside::before {
  background-image: url("assets/images/zinside.jpg");
  opacity: 0.85;
}

.page-banner-photo-zinside::after {
  /* No dimming at all on this photo -- fully remove the shared scrim. */
  background-color: transparent;
}

.page-banner-photo-ferrari::before {
  background-image: url("assets/images/zferrari348.jpg");
  /* Shift the crop further down so more of the ground at the bottom of
     the photo shows, which pushes the two cars up in the frame. */
  background-position: center 90%;
  opacity: 0.75;
}

.about-photo {
  display: block;
  /* Full-bleed breakout: the image lives outside .container in the
     markup, so this just needs to span the viewport regardless of the
     container's own max-width/padding. */
  width: 100vw;
  max-width: 100vw;
  height: auto;
  margin-top: 40px;
  margin-left: calc(50% - 50vw);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
  background: var(--color-bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 56px;
  margin-bottom: 16px;
}

.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-fg-muted);
  margin-bottom: 14px;
}

.footer-grid p,
.footer-grid li {
  color: var(--color-fg-muted);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--color-fg-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Scroll fade-in ----------
 * Content is visible by default so it works with JS disabled and for
 * crawlers that don't simulate scrolling. main.js opts elements into the
 * hidden-until-scrolled state via the .js-fade-in class only once it has
 * confirmed IntersectionObserver support.
 */
.js-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js-fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 780px) {
  :root {
    --nav-height: 68px;
  }

  .site-logo img {
    /* Same 3.581:1 ratio as the desktop rule, scaled down -- no stretch. */
    width: 120px;
    height: 34px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-navigation {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .main-navigation.is-open {
    transform: translateX(0);
  }

  .main-navigation ul:not(.lang-switcher) {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .main-navigation a {
    font-size: 1.1rem;
  }

  .lang-switcher {
    margin-top: 8px;
  }

  .lang-switcher a,
  .lang-switcher span {
    min-width: 44px;
    padding: 9px 14px;
    font-size: 0.75rem;
  }

  .hero {
    min-height: auto;
    padding: 108px 0 64px;
  }

  .section {
    padding: 64px 0;
  }
}
