/* Bershad Valuation Consulting — site styles
   Palette: deep navy + warm ivory + restrained bronze accent.
   Type: Fraunces (display serif) + Inter (body sans). */

:root {
  /* Brand palette from BVC logo kit: slate #222A32 + rust orange #9A421F */
  --navy:      #222a32;
  --navy-deep: #161c22;
  --ivory:     #f5f3ef;
  --paper:     #fffefb;
  --bronze:    #9a421f;   /* brand rust orange (accent) */
  --bronze-lt: #c2683c;   /* lighter rust for hover on light backgrounds */
  --accent-dark: #f0a566; /* legible lighter orange for small text on dark */
  --ink:       #222a32;
  --muted:     #5c6671;
  --line:      #e4ded3;
  --maxw:      1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,249,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 60px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 16.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  color: var(--navy) !important; border: 1px solid var(--bronze);
  padding: 8px 18px; border-radius: 6px; transition: all .15s;
}
.nav-cta:hover { background: var(--bronze); color: var(--paper) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 1px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: 7px; transition: all .18s; }
.btn-primary { background: var(--bronze); color: #fff; }
.btn-primary:hover { background: var(--bronze-lt); transform: translateY(-1px); }
.btn-ghost { color: var(--paper); border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--ivory);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,137,79,0.22), transparent 68%);
}
.hero-inner { padding: 104px 28px 96px; max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.13em; font-size: 16px; font-weight: 600; color: var(--accent-dark); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); color: #fff; margin-bottom: 26px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: rgba(247,244,238,0.84); max-width: 680px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }
.hero-creds { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; color: rgba(247,244,238,0.7); }
.hero-creds .dot { color: var(--bronze); }

/* ---------- Section scaffolding ---------- */
section { padding: 92px 0; }
.section-eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12.5px; font-weight: 600; color: var(--bronze); margin-bottom: 16px; }
.section-eyebrow.light { color: var(--accent-dark); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--navy); margin-bottom: 48px; max-width: 760px; }
.section-title.light { color: #fff; }

/* ---------- By the numbers ---------- */
.stats { background: var(--paper); padding: 52px 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px; }
.stat:not(:last-child) { border-right: 1px solid var(--line); }
.stat-num { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(2.4rem, 4.6vw, 3.4rem); line-height: 1; color: var(--bronze); }
.stat-label { font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }

/* ---------- Services ---------- */
.services { background: var(--ivory); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 36px 34px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(15,36,56,0.35); border-color: #d8cfbd; }
.card h3 { font-size: 1.42rem; color: var(--navy); margin-bottom: 14px; }
.card h3::before { content: ""; display: block; width: 38px; height: 3px; background: var(--bronze); margin-bottom: 18px; border-radius: 2px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.about-photo {
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(165deg, #2a333d 0%, #222a32 100%);
  box-shadow: 0 22px 50px -28px rgba(15,20,26,0.5);
}
.about-photo picture { display: block; }
.headshot {
  display: block; width: 100%; height: auto;
  transform: scaleX(-1);   /* flip so Ben faces into the page */
}
/* photo background variants */
.about-photo.opt5 { background: radial-gradient(120% 90% at 50% 18%, #ffffff 0%, #ece7dd 70%, #ddd6c8 100%); box-shadow: 0 22px 50px -30px rgba(15,20,26,0.32); }
.about-photo.opt9 { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 44px -30px rgba(15,20,26,0.22); }
.about-title { font-size: clamp(1.6rem, 2.7vw, 2.15rem); }
.about-body .title-line { color: var(--bronze); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; margin-top: -34px; margin-bottom: 26px; }
.about-body p { color: var(--muted); margin-bottom: 18px; font-size: 16px; }
.about-body em { font-style: italic; }
.cred-list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.cred-list li { position: relative; padding-left: 26px; color: var(--ink); font-weight: 500; font-size: 15.5px; }
.cred-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; background: var(--bronze); border-radius: 50%; }

/* ---------- Approach ---------- */
.approach { background: var(--ivory); }
.approach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.approach-item h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 10px; }
.approach-item h3::before { content: ""; display: block; width: 36px; height: 3px; background: var(--bronze); border-radius: 2px; margin-bottom: 14px; }
.approach-item p { color: var(--muted); font-size: 15.5px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--paper); }
.quote-list { display: grid; gap: 28px; max-width: 880px; }
.quote-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 14px;
  padding: 38px 40px 30px; position: relative; overflow: hidden;
}
.quote-card::before {
  content: "\201C"; position: absolute; top: 2px; left: 24px;
  font-family: 'Fraunces', Georgia, serif; font-size: 5.5rem; line-height: 1;
  color: var(--bronze); opacity: 0.22; pointer-events: none;
}
.quote-card blockquote { position: relative; z-index: 1; }
.quote-card blockquote p { color: var(--ink); font-size: 16.5px; margin-bottom: 14px; }
.quote-card blockquote p:last-child { margin-bottom: 0; }
.quote-card figcaption {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.quote-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.18rem; color: var(--navy); }
.quote-meta { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.testimonials-cta { margin-top: 34px; font-size: 15.5px; color: var(--muted); }
.testimonials-cta a { color: var(--bronze); font-weight: 600; text-decoration: none; }
.testimonials-cta a:hover { color: var(--bronze-lt); text-decoration: underline; }
.quote-card .q-hidden { display: none; }
.quote-toggle {
  background: none; border: none; cursor: pointer; padding: 0; margin-top: 14px;
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--bronze);
  position: relative; z-index: 1;
}
.quote-toggle:hover { color: var(--bronze-lt); text-decoration: underline; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--ivory); }
.contact-lede { color: rgba(247,244,238,0.82); max-width: 620px; margin-bottom: 44px; font-size: 1.08rem; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; padding: 26px 24px; transition: all .18s;
}
.contact-card:hover { background: rgba(176,137,79,0.16); border-color: var(--bronze); }
.contact-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--bronze-lt); font-weight: 600; }
.contact-value { color: #fff; font-size: 17px; font-weight: 500; }

/* ---------- Contact form + details ---------- */
.contact-layout { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 52px; align-items: start; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); }
.field label .opt-tag { text-transform: none; letter-spacing: 0; font-weight: 400; color: rgba(245,243,239,0.45); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: #fff;
  padding: 12px 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06);
  transition: border-color .15s, background .15s;
}
.field select { color-scheme: dark; cursor: pointer; }
.field-year select { max-width: 240px; }
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245,243,239,0.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze-lt); background: rgba(255,255,255,0.09); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-submit {
  font-family: inherit; font-weight: 600; font-size: 15px; color: #fff;
  background: var(--bronze); border: none; padding: 14px 30px; border-radius: 8px; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-submit:hover { background: var(--bronze-lt); transform: translateY(-1px); }
.form-note { font-size: 13.5px; color: rgba(245,243,239,0.62); }
.form-note strong { color: rgba(245,243,239,0.9); }
.form-status { font-size: 14px; color: var(--accent-dark); min-height: 1em; }

.contact-aside { display: grid; gap: 26px; padding-top: 4px; }
.contact-line { display: flex; flex-direction: column; gap: 5px; }
.contact-line .contact-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--accent-dark); font-weight: 600; }
.contact-line .contact-value { color: #fff; font-size: 16.5px; font-weight: 500; text-decoration: none; line-height: 1.5; overflow-wrap: anywhere; }
a.contact-value:hover { color: var(--bronze-lt); }
.addr-note { font-size: 13px; color: rgba(245,243,239,0.6); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #1a212a; color: rgba(247,244,238,0.82); padding: 36px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; }
.footer-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.footer-logo { height: 52px; width: auto; display: block; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: rgba(247,244,238,0.92); display: inline-flex; transition: color .15s; }
.footer-social svg { width: 24px; height: 24px; }
.footer-social a:hover { color: var(--bronze-lt); }
.footer-meta { font-size: 14px; }
.footer-admin { color: rgba(247,244,238,0.55); text-decoration: none; }
.footer-admin:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 92px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 6px 28px 22px; box-shadow: 0 18px 30px -22px rgba(15,20,26,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 2px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a.nav-cta { border: 1px solid var(--bronze); border-radius: 6px; margin-top: 16px; padding: 11px 18px; text-align: center; }
  .card-grid, .approach-grid, .contact-cards { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat:not(:last-child) { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .footer-row { flex-direction: column; align-items: center; text-align: center; gap: 22px; }
  .footer-right { flex-direction: column; align-items: center; gap: 16px; }
  .footer-meta { text-align: center; max-width: 340px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 320px; }
  section { padding: 64px 0; }
  .hero-inner { padding: 72px 28px 64px; }
}
