/* Apex Home Care — main stylesheet */

:root {
  --green-900: #12302A;
  --green-800: #1C4636;
  --green-700: #245A47;
  --green-600: #2F7560;
  --green-500: #4E9A82;
  --green-300: #8FD3BA;
  --green-100: #DDF1E9;
  --green-50:  #F2F8F5;
  --ink:       #18291F;
  --ink-2:     #3E5146;
  --ink-3:     #66786D;
  --line:      #DCE7DF;
  --white:     #FFFFFF;
  --error:     #B42318;
  --error-bg:  #FEF3F2;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(18, 48, 42, .06), 0 10px 30px rgba(18, 48, 42, .08);
  --shadow-lg: 0 24px 60px rgba(18, 48, 42, .16);
  --font-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
h1, h2, h3 { font-family: var(--font-head); color: var(--green-900); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green-300); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } body { font-size: 17px; } }
.center { text-align: center; }
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 15px; height: 15px; vertical-align: -2px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 16px; }

.eyebrow {
  font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 12px;
}
.lead { font-size: 1.2rem; color: var(--green-800); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.2;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green-700); color: var(--white); }
.btn-primary:hover { background: var(--green-800); color: var(--white); box-shadow: 0 8px 22px rgba(28, 70, 54, .28); }
.btn-secondary { background: var(--white); color: var(--green-800); border-color: var(--green-700); }
.btn-secondary:hover { background: var(--green-50); color: var(--green-900); }
.btn-light { background: var(--white); color: var(--green-800); }
.btn-light:hover { background: var(--green-50); color: var(--green-900); }
.btn-outline-light { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); }

/* Top bar */
.topbar { background: var(--green-900); color: #CFE6D6; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { color: #CFE6D6; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--white); }
@media (max-width: 760px) { .topbar-right { display: none; } .topbar { font-size: .82rem; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: #184637; letter-spacing: .03em; white-space: nowrap; }
@media (max-width: 400px) { .brand-name { font-size: 1.08rem; } .brand img { width: 32px; } }
.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav ul a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
}
.main-nav ul a:hover { color: var(--green-800); background: var(--green-50); }
.main-nav ul a.active { color: var(--green-800); background: var(--green-100); }
.nav-call { white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--green-800); cursor: pointer; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline-flex; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--white); padding: 16px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { font-size: 1.05rem; padding: 12px 14px; border-radius: 10px; }
}

/* Hero */
.hero {
  background:
    radial-gradient(900px 480px at 88% 20%, rgba(143, 211, 186, .28), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(47, 117, 96, .10), transparent 60%),
    linear-gradient(180deg, #F7FAF8, #ECF5F1);
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; position: relative; z-index: 0; gap: 48px; align-items: center; }
.hero h1 span { color: var(--green-600); }
.hero-sub { font-size: 1.25rem; color: var(--ink-2); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.hero-phone { color: var(--ink-3); }
.hero-phone a { font-weight: 700; color: var(--green-800); text-decoration: none; white-space: nowrap; }
.hero-visual { position: relative; display: grid; place-items: center; padding: 24px 0; }
.hero-photo { margin: 0; width: min(440px, 100%); aspect-ratio: 6 / 7; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--green-100), var(--green-50)); position: relative; }
.hero-photo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(18, 48, 42, .08); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::before { content: ''; position: absolute; width: 70%; height: 80%; right: -6%; bottom: -2%; border-radius: 32px;
  background: linear-gradient(135deg, var(--green-300), var(--green-500)); opacity: .35; z-index: -1; }
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { width: 100%; max-width: 520px; aspect-ratio: 4 / 3; margin: 0 auto; }
    .hero-visual::before { display: none; }
}
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }

/* Trust bar */
.trust-bar { background: var(--green-800); color: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; text-align: left; }
.trust-item + .trust-item { border-left: 1px solid rgba(255,255,255,.18); }
.trust-item .icon { width: 30px; height: 30px; color: var(--green-300); }
@media (max-width: 760px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { justify-content: flex-start; padding: 14px 4px; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
}

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--green-50); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
@media (max-width: 700px) { .section { padding: 60px 0; } }

/* Welcome */
.welcome-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.welcome-letter p { color: var(--ink-2); }
.signature { font-family: var(--font-head); font-weight: 700; color: var(--green-800) !important; margin-top: 20px; }
.checklist-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; border-top: 6px solid var(--green-600); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.checklist li { display: flex; gap: 16px; }
.checklist strong { font-family: var(--font-head); color: var(--green-900); display: block; margin-bottom: 2px; }
.checklist p { margin: 0; color: var(--ink-2); }
.check-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; }
@media (max-width: 900px) { .welcome-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Audience */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.audience-card { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; }
.audience-card p { color: var(--ink-2); }
.audience-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--green-700); color: var(--white);
  display: grid; place-items: center; margin-bottom: 18px; }
.audience-icon .icon { width: 30px; height: 30px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700;
  text-decoration: none; margin-top: auto; padding-top: 12px; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s; }
@media (max-width: 800px) { .audience-grid { grid-template-columns: 1fr; } .audience-card { padding: 26px; } }

.ticks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); }
.ticks .icon { color: var(--green-500); margin-top: 4px; }

/* Services preview */
.services-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 36px; }
.service-tile { display: block; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green-300); color: inherit; }
.service-tile h3 { margin-bottom: 8px; }
.service-tile p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.service-tile-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 16px; }
@media (max-width: 900px) { .services-preview { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-preview { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); position: relative; }
.steps p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: var(--white);
  font-family: var(--font-head); font-weight: 800; margin-bottom: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Page hero (inner pages) */
.page-hero {
  background: radial-gradient(800px 300px at 90% 0%, rgba(143, 211, 186, .35), transparent 60%),
    linear-gradient(135deg, var(--green-900), var(--green-700));
  color: var(--white); padding: 72px 0 64px;
}
.page-hero h1 { color: var(--white); max-width: 860px; }
.page-hero .eyebrow { color: var(--green-300); }
.page-hero-sub { font-size: 1.2rem; color: #D6EBDD; max-width: 720px; margin: 0; }
.page-hero-small { padding: 56px 0 48px; }
.service-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.service-jump a { color: var(--white); text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: 8px 16px; font-size: .95rem; font-weight: 600; }
.service-jump a:hover { background: rgba(255,255,255,.12); color: var(--white); }

/* Services page */
.services-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.service-card { display: flex; gap: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); scroll-margin-top: 110px; }
.service-card h2 { font-size: 1.35rem; }
.service-card p { color: var(--ink-2); }
.service-icon { flex: none; width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--white); display: grid; place-items: center; }
.service-icon .icon { width: 32px; height: 32px; }
@media (max-width: 900px) { .services-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .service-card { flex-direction: column; padding: 24px; } }

.note-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; }
.note-card { background: var(--white); border-radius: var(--radius); padding: 34px; border: 1px solid var(--line); }
.note-card h2 { font-size: 1.5rem; }
.note-card p { color: var(--ink-2); }
.note-card-accent { background: var(--green-800); color: var(--white); border: 0; }
.note-card-accent h2 { color: var(--white); }
.note-card-accent p { color: #D6EBDD; }
.note-card-accent .btn-primary { background: var(--white); color: var(--green-800); }
@media (max-width: 800px) { .note-grid { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-copy p { color: var(--ink-2); }
.about-copy .lead { color: var(--green-800); }
.about-photo { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 14 / 11;
  background: linear-gradient(135deg, var(--green-100), var(--green-50)); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.value-card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.value-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 16px; }
.mission { max-width: 860px; text-align: center; }
.mission blockquote { font-family: var(--font-head); font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--green-900);
  line-height: 1.4; margin: 0 0 32px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 620px; } .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .values-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; background: var(--green-50); border-radius: var(--radius-sm); padding: 20px; }
.info-card h2 { font-size: 1rem; margin-bottom: 4px; }
.info-card p { margin: 0; color: var(--ink-2); }
.info-card a { text-decoration: none; font-weight: 600; }
.info-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--green-700); color: var(--white); display: grid; place-items: center; }
.map-wrap { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--green-50); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 40px; border-top: 6px solid var(--green-600); }
.form-intro { color: var(--ink-3); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 700; color: var(--green-900); margin-bottom: 6px; font-size: 1rem; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid #C7D6CC; border-radius: var(--radius-sm); padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(78, 154, 130, .18); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: .92rem; margin: 6px 0 0; }
.field-hint { color: var(--ink-3); font-size: .9rem; margin: 8px 0 0; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid #FECDCA; }
.form-legal { font-size: .88rem; color: var(--ink-3); margin: 14px 0 0; text-align: center; }
.form-success { text-align: center; padding: 20px 0; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; margin: 0 auto 18px; }
.success-icon .icon { width: 36px; height: 36px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } .form-card { order: -1; } }
@media (max-width: 600px) { .form-card { padding: 26px 20px; } .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Prose (privacy) */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose p { color: var(--ink-2); }

.notfound img { margin: 0 auto 20px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--green-700), var(--green-500)); color: var(--white); padding: 56px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { margin: 0; color: #E4F3E8; font-size: 1.1rem; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.page-contact .cta-band { display: none; }

/* Footer */
.site-footer { background: var(--green-900); color: #C4DCCB; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-footer h3 { color: var(--white); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #C4DCCB; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.brand-footer .brand-name { color: var(--white); }
.brand-footer img { width: 34px; }
.footer-brand p { margin-top: 18px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon, .footer-oncall .icon { color: var(--green-300); margin-top: 4px; }
.footer-oncall { display: flex; gap: 8px; color: var(--white); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; } }

/* Mobile call button */
.mobile-call { display: none; }
@media (max-width: 760px) {
  .mobile-call {
    display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    background: var(--green-700); color: var(--white); font-family: var(--font-head); font-weight: 700; text-decoration: none;
    padding: 15px; border-radius: 999px; box-shadow: 0 10px 30px rgba(18, 48, 42, .35);
  }
  .mobile-call:hover { color: var(--white); }
  .site-footer { padding-bottom: 76px; }
}

/* Reveal on scroll (only when JS is active) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
