/*
Theme Name: Grapevine Sprinkler
Theme URI: https://sprinklerrepairgrapevine.com/
Author: Sprinkler Repair Grapevine
Description: Lawn sprinkler repair in Grapevine, Texas.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: grapevine-sprinkler
*/

:root {
  --ink: #1b2822;
  --ink-soft: #3d4a43;
  --paper: #f4efe6;
  --paper-2: #ebe3d4;
  --white: #fffcf7;
  --leaf: #1b4334;
  --leaf-2: #2f6b50;
  --lake: #1f5962;
  --clay: #c45c28;
  --line: #ddd3c3;
  --shadow: 0 18px 40px rgba(27, 40, 34, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --bar: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake); }
a:hover { color: var(--clay); }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; }

.topbar {
  background: var(--leaf);
  color: #f3efe4;
  font-size: 0.92rem;
}
.topbar .wrap, .wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; }
.topbar a { color: inherit; text-decoration: none; font-weight: 650; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--leaf);
  display: grid; place-items: center; flex: none;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name small { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.68rem; color: var(--ink-soft); }
.brand-name strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 560; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
}
.nav { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 560; font-size: 0.95rem; }
.nav a[aria-current="page"] { color: var(--clay); }
.nav .call {
  background: var(--clay);
  color: white !important;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 680;
}

.hero { position: relative; min-height: 78vh; color: white; display: grid; align-items: end; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 32, 26, 0.15), rgba(18, 32, 26, 0.78)); }
.hero .wrap { position: relative; z-index: 1; padding: 4.5rem 0 3rem; }
.kicker { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.75rem; font-weight: 680; }
.hero h1, .page-hero h1, h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.12; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0.4rem 0 0.8rem; max-width: 14ch; }
.lede { max-width: 42rem; font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.8rem 1.1rem; text-decoration: none; font-weight: 680;
  border: 0; font: inherit; cursor: pointer;
}
.btn-clay { background: var(--clay); color: white; }
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.7); }
.btn-leaf { background: var(--leaf); color: white; }

.rule {
  background: var(--ink);
  color: #f6f1e8;
}
.rule .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; padding: 1.3rem 0; align-items: center; }
.rule a { color: #f2c7a4; }
.rule p { margin: 0.3rem 0 0; color: #ddd4c6; }

section { padding: 4rem 0; }
.section-head { max-width: 40rem; margin-bottom: 1.6rem; }
.section-head h2, .page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0.2rem 0 0.5rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card div { padding: 1rem 1rem 1.15rem; }
.card h3 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.card p { margin: 0; color: var(--ink-soft); }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: center; }
.steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
.steps li { background: var(--white); border-radius: 16px; padding: 1rem 1rem 1rem 1.1rem; box-shadow: var(--shadow); }
.steps strong { font-family: var(--serif); font-size: 1.25rem; display: block; }
.frame { border-radius: 22px; overflow: hidden; min-height: 320px; }
.frame img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.areas a, .areas span {
  background: var(--white);
  border-radius: 14px;
  padding: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 620;
}

.faq details { background: var(--white); border-radius: 14px; padding: 0.8rem 1rem; margin-bottom: 0.6rem; }
.faq summary { cursor: pointer; font-weight: 680; }
.band { background: var(--leaf); color: #f6f1e8; }
.band a { color: white; }

.page-hero { position: relative; min-height: 42vh; display: grid; align-items: end; color: white; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,32,26,0.1), rgba(18,32,26,0.75)); }
.page-hero .wrap { position: relative; z-index: 1; padding: 4rem 0 2rem; }
.crumbs { font-size: 0.88rem; }
.crumbs a { color: #f2c7a4; }

.prose { width: min(760px, 100%); }
.prose h2 { font-size: 1.8rem; margin-top: 1.8rem; }
.prose ul { padding-left: 1.1rem; }
.layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 2rem; align-items: start; }
.side { position: sticky; top: 5.5rem; background: var(--white); border-radius: 18px; padding: 1rem; box-shadow: var(--shadow); }
.side a { display: block; text-decoration: none; padding: 0.28rem 0; color: var(--ink); font-weight: 580; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 2rem; }

.form { display: grid; gap: 0.75rem; }
.form label { display: grid; gap: 0.25rem; font-weight: 640; }
.form input, .form select, .form textarea {
  font: inherit; padding: 0.7rem 0.75rem; border-radius: 12px; border: 1px solid var(--line); background: white; color: var(--ink);
}
.form .hp { position: absolute; left: -9999px; }
.form-note { min-height: 1.4rem; font-weight: 650; }
.form-note.ok { color: var(--leaf-2); }
.form-note.bad { color: #8d2b16; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.panel { background: var(--white); border-radius: 20px; padding: 1.2rem; box-shadow: var(--shadow); }

.post-list { display: grid; gap: 1rem; }
.post-list article { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.post-list img { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }
.post-list div { padding: 1rem 1rem 1rem 0; }
.post-list h2 { margin: 0.2rem 0; font-size: 1.6rem; }
.post-list h2 a { color: inherit; text-decoration: none; }

.site-footer { background: #14211c; color: #e7e0d4; padding: 2.5rem 0 1.2rem; margin-bottom: var(--bar); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem; }
.site-footer a { color: #f2c7a4; text-decoration: none; }
.site-footer h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.legal { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 1.4rem; padding-top: 0.8rem; font-size: 0.88rem; color: #c9c0b2; }

.appbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; height: var(--bar);
  padding-bottom: env(safe-area-inset-bottom);
  background: #14211c; color: white;
}
.appbar a { flex: 1; color: white; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 680; gap: 0.1rem; }
.appbar a strong { font-size: 0.95rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 0.8rem 1rem 1rem; flex-direction: column; align-items: flex-start; }
  .nav.open { display: flex; }
  .cards, .areas, .steps, .rule .wrap, .layout, .contact-grid, .foot-grid, .post-list article { grid-template-columns: 1fr; }
  .post-list div { padding: 0 1rem 1rem; }
  .side { position: static; }
  .appbar { display: flex; }
  body { padding-bottom: 0; }
  .hero { min-height: 86vh; }
}
