/* ============================================================
   KOONTZ FURNITURE + DESIGN — Web Design Tokens
   Cool & refined direction (Navy + SeaFoam forward)
   ============================================================ */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Mrs Eaves OT";
  src: url("../fonts/mrs-eaves-ot-roman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Brand palette ---- */
  --navy:       #0b2531;
  --blue:       #285e74;
  --seafoam:    #479ead;
  --gold:       #d6ad65;
  --offwhite:   #f6ede3;

  /* ---- Derived / functional tones (oklch, brand-harmonious) ---- */
  --navy-90:    #1a3641;   /* lifted navy for raised surfaces */
  --blue-tint:  #e6eef1;   /* faint blue wash */
  --seafoam-tint:#e3f0f1;  /* faint seafoam wash */
  --gold-tint:  #f5e9d2;   /* faint gold wash */
  --paper:      #fbf6ee;   /* page paper, a touch lighter than off-white */
  --line:       #e3d8c8;   /* hairline on paper */
  --line-cool:  #d2dfe2;   /* hairline cool */
  --ink:        #05111a;   /* primary text on light */
  --ink-soft:   #3f5560;   /* secondary text on light */
  --ink-faint:  #6c7e86;   /* muted/captions */
  --on-dark:    #f6ede3;   /* text on navy */
  --on-dark-soft:#a9bcc3;  /* secondary text on navy */

  /* ---- Semantic ---- */
  --bg:          var(--paper);
  --surface:     #ffffff;
  --text:        var(--ink);
  --accent:      var(--seafoam);
  --accent-deep: var(--blue);

  /* ---- Scheme Variables ---- */
  /* These are overridden per section scheme below */
  --scheme--text:                        var(--ink);
  --scheme--text--muted:                 var(--ink-soft);
  --scheme--heading:                     var(--navy);
  --scheme--eyebrow:                     var(--seafoam);
  --scheme--label:                       var(--ink-soft);
  --scheme--border--color:               var(--line);
  --scheme--link--color:                 var(--seafoam);
  --scheme--link--color--hover:          var(--blue);
  --scheme--button-primary--background:  var(--navy);
  --scheme--button-primary--background--hover: #14323f;
  --scheme--button-primary--text:        var(--offwhite);
  --scheme--button-secondary--background: transparent;
  --scheme--button-secondary--background--hover: var(--navy);
  --scheme--button-secondary--border:    var(--navy);
  --scheme--button-secondary--border--hover: var(--navy);
  --scheme--button-secondary--text:      var(--navy);
  --scheme--button-tertiary--background: transparent;
  --scheme--button-tertiary--background--hover: rgba(11, 37, 49, 0.06);
  --scheme--button-tertiary--text:       var(--navy);
  --scheme--input--background:           #ffffff;
  --scheme--input--border:               var(--line);
  --scheme--input--border--focus:        var(--seafoam);

  /* ---- Type ---- */
  --font-head:  "Montserrat", system-ui, sans-serif;   /* titles / headers */
  --font-ui:    "Montserrat", system-ui, sans-serif;   /* subheads / UI */
  --font-body:  "Mrs Eaves OT", Georgia, "Times New Roman", serif; /* body / accent */

  --w-regular: 400;
  --w-medium:  500;
  --w-semibold:600;
  --w-bold:    700;

  /* Fluid type scale (1.250 major third) */
  --t-display: clamp(3rem, 6vw, 5.25rem);

  /* Heading font size variables (min/max for clamp) */
  --t-h1-min:  2.4rem;
  --t-h1-max:  3.5rem;
  --t-h2-min:  1.9rem;
  --t-h2-max:  2.6rem;
  --t-h3-min:  1.45rem;
  --t-h3-max:  1.85rem;
  --t-h4-min:  1.15rem;
  --t-h4-max:  1.35rem;

  /* Paragraph/body font size variables */
  --t-p-min:   1.05rem;
  --t-p-max:   1.25rem;
  --t-body-min: 1rem;
  --t-body-max: 1.1rem;

  /* Legacy variables (kept for .eyebrow and other specialized text) */
  --t-eyebrow: 0.78rem;
  --t-caption: 0.8125rem;

  /* Line heights */
  --lh-tight:  1.04;
  --lh-snug:   1.18;
  --lh-body:   1.5em;

  /* Heading constraints */
  --heading-max-width: 46ch;

  --track-eyebrow: 0.22em;
  --track-head:    0.005em;

  /* ---- Radii — concentric system (soft rounded) ----
     A "radius parent" sets --r (its own corner) + --p (inset to its
     children) and exposes --r-child = max(--r − --p, --r-min). Nested
     controls read var(--r-child) so their corners stay parallel to the
     parent's. Standalone controls fall back to --r-control. */
  --r-2xs: 4px;
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  22px;
  --r-xl:  30px;
  --r-pill:999px;

  --r-min:     6px;   /* floor so concentric corners never invert */
  --r-control: 12px;  /* default standalone button / input radius */
  /* A radius parent defines --r (its corner) + --p (inset to children),
     then sets   --r-child: max(calc(var(--r) - var(--p)), var(--r-min));
     Nested controls read var(--r-child, var(--r-control)). */

  /* ---- Spacing scale (8pt) ---- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10:128px;

  /* ---- Shadows (cool, low, refined) ---- */
  --sh-sm: 0 1px 2px rgba(11,37,49,.06), 0 1px 3px rgba(11,37,49,.05);
  --sh-md: 0 6px 18px rgba(11,37,49,.08), 0 2px 6px rgba(11,37,49,.05);
  --sh-lg: 0 18px 48px rgba(11,37,49,.12), 0 6px 16px rgba(11,37,49,.07);
  --sh-focus: 0 0 0 3px rgba(71,158,173,.35);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur:  .28s;

  /* ---- Overlays ---- */
  --overlay-opacity: 0.4;

  /* ---- Status Colors ---- */
  --color-error: #c66;
  --color-error-bg: rgba(180, 69, 47, 0.15);

  /* ---- Layout ---- */
  --maxw: 1200px;
  --nav-height: 76px;
}

/* ============================================================
   SCHEME OVERRIDES
   ============================================================ */

/* ---- Light (default) ---- */
.section {
  --scheme--text:                        var(--ink);
  --scheme--text--muted:                 var(--ink-soft);
  --scheme--heading:                     var(--navy);
  --scheme--eyebrow:                     var(--seafoam);
  --scheme--label:                       var(--ink-soft);
  --scheme--border--color:               var(--line);
  --scheme--link--color:                 var(--seafoam);
  --scheme--link--color--hover:          var(--blue);
  --scheme--button-primary--background:  var(--navy);
  --scheme--button-primary--background--hover: #14323f;
  --scheme--button-primary--text:        var(--offwhite);
  --scheme--button-secondary--background: transparent;
  --scheme--button-secondary--background--hover: var(--navy);
  --scheme--button-secondary--border:    var(--navy);
  --scheme--button-secondary--border--hover: var(--navy);
  --scheme--button-secondary--text:      var(--navy);
  --scheme--button-tertiary--background: transparent;
  --scheme--button-tertiary--background--hover: rgba(11, 37, 49, 0.06);
  --scheme--button-tertiary--text:       var(--navy);
  --scheme--input--background:           #ffffff;
  --scheme--input--border:               var(--line);
  --scheme--input--border--focus:        var(--seafoam);
}


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

img, video { user-select: none; -webkit-user-select: none; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { overflow-x: clip; }

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

body {
  margin: 0;
  background: var(--scheme--background);
  color: var(--scheme--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
}

/* Base type roles ------------------------------------------------ */
.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--w-semibold);
  font-size: var(--t-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--scheme--eyebrow);
}
h1, .h1 { font-family: var(--font-head); font-weight: var(--w-semibold); font-size: clamp(1.8rem, 4.4vw, var(--t-h1-max)); line-height: var(--lh-tight); letter-spacing: -0.005em; color: var(--scheme--heading); max-width: var(--heading-max-width); text-wrap: balance; }
h2, .h2 { font-family: var(--font-head); font-weight: var(--w-semibold); font-size: clamp(var(--t-h2-min), 3vw, var(--t-h2-max)); line-height: var(--lh-snug); color: var(--scheme--heading); max-width: var(--heading-max-width); text-wrap: balance; }
h3, .h3 { font-family: var(--font-head); font-weight: var(--w-semibold); font-size: clamp(var(--t-h3-min), 2.1vw, var(--t-h3-max)); line-height: var(--lh-snug); color: var(--scheme--heading); max-width: var(--heading-max-width); text-wrap: balance; }
h4, .h4 { font-family: var(--font-head); font-weight: var(--w-semibold); font-size: clamp(var(--t-h4-min), 1.5vw, var(--t-h4-max)); line-height: 1.3; color: var(--scheme--heading); max-width: var(--heading-max-width); text-wrap: balance; }

body { font-family: var(--font-body); }

p { font-family: var(--font-body); font-size: clamp(var(--t-p-min), 1.4vw, var(--t-p-max)); line-height: var(--lh-body); color: var(--scheme--text); margin-top: 0.5em; }

.h-display { font-family: var(--font-head); font-weight: var(--w-semibold); font-size: var(--t-display); line-height: var(--lh-tight); letter-spacing: -0.01em; color: var(--scheme--heading); }
.body { font-family: var(--font-body); font-size: clamp(var(--t-body-min), 1.2vw, var(--t-body-max)); line-height: var(--lh-body); color: var(--scheme--text); }
.small { font-size: 0.9375rem; color: var(--scheme--text); }
.caption { font-family: var(--font-ui); font-size: var(--t-caption); color: var(--scheme--text--muted); }

a { color: var(--scheme--link--color); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--scheme--link--color--hover); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* ---- Spacing: Margin Top ---- */
.spacing-top-4 { margin-top: 4px; }
.spacing-top-8 { margin-top: 8px; }
.spacing-top-10 { margin-top: 10px; }
.spacing-top-12 { margin-top: 12px; }
.spacing-top-14 { margin-top: 14px; }
.spacing-top-16 { margin-top: 16px; }
.spacing-top-24 { margin-top: 24px; }
.spacing-top-28 { margin-top: 28px; }
.spacing-top-32 { margin-top: 32px; }
.spacing-top-36 { margin-top: 36px; }
.spacing-top-48 { margin-top: 48px; }

/* ---- Spacing: Margin Bottom ---- */
.spacing-bottom-36 { margin-bottom: 36px; }
.spacing-bottom-responsive { margin-bottom: clamp(32px, 4vw, 48px); }

/* ---- Spacing: Margin Reset ---- */
.spacing-reset { margin: 0; }

/* ---- Display: Block ---- */
.display-block { display: block; }

/* ---- Opacity ---- */
.opacity-faint { opacity: 0.18; }

/* ---- Image Sizing (photos, cards) ---- */
.image-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Flex Utilities ---- */
.flex-column { display: flex; flex-direction: column; }
.flex-column-gap-8 { display: flex; flex-direction: column; gap: 8px; }
.flex-column-gap-12 { display: flex; flex-direction: column; gap: 12px; }
.flex-column-gap-14 { display: flex; flex-direction: column; gap: 14px; }
.flex-wrap-gap-14 { display: flex; flex-wrap: wrap; gap: 14px; }
.flex-wrap-gap-14-center { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.flex-column-start { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 8px; }

/* ---- Grid Utilities ---- */
.grid-2col-responsive { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }

/* ---- Backdrop Filter Effects ---- */
.backdrop-blur-subtle { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.backdrop-blur-heavy { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ---- Content Constraints ---- */
.max-width-38ch { max-width: 38ch; }
.max-width-40ch { max-width: 40ch; }
.max-width-44ch { max-width: 44ch; }
.max-width-46ch { max-width: 46ch; }
.max-width-50ch { max-width: 50ch; }
.max-width-600 { max-width: 600px; }
.max-width-640 { max-width: 640px; }

