/* ============================================================
   Houston Drainage Help — Brand Stylesheet
   Colors: Navy #1B3A5C | Teal #2E8B8B | White | Gray accents
   Font: Inter (Google Fonts)
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1B3A5C;
  --navy-dark:  #122840;
  --navy-mid:   #234b73;
  --teal:       #2E8B8B;
  --teal-light: #3AAFA9;
  --teal-bg:    #EAF6F6;
  --teal-pale:  #F0FAFA;
  --gold:       #C8950A;
  --gray-dark:  #1F2937;
  --gray-mid:   #4B5563;
  --gray-light: #F3F4F6;
  --gray-line:  #E5E7EB;
  --white:      #FFFFFF;
  --red:        #DC2626;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.10);
  --shadow-md:  0 4px 12px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 30px rgba(0,0,0,.16);
  --radius:     8px;
  --radius-lg:  14px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a  { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: 1rem; }
p  { margin-bottom: 1rem; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-lg { padding: 6rem 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}
.btn-lg { padding: .95rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Navigation ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}
.logo svg { flex-shrink: 0; }
.logo span { color: var(--teal-light); }
.logo:hover { text-decoration: none; color: var(--white); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.site-nav a:hover { color: var(--teal-light); text-decoration: none; }

.header-phone {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  background: var(--teal);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s;
}
.header-phone:hover { background: var(--teal-light); text-decoration: none; color: var(--white); }

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #1a4a6e 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232E8B8B' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .6;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(46,139,139,.25);
  border: 1px solid rgba(58,175,169,.4);
  color: var(--teal-light);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .75rem;
  border-radius: 20px;
  margin-bottom: 1.1rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.5rem;
  max-width: 520px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
}
.trust-chip {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  padding: .3rem .7rem;
  border-radius: 20px;
}
.trust-chip svg { flex-shrink: 0; }

/* Lead Form Card */
.hero-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.hero-form-card h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: .3rem;
}
.hero-form-card .form-sub {
  font-size: .82rem;
  color: var(--gray-mid);
  margin-bottom: 1.2rem;
}
.form-group { margin-bottom: .9rem; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: .3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .85rem;
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  color: var(--gray-dark);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46,139,139,.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-privacy {
  font-size: .72rem;
  color: var(--gray-mid);
  text-align: center;
  margin-top: .6rem;
}

/* ── Problem Section ──────────────────────────────────────── */
.problem-section { background: var(--gray-light); }
.section-tag {
  display: inline-block;
  background: var(--teal-bg);
  color: var(--teal);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .8rem;
  border-radius: 20px;
  margin-bottom: .75rem;
}
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: .6rem; }
.section-header p { color: var(--gray-mid); max-width: 600px; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.problem-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  border-top: 3px solid var(--teal);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.problem-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.problem-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.problem-icon svg { color: var(--teal); }
.problem-card h4 { margin-bottom: .4rem; color: var(--navy); }
.problem-card p  { font-size: .88rem; color: var(--gray-mid); margin: 0; }

/* ── Solutions Grid ───────────────────────────────────────── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.solution-card {
  background: var(--white);
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.solution-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.solution-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.solution-card h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.solution-card p  { font-size: .88rem; color: var(--gray-mid); margin-bottom: 1rem; }
.solution-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

/* ── Houston Context Section ──────────────────────────────── */
.houston-section { background: var(--navy); color: var(--white); }
.houston-section h2 { color: var(--white); }
.houston-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-number { font-size: 2rem; font-weight: 800; color: var(--teal-light); line-height: 1; }
.stat-label  { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: .3rem; }

.area-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .75rem;
  margin-top: 1rem;
}
.area-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
}

/* ── How It Works ─────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 2rem;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: var(--teal-bg);
}
.step-card { text-align: center; position: relative; }
.step-number {
  width: 56px;
  height: 56px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 1.1rem;
  position: relative;
  z-index: 1;
}
.step-card h3 { margin-bottom: .5rem; }
.step-card p  { font-size: .9rem; color: var(--gray-mid); }

.how-note {
  margin-top: 2.5rem;
  background: var(--teal-bg);
  border: 1px solid rgba(46,139,139,.2);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .88rem;
  color: var(--gray-mid);
}
.how-note strong { color: var(--navy); }

/* ── FAQ Section ──────────────────────────────────────────── */
.faq-section { background: var(--gray-light); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  border: 1px solid var(--gray-line);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  font-family: inherit;
  transition: background .15s;
}
.faq-question:hover { background: var(--teal-pale); }
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--teal-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 700;
  transition: transform .25s, background .15s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--teal); color: var(--white); }
.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  font-size: .92rem;
  color: var(--gray-mid);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.25rem;
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.9); max-width: 520px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 3rem 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .85rem;
}
.footer-logo span { color: var(--teal-light); }
.footer-desc { font-size: .85rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-disclaimer {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: .75rem;
  margin-top: .5rem;
}
.footer-col h4 { color: var(--white); font-size: .9rem; margin-bottom: .85rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { font-size: .85rem; color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* ── Service Page Specifics ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 600px; }
.breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .85rem;
}
.breadcrumb a { color: var(--teal-light); }
.breadcrumb span { margin: 0 .4rem; }

.content-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
  padding: 3.5rem 0;
}
.prose h2 { margin-top: 2rem; margin-bottom: .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; margin-bottom: .5rem; color: var(--navy); }
.prose ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: .35rem; font-size: .95rem; color: var(--gray-mid); }
.prose strong { color: var(--gray-dark); }

.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .9rem;
}
.cost-table th {
  background: var(--navy);
  color: var(--white);
  padding: .7rem 1rem;
  text-align: left;
  font-weight: 600;
}
.cost-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--gray-line); }
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) td { background: var(--gray-light); }

.sidebar-card {
  background: var(--white);
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.sidebar-card-header {
  background: var(--navy);
  color: var(--white);
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
}
.sidebar-card-body { padding: 1.25rem; }
.sidebar-phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  padding: .9rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: background .2s;
  justify-content: center;
}
.sidebar-phone:hover { background: var(--teal-light); text-decoration: none; color: var(--white); }

.info-box {
  background: var(--teal-bg);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
  font-size: .9rem;
  color: var(--gray-mid);
}
.info-box strong { color: var(--navy); display: block; margin-bottom: .3rem; }

.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .4rem 0;
  font-size: .9rem;
  color: var(--gray-mid);
  border-bottom: 1px solid var(--gray-line);
}
.checklist li:last-child { border-bottom: none; }
.check-icon { color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* ── Quote Page ───────────────────────────────────────────── */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
  padding: 3.5rem 0 5rem;
}
.quote-form-card {
  background: var(--white);
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

/* ── Thank You Page ───────────────────────────────────────── */
.thankyou-section { padding: 6rem 0; text-align: center; }
.thankyou-icon {
  width: 80px; height: 80px;
  background: var(--teal-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid    { grid-template-columns: 1fr; }
  .hero-form-card { max-width: 520px; }
  .houston-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .problem-grid     { grid-template-columns: 1fr 1fr; }
  .solutions-grid   { grid-template-columns: 1fr 1fr; }
  .steps-grid       { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .content-sidebar-grid { grid-template-columns: 1fr; }
  .quote-grid       { grid-template-columns: 1fr; }
  .sidebar-card     { position: static; }
  .site-nav         { display: none; }
  .footer-grid      { grid-template-columns: 1fr; }
  .footer-bottom    { flex-direction: column; text-align: center; }
  .stat-grid        { grid-template-columns: 1fr 1fr; }
  .area-list        { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .problem-grid   { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 2rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
