/* =========================================================
   Basement Waterproofing Towson — site styles
   Plain CSS, no build step. Edit freely.
   Brand color and font are driven by CSS variables below so
   a single change re-themes the whole site.
   ========================================================= */

:root {
  --brand:        #fdcb6e;   /* primary brand: CTAs, accents, highlights */
  --brand-dark:   #f0ac2b;   /* deeper amber for hovers */
  --brand-soft:   #fff5e0;   /* tinted amber wash for light panels */
  --ink:          #101c2b;   /* body headings / text on light */
  --ink-soft:     #4c5a6b;   /* secondary text */
  --line:         #e2e8f0;   /* hairlines / borders */
  --bg:           #ffffff;
  --bg-alt:       #f5f7fa;   /* alternating section background */
  --bg-dark:      #12233a;   /* footer / dark bands */
  --bg-darker:    #0b1725;   /* top utility bar */
  --max:          1160px;    /* content max width */
  --radius:       10px;
  --shadow:       0 12px 30px rgba(16, 28, 43, .10);
  --shadow-lg:    0 22px 50px rgba(16, 28, 43, .16);
  --font-head: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: .55em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .35em; letter-spacing: -.01em; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
a  { color: #b5750a; text-decoration: none; }   /* amber family, darkened for readable body links */
a:hover { text-decoration: underline; }

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

/* accent rule above the main heading of a section */
.section > .wrap > h2::before,
.section > .wrap > h1::before,
.cta-band h2::before {
  content: ""; display: block; width: 52px; height: 5px;
  background: var(--brand); border-radius: 3px; margin-bottom: 18px;
}
.cta-band h2::before, .center h2::before { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #0b1725;                 /* black text on amber: ~10:1 contrast */
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(240, 172, 43, .32);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover {
  background: var(--brand-dark); color: #0b1725;
  text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(240, 172, 43, .42);
}
.btn--ghost {
  background: transparent; color: var(--ink); border: 2px solid var(--ink);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--lg { padding: 18px 38px; font-size: 1.06rem; }
/* secondary "browse" links sit bare in a section; primary CTAs sit in their own <p> */
.section > .wrap > .btn:not(.btn--ghost) {
  background: transparent; color: var(--ink); border: 2px solid var(--line); box-shadow: none;
}
.section > .wrap > .btn:not(.btn--ghost):hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.muted { color: var(--ink-soft); font-size: .9rem; }

/* ---------- top utility bar ---------- */
.topbar { background: var(--bg-darker); color: rgba(255,255,255,.72); font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 20px; }
.topbar__items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.topbar__phone { color: #fff; }
.topbar__phone:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 780px) {
  .topbar__items { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(16,28,43,.05);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 20px; max-width: var(--max); margin: 0 auto;
}
.nav__logo { color: var(--ink); font-family: var(--font-head); letter-spacing: -.02em; }
.nav__logo strong { font-size: 1.08rem; font-weight: 800; }
.nav__logo:hover { text-decoration: none; }
.nav__logo img { max-height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav__links > li > a {
  color: var(--ink); font-weight: 600; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav__links > li > a:hover { color: var(--ink); border-bottom-color: var(--brand); text-decoration: none; }

/* dropdown for services */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 260px; padding: 8px 0; box-shadow: var(--shadow);
}
/* invisible bridge: fills the gap between the menu item and the dropdown
   so hover isn't lost when the mouse travels down into the submenu */
.has-dropdown::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; display: none;
}
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a {
  display: block; padding: 10px 18px; font-size: .93rem;
  color: var(--ink); text-transform: capitalize; font-weight: 500;
  border-left: 3px solid transparent;
}
.dropdown a:hover { background: var(--brand-soft); border-left-color: var(--brand); text-decoration: none; }

.nav__call {
  background: var(--brand); color: #0b1725 !important;
  padding: 11px 20px; border-radius: var(--radius); font-weight: 700;
  box-shadow: 0 6px 16px rgba(240,172,43,.32);
  transition: background .15s ease, transform .15s ease;
}
.nav__call:hover { background: var(--brand-dark); transform: translateY(-1px); text-decoration: none; }

/* mobile nav toggle */
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px;
    box-shadow: var(--shadow); }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 8px 0; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: 0; }
  .nav__toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(11,23,37,.93) 0%, rgba(11,23,37,.76) 45%, rgba(11,23,37,.30) 100%),
    linear-gradient(180deg, rgba(11,23,37,.25), rgba(11,23,37,.5));
}
.hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 104px 20px 96px; }
.hero p.hero__eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 700; color: #0b1725; background: var(--brand);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 0;
}
.hero h1 { color: #fff; margin: 18px 0 16px; max-width: 17ch; }
.hero h1::after {
  content: ""; display: block; width: 96px; height: 6px; border-radius: 3px;
  background: var(--brand); margin-top: 22px;
}
.hero p { color: rgba(255,255,255,.92); font-size: 1.18rem; max-width: 48ch; margin-top: 20px; }
.hero__cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.2);
}
.hero__badges li {
  display: flex; align-items: center; gap: 9px;
  color: rgba(255,255,255,.92); font-weight: 600; font-size: .95rem;
}
.hero__badges li::before {
  content: "\2713"; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: #0b1725;
  font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 700px) { .hero__inner { padding: 68px 20px 60px; } }
@media (max-width: 560px) {
  .hero p.hero__eyebrow { font-size: .7rem; letter-spacing: .08em; padding: 6px 12px; }
  .hero h1::after { margin-top: 16px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { text-align: center; }
  .hero__badges { gap: 10px; flex-direction: column; }
}

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.82); }
.section__lead { max-width: 68ch; font-size: 1.05rem; }
.section > .wrap > p { max-width: 72ch; }
.center { text-align: center; }
.center .section__lead { margin: 0 auto; }

/* interior page heading band (pages without a hero) */
.site-header + .section {
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  padding-top: 66px;
}
.site-header + .section h1, .site-header + .section > .wrap > h2 { color: #fff; }
.site-header + .section > .wrap p { color: rgba(255,255,255,.85); }
.site-header + .section > .wrap .muted { color: rgba(255,255,255,.6); }
.site-header + .section > .wrap .wc-phone { color: var(--brand); }
/* cards and form panels inside that band keep their light-surface text colors */
.site-header + .section .card p, .site-header + .section .form-card p { color: var(--ink-soft); }
.site-header + .section .card h3 { color: var(--ink); }

/* photo blocks between sections */
.section > .wrap > img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* feature / why-us grid */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 2px 8px rgba(16,28,43,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7dee8; }
.card h3 { text-transform: capitalize; }
.card h3::before {
  content: ""; display: block; width: 34px; height: 4px; border-radius: 2px;
  background: var(--brand); margin-bottom: 14px;
}
.card p:last-child { margin-bottom: 0; }
.card a { font-weight: 700; }

/* ---------- rich text (policy / info pages) ---------- */
.rte { max-width: 78ch; }
.rte h3 { margin-top: 30px; }
.rte h3:first-child { margin-top: 0; }
.rte ul, .rte ol { margin: 0 0 1.1rem 1.2rem; color: var(--ink-soft); }
.rte li { margin-bottom: .5rem; }
.rte li:last-child { margin-bottom: 0; }
.rte p:last-child, .rte ul:last-child, .rte ol:last-child { margin-bottom: 0; }
.rte a { font-weight: 600; }
.rte strong { color: var(--ink); }

/* callout panel for "how to reach us" style blocks */
.callout {
  background: var(--brand-soft); border: 1px solid #f5e3bd; border-left: 5px solid var(--brand);
  border-radius: var(--radius); padding: 24px 26px; margin-top: 28px; max-width: 78ch;
}
.callout h3 { margin-bottom: .5em; }
.callout p:last-child { margin-bottom: 0; }

/* team cards */
.team-card h3::before { display: none; }
.team-card__avatar {
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--brand); color: #0b1725;
  font-weight: 800; font-size: 1.15rem; letter-spacing: .02em;
  margin-bottom: 18px;
}
.team-card__role {
  text-transform: uppercase; letter-spacing: .06em; font-size: .78rem;
  font-weight: 700; color: #b5750a; margin-bottom: .8rem;
}

/* numbered process steps */
.steps { list-style: none; counter-reset: step; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-dark); color: var(--brand);
  font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.05rem; }

/* service / area link list */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }
.linklist a {
  display: block; padding: 16px 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 700;
  text-transform: capitalize;
  border-left: 4px solid var(--brand);
  transition: transform .15s ease, box-shadow .15s ease;
}
.linklist a:hover { transform: translateX(3px); box-shadow: var(--shadow); text-decoration: none; }

/* cost table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: .96rem; }
th {
  background: var(--bg-dark); color: #fff; font-family: var(--font-body);
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .82rem;
}
tbody tr:nth-child(even) { background: var(--bg-alt); }
td:nth-child(2), td:nth-child(3) { font-weight: 700; color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 22px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(16,28,43,.04);
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  cursor: pointer; font-weight: 700; font-family: var(--font-head); color: var(--ink);
  font-size: 1.08rem; padding: 18px 0; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand-dark); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: 18px; margin-bottom: 0; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  color: #fff; text-align: center; padding: 74px 20px;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .10;
  background: repeating-linear-gradient(135deg, transparent 0 22px, var(--brand) 22px 24px);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 62ch; margin-left: auto; margin-right: auto; }
.cta-band p:has(> .btn) { display: inline-block; margin: 0 8px; }
.cta-band .btn { background: var(--brand); color: #0b1725; }
.cta-band .btn:hover { background: #fff; }
.cta-band .btn--lg { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); box-shadow: none; }
.cta-band .btn--lg:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .muted { color: rgba(255,255,255,.7) !important; }

/* ---------- estimate / contact form ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-lg); border-top: 5px solid var(--brand);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; color: var(--ink);
  text-transform: uppercase; letter-spacing: .04em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(253,203,110,.35);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-dark); color: rgba(255,255,255,.8); padding: 66px 0 28px;
  border-top: 5px solid var(--brand);
}
.site-footer h4 {
  color: #fff; margin-bottom: 16px; font-family: var(--font-body); font-size: .95rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.8); font-size: .93rem; }
.site-footer a:hover { color: var(--brand); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 44px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-disclaimer { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 10px; line-height: 1.5; }

/* phone link — class is a stable hook for WhatConverts dynamic number insertion */
.wc-phone { font-weight: 700; }
.site-footer .wc-phone, .cta-band .wc-phone { color: var(--brand); }

/* respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover, .btn:hover, .linklist a:hover, .nav__call:hover { transform: none; }
}
