/* ============================================================
   REALTY — Design System
   A refined, editorial real estate landing page foundation
   Aesthetic: Luxury print editorial × architectural minimalism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ============================================================
   TOKENS — Color Palette
   ============================================================
   Primary:   Deep Slate (walls, navs, footers)
   Surface:   Warm Ivory (page backgrounds, cards)
   Accent:    Burnished Brass (CTAs, highlights, dividers)
   Neutral:   Stone Grey (borders, muted text)
   ============================================================ */

:root {

  /* --- Brand Colors --- */
  --color-primary:        #1C2226;   /* Deep Slate           */
  --color-primary-soft:   #2E3D47;   /* Slate — lighter tone  */
  --color-primary-muted:  #4A5C67;   /* Slate — midtone       */

  --color-surface:        #F7F3EE;   /* Warm Ivory            */
  --color-surface-alt:    #EDE8E1;   /* Ivory — slightly deeper*/
  --color-surface-dark:   #E2DDD5;   /* Ivory — card borders   */

  --color-accent:         #B8924A;   /* Burnished Brass        */
  --color-accent-light:   #D4AE73;   /* Brass — hover/tint     */
  --color-accent-dark:    #8C6A2F;   /* Brass — pressed state  */

  --color-neutral-100:    #F2EFEB;
  --color-neutral-200:    #DDD8D0;
  --color-neutral-300:    #BDB6AB;
  --color-neutral-400:    #9E9588;
  --color-neutral-500:    #7E756A;
  --color-neutral-600:    #5E574E;
  --color-neutral-700:    #3E3933;
  --color-neutral-800:    #1F1C18;

  --color-white:          #FFFFFF;
  --color-black:          #0D0C0B;

  /* Semantic */
  --color-text-primary:   var(--color-primary);
  --color-text-secondary: var(--color-neutral-500);
  --color-text-muted:     var(--color-neutral-400);
  --color-text-inverse:   var(--color-surface);
  --color-text-accent:    var(--color-accent);

  --color-bg-page:        var(--color-surface);
  --color-bg-card:        var(--color-white);
  --color-bg-dark:        var(--color-primary);
  --color-bg-subtle:      var(--color-surface-alt);

  --color-border:         var(--color-neutral-200);
  --color-border-strong:  var(--color-neutral-300);
  --color-border-accent:  var(--color-accent);

  --color-success:        #4A7C59;
  --color-warning:        #B8924A;
  --color-error:          #8C3A2F;

  /* ============================================================
     TYPOGRAPHY
     Display: Cormorant Garamond — editorial serif with elegance
     Body:    DM Sans — clean, modern, readable
     ============================================================ */

  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:      'Courier New', Courier, monospace;

  /* Scale — Major Third (1.25) */
  --text-2xs:   0.64rem;    /*  10px */
  --text-xs:    0.75rem;    /*  12px */
  --text-sm:    0.875rem;   /*  14px */
  --text-base:  1rem;       /*  16px */
  --text-md:    1.125rem;   /*  18px */
  --text-lg:    1.25rem;    /*  20px */
  --text-xl:    1.5rem;     /*  24px */
  --text-2xl:   1.875rem;   /*  30px */
  --text-3xl:   2.25rem;    /*  36px */
  --text-4xl:   3rem;       /*  48px */
  --text-5xl:   3.75rem;    /*  60px */
  --text-6xl:   4.75rem;    /*  76px */
  --text-7xl:   6rem;       /*  96px */

  /* Weight */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;

  /* Leading (line-height) */
  --leading-none:    1;
  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;
  --leading-loose:   1.85;

  /* Tracking (letter-spacing) */
  --tracking-tight:   -0.03em;
  --tracking-snug:    -0.01em;
  --tracking-normal:   0em;
  --tracking-wide:     0.05em;
  --tracking-wider:    0.1em;
  --tracking-widest:   0.2em;

  /* ============================================================
     SPACING — 4px base grid
     ============================================================ */

  --space-0:    0px;
  --space-1:    4px;
  --space-2:    8px;
  --space-3:    12px;
  --space-4:    16px;
  --space-5:    20px;
  --space-6:    24px;
  --space-7:    28px;
  --space-8:    32px;
  --space-10:   40px;
  --space-12:   48px;
  --space-14:   56px;
  --space-16:   64px;
  --space-20:   80px;
  --space-24:   96px;
  --space-28:   112px;
  --space-32:   128px;
  --space-40:   160px;
  --space-48:   192px;
  --space-56:   224px;
  --space-64:   256px;

  /* Section padding */
  --section-y:        var(--space-24);
  --section-y-lg:     var(--space-40);

  /* ============================================================
     LAYOUT
     ============================================================ */

  --container-max:    1280px;
  --container-narrow: 760px;
  --container-wide:   1440px;
  --container-px:     var(--space-6);   /* mobile padding  */
  --container-px-md:  var(--space-10);  /* tablet padding  */
  --container-px-lg:  var(--space-16);  /* desktop padding */

  --grid-cols:        12;
  --grid-gap:         var(--space-6);
  --grid-gap-lg:      var(--space-8);

  /* ============================================================
     BORDERS & RADIUS
     ============================================================ */

  --radius-none:   0px;
  --radius-xs:     2px;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --radius-xl:     16px;
  --radius-2xl:    24px;
  --radius-3xl:    32px;
  --radius-full:   9999px;

  --border-width:        1px;
  --border-width-md:     2px;

  /* ============================================================
     SHADOWS
     ============================================================ */

  --shadow-xs:   0 1px 2px rgba(28, 34, 38, 0.06);
  --shadow-sm:   0 2px 6px rgba(28, 34, 38, 0.08);
  --shadow-md:   0 4px 16px rgba(28, 34, 38, 0.10);
  --shadow-lg:   0 8px 32px rgba(28, 34, 38, 0.12);
  --shadow-xl:   0 16px 48px rgba(28, 34, 38, 0.16);
  --shadow-2xl:  0 32px 80px rgba(28, 34, 38, 0.20);

  /* Accent glow for CTAs */
  --shadow-accent: 0 4px 24px rgba(184, 146, 74, 0.30);
  --shadow-accent-lg: 0 8px 40px rgba(184, 146, 74, 0.40);

  /* ============================================================
     TRANSITIONS & ANIMATION
     ============================================================ */

  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:       cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out:   cubic-bezier(0.37, 0, 0.63, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
  --duration-slower: 600ms;
  --duration-scene:  900ms;

  --transition-base:    all var(--duration-base) var(--ease-out);
  --transition-color:   color var(--duration-fast) var(--ease-out),
                        background-color var(--duration-fast) var(--ease-out),
                        border-color var(--duration-fast) var(--ease-out);
  --transition-shadow:  box-shadow var(--duration-base) var(--ease-out);
  --transition-transform: transform var(--duration-base) var(--ease-out);

  /* ============================================================
     Z-INDEX SCALE
     ============================================================ */

  --z-below:     -1;
  --z-base:       0;
  --z-above:      1;
  --z-dropdown:   100;
  --z-sticky:     200;
  --z-overlay:    300;
  --z-modal:      400;
  --z-toast:      500;
  --z-tooltip:    600;

  /* ============================================================
     COMPONENT TOKENS — Nav
     ============================================================ */

  --nav-height:       72px;
  --nav-height-sm:    60px;
  --nav-bg:           rgba(247, 243, 238, 0.92);
  --nav-bg-dark:      rgba(28, 34, 38, 0.96);
  --nav-blur:         blur(12px);
  --nav-border:       var(--color-border);

  /* ============================================================
     COMPONENT TOKENS — Hero
     ============================================================ */

  --hero-min-height:      88vh;
  --hero-overlay-start:   rgba(28, 34, 38, 0.15);
  --hero-overlay-end:     rgba(28, 34, 38, 0.55);

  /* ============================================================
     COMPONENT TOKENS — Cards
     ============================================================ */

  --card-bg:              var(--color-bg-card);
  --card-border:          var(--color-border);
  --card-radius:          var(--radius-lg);
  --card-padding:         var(--space-6);
  --card-padding-lg:      var(--space-8);
  --card-shadow:          var(--shadow-md);
  --card-shadow-hover:    var(--shadow-xl);

  /* ============================================================
     COMPONENT TOKENS — Buttons
     ============================================================ */

  --btn-height-sm:    36px;
  --btn-height-md:    48px;
  --btn-height-lg:    56px;
  --btn-px-sm:        var(--space-4);
  --btn-px-md:        var(--space-8);
  --btn-px-lg:        var(--space-10);
  --btn-radius:       var(--radius-xs);
  --btn-font-size:    var(--text-sm);
  --btn-font-weight:  var(--weight-medium);
  --btn-tracking:     var(--tracking-wider);

  /* Primary (Brass) */
  --btn-primary-bg:           var(--color-accent);
  --btn-primary-bg-hover:     var(--color-accent-light);
  --btn-primary-bg-active:    var(--color-accent-dark);
  --btn-primary-color:        var(--color-white);
  --btn-primary-shadow:       var(--shadow-accent);

  /* Secondary (Outlined) */
  --btn-secondary-bg:         transparent;
  --btn-secondary-bg-hover:   var(--color-primary);
  --btn-secondary-color:      var(--color-primary);
  --btn-secondary-color-hover:var(--color-white);
  --btn-secondary-border:     var(--color-primary);

  /* Ghost */
  --btn-ghost-bg:             transparent;
  --btn-ghost-bg-hover:       var(--color-surface-alt);
  --btn-ghost-color:          var(--color-text-secondary);

  /* ============================================================
     COMPONENT TOKENS — Badges / Tags
     ============================================================ */

  --badge-radius:     var(--radius-xs);
  --badge-px:         var(--space-3);
  --badge-py:         var(--space-1);
  --badge-font-size:  var(--text-xs);
  --badge-tracking:   var(--tracking-widest);
  --badge-weight:     var(--weight-medium);

  /* ============================================================
     COMPONENT TOKENS — Forms / Inputs
     ============================================================ */

  --input-height:     48px;
  --input-height-sm:  40px;
  --input-radius:     var(--radius-xs);
  --input-px:         var(--space-4);
  --input-border:     var(--color-border-strong);
  --input-border-focus: var(--color-accent);
  --input-bg:         var(--color-white);
  --input-shadow-focus: 0 0 0 3px rgba(184, 146, 74, 0.18);
  --input-font-size:  var(--text-base);

  /* ============================================================
     COMPONENT TOKENS — Dividers
     ============================================================ */

  --divider-color:    var(--color-border);
  --divider-accent:   var(--color-accent);
  --divider-width:    1px;

  /* ============================================================
     DECORATIVE — Grain / Texture overlay
     ============================================================ */

  --grain-opacity:    0.035;

  /* ============================================================
     MEDIA BREAKPOINTS (reference — use in @media queries)
     sm:  640px
     md:  768px
     lg:  1024px
     xl:  1280px
     2xl: 1536px
     ============================================================ */
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-page);
  min-height: 100vh;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-color);
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; border: none; background: none; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

/* Display — serif, editorial */
.display-2xl {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.display-lg {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}
.display-md {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
}
.display-sm {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
}

/* Body headings — sans */
.heading-xl  { font-size: var(--text-2xl); font-weight: var(--weight-medium); line-height: var(--leading-snug); }
.heading-lg  { font-size: var(--text-xl);  font-weight: var(--weight-medium); line-height: var(--leading-snug); }
.heading-md  { font-size: var(--text-lg);  font-weight: var(--weight-medium); line-height: var(--leading-normal); }
.heading-sm  { font-size: var(--text-base); font-weight: var(--weight-medium); line-height: var(--leading-normal); }

/* Eyebrow / Overline */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Body text */
.body-lg   { font-size: var(--text-md);   line-height: var(--leading-relaxed); }
.body-base { font-size: var(--text-base); line-height: var(--leading-relaxed); }
.body-sm   { font-size: var(--text-sm);   line-height: var(--leading-normal); }
.body-xs   { font-size: var(--text-xs);   line-height: var(--leading-normal); }

/* Italic serif accent */
.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-light);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--lg {
  padding-top: var(--section-y-lg);
  padding-bottom: var(--section-y-lg);
}

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* ============================================================
   COMPONENT — Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: var(--border-width) solid var(--nav-border);
  z-index: var(--z-sticky);
  transition: background var(--duration-slow) var(--ease-out),
              border-color var(--duration-slow) var(--ease-out);
}

.nav--dark {
  background: var(--nav-bg-dark);
  border-color: rgba(255,255,255,0.08);
  color: var(--color-text-inverse);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-snug);
  color: var(--color-primary);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-4);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: var(--space-4); right: var(--space-4);
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--duration-base) var(--ease-out);
}

.nav__link:hover { color: var(--color-primary); }
.nav__link:hover::after { transform: scaleX(1); }

/* ============================================================
   COMPONENT — Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-primary);
}

.hero__media {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 34, 38, 0.75) 0%,
    rgba(28, 34, 38, 0.20) 60%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: var(--z-above);
  padding-bottom: var(--space-24);
  color: var(--color-white);
}

/* ============================================================
   COMPONENT — Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--btn-height-md);
  padding: 0 var(--btn-px-md);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-tracking);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-base);
  border: var(--border-width-md) solid transparent;
  text-decoration: none;
}

.btn--sm { height: var(--btn-height-sm); padding: 0 var(--btn-px-sm); font-size: var(--text-xs); }
.btn--lg { height: var(--btn-height-lg); padding: 0 var(--btn-px-lg); font-size: var(--text-base); }

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  border-color: var(--btn-primary-bg);
  box-shadow: var(--btn-primary-shadow);
}
.btn--primary:hover {
  background: var(--btn-primary-bg-hover);
  border-color: var(--btn-primary-bg-hover);
  box-shadow: var(--shadow-accent-lg);
  transform: translateY(-1px);
}
.btn--primary:active {
  background: var(--btn-primary-bg-active);
  border-color: var(--btn-primary-bg-active);
  transform: translateY(0);
}

.btn--secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-color);
  border-color: var(--btn-secondary-border);
}
.btn--secondary:hover {
  background: var(--btn-secondary-bg-hover);
  color: var(--btn-secondary-color-hover);
  border-color: var(--btn-secondary-bg-hover);
}

.btn--ghost {
  background: var(--btn-ghost-bg);
  color: var(--btn-ghost-color);
}
.btn--ghost:hover {
  background: var(--btn-ghost-bg-hover);
  color: var(--color-text-primary);
}

/* ============================================================
   COMPONENT — Property Card
   ============================================================ */

.card {
  background: var(--card-bg);
  border: var(--border-width) solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-neutral-200);
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-scene) var(--ease-out);
}

.card:hover .card__image {
  transform: scale(1.04);
}

.card__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
}

.card__body {
  padding: var(--card-padding);
}

.card__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.card__address {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.card__stats {
  display: flex;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--border-width) solid var(--color-border);
}

.card__stat {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.card__stat strong {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

/* ============================================================
   COMPONENT — Badges
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--badge-py) var(--badge-px);
  border-radius: var(--badge-radius);
  font-size: var(--badge-font-size);
  font-weight: var(--badge-weight);
  letter-spacing: var(--badge-tracking);
  text-transform: uppercase;
  line-height: 1;
}

.badge--accent    { background: var(--color-accent);   color: var(--color-white); }
.badge--primary   { background: var(--color-primary);  color: var(--color-white); }
.badge--surface   { background: var(--color-surface);  color: var(--color-primary); border: 1px solid var(--color-border); }
.badge--success   { background: var(--color-success);  color: var(--color-white); }

/* ============================================================
   COMPONENT — Dividers
   ============================================================ */

.divider {
  border: none;
  height: var(--divider-width);
  background: var(--divider-color);
}

.divider--accent { background: var(--divider-accent); }

/* Decorative line with label */
.divider-label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}
.divider-label::before,
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ============================================================
   COMPONENT — Form Inputs
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: var(--input-height);
  padding: 0 var(--input-px);
  background: var(--input-bg);
  border: var(--border-width) solid var(--input-border);
  border-radius: var(--input-radius);
  font-size: var(--input-font-size);
  color: var(--color-text-primary);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-textarea {
  height: auto;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--input-border-focus);
  box-shadow: var(--input-shadow-focus);
}

.form-input::placeholder { color: var(--color-neutral-400); }

/* ============================================================
   COMPONENT — Search Bar (hero search)
   ============================================================ */

.search-bar {
  display: flex;
  align-items: stretch;
  background: var(--color-white);
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.search-bar__input {
  flex: 1;
  height: var(--btn-height-lg);
  padding: 0 var(--space-6);
  border: none;
  outline: none;
  font-size: var(--text-base);
  background: transparent;
  color: var(--color-text-primary);
}

.search-bar__divider {
  width: 1px;
  background: var(--color-border);
  margin: var(--space-3) 0;
}

.search-bar__btn {
  height: var(--btn-height-lg);
  padding: 0 var(--space-8);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  transition: background var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.search-bar__btn:hover { background: var(--color-accent-light); }

/* ============================================================
   COMPONENT — Stat / Callout
   ============================================================ */

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-light);
  line-height: 1;
  color: var(--color-primary);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ============================================================
   COMPONENT — Testimonial
   ============================================================ */

.testimonial {
  padding: var(--space-10) var(--card-padding-lg);
  background: var(--color-bg-subtle);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.testimonial__author {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ============================================================
   COMPONENT — Section Header
   ============================================================ */

.section-header {
  margin-bottom: var(--space-16);
}

.section-header--centered {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header__eyebrow {
  margin-bottom: var(--space-3);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.section-header__body {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   UTILITY — Colors
   ============================================================ */

.text-primary   { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted     { color: var(--color-text-muted); }
.text-accent    { color: var(--color-accent); }
.text-inverse   { color: var(--color-text-inverse); }
.text-white     { color: var(--color-white); }

.bg-page        { background-color: var(--color-bg-page); }
.bg-dark        { background-color: var(--color-bg-dark); }
.bg-subtle      { background-color: var(--color-bg-subtle); }
.bg-card        { background-color: var(--color-bg-card); }
.bg-accent      { background-color: var(--color-accent); }

/* ============================================================
   UTILITY — Text Alignment
   ============================================================ */

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ============================================================
   UTILITY — Spacing helpers (margins)
   ============================================================ */

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* ============================================================
   UTILITY — Grain texture overlay
   ============================================================ */

.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-toast);
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ============================================================
   UTILITY — Screen reader only
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */

@media (min-width: 640px) {
  :root { --container-px: var(--container-px-md); }
}

@media (min-width: 768px) {
  :root {
    --section-y: var(--space-32);
    --section-y-lg: var(--space-48);
  }
}

@media (min-width: 1024px) {
  :root {
    --container-px: var(--container-px-lg);
    --grid-gap: var(--grid-gap-lg);
  }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
  .nav, .hero__overlay { display: none; }
  body { background: white; color: black; }
}