/* ==========================================================================
   Capital Hills Development — Design Tokens
   ========================================================================== */

:root {
  /* Color — the brand's own three colors: black, gold and ivory, taken
     directly from the logo. Ivory is the dominant field, black anchors text
     and a few deliberate deep moments (footer, CTA band), and gold is the
     primary brand/action color — not a minor accent. */
  --color-bg: #FAF6EA;              /* ivory — main page background */
  --color-bg-alt: #F2EAD2;          /* deeper ivory for alternating sections */
  --color-surface: #FFFFFF;         /* elevated white card: feature-item, testimonial-card, form-card, hero-float-card, brand plate */
  --color-surface-sunken: #F1EAD8;  /* recessed fields within white cards (form inputs) */
  --color-text: #1B1812;            /* ink — default text on the ivory page and within white cards */
  --color-text-muted: #6E6559;      /* muted ink */
  --color-text-on-dark: #F5F1E4;    /* ivory text used only within the black sections (footer, CTA band, contact card) */
  --color-text-on-dark-muted: #B8AF9E; /* muted ivory text within the black sections */
  --color-primary: #17140F;         /* near-black fill: footer, cta-band, contact-info-card, bg-dark */
  --color-gold: #A8813F;            /* PRIMARY brand color — buttons, active states, key accents */
  --color-gold-foreground: #17140F; /* ink text used on gold-filled buttons */
  --color-gold-deep: #8A6A2E;       /* darker gold for text on the ivory page/white cards (AA-safe) */
  --color-gold-light: #C9A662;      /* lighter gold for tints/badges on dark sections */
  --color-gold-soft: #EFE2C4;
  --color-border: #E7E0D2;          /* hairline directly on the ivory page */
  --color-border-light: rgba(23, 20, 15, 0.08);   /* subtle hairline within white cards */
  --color-border-dark: rgba(243, 236, 221, 0.1);  /* subtle divider within the deep black sections */

  /* Radius */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 8px 24px -12px rgba(27, 24, 18, 0.18);
  --shadow-md: 0 20px 48px -18px rgba(27, 24, 18, 0.24);
  --shadow-lg: 0 32px 72px -24px rgba(27, 24, 18, 0.32);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* Type */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Instrument Serif', Georgia, serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 600ms;

  /* Layout */
  --container-max: 1280px;
  --nav-height: 84px;
}

@media (prefers-color-scheme: dark) {
  /* Site is intentionally dark by design; no separate dark-mode override needed. */
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  /* Fine material grain baked into the tile itself (opacity is set inside the
     SVG, not via a separate fixed/blended layer) so the ivory reads as matte
     paper rather than flat digital color, with no extra scroll-time
     compositing cost — this is a normal background-image, not position:fixed
     with mix-blend-mode, which was causing visible lag while scrolling. */
  /* Two soft warm glows (top-left, bottom-right of the full document) give the
     ivory field a touch of depth instead of reading as flat digital color —
     kept as ordinary (non-fixed) background layers so there's no scroll-time
     compositing cost. */
  background-image:
    radial-gradient(1100px 700px at 12% -8%, rgba(168, 129, 63, 0.06), transparent 65%),
    radial-gradient(900px 600px at 100% 100%, rgba(168, 129, 63, 0.05), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: cover, cover, 180px 180px;
  background-repeat: no-repeat, no-repeat, repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.12;
}

::selection { background: var(--color-gold-soft); color: var(--color-primary); }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

@media (min-width: 768px) {
  .container { padding: 0 var(--space-6); }
}

section { position: relative; }

.section-pad { padding: var(--space-8) 0; }
@media (max-width: 767px) {
  .section-pad { padding: var(--space-7) 0; }
}

/* Thin gold hairline marking the seam between sections — a precise,
   deliberate line rather than a flat color change. */
.section-pad::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 1100px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 166, 98, 0.4) 50%, transparent 100%);
}

.bg-alt { background: var(--color-bg-alt); }
.bg-dark { background: var(--color-primary); color: var(--color-text-on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--color-text-on-dark); }

/* ==========================================================================
   Type utilities
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--color-gold);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.8s var(--ease-out) 0.25s;
}
[data-reveal].is-visible .eyebrow::before,
.eyebrow.is-visible::before { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { transform: scaleX(1); transition: none; }
}

/* Brighter gold reads correctly against the black sections (CTA band, dark cards) */
.bg-dark .eyebrow, .cta-band .eyebrow { color: var(--color-gold); }

.accent-italic {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }

.section-heading { max-width: 680px; }
.section-heading p { margin-top: var(--space-3); font-size: 1.05rem; color: var(--color-text-muted); }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  min-height: 48px;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--duration-fast) var(--ease-out); }

.btn-primary,
.btn-light {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before,
.btn-light::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover::before,
.btn-light:hover::before { transform: translateX(120%); }

.btn-primary {
  background: var(--color-gold);
  color: var(--color-gold-foreground);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--color-gold-deep); }
.btn-primary:hover svg { transform: translate(2px, -2px); }
.btn-primary:active { transform: translateY(0); }

.btn-light {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-light:hover svg { transform: translate(2px, -2px); }

.btn-outline {
  background: transparent;
  color: var(--color-text-on-dark);
  border-color: rgba(245, 241, 232, 0.3);
}
.btn-outline:hover { background: rgba(245, 241, 232, 0.1); border-color: rgba(245, 241, 232, 0.6); }

.btn-ghost {
  background: rgba(27, 24, 18, 0.04);
  color: var(--color-text);
}
.btn-ghost:hover { background: rgba(27, 24, 18, 0.08); }

.btn-block { width: 100%; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-3) 0;
  transition: background var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), padding var(--duration-base) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(250, 246, 234, 0.85);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(27, 24, 18, 0.06);
  padding: var(--space-2) 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.brand img { height: 32px; width: auto; }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--duration-base) var(--ease-out);
}
.nav-links a:hover { color: var(--color-gold-deep); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--color-gold-deep); }

.nav-right { display: flex; align-items: center; gap: var(--space-3); }
.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  padding: 0;
  align-items: center;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-height) + var(--space-4)) var(--space-4) var(--space-6);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--duration-slow) var(--ease-out), opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu .btn {
  width: 100%;
  margin-top: var(--space-5);
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: normal;
  text-align: center;
  border-bottom: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-5));
  padding-bottom: var(--space-6);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.hero-media {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-height: 560px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(168, 129, 63, 0.4);
  isolation: isolate;
}

@media (min-width: 480px) {
  .hero-media { min-height: 640px; }
}

@media (min-width: 768px) {
  .hero-media { aspect-ratio: 16 / 9; min-height: 0; }
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.8s var(--ease-out);
}
.hero-media.is-loaded img { transform: scale(1); }

.hero-slideshow .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transform: scale(1.06);
  transition: opacity 2s var(--ease-out), transform 1.8s var(--ease-out);
}
.hero-media.is-loaded .hero-slideshow .hero-slide { transform: scale(1); }
.hero-slideshow .hero-slide.is-active { opacity: 1; z-index: 1; }

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,13,9,0.15) 0%, rgba(15,13,9,0.4) 55%, rgba(15,13,9,0.86) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 2;
  color: var(--color-text-on-dark);
  max-width: 620px;
}

@media (min-width: 768px) {
  .hero-content { left: var(--space-7); bottom: var(--space-7); right: auto; max-width: 560px; }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 247, 242, 0.14);
  border: 1px solid rgba(250, 247, 242, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-gold); }

.hero-content h1 { color: #fff; min-height: 1.1em; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.hero-content .hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); align-items: center; }
.hero-content p.lede { color: rgba(245,241,232,0.85); margin-top: var(--space-3); max-width: 46ch; }

.hero-float-card {
  display: none;
  position: absolute;
  right: var(--space-7);
  top: var(--space-7);
  z-index: 3;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
  align-items: center;
  gap: var(--space-3);
  max-width: 260px;
}

/* Only shown once there is guaranteed horizontal clearance from the headline column */
@media (min-width: 1024px) {
  .hero-float-card { display: flex; }
}

.hero-float-card .stars { color: var(--color-gold-deep); font-size: 0.85rem; letter-spacing: 2px; }
.hero-float-card p { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 2px; line-height: 1.4; }
.hero-float-card strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; }

.hero-locations {
  display: none;
  position: absolute;
  left: var(--space-7);
  top: var(--space-7);
  z-index: 3;
}

@media (min-width: 900px) {
  .hero-locations { display: flex; }
}

.hero-locations {
  align-items: center;
  gap: var(--space-2);
  background: rgba(250,247,242,0.14);
  border: 1px solid rgba(250,247,242,0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  color: var(--color-text-on-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Simple (non full-bleed) hero used on About/Gallery/Contact */
.hero-simple {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-6));
  padding-bottom: var(--space-7);
  overflow: hidden;
}
.hero-simple .hero-simple-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 21/9;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(168, 129, 63, 0.4);
}
@media (max-width: 767px) { .hero-simple .hero-simple-media { aspect-ratio: 4/5; } }
.hero-simple .hero-simple-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-simple .hero-simple-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,20,15,0.15) 0%, rgba(23,20,15,0.68) 100%);
}
.hero-simple-content {
  position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-4);
  z-index: 2; color: var(--color-text-on-dark);
}
@media (min-width: 768px) { .hero-simple-content { left: var(--space-7); bottom: var(--space-7); } }
.hero-simple-content h1 { color: #fff; }
.hero-simple-content p { color: rgba(245,241,232,0.85); margin-top: var(--space-2); max-width: 60ch; }

/* ==========================================================================
   Bento grid (services)
   ========================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-3);
}

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
  .bento .card--wide { grid-column: span 2; }
  .bento .card--tall { grid-row: span 2; }
  .bento .card--hero { grid-column: span 2; grid-row: span 2; }
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(168, 129, 63, 0);
  min-height: 220px;
  transition: box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(168, 129, 63, 0.5);
}

.card-media {
  position: absolute; inset: 0;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.card:hover .card-media img { transform: scale(1.06); }

.card-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,20,15,0) 40%, rgba(23,20,15,0.82) 100%);
}

.card-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  color: var(--color-text-on-dark);
}

.card-body h3 { color: #fff; font-size: 1.15rem; }
.card-body p { font-size: 0.88rem; color: rgba(245,241,232,0.82); margin-top: 6px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-body .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.82rem; font-weight: 600; color: var(--color-gold); }
.card-body .card-link svg { width: 13px; height: 13px; flex-shrink: 0; transition: transform var(--duration-fast) var(--ease-out); }
.card:hover .card-link svg { transform: translate(2px, -2px); }

.card-icon {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(250,247,242,0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.card-icon svg { width: 20px; height: 20px; transition: transform 0.4s var(--ease-out); }
.card:hover .card-icon { background: rgba(168, 129, 63, 0.85); transform: translateY(-2px); }
.card:hover .card-icon svg { transform: rotate(-8deg) scale(1.08); }

/* ==========================================================================
   Split / narrative sections
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
  .split.reverse > *:first-child { order: 2; }
}

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.feature-list { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-5); }
@media (min-width: 520px) { .feature-list { grid-template-columns: 1fr 1fr; } }

.feature-item {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.feature-item .icon-badge {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-gold-soft);
  color: var(--color-gold-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.feature-item .icon-badge svg { width: 20px; height: 20px; }
.feature-item h3 { font-size: 1.02rem; color: var(--color-text); }
.feature-item p { font-size: 0.88rem; color: var(--color-text-muted); margin-top: 6px; line-height: 1.55; }

/* ==========================================================================
   Process steps (accordion-style, About/Home)
   ========================================================================== */

.process-list { border-top: 1px solid var(--color-border); margin-top: var(--space-5); }
.process-item { border-bottom: 1px solid var(--color-border); padding: var(--space-4) 0; }
.process-item-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  cursor: pointer;
}
.process-item-head h3 { display: flex; align-items: baseline; gap: var(--space-3); }
.process-item-head .num { font-family: var(--font-accent); font-style: italic; color: var(--color-gold); font-size: 1.3rem; }
.process-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
}
.process-item[open] .process-toggle { transform: rotate(45deg); background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.process-body { padding-top: var(--space-3); color: var(--color-text-muted); max-width: 62ch; }

/* ==========================================================================
   Current projects strip
   ========================================================================== */

.projects-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 720px) { .projects-strip { grid-template-columns: repeat(3, 1fr); } }

.project-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-sm);
}
.project-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.project-tile:hover img { transform: scale(1.06); }
.project-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,20,15,0) 45%, rgba(23,20,15,0.85) 100%); }
.project-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--space-4); color: #fff; }
.project-tile-body span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gold); font-weight: 700; }
.project-tile-body p { font-size: 0.95rem; font-weight: 600; margin-top: 4px; }

.sale-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 640px) { .sale-grid { grid-template-columns: repeat(2, 1fr); } }

.sale-tile { aspect-ratio: 1 / 1; }
.sale-tile-status {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #17140f;
  background: var(--color-gold);
  padding: 5px 12px;
  border-radius: 999px;
}
.sale-tile-body p { font-size: 1.1rem; }
.sale-tile-price { font-size: 1.3rem; font-weight: 800; margin-top: 2px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-3);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 min(88vw, 460px);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial-card .quote-mark { font-family: var(--font-accent); font-style: italic; font-size: 3rem; color: var(--color-gold-deep); line-height: 1; margin-bottom: var(--space-2); }
.testimonial-card blockquote { margin: 0; font-size: 0.97rem; line-height: 1.7; color: var(--color-text); flex: 1; }
.testimonial-card footer { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border-light); }
.testimonial-card .avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.testimonial-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card cite { font-style: normal; font-weight: 700; font-family: var(--font-heading); font-size: 0.9rem; }
.testimonial-card .role { display: block; font-size: 0.78rem; color: var(--color-text-muted); margin-top: 1px; }

.testimonial-nav { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.testimonial-nav button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
  color: var(--color-text);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.testimonial-nav button:hover { background: var(--color-primary); color: #fff; }
.testimonial-nav svg { width: 16px; height: 16px; }

/* ==========================================================================
   Dark CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: var(--space-8) var(--space-4);
  box-shadow: inset 0 0 0 1px rgba(168, 129, 63, 0.4);
  isolation: isolate;
}
@media (min-width: 768px) { .cta-band { padding: var(--space-9) var(--space-7); } }

.cta-band .cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-band .cta-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.cta-band .cta-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,20,15,0.55) 0%, rgba(23,20,15,0.94) 100%);
}
.cta-band-content { max-width: 640px; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(245,241,232,0.78); }
.cta-band .hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--color-primary); color: var(--color-text-on-dark-muted); padding: var(--space-7) 0 var(--space-4); }
.footer-top { display: grid; grid-template-columns: 1fr; gap: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--color-border-dark); }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: var(--space-5); padding-bottom: var(--space-6); } }

.footer-brand img { height: 30px; }
.footer-brand .brand-plate {
  display: inline-flex;
  background: var(--color-surface);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
.footer-brand p { max-width: 34ch; font-size: 0.9rem; line-height: 1.6; }

.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-3); font-family: var(--font-body); font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; transition: color var(--duration-fast) var(--ease-out); }
.footer-col a:hover { color: #fff; }
.footer-col li { display: flex; align-items: flex-start; gap: 8px; }
.footer-col li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--color-gold); }

.footer-social { display: flex; gap: 10px; margin-top: var(--space-4); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--color-border-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.footer-social a:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-primary); }
.footer-social svg { width: 17px; height: 17px; }

.footer-bottom { display: flex; flex-direction: column; gap: var(--space-2); align-items: center; text-align: center; padding-top: var(--space-4); font-size: 0.82rem; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-media img { transform: none; }
}

/* ==========================================================================
   Misc components
   ========================================================================== */

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: left; }
.stat-item strong { display: block; font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--color-gold); }
.stat-item span { font-size: 0.85rem; color: var(--color-text-muted); }

.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.pill-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.pill-badge svg { width: 14px; height: 14px; color: var(--color-gold); }

/* Gallery filter + grid */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 767px) {
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--space-4) * -1);
    padding: 0 var(--space-4) 4px;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; white-space: nowrap; }
}
.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--duration-fast) var(--ease-out);
}
.filter-btn:hover { border-color: var(--color-gold); color: var(--color-text); }
.filter-btn.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.masonry-grid {
  columns: 1;
  gap: var(--space-3);
}
@media (min-width: 640px) { .masonry-grid { columns: 2; } }
@media (min-width: 1024px) { .masonry-grid { columns: 3; } }

.load-more-btn {
  display: block;
  margin: var(--space-4) auto 0;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 48px;
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.load-more-btn:hover { border-color: var(--color-gold); background: var(--color-gold-soft); color: var(--color-gold-deep); }

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: zoom-in;
  background: var(--color-bg-alt);
}
.masonry-item img { width: 100%; height: auto; display: block; transition: transform var(--duration-slow) var(--ease-out); }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-item .zoom-hint {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(23,20,15,0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.masonry-item:hover .zoom-hint { opacity: 1; }
.masonry-item .zoom-hint svg { width: 16px; height: 16px; }

.gallery-group { margin-bottom: var(--space-8); }
.gallery-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.gallery-group-head span.count { font-size: 0.85rem; color: var(--color-text-muted); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 13, 10, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(100%, 1200px); max-height: 84vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(250,247,242,0.12);
  border: 1px solid rgba(250,247,242,0.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--duration-fast) var(--ease-out);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(250,247,242,0.24); }
.lightbox-close { top: var(--space-4); right: var(--space-4); }
.lightbox-prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }
.lightbox-caption { position: absolute; bottom: var(--space-4); left: 0; right: 0; text-align: center; color: rgba(245,241,232,0.8); font-size: 0.85rem; }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
}

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-7); } }

.form-card { background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
@media (min-width: 640px) { .form-card { padding: var(--space-6); } }
.form-card h2 { color: var(--color-text); }
.form-card .lede { color: var(--color-text-muted); }
.form-card .eyebrow { color: var(--color-gold-deep); }
.form-card .eyebrow::before { background: var(--color-gold-deep); }

.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
@media (min-width: 560px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }

.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--color-text); }
.field .required { color: var(--color-gold-deep); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--color-border-light);
  background: var(--color-surface-sunken);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-gold-deep);
  box-shadow: 0 0 0 4px var(--color-gold-soft);
}
.field-hint { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 6px; }

.form-status { margin-top: var(--space-3); font-size: 0.88rem; display: none; padding: 12px 16px; border-radius: var(--radius-sm); }
.form-status.is-visible { display: block; }
.form-status.success { background: #EAF4EA; color: #2A6B2E; }
.form-status.error { background: #FBEAEA; color: #9C2A2A; }

.contact-info-card { background: var(--color-primary); color: var(--color-text-on-dark); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-4); }
@media (min-width: 640px) { .contact-info-card { padding: var(--space-6); } }
.contact-info-card h3 { color: #fff; margin-bottom: var(--space-4); }
.contact-info-row { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--color-border-dark); }
.contact-info-row:first-of-type { border-top: none; }
.contact-info-row .icon-badge {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(250,247,242,0.1);
  color: var(--color-gold);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-row .icon-badge svg { width: 19px; height: 19px; }
.contact-info-row strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 3px; }
.contact-info-row p, .contact-info-row a { font-size: 0.88rem; color: var(--color-text-on-dark-muted); line-height: 1.6; }
.contact-info-row a:hover { color: #fff; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: invert(0.92) grayscale(0.25) hue-rotate(180deg) contrast(0.9) brightness(0.92); }

/* About motto card */
.motto-card {
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border-left: 3px solid var(--color-gold-deep);
  margin: var(--space-5) 0;
}
.motto-card p { font-family: var(--font-accent); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--color-text); line-height: 1.5; }

.signature { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.signature .sig-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; color: var(--color-text); }
.signature .sig-role { font-size: 0.85rem; color: var(--color-text-muted); }

/* Utility */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--color-primary); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-sm);
  z-index: 300;
  transition: top var(--duration-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }
