/*
Theme Name: Lewisville Sprinkler
Theme URI: https://sprinklerrepairlewisville.com/
Author: Sprinkler Repair Lewisville
Description: Lawn sprinkler repair for Lewisville, Texas. White page, blue type, quiet photo rows.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: lewisville-sprinkler
*/

:root {
  --ink: #1c2430;
  --muted: #5c6b7c;
  --paper: #f5f7fa;
  --sheet: #ffffff;
  --line: #e3e9f0;
  --blue: #1f5fbf;
  --blue-dark: #143e86;
  --wash: #eef3f9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3, .brand strong, .call-block strong, .app a strong {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 14px; color: var(--ink); }
h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 10px; }
h3 { font-size: 20px; margin: 0 0 6px; }
p { margin: 0 0 12px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 5; }

.mast {
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  padding: 12px 22px;
  color: var(--ink);
  text-decoration: none;
}
.brand small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand strong { display: block; font-size: 22px; }
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 8px;
  font-size: 15px;
  font-weight: 600;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav-toggle {
  display: none;
  margin-left: auto;
  margin-right: 14px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 650;
}
.call-block {
  margin-left: auto;
  margin-right: 18px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 14px;
  line-height: 1.1;
}
.call-block small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.call-block strong { font-size: 18px; color: #fff; }

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  background: var(--wash);
  align-items: stretch;
}
.hero img { width: 100%; height: 100%; object-fit: cover; min-height: 520px; }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
  background: #fff;
}
.flag, .k {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.lede { font-size: 20px; color: var(--muted); max-width: 38rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.btn.yellow { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.ghost { background: #fff; color: var(--blue-dark); }

.band { padding: 48px 0; }
.wrap { width: min(1100px, calc(100% - 36px)); margin: 0 auto; }
.schedule {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.schedule article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 8px;
}
.schedule h2 { font-size: 26px; color: var(--blue-dark); }

.rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.srow {
  display: grid;
  grid-template-columns: 148px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.srow:hover { border-color: #b7c9e4; }
.srow .num { display: none; }
.srow div { padding: 16px 16px 12px; }
.srow img { width: 148px; height: 100%; min-height: 132px; object-fit: cover; }
.srow p { color: var(--muted); margin: 0; font-size: 16px; }

.steps { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.rail { list-style: none; margin: 0; padding: 4px 0 0; }
.rail li {
  margin: 0 0 16px;
  padding: 0 0 2px 16px;
  border-left: 2px solid #d3e1f4;
}

.places {
  columns: 2;
  margin: 12px 0 0;
  padding: 0 0 0 18px;
}
.places li { break-inside: avoid; padding: 7px 0; }

.ask {
  background: var(--wash);
  color: var(--ink);
  padding: 48px 0 56px;
}
.ask h2, .ask p { color: var(--ink); }
.ask a { color: var(--blue); }
.grid-2 { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: start; }
.form {
  display: grid;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.form label {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}
.form input, .form select, .form textarea {
  width: 100%;
  margin-top: 4px;
  border: 1px solid #d5dee8;
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.form .hp { position: absolute; left: -9999px; }
.form .status { min-height: 1.2em; color: var(--muted); }
.form button {
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 13px;
  cursor: pointer;
}

.site-footer {
  background: #172033;
  color: #d5deea;
  padding: 36px 0 88px;
  font-size: 16px;
}
.site-footer h2 {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aafc6;
  margin-bottom: 10px;
}
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { margin: 0; padding-left: 18px; }
.legal { margin-top: 22px; color: #93a4b8; font-size: 14px; }

.page-hero {
  width: min(1100px, calc(100% - 36px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: center;
}
.page-hero img { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; }
.page-hero .wrap { width: auto; margin: 0; padding: 0; }
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.crumbs a { color: var(--blue); text-decoration: none; }
.layout { display: grid; grid-template-columns: 1fr 280px; gap: 22px; padding: 22px 0 56px; }
.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 26px 14px;
}
.prose a { color: var(--blue); }
.side {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.side a { color: var(--blue); }
.side .btn { margin: 8px 0 14px; }
.side ul { padding-left: 18px; }

.note {
  background: var(--wash);
  border-left: 3px solid var(--blue);
  padding: 8px 0 8px 16px;
  margin-bottom: 18px;
}
.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
}
.post-card img { width: 220px; height: 148px; object-fit: cover; }
.post-card div { padding: 16px 18px; }
.post-card h2 { font-size: 24px; }

.app {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(23, 32, 51, 0.06);
}
.app a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--blue-dark);
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
}
.app a strong { display: block; font-size: 16px; }
.app a.main { background: var(--blue); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 18px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(23, 32, 51, 0.06);
  }
  .nav.open { display: flex; }
  .call-block { display: none; }
  .hero, .schedule, .steps, .grid-2, .foot, .page-hero, .layout, .post-card, .rows {
    grid-template-columns: 1fr;
  }
  .srow { grid-template-columns: 108px 1fr; }
  .srow img { width: 108px; min-height: 108px; }
  .places { columns: 1; }
  .hero img { min-height: 240px; height: 250px; }
  .hero-copy { padding: 28px 22px 32px; }
  .page-hero { margin-top: 16px; }
  .page-hero img { height: 180px; }
  .app { display: flex; }
  body { padding-bottom: 68px; }
}
