/* Oil Heating Specialist — landing page styles. Mobile-first, no framework. */

:root {
  --green-950: #062a18;
  --green-900: #0b4a2b;
  --green-800: #0f5c36;
  --green-700: #137142;
  --green-50: #eef6f0;
  --accent: #8fd14f;
  --accent-hover: #a3dc6b;
  --ink: #15231b;
  --muted: #4d5f55;
  --line: #d6e3da;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(6, 42, 24, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 72px; /* room for mobile action bar */
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--green-900); color: var(--white); padding: 10px 14px; border-radius: 6px;
}
.skip-link:focus { top: 8px; color: var(--white); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.2em;
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { font-size: 1.125rem; padding: .85em 1.5em; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--accent); color: var(--green-950); }
.btn-primary:hover { background: var(--accent-hover); color: var(--green-950); }
.btn-call { background: var(--green-800); color: var(--white); }
.btn-call:hover { background: var(--green-900); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); border-color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--green-900); text-decoration: none; font-size: 1.05rem; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text strong { font-weight: 800; }
.header-call { min-height: 44px; padding: .5em .9em; }
.header-call .call-number { display: none; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-950) 100%);
  color: var(--white);
  padding: 44px 0 52px;
}
.hero-inner { display: grid; gap: 32px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; color: var(--accent); margin-bottom: .75em; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.25rem); font-weight: 800; letter-spacing: -.01em; }
.hero .price { color: var(--accent); white-space: nowrap; }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .92); max-width: 36em; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 12px; }
.small-print { font-size: .875rem; color: rgba(255, 255, 255, .75); margin: 0; }

/* Mobile: compact photo + intro under the headline. Desktop: large photo card. */
.hero-person {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px; padding: 12px; margin: 4px 0 18px;
}
.hero-person-img {
  width: 84px; height: 84px; flex: none; border-radius: 50%;
  object-fit: cover; object-position: 50% 35%; border: 3px solid var(--white);
}
.hero-person p { margin: 0; font-size: 1rem; line-height: 1.4; }

.hero-card {
  display: none;
  background: var(--white); color: var(--ink);
  border-radius: 14px; padding: 16px 16px 20px; box-shadow: var(--shadow);
}
.hero-photo { margin: 0 0 16px; }
.hero-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 4.2;
  object-fit: cover; object-position: 50% 40%; border-radius: 10px;
}
.hero-photo figcaption { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.hero-photo figcaption strong { color: var(--green-900); }
.hero-card .checklist { padding: 0 4px; }
.hero-card-price { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.1rem; }
.hero-card-price strong { font-size: 1.6rem; color: var(--green-800); }

/* Checklist */
.checklist { list-style: none; margin: 0 0 1em; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .5em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Trust strip */
.trust { background: var(--green-50); border-bottom: 1px solid var(--line); }
.trust-list {
  list-style: none; margin: 0; padding: 18px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px;
}
.trust-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; line-height: 1.3; color: var(--green-950); }
.trust-list .icon { width: 28px; height: 28px; color: var(--green-700); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--green-50); }
.section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); color: var(--green-900); font-weight: 800; text-align: center; }
.section-intro { text-align: center; color: var(--muted); max-width: 40em; margin: 0 auto 32px; }

/* Cards */
.cards { display: grid; gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--green-700);
  border-radius: 14px; padding: 24px; box-shadow: var(--shadow);
}
.card-tag {
  align-self: flex-start; background: var(--green-50); color: var(--green-800);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .25em .7em; border-radius: 99px;
}
.card-title { font-size: 1.35rem; color: var(--green-950); }
.card-title span { display: block; font-size: 2rem; color: var(--green-700); }
.card .checklist { flex: 1; }
.card-price { font-size: 1.05rem; color: var(--muted); }
.card-price strong { font-size: 1.5rem; color: var(--green-800); }

/* Steps */
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 20px; counter-reset: none; }
.step { background: var(--white); border-radius: 14px; padding: 24px; border: 1px solid var(--line); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px;
  border-radius: 50%; background: var(--green-800); color: var(--white); font-weight: 800; font-size: 1.2rem;
}
.step h3 { font-size: 1.2rem; color: var(--green-950); }
.step p { margin: 0; color: var(--muted); }

/* Why */
.why { display: grid; gap: 28px; align-items: center; }
.why .section-title { text-align: left; }
.why-photo { margin: 0; }
.why-photo img {
  display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto;
  aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 40%;
  border-radius: 14px; box-shadow: var(--shadow); border-bottom: 6px solid var(--green-700);
}
.why-intro { font-size: 1.25rem; font-weight: 700; color: var(--green-900); }
.why-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

/* Gallery */
.gallery { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { padding: 12px 16px; font-weight: 700; color: var(--green-950); }

/* Areas */
.areas { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.areas li {
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--green-700);
  border-radius: 8px; padding: 14px 16px; font-weight: 700; color: var(--green-950);
}

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--white); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative;
  font-weight: 700; color: var(--green-950);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1; color: var(--green-700);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* Quote */
.quote { background: linear-gradient(160deg, var(--green-900) 0%, var(--green-950) 100%); color: var(--white); }
.quote-inner { display: grid; gap: 28px; }
.quote .section-title { color: var(--white); text-align: left; }
.quote-person { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.quote-person img {
  width: 64px; height: 64px; flex: none; border-radius: 50%;
  object-fit: cover; object-position: 50% 35%; border: 3px solid var(--white);
}
.quote-person p { margin: 0; }
.quote-call-label { font-weight: 700; margin-bottom: .5em; }
.quote-email { margin-top: 16px; font-size: .95rem; word-break: break-word; }
.quote-email a { color: var(--white); }

.quote-form { background: var(--white); color: var(--ink); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: #b42318; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid #b9c9be; border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-700); outline: 3px solid rgba(143, 209, 79, .5); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #b42318; }
.form-error { background: #fdecea; color: #8a1c12; border-radius: 8px; padding: 10px 12px; font-weight: 600; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.form-success { margin-top: 16px; background: var(--green-50); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.form-success p:last-child { margin: 0; }

/* Footer */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .85); padding: 40px 0; font-size: .95rem; }
.site-footer a { color: var(--white); word-break: break-word; }
.footer-inner { display: grid; gap: 20px; }
.footer-brand { font-weight: 800; color: var(--white); font-size: 1.1rem; }
.footer-privacy { font-size: .85rem; color: rgba(255, 255, 255, .7); }

/* Mobile action bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(6, 42, 24, .1);
}

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound h1 { color: var(--green-900); font-size: clamp(1.8rem, 6vw, 2.6rem); }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* ≥ 600px */
@media (min-width: 600px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .why-actions { flex-direction: row; flex-wrap: wrap; }
  .header-call .call-number { display: inline; }
  .header-call .call-label { display: none; }
}

/* ≥ 900px */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .hero { padding: 72px 0 80px; }
  .hero-inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 48px; }
  .hero-person { display: none; }
  .hero-card { display: block; }
  .trust-list { grid-template-columns: repeat(6, 1fr); }
  .section { padding: 80px 0; }
  .cards { grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: 1fr 1.5fr; gap: 56px; }
  .quote-inner { grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
  .footer-inner { grid-template-columns: 1fr 1fr 1.2fr; }
}
