/* ============================================================
   BEPO SERVICES, LLC — brand design system
   Navy #17253F · Gold #BE8A3D · Didone serif + clean sans
   Tagline: SERVE • BUILD • EMPOWER • GROW
   ============================================================ */

:root {
  /* Brand */
  --navy:        #17253F;
  --navy-900:    #0F1A2E;
  --navy-800:    #1C2E4E;
  --navy-700:    #263C63;
  --gold:        #BE8A3D;
  --gold-soft:   #D4A94F;
  --gold-tint:   rgba(190, 138, 61, 0.12);

  /* Neutrals */
  --paper:       #FBFAF7;   /* warm off-white */
  --paper-2:     #F3F1EB;
  --ink:         #1A1F29;
  --ink-soft:    #4A5262;
  --line:        rgba(23, 37, 63, 0.12);
  --white:       #FFFFFF;

  /* Type */
  --serif: "Playfair Display", "Didot", "Bodoni MT", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* System */
  --radius:   14px;
  --radius-lg: 22px;
  --shadow:   0 1px 2px rgba(15, 26, 46, 0.04), 0 12px 32px rgba(15, 26, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 26, 46, 0.16);
  --maxw:     1140px;
  --gutter:   clamp(20px, 5vw, 48px);
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 62ch; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: baseline; gap: 0.08em; font-family: var(--serif); }
.wordmark .b { font-weight: 700; letter-spacing: 0.02em; }
.wordmark .services {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.42em;
  align-self: center;
  transform: translateY(-0.1em);
}
.tagline {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.tagline .dot { color: var(--line); margin-inline: 0.5em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav .brand { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); }
.nav .brand .services { font-size: 0.4em; color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  transition: color 0.2s var(--ease); position: relative;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white) !important;
  padding: 10px 20px; border-radius: 999px; font-weight: 600 !important;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-cta:hover { background: var(--navy-800); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem; padding: 15px 30px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(190,138,61,0.32); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(190,138,61,0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #EAEFF7;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { padding-block: clamp(72px, 13vw, 150px); max-width: 830px; }
.hero .wordmark { color: var(--white); font-size: clamp(2.6rem, 8vw, 5rem); margin-bottom: 8px; }
.hero .wordmark .services { color: var(--gold-soft); }
.hero-tag { margin: 22px 0 26px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem); color: #F5F8FD; letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero h1 em { color: var(--gold-soft); font-style: italic; }
.hero .lead { color: #C4D0E2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.pillar { background: var(--paper); padding: 34px var(--gutter); }
.pillar .k { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin-bottom: 6px; }
.pillar .v { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Section headings ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 68px); }
.sec-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.9rem); color: var(--navy); margin-bottom: 18px; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.product::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(190,138,61,0.4); }
.product:hover::before { opacity: 1; }
.product .badge {
  align-self: flex-start; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); background: var(--gold-tint);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 20px;
}
.product h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.product p { font-size: 0.96rem; color: var(--ink-soft); flex: 1; }
.product .foot { margin-top: 18px; }
.product .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.product .go svg { flex: none; transition: transform 0.25s var(--ease); }
.product:hover .go svg { transform: translateX(4px); }
.product .host { display: block; margin-top: 4px; color: var(--ink-soft); font-weight: 500; font-size: 0.86rem; }

/* ---------- Mission ---------- */
.mission { background: var(--paper-2); }
.mission .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.mission blockquote {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.05rem); line-height: 1.3; color: var(--navy); letter-spacing: -0.01em;
}
.mission blockquote .mark { color: var(--gold); }
.mission .support p { color: var(--ink-soft); }
.mission .support p + p { margin-top: 1em; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%); color: #DCE4F0; }
.contact .grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 76px); align-items: start; }
.contact h2 { font-family: var(--serif); font-weight: 500; color: var(--white); font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 16px; }
.contact .lead { color: #B7C4DA; }
.contact .direct { margin-top: 30px; display: grid; gap: 14px; }
.contact .direct a { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-soft); font-weight: 600; }
.contact .direct .muted { color: #93A2BE; font-weight: 500; }

.form { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 38px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: #C4D0E2; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--white);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); padding: 13px 15px; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #7E8CA6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.09); }
.field textarea { resize: vertical; min-height: 130px; }
.form .btn-gold { width: 100%; justify-content: center; margin-top: 6px; }
.form .fineprint { font-size: 0.8rem; color: #8090AC; margin: 16px 0 0; }
.form .fineprint a { color: var(--gold-soft); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-success {
  display: none; padding: 16px; border-radius: var(--radius);
  background: var(--gold-tint); border: 1px solid rgba(190,138,61,0.4);
  color: var(--gold-soft); font-weight: 600; margin-bottom: 20px;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9FADC4; padding-block: 56px 40px; }
.site-footer .grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.site-footer .brand { font-family: var(--serif); font-size: 1.5rem; color: var(--white); }
.site-footer .brand .services { font-size: 0.4em; color: var(--gold-soft); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 60px; }
.site-footer h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7183A0; margin-bottom: 16px; font-weight: 600; }
.site-footer li { list-style: none; margin-bottom: 10px; }
.site-footer a { color: #B9C6DC; transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .base { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.85rem; color: #6E7E9B; }

/* ---------- Legal pages ---------- */
.legal { background: var(--paper); }
.legal-hero { background: var(--navy); color: #E7EDF6; padding-block: clamp(60px, 9vw, 96px); }
.legal-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.2rem); color: var(--white); margin-bottom: 12px; }
.legal-hero .updated { color: var(--gold-soft); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; }
.legal-body { max-width: 760px; padding-block: clamp(48px, 7vw, 84px); }
.legal-body h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--navy); margin: 44px 0 14px; }
.legal-body h3 { font-size: 1.05rem; color: var(--navy-700); margin: 28px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-body li { list-style: disc; margin-bottom: 8px; }
.legal-body a { color: var(--gold); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.legal-toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 40px; }
.legal-toc h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 700; }
.legal-toc a { color: var(--navy); text-decoration: none; font-weight: 500; }
.legal-toc a:hover { color: var(--gold); }
.legal-toc li { list-style: none; margin-bottom: 7px; }

/* ---------- Motion (progressive enhancement) ----------
   Content is hidden ONLY when JS is present (html.js). With no JS,
   the page renders fully visible — never a blank page behind opacity:0. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .mission .grid, .contact .grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px var(--gutter) 24px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 4px; }
  .nav-cta { justify-content: center; }
}
@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
