/* Pat's Handyman LLC — clean, mobile-first styles */
:root {
  --navy: #16355c;
  --navy-dark: #0f2745;
  --orange: #f2992e;
  --orange-dark: #d97f14;
  --ink: #1f2a37;
  --muted: #5b6b7d;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --line: #e3e8ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 53, 92, 0.10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; color: var(--navy-dark); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
p { margin: 0 0 1em; }
a { color: var(--navy); }

.wrap { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.center { text-align: center; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-dark);
  margin: 0 0 0.5em;
}
.kicker.light { color: var(--orange); }
.light { color: #fff; }
.light-dim { color: rgba(255,255,255,0.82); }
.light-link { color: #fff; font-weight: 700; }
.section-sub { color: var(--muted); max-width: 560px; margin: 0 auto 2.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.7em 1.4em; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(242,153,46,0.35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-lg { padding: 0.85em 1.8em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-call { background: var(--navy); color: #fff; padding: 0.55em 1.1em; font-size: 0.9rem; }
.btn-call:hover { background: var(--navy-dark); }
.btn[disabled] { opacity: 0.65; cursor: wait; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand-text { font-weight: 800; color: var(--navy-dark); font-size: 1.05rem; white-space: nowrap; }
.brand-text em { font-style: normal; color: var(--orange-dark); }
.main-nav { display: flex; gap: 1.4rem; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.main-nav a:hover { color: var(--orange-dark); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-dark); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/hero.jpg") center/cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,39,69,0.92) 20%, rgba(15,39,69,0.55) 60%, rgba(15,39,69,0.25)); }
.hero-content { position: relative; padding: 5rem 0; max-width: 1120px; }
.hero-kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 700; color: var(--orange); margin-bottom: 0.8em; }
.hero h1 { color: #fff; max-width: 14em; }
.hero-sub { font-size: 1.12rem; color: rgba(255,255,255,0.88); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* Trust strip */
.trust { background: var(--navy-dark); color: #fff; padding: 1.4rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-item { text-align: center; padding: 0.4rem 0.6rem; border-left: 1px solid rgba(255,255,255,0.14); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font-size: 0.98rem; }
.trust-item span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.lede { font-size: 1.1rem; color: var(--muted); }

/* Services */
.services { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2.2rem; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(22,53,92,0.14); }
.service-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 0.9rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  display: flex; align-items: center; justify-content: center; color: var(--orange);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.service-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.why-item { border-top: 3px solid var(--orange); padding-top: 1.1rem; }
.why-num { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; color: var(--orange-dark); }
.why-item h3 { margin: 0.4em 0 0.4em; font-size: 1.1rem; }
.why-item p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* Quote */
.quote { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.quote-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.6rem; }
.quote-points li { color: rgba(255,255,255,0.88); padding-left: 1.7rem; position: relative; font-size: 0.96rem; }
.quote-points li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.quote-form { background: #fff; border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-field { margin-bottom: 0.9rem; }
.form-field label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.35em; color: var(--navy-dark); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.7em 0.9em; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 0.95rem; background: #fbfcfe; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,153,46,0.18); background: #fff;
}
.form-note { font-size: 0.9rem; margin: 0.8em 0 0; min-height: 1.4em; }
.form-note.ok { color: #1c7a3d; font-weight: 600; }
.form-note.err { color: #b3261e; font-weight: 600; }
.hidden { position: absolute; left: -9999px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; margin-top: 2.2rem; }
.contact-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem;
  background: #fff; box-shadow: var(--shadow); transition: transform 0.15s ease;
}
a.contact-card:hover { transform: translateY(-3px); }
.contact-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; margin-bottom: 0.3em; }
.contact-card strong { color: var(--navy-dark); font-size: 1.02rem; word-break: break-word; }
.socials a { color: var(--navy); font-weight: 700; }
.hours { max-width: 520px; margin: 2.4rem auto 0; background: var(--bg-soft); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.hours h3 { margin-bottom: 0.8em; text-align: center; }
.hours dl { margin: 0; display: grid; gap: 0.55rem; }
.hours dl > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: 0.55rem; }
.hours dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 2.6rem 0 1.6rem; }
.footer-inner { display: grid; gap: 1.4rem; text-align: center; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 0.7rem; object-fit: cover; }
.footer-brand p { margin: 0; font-size: 0.92rem; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--orange); }
.footer-fine { font-size: 0.82rem; margin: 0; color: rgba(255,255,255,0.5); }

/* Responsive */
@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 1rem 4%; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 0; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .about-grid, .quote-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  #headerPhoneText { display: none; }
  .btn-call { padding: 0.55em 0.8em; }
}
