/* ==========================================================================
   RW Bookkeeping & Notary PLLC — site styles
   Dark theme: near-black surfaces + crimson accent (from the logo) on light text.
   ========================================================================== */
:root {
  --bg:          #14151a;   /* page background */
  --bg-soft:     #1b1c23;   /* alternating section background */
  --surface:     #1f2029;   /* cards, forms, callouts, chips */
  --text:        #e8e8ec;   /* body text */
  --text-soft:   #a3a3ad;   /* muted text */
  --heading:     #f5f5f7;   /* headings */
  --crimson:     #c0202e;   /* buttons / accents (brand red, a touch darker) */
  --crimson-hover:#98121f;
  --crimson-lt:  #ef5762;   /* links & accents on dark surfaces */
  --line:        #2c2e37;   /* borders / dividers */
  --gold:        #d8a531;
  --wrap:        1140px;
  --radius:      8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-name {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--heading);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--crimson-lt); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; background: var(--crimson); color: #fff;
  padding: 13px 28px; border-radius: 40px; font-weight: 600; letter-spacing: .3px;
  border: 2px solid var(--crimson); cursor: pointer; font-size: 1rem;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--crimson-hover); border-color: var(--crimson-hover); text-decoration: none; color: #fff; }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(18,19,24,.92);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(180%) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
/* Light (white) logo variant reads directly on the dark header — no tile needed */
.brand-logo { height: 44px; width: auto; }
.brand-name { font-size: 1.15rem; font-weight: 700; color: var(--text); max-width: 15ch; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: var(--text); font-size: .82rem; font-weight: 600; letter-spacing: .6px;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active { color: var(--crimson-lt); border-bottom-color: var(--crimson); text-decoration: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-burger span { width: 26px; height: 3px; background: var(--text); border-radius: 2px; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: clamp(70px, 12vw, 140px) 0;
  background: linear-gradient(rgba(15,16,20,.55), rgba(15,16,20,.72)), url('/wp-content/uploads/2026/07/hero-bg.jpg') center/cover no-repeat, #14151a;
}
.hero h1, .hero .hero-intro { text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.25rem; max-width: 640px; margin: 0 auto 1.6em; color: #f2f2f2; }
.hero .btn { box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.hero-intro { max-width: 860px; margin: 0 auto 1.8em; color: #e8e8ea; font-size: 1.05rem; text-wrap: balance; }

/* ---- Sections ----------------------------------------------------------- */
section { padding: clamp(48px, 7vw, 84px) 0; }
.section-soft { background: var(--bg-soft); }
/* Accent CTA band with a subtle warm-dark tint (red -> dark) */
.section-ink { background: linear-gradient(135deg, #2a1319 0%, #17181f 60%); color: #ececf0; }
.section-ink h2, .section-ink h3 { color: #fff; }
/* About band: the mirror of the CTA (dark -> red) */
.section-about { background: linear-gradient(135deg, #17181f 40%, #2a1319 100%); }
.eyebrow { color: var(--crimson-lt); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px; }
.center { text-align: center; }
.measure { max-width: 860px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.15rem; color: var(--text-soft); text-wrap: balance; }

/* ---- Grid cards --------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.card h3 { color: var(--crimson-lt); }
.card ul { margin: 0; padding-left: 18px; }
.card ul li { margin-bottom: 4px; }
/* Long lists flow into two columns on wider screens to keep cards balanced */
@media (min-width: 700px) {
  .card ul.cols-2 { columns: 2; column-gap: 30px; }
  .card ul.cols-2 li { break-inside: avoid; }
}

/* Feature (service) card with a photo on top and crimson accent beneath it.
   Flex column + margin-top:auto on the CTA keeps the "Learn more" link pinned
   to the bottom, so CTAs line up even when the lists are different lengths. */
.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card .card-media { width: 100%; height: 150px; object-fit: cover; display: block; border-bottom: 3px solid var(--crimson); flex-shrink: 0; }
.service-card .card-pad { padding: 24px 24px 26px; flex: 1 1 auto; display: flex; flex-direction: column; }
.service-card .card-cta { margin: auto 0 0; padding-top: 14px; }

/* Skill chips */
.skill-chip {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--crimson);
  border-radius: 6px; padding: 16px 20px; font-weight: 600; color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.35); display: flex; align-items: center;
}

/* ---- Split (image + text) ---------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.split.reverse .split-media { order: 2; }

/* ---- Steps / process ---------------------------------------------------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { position: relative; padding-left: 60px; min-height: 40px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--crimson); color: #fff; font-weight: 700; display: flex;
  align-items: center; justify-content: center; font-family: Georgia, serif;
}

/* ---- Checklist ---------------------------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--crimson-lt);
  font-weight: 700; font-size: 1.1rem;
}

/* ---- Badges ------------------------------------------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; }
.badges img { height: 96px; width: auto; }

/* ---- Callout / price ---------------------------------------------------- */
.callout {
  background: var(--surface); border-left: 4px solid var(--crimson); border-radius: 6px;
  padding: 20px 24px; box-shadow: 0 1px 3px rgba(0,0,0,.35); margin: 0 0 24px;
}
.price-tag { font-size: 1.05rem; }
.price-tag strong { color: var(--crimson-lt); font-size: 1.15rem; }
.discount { font-style: italic; color: var(--text-soft); }

/* ---- Forms -------------------------------------------------------------- */
.form-note { font-size: .85rem; color: var(--text-soft); }

/* ---- Contact info strip ------------------------------------------------- */
.contact-lines { list-style: none; margin: 0; padding: 0; font-size: 1.05rem; }
.contact-lines li { margin-bottom: 10px; }

/* ---- Full-width photo band (e.g. above the footer on Contact) ----------- */
.photo-band { height: clamp(220px, 34vw, 380px); background-repeat: no-repeat; background-position: center; background-size: cover; }
.contact-band { background-image: linear-gradient(rgba(19,20,25,.35), rgba(19,20,25,.15)), url('/wp-content/uploads/2026/07/contact-banner.jpg'); }
/* Parallax: pin the image so the page scrolls over it (desktop pointers only —
   fixed backgrounds are janky/unsupported on touch, which keep normal scroll) */
@media (min-width: 861px) and (hover: hover) {
  .photo-band { background-attachment: fixed; }
}

/* ---- Footer badges ------------------------------------------------------ */
.footer-badges { background: #0f1013; border-bottom: 1px solid var(--line); padding: 30px 0; }
.footer-badges-label { text-align: center; color: var(--text-soft); text-transform: uppercase; letter-spacing: 2px; font-size: .72rem; margin: 0 0 18px; }
.footer-badges .badges img { height: 102px; width: auto; display: block; }
/* Badges with light/dark artwork get a white chip for contrast... */
.footer-badges .badges img.badge-img {
  background: #fff; border-radius: 10px; padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
/* ...except white-text art (e.g. SIMBA), which sits on the dark footer as-is. */
.footer-badges .badges img.badge-dark { background: transparent; box-shadow: none; padding: 0; }
.footer-badges .badges a { display: inline-flex; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: #0d0e12; color: #b7b7c0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 3fr 4fr 3fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; align-items: start; }
.footer-col h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-col a { color: #b7b7c0; }
.footer-col a:hover { color: #fff; }
.footer-logo { height: 50px; width: auto; margin-top: 18px; }
.footer-names { line-height: 1.9; }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-bottom { border-top: 1px solid #23242b; padding: 18px 0; font-size: .85rem; color: #85858f; text-align: center; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .site-nav { position: absolute; top: 76px; left: 0; right: 0; background: #16171d; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .nav-toggle:checked ~ .site-nav { max-height: 400px; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 14px 0; border-bottom: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .brand-name { display: none; }
}

/* Hide Beaver Builder theme chrome — RW injects its own dark header/footer */
.fl-page-header, .fl-page-header-container, .fl-page-footer-wrap, .fl-page-bar { display: none !important; }
.fl-page-content { padding: 0 !important; }


/* Whole-page background dark (BB theme .fl-page defaults to white) */
html, body, .fl-page, .fl-page-content, .fl-page-content-wrap, .fl-builder-content { background-color: var(--bg) !important; }


/* --- BB module spacing: let full-bleed sections fill the page --- */
.fl-module-content { margin: 0 !important; }
.fl-col-content { padding: 0 !important; }
.fl-row-content-wrap { padding: 0 !important; }

/* --- Readable base type (BB theme renders text small) --- */
html { font-size: 18px; }
body, .fl-page, .fl-builder-content, .fl-module-content { font-size: 1.1rem; line-height: 1.6; }

/* --- Native-module sections (Phase 2): rows carry section bg + padding --- */
.fl-row.section-soft, .fl-row.section-about, .fl-row.section-ink, .fl-row.section-plain { padding: clamp(48px,7vw,84px) 0; }
.fl-row.hero { padding: clamp(70px,12vw,140px) 0; }
.fl-module.rw-center { text-align: center; }

/* Home service-card list text a touch smaller than body */
.service-card ul { font-size: 17.8px; }

/* --- Home service cards built as native columns (Photo + Heading + Text) --- */
.fl-col.service-card { padding: 0 13px 26px !important; }
.fl-col.service-card > .fl-col-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.fl-col.service-card .fl-photo img { width: 100%; height: 150px; object-fit: cover; display: block; border-bottom: 3px solid var(--crimson); }
.fl-col.service-card .fl-module-heading { padding: 20px 22px 0 !important; }
.fl-col.service-card .fl-module-heading .fl-heading { color: var(--crimson-lt); font-size: 1.2rem; }
.fl-col.service-card .fl-module-rich-text { padding: 4px 22px 22px !important; }
/* --- About / Office Helpers portraits --- */
.section-about .fl-photo img { border-radius: var(--radius); }
.section-about .fl-col { padding: 0 18px !important; }

/* --- Ninja Forms: match the dark theme (Request Services form) --- */
.nf-form-cont { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.nf-form-cont .nf-field-label label { color: var(--text) !important; font-weight: 600; }
.nf-form-cont input:not([type=button]):not([type=submit]), .nf-form-cont textarea, .nf-form-cont select {
  background: #16171d !important; color: var(--text) !important; border: 1px solid #3a3c46 !important; border-radius: 6px !important; box-shadow: none !important;
}
.nf-form-cont input:focus, .nf-form-cont textarea:focus, .nf-form-cont select:focus {
  border-color: var(--crimson) !important; box-shadow: 0 0 0 3px rgba(192,32,46,.25) !important; outline: none;
}
.nf-form-cont input[type=button], .nf-form-cont .submit-wrap input {
  background: var(--crimson) !important; color: #fff !important; border: 2px solid var(--crimson) !important;
  border-radius: 40px !important; padding: 12px 30px !important; font-weight: 600 !important; width: auto !important; height: auto !important; cursor: pointer;
}
.nf-form-cont input[type=button]:hover { background: var(--crimson-hover) !important; border-color: var(--crimson-hover) !important; }
.nf-form-cont .nf-form-fields-required { display: none; }
.nf-form-cont .ninja-forms-req-symbol { display: none; }
