/* ============================================================
   Martin Electric — stylesheet
   Modern, interactive, smooth UI/UX
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0a1f3c;
  --navy-800: #0f2a4e;
  --navy-700: #143a6b;
  --navy-600: #1b4a86;
  --accent: #fb8e28;
  --accent-strong: #cf6c10;
  --accent-soft: rgba(207, 108, 16, 0.13);
  --text: #1c2a3a;
  --text-soft: #5a6b7d;
  --muted: #9fb3c8;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --line: #e4eaf1;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 14px rgba(15, 37, 64, 0.08);
  --shadow: 0 16px 40px rgba(15, 37, 64, 0.12);
  --shadow-lg: 0 30px 70px rgba(15, 37, 64, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1180px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.15; color: var(--navy-900); font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }
.text-accent { color: var(--accent-strong); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  z-index: 200; transition: width 0.1s linear;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-900); color: #cdd9e6; font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar__right { display: flex; align-items: center; gap: 12px; }
.topbar__item { transition: color 0.2s var(--ease); white-space: nowrap; }
.topbar a.topbar__item:hover { color: var(--accent); }
.topbar__divider { opacity: 0.3; }

/* ---------- Header ---------- */
.header {
  position: static; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(255,255,255,0.95); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 40px; height: 40px; border-radius: 9px; transition: transform 0.4s var(--ease-bounce); }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.06); }
.brand__text { font-family: 'Poppins'; font-weight: 800; font-size: 1.25rem; color: var(--navy-900); letter-spacing: -0.02em; }
.brand__text span { color: var(--accent-strong); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 28px; align-items: center; }
.nav__link {
  position: relative; font-weight: 500; font-size: 0.96rem; color: var(--text-soft);
  padding: 6px 0; transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent-strong); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--navy-900); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  font-family: 'Poppins', sans-serif; overflow: hidden; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn:active { transform: scale(0.96); }

.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: var(--navy-900); box-shadow: 0 10px 24px rgba(207, 108, 16, 0.32); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(207, 108, 16, 0.42); }

.btn--ghost { background: rgba(255,255,255,0.08); color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn--ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-3px); border-color: var(--accent); }

.btn--light { background: var(--white); color: var(--navy-900); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn__phone-icon { animation: wiggle 2.4s ease-in-out infinite; }

/* Ripple */
.ripple { position: relative; }
.ripple .ripple__wave {
  position: absolute; border-radius: 50%; transform: scale(0); pointer-events: none;
  background: rgba(255,255,255,0.5); animation: ripple 0.6s ease-out;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(40px, 6vw, 70px); overflow: hidden; }
.hero__glow {
  position: absolute; top: -25%; right: -10%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(251,142,40,0.16), transparent 65%);
  pointer-events: none; z-index: -1;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 0.84rem; font-weight: 600;
  color: var(--navy-700); background: var(--accent-soft); padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(207, 108, 16, 0.25); margin-bottom: 22px;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 0 rgba(207,108,16,0.6); animation: pulse 2s infinite; }

.hero__title { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 18px; }
.hero__subtitle { font-size: 1.12rem; color: var(--text-soft); max-width: 520px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__rating { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--text-soft); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; }

.hero__media { position: relative; }
.hero__media-frame { position: relative; border-radius: var(--radius-lg); overflow: visible; }
.hero__img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; object-fit: cover;
}
.hero__badge {
  position: absolute; display: flex; align-items: center; gap: 10px; background: var(--white);
  padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); font-family: 'Poppins';
}
.hero__badge { bottom: 24px; left: -22px; }
.hero__badge--2 { top: 24px; right: -18px; bottom: auto; left: auto; }
.hero__badge-num { font-size: 1.5rem; font-weight: 800; color: var(--accent-strong); line-height: 1; }
.hero__badge-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; font-size: 1.2rem; }
.hero__badge-label { font-size: 0.72rem; font-weight: 600; color: var(--text-soft); line-height: 1.25; }

/* Trust strip */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 54px; padding: 24px; background: var(--navy-900); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.trust-strip__item { display: flex; flex-direction: column; align-items: center; text-align: center; color: #cdd9e6; gap: 2px; position: relative; }
.trust-strip__item:not(:last-child)::after { content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 1px; height: 60%; background: rgba(255,255,255,0.12); }
.trust-strip__item strong { color: var(--accent); font-family: 'Poppins'; font-size: 1.1rem; }
.trust-strip__item span { font-size: 0.8rem; }

/* ---------- Section heads ---------- */
.section__head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent-strong); margin-bottom: 14px;
}
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.02em; }
.section__lead { color: var(--text-soft); font-size: 1.08rem; margin-top: 14px; }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: center; }
.about__media { position: relative; }
.about__img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 5/4; object-fit: cover; width: 100%; }
.about__stat {
  position: absolute; right: -14px; bottom: -22px; background: var(--white); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column;
}
.about__stat-num { font-family: 'Poppins'; font-weight: 800; font-size: 2rem; color: var(--accent-strong); line-height: 1; }
.about__stat-label { font-size: 0.78rem; color: var(--text-soft); max-width: 110px; }
.about__content > .section__tag { margin-bottom: 10px; }
.about__content h2 { margin-bottom: 16px; }
.about__content p { color: var(--text-soft); margin-bottom: 22px; }

.check-list { display: grid; gap: 13px; margin-bottom: 30px; }
.check-list li { position: relative; padding-left: 36px; font-weight: 500; color: var(--text); }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 800;
}

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-card__media { overflow: hidden; aspect-ratio: 4/3; position: relative; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.08); }
.service-card__body { padding: 26px 26px 30px; }
.service-card__title { font-size: 1.35rem; margin-bottom: 8px; }
.service-card__body > p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 18px; }
.service-card__list { display: grid; gap: 9px; margin-bottom: 22px; }
.service-card__list li { position: relative; padding-left: 24px; font-size: 0.93rem; color: var(--text); }
.service-card__list li::before { content: '⚡'; position: absolute; left: 0; color: var(--accent-strong); font-size: 0.85rem; }
.service-card__link {
  display: inline-flex; align-items: center; gap: 7px; font-family: 'Poppins'; font-weight: 600;
  font-size: 0.92rem; color: var(--navy-900); transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.service-card__link span { transition: transform 0.25s var(--ease); color: var(--accent-strong); }
.service-card__link:hover { color: var(--accent-strong); }
.service-card__link:hover span { transform: translateX(5px); }
a.service-card__media { display: block; }
.service-card__title a { color: inherit; transition: color 0.2s var(--ease); }
.service-card__title a:hover { color: var(--accent-strong); }

/* ---------- Why / features ---------- */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--white); padding: 32px 26px; border-radius: var(--radius); border: 1px solid var(--line);
  text-align: center; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon {
  width: 66px; height: 66px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 1.8rem;
  background: var(--accent-soft); border-radius: 18px; transition: transform 0.4s var(--ease-bounce);
}
.feature:hover .feature__icon { transform: scale(1.12) rotate(-6deg); }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { font-size: 0.92rem; color: var(--text-soft); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px;
  padding: 38px; background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.stat { text-align: center; color: var(--white); position: relative; }
.stat:not(:last-child)::after { content: ''; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 1px; height: 56%; background: rgba(255,255,255,0.12); }
.stat__num { display: block; font-family: 'Poppins'; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--accent); line-height: 1; }
.stat__label { font-size: 0.86rem; color: #cdd9e6; margin-top: 6px; }

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-sm); cursor: pointer; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 16px 14px; color: var(--white); font-family: 'Poppins';
  font-weight: 600; font-size: 0.95rem; background: linear-gradient(transparent, rgba(11,29,51,0.85));
  transform: translateY(8px); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.gallery__item:hover img { transform: scale(1.1); }
.gallery__item:hover figcaption { transform: translateY(0); opacity: 1; }

/* ---------- Testimonials slider ---------- */
.testimonials__rating { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; font-size: 0.95rem; color: var(--text-soft); }
.slider { position: relative; max-width: 760px; margin: 0 auto; overflow: hidden; }
.slider__track { display: flex; transition: transform 0.6s var(--ease); }
.quote {
  flex: 0 0 100%; padding: 8px 8px 12px; text-align: center;
}
.quote__stars { color: var(--accent); letter-spacing: 3px; font-size: 1.25rem; margin-bottom: 18px; }
.quote blockquote {
  font-family: 'Poppins'; font-weight: 500; font-size: clamp(1.15rem, 2.6vw, 1.6rem); line-height: 1.5;
  color: var(--navy-900); max-width: 640px; margin: 0 auto 26px; letter-spacing: -0.01em;
}
.quote figcaption { display: inline-flex; align-items: center; gap: 12px; }
.quote__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background-color: #4285f4; /* fallback; set per-name in script.js */
  color: #fff; font-family: 'Poppins'; font-weight: 700; font-size: 1rem; line-height: 1; text-transform: uppercase;
}
.quote__name { font-family: 'Poppins'; font-weight: 600; color: var(--navy-900); }

.slider__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.slider__btn {
  width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 1px solid var(--line);
  color: var(--navy-900); font-size: 1.6rem; display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  line-height: 1; padding-bottom: 4px;
}
.slider__btn:hover { background: var(--navy-900); color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.slider__btn:active { transform: scale(0.92); }
.slider__dots { display: flex; gap: 9px; }
.slider__dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--line); cursor: pointer;
  transition: transform 0.3s var(--ease-bounce), background 0.3s var(--ease), width 0.3s var(--ease);
}
.slider__dot.is-active { background: var(--accent-strong); width: 28px; border-radius: 6px; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); position: relative; overflow: hidden; }
.cta-banner::before { content: '⚡'; position: absolute; font-size: 22rem; right: -40px; top: 50%; transform: translateY(-50%); color: rgba(251,142,40,0.05); pointer-events: none; }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(44px, 6vw, 70px) 0; flex-wrap: wrap; }
.cta-banner h2 { color: var(--white); font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 8px; }
.cta-banner p { color: #cdd9e6; }
.cta-banner__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact__info .section__title { margin-bottom: 14px; }
.contact__list { display: grid; gap: 18px; margin: 30px 0 26px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; font-size: 1.15rem; transition: transform 0.3s var(--ease-bounce); }
.contact__list li:hover .contact__icon { transform: scale(1.1) rotate(-5deg); }
.contact__label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.contact__list a { font-weight: 600; color: var(--navy-900); transition: color 0.2s var(--ease); }
.contact__list a:hover { color: var(--accent-strong); }
.contact__reviews { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; color: var(--navy-900);
  box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }

/* Form */
.contact__form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.field { position: relative; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 16px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.96rem; color: var(--text); background: var(--bg-alt);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-strong); background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field label {
  position: absolute; left: 14px; top: 16px; color: var(--muted); font-size: 0.96rem; pointer-events: none;
  transition: all 0.2s var(--ease); padding: 0 5px; background: transparent;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: -9px; font-size: 0.76rem; color: var(--accent-strong); background: var(--white); font-weight: 600;
}
.label--select { top: -9px; font-size: 0.76rem; color: var(--muted); background: var(--white); font-weight: 600; }
.field select { color: var(--text); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6b7d' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select:focus + label { color: var(--accent-strong); }
.form__note { margin-top: 16px; text-align: center; color: #1a7a3c; font-weight: 600; background: #e8f7ee; padding: 12px; border-radius: var(--radius-sm); animation: fadeUp 0.4s var(--ease); }
.form__note--error { color: #b42318; background: #fdeceb; }
/* Honeypot: hidden from humans, tempting to bots. Not display:none so bots fill it. */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #aebccd; padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; }
.brand--footer .brand__text { color: var(--white); }
.footer__brand p { margin: 16px 0; font-size: 0.92rem; max-width: 300px; }
.footer__rating { color: #aebccd; font-size: 0.85rem; }
.footer__col h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { font-size: 0.92rem; transition: color 0.2s var(--ease), padding-left 0.2s var(--ease); }
.footer__col a:hover { color: var(--accent); padding-left: 5px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; font-size: 0.85rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Floating action button ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: var(--navy-900);
  display: none; place-items: center; font-size: 1.5rem; box-shadow: 0 12px 28px rgba(207,108,16,0.45);
  transition: transform 0.3s var(--ease-bounce);
}
.fab:hover { transform: scale(1.1); }
.fab__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ring 1.8s ease-out infinite; }

/* ---------- Mobile toggle ---------- */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy-900); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Reveal animation ----------
   The hidden state is gated behind html.reveal-on (added by JS) so that if
   the script ever fails to run, all text stays fully visible. */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.reveal-on .reveal { opacity: 0; transform: translateY(34px); }
html.reveal-on .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Floaty + keyframes ---------- */
.floaty { animation: float 4s ease-in-out infinite; }
.floaty[data-delay="1"] { animation-delay: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(207,108,16,0.5); } 70% { box-shadow: 0 0 0 10px rgba(207,108,16,0); } 100% { box-shadow: 0 0 0 0 rgba(207,108,16,0); } }
@keyframes wiggle { 0%,92%,100% { transform: rotate(0); } 94% { transform: rotate(-14deg); } 96% { transform: rotate(14deg); } 98% { transform: rotate(-8deg); } }
@keyframes ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; margin-inline: auto; }
  .about__media { max-width: 480px; margin-inline: auto; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; background: var(--white);
    padding: 14px 6%; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform 0.4s var(--ease);
    align-items: stretch; border-bottom: 1px solid var(--line);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 14px 6px; text-align: center; }
  .nav-toggle { display: flex; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .trust-strip__item:not(:last-child)::after { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .stat:not(:last-child)::after { display: none; }
  .fab { display: grid; }
  .cta-banner__inner { text-align: center; justify-content: center; }
  .cta-banner__actions { justify-content: center; width: 100%; }
}

@media (max-width: 480px) {
  .services__grid, .why__grid, .gallery__grid, .footer__inner, .field-row { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta-banner__actions .btn { width: 100%; }
  .hero__badge { left: 8px; }
  .hero__badge--2 { right: 8px; }
}

/* ============================================================
   Multi-page additions
   ============================================================ */

/* ---------- Page transitions (native cross-document cross-fade) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Topbar extras ---------- */
.topbar__left { display: flex; align-items: center; }
.topbar__socials { display: inline-flex; gap: 6px; margin-left: 6px; }
.topbar__socials a {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,0.08); font-size: 0.72rem; font-weight: 700; color: #cdd9e6;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.topbar__socials a:hover { background: var(--accent); color: var(--navy-900); transform: translateY(-2px); }

/* ---------- Outline button (for light backgrounds) ---------- */
.btn--outline { background: transparent; color: var(--navy-900); border: 1.5px solid var(--line); }
.btn--outline:hover { border-color: var(--navy-900); background: var(--navy-900); color: #fff; transform: translateY(-3px); }

/* ---------- Inner-page banner + breadcrumb ---------- */
.banner { position: relative; background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: #fff; padding: clamp(46px,7vw,86px) 0 clamp(40px,6vw,66px); overflow: hidden; }
.banner--sm { padding-bottom: clamp(30px,4vw,46px); }
.banner__glow { position: absolute; top: -30%; right: -5%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(207,108,16,0.22), transparent 65%); pointer-events: none; }
.banner__inner { position: relative; max-width: 820px; }
.banner__title { color: #fff; font-size: clamp(1.9rem,4.4vw,3rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.banner__subtitle { color: #cdd9e6; font-size: 1.1rem; max-width: 620px; }
.banner__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Banner with a full-bleed photo background (contact, testimonials) */
.banner--photo { isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: clamp(360px, 34vw, 480px); }
.banner--sm.banner--photo { min-height: clamp(320px, 30vw, 440px); }
/* On hero-pages the topbar + header overlay the banner, so the photo fills
   that space too — pad the banner content clear of the overlaid header. */
body.hero-page .banner { padding-top: clamp(132px, 12vw, 160px); }
.banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,18,33,0.92) 0%, rgba(8,18,33,0.72) 48%, rgba(8,18,33,0.5) 100%),
    linear-gradient(180deg, rgba(8,18,33,0.55), rgba(8,18,33,0.55));
}
.breadcrumb { font-size: 0.85rem; color: #9fb3c8; margin-bottom: 18px; }
.breadcrumb a { color: var(--accent); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; opacity: 0.6; }

/* ---------- Google rating badge ---------- */
.google-badge { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 22px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.google-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.google-badge__g { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: 'Poppins'; font-weight: 800; font-size: 1.3rem; color: #fff; background: conic-gradient(from -40deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4); }
.google-badge__meta { text-align: left; line-height: 1.3; }
.google-badge__meta span { font-size: 0.9rem; color: var(--text-soft); }
.google-badge--light { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.google-badge--light .google-badge__meta span { color: #cdd9e6; }

/* ---------- Testimonials CTA chips + chip variants ---------- */
.testimonials__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.chip--accent { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: var(--navy-900); border-color: transparent; }
.chip--accent:hover { border-color: transparent; }
.chip--sm { padding: 7px 14px; font-size: 0.82rem; box-shadow: none; }

/* ---------- Reviews grid (testimonials page) ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 22px; align-items: start; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review .quote__stars { color: var(--accent); letter-spacing: 2px; font-size: 1rem; margin-bottom: 12px; }
.review blockquote { font-weight: 500; font-size: 1rem; line-height: 1.6; color: var(--text); margin-bottom: 18px; }
.review figcaption { display: flex; align-items: center; gap: 12px; }

/* ---------- Service Area ---------- */
.area__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.area__grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-content: start; }
.area__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; align-items: center; gap: 16px; text-align: left; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.area__card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.area__pin { font-size: 1.6rem; flex: 0 0 auto; transition: transform 0.4s var(--ease-bounce); }
.area__card:hover .area__pin { transform: scale(1.15) translateY(-3px); }
.area__card h3 { font-size: 1.05rem; margin-bottom: 3px; }
.area__card p { color: var(--text-soft); font-size: 0.88rem; }
.area__map { display: flex; flex-direction: column; }
.area__map-frame { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); flex: 1 1 auto; min-height: 240px; }
.area__map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.area__map-caption { margin-top: 14px; text-align: center; font-size: 0.88rem; color: var(--text-soft); }
.area__map-caption .area__pin { display: inline; font-size: 1rem; margin: 0 6px 0 0; }
.area__map-caption a { color: var(--accent-strong); font-weight: 600; }
.area__map-caption a:hover { text-decoration: underline; }

/* ---------- FAQ accordion ---------- */
.faq__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.section__head--left { text-align: left; margin: 0; max-width: none; }
.faq__list { display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: rgba(207,108,16,0.4); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 22px; font-family: 'Poppins'; font-weight: 600; font-size: 1.02rem; color: var(--navy-900); display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color 0.2s var(--ease); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-strong); }
.faq__icon { position: relative; flex: 0 0 auto; width: 22px; height: 22px; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; background: var(--accent-strong); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.faq__icon::before { top: 10px; left: 3px; width: 16px; height: 2px; }
.faq__icon::after { left: 10px; top: 3px; width: 2px; height: 16px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__answer { height: 0; overflow: hidden; transition: height 0.35s var(--ease); }
.faq__answer p { padding: 0 22px 22px; color: var(--text-soft); margin: 0; }

/* ---------- Services page detail list ---------- */
.svc-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.svc { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc__icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.5rem; transition: transform 0.4s var(--ease-bounce); }
.svc:hover .svc__icon { transform: rotate(-6deg) scale(1.08); }
.svc__body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.svc__body p { color: var(--text-soft); font-size: 0.94rem; margin-bottom: 14px; }
.svc__link { display: inline-flex; align-items: center; gap: 7px; font-family: 'Poppins'; font-weight: 600; font-size: 0.9rem; color: var(--navy-900); }
.svc__link span { color: var(--accent-strong); transition: transform 0.25s var(--ease); }
.svc__link:hover { color: var(--accent-strong); }
.svc__link:hover span { transform: translateX(5px); }
.services__grid--2 { grid-template-columns: repeat(2,1fr); max-width: 840px; margin-inline: auto; }
.section__head-link { color: var(--accent-strong); font-weight: 600; }
.section__head-link:hover { text-decoration: underline; }

/* ---------- Footer extras ---------- */
.footer__license { font-size: 0.82rem; margin-top: 10px; color: #8aa0b6; }
.footer__socials { display: flex; gap: 8px; margin-top: 6px; }

/* ---------- Responsive (new components) ---------- */
@media (max-width: 980px) {
  .faq__inner { grid-template-columns: 1fr; gap: 26px; }
  .section__head--left { text-align: center; }
  .svc-list { grid-template-columns: 1fr; }
  .services__grid--2 { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 760px) {
  .area__layout { grid-template-columns: 1fr; gap: 24px; }
  .area__map-frame { min-height: 280px; }
  .topbar__left { display: none; }
}

/* ============================================================
   Full-bleed hero + transparent overlay header (.hero-page)
   ============================================================ */


/* Hero pages: topbar + header sit transparently OVER the hero image */
body.hero-page .topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent; border-bottom: none;
}
body.hero-page .header {
  position: absolute; top: 38px; left: 0; right: 0; z-index: 60;
  background: transparent; backdrop-filter: none; border-bottom: none;
}
body.hero-page .header.is-scrolled { box-shadow: none; background: transparent; border-color: transparent; }
body.hero-page .header .brand__text { color: #fff; }
body.hero-page .header .brand__text span { color: var(--accent); }
body.hero-page .header .nav__link { color: rgba(255,255,255,0.86); }
body.hero-page .header .nav__link:hover,
body.hero-page .header .nav__link.is-active { color: #fff; }
body.hero-page .nav-toggle span { background: #fff; }

/* ---------- Dark sections (white + orange text) ---------- */
.section--dark { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; }
.section--dark .section__title { color: #fff; }
.section--dark .section__lead { color: rgba(255,255,255,0.74); }
.section--dark .section__tag { color: var(--accent); }
.section--dark .quote blockquote { color: #fff; }
.section--dark .quote__name { color: #fff; }
.section--dark .slider__btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #fff; }
.section--dark .slider__btn:hover { background: #fff; color: var(--navy-900); }
.section--dark .slider__dot { background: rgba(255,255,255,0.28); }
.section--dark .slider__dot.is-active { background: var(--accent); }
.section--dark .area__card p { color: var(--text-soft); }

/* Full-bleed hero */
.hero--full {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 150px 0 90px; overflow: hidden;
}
.hero--full .hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero--full .hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,18,33,0.9) 0%, rgba(8,18,33,0.62) 45%, rgba(8,18,33,0.22) 100%),
    linear-gradient(180deg, rgba(8,18,33,0.5), rgba(8,18,33,0.45));
}
.hero--full .hero__inner { grid-template-columns: 1fr; }
.hero--full .hero__content { max-width: 720px; }
.hero--full .hero__title { color: #fff; }
.hero--full .hero__subtitle { color: rgba(255,255,255,0.9); max-width: 560px; }
.hero--full .hero__subtitle strong { color: #fff; }
.hero--full .hero__rating { color: rgba(255,255,255,0.85); }
.hero--full .eyebrow { color: #fff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); }
.hero--full .text-accent { color: var(--accent); }
.hero--full .btn--outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero--full .btn--outline:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

/* ---------- Hero lead form (glass card on the full-bleed hero) ---------- */
.hero--full .hero__inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
  gap: clamp(30px, 4.5vw, 64px); align-items: center;
}
.hero--full .hero__content { max-width: 620px; }

.hero__form-wrap { width: 100%; max-width: 460px; justify-self: end; }
.hero-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: 0 30px 70px rgba(4, 12, 24, 0.5);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.hero-form__head { margin-bottom: 20px; }
.hero-form__title { color: #fff; font-size: clamp(1.35rem, 2.1vw, 1.6rem); margin-bottom: 6px; }
.hero-form__sub { color: rgba(255,255,255,0.8); font-size: 0.94rem; line-height: 1.5; }

.hf-field { margin-bottom: 14px; }
.hf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hf-field label {
  display: block; margin-bottom: 6px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; color: rgba(255,255,255,0.82);
}
.hero-form input, .hero-form select, .hero-form textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; color: #fff;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.hero-form textarea { resize: vertical; min-height: 84px; }
.hero-form input::placeholder, .hero-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.hero-form input:focus, .hero-form select:focus, .hero-form textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(255,255,255,0.14);
  box-shadow: 0 0 0 4px rgba(251, 142, 40, 0.18);
}
.hero-form select {
  appearance: none; color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
/* options render in the OS menu (typically light) — keep them readable */
.hero-form select option { color: var(--text); }
.hero-form .btn--block { margin-top: 6px; }
.hero-form__note { background: rgba(72, 187, 120, 0.18); color: #d8ffe6; }
.hero-form__note.form__note--error { background: rgba(240, 82, 82, 0.2); color: #ffe1de; }

@media (max-width: 980px) {
  .hero--full .hero__inner { grid-template-columns: 1fr; }
  .hero--full .hero__content { max-width: 640px; }
  .hero__form-wrap { justify-self: stretch; max-width: 520px; }
}

@media (max-width: 760px) {
  body.hero-page .header { top: 0; }
  /* mobile menu panel is solid white — restore dark links for readability */
  body.hero-page .nav .nav__link { color: var(--text-soft); }
  body.hero-page .nav .nav__link.is-active { color: var(--navy-900); }
  .hero--full { padding-top: 116px; }
  /* topbar is hidden on mobile and the header sits at top:0 */
  body.hero-page .banner { padding-top: 92px; }
}

@media (max-width: 480px) {
  .hf-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   Header dropdown menu (Services)
   ============================================================ */
.nav__item.has-dropdown { position: relative; }
/* "Services" toggle is a button styled exactly like the other nav links */
.nav__toggle {
  display: inline-flex; align-items: center; gap: 5px; line-height: inherit;
  font-family: inherit; cursor: pointer;
}
.nav__caret { font-size: 0.58rem; line-height: 1; display: inline-block; transition: transform 0.3s var(--ease); }
.has-dropdown:hover .nav__caret,
.has-dropdown.is-open .nav__caret { transform: rotate(180deg); }
/* invisible bridge so the menu doesn't close when crossing the gap */
.has-dropdown::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }

.nav__dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 190px; list-style: none; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 80;
}
.has-dropdown:hover .nav__dropdown,
.has-dropdown:focus-within .nav__dropdown,
.has-dropdown.is-open .nav__dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav__sublink {
  display: block; padding: 10px 14px; border-radius: 9px; font-size: 0.92rem; font-weight: 500;
  color: var(--text-soft); white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.nav__sublink:hover { background: var(--accent-soft); color: var(--accent-strong); padding-left: 18px; }

@media (max-width: 760px) {
  .nav__item.has-dropdown { display: block; position: static; }
  .has-dropdown::after { display: none; }
  .nav__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .nav__caret { font-size: 0.78rem; }
  .nav__dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; background: transparent; border: none; border-radius: 0; box-shadow: none; padding: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
  }
  .has-dropdown.is-open .nav__dropdown { max-height: 260px; }
  .nav__sublink { padding: 13px 6px 13px 22px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__sublink:hover { background: transparent; padding-left: 26px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html.reveal-on .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
