/* ─── SYRINGA SUMMIT HOMES — BASE STYLESHEET ─── */

/* Brand palette */
:root,
[data-theme="light"] {
  --navy:        #1B2A4A;
  --navy-dark:   #111C33;
  --navy-mid:    #243356;
  --gold:        #B8962E;
  --gold-light:  #D4AE4A;
  --gold-pale:   #F5EDD6;
  --cream:       #FAF8F3;
  --cream-dark:  #F2EDE3;
  --white:       #FFFFFF;
  --stone:       #EAE5DC;
  --text:        #1B2A4A;
  --text-muted:  #5A6580;
  --text-faint:  #9BA3B8;
  --border:      #DDD8CE;

  --color-bg:       var(--cream);
  --color-surface:  var(--white);
  --color-text:     var(--text);
  --color-primary:  var(--navy);
  --color-accent:   var(--gold);

  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     1rem    + 6vw,    6rem);

  /* Spacing */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.25rem;  --sp-6: 1.5rem;
  --sp-8: 2rem;     --sp-10: 2.5rem;  --sp-12: 3rem;
  --sp-16: 4rem;    --sp-20: 5rem;    --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radii & shadows */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 3px rgba(27,42,74,0.08);
  --shadow-md: 0 4px 16px rgba(27,42,74,0.10);
  --shadow-lg: 0 12px 40px rgba(27,42,74,0.14);

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --content-max: 1160px;
  --content-narrow: 720px;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Work Sans', 'Helvetica Neue', sans-serif;
}

[data-theme="dark"] {
  --color-bg:      #111827;
  --color-surface: #1A2540;
  --color-text:    #E8E4DC;
  --cream:         #111827;
  --cream-dark:    #1A2540;
  --white:         #1A2540;
  --stone:         #1F2F50;
  --text:          #E8E4DC;
  --text-muted:    #9BA3B8;
  --text-faint:    #5A6580;
  --border:        #2A3A5C;
  --gold-pale:     #2A2010;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  min-height: 100dvh;
  transition: background var(--transition), color var(--transition);
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.2; font-family: var(--font-display); }
p, li { text-wrap: pretty; max-width: 68ch; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

::selection { background: color-mix(in srgb, var(--gold) 25%, transparent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius-sm); }

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

/* Utility classes */
.container  { width: min(var(--content-max), 100% - var(--sp-8) * 2); margin-inline: auto; }
.container--narrow { width: min(var(--content-narrow), 100% - var(--sp-8) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Gold divider line */
.gold-line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-block: var(--sp-4);
}
.gold-line--center { margin-inline: auto; }

/* Section spacing */
.section { padding-block: clamp(var(--sp-16), 8vw, var(--sp-32)); }
.section--sm { padding-block: clamp(var(--sp-10), 5vw, var(--sp-20)); }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}
.btn--primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--gold {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }
