/* Safe Haven Home Care — site styles */
:root {
  --ink: #0d0b0f;
  --ink-2: #16121a;
  --ink-3: #1e1824;
  --purple: #5e1b91;
  --purple-2: #7a2bb8;
  --purple-deep: #2a0d40;
  --gold: #d6a84e;
  --gold-2: #f0cf85;
  --text: #f3eee6;
  --muted: #c9c0b4;
  --line: rgba(214, 168, 78, .35);
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; font-family: var(--body);
}
.eyebrow.lined::before, .eyebrow.lined::after { content: ""; width: 36px; height: 1px; background: var(--gold); }
.eyebrow.lined-l::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px; border-radius: 999px;
  font-family: var(--body); font-size: 1rem; font-weight: 500;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn::after { content: "→"; }
.btn:hover { transform: translateY(-2px); }
.btn-purple { background: linear-gradient(180deg, var(--purple-2), var(--purple)); border-color: var(--gold); color: #fff; box-shadow: 0 6px 20px rgba(94, 27, 145, .45); }
.btn-outline { border-color: var(--gold); color: var(--gold-2); background: rgba(0,0,0,.25); }
.btn-outline:hover { background: rgba(214,168,78,.12); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.link-arrow { color: var(--gold); text-decoration: none; font-weight: 500; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 11, 15, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo img { height: 66px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--gold-2); }
.nav a[aria-current="page"] { color: var(--gold); border-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--gold); border-radius: 8px; padding: 8px 12px; font-size: 1.2rem; cursor: pointer; }
.header-cta { padding: 10px 24px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 75% 40%, #3b2a1c 0%, #1a130f 45%, var(--ink) 80%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; min-height: 560px; padding-block: 56px 80px; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-photo { position: relative; }
.hero-photo { max-width: 356px; justify-self: center; width: 100%; }
.hero-photo img { width: 100%; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.55); mask-image: linear-gradient(90deg, transparent 0, #000 16%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
.script-note { font-family: var(--script); color: var(--gold-2); font-size: 2.1rem; line-height: 1.1; transform: rotate(-8deg); }
.hero-photo .script-note { position: absolute; right: -6px; bottom: 26px; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.trust { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; }
.trust li { display: flex; align-items: center; gap: 10px; padding: 0 18px; font-size: .88rem; white-space: nowrap; line-height: 1.3; border-left: 1px solid var(--line); list-style: none; }
.trust { padding: 0; }
.trust li:first-child { padding-left: 0; border-left: 0; }
.ico { width: 36px; height: 36px; flex: none; color: var(--gold); }
.swoosh { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; width: 100%; }

/* Sections */
section { position: relative; }
.band { padding-block: 90px; }
.band-dark { background: var(--ink-2); }
.divider { border-top: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.photo-frame img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.5); width: 100%; max-width: 420px; margin-inline: auto; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.card {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-img { aspect-ratio: 250 / 98; object-fit: cover; width: 100%; }
.card-body { position: relative; padding: 40px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-badge {
  position: absolute; top: -28px; left: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--purple); border: 2px solid var(--gold); display: grid; place-items: center; color: #fff;
}
.card-badge .ico { width: 28px; height: 28px; color: #fff; }
.card h3 { font-size: 1.5rem; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }


/* Who we serve */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.audience .panel { border-top: 3px solid var(--gold); display: flex; flex-direction: column; }
.audience .panel .ring { width: 58px; height: 58px; border-radius: 50%; background: var(--purple); border: 1.5px solid var(--gold); display: grid; place-items: center; margin-bottom: 16px; }
.audience .panel .ring .ico { color: #fff; width: 28px; height: 28px; }
.audience .panel .tag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.audience .panel ul { margin: 14px 0 0; }
.audience .panel p + .checks { margin-top: 14px; }

/* Mission */
.mission {
  margin-top: 36px; padding: 30px 34px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(94,27,145,.35), rgba(94,27,145,.1));
  border: 1px solid var(--line);
}
.mission h3 { color: var(--gold); font-size: 1.35rem; margin-bottom: .5em; }
.mission p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; margin: 0; }

.counties { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.counties li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: .9rem; color: var(--gold-2); }

/* Why choose */
.why { display: grid; grid-template-columns: .85fr 1.15fr; background: var(--ink-2); }
.why-photo { display: grid; place-items: center; padding: 40px 0 40px 40px; }
.why-photo img { width: 100%; max-width: 400px; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.why-body { padding: 70px 56px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 30px; }
.feature .ring { width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { font-size: 1.3rem; }
.feature p { font-size: .93rem; color: var(--muted); }

/* CTA */
.cta {
  background: linear-gradient(90deg, var(--purple-deep) 0%, rgba(42,13,64,.92) 45%, rgba(42,13,64,.35) 100%), url("../img/cta.jpg") right center / cover no-repeat;
  padding-block: 70px; border-top: 1px solid var(--line);
}
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta p { color: var(--muted); max-width: 36em; }

/* Page hero (inner pages) */
.page-hero { padding-block: 80px 60px; background: radial-gradient(ellipse at 80% 20%, rgba(122,43,184,.35), transparent 60%), var(--ink); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 40em; font-size: 1.1rem; }

/* Detail lists */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.service-detail { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; padding-block: 56px; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 0; }
.service-detail img { border-radius: var(--radius); width: 100%; max-width: 250px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.panel { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel p { color: var(--muted); margin: 0; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .88rem; color: var(--gold-2); margin-bottom: 6px; letter-spacing: .03em; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px; font: inherit; font-size: 1rem;
  background: #0a080c; color: var(--text); border: 1px solid rgba(214,168,78,.3);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 130px; resize: vertical; }
.form-status { grid-column: 1 / -1; color: var(--gold-2); min-height: 1.5em; margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 44px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list strong { display: block; color: var(--gold); font-weight: 500; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.info-list a { text-decoration: none; }

/* Footer */
.site-footer { background: #08070a; border-top: 1px solid var(--line); padding-block: 56px 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); margin: 0 0 12px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--gold-2); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(214,168,78,.18); color: #8b8378; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Responsive */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .why-body { padding: 56px 24px; }
  .why-photo { padding: 40px 24px 0; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .nav li a { display: block; padding: 12px 0; }
  .hero .wrap, .split, .contact-grid, .service-detail { grid-template-columns: 1fr; }
  .hero-photo img { mask-image: none; -webkit-mask-image: none; }
  .values, .footer-grid { grid-template-columns: 1fr; }
  .band { padding-block: 64px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .cards, .form { grid-template-columns: 1fr; }
  .mission { padding: 24px 20px; }
  .mission p { font-size: 1.15rem; }
  .trust li { padding: 8px 0; border-left: 0; width: 100%; }
  .logo img { height: 52px; }
  .script-note { font-size: 1.7rem; }
}

/* Header phone */
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { text-decoration: none; color: var(--gold-2); font-weight: 500; white-space: nowrap; }
.header-phone::before { content: "✆ "; color: var(--gold); }
.header-phone:hover { color: var(--gold); }
@media (max-width: 1140px) { .header-phone { display: none; } }
@media (max-width: 900px) { .header-actions { order: 2; } }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.price-card {
  position: relative; background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 28px;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 20px 50px rgba(94,27,145,.35); }
.price-card h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.price-flag { align-self: flex-start; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--gold); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.price-options { display: grid; gap: 12px; margin: 6px 0 22px; }
.price-option { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 16px; padding: 14px 18px; border-radius: 10px; background: rgba(94,27,145,.22); border: 1px solid rgba(214,168,78,.22); }
.price-label { font-weight: 500; }
.price { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--gold-2); line-height: 1; text-align: right; white-space: nowrap; }
.price small { font-family: var(--body); font-size: .8rem; font-weight: 400; color: var(--muted); }
.price-note { grid-column: 1 / -1; font-size: .86rem; color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); }
.rate-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.rate-table th, .rate-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid rgba(214,168,78,.18); vertical-align: top; }
.rate-table th { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; background: var(--ink-3); }
.rate-table tr:last-child td { border-bottom: 0; }
.rate-table .rate { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--gold-2); white-space: nowrap; }
.rate-table td:last-child { color: var(--muted); }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .price-card { padding: 28px 20px 22px; } .price { font-size: 1.7rem; } }
@media (max-width: 600px) {
  .rate-table { min-width: 0; }
  .rate-table thead { display: none; }
  .rate-table tr { display: block; padding: 16px 18px; border-bottom: 1px solid rgba(214,168,78,.18); }
  .rate-table tr:last-child { border-bottom: 0; }
  .rate-table td { display: block; padding: 2px 0; border: 0; }
}
.service-detail img.crop { aspect-ratio: 250 / 98; object-fit: cover; object-position: center 25%; }

/* Homepage service grid: 3 per row on desktop */
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1040px) { .cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards.three { grid-template-columns: 1fr; } }
