/* Tekton Services -- shared stylesheet
   Static marketing site (power washing, Ave Maria FL) + ported compliance pages.
   No external fonts or CDNs. Light and dark themes via prefers-color-scheme. */

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

:root {
  --ink: #1a1a2e;
  --body: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --bg: #ffffff;
  --brand: #3D8B4F;
  --brand-dark: #2D6A3F;
  --brand-pale: #E8F5EC;
  --accent: #4FA363;
  --link: #2D6A3F;
  --btn-ink: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.97);
  --footer-bg: #1a1a2e;
  --footer-text: #9ca3af;
  --footer-copy: #9ca3af;
  --footer-heading: #ffffff;
  --tint: rgba(61, 139, 79, 0.1);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9f2eb;
    --body: #c4d2c8;
    --muted: #90a396;
    --line: #24382a;
    --surface: #14231a;
    --surface-2: #17281d;
    --bg: #0e1811;
    --brand: #4FA363;
    --brand-dark: #3D8B4F;
    --brand-pale: #17311f;
    --accent: #6dbd81;
    --link: #6dbd81;
    --btn-ink: #08130b;
    --nav-bg: rgba(14, 24, 17, 0.92);
    --footer-bg: #0a120c;
    --footer-text: #8ba091;
    --footer-copy: #8ba091;
    --footer-heading: #e9f2eb;
    --tint: rgba(79, 163, 99, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); }

img, svg { max-width: 100%; }

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  background: #2D6A3F;
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
}
.nav-cta:hover { box-shadow: var(--shadow); text-decoration: underline; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--brand);
  color: var(--btn-ink);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: transparent;
  color: var(--link);
  border-color: var(--brand);
}
.btn-secondary:hover { background: var(--brand-pale); transform: translateY(-1px); }

/* HERO */
.hero-logo {
  margin: 0 auto 2rem;
  line-height: 0;
}
.hero {
  padding: 9.5rem 1.5rem 4.5rem;
  text-align: center;
  background:
    radial-gradient(1200px 480px at 50% -10%, var(--brand-pale) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 70%);
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-pale);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto 1.25rem;
}
.hero .lede {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2.25rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.hero-note a { color: var(--link); text-decoration: none; font-weight: 700; }
.hero-note a:hover { text-decoration: underline; }

/* SECTION SCAFFOLD */
section { padding: 5rem 1.5rem; }
.container { max-width: 1120px; margin: 0 auto; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.15rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.section-subtitle { color: var(--muted); font-size: 1.0625rem; }
.alt { background: var(--surface-2); }

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.step {
  background: var(--surface);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-pale);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.step h3 { font-size: 1.1875rem; color: var(--ink); margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.9688rem; }

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service {
  position: relative;
  background: var(--surface);
  border-radius: 14px;
  padding: 1.9rem 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-pale);
  color: var(--brand-dark);
  margin-bottom: 1.1rem;
}
.service h3 { font-size: 1.1875rem; color: var(--ink); margin-bottom: 0.5rem; }
.service p { color: var(--muted); font-size: 0.9688rem; }
.service-badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.service-badge.available {
  background: var(--brand-pale);
  color: var(--brand);
  border: 1px solid var(--brand);
}
.service-badge.soon {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--muted);
  opacity: 0.75;
}

/* SERVICE AREA */
.area-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.area-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.15rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.area-copy p { color: var(--muted); font-size: 1.0625rem; margin-bottom: 1rem; }
.area-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.area-card .pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-pale);
  color: var(--brand-dark);
  margin-bottom: 1rem;
}
.area-card h3 { color: var(--ink); font-size: 1.35rem; margin-bottom: 0.35rem; }
.area-card p { color: var(--muted); }

/* TRUST */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.trust {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.trust .check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-pale);
  color: var(--brand-dark);
}
.trust h3 { color: var(--ink); font-size: 1.0625rem; margin-bottom: 0.25rem; }
.trust p { color: var(--muted); font-size: 0.9375rem; }

/* CTA BAND */
.cta-band {
  text-align: center;
  background:
    radial-gradient(900px 360px at 50% 120%, var(--brand-pale) 0%, transparent 60%),
    var(--surface-2);
}
.cta-band h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.3rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.cta-band p { color: var(--muted); font-size: 1.0625rem; max-width: 560px; margin: 0 auto 2rem; }
.cta-number {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--muted);
}
.cta-number a { color: var(--ink); font-weight: 800; text-decoration: none; }
.cta-number a:hover { color: var(--brand); }

/* CONTENT (legal / long-form pages) */
.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 7.5rem 1.5rem 4rem;
}
.content h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.content .updated { color: var(--muted); font-size: 0.875rem; margin-bottom: 2.5rem; }
.content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.content p { margin-bottom: 1rem; color: var(--body); }
.content ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.content li { margin-bottom: 0.375rem; color: var(--body); }
.content strong { color: var(--ink); }
.content a { color: var(--link); text-decoration: none; }
.content a:hover { text-decoration: underline; }

/* SIMPLE CENTERED PAGE (404) */
.centered {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}
.centered .code {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1;
}
.centered h1 { font-size: 1.6rem; color: var(--ink); margin: 1rem 0 0.5rem; }
.centered p { color: var(--muted); margin-bottom: 2rem; max-width: 460px; }

/* CONTRACTOR APPLICATION FORM */
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}
.contractor-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contractor-form label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.contractor-form input[type="text"],
.contractor-form input[type="tel"],
.contractor-form input[type="email"],
.contractor-form input[type="number"],
.contractor-form textarea {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contractor-form input:focus,
.contractor-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--tint);
}
.contractor-form textarea { min-height: 90px; resize: vertical; }
.required { color: #dc2626; }

.consent-box {
  background: var(--brand-pale);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 0.25rem;
}
.consent-label {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.75rem !important;
  align-items: flex-start;
  font-weight: 400 !important;
  font-size: 0.875rem !important;
  color: var(--body) !important;
  line-height: 1.55;
}
.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: var(--brand);
  cursor: pointer;
}
.consent-label strong { color: var(--ink); }
.consent-label a { color: var(--brand-dark); text-decoration: underline; }
.consent-label a:hover { color: var(--brand); }
.consent-phone { font-size: 1rem; font-weight: 700; color: var(--brand-dark); }

.form-submit {
  background: var(--brand);
  color: var(--btn-ink);
  padding: 0.875rem 2.25rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: center;
  min-width: 220px;
}
.form-submit:hover { background: var(--brand-dark); transform: translateY(-1px); }
.form-submit:disabled { background: var(--muted); cursor: not-allowed; transform: none; }

.form-fallback { text-align: center; font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
.form-fallback a { color: var(--brand-dark); text-decoration: underline; }

.status-message {
  display: none;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9375rem;
}
.status-message.success {
  display: block;
  background: var(--brand-pale);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  color: var(--brand-dark);
}

/* FOOTER */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}
footer .footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--footer-heading);
  font-weight: 800;
  font-size: 1.125rem;
}
footer p { margin-bottom: 0.5rem; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.footer-copy { margin-top: 1.5rem; color: var(--footer-copy); }

/* MOBILE */
@media (max-width: 820px) {
  .area-wrap { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 8rem 1.25rem 3.5rem; }
  section { padding: 3.5rem 1.25rem; }
  .content { padding: 6.5rem 1.25rem 3rem; }
  .content h1 { font-size: 1.625rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.75rem 1.25rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}
