/* ============================================================================
   BuyAndRentRobots.com — Buyer Marketing Site
   Design System  ·  api/site/styles.css

   Editorial, category-driven, trustworthy. Inspired by WeddingWire's
   structure — warm cream canvas, serif editorial headlines, a real palette
   built around navy + gold + a teal accent (not the generic AI navy/gold look).

   The shared header + footer intentionally stay dark navy to MATCH the app
   directory (app.buyandrentrobots.com). Page bodies use the warm cream system
   defined here. That contrast — dark chrome, warm editorial content — is the
   signature of this site.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------------- */
:root {
  /* ---- Color · Brand base ------------------------------------------------ */
  --c-base-dark:   #0f1424;   /* deepest base — header/footer chrome, overlays */
  --c-navy:        #1a2240;   /* rich navy — panels, secondary dark sections   */
  --c-navy-700:    #232c52;   /* navy hover / raised dark surfaces             */

  /* ---- Color · Warm neutrals (page canvas) ------------------------------- */
  --c-cream:       #faf8f4;   /* primary page background                       */
  --c-neutral:     #f0ede6;   /* soft neutral — alt sections, input fills      */
  --c-neutral-200: #e7e2d8;   /* borders on cream, hairlines                   */
  --c-white:       #ffffff;   /* cards, elevated surfaces                      */

  /* ---- Color · Gold (primary action) ------------------------------------- */
  --c-gold:        #F59E0B;   /* primary gold — CTAs, key accents              */
  --c-gold-deep:   #D97706;   /* deep gold — hover, gradients                  */
  --c-gold-soft:   #fef3e2;   /* gold wash — tinted badges/sections            */
  --c-gold-ring:   rgba(245,158,11,.28);

  /* ---- Color · Teal (accent for variety) --------------------------------- */
  --c-teal:        #0d9488;   /* accent teal — secondary actions, category tags */
  --c-teal-deep:   #0f766e;   /* deep teal — hover                             */
  --c-teal-soft:   #e6f4f2;   /* teal wash                                     */
  --c-teal-ring:   rgba(13,148,136,.24);

  /* ---- Color · Text ------------------------------------------------------ */
  --c-text:        #1a1a2e;   /* primary text on cream                         */
  --c-text-muted:  #6b7280;   /* secondary / meta text                         */
  --c-text-soft:   #9ca3af;   /* tertiary — captions, disabled                 */
  --c-text-invert: #ffffff;   /* text on dark surfaces                         */
  --c-text-invert-muted: rgba(255,255,255,.66);

  /* ---- Color · Feedback -------------------------------------------------- */
  --c-success:     #10b981;
  --c-danger:      #ef4444;
  --c-info:        #3b82f6;

  /* ---- Typography · families --------------------------------------------- */
  --font-serif: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* ---- Typography · fluid scale (min → max via clamp) -------------------- */
  --fs-display: clamp(2.75rem, 1.6rem + 5.2vw, 4.75rem); /* 44 → 76  hero      */
  --fs-h1:      clamp(2.25rem, 1.5rem + 3vw, 3.25rem);   /* 36 → 52            */
  --fs-h2:      clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);  /* 28 → 40            */
  --fs-h3:      clamp(1.3rem, 1.1rem + 0.8vw, 1.625rem); /* 21 → 26            */
  --fs-h4:      clamp(1.075rem, 1rem + 0.35vw, 1.25rem); /* 17 → 20            */
  --fs-lead:    clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); /* 18 → 21        */
  --fs-body:    1rem;        /* 16 */
  --fs-small:   0.875rem;    /* 14 */
  --fs-xsmall:  0.75rem;     /* 12 — eyebrows, meta labels */

  --lh-tight:   1.08;
  --lh-snug:    1.25;
  --lh-normal:  1.6;
  --lh-relaxed: 1.8;

  --ls-tight:   -0.02em;
  --ls-tighter: -0.035em;
  --ls-wide:    0.02em;
  --ls-label:   0.12em;   /* uppercase eyebrows */

  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;
  --fw-black:     900;

  /* ---- Spacing scale (4px base) ------------------------------------------ */
  --sp-1:  0.25rem;   /*  4 */
  --sp-2:  0.5rem;    /*  8 */
  --sp-3:  0.75rem;   /* 12 */
  --sp-4:  1rem;      /* 16 */
  --sp-5:  1.5rem;    /* 24 */
  --sp-6:  2rem;      /* 32 */
  --sp-7:  2.5rem;    /* 40 */
  --sp-8:  3rem;      /* 48 */
  --sp-9:  4rem;      /* 64 */
  --sp-10: 5rem;      /* 80 */
  --sp-11: 6rem;      /* 96 */
  --sp-12: 8rem;      /* 128 */

  /* Vertical rhythm for full-bleed sections (fluid) */
  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  /* ---- Container widths -------------------------------------------------- */
  --container:        1200px;  /* default — matches footer/app chrome    */
  --container-wide:   1280px;  /* directory-width grids                   */
  --container-narrow: 760px;   /* article / long-form reading measure     */
  --gutter:           clamp(1.25rem, 0.5rem + 3vw, 3rem);

  /* ---- Radii ------------------------------------------------------------- */
  --r-xs:   6px;
  --r-sm:   9px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   22px;
  --r-2xl:  30px;
  --r-pill: 999px;

  /* ---- Shadows (warm-tinted, not pure black) ----------------------------- */
  --sh-xs:  0 1px 2px rgba(26,34,64,.06);
  --sh-sm:  0 2px 8px rgba(26,34,64,.07);
  --sh-md:  0 6px 20px rgba(26,34,64,.09);
  --sh-lg:  0 14px 40px rgba(26,34,64,.13);
  --sh-xl:  0 28px 70px rgba(15,20,36,.20);
  --sh-gold: 0 8px 24px rgba(245,158,11,.28);

  /* ---- Motion ------------------------------------------------------------ */
  --ease:      cubic-bezier(.22,.61,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --t-fast:    .15s var(--ease);
  --t-base:    .25s var(--ease);
  --t-slow:    .4s var(--ease-out);

  /* ---- Z-index ----------------------------------------------------------- */
  --z-base:    1;
  --z-raised:  10;
  --z-sticky:  50;
  --z-header:  100;
  --z-dropdown:110;
  --z-overlay: 200;
  --z-modal:   210;
}

/* ---------------------------------------------------------------------------
   2. RESET / BASE
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px; /* clear the sticky header on anchor jumps */
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--c-gold-ring); color: var(--c-text); }

/* ---------------------------------------------------------------------------
   3. TYPOGRAPHY — element defaults + utility classes
   --------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--c-text);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }
p  { line-height: var(--lh-normal); }
strong, b { font-weight: var(--fw-bold); }

/* Type-scale utility classes */
.display {
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tighter);
  text-wrap: balance;
}
.t-h1 { font-family: var(--font-serif); font-size: var(--fs-h1); font-weight: var(--fw-semibold); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
.t-h2 { font-family: var(--font-serif); font-size: var(--fs-h2); font-weight: var(--fw-semibold); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }
.t-h3 { font-family: var(--font-serif); font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
.t-lead { font-family: var(--font-sans); font-size: var(--fs-lead); line-height: var(--lh-normal); color: var(--c-text-muted); font-weight: var(--fw-regular); }
.t-body { font-size: var(--fs-body); line-height: var(--lh-normal); }
.t-small { font-size: var(--fs-small); line-height: var(--lh-normal); }
.t-muted { color: var(--c-text-muted); }
.t-serif { font-family: var(--font-serif); }

/* Emphasis flourish for headlines — italic serif accent word */
.t-accent { font-style: italic; font-weight: var(--fw-medium); color: var(--c-gold-deep); }
.t-accent-teal { font-style: italic; font-weight: var(--fw-medium); color: var(--c-teal-deep); }

/* Eyebrow / section kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--fs-xsmall);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-gold-deep);
}
.eyebrow::before {
  content: ''; width: 24px; height: 2px; border-radius: 2px;
  background: var(--c-gold); flex: none;
}
.eyebrow.no-rule::before { display: none; }
.eyebrow.teal { color: var(--c-teal-deep); }
.eyebrow.teal::before { background: var(--c-teal); }
.eyebrow.invert { color: var(--c-gold); }

/* ---------------------------------------------------------------------------
   4. LAYOUT — containers, sections, grid
   --------------------------------------------------------------------------- */
.container       { width: 100%; max-width: var(--container);        margin-inline: auto; padding-inline: var(--gutter); }
.container-wide  { width: 100%; max-width: var(--container-wide);   margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow{ width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }

.section        { padding-block: var(--section-y); }
.section-sm     { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.section-cream  { background: var(--c-cream); }
.section-neutral{ background: var(--c-neutral); }
.section-navy   { background: var(--c-navy);   color: var(--c-text-invert); }
.section-dark   { background: var(--c-base-dark); color: var(--c-text-invert); }
.section-navy  h1, .section-navy  h2, .section-navy  h3,
.section-dark  h1, .section-dark  h2, .section-dark  h3 { color: var(--c-text-invert); }

/* Section heading block */
.section-head { max-width: 640px; margin-bottom: var(--sp-8); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--sp-3); }
.section-head p { margin-top: var(--sp-4); }

/* Simple responsive grids */
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------------------------- */
.btn {
  --btn-py: 0.75rem; --btn-px: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  line-height: 1;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-base),
              background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--c-gold); color: var(--c-base-dark); box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--c-gold-deep); color: #fff; box-shadow: var(--sh-gold); transform: translateY(-2px); }

.btn-teal { background: var(--c-teal); color: #fff; box-shadow: var(--sh-sm); }
.btn-teal:hover { background: var(--c-teal-deep); box-shadow: 0 8px 24px var(--c-teal-ring); transform: translateY(-2px); }

.btn-dark { background: var(--c-navy); color: #fff; }
.btn-dark:hover { background: var(--c-navy-700); transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-neutral-200); }
.btn-outline:hover { border-color: var(--c-navy); color: var(--c-navy); background: var(--c-white); }

.btn-ghost { background: transparent; color: var(--c-text-muted); padding-inline: var(--sp-3); }
.btn-ghost:hover { color: var(--c-text); }

/* On dark surfaces */
.btn-invert { background: #fff; color: var(--c-base-dark); }
.btn-invert:hover { background: var(--c-gold); color: var(--c-base-dark); transform: translateY(-2px); }
.btn-outline-invert { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline-invert:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Sizes */
.btn-lg { --btn-py: 1rem; --btn-px: 2rem; font-size: var(--fs-body); }
.btn-sm { --btn-py: 0.5rem; --btn-px: 1rem; font-size: var(--fs-xsmall); }
.btn-block { width: 100%; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: var(--fw-semibold); font-size: var(--fs-small);
  color: var(--c-teal-deep); transition: gap var(--t-fast), color var(--t-fast);
}
.link-arrow::after { content: '→'; transition: transform var(--t-fast); }
.link-arrow:hover { color: var(--c-teal); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------------------
   6. BADGES / PILLS / CHIPS
   --------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-xsmall); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
}
.badge-gold { background: var(--c-gold-soft); color: var(--c-gold-deep); }
.badge-teal { background: var(--c-teal-soft); color: var(--c-teal-deep); }
.badge-navy { background: var(--c-neutral); color: var(--c-navy); }
.badge-verified { background: #eff6ff; color: var(--c-info); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-small); font-weight: var(--fw-medium);
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--c-white); border: 1px solid var(--c-neutral-200);
  color: var(--c-text); transition: all var(--t-fast);
}
.chip:hover { border-color: var(--c-gold); color: var(--c-gold-deep); box-shadow: var(--sh-xs); }
.chip.active { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

/* ---------------------------------------------------------------------------
   7. CARDS
   --------------------------------------------------------------------------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-neutral-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.card-pad { padding: var(--sp-6); }
.card-media { aspect-ratio: 16 / 10; background: var(--c-neutral); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.card:hover .card-media img { transform: scale(1.05); }

/* Category tile — WeddingWire-style entry point */
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 200px; padding: var(--sp-5);
  border-radius: var(--r-lg); overflow: hidden;
  color: #fff; background: var(--c-navy);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,20,36,.15) 0%, rgba(15,20,36,.78) 100%);
  z-index: 1;
}
.tile > * { position: relative; z-index: 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.tile-title { font-family: var(--font-serif); font-size: var(--fs-h4); font-weight: var(--fw-semibold); }
.tile-meta { font-size: var(--fs-small); color: rgba(255,255,255,.75); margin-top: 2px; }

/* Feature / stat block */
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--c-gold-soft); color: var(--c-gold-deep);
  margin-bottom: var(--sp-4);
}
.feature-icon.teal { background: var(--c-teal-soft); color: var(--c-teal-deep); }

.stat-n { font-family: var(--font-serif); font-size: var(--fs-h1); font-weight: var(--fw-bold); color: var(--c-navy); line-height: 1; }
.stat-l { font-size: var(--fs-small); color: var(--c-text-muted); margin-top: var(--sp-2); font-weight: var(--fw-medium); }
.section-navy .stat-n, .section-dark .stat-n { color: var(--c-gold); }
.section-navy .stat-l, .section-dark .stat-l { color: var(--c-text-invert-muted); }

/* ---------------------------------------------------------------------------
   8. FORMS
   --------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label {
  font-size: var(--fs-xsmall); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--c-text-muted);
}
.input, .select, .textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-size: var(--fs-small);
  color: var(--c-text);
  background: var(--c-white);
  border: 1.5px solid var(--c-neutral-200);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--c-text-soft); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px var(--c-teal-ring);
}
.textarea { resize: vertical; min-height: 120px; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem;
}

/* ---------------------------------------------------------------------------
   9. DIVIDERS / MISC
   --------------------------------------------------------------------------- */
.rule { height: 1px; background: var(--c-neutral-200); border: 0; margin-block: var(--sp-6); }
.rule-label {
  display: flex; align-items: center; gap: var(--sp-4);
  font-size: var(--fs-xsmall); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-text-soft);
  margin-block: var(--sp-7);
}
.rule-label::before, .rule-label::after { content: ''; flex: 1; height: 1px; background: var(--c-neutral-200); }

/* Trust strip — logo/marquee row */
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-6) var(--sp-8); opacity: .7; }

/* ---------------------------------------------------------------------------
   10. UTILITIES
   --------------------------------------------------------------------------- */
.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; }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.mx-auto     { margin-inline: auto; }
.measure     { max-width: 60ch; }
.measure-narrow { max-width: 46ch; }
.flow > * + * { margin-top: var(--sp-4); }          /* vertical stack rhythm */
.flow-lg > * + * { margin-top: var(--sp-6); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.cluster-center { justify-content: center; }
.stack { display: flex; flex-direction: column; }
.hide-mobile { }
.hide-desktop { display: none; }
@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
  .hide-desktop { display: initial; }
}

.mt-0{margin-top:0}.mt-2{margin-top:var(--sp-2)}.mt-3{margin-top:var(--sp-3)}
.mt-4{margin-top:var(--sp-4)}.mt-5{margin-top:var(--sp-5)}.mt-6{margin-top:var(--sp-6)}.mt-8{margin-top:var(--sp-8)}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:var(--sp-2)}.mb-3{margin-bottom:var(--sp-3)}
.mb-4{margin-bottom:var(--sp-4)}.mb-5{margin-bottom:var(--sp-5)}.mb-6{margin-bottom:var(--sp-6)}.mb-8{margin-bottom:var(--sp-8)}

/* Motion-safe reveal helper (opt-in) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}
