/* Texas Drainage Inc. — site styles */
:root {
  --navy: #040665;
  --navy-dark: #02033f;
  --red: #d61f1f;
  --ink: #1f2328;
  --muted: #5b6470;
  --line: #dfe3e8;
  --bg-soft: #f4f6f9;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

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

a { color: var(--navy); }
a:hover { color: var(--red); }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.45rem; margin-top: 1.8em; }
h3 { font-size: 1.15rem; margin-top: 1.6em; }
p { margin: 0 0 1.1em; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 150px; }
.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--navy);
}
.header-phone { text-align: right; font-size: .95rem; color: var(--muted); line-height: 1.3; }
.header-phone a {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.site-nav { background: var(--navy); }
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 24px;
  max-width: var(--max);
  display: flex;
  flex-wrap: wrap;
}
.site-nav a {
  display: block;
  padding: 13px 18px;
  color: #fff;
  text-decoration: none;
  font-size: .97rem;
}
.site-nav a:hover { background: var(--navy-dark); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--navy-dark); box-shadow: inset 0 -3px 0 var(--red); }

/* Page content */
main { padding: 48px 0 64px; }
.lead { font-size: 1.15rem; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.split img { border-radius: 4px; width: 100%; }

.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero .split { padding-top: 56px; padding-bottom: 56px; align-items: center; }
.hero h1 { font-size: 2.4rem; }
.hero h1 small {
  display: block;
  font-size: 1.05rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  margin: 6px 10px 0 0;
}
.btn:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 10px 20px; }
.btn-outline:hover { background: var(--navy); color: #fff; }

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.points li {
  border-top: 3px solid var(--navy);
  padding-top: 14px;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.1rem;
}

.box {
  background: var(--bg-soft);
  border-left: 4px solid var(--navy);
  padding: 22px 26px;
  border-radius: 0 4px 4px 0;
}
.box h2, .box h3 { margin-top: 0; }

.note { font-size: .92rem; color: var(--muted); }

.cta-band { background: var(--navy); color: #fff; }
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 32px;
  flex-wrap: wrap;
}
.cta-band p { margin: 0; font-size: 1.2rem; }
.cta-band a { color: #fff; font-weight: 700; font-size: 1.3rem; text-decoration: none; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.gallery a { display: block; overflow: hidden; border-radius: 4px; background: var(--bg-soft); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.03); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: inline-block; width: 90px; color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #c9cbe0;
  font-size: .92rem;
  padding: 28px 0;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: #fff; }

/* Mobile */
@media (max-width: 800px) {
  body { font-size: 16px; }
  .split, .points { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .brand img { width: 110px; }
  .brand span { display: none; }
  .site-nav ul { padding: 0 8px; }
  .site-nav a { padding: 10px 12px; font-size: .9rem; }
  .hero .split { padding-top: 36px; padding-bottom: 36px; }
  .hero h1 { font-size: 1.9rem; }
  h1 { font-size: 1.75rem; }
  main { padding: 32px 0 48px; }
}
