/* =========================================================
   Slab Leak Repair Frisco: shared styles
   Plain CSS, no build step. Colors and fonts are CSS variables
   below, so one change re-themes the whole site.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* brand: burnt orange. White text on it is 5.2:1 (passes WCAG AA) */
  --brand:        #c2410c;   /* buttons, links, accents */
  --brand-dark:   #9a3412;   /* hover (7.3:1 with white) */
  --brand-bright: #f97316;   /* decorative bars only, never behind text */
  --brand-tint:   #fff4ec;   /* soft orange background */
  --navy:         #0b2545;   /* header text, dark bands */
  --navy-2:       #13315c;
  --ink:          #0f1b2d;   /* body text */
  --ink-soft:     #475569;   /* secondary text */
  --line:         #e2e8f0;   /* hairlines / borders */
  --bg:           #ffffff;
  --bg-alt:       #f3f6fa;   /* alternating section background */
  --bg-dark:      #0a1f3a;   /* footer / dark band */
  --max:          1180px;    /* content max width */
  --radius:       12px;
  --shadow-sm:    0 1px 2px rgba(11,37,69,.06), 0 2px 8px rgba(11,37,69,.06);
  --shadow-md:    0 10px 30px rgba(11,37,69,.12);
  --font-head: 'Barlow', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E");
  --icon-drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5s-7 7.6-7 12.3A7 7 0 0 0 19 14.8C19 10.1 12 2.5 12 2.5z'/%3E%3C/svg%3E");
  --img-drop-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2.5s-7 7.6-7 12.3A7 7 0 0 0 19 14.8C19 10.1 12 2.5 12 2.5z'/%3E%3C/svg%3E");
  --img-check-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a1f3a'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  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.08; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 800; margin-bottom: .6em; }
h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .35em; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
a  { color: var(--brand); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }

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

:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }

/* section titles get a short orange bar underneath */
.section h2::after, .article h1::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
  background: var(--brand-bright); margin-top: 14px;
}
.center h2::after, h2.center::after { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--brand);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: .01em;
  border: 2px solid var(--brand);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(194,65,12,.28);
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover {
  background: var(--brand-dark); border-color: var(--brand-dark); color: #fff;
  text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(154,52,18,.32);
}
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); box-shadow: none; }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--lg { padding: 17px 34px; font-size: 1.08rem; }

/* phone icon on every phone button */
.btn.wc-phone::before, .nav__call::before {
  content: ""; width: 1.05em; height: 1.05em; flex: none;
  background: currentColor; -webkit-mask: var(--icon-phone) center/contain no-repeat; mask: var(--icon-phone) center/contain no-repeat;
}

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

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-top: 5px solid var(--brand-bright);
  box-shadow: 0 2px 14px rgba(11,37,69,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 20px; max-width: var(--max); margin: 0 auto;
}
.nav__logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.nav__logo:hover { text-decoration: none; }
.nav__logo::before {
  content: ""; width: 36px; height: 36px; flex: none; border-radius: 9px;
  background: var(--brand) var(--img-drop-white) center/20px no-repeat;
}
.nav__logo strong {
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em;
  text-transform: uppercase; line-height: 1;
}
.nav__logo img { max-height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav__links a { color: var(--navy); font-weight: 600; font-size: .96rem; }
.nav__links a:hover { 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-top: 3px solid var(--brand-bright);
  border-radius: 0 0 10px 10px;
  min-width: 260px; padding: 8px 0; box-shadow: var(--shadow-md);
}
/* 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; }
.dropdown a:hover { background: var(--brand-tint); color: var(--brand-dark); }

.nav__call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff !important;
  padding: 11px 18px; border-radius: 8px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(194,65,12,.28);
}
.nav__call:hover { background: var(--brand-dark); text-decoration: none; }

/* mobile nav toggle */
.nav__toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--navy); }
@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-md); }
  .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; }
  .nav__logo strong { font-size: 1.1rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; border-bottom: 6px solid var(--brand-bright); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(10,31,58,.95) 0%, rgba(10,31,58,.86) 42%, rgba(10,31,58,.45) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 120px 20px 110px; }
.hero__eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700;
  color: #fff; background: var(--brand); padding: 7px 14px; border-radius: 999px; margin-bottom: 6px;
}
.hero h1 { color: #fff; margin: 14px 0 18px; max-width: 16ch; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero p { color: rgba(255,255,255,.92); font-size: 1.2rem; max-width: 48ch; }
.hero p.hero__eyebrow { color: #fff; font-size: .8rem; }
.hero__cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .btn--ghost { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; box-shadow: none; backdrop-filter: blur(2px); }
.hero .btn--ghost:hover { background: #fff; color: var(--navy) !important; }
@media (max-width: 600px) { .hero__inner { padding: 72px 20px 64px; } .hero p { font-size: 1.05rem; } }

/* trust strip under the hero (added by main.js) */
.trust-strip { background: var(--navy); color: #fff; }
.trust-strip ul {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
  max-width: var(--max); margin: 0 auto; padding: 16px 20px;
}
@media (max-width: 600px) { .trust-strip ul { flex-direction: column; align-items: flex-start; gap: 10px; } }
.trust-strip li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.trust-strip li::before {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--brand-bright) var(--img-check-navy) center/14px no-repeat;
}

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.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.06rem; }
.center { text-align: center; }
.center .section__lead { margin: 0 auto; }

/* full-width photo bands between sections */
.section[style*="padding:18px 0"] img {
  border-radius: 16px !important; box-shadow: var(--shadow-md);
  max-height: 460px; object-fit: cover;
}

/* 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; margin-top: 8px; }
.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 {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 4px solid var(--brand-bright);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.section--alt .card { background: #fff; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
/* icon badge on feature cards */
.grid .card h3::before {
  content: ""; display: block; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 10px;
  background: var(--brand-tint);
  box-shadow: inset 0 0 0 1px rgba(194,65,12,.15);
}
.grid .card h3::after {
  content: ""; position: absolute; top: 40px; left: 40px; width: 20px; height: 20px;
  background: var(--brand);
  -webkit-mask: var(--icon-drop) center/contain no-repeat; mask: var(--icon-drop) center/contain no-repeat;
}
.grid--2 .card h3::after {
  -webkit-mask-image: var(--icon-check); mask-image: var(--icon-check);
}
.team-grid .card h3::before, .team-grid .card h3::after { display: none; }

/* service / area link list */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin-top: 8px; }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }
.linklist a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--brand-bright);
  border-radius: 10px; background: #fff; color: var(--navy); font-weight: 700; box-shadow: var(--shadow-sm);
  transition: background .15s ease, color .15s ease;
}
.linklist a::after { content: "\2192"; color: var(--brand); font-weight: 700; }
.linklist a:hover { background: var(--brand); border-color: var(--brand); color: #fff; text-decoration: none; }
.linklist a:hover::after { color: #fff; }

/* cost table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .96rem; }
th { background: var(--navy); color: #fff; font-family: var(--font-body); font-weight: 700; }
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: var(--shadow-sm);
}
.faq details[open] { border-left: 4px solid var(--brand-bright); }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); padding: 18px 40px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; background: var(--brand); color: #fff; }
.faq details > p { padding-bottom: 18px; margin-bottom: 0; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(249,115,22,.35), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--bg-dark) 100%);
  color: #fff; text-align: center; padding: 80px 20px;
  border-top: 6px solid var(--brand-bright);
}
.cta-band h2 { color: #fff; }
.cta-band h2::after { margin-left: auto; margin-right: auto; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 62ch; margin-left: auto; margin-right: auto; }
.cta-band .btn { background: var(--brand); color: #fff; border-color: var(--brand); font-size: 1.2rem; padding: 19px 38px; }
.cta-band .btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* ---------- estimate / contact form ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--brand-bright);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 22px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1.5px solid #cbd5e1; 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); box-shadow: 0 0 0 4px rgba(249,115,22,.18);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.8); padding: 64px 0 28px; border-top: 6px solid var(--brand-bright); }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.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,.82); font-size: .93rem; font-weight: 400; }
.site-footer a:hover { color: #fff; }
.site-footer a.wc-phone { color: #fdba74; font-weight: 700; font-size: 1.05rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-disclaimer { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 10px; line-height: 1.5; }

/* ---------- article pages (about, FAQ, team, careers, legal) ---------- */
.article { max-width: 820px; }
.article h1 { margin-bottom: 18px; }
.article h2 { margin-top: 40px; }
.article h3 { margin-top: 26px; }
.article ul, .article ol { margin: 0 0 1rem 1.3em; color: var(--ink-soft); }
.article li { margin-bottom: .45rem; }
.article li::marker { color: var(--brand); }
.article__lead { font-size: 1.12rem; }
.article__date { margin-top: -4px; }
.faq-page h2 { font-size: 1.4rem; margin-top: 34px; }
.contact-list { list-style: none; margin: 22px 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.team-grid { margin-top: 24px; }
.team-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }
.team-card .role { color: var(--brand); font-weight: 700; font-size: .9rem; margin-bottom: 8px; }

/* phone link: class is a stable hook for call-tracking number swaps */
.wc-phone { font-weight: 700; }

/* ---------- mobile call bar (added by main.js) ---------- */
.call-bar { display: none; }
@media (max-width: 700px) {
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--navy); box-shadow: 0 -6px 20px rgba(0,0,0,.18);
  }
  .call-bar .btn { padding: 13px 10px; font-size: .98rem; box-shadow: none; }
  .call-bar .btn--alt { background: #fff; border-color: #fff; color: var(--navy); }
  .call-bar .btn--alt:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--navy); }
  body.has-call-bar { padding-bottom: 76px; }
}
