@import url("../fonts/fonts.css");

/* ============================================================
   Mayden Group — design system.
   Navy + gold, serif display (Newsreader) + sans body (Mulish).
   Mobile-first; min-width media queries scale up.
   ============================================================ */

:root {
  /* palette */
  --navy:      #13283f;
  --navy-900:  #0d1d30;
  --navy-700:  #1e3a5c;
  --navy-600:  #27496f;
  --cream:     #f5f1e8;
  --cream-200: #ece5d6;
  --paper:     #fbf9f4;
  --gold:      #b08d4f;
  --gold-200:  #c8a86a;
  --gold-300:  #d8bd86;
  --ink:       #1b1b18;
  --muted:     #5b6470;
  --muted-on-navy: #aebccd;
  --line:      #e2dccd;
  --line-navy: rgba(255,255,255,.14);
  --white:     #ffffff;

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --container: 1180px;
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -24px rgba(13,29,48,.28);
  --shadow-soft: 0 10px 30px -18px rgba(13,29,48,.25);

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; color: var(--navy); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* layout helpers */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 64px; }
.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.lead { color: var(--muted); font-size: 1.05rem; }

/* buttons */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-gold { --bg: var(--gold); --fg: #fff; border-color: var(--gold); }
.btn-gold:hover { --bg: var(--gold-200); }
.btn-ghost { --bg: transparent; --fg: var(--navy); border-color: var(--line); }
.btn-ghost:hover { --bg: var(--cream); }
.btn-on-navy { --bg: var(--gold); --fg: #fff; border-color: var(--gold); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); }
.brand .crest { width: 40px; height: 40px; color: var(--navy); flex: none; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; letter-spacing: .02em; line-height: 1; }
.brand-word small { display: block; font-family: var(--sans); font-weight: 600; font-size: .56rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

.nav-links { display: none; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s var(--ease); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: none; align-items: center; gap: 7px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.nav-phone svg { width: 16px; height: 16px; color: var(--gold); }
.nav .btn { display: none; }

.burger { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.burger span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: 70px 0 auto 0; z-index: 49;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 16px var(--gutter) 28px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { display: block; padding: 13px 4px; font-size: 1.05rem; font-weight: 500; color: var(--navy); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { display: flex; justify-content: center; margin-top: 18px; }

/* ===== intro grid (text left, video right) ===== */
.intro-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.intro-video { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.intro-video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.intro-video::before, .intro-video::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none;
  height: 28%;
}
.intro-video::before { top: 0; background: linear-gradient(180deg, var(--navy) 0%, transparent 100%); }
.intro-video::after  { bottom: 0; background: linear-gradient(0deg, var(--navy) 0%, transparent 100%); }
@media (min-width: 960px) {
  .intro-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
  .intro-video { aspect-ratio: 3/4; }
}

/* ===== intro (navy — hero copy) ===== */
.intro { background: var(--navy); color: var(--cream); padding-block: 56px 64px; }
.intro-inner { max-width: 760px; }
.intro-crest { width: 60px; height: 60px; color: var(--gold-200); margin-bottom: 22px; }
.intro .eyebrow { color: var(--gold-200); }
.intro .eyebrow::before { background: var(--gold-200); }
.intro h1 { color: #fff; font-size: clamp(2.4rem, 9vw, 3.4rem); font-weight: 500; line-height: 1.05; }
.intro h1 em { font-style: italic; color: var(--gold-200); }
.intro .lead { color: rgba(255,255,255,.82); max-width: 50ch; margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.intro .btn-ghost { --bg: rgba(255,255,255,.06); --fg: #fff; border-color: rgba(255,255,255,.4); }
.intro .btn-ghost:hover { --bg: rgba(255,255,255,.14); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-navy); font-size: .9rem; color: rgba(255,255,255,.78); }
.hero-meta b { font-family: var(--serif); color: var(--gold-200); font-size: 1.05rem; font-weight: 600; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-200); }

/* ===== scroll divider (Coutts crest + drawing line) ===== */
.scroll-divider { background: var(--paper); text-align: center; padding-block: 56px 8px; }
.scroll-divider .sd-crest { width: 54px; height: 54px; color: var(--gold); margin: 0 auto 6px; transform-origin: center center; will-change: transform; }
.scroll-divider .sd-line { width: 1.5px; height: 220px; margin: 14px auto 0; background: var(--line); position: relative; overflow: hidden; }
.scroll-divider .sd-line span {
  position: absolute; inset: 0; transform-origin: top center; transform: scaleY(0);
  background: linear-gradient(180deg, var(--gold) 0%, var(--navy) 100%);
}
@media (prefers-reduced-motion: reduce) { .scroll-divider .sd-line span { transform: scaleY(1); } }

/* trust strip */
.trust { border-block: 1px solid var(--line); background: var(--cream); }
.trust .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; padding-block: 30px; }
.trust-item { text-align: center; }
.trust-item b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--navy); }
.trust-item span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

/* ===== heritage (artwork bg + floating card) ===== */
.heritage {
  position: relative;
  background-image: url("../img/heritage-art.svg");
  background-size: cover; background-position: center;
  padding: 22px;
}
@media (min-width: 680px) { .heritage { padding: 56px; } }
@media (min-width: 960px) { .heritage { padding: 96px 40px; } }
.heritage-card {
  background: var(--paper);
  max-width: 920px; margin-inline: auto;
  padding: 48px 26px 40px; text-align: center;
}
@media (min-width: 680px) { .heritage-card { padding: 72px 64px 60px; } }
.heritage-card .eyebrow { color: var(--gold); justify-content: center; margin-bottom: 26px; }
.heritage-card h2 {
  font-family: var(--serif); color: var(--navy);
  font-weight: 500; line-height: 1.18;
  font-size: clamp(1.7rem, 6vw, 2.9rem);
  max-width: 18ch; margin-inline: auto;
}
.heritage-card .btn {
  margin-top: 34px; border-radius: 0;
  --bg: transparent; --fg: var(--navy); border-color: var(--navy);
}
.heritage-card .btn:hover { --bg: var(--navy); --fg: #fff; }

/* section heading block */
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(1.9rem, 6vw, 2.5rem); margin-top: 14px; }
.sec-head .lead { margin-top: 14px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* services */
.services { background: var(--paper); }
.svc-grid { display: grid; gap: 16px; }
.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative; overflow: hidden;
}
.svc-card::after { content:""; position:absolute; left:0; top:0; height:3px; width:0; background: var(--gold); transition: width .4s var(--ease); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::after { width: 100%; }
.svc-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--cream); color: var(--gold); margin-bottom: 18px; }
.svc-ico svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }

/* why / split */
.why { background: var(--navy); color: var(--cream); }
.why h2 { color: #fff; }
.why .eyebrow { color: var(--gold-200); }
.why-grid { display: grid; gap: 36px; }
.why-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 7/5; }
.why-figure picture { display: block; width: 100%; height: 100%; }
.why-figure img { width:100%; height:100%; object-fit: cover; }
.why-list { display: grid; gap: 22px; margin-top: 26px; }
.why-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.why-item .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(200,168,106,.14); color: var(--gold-200); }
.why-item .ico svg { width: 22px; height: 22px; }
.why-item h4 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.why-item p { color: var(--muted-on-navy); font-size: .95rem; }

/* stats */
.stats { background: var(--cream); }
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px 16px; text-align: center; }
.stat b { font-family: var(--serif); font-size: clamp(2.4rem,11vw,3.2rem); color: var(--navy); display: block; line-height: 1; }
.stat b .suffix { color: var(--gold); }
.stat span { font-size: .85rem; color: var(--muted); letter-spacing: .03em; margin-top: 8px; display: block; }

/* leadership carousel */
.team { background: var(--paper); overflow: hidden; }
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 18px; will-change: transform; transition: transform .55s var(--ease); cursor: grab; }
.carousel-track.dragging { transition: none; cursor: grabbing; }
.team-card { flex: 0 0 82%; max-width: 360px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.team-photo { aspect-ratio: 5/6; overflow: hidden; background: var(--cream-200); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 20px 22px 24px; }
.team-body h3 { font-size: 1.2rem; }
.team-role { color: var(--gold); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.team-body p { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.carousel-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 999px; border: none; background: var(--line); cursor: pointer; padding: 0; transition: background .25s, width .25s; }
.carousel-dots button.active { background: var(--gold); width: 26px; }
.carousel-arrows { display: flex; gap: 10px; }
.c-arrow { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.c-arrow svg { width: 18px; height: 18px; }
.c-arrow:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.c-arrow[disabled] { opacity: .35; cursor: default; }
.c-arrow.prev svg { transform: scaleX(-1); }

/* testimonials */
.quotes { background: var(--cream); }
.quote-grid { display: grid; gap: 16px; }
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-soft); }
.quote-card .mark { font-family: var(--serif); font-size: 3rem; line-height: .6; color: var(--gold-300); }
.quote-card p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--navy); margin: 10px 0 18px; }
.quote-by { display: flex; align-items: center; gap: 10px; }
.quote-by b { font-size: .95rem; color: var(--ink); }
.quote-stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }

/* contact */
.contact { background: var(--navy); color: var(--cream); }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--gold-200); }
.contact-grid { display: grid; gap: 34px; }
.contact-info { display: grid; gap: 18px; margin-top: 26px; }
.ci-row { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.ci-row .ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(200,168,106,.14); color: var(--gold-200); display: grid; place-items: center; }
.ci-row .ico svg { width: 20px; height: 20px; }
.ci-row span { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-200); }
.ci-row a, .ci-row p { color: #fff; font-size: 1rem; }
.ci-row p small { display:block; color: var(--muted-on-navy); font-size: .85rem; }

/* form */
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,79,.15); }
.field-row { display: grid; gap: 14px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ===== legal pages ===== */
.legal { padding-block: 56px 72px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem,7vw,2.8rem); }
.legal .updated { color: var(--muted); font-size: .9rem; margin: 12px 0 36px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--gold); text-decoration: underline; }

/* ===== footer ===== */
.site-footer { background: var(--navy-900); color: var(--muted-on-navy); padding-block: 56px 28px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand .crest, .footer-brand .brand-word { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: .92rem; max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-navy); display: grid; place-items: center; color: var(--muted-on-navy); transition: background .25s, color .25s; }
.socials a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; }
.footer-col h5 { font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-200); margin: 0 0 14px; font-weight: 700; }
.footer-col li { margin-bottom: 9px; }
.footer-col a, .footer-col li { font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-col svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--gold-200); margin-right: 6px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-navy); display: grid; gap: 12px; font-size: .82rem; }
.footer-bottom a:hover { color: #fff; }

/* reveal animation base (GSAP toggles, CSS fallback) */
.reveal { opacity: 0; transform: translateY(24px); }
.is-ready .reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.no-js .reveal, .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .carousel-track { transition: none !important; }
}

/* ============================================================
   Tablet
   ============================================================ */
@media (min-width: 680px) {
  .section { padding-block: 84px; }
  .trust .container { grid-template-columns: repeat(4,1fr); }
  .svc-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(4,1fr); }
  .quote-grid { grid-template-columns: repeat(2,1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .team-card { flex-basis: 46%; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: 60%; }
}

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 960px) {
  body { font-size: 17px; }
  .section { padding-block: 110px; }
  .nav-links { display: flex; gap: 30px; }
  .nav-phone { display: inline-flex; }
  .nav .btn { display: inline-flex; }
  .burger { display: none; }
  .mobile-menu { display: none; }

  .hero { height: 64vh; max-height: 720px; }
  .intro { padding-block: 80px 96px; }
  .intro h1 { font-size: clamp(3.2rem, 4.4vw, 4.4rem); }
  .intro-crest { width: 72px; height: 72px; }
  .scroll-divider .sd-line { height: 300px; }

  .svc-grid { grid-template-columns: repeat(3,1fr); gap: 20px; }
  .why-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
  .why-figure { aspect-ratio: 4/5; }
  .quote-grid { grid-template-columns: repeat(3,1fr); }
  .team-card { flex-basis: 31.5%; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .form-card { padding: 34px 32px; }
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1.2fr; }
  .footer-brand { grid-column: auto; max-width: none; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
}

