/* ===============================================================
   Freedom Septic LLC Global Stylesheet
   =============================================================== */

:root {
  --navy:      #0a2540;
  --navy-2:    #123a63;
  --red:       #c8202f;
  --red-dark:  #a3151f;
  --blue:      #1f6feb;
  --sky:       #e8f1fb;
  --cream:     #f7f9fc;
  --ink:       #172230;
  --muted:     #5b6b7d;
  --line:      #e2e8f0;
  --white:     #ffffff;
  --gold:      #f4b400;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.18);
  --radius:    14px;
  --radius-sm: 8px;
  --wrap:      1160px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display:   'Poppins', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--ink); }

a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red); }

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

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

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--cream); }
.section--navy { background: var(--navy); color: #dbe6f2; }
.section--navy h2, .section--navy h3 { color: #fff; }

.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section--navy .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(200, 32, 47, .3); }
.btn--primary:hover { background: var(--red-dark); color: #fff; box-shadow: 0 12px 26px rgba(200, 32, 47, .4); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); color: #fff; }
.btn--lg { font-size: 1.08rem; padding: 16px 34px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cdddef;
  font-size: .88rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 42px; }
.topbar a { color: #cdddef; }
.topbar a:hover { color: #fff; }
.topbar__left { display: flex; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__badge { color: var(--gold); font-weight: 600; }
@media (max-width: 760px) { .topbar__left .topbar__item--hide { display: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 54px; height: 54px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; box-shadow: var(--shadow-sm); background: #11294a;
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.brand__logo svg { width: 26px; height: 26px; }
.footer-logo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center; display: block; margin-bottom: 16px; box-shadow: var(--shadow-sm); background: #11294a; }
.brand__name { font-family: var(--display); font-weight: 800; color: var(--navy); font-size: 1.16rem; line-height: 1; letter-spacing: -.01em; }
.brand__name span { color: var(--red); }
.brand__tag { font-size: .72rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--display); font-weight: 600; font-size: .96rem; color: var(--navy);
  padding: 10px 15px; border-radius: 8px;
}
.nav__links a:hover { background: var(--sky); color: var(--navy); }
.nav__links a.active { color: var(--red); }
.nav__cta { margin-left: 10px; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; margin: 5px 0; transition: .25s; }

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .3s ease; z-index: -1;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 13px 12px; }
  .nav__cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #eaf2fb; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(31,111,235,.35), transparent 60%),
    linear-gradient(160deg, #0a2540 0%, #0d2c4d 55%, #123a63 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 92px 0; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero__lead { font-size: 1.2rem; color: #bcd0e6; max-width: 560px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px 30px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12); }
.hero__trust div { display: flex; align-items: center; gap: 9px; font-size: .93rem; color: #cddbec; }
.hero__trust svg { width: 20px; height: 20px; color: var(--gold); flex: none; }

.hero__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px; padding: 8px; box-shadow: var(--shadow-lg); backdrop-filter: blur(4px);
}
.hero__illus { border-radius: 14px; overflow: hidden; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; padding: 64px 0; }
  .hero__card { max-width: 460px; }
}

/* Curved bottom divider */
.hero__wave { display: block; width: 100%; height: 60px; margin-top: -1px; }
.hero__wave svg { display: block; width: 100%; height: 100%; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 8px; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--navy); line-height: 1; }
.stat__num span { color: var(--red); }
.stat__label { color: var(--muted); font-size: .95rem; margin-top: 6px; }
@media (max-width: 620px){ .stats { grid-template-columns: repeat(2,1fr); gap: 26px; } }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid--3, .grid--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .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: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0f4; }
.card__icon {
  width: 56px; height: 56px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--sky), #d6e6fb); color: var(--blue);
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card--red .card__icon { background: linear-gradient(135deg,#fde2e4,#f9c9cd); color: var(--red); }

/* feature list */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 8px 0 8px 34px; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 880px){ .split { grid-template-columns: 1fr; gap: 34px; } .split--reverse .split__media { order: 0; } }
.split__media img, .media-frame { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px){ .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step__num {
  counter-increment: step; font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--navy); color: #fff;
}
.step__num::before { content: counter(step); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px){ .gallery { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px){ .gallery { grid-template-columns: 1fr; } }
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3; border: 1px solid var(--line); background: var(--sky); cursor: pointer;
}
.shot img, .shot svg { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shot:hover img, .shot:hover svg { transform: scale(1.06); }
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px; color: #fff;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgba(10,37,64,.85));
}

/* ---------- Testimonials ---------- */

/* ---------- Reviews ---------- */
.review-cta { text-align: center; max-width: 620px; margin: 12px auto 0; padding: 44px 28px; background: var(--cream); border: 1px solid #dbe4ee; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.review-cta__stars { color: var(--gold); font-size: 1.8rem; letter-spacing: 4px; line-height: 1; margin-bottom: 12px; }
.review-cta h3 { margin-bottom: 8px; }
.review-cta p { color: var(--muted); margin: 0 0 22px; }
.review-cta__note { font-size: .9rem; margin: 18px 0 0; }
/* Keeps a dead button off the live site until the real Google link is pasted in. */
.review-cta a[href="GOOGLE_REVIEW_LINK_HERE"] { display: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; border-radius: 22px; padding: 52px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe3e5; max-width: 620px; margin: 0 auto 26px; font-size: 1.1rem; }
.cta-band .btn--primary { background: #fff; color: var(--red); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.cta-band .btn--primary:hover { background: var(--navy); color: #fff; }
@media (max-width: 560px){ .cta-band { padding: 38px 24px; } }

/* ---------- Page banner ---------- */
.pagehead {
  color: #eaf2fb; text-align: center; padding: 74px 0 66px;
  background:
    radial-gradient(900px 400px at 50% -20%, rgba(31,111,235,.4), transparent 60%),
    linear-gradient(160deg, #0a2540, #123a63);
}
.pagehead h1 { color: #fff; margin-bottom: 10px; }
.pagehead p { color: #bcd0e6; max-width: 640px; margin: 0 auto; font-size: 1.12rem; }
.crumbs { font-size: .85rem; color: #9fb6cf; margin-bottom: 16px; letter-spacing: .04em; }
.crumbs a { color: #cddbec; }

/* ---------- Cards used for contact actions ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 36px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* ---------- Call / text / email actions ---------- */
.actions { display: grid; gap: 12px; }
.action {
  display: flex; align-items: center; gap: 14px; padding: 18px 18px;
  border: 1.5px solid #dbe4ee; border-radius: var(--radius-sm); background: #fff;
  text-decoration: none; color: var(--navy);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
/* Colour is pinned so the global `a:hover` cannot recolour the label, which would
   otherwise stay red on mobile because :hover sticks after a tap. */
.action, .action:hover, .action:focus, .action:active { color: var(--navy); }
.action:hover, .action:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.action__icon, .action:hover .action__icon { color: #fff; }
.action__icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
}
.action__icon svg { width: 22px; height: 22px; }
.action__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.action__text strong { font-family: var(--display); font-size: 1.05rem; }
.action__text span { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.action__go { margin-left: auto; font-size: 1.6rem; color: #b9c6d4; flex: none; }
.action--call .action__icon  { background: var(--red); }
.action--text .action__icon  { background: var(--blue); }
.action--email .action__icon { background: var(--navy); }
.action--call:hover  { border-color: var(--red); }
.action--text:hover  { border-color: var(--blue); }
.action--email:hover { border-color: var(--navy); }
.quote-tip {
  margin-top: 20px; padding: 14px 16px; background: var(--cream);
  border: 1px solid #dbe4ee; border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--muted);
}
.quote-tip strong { color: var(--navy); }

/* contact info blocks */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item__icon { width: 46px; height: 46px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--sky); color: var(--blue); }
.info-item__icon svg { width: 24px; height: 24px; }
.info-item h4 { margin: 0 0 2px; font-size: 1rem; }
.info-item p, .info-item a { margin: 0; color: var(--muted); }
.info-item a:hover { color: var(--red); }

/* map placeholder */

/* faq */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__q span.icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 1.2rem; transition: transform .2s; }
.faq__item.open .faq__q span.icon { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 22px 20px; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #071b30; color: #9fb6cf; padding: 62px 0 26px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #9fb6cf; display: block; padding: 5px 0; }
/* Address and hours are information, not links. They used to be `<a href="#">`, which
   jumped the page to the top when tapped. */
.site-footer .footer-info { color: #9fb6cf; display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { color: #8ea6c0; margin-top: 14px; max-width: 300px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; color: #7c95b0; font-size: .85rem; }

/* floating call button (mobile) */
.call-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: none;
  background: var(--red); color: #fff; width: 58px; height: 58px; border-radius: 50%;
  place-items: center; box-shadow: 0 10px 24px rgba(200,32,47,.45);
}
.call-float svg { width: 26px; height: 26px; }
/* Without this the global `a:hover` turns the icon red on a red background, so the
   phone glyph vanishes. Mobile keeps :hover stuck after a tap, which made the button
   look like a blank red dot once a call was cancelled. */
.call-float:hover, .call-float:focus, .call-float:active { color: #fff; }
@media (max-width: 700px){ .call-float { display: grid; } }

/* utility */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===============================================================
   Subtle American-flag accents (applied site-wide)
   =============================================================== */

/* Thin tricolor stripe pinned at the very top of every page */
body::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 200;
  background: linear-gradient(90deg, var(--red) 0 34%, #f4f6f9 34% 66%, var(--blue) 66% 100%);
}

/* Sticky header gets a tricolor bottom edge instead of the plain line */
.site-header {
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--red) 0 40%, #dfe7f0 40% 60%, var(--blue) 60% 100%) 1;
}

/* Footer capped with the same tricolor stripe */
.site-footer {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--red), #f4f6f9, var(--blue)) 1;
}

/* Faint star field over the dark hero + page banners */
.hero::after, .pagehead::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .11;
  background-image: radial-gradient(circle, rgba(255,255,255,.9) 1px, transparent 1.7px);
  background-size: 40px 40px;
}
.hero__grid, .pagehead .wrap { position: relative; z-index: 1; }
.pagehead { position: relative; overflow: hidden; }

/* Faint star field over the red call-to-action band */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .13;
  background-image: radial-gradient(circle, rgba(255,255,255,1) 1px, transparent 1.7px);
  background-size: 32px 32px;
}
.cta-band > * { position: relative; z-index: 1; }

/* Little waving flag next to the top-bar badge */
.topbar__badge::before { content: "🇺🇸"; margin-right: 6px; }

/* Tricolor underline accent beneath section eyebrows */
.eyebrow::after {
  content: ""; display: block; width: 46px; height: 3px; border-radius: 2px; margin-top: 8px;
  background: linear-gradient(90deg, var(--red) 0 40%, #cdd7e3 40% 60%, var(--blue) 60% 100%);
}
.center .eyebrow::after { margin-left: auto; margin-right: auto; }
.section--navy .eyebrow::after { background: linear-gradient(90deg, var(--red) 0 40%, #fff 40% 60%, var(--blue) 60% 100%); }
