
:root {
  --brand: #0d4f52;
  --brand2: #1c7377;
  --accent: #e0654a;
  --accent2: #c14f38;
  --bg: #ffffff;
  --bg-alt: #f2f6f5;
  --line: #d8e3e2;
  --ink: #16292a;
  --ink-soft: #4b6364;
  --max: 1160px;
  --radius: 8px;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { color: var(--brand2); }
h1, h2, h3 { font-family: var(--font-head); color: var(--brand); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 19px; }
h2.center { text-align: center; }
p { margin: 0 0 1em; max-width: 68ch; }

/* -------------------- Header -------------------- */
.site-header { position: relative; }
.header-top { background: var(--brand); color: #fff; }
.header-top__inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; gap: 16px; flex-wrap: wrap; }
.nav__logo { color: #fff; font-family: var(--font-head); font-size: 20px; font-weight: 700; text-decoration: none; }
.header-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.header-contact__item { color: #eaf4f3; text-decoration: none; font-size: 14px; }
.header-contact__item:hover { text-decoration: underline; }

.site-nav { background: var(--brand2); }
.nav__inner { display: flex; align-items: center; padding: 0 24px; position: relative; }
.navtoggle { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.nav__toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; padding: 12px; cursor: pointer; }
.navtoggle:focus-visible ~ .nav__toggle { outline: 2px solid #fff; outline-offset: 2px; }
.nav__links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; width: 100%; }
.nav__links li { flex: none; }
.nav__links a { display: block; padding: 13px 10px; color: #fff; text-decoration: none; font-size: 14px; }
.nav__links a:hover { background: rgba(255,255,255,.12); }
.nav__call { background: var(--accent); font-weight: 700; margin-left: 4px; padding-right: 16px; flex-shrink: 0; }
.nav__call:hover { background: var(--accent2); }
.sticky-call { display: none; }

/* dropdown -- hover/focus on desktop (scoped below so it can't fight the
   mobile checkbox toggle); on mobile a hidden checkbox + label toggles it
   open/closed instead of forcing it permanently open. */
.has-sub { position: relative; }
.subtoggle { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.sub__toggle { display: none; }
.sub { display: none; position: absolute; left: 0; top: 100%; background: #fff; border-radius: var(--radius);
box-shadow: 0 16px 34px rgba(0,0,0,.18); z-index: 60; }
.sub--mega { min-width: 500px; padding: 16px; }
.sub__flat { list-style: none; margin: 0; padding: 0; column-count: 3; column-gap: 8px; }
.sub__flat li { break-inside: avoid; }
.sub__flat a { display: block; padding: 7px 10px; color: var(--ink); font-size: 14px; border-radius: 6px; }
.sub__flat a:hover { background: var(--bg-alt); color: var(--brand2); }
.sub__all { display: block; margin-top: 8px; padding: 8px 10px 0; border-top: 1px solid var(--line);
color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14px; }
.sub__all:hover { color: var(--brand); }

@media (min-width: 601px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
}

@media (max-width: 900px) {
  .header-contact__item:not(.wc-phone) { display: none; }
}
@media (max-width: 600px) {
  .header-top__inner { padding: 8px 16px; }
  .nav__inner { padding: 0 8px; flex-wrap: wrap; }
  .nav__toggle { display: block; }
  .nav__links { display: none; flex-direction: column; align-items: stretch; width: 100%; }
  .navtoggle:checked ~ .nav__links { display: flex; }
  .nav__links a { padding: 12px 10px; font-size: 14px; }
  .has-sub > a { padding-right: 44px; }
  .sub__toggle { display: flex; align-items: center; justify-content: center;
  position: absolute; top: 0; right: 0; width: 44px; height: 44px; color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer; }
  .sub__toggle::after { content: "+"; }
  .subtoggle:checked ~ .sub__toggle::after { content: "−"; }
  .subtoggle:focus-visible ~ .sub__toggle { outline: 2px solid #fff; outline-offset: -2px; }
  .sub { display: none; position: static; box-shadow: none; border-radius: 0; margin: 4px 0 4px 10px;
  border-left: 2px solid rgba(255,255,255,.3); background: transparent; }
  .subtoggle:checked ~ .sub { display: block; }
  .sub--mega { min-width: 0; padding: 4px 0 4px 8px; }
  .sub__flat { column-count: 1; }
  .sub__flat a { color: #eaf4f3; }
  .sub__flat a:hover { background: rgba(255,255,255,.12); color: #fff; }
  .sub__all { color: #fff; border-top-color: rgba(255,255,255,.3); padding-left: 8px; }
  .sticky-call {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--accent); color: #fff; text-decoration: none;
    font-weight: 700; font-size: 16px; padding: 14px; min-height: 44px;
  }
  body { padding-bottom: 56px; }
}

/* -------------------- Hero -------------------- */
.hero { position: relative; background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%); color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero--photo::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(13,79,82,.94) 0%, rgba(13,79,82,.82) 45%, rgba(13,79,82,.48) 75%, rgba(13,79,82,.18) 100%); }
.hero__inner { padding: 64px 24px; max-width: 780px; }
.hero .hero__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.hero h1 { color: #fff; }
.hero p { color: #eaf4f3; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }

/* -------------------- Photo band (divider) + framed photo -------------------- */
.divider { position: relative; }
.divider__img { width: 100%; height: clamp(190px, 24vw, 300px); object-fit: cover; display: block; filter: brightness(.6) saturate(1.05); }
.divider__cap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 2.4vw, 26px);
  text-align: center; padding: 0 24px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.photoframe { border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px rgba(13,79,82,.20); }
.photoframe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split--photo { align-items: center; }

/* -------------------- Buttons -------------------- */
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--red { background: var(--accent); color: #fff; }
.btn--red:hover { background: var(--accent2); }
/* btn--navy defaults to an outlined brand-teal button -- correct on every
   light background (.section, .section--alt, .phone-strip, .split__side are
   all light). The hero is the one dark-bg exception, overridden below; without
   this the button rendered white-on-white/invisible everywhere else (caught
   2026-08-11 on the homepage "Serving Rowlett" section and the /contact page). */
.btn--navy { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--navy:hover { background: var(--bg-alt); }
.hero .btn--navy { color: #fff; border-color: #fff; }
.hero .btn--navy:hover { background: rgba(255,255,255,.15); }
.btn--outline-ink { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline-ink:hover { border-color: var(--brand2); color: var(--brand2); background: var(--bg-alt); }
.btnrow { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.hero__checklist li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.hero__checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* -------------------- Sections -------------------- */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section__lead { max-width: 68ch; }
.section__lead p:last-child { margin-bottom: 0; }

/* -------------------- Grid / cards -------------------- */
.grid { display: grid; gap: 20px; margin: 24px 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: none; border-top: 4px solid var(--brand2); border-radius: 10px; padding: 22px 20px;
  box-shadow: 0 4px 16px rgba(13,79,82,.08); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13,79,82,.15); }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 8px; }
.card a { font-weight: 700; }
.card__cta { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--bg-alt); color: var(--brand2); font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: background .15s ease, color .15s ease; }
.card__cta:hover { background: var(--brand2); color: #fff; }
.card__cta span { display: inline-block; transition: transform .15s ease; }
.card__cta:hover span { transform: translateX(3px); }

/* -------------------- Link lists -------------------- */
.linklist { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 20px 0; }
@media (max-width: 900px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .linklist { grid-template-columns: 1fr; } }
.area-link { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; text-decoration: none; color: var(--ink); background: #fff; }
.area-link:hover { border-color: var(--brand2); }

/* -------------------- FAQ -------------------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--brand); font-family: var(--font-head); font-size: 17px; }
.faq p { margin-top: 10px; }

/* -------------------- Phone strip -------------------- */
.phone-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; text-align: center; }
.phone-strip .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* -------------------- Cost / symptom table -------------------- */
.cost-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.cost-table th, .cost-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cost-table th { background: var(--bg-alt); font-family: var(--font-head); color: var(--brand); }
.cost-table { display: block; overflow-x: auto; }

/* -------------------- Wave divider (photography placeholder) -------------------- */
.wave-divider { color: var(--brand2); background: var(--bg-alt); line-height: 0; }
.wave-divider--flip svg { transform: scaleY(-1); }
.wave-divider svg { width: 100%; height: 48px; display: block; }

/* -------------------- Split layout (estimate/contact) -------------------- */
.split { display: grid; grid-template-columns: 60fr 40fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__side { padding-top: 8px; }

/* -------------------- Forms -------------------- */
.form-card--teal { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-card--teal h3 { margin-top: 0; }
.form-card--teal .italic { font-style: italic; color: var(--ink-soft); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; min-height: 44px;
}
.field textarea { min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--brand); color: #d9e9e8; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding: 48px 24px 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h3 { color: #fff; font-family: var(--font-body); font-size: 15px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #d9e9e8; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-brand { font-family: var(--font-head); font-size: 20px; color: #fff; font-weight: 700; margin-bottom: 8px; }
.footer-disclaimer { font-size: 13px; opacity: .85; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 18px 24px; font-size: 13px; }
.footer-bottom a { color: #fff; }
