/* TrustKeyHomes shared styles. Self-contained, no external CDNs or webfonts. */

:root {
  --emerald: #0B7A4B;
  --emerald-bright: #12b06a;
  --gold: #B4820A;
  --ink: #1c2620;
  --ground: #F6F8F7;
  --card: #FFFFFF;
  --dark-body: #E8F0EB;
  --border: #d8e2dc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 122, 75, 0.10);
  --maxw: 1120px;
  --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(--ground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Signature gradient rule */
.grad-rule { height: 5px; background: linear-gradient(90deg, var(--emerald) 0%, var(--emerald-bright) 55%, var(--gold) 100%); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { flex: 0 0 auto; }
.brand .tk-key { color: var(--emerald); }
.brand .tk-homes { color: var(--gold); }

.call-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--emerald-bright) 100%);
  color: #fff; font-weight: 800; font-size: 1.05rem;
  padding: 11px 18px; border-radius: 999px;
  box-shadow: var(--shadow); white-space: nowrap;
}
.call-btn:hover { text-decoration: none; filter: brightness(1.05); }
.call-btn small { display: block; font-weight: 600; font-size: .72rem; opacity: .92; line-height: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 1.1rem; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 0;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--emerald-bright) 100%);
  color: #fff; box-shadow: var(--shadow); width: 100%;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-gold { background: linear-gradient(90deg, var(--gold) 0%, #d69a19 100%); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, #0b7a4b 0%, #0e6f57 55%, #0a5a3d 100%); color: #fff; padding: 46px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .9fr; gap: 40px; align-items: start; }
.hero h1 { color: #fff; }
.hero .sub { color: var(--dark-body); font-size: 1.2rem; max-width: 40ch; }
.eyebrow { display: inline-block; background: rgba(255,255,255,0.14); color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.trust-bullets { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.trust-bullets li { display: flex; align-items: flex-start; gap: 10px; color: var(--dark-body); font-weight: 600; }
.trust-bullets svg { flex: 0 0 auto; margin-top: 3px; }

/* ---------- Lead form card ---------- */
.form-card { background: var(--card); border-radius: var(--radius); box-shadow: 0 18px 46px rgba(0,0,0,0.22); padding: 26px; color: var(--ink); }
.form-card h2 { font-size: 1.4rem; margin-bottom: 4px; }
.form-card .form-note { color: var(--ink); font-size: .95rem; margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 5px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 12px 13px; font-size: 1rem; font-family: var(--font);
  border: 1.5px solid var(--border); border-radius: 10px; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { outline: 3px solid rgba(18,176,106,0.35); border-color: var(--emerald); }
.field textarea { resize: vertical; min-height: 76px; }
.req { color: var(--gold); }
.consent { font-size: .82rem; color: var(--ink); margin-top: 12px; text-align: center; }
.hp { position: absolute; left: -9999px; }

/* ---------- Sections ---------- */
section { padding: 58px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { color: var(--ink); font-size: 1.1rem; }
.alt { background: #eef3f0; }
.dark { background: linear-gradient(160deg, #0e2b20 0%, #123a2a 100%); color: var(--dark-body); }
.dark h2, .dark h3 { color: #fff; }
.dark .section-head p { color: var(--dark-body); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; background: linear-gradient(90deg, var(--emerald), var(--emerald-bright)); color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 14px; }

/* Benefit grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card .ico { width: 42px; height: 42px; color: var(--emerald); margin-bottom: 12px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink); margin: 0; }

/* Situations */
.situations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 820px; margin: 0 auto; }
.situations li { list-style: none; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 14px 16px; font-weight: 600; }
.situations svg { flex: 0 0 auto; color: var(--emerald-bright); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--card); border: 1px solid var(--border); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 24px; }
.quote p { font-size: 1.02rem; }
.quote .who { font-weight: 800; color: var(--emerald); margin: 0; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; padding: 4px 18px; }
.faq summary { font-weight: 800; cursor: pointer; padding: 14px 0; list-style: none; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--emerald); font-weight: 800; display: inline-block; transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--emerald); }
.faq p { padding-bottom: 14px; margin: 0; color: var(--ink); }

/* CTA band */
.cta-band { background: linear-gradient(90deg, var(--emerald) 0%, var(--emerald-bright) 60%, var(--gold) 130%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #eafff3; font-size: 1.15rem; max-width: 620px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-actions .btn { width: auto; }
.btn-white { background: #fff; color: var(--emerald); }

/* content pages (SEO) */
.content { max-width: 760px; margin: 0 auto; }
.content h2 { margin-top: 1.4em; }
.content ul { padding-left: 22px; }
.content li { margin-bottom: 8px; }
.callout { background: #eef3f0; border-left: 5px solid var(--emerald); border-radius: 10px; padding: 18px 20px; margin: 24px 0; }
.callout strong { color: var(--emerald); }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }

/* ---------- Footer ---------- */
.site-footer { background: #0e2b20; color: var(--dark-body); padding: 44px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.site-footer a { color: #bfe6d3; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; font-size: .82rem; color: #cfe0d6; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 10px; }

/* thank you */
.ty { text-align: center; max-width: 620px; margin: 0 auto; padding: 30px 0; }
.ty .check { width: 84px; height: 84px; color: var(--emerald-bright); margin: 0 auto 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .steps, .grid, .quotes { grid-template-columns: 1fr; }
  .situations { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .call-btn small { display: none; }
}
