/* ==========================================================================
   Maustic Legacy — Premium Sydney Builder
   Design tokens & component library
   ========================================================================== */

:root {
  /* Colour palette */
  --navy-900: #0b1524;
  --navy-800: #101f33;
  --navy-700: #183049;
  --navy-600: #21456b;
  --gold-500: #c6a15b;
  --gold-400: #d4b878;
  --gold-300: #e3cf9d;
  --gold-100: #f4ead6;
  --stone-500: #6b7280;
  --stone-400: #8a92a0;
  --paper: #faf9f6;
  --paper-2: #f3f0e9;
  --white: #ffffff;
  --line: #e6e1d6;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(11, 21, 36, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 21, 36, 0.10);
  --shadow-lg: 0 24px 64px rgba(11, 21, 36, 0.18);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1.0625rem;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.2px;
  color: var(--navy-900);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { padding-left: 1.1rem; margin: 0 0 1.1em; }
li { margin-bottom: 0.4rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-500);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: var(--gold-300); }

.lead { font-size: 1.18rem; color: var(--stone-500); }
.text-gold { color: var(--gold-500); }
.center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1.25rem}.mt-3{margin-top:2rem}.mt-4{margin-top:3rem}
.mb-0{margin-bottom:0}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.25s ease; white-space: nowrap;
}
.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { border-color: currentColor; }
.btn--light-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--light-outline:hover { background: rgba(255,255,255,.1); }
.btn--outline-gold { border-color: var(--gold-500); color: var(--gold-500); }
.btn--outline-gold:hover { background: var(--gold-500); color: var(--navy-900); }
.btn--block { width: 100%; }

/* Top bar */
.topbar { background: var(--navy-900); color: #d7dce3; font-size: 0.86rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__right { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.9rem 0; }

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand__mark {
  width: 52px; height: 52px; flex: 0 0 52px;
  border: 1.5px solid var(--gold-500); border-radius: 6px;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  display: grid; place-items: center; color: var(--gold-400);
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  box-shadow: inset 0 0 0 3px rgba(214,184,120,.12);
}
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .5px; line-height: 1.1; }
.brand__name span { color: var(--gold-500); }
.brand__tag { font-size: 0.72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--stone-400); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  position: relative; padding: 0.55rem 0.9rem; font-weight: 500; font-size: 0.98rem;
  color: var(--navy-900); border-radius: 8px; transition: color .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--gold-500); }

.nav__item.has-drop { position: relative; }
.nav__caret { display: inline-block; margin-left: .3rem; font-size:.7rem; color: var(--gold-500); transition: transform .25s; }
.has-drop:hover .nav__caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 0.6rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .22s ease; z-index: 60;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(6px); }
.dropdown a {
  display: block; padding: 0.55rem 0.85rem; border-radius: 8px; font-size: 0.95rem;
  color: var(--navy-800); transition: background .2s, color .2s;
}
.dropdown a:hover { background: var(--gold-100); color: var(--navy-900); }
.dropdown__group { font-size:.7rem; letter-spacing:.15em; text-transform:uppercase; color:var(--gold-500); padding:.45rem .85rem .15rem; font-weight:700; }

.header__actions { display: flex; align-items: center; gap: 0.8rem; }
.header__cta { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy-900); transition: all .25s; }
.nav-toggle span:nth-child(1){top:14px}.nav-toggle span:nth-child(2){top:20px}.nav-toggle span:nth-child(3){top:26px}
.nav-toggle.is-open span:nth-child(1){top:20px;transform:rotate(45deg)}
.nav-toggle.is-open span:nth-child(2){opacity:0}
.nav-toggle.is-open span:nth-child(3){top:20px;transform:rotate(-45deg)}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: 72vh; display: flex; align-items: center;
  background: var(--navy-900);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.hero__bg::after { content:''; position:absolute; inset:0; background: linear-gradient(100deg, rgba(11,21,36,.92) 10%, rgba(11,21,36,.55) 55%, rgba(11,21,36,.35)); }
.hero .container { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 4.5rem; }
.hero__title { color: #fff; max-width: 18ch; }
.hero__title em { font-style: normal; color: var(--gold-400); }
.hero__lead { color: #d7dce3; font-size: 1.15rem; max-width: 54ch; margin-top: 1rem; }
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }
.hero__stats { margin-top: 3rem; display: flex; gap: clamp(1.5rem, 5vw, 3.5rem); flex-wrap: wrap; }
.hero__stat b { display:block; font-family: var(--font-display); font-size: 2rem; color: var(--gold-400); line-height:1; }
.hero__stat span { font-size: .86rem; color:#b9c0ca; letter-spacing:.04em; }

.hero--page { min-height: 52vh; }
.hero--page .hero__title { font-size: clamp(2rem, 4.5vw, 3rem); }

/* Sections */
.section { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.section--tint { background: var(--paper-2); }
.section--navy { background: var(--navy-900); color: #d7dce3; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #c2c9d2; }
.section__head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }

/* Grids */
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon { width: 54px; height: 54px; border-radius: 12px; background: var(--gold-100); color: var(--gold-500); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--stone-500); font-size: .98rem; }
.card__link { font-weight: 600; color: var(--gold-500); font-size: .92rem; }
.card__link:hover { text-decoration: underline; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width:100%; object-fit: cover; aspect-ratio: 4/3; }
.split__media::before { content:''; position:absolute; top:-18px; left:-18px; width:60%; height:60%; border-top:2px solid var(--gold-500); border-left:2px solid var(--gold-500); border-radius: var(--radius) 0 0 0; z-index:-1; }
.split .btn { margin-top: 1rem; }

/* Service list */
.svc-list { display:grid; grid-template-columns: 1fr 1fr; gap: .5rem 2rem; }
.svc-list li { list-style:none; padding-left:1.4rem; position:relative; margin-bottom:.5rem; color: var(--navy-800); }
.svc-list li::before { content:'✓'; position:absolute; left:0; color: var(--gold-500); font-weight:700; }

/* Steps / process */
.steps { counter-reset: step; }
.step { position: relative; padding: 1.4rem 1.4rem 1.4rem 4.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.2rem; top: 1.2rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--gold-500);
}
.step h4 { margin-bottom: .3rem; }
.step p { color: var(--stone-500); font-size: .97rem; margin: 0; }

/* Stats band */
.stats-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-900)); color:#fff; border-radius: var(--radius); padding: 2.5rem; display:grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align:center; }
.stats-band b { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-400); display:block; }
.stats-band span { font-size:.9rem; color:#c2c9d2; }

/* Projects grid */
.project { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.project img { width:100%; height:100%; object-fit: cover; transition: transform .5s; }
.project:hover img { transform: scale(1.06); }
.project__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,21,36,.85) 0%, rgba(11,21,36,.1) 55%); display:flex; flex-direction:column; justify-content:flex-end; padding: 1.4rem; color:#fff; }
.project__tag { font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color: var(--gold-300); font-weight:700; margin-bottom:.3rem; }
.project__title { color:#fff; font-size:1.25rem; }

/* Areas chips */
.chips { display:flex; flex-wrap:wrap; gap: .6rem; }
.chip { background:#fff; border:1px solid var(--line); border-radius:999px; padding:.45rem 1rem; font-size:.92rem; color:var(--navy-800); font-weight:500; }
.section--navy .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color:#e7eaf0; }

/* Testimonial */
.quote { max-width: 840px; margin: 0 auto; text-align:center; }
.quote p { font-family: var(--font-display); font-size: 1.5rem; line-height:1.5; color: var(--navy-800); }
.quote__stars { color: var(--gold-500); letter-spacing: .2em; margin-bottom: 1rem; }
.quote__who { margin-top: 1.2rem; font-weight: 600; }
.quote__who small { display:block; color:var(--gold-500); font-weight:500; }

/* FAQ */
.faq details { border:1px solid var(--line); border-radius: var(--radius-sm); background:#fff; padding: 1.1rem 1.3rem; margin-bottom: .8rem; }
.faq summary { cursor:pointer; font-weight:600; font-size:1.05rem; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.faq summary::after { content:'+'; color: var(--gold-500); font-size:1.4rem; font-weight:400; }
.faq details[open] summary::after { content:'−'; }
.faq details p { color:var(--stone-500); margin-top:.8rem; margin-bottom:0; font-size:.98rem; }

/* Contact form */
.form { display:grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .full { grid-column: 1 / -1; }
.form label { font-size:.85rem; font-weight:600; color: var(--navy-800); display:block; margin-bottom:.35rem; }
.form input, .form select, .form textarea {
  width:100%; padding: .85rem 1rem; border:1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .98rem; background:#fff; color: var(--navy-900); transition: border .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline:none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(198,161,91,.18); }
.form textarea { resize: vertical; min-height: 130px; }
.form .btn { grid-column: 1 / -1; }

.contact-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items:start; }
.contact-info { background: var(--navy-900); color:#c2c9d2; border-radius: var(--radius); padding: 2.2rem; }
.contact-info h3 { color:#fff; }
.contact-info__row { display:flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); align-items:flex-start; }
.contact-info__row:last-child { border-bottom:none; }
.contact-info__row svg { width:22px; height:22px; color: var(--gold-400); flex:0 0 auto; }
.contact-info__row b { color:#fff; display:block; font-size:.95rem; }
.contact-info__row span { font-size:.92rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-900)); color:#fff; border-radius: var(--radius); padding: clamp(2rem,4vw,3.5rem); display:flex; justify-content:space-between; align-items:center; gap:2rem; flex-wrap:wrap; }
.cta-band h2, .cta-band h3 { color:#fff; margin-bottom:.4rem; }
.cta-band p { color:#c2c9d2; margin:0; }
.cta-band .btn { flex:0 0 auto; }

/* Breadcrumbs */
.breadcrumb { display:flex; flex-wrap:wrap; gap:.4rem; font-size:.85rem; color:var(--gold-300); margin-top:1.2rem; }
.breadcrumb a { color:#c2c9d2; }
.breadcrumb a:hover { color:#fff; }
.breadcrumb span { color: var(--gold-400); }

/* Footer */
.site-footer { background: var(--navy-900); color:#aeb6c1; padding: 4rem 0 2rem; }
.site-footer a { color:#cfd5dd; }
.site-footer a:hover { color: var(--gold-400); }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer h4 { color:#fff; margin-bottom:1.1rem; font-size:1.05rem; }
.footer ul { list-style:none; padding:0; margin:0; }
.footer li { margin-bottom:.55rem; font-size:.95rem; }
.footer__brand { font-family: var(--font-display); font-size:1.4rem; color:#fff; font-weight:700; margin-bottom:.5rem; }
.footer__brand span { color: var(--gold-400); }
.footer__note { font-size:.86rem; color:#8b93a0; }
.footer__bottom { border-top:1px solid rgba(255,255,255,.08); margin-top:3rem; padding-top:1.5rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; font-size:.82rem; color:#8b93a0; }
.footer__meta svg { width:18px; height:18px; color: var(--gold-400); vertical-align:middle; margin-right:.4rem; }

/* Map placeholder */
.map { border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-md); min-height: 320px; background: linear-gradient(140deg, #eaf0f4, #dfe6ec); display:grid; place-items:center; color: var(--stone-500); border:1px solid var(--line); }
.map svg { width:100%; height:100%; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .nav { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(360px, 86vw); height: 100vh; height: 100dvh; z-index: 1300; background:#fff; flex-direction:column; align-items:stretch; padding: 5rem 1.5rem 2rem; gap: .2rem; transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-lg); overflow-y:auto; }
  .nav.open { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content:''; position: fixed; top:0; right:0; bottom:0; left:0; background: rgba(11,21,36,.45); z-index:1200; }
  .nav__link { padding: .8rem 1rem; font-size:1.05rem; }
  .dropdown { position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none; min-width:0; max-height:0; overflow:hidden; padding:0; }
  .has-drop.open .dropdown { max-height: 800px; padding:.4rem 0; }
  .has-drop.open .nav__caret { transform: rotate(180deg); }
  .nav-toggle { display: block; }
  .header__cta { display: none; }
  /* Drop the header's stacking context on mobile (z-index:auto on a positioned element => no stacking context) so the fixed drawer escapes and sits above the body scrim. */
  .site-header { position: relative; z-index: auto; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(250, 249, 246, 0.98); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media::before { display:none; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__right { gap:.8rem; }
  .hero__cta .btn { width:100%; }
}
