/* Aurelian Estates - shared stylesheet. Website designed by TheWebVue. */

/* =========================================================
   1. VARIABLES
========================================================= */
:root {
  --navy-950: #060F20;
  --navy-900: #0A1A33;
  --navy-800: #10284A;
  --navy-700: #183760;

  --gold-300: #E6CB8B;
  --gold-500: #C5A059;
  --gold-600: #A8843C;
  --gold-700: #856618;
  --gold-metal: linear-gradient(135deg, #EBD394 0%, #C5A059 48%, #A8843C 100%);

  --ivory: #FBF9F4;
  --white: #FFFFFF;
  --ink: #1B2437;
  --muted: #586277;
  --line: rgba(10, 26, 51, .12);
  --danger: #B3261E;

  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 84px;
  --radius: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* =========================================================
   2. RESET
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.no-scroll { overflow: hidden; }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  background: var(--gold-500); color: var(--navy-900);
  padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* =========================================================
   3. TYPOGRAPHY
========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7.4vw, 6.4rem); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.55rem; }
p { text-wrap: pretty; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }

/* =========================================================
   4. LAYOUT
========================================================= */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); overflow-x: clip; }

.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2::after {
  content: ""; display: block; width: 64px; height: 2px;
  margin-top: 1.25rem; background: var(--gold-metal);
}
.section-head .lede { margin-top: 1.25rem; }

.on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .lede { color: rgba(255, 255, 255, .72); }

/* =========================================================
   5. COMPONENTS
========================================================= */

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 1.8rem;
  border: 1px solid transparent; border-radius: 3px;
  font-size: .95rem; font-weight: 600; letter-spacing: .02em; line-height: 1.2;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn-sm { padding: .7rem 1.35rem; font-size: .9rem; }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1rem; }

.btn-gold { background: var(--gold-metal); color: var(--navy-900); }
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -12px rgba(197, 160, 89, .85); }
.btn-gold:hover::after { transform: translateX(120%); }

.btn-ghost { border-color: rgba(255, 255, 255, .65); color: var(--white); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy-900); transform: translateY(-3px); }

.btn-outline {
  border-color: var(--navy-900); color: var(--navy-900);
}
.btn-outline:hover { background: var(--navy-900); color: var(--gold-300); transform: translateY(-2px); }

.btn-pulse { animation: pulse 2.6s ease-out infinite; }
.btn-pulse:hover { animation-play-state: paused; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(197, 160, 89, .6); }
  70%  { box-shadow: 0 0 0 20px rgba(197, 160, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: var(--navy-900);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.nav-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-block: 1.4rem;
  transition: padding .4s var(--ease);
}
.is-scrolled .nav-inner { padding-block: .85rem; }

.brand { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: .75rem; justify-self: start; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--white); letter-spacing: .02em; }
.brand-sub { margin-top: .3rem; font-size: .7rem; letter-spacing: .34em; color: var(--gold-500); }

.nav-links { display: flex; gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav-link {
  position: relative; display: inline-block; padding: .5rem 0;
  font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, .86);
  transition: color .3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px;
  background: var(--gold-500); transform: scaleX(0); transition: transform .4s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--gold-300); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.nav-actions { position: relative; z-index: 3; display: flex; align-items: center; gap: 1rem; justify-self: end; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--white);
  transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.menu-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(6, 15, 32, .6);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-950));
}
.hero-media { position: absolute; left: 0; right: 0; top: -10%; height: 120%; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(6, 15, 32, .9) 0%, rgba(10, 26, 51, .65) 45%, rgba(10, 26, 51, .2) 100%),
    linear-gradient(0deg, rgba(6, 15, 32, .75) 0%, transparent 38%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-content { max-width: 860px; padding-block: calc(var(--header-h) + 2rem) 6rem; will-change: transform, opacity; }
.hero-content > * { animation: rise 1.1s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .18s; }
.hero-content > :nth-child(3) { animation-delay: .34s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
.hero-lede {
  margin-top: 1.75rem; max-width: 34rem;
  padding-left: 1.25rem; border-left: 2px solid var(--gold-500);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .86);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .8rem; letter-spacing: .12em; color: rgba(255, 255, 255, .7);
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--gold-500), transparent); }

/* ---------- About ---------- */
.about { background: var(--ivory); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem); align-items: center;
}
.about-media { position: relative; }
.about-media::before {
  content: ""; position: absolute; inset: 26px -26px -26px 26px;
  border: 1px solid var(--gold-500); border-radius: var(--radius);
}
.about-media img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); background: var(--navy-800);
}
.years-badge {
  position: absolute; z-index: 2; left: -1.75rem; bottom: 3rem;
  width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--gold-metal); color: var(--navy-900);
  box-shadow: 0 20px 44px rgba(10, 26, 51, .35);
}
.years-badge::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 1px solid rgba(10, 26, 51, .45);
}
.years-badge strong { font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.years-badge span { max-width: 6.5rem; margin: .25rem auto 0; font-size: .78rem; font-weight: 600; line-height: 1.25; }

.about-copy p { margin-top: 1.25rem; color: var(--muted); }
.about-copy h2 { margin-bottom: 1.5rem; }
.checks { margin-top: 1.75rem; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .85rem; align-items: flex-start; }
.checks i { margin-top: .4rem; color: var(--gold-600); }
.about-copy .btn { margin-top: 2.25rem; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.stat-value { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 600; line-height: 1; color: var(--navy-900); }
.stat-suffix { color: var(--gold-600); }
.stat-label { margin-top: .6rem; font-size: .9rem; color: var(--muted); }

/* ---------- Projects ---------- */
.projects { background: var(--white); }
.projects-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.project-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.project-card:hover, .project-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(197, 160, 89, .7);
  box-shadow: 0 32px 60px -24px rgba(10, 26, 51, .4);
}
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-800); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.project-card:hover .card-media img, .project-card:focus-within .card-media img { transform: scale(1.09); }

.card-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.4rem;
  background: linear-gradient(0deg, rgba(6, 15, 32, .94) 0%, rgba(6, 15, 32, .5) 55%, rgba(6, 15, 32, .05) 100%);
  color: var(--white); font-size: .95rem; line-height: 1.55;
  opacity: 0; transition: opacity .5s var(--ease);
}
.card-overlay p { transform: translateY(14px); transition: transform .6s var(--ease); }
.project-card:hover .card-overlay, .project-card:focus-within .card-overlay { opacity: 1; }
.project-card:hover .card-overlay p, .project-card:focus-within .card-overlay p { transform: none; }
@media (hover: none) {
  .card-overlay { opacity: 1; }
  .card-overlay p { transform: none; }
}

.status {
  position: absolute; z-index: 2; top: 1rem; left: 1rem;
  padding: .35rem .8rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
.status-ready { background: var(--gold-metal); color: var(--navy-900); }
.status-building { background: var(--navy-900); color: var(--white); }
.status-launch { background: var(--white); color: var(--navy-900); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.6rem 1.75rem; }
.card-body h3 { color: var(--navy-900); }
.loc { margin-top: .5rem; color: var(--muted); font-size: .95rem; }
.loc i { margin-right: .45rem; color: var(--gold-600); }
.specs { display: grid; gap: .45rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .95rem; }
.specs i { width: 1.4rem; color: var(--gold-600); }
.card-actions { margin-top: auto; padding-top: 1.5rem; }

/* ---------- Why choose us ---------- */
.why {
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(197, 160, 89, .14), transparent 60%),
    var(--navy-900);
}
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(197, 160, 89, .28); border-left: 1px solid rgba(197, 160, 89, .28);
}
.feature {
  padding: 2.75rem 2.25rem;
  border-right: 1px solid rgba(197, 160, 89, .28); border-bottom: 1px solid rgba(197, 160, 89, .28);
  transition: background-color .5s;
}
.feature:hover { background: rgba(255, 255, 255, .04); }
.feature-icon {
  width: 58px; height: 58px; margin-bottom: 1.6rem;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--gold-500); color: var(--gold-500); font-size: 1.2rem;
  transition: background-color .4s, color .4s, transform .5s var(--ease);
}
.feature:hover .feature-icon { background: var(--gold-500); color: var(--navy-900); transform: translateY(-5px); }
.feature h3 { font-size: 1.35rem; color: var(--white); }
.feature p { margin-top: .75rem; color: rgba(255, 255, 255, .7); font-size: .98rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--ivory); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 19vw, 240px); grid-auto-flow: dense; gap: 14px;
}
.g-big  { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

.gallery-item {
  position: relative; padding: 0; border: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--navy-800); cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6, 15, 32, .8), transparent 60%);
  opacity: 0; transition: opacity .5s;
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.07); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item .cap {
  position: absolute; z-index: 2; left: 1.1rem; right: 1.1rem; bottom: 1rem;
  color: var(--white); font-size: .92rem; text-align: left; line-height: 1.4;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease);
}
.gallery-item .zoom {
  position: absolute; z-index: 2; top: .9rem; right: .9rem;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(6, 15, 32, .65); color: var(--gold-300); font-size: .85rem;
  opacity: 0; transform: scale(.85); transition: opacity .4s, transform .4s var(--ease);
}
.gallery-item:hover .cap, .gallery-item:focus-visible .cap,
.gallery-item:hover .zoom, .gallery-item:focus-visible .zoom { opacity: 1; transform: none; }
@media (hover: none) {
  .gallery-item::after { opacity: 1; }
  .gallery-item .cap { opacity: 1; transform: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 15, 32, .95);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 4.5rem 1rem 5rem; }
.lb-figure { max-width: min(1200px, 100%); transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.is-open .lb-figure { transform: none; }
.lb-figure img {
  max-width: 100%; max-height: 74vh; margin-inline: auto; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  transition: opacity .35s;
}
.lb-figure img.is-loading { opacity: 0; }
.lb-figure figcaption { margin-top: 1rem; text-align: center; color: rgba(255, 255, 255, .85); font-size: .98rem; }
.lb-count { display: block; margin-top: .25rem; font-size: .82rem; color: var(--gold-500); letter-spacing: .08em; }

.lb-btn {
  position: absolute; z-index: 2; width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(197, 160, 89, .7); border-radius: 50%;
  color: var(--gold-300); font-size: 1.05rem;
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.lb-btn:hover { background: var(--gold-500); color: var(--navy-900); }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev, .lb-next { top: 50%; margin-top: -26px; }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

/* ---------- Enquiry ---------- */
.enquiry {
  background:
    radial-gradient(800px 420px at 8% 0%, rgba(197, 160, 89, .12), transparent 60%),
    var(--white);
}
.enquiry-card {
  display: grid; grid-template-columns: 5fr 7fr;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 50px 90px -40px rgba(10, 26, 51, .55);
  border: 1px solid var(--line);
}
.enquiry-info {
  position: relative; padding: clamp(2rem, 5vw, 3.75rem);
  background: linear-gradient(165deg, var(--navy-800), var(--navy-950)); color: rgba(255, 255, 255, .78);
}
.enquiry-info h2 { color: var(--white); font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.enquiry-info > p { margin-top: 1.1rem; }
.contact-list { display: grid; gap: 1.4rem; margin-top: 2.5rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ico {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(197, 160, 89, .6); color: var(--gold-500);
}
.contact-list strong { display: block; color: var(--white); font-weight: 600; }
.contact-list a:hover { color: var(--gold-300); }

.enquiry-form-wrap { padding: clamp(2rem, 5vw, 3.75rem); background: var(--white); }
.enquiry-form-wrap h3 { color: var(--navy-900); margin-bottom: 1.75rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }

.field input, .field select, .field textarea {
  width: 100%; padding: 1.5rem 1rem .6rem;
  border: 1px solid rgba(10, 26, 51, .2); border-radius: 8px;
  background-color: var(--ivory); color: var(--ink); outline: none;
  transition: border-color .3s, box-shadow .35s, background-color .3s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23A8843C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center;
}
.field label {
  position: absolute; left: 1rem; top: 1.05rem; color: var(--muted);
  pointer-events: none; transform-origin: left top;
  transition: transform .3s var(--ease), color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-500); background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, .16), 0 0 30px rgba(197, 160, 89, .38);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  transform: translateY(-.72rem) scale(.78); color: var(--gold-700);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { display: block; margin-top: .4rem; font-size: .82rem; color: var(--danger); }
.field-error:empty { display: none; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2rem; }
.form-foot small { flex: 1 1 220px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.btn-submit:disabled { opacity: .7; cursor: progress; transform: none; }

.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding-block: 1rem; outline: none; }
.form-success .tick {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-metal); color: var(--navy-900); font-size: 1.5rem;
}
.form-success p { color: var(--muted); max-width: 44ch; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-700); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); padding-top: clamp(4rem, 7vw, 6rem); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: clamp(2rem, 4vw, 4rem); }
.site-footer h4 { font-size: 1.15rem; color: var(--white); margin-bottom: 1.25rem; }
.footer-about p { margin-top: 1.25rem; max-width: 34ch; }
.footer-address { margin-top: 1.25rem; display: grid; gap: .5rem; }
.footer-address i { width: 1.4rem; color: var(--gold-500); }
.footer-links { display: grid; gap: .7rem; }
.footer-links a { transition: color .3s, padding-left .3s var(--ease); }
.footer-links a:hover { color: var(--gold-300); padding-left: .35rem; }

.socials { display: flex; gap: .7rem; margin-top: 1.5rem; }
.socials a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(197, 160, 89, .5); color: var(--gold-300);
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.socials a:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-4px); }

.newsletter { display: flex; margin-top: .25rem; }
.newsletter input {
  flex: 1; min-width: 0; padding: .9rem 1rem;
  background: rgba(255, 255, 255, .06); color: var(--white);
  border: 1px solid rgba(255, 255, 255, .18); border-right: 0; border-radius: 3px 0 0 3px; outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, .5); }
.newsletter input:focus { border-color: var(--gold-500); box-shadow: 0 0 20px rgba(197, 160, 89, .3); }
.newsletter .btn { border-radius: 0 3px 3px 0; padding-inline: 1.3rem; }
.nl-msg { min-height: 1.4rem; margin-top: .75rem; font-size: .88rem; }
.nl-msg.is-ok { color: var(--gold-300); }
.nl-msg.is-error { color: #F19A94; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem); padding-block: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem;
}

/* =========================================================
   6. SCROLL REVEAL (progressive enhancement)
========================================================= */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js .reveal-left  { transform: translateX(-36px); }
.js .reveal-right { transform: translateX(36px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Inner-page banner ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  min-height: clamp(400px, 60vh, 540px);
  display: flex; align-items: flex-end;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-950));
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(6, 15, 32, .9) 0%, rgba(10, 26, 51, .66) 55%, rgba(10, 26, 51, .35) 100%),
    linear-gradient(0deg, rgba(6, 15, 32, .7) 0%, transparent 45%);
}
.page-hero .hero-inner { position: relative; z-index: 2; }
.page-hero .hero-content { max-width: 780px; padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
.page-hero .hero-lede { margin-top: 1.5rem; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.5rem; font-size: .9rem; color: rgba(255, 255, 255, .72); }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--gold-300); }
.crumbs [aria-current] { color: var(--gold-300); }

/* ---------- Home: explore tiles ---------- */
.explore { background: var(--ivory); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tile {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  aspect-ratio: 3 / 4; border-radius: var(--radius); color: var(--white); background: var(--navy-800);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(6, 15, 32, .94) 0%, rgba(6, 15, 32, .2) 65%);
  transition: background .6s;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.08); }
.tile:hover::before, .tile:focus-visible::before { background: linear-gradient(0deg, rgba(6, 15, 32, .97) 0%, rgba(6, 15, 32, .45) 75%); }
.tile-body { position: relative; z-index: 2; width: 100%; padding: 1.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.tile h3 { color: var(--white); font-size: 1.55rem; }
.tile p { margin-top: .35rem; font-size: .92rem; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.tile-arrow {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--gold-500); color: var(--gold-300);
  transition: background-color .4s, color .4s, transform .5s var(--ease);
}
.tile:hover .tile-arrow, .tile:focus-visible .tile-arrow { background: var(--gold-500); color: var(--navy-900); transform: translateX(4px); }
.section-cta { margin-top: 3rem; }

/* ---------- Call-to-action band ---------- */
.btn-navy { background: var(--navy-900); color: var(--gold-300); }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(6, 15, 32, .7); }

.cta-band { background: var(--gold-metal); color: var(--navy-900); padding-block: clamp(3rem, 6vw, 4.75rem); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem 3rem; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 24ch; }
.cta-band p { margin-top: .6rem; color: rgba(10, 26, 51, .8); max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-band .btn-outline { border-color: var(--navy-900); }
.cta-band .btn-outline:hover { background: var(--navy-900); color: var(--gold-300); }

/* ---------- Projects: filter chips ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.chip {
  padding: .6rem 1.3rem; border: 1px solid rgba(10, 26, 51, .22); border-radius: 999px;
  background: transparent; color: var(--muted); font-size: .92rem; font-weight: 500;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.chip:hover { border-color: var(--gold-600); color: var(--navy-900); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--gold-300); }
.result-count { margin: 1.25rem 0 2.25rem; font-size: .92rem; color: var(--muted); }
.project-card.pop { animation: pop .6s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Contact: FAQ ---------- */
.faq { background: var(--ivory); }
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; color: var(--navy-900);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.7rem; line-height: 1; color: var(--gold-600); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .9rem; max-width: 64ch; color: var(--muted); }

/* ---------- Footer credit ---------- */
.footer-legal { display: grid; gap: .25rem; }
.credit {
  align-self: flex-end; padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, .4); font-size: .86rem; color: rgba(255, 255, 255, .78);
}
.credit a { color: var(--gold-300); font-weight: 600; transition: color .3s; }
.credit a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* =========================================================
   7. MEDIA QUERIES
========================================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-inner { display: flex; justify-content: space-between; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .nav-menu {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 2;
    width: min(86vw, 380px); padding: calc(var(--header-h) + 1.5rem) 2rem 2rem;
    display: flex; flex-direction: column;
    background: var(--navy-900); box-shadow: -20px 0 50px rgba(0, 0, 0, .35);
    transform: translateX(100%); visibility: hidden;
    transition: transform .5s var(--ease), visibility .5s;
    overflow-y: auto;
  }
  .menu-open .nav-menu { transform: none; visibility: visible; }
  .nav-links { flex-direction: column; gap: 0; width: 100%; }
  .nav-link {
    display: block; padding: 1rem 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav-link::after { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 2rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { width: calc(100% - 1.5rem); max-width: 520px; }
  .about-media::before { inset: 18px -18px -18px 18px; }
  .years-badge { left: auto; right: -0.5rem; bottom: -1.75rem; width: 128px; height: 128px; }
  .years-badge strong { font-size: 2.4rem; }
  .years-badge span { font-size: .7rem; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .enquiry-card { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 34vw, 240px); }
  .g-tall { grid-row: span 1; }
  .g-big { grid-row: span 2; }
  .lb-prev, .lb-next { top: auto; bottom: 1.25rem; margin-top: 0; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lb-stage { padding-bottom: 6.5rem; }
}

@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
  .feature { padding: 2rem 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
  .stat-label { margin-top: 0; }
}

@media (max-height: 640px) {
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Additional responsive rules for multi-page components */
@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { aspect-ratio: 4 / 5; }
}
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .credit { align-self: flex-start; }
  .cta-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 11; }
}
