/* =========================================
   TOKENS
========================================= */
:root {
  --color-navy-900: #0b2942;
  --color-navy-800: #0f3455;
  --color-navy-700: #16456d;
  --color-gold-500: #c9a24b;
  --color-gold-400: #d8b968;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f5f2;
  --color-surface: #ffffff;
  --color-header-bg: rgba(255, 255, 255, 0.92);
  --color-text: #1e2a33;
  --color-text-muted: #5b6b76;
  --color-border: #e4e1da;
  --color-ink: #0b2942;
  --color-success-bg: #e9f6ec;
  --color-success-text: #1d7a3c;
  --color-error: #c0392b;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(11, 41, 66, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 41, 66, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 41, 66, 0.18);

  --header-h: 84px;
  color-scheme: light;
}

/* "Premium" theme — petrol-blue surfaces with gold headline accents,
   toggled at runtime via the button in the header (see main.js). Most
   components already read their colors from variables below, so this
   block is the entire theme: no component-level duplication needed. */
[data-theme="petrol"] {
  --color-navy-900: #082f32;
  --color-navy-800: #0c3a3d;
  --color-navy-700: #124b4f;
  --color-bg: #06282b;
  --color-bg-alt: #0a3438;
  --color-surface: #0f4448;
  --color-header-bg: rgba(6, 40, 43, 0.92);
  --color-text: #dcebe9;
  --color-text-muted: #93b7b6;
  --color-border: rgba(255, 255, 255, 0.14);
  --color-ink: var(--color-gold-400);
  --color-success-bg: rgba(29, 122, 60, 0.2);
  --color-success-text: #7be0a0;
  --color-error: #ff8a75;
  color-scheme: dark;
}
[data-theme="petrol"] h3,
[data-theme="petrol"] h4 {
  color: var(--color-text);
}

/* =========================================
   RESET
========================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .5em; color: var(--color-ink); }
p { margin: 0 0 1em; color: var(--color-text-muted); }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 96px 0; }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__lead { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  color: var(--color-gold-500);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 12px;
}

/* scroll reveal
   Hidden state only applies when JS confirmed it's running (html.js) AND the
   user hasn't asked for reduced motion. No JS / no match => content is
   visible by default, so a script error or old browser never hides content. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    transition: opacity .7s ease, transform .7s ease;
  }
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 14px 26px;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-gold-500);
  color: var(--color-navy-900);
}
.btn--primary:hover { background: var(--color-gold-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--outline {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn--outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn--outline-light {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255,255,255,0.15); }

.btn--ghost {
  border-color: var(--color-ink);
  color: var(--color-ink);
  background: transparent;
}
.btn--ghost:hover { background: var(--color-ink); color: var(--color-bg); }

.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* =========================================
   HEADER
========================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo__icon { color: var(--color-gold-500); display: flex; }
.logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  transition: color .3s ease;
}
.logo__text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.logo__text--light { color: #fff; }
.logo__text--light small { color: rgba(255,255,255,0.65); }

.nav { display: flex; gap: 32px; }
.nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-gold-500);
  transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin-inline: auto;
  transition: transform .25s ease, opacity .25s ease, background-color .3s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO
========================================= */
.hero {
  padding: calc(var(--header-h) + 64px) 0 96px;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(201,162,75,0.16), transparent 60%),
              linear-gradient(160deg, var(--color-navy-900), var(--color-navy-800) 60%, var(--color-navy-700));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 56px;
}
.hero .eyebrow { color: var(--color-gold-400); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.1rem); }
.hero h1 span { color: var(--color-gold-400); }
.hero__lead { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__trust li { color: rgba(255,255,255,0.75); font-size: .92rem; }
.hero__trust strong { display: block; color: var(--color-gold-400); font-family: var(--font-heading); font-size: 1.4rem; }

.hero__media { display: flex; justify-content: center; }
.hero__photo-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.6);
  font-size: .85rem;
  text-align: center;
  width: 70%;
}
.hero__badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-gold-500);
  color: var(--color-navy-900);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-lg);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
}
.hero__badge-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
}

/* =========================================
   TRUSTBAR
========================================= */
.trustbar { background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.trustbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  padding: 22px 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-ink);
  text-align: center;
}

/* =========================================
   ABOUT
========================================= */
.about__inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.about__photo-placeholder {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s ease, color .3s ease;
}
.about__role { color: var(--color-gold-500); font-weight: 600; margin-bottom: 20px; }
.about__list { margin: 20px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.about__list li {
  padding-left: 28px;
  position: relative;
  color: var(--color-text);
  font-size: .95rem;
}
.about__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-gold-500);
  opacity: .18;
}
.about__list li::after {
  content: '✓';
  position: absolute;
  left: 3px; top: 1px;
  color: var(--color-gold-500);
  font-size: .75rem;
  font-weight: 800;
}

/* =========================================
   SERVICES
========================================= */
.services { background: var(--color-bg-alt); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(201,162,75,0.14);
  color: var(--color-gold-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { margin: 0; font-size: .92rem; }

/* =========================================
   DIFFERENTIALS
========================================= */
.diff__inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
  align-items: start;
}
.diff__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
}
.diff__item { display: flex; gap: 16px; }
.diff__number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-gold-500);
  flex-shrink: 0;
}
.diff__item h4 { font-size: 1.02rem; margin-bottom: 4px; }
.diff__item p { font-size: .9rem; margin: 0; }

.diff__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--color-navy-900);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
}
.stat-card__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-gold-400);
}
.stat-card__label { font-size: .82rem; color: rgba(255,255,255,0.75); }

/* =========================================
   TESTIMONIALS
========================================= */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  margin: 0;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
}
.testimonial__stars { color: var(--color-gold-500); letter-spacing: 2px; margin-bottom: 14px; }
.testimonial p { color: var(--color-text); font-style: italic; margin-bottom: 20px; }
.testimonial footer { display: flex; flex-direction: column; }
.testimonial strong { color: var(--color-text); }
.testimonial span { font-size: .85rem; color: var(--color-text-muted); }
.testimonials__note { margin-top: 28px; font-size: .8rem; text-align: center; opacity: .7; }

/* =========================================
   CTA BANNER
========================================= */
.cta-banner {
  background: linear-gradient(120deg, var(--color-navy-900), var(--color-navy-700));
  color: #fff;
  padding: 64px 0;
}
.cta-banner__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; font-size: 1.7rem; }
.cta-banner p { color: rgba(255,255,255,0.78); margin: 0; }
.cta-banner__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================
   CONTACT
========================================= */
.contact__inner {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 56px;
  align-items: start;
}
.contact-form { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--color-text); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .3s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-gold-500);
  box-shadow: 0 0 0 3px rgba(201,162,75,0.2);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--color-error);
}
.form-error {
  font-size: .78rem;
  color: var(--color-error);
  min-height: 1em;
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .84rem;
  color: var(--color-text-muted);
}
.form-consent input { margin-top: 3px; }
.form-consent a { color: var(--color-ink); text-decoration: underline; }
.form-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  text-align: center;
}

.info-card {
  background: var(--color-navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.info-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 24px; }
.info-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list svg { color: var(--color-gold-400); flex-shrink: 0; margin-top: 2px; }
.info-list strong { display: block; font-size: .85rem; margin-bottom: 2px; }
.info-list span { font-size: .88rem; color: rgba(255,255,255,0.75); }
.info-card__social { display: flex; gap: 12px; }
.info-card__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .2s ease, border-color .2s ease;
}
.info-card__social a:hover { background: var(--color-gold-500); border-color: var(--color-gold-500); color: var(--color-navy-900); }

.map-placeholder {
  margin-top: 20px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: .88rem;
  text-align: center;
  padding: 16px;
}

/* =========================================
   FOOTER
========================================= */
.footer { background: var(--color-navy-900); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand p { color: rgba(255,255,255,0.6); font-size: .9rem; margin-top: 14px; max-width: 320px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 4px; }
.footer__col a, .footer__col span { font-size: .9rem; color: rgba(255,255,255,0.7); }
.footer__col a:hover { color: var(--color-gold-400); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  font-size: .78rem;
  color: rgba(255,255,255,0.5);
}

/* =========================================
   WHATSAPP FLOAT
========================================= */
.whatsapp-float {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* =========================================
   THEME TOGGLE
========================================= */
.theme-toggle {
  position: fixed;
  left: 24px;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--color-gold-500);
  background: var(--color-navy-900);
  color: var(--color-gold-400);
  font-family: inherit;
  font-weight: 600;
  font-size: .85rem;
  box-shadow: var(--shadow-lg);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .2s ease;
}
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle__icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.theme-toggle__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  left: 50%;
  background: currentColor;
}
.theme-toggle.is-active {
  background: var(--color-gold-500);
  color: var(--color-navy-900);
  border-color: var(--color-navy-900);
}

@media (max-width: 480px) {
  .theme-toggle__label { display: none; }
  .theme-toggle { padding: 13px; left: 16px; }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1150px) {
  /* Hide the header phone/WhatsApp button before the nav has room to
     collide with it — logo + 5 nav links + phone button + CTA button
     don't all fit above this width. */
  .header__whats { display: none; }
  .nav { gap: 20px; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__photo-frame { max-width: 260px; }
  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 320px; margin-inline: auto; }
  .diff__inner { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Below this, the logo + full nav + CTA no longer fit on one line
   (measured: they need ~910px), so the nav collapses into the
   hamburger menu here rather than at the narrower content breakpoint. */
@media (max-width: 920px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
  .header__actions .btn--primary { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .services__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .diff__grid { grid-template-columns: 1fr; }
  .diff__stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .cta-banner__inner { text-align: center; justify-content: center; }
  .cta-banner__actions { justify-content: center; }
  .hero__trust { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .hero__badge { left: 50%; transform: translateX(-50%); bottom: -18px; }
  .whatsapp-float { width: 52px; height: 52px; right: 16px; }
}
