/* ==========================================================================
   Elite Business Solutions — elitebusinesssolutions.io
   Navy/gold brand system. Design intentionally distinct from Bull Creek:
   cool-toned light sections, deep navy bands, gold hairlines, engraved-serif
   display type (Marcellus) to match the EBS logo lettering.
   ========================================================================== */

:root {
  --navy-950: #0a1530;
  --navy-900: #0e1c3c;
  --navy-800: #142850;
  --navy-700: #1c3463;
  --navy-600: #27447c;
  --navy-100: #dbe3f0;
  --gold-600: #b8860b;
  --gold-500: #c89b3c;
  --gold-400: #d9b25c;
  --gold-300: #e8cd8d;
  --ink: #1b2437;
  --ink-soft: #46506a;
  --mist: #f3f5f9;
  --white: #ffffff;
  --line: #d8ddea;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 28, 60, 0.12);
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --max-w: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--navy-900); margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-family: var(--font-body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 0.75em; }

p { margin: 0 0 1em; }
a { color: var(--navy-700); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold-500); color: var(--navy-950); padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* --- Eyebrow + hairline motif ------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: var(--gold-500); }
.band-navy .eyebrow, .hero .eyebrow { color: var(--gold-300); }
.band-navy .eyebrow::before, .hero .eyebrow::before { background: var(--gold-400); }

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46rem; }
.band-navy .lede { color: var(--navy-100); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.25rem; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-display); font-size: 1.12rem; color: var(--navy-900);
  letter-spacing: 0.04em; line-height: 1.15;
}
.brand-name small {
  display: block; font-family: var(--font-body); font-size: 0.62rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-600);
}

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.97rem;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--navy-700); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold-500); color: var(--navy-800); }
.nav .nav-cta {
  background: var(--navy-800); color: #fff; padding: 0.55rem 1.1rem; border-radius: 999px;
  border-bottom: none;
}
.nav .nav-cta:hover { background: var(--navy-700); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 0.6rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: 0.2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1rem;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 0.75rem; text-align: center; border-radius: 10px; }
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem;
  padding: 0.85rem 1.6rem; border-radius: 10px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(160deg, var(--gold-400), var(--gold-500)); color: var(--navy-950); }
.btn-gold:hover { background: linear-gradient(160deg, var(--gold-300), var(--gold-400)); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.hero .btn-outline, .band-navy .btn-outline, .cta-strip .btn-outline { border-color: var(--gold-400); color: var(--gold-300); }
.hero .btn-outline:hover, .band-navy .btn-outline:hover, .cta-strip .btn-outline:hover { background: var(--gold-400); color: var(--navy-950); }
.btn svg { flex: none; }

/* --- Direct-contact CTA trio (core site feature) --------------------------- */
.cta-trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 46rem;
}
.cta-trio .btn { width: 100%; padding: 1rem 0.5rem; font-size: 1.05rem; }
@media (max-width: 640px) {
  .cta-trio { grid-template-columns: 1fr; }
}

/* Sticky mobile contact bar */
.contact-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 110;
  display: none; grid-template-columns: repeat(3, 1fr);
  background: var(--navy-950); border-top: 1px solid var(--navy-700);
  padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom));
  gap: 0.5rem;
}
.contact-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  text-decoration: none; color: var(--gold-300); font-size: 0.78rem; font-weight: 700;
  padding: 0.4rem 0.2rem; border-radius: 8px; background: var(--navy-800);
}
.contact-bar a svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .contact-bar { display: grid; }
  body { padding-bottom: 4.6rem; }
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  background:
    radial-gradient(70rem 40rem at 85% -10%, rgba(200, 155, 60, 0.18), transparent 55%),
    linear-gradient(170deg, var(--navy-900) 0%, var(--navy-950) 70%);
  color: #fff; padding: 3rem 0 5rem;
}
.hero h1 { color: #fff; }
.hero .gold { color: var(--gold-400); }
.hero-logo { max-width: 320px; margin: 0 auto; filter: drop-shadow(0 16px 40px rgba(0,0,0,0.45)); border-radius: 50%; }
.hero p.lede { color: var(--navy-100); }
.hero-note { margin-top: 1.1rem; font-size: 0.95rem; color: var(--gold-300); display: flex; align-items: center; gap: 0.5rem; }
.hero-tagline {
  margin: 1.25rem 0 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.45;
  color: var(--gold-300); max-width: 34rem;
}
/* Client-supplied branded banner (headshot + "We Build Business Solutions" wordmark) */
.hero-banner { margin: 0 0 3rem; }
.hero-banner img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--navy-600);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.hero-copy { max-width: 52rem; }
@media (max-width: 860px) {
  .hero { padding-top: 2rem; }
  .hero-banner { margin-bottom: 2.25rem; }
  .hero-logo { max-width: 220px; }
}

/* --- Sections / bands ------------------------------------------------------ */
.section { padding: 4.5rem 0; }
.band-mist { background: var(--mist); }
.band-navy { background: linear-gradient(165deg, var(--navy-900), var(--navy-950)); color: var(--navy-100); }
.band-navy h1, .band-navy h2, .band-navy h3 { color: #fff; }

.section-head { max-width: 50rem; margin-bottom: 2.5rem; }

/* --- Cards ------------------------------------------------------------------ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: 0 2px 10px rgba(14, 28, 60, 0.05);
}
.card h3 { display: flex; align-items: center; gap: 0.6rem; }
.band-navy .card { background: var(--navy-800); border-color: var(--navy-700); color: var(--navy-100); }
.band-navy .card h3 { color: var(--gold-300); }

.icon-dot {
  flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-900); color: var(--gold-400);
}

/* --- Checklist / feature list ------------------------------------------------ */
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { padding-left: 1.7rem; position: relative; margin-bottom: 0.55rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 0.85em; height: 0.45em;
  border-left: 2px solid var(--gold-500); border-bottom: 2px solid var(--gold-500);
  transform: rotate(-45deg);
}

/* --- Product sections --------------------------------------------------------- */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
  padding: 3.5rem 0; border-top: 1px solid var(--line);
}
.product:first-of-type { border-top: 0; }
.product.flip .product-media { order: 2; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 1.5rem; }
  .product.flip .product-media { order: 0; }
}
.product-media { position: relative; }
.product-kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-600);
  border: 1px solid var(--gold-400); border-radius: 999px; padding: 0.25rem 0.8rem; margin-bottom: 0.9rem;
}
.product-best { font-size: 0.95rem; color: var(--ink-soft); font-style: italic; }

/* --- Rotation viewer (scroll-scrub image sequence) ----------------------------- */
.rotation-viewer {
  position: relative;
  background: radial-gradient(28rem 20rem at 50% 30%, #ffffff, var(--mist) 75%);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
.rotation-viewer img, .rotation-viewer canvas {
  max-width: 88%; max-height: 88%; object-fit: contain; margin: auto;
}
.rotation-viewer canvas { width: 100%; height: 100%; }
.rotation-hint {
  position: absolute; bottom: 0.7rem; left: 50%; transform: translateX(-50%);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); background: rgba(255,255,255,0.85);
  padding: 0.25rem 0.9rem; border-radius: 999px; pointer-events: none;
  display: none;
}
.rotation-viewer.has-sequence .rotation-hint { display: block; }
.rotation-callout {
  position: absolute; top: 0.7rem; left: 0.7rem; right: 0.7rem;
  background: var(--navy-900); color: var(--gold-300);
  font-size: 0.88rem; padding: 0.5rem 0.9rem; border-radius: 8px;
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.rotation-callout.visible { opacity: 1; }

/* --- Comparison table (pricing models) ------------------------------------------ */
.compare { width: 100%; border-collapse: collapse; font-size: 0.97rem; background: #fff; }
.compare th, .compare td { border: 1px solid var(--line); padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; }
.compare thead th { background: var(--navy-900); color: #fff; font-family: var(--font-display); font-weight: 400; letter-spacing: 0.03em; }
.compare tbody th { background: var(--mist); font-weight: 700; width: 11.5rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 700px) { .compare { min-width: 42rem; } }

.note-box {
  border-left: 3px solid var(--gold-500); background: var(--mist);
  padding: 1.1rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}
.note-box strong { color: var(--navy-800); }

/* --- Forms ------------------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.3rem; color: var(--navy-800); }
label .optional { font-weight: 400; color: var(--ink-soft); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-400); outline-offset: 1px; border-color: var(--gold-500); }
textarea { min-height: 9rem; resize: vertical; }

.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; font-weight: 400; color: var(--ink-soft); }
.consent input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; flex: none; }

fieldset.stars { border: 0; padding: 0; margin: 0; }
fieldset.stars legend { font-weight: 700; font-size: 0.92rem; color: var(--navy-800); margin-bottom: 0.3rem; padding: 0; }
.star-row { display: inline-flex; flex-direction: row-reverse; gap: 0.2rem; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-row label { font-size: 1.9rem; color: var(--line); cursor: pointer; margin: 0; line-height: 1; }
.star-row input:checked ~ label,
.star-row label:hover, .star-row label:hover ~ label { color: var(--gold-500); }
.star-row input:focus-visible + label { outline: 2px solid var(--gold-400); border-radius: 4px; }

.form-status { margin-top: 1rem; font-weight: 700; display: none; padding: 1rem 1.25rem; border-radius: 10px; }
.form-status.ok { display: block; background: #eaf4ec; color: #1e5631; border: 1px solid #bcd9c3; }

/* --- Testimonials zero state --------------------------------------------------------- */
.zero-state {
  text-align: center; border: 2px dashed var(--gold-400); border-radius: var(--radius);
  padding: 3rem 1.5rem; background: #fffdf7; max-width: 44rem; margin: 0 auto;
}
.zero-state .big-mark { font-family: var(--font-display); font-size: 4rem; color: var(--gold-400); line-height: 1; }

/* --- About / contact --------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.portrait { border-radius: var(--radius); box-shadow: var(--shadow); }
.portrait-caption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.6rem; text-align: center; }

.pull-quote {
  margin: 2.25rem 0 1.75rem; padding: 0.35rem 0 0.35rem 1.4rem;
  border-left: 3px solid var(--gold-500);
}
.pull-quote p {
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1.45;
  color: var(--navy-800); margin: 0 0 0.5rem;
}
.pull-quote cite { font-style: normal; font-size: 0.92rem; color: var(--ink-soft); }

.contact-channels { display: grid; gap: 1rem; margin: 1.5rem 0; }
.contact-channel {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; color: var(--ink); transition: border-color 0.15s ease, transform 0.12s ease;
}
.contact-channel:hover { border-color: var(--gold-500); transform: translateY(-1px); }
.contact-channel .icon-dot { width: 2.9rem; height: 2.9rem; }
.contact-channel strong { display: block; color: var(--navy-800); font-size: 1.05rem; }
.contact-channel span.sub { font-size: 0.92rem; color: var(--ink-soft); }

.social-row { display: flex; gap: 0.9rem; margin-top: 1rem; }
.social-row a {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; color: var(--navy-800);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem;
}
.social-row a:hover { border-color: var(--gold-500); }

/* --- CTA strip ------------------------------------------------------------------------ */
.cta-strip {
  background:
    radial-gradient(50rem 26rem at 15% 120%, rgba(200, 155, 60, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: #fff; text-align: center; padding: 4rem 1.25rem;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: var(--navy-100); max-width: 40rem; margin: 0 auto 1.75rem; }
.cta-strip .cta-trio { margin: 0 auto; }

/* --- Footer ------------------------------------------------------------------------ */
.site-footer { background: var(--navy-950); color: var(--navy-100); padding: 3.5rem 0 1rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--gold-400); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--navy-100); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }
.footer-badge { width: 110px; border-radius: 50%; margin-bottom: 1rem; }
.footer-bottom {
  border-top: 1px solid var(--navy-700); padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  font-size: 0.85rem; color: #8d9ab8;
}

/* --- Prose (long-form pages) ----------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
