/*
Theme Name: Turf Club SD
Description: Residential artificial turf website with free quote requests.
Version: 1.8.0
Requires at least: 6.2
Requires PHP: 7.4
Author: Turf Club SD
Text Domain: turf-club-sd
*/
:root {
  --paper: #f5f7ef;
  --white: #fff;
  --ink: #162018;
  --forest: #0f2116;
  --muted: #465549;
  --line: #cdd7cc;
  --lime: #dfff00;
  --soft: #eaf0e5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 system-ui, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1360px, 91%); margin-inline: auto; }
.mast { display: flex; min-height: 94px; align-items: center; justify-content: flex-end; gap: 16px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3.3vw, 46px); }
.nav a, .button { text-decoration: none; }
.nav .jump { white-space: nowrap; font-size: .88rem; font-weight: 660; }
.nav .jump:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; min-height: 51px; align-items: center; justify-content: space-between; gap: 22px; padding: 11px 19px; border: 1px solid var(--forest); border-radius: 11px; background: var(--forest); color: white; font: 720 .88rem/1.3 system-ui, sans-serif; cursor: pointer; }
.button:hover { background: #294535; }
.button-lime { background: var(--lime); color: var(--ink); border-color: transparent; }
.button-lime:hover { background: #edffa9; }
:focus-visible { outline: 3px solid #769b13; outline-offset: 4px; }
.skip { position: absolute; left: 12px; top: -90px; z-index: 20; background: white; padding: 10px; }
.skip:focus { top: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { line-height: .99; letter-spacing: -.07em; }
h1 { margin-bottom: 19px; font-size: clamp(3.65rem, 7.15vw, 8.15rem); font-weight: 780; }
h2 { margin-bottom: 24px; font-size: clamp(2.45rem, 5vw, 5.3rem); font-weight: 760; }
h3 { margin-bottom: 6px; font-size: clamp(1.15rem, 2vw, 1.85rem); line-height: 1.15; letter-spacing: -.04em; }
.eyebrow { margin-bottom: 17px; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.content { padding-block: clamp(56px, 7.5vw, 105px); }
.services-scene { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(330px, 42vw, 580px); background: var(--forest); color: white; }
.services-scene img, .services-scene::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.services-scene img { z-index: -2; object-fit: cover; object-position: 62% center; }
.services-scene::after { content: ""; z-index: -1; background: linear-gradient(90deg, #061c11eb, #061c115e 60%, transparent); }
.services-message { padding-block: 55px; }
.services-message h2 { max-width: 11ch; }
.services-message p { max-width: 30ch; margin-bottom: 0; color: #f1f7ed; }
.quote { padding-block: clamp(56px, 7vw, 98px); }
.quote-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(25px, 6vw, 90px); padding: clamp(19px, 5vw, 75px); border-radius: 24px; background: var(--lime); }
.quote-copy h2 { max-width: 9ch; }
.quote-copy p { max-width: 37ch; color: #28371e; }
#quote-form { padding: clamp(18px, 3.1vw, 40px); border: 1px solid #c6d3ab; border-radius: 16px; background: white; color: var(--ink); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields .full { grid-column: 1/-1; }
label { display: block; font-weight: 670; font-size: .88rem; }
label small { color: var(--muted); font-weight: 500; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid #9cae9e; border-radius: 8px; padding: 10px 11px; font: inherit; background: #fbfcfa; color: inherit; }
textarea { resize: vertical; }
#quote-form .button { margin-top: 20px; width: 100%; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: .78rem; }
.notice { padding: 14px; border-radius: 8px; background: #ecf4df; margin-bottom: 18px; }
.notice.error { background: #fff0e5; }
.aux { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
footer { border-top: 1px solid var(--line); padding: 24px 0; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .85rem; }
@media (max-width: 940px) {
  .mast { min-height: 76px; }
  .nav .jump { display: none; }
  h1 { font-size: clamp(2.85rem, 7vw, 5rem); }
}
@media (max-width: 675px) {
  .nav .button { min-height: 40px; gap: 8px; padding: 8px 10px; font-size: .77rem; }
  .quote-grid { grid-template-columns: 1fr; }
  .services-scene::after { background: linear-gradient(90deg, #061c11e5, #061c1140); }
  h1 { font-size: clamp(3.05rem, 11.5vw, 4.9rem); }
}
@media (max-width: 420px) {
  .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Homepage campaign, laid out as live content over the reference scene. */
.campaign { color: white; background: #052713; }
.campaign-scene {
  isolation: isolate;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(670px, 65vw, 905px);
  overflow: hidden;
  background: #6cb8e8;
}
.scene-photo { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.campaign-scene::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(ellipse 35% 28% at 50% 13%, #fff9 14%, #fff0 100%),
              linear-gradient(180deg, transparent 68%, #052713e8 100%);
}
.campaign-content { display: grid; justify-items: center; padding: 20px 6vw 0; }
.campaign-logo { width: min(460px, 60vw); margin: 0 0 10px; mix-blend-mode: multiply; }
.campaign-logo img { width: 100%; }
.campaign-offer { display: grid; justify-items: center; text-align: center; }
.campaign-price, .campaign-finance {
  position: relative;
  isolation: isolate;
  width: fit-content;
  margin: 0;
  padding: 2px clamp(15px, 4vw, 60px) 5px;
  font-weight: 950;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.campaign-price { display: flex; align-items: baseline; gap: clamp(9px, 2vw, 27px); }
.campaign-price::before, .campaign-finance::before { content: ""; position: absolute; z-index: -1; inset: 0; transform: skew(-14deg); }
.campaign-price::before { background: #041e10; border-right: 6px solid var(--lime); }
.campaign-price strong { font-size: clamp(3.2rem, 9.2vw, 8.25rem); letter-spacing: -.09em; }
.campaign-price span { color: var(--lime); font-size: clamp(1.34rem, 5.1vw, 4.7rem); letter-spacing: -.045em; }
.campaign-finance { background: transparent; color: #061c0e; font-size: clamp(.83rem, 3vw, 2.45rem); padding-block: 5px 8px; }
.campaign-finance::before { background: var(--lime); }
.campaign-owned { position: relative; isolation: isolate; margin: 10px 0 0; padding: 2px 21px 6px; color: #071d10; font: italic 750 clamp(1.2rem, 3vw, 2.35rem)/1.15 "Segoe Script", "Brush Script MT", cursive; transform: rotate(-3deg); }
.campaign-owned::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--lime); clip-path: polygon(1% 17%, 23% 8%, 64% 10%, 98% 0, 94% 24%, 100% 27%, 96% 48%, 100% 64%, 95% 72%, 98% 82%, 65% 95%, 3% 93%, 6% 71%, 0 61%, 5% 50%, 0 36%, 5% 29%); }
.campaign-benefits, .spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; max-width: 1050px; }
.campaign-benefits { align-items: end; padding: 0 0 31px; }
.campaign-benefit { position: relative; display: grid; justify-items: center; padding: 0 7px; text-shadow: 0 2px 8px #001a0b; }
.campaign-benefit + .campaign-benefit::before { content: ""; position: absolute; top: 34%; bottom: 8%; left: 0; width: 3px; background: var(--lime); }
.campaign-benefit h2 { margin: 9px 0 0; font-size: clamp(1rem, 3vw, 2.85rem); font-style: italic; font-weight: 950; text-transform: uppercase; letter-spacing: -.045em; }
.feature-icon { display: block; width: clamp(41px, 6.5vw, 88px); aspect-ratio: 1; border-radius: 50%; background-image: url("assets/turf-club-flyer.webp"); background-repeat: no-repeat; background-size: 1081% auto; }
.feature-pet { background: #092817; color: white; box-shadow: inset 0 0 0 2px white; display: grid; place-items: center; }
.feature-pet svg { width: 65%; height: auto; }
.feature-cool { background-position: 50.4% 68.8%; box-shadow: 0 0 20px #6de5ffbc; }
.feature-kid { background-position: 84.3% 71.1%; }
.campaign-cooling h2::after { content: ""; display: block; width: 83%; height: 7px; margin: 4px auto 0; border-bottom: 2px solid #d5faff; border-radius: 50%; filter: drop-shadow(0 1px 4px #66ddff); }
.campaign-specs { position: relative; margin-top: -5px; padding: 22px 0; border-block: 4px solid var(--lime); border-radius: 50% / 15px; background: #041d0f; }
.spec-grid { margin: 0 auto; }
.spec-grid > div { padding: 2px 7px; }
.spec-grid > div + div { border-left: 1px solid #a0b956; }
.spec-grid dt { color: #e3efdf; font-size: clamp(.66rem, 1.55vw, 1rem); font-weight: 720; text-transform: uppercase; }
.spec-grid dd { display: grid; margin: 0; line-height: 1.16; font-size: clamp(.7rem, 1.55vw, 1rem); }
.spec-grid strong { color: var(--lime); font-size: clamp(.93rem, 2.85vw, 2.45rem); font-style: italic; font-weight: 900; letter-spacing: -.045em; }
.campaign-action { padding: 22px 5% 25px; text-align: center; }
.campaign-action p { margin: 10px 0 0; font-size: .75rem; color: #d6e3d8; }
@media (max-width: 650px) {
  .campaign-scene { min-height: clamp(475px, 128vw, 730px); }
  .scene-photo { object-position: center 55%; }
  .campaign-content { padding-top: 19px; }
  .campaign-logo { width: min(64vw, 310px); }
  .campaign-benefits { padding-bottom: 20px; }
  .campaign-benefit + .campaign-benefit::before { width: 2px; }
  .campaign-specs { padding: 14px 0; }
}

/* Keep the complete artwork in the opening viewport, including its specs. */
.campaign-scene { min-height: clamp(345px, calc(100svh - 110px), 800px); }
.scene-photo { object-position: center 30%; }
.campaign-logo { width: min(60vw, 46svh, 415px); }
.campaign-content { padding-top: clamp(8px, 2svh, 18px); }
.campaign-price strong { font-size: clamp(3.2rem, min(9.2vw, 13svh), 8.25rem); }
.campaign-price span { font-size: clamp(1.34rem, min(5.1vw, 7svh), 4.7rem); }
.campaign-finance { font-size: clamp(.83rem, min(3vw, 4.5svh), 2.45rem); }
.campaign-owned { font-size: clamp(1.2rem, min(3vw, 4svh), 2.35rem); }
.campaign-benefits { padding-bottom: clamp(12px, 2.6svh, 25px); }
.campaign-benefit h2 { font-size: clamp(.9rem, min(3vw, 4.75svh), 2.55rem); }
.feature-icon { width: clamp(41px, min(6.5vw, 9svh), 81px); }
.campaign-specs { padding-block: 12px; }
@media (max-width: 650px) {
  .campaign-scene { min-height: clamp(345px, calc(100svh - 75px), 730px); }
  .scene-photo { object-position: center 53%; }
  .campaign-logo { width: min(65vw, 35svh, 310px); }
  .campaign-specs { padding-block: 9px; }
}

.campaign-top-quote {
  position: absolute;
  z-index: 1;
  top: clamp(10px, 2.5vw, 30px);
  right: clamp(10px, 3vw, 44px);
  min-height: 43px;
}
@media (max-width: 750px) {
  .campaign-top-quote { min-height: 38px; gap: 9px; padding: 8px 10px; font-size: .76rem; }
  .campaign-content { padding-top: 56px; }
}
