/* ============================================
   Beyond Horizons Care — Stylesheet
   Palette derived from client mockup:
   Navy #16233F, Gold #C79A45, Cream #F6EFE2
   ============================================ */

:root {
  --navy: #16233F;
  --navy-light: #22335A;
  --gold: #C79A45;
  --gold-light: #E4C783;
  --cream: #F6EFE2;
  --cream-soft: #FBF7EF;
  --white: #FFFFFF;
  --text-dark: #16233F;
  --text-body: #5B5F6B;
  --text-on-navy: #F3EFE4;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
  --font-script: 'Give You Glory', cursive;

  --radius: 6px;
  --shadow: 0 10px 30px rgba(22, 35, 63, 0.08);
  --shadow-hover: 0 16px 40px rgba(22, 35, 63, 0.14);
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 46px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; }

p { margin-bottom: 16px; }

.script {
  font-family: var(--font-script);
  color: var(--gold);
  font-weight: 400;
}

.eyebrow-rule {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 18px 0 24px;
  border: none;
}

.section {
  padding: 90px 0;
}

.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--text-on-navy); }
.section-navy h2 { color: var(--white); }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.section-head.left { text-align: left; margin: 0 0 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-body);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(22,35,63,0.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { line-height: 1.3; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--gold);
}

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  background: var(--white);
  box-shadow: var(--shadow-hover);
  border-radius: var(--radius);
  min-width: 260px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
}
.dropdown a:hover { background: var(--cream); color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-cta .btn { padding: 12px 22px; font-size: 14px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span { width: 26px; height: 2px; background: var(--navy); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid #eee;
  padding: 10px 32px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 0; font-size: 14.5px; border-bottom: 1px solid #f2ede0; }
.mobile-nav a:last-child { border-bottom: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--cream-soft);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.hero-copy {
  padding: 100px 60px 60px 32px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy h1 { margin-bottom: 8px; }
.hero-copy .eyebrow-rule { margin: 12px 0 24px; }
.hero-copy p { color: var(--text-body); font-size: 15.5px; }
.hero-actions { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; }

.hero-image-wrap { position: relative; }
.hero-image {
  width: 100%; height: 100%;
  min-height: 480px;
  object-fit: cover;
  background: linear-gradient(135deg, #d9c9a8, #c9b189);
}

.hero-strip {
  position: relative;
  background: var(--navy);
  margin: -50px 32px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 5;
}
.hero-strip-item {
  text-align: center;
  padding: 26px 14px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.hero-strip-item:last-child { border-right: none; }
.hero-strip-icon { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--gold); }
.hero-strip-item strong {
  display: block;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 15px;
  margin-bottom: 4px;
}
.hero-strip-item span { color: var(--text-on-navy); font-size: 12.5px; opacity: 0.8; }
.hero-bottom-space { height: 60px; background: var(--cream-soft); }

/* ---------- Why / Values ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.value-item {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}
.value-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.value-icon svg { width: 22px; height: 22px; }
.value-item h3 { font-size: 17px; margin-bottom: 4px; }
.value-item p { font-size: 14.5px; margin-bottom: 0; }

blockquote.pull {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 26px;
  margin: 24px 0;
  line-height: 1.4;
}

/* ---------- Services Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card-img {
  position: relative;
  height: 210px;
  background: linear-gradient(135deg, #cbb98f, #a89468);
}
.service-card-icon {
  position: absolute;
  bottom: -26px; left: 24px;
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 4px solid var(--white);
}
.service-card-icon svg { width: 22px; height: 22px; color: var(--gold); }
.service-card-body { padding: 40px 24px 28px; }
.service-card-body h3 { margin-bottom: 10px; }
.service-card-body p { font-size: 14.5px; margin-bottom: 18px; }
.learn-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 600; font-size: 14px;
}
.learn-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.learn-link:hover svg { transform: translateX(4px); }

/* ---------- Who We Support ---------- */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}
.split-image {
  height: 100%; min-height: 460px;
  background: linear-gradient(135deg, #e3d3ab, #b7a077);
}
.split-copy { padding: 0 0 0 70px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px; font-size: 14.5px; color: var(--text-body);
}
.check-list svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.check-list strong { display: block; margin-bottom: 6px; color: var(--navy); font-size: 15px; }

/* ---------- Banner ---------- */
.banner {
  background: var(--navy);
  text-align: center;
  padding: 60px 32px;
}
.banner h2 { color: var(--white); font-size: 26px; margin-bottom: 10px; }
.banner .script { font-size: 26px; }

/* ---------- CTA strip ---------- */
.cta-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 50px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.cta-strip-left { display: flex; align-items: center; gap: 20px; }
.cta-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cta-icon svg { width: 26px; height: 26px; color: var(--gold); }
.cta-strip-left h3 { margin-bottom: 4px; }
.cta-strip-left p { margin-bottom: 0; font-size: 14.5px; }
.cta-strip-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--text-on-navy); padding-top: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo .logo-mark { width: 36px; height: 36px; }
.footer-logo-text { font-family: var(--font-heading); color: var(--white); font-weight: 700; font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-col p { font-size: 13.5px; opacity: 0.75; margin-bottom: 8px; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; font-family: var(--font-heading); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13.5px; opacity: 0.8; }
.footer-col ul li a:hover { opacity: 1; color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 13.5px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-tag { font-family: var(--font-script); color: var(--gold); font-size: 18px; margin-top: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 12.5px; opacity: 0.7; flex-wrap: wrap; gap: 10px;
}
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: var(--gold); }
.footer-policy-links {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  padding: 18px 0 26px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 12.5px;
}
.footer-policy-links a { opacity: 0.75; }
.footer-policy-links a:hover { opacity: 1; color: var(--gold); }

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--navy);
  padding: 150px 32px 70px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero .breadcrumb { color: var(--gold); font-size: 13px; margin-bottom: 14px; letter-spacing: 1px; text-transform: uppercase; }
.page-hero p { color: var(--text-on-navy); max-width: 620px; margin: 14px auto 0; opacity: 0.85; }

.placeholder-block {
  border: 2px dashed #d8cba8;
  background: var(--cream-soft);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--text-body);
  font-size: 14px;
}

.image-placeholder {
  border: 2px dashed rgba(22,35,63,0.2);
  background: repeating-linear-gradient(45deg, #efe6d3, #efe6d3 10px, #e8dcc0 10px, #e8dcc0 20px);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 13px; font-weight: 600;
  text-align: center; padding: 20px;
  min-height: 240px;
  border-radius: var(--radius);
}

/* ---------- Anchor offset for sticky header ---------- */
.anchor-target { scroll-margin-top: 100px; }

/* ---------- Content section generic ---------- */
.content-block { max-width: 800px; }
.content-block h2 { margin-top: 36px; margin-bottom: 14px; }
.content-block h2:first-child { margin-top: 0; }
.content-block ul { margin: 0 0 20px 0; }
.content-block ul li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 15px; }
.content-block ul li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

/* ---------- Form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
}
.info-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 34px;
  margin-bottom: 20px;
}
.info-card h3 { margin-bottom: 12px; }
.info-card ul li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14.5px; align-items: flex-start; }
.info-card ul li svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--navy);
  margin-bottom: 8px;
}
.form-group label .req { color: var(--gold); }
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=tel],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #E2DACB;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-dark);
  background: var(--cream-soft);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.radio-group, .checkbox-group {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.radio-pill {
  position: relative;
}
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill label {
  display: inline-block;
  padding: 10px 16px;
  border: 1.5px solid #E2DACB;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0;
}
.radio-pill input:checked + label {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.form-note { font-size: 12.5px; color: var(--text-body); margin-top: -6px; margin-bottom: 20px; }
.form-success, .form-error {
  padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-size: 14.5px;
}
.form-success { background: #E7F3E8; color: #2E6B34; border: 1px solid #BEE0C2; }
.form-error { background: #FCEAEA; color: #A33; border: 1px solid #F3C6C6; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .main-nav, .nav-cta .btn-outline { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 50px 24px 40px; max-width: 100%; }
  .hero-image { min-height: 320px; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); margin: -30px 16px 0; }
  .hero-strip-item:nth-child(2) { border-right: none; }
  .two-col, .card-grid, .footer-grid, .contact-layout { grid-template-columns: 1fr; }
  .split-block { grid-template-columns: 1fr; }
  .split-copy { padding: 50px 24px; }
  .split-image { min-height: 300px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; text-align: center; }
  .page-hero { padding: 130px 24px 60px; }
}

@media (max-width: 600px) {
  .container, .nav-wrap { padding: 0 20px; }
  .section { padding: 60px 0; }
  h1 { font-size: 30px; }
}
