/* Cape Home Watch & Handyman — styles */
:root {
  --bg: #fbf7ef;
  --fg: #18223a;
  --muted: #6a7390;
  --card: #ffffff;
  --border: #e6dfd0;
  --secondary: #f1ead8;
  --primary: #1f2d52;
  --primary-fg: #fbf7ef;
  --navy-deep: #111a35;
  --accent: #c98a3f;
  --accent-fg: #ffffff;
  --shadow-soft: 0 10px 40px -15px rgba(20, 30, 60, 0.25);
  --shadow-card: 0 4px 24px -8px rgba(20, 30, 60, 0.15);
  --radius: 16px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; font-weight: 600; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

/* NAV */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; padding-bottom: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--primary-fg); }
.brand-logo { width: 68px; height: 68px; object-fit: contain; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.brand-sub { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.8; }
.nav { display: none; gap: 32px; font-size: 14px; font-weight: 500; color: rgba(251,247,239,.9); }
.nav a:hover { color: var(--primary-fg); }
.call-btn {
  display: none; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--primary-fg); color: var(--primary);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-soft);
}
.call-btn:hover { background: var(--secondary); }
@media (min-width: 768px) {
  .nav { display: flex; }
  .call-btn { display: inline-flex; }
}

/* HERO */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,26,53,.92), rgba(31,45,82,.55) 60%, rgba(31,45,82,.45));
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 128px;
  background: linear-gradient(to top, var(--bg), transparent);
}
.hero-inner {
  position: relative; width: 100%;
  padding-top: 160px; padding-bottom: 96px;
}
.hero-content { max-width: 640px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(251,247,239,.9);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px); line-height: 1.05;
  color: var(--primary-fg);
}
.hero h1 em { color: var(--accent); font-style: normal; font-weight: 500; }
.hero p {
  margin-top: 24px; font-size: 18px; max-width: 560px;
  color: rgba(251,247,239,.85); line-height: 1.65;
}
.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: all .2s ease;
}
.btn-accent { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow-soft); }
.btn-accent:hover { opacity: .9; }
.btn-ghost {
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3); color: var(--primary-fg);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* TRUST */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(241,234,216,.5);
}
.trust-grid {
  display: grid; gap: 24px; padding: 28px 0;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .trust-grid {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 56px;
  }
}
.trust-item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.check {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
  color: var(--accent);
}
.trust-title { font-weight: 600; }
.trust-sub { color: var(--muted); font-size: 12px; }

/* SECTIONS */
section.pad { padding: 96px 0; }
@media (min-width: 768px) { section.pad { padding: 128px 0; } }
.eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--accent); font-weight: 600; margin-bottom: 16px;
}
.h2 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; }
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 640px; }

/* SERVICES */
.services-grid {
  margin-top: 64px;
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: all .3s ease;
}
.service-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.service-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.icon-box {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary); color: var(--primary-fg);
  display: flex; align-items: center; justify-content: center;
}
.icon-box svg { width: 24px; height: 24px; }
.price { font-size: 14px; font-weight: 600; color: var(--accent); }
.service-card h3 { font-size: 20px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* PRICING */
.pricing { background: rgba(241,234,216,.4); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.center { text-align: center; max-width: 640px; margin: 0 auto; }
.center .lead { margin-left: auto; margin-right: auto; }
.price-table {
  margin-top: 56px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.price-row:last-child { border-bottom: none; }
.price-row .name { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.price-row .desc { font-size: 14px; color: var(--muted); margin-top: 2px; }
.price-row .amt { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }

/* ABOUT */
.about-grid {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1fr;
  max-width: 1100px; margin: 0 auto;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 2fr 3fr; } }
.about-card {
  aspect-ratio: 4/5;
  border-radius: 24px;
  background: linear-gradient(160deg, #ffffff, var(--secondary));
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-card .mark {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 72px;
  color: var(--primary);
}
.about-card .mark svg { width: 240px; height: 240px; }
.about-card .mark img { width: 250px; height: 250px; object-fit: contain; }
.about-card .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 32px; color: var(--primary);
  background: linear-gradient(to top, var(--secondary) 55%, rgba(241,234,216,0));
}
.about-card .label .name { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.about-card .label .role { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.2em; margin-top: 4px; }
.about p { margin-top: 20px; font-size: 18px; color: var(--muted); line-height: 1.7; }

/* CONTACT */
.contact {
  position: relative; overflow: hidden;
  background: var(--primary); color: var(--primary-fg);
  text-align: center;
}
.contact .wave {
  position: absolute; inset: 0; opacity: .1; color: var(--primary-fg);
  pointer-events: none;
}
.contact .wave svg { position: absolute; bottom: 0; width: 100%; }
.contact .container { position: relative; max-width: 800px; }
.contact h2 { font-size: clamp(36px, 6vw, 60px); }
.contact .lead { color: rgba(251,247,239,.8); margin-left: auto; margin-right: auto; max-width: 560px; }
.contact-grid {
  margin-top: 48px;
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 24px; border-radius: 16px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  text-align: left;
  transition: background .2s ease;
}
.contact-card:hover { background: rgba(255,255,255,.15); }
.contact-card .icon-box { background: var(--accent); color: var(--accent-fg); }
.contact-card .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; opacity: .7; }
.contact-card .val { font-family: var(--font-display); font-size: 20px; font-weight: 600; word-break: break-all; }
.contact .loc {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(251,247,239,.7);
}

/* QUOTE FORM */
.quote-form {
  margin: 48px auto 0;
  max-width: 640px;
  background: var(--card);
  color: var(--fg);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 36px;
  text-align: left;
}
@media (min-width: 640px) { .quote-form { padding: 44px; } }
.form-row {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-row .field { margin-bottom: 0; }
.form-row { margin-bottom: 18px; }
.field label {
  font-size: 12px; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a7390' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  padding-right: 42px; cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,138,63,.18);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.form-submit { width: 100%; justify-content: center; margin-top: 4px; cursor: pointer; border: none; font-family: var(--font-sans); }
.form-submit:disabled { opacity: .65; cursor: default; }
.form-status { margin-top: 16px; font-size: 14px; text-align: center; min-height: 1em; }
.form-status.ok { color: #1f7a4d; font-weight: 600; }
.form-status.err { color: #c0392b; font-weight: 600; }
.or-divider {
  display: flex; align-items: center; gap: 16px;
  max-width: 640px; margin: 40px auto 0;
  color: rgba(251,247,239,.55); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.15em;
}
.or-divider::before,
.or-divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.18);
}

/* FOOTER */
.site-footer {
  background: var(--secondary); color: var(--muted);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.site-footer .container {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 16px; font-size: 14px; text-align: center;
}
@media (min-width: 768px) { .site-footer .container { flex-direction: row; text-align: left; } }
.site-footer .brand { gap: 12px; color: var(--primary); }
.site-footer svg { width: 28px; height: 28px; }
.footer-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
