/* ============================================
   style.css — Layout & section styles
   CareConnect Disability Support
   ============================================ */

/* ── Base ── */
body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-forest);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ── Section Labels & Titles ── */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-moss);
  margin-bottom: var(--space-3);
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-sage);
  border-radius: 2px;
}
.section-label--light { color: var(--color-mint); }
.section-label--light::before { background-color: var(--color-sage); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-forest);
  margin-bottom: var(--space-8);
}
.section-title--light { color: var(--color-white); }

/* ─────────────────────────────────────────
   TOP STRIP
───────────────────────────────────────── */
.top-strip {
  background-color: var(--color-forest);
  padding: var(--space-2) var(--space-10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.top-strip__left {
  font-size: var(--fs-xs);
  color: var(--color-mint);
  letter-spacing: 0.03em;
}
.top-strip__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.top-strip__link {
  font-size: var(--fs-xs);
  color: #aac8b4;
  transition: color var(--transition-fast);
}
.top-strip__link:hover { color: var(--color-white); }

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
.navbar {
  background-color: var(--color-white);
  padding: 0 var(--space-10);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--color-dew);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.navbar__logo-icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-forest);
  border-radius: 50% 12px 50% 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}
.navbar__logo-text {
  display: flex;
  flex-direction: column;
}
.navbar__logo-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-forest);
  line-height: 1;
}
.navbar__logo-tagline {
  font-size: var(--fs-xs);
  color: var(--color-moss);
  font-weight: var(--fw-medium);
}

.navbar__links {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}
.navbar__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-forest-mid);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-moss);
  border-radius: 2px;
  transition: width var(--transition-base);
}
.navbar__link:hover,
.navbar__link.active { color: var(--color-forest); }
.navbar__link:hover::after,
.navbar__link.active::after { width: 100%; }

/* Navbar Dropdown */
.navbar__dropdown {
  position: relative;
}
.navbar__link--dropdown {
  cursor: pointer;
}
.navbar__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-dew);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 200;
  padding: var(--space-2) 0;
}
.navbar__dropdown:hover .navbar__dropdown-menu {
  display: block;
}
.navbar__dropdown-link {
  display: block;
  padding: var(--space-2) var(--space-4);
  color: var(--color-forest-mid);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.navbar__dropdown-link:hover {
  background: var(--color-dew);
  color: var(--color-forest);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-forest);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Navbar button hover effects - using btn--ghost from components.css */

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-height) - 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: var(--space-10);
  padding: var(--space-16) var(--space-10);
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
  max-width: var(--container-max);
  margin-inline: auto;
}

/* Organic blob shapes */
.hero__blob {
  position: absolute;
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  opacity: 0.45;
  z-index: 0;
}
.hero__blob--top {
  width: clamp(300px, 40vw, 480px);
  height: clamp(300px, 40vw, 480px);
  background-color: var(--color-dew);
  top: -80px;
  right: -60px;
}
.hero__blob--bottom {
  width: clamp(200px, 25vw, 320px);
  height: clamp(200px, 25vw, 320px);
  background-color: #c8e6d4;
  bottom: -80px;
  left: 30%;
  border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
}

.hero__left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero__heading {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-black);
  line-height: 1.12;
  color: var(--color-forest);
}
.hero__accent {
  font-style: normal;
  color: var(--color-moss);
  text-decoration: underline;
  text-decoration-color: var(--color-mint);
  text-underline-offset: 5px;
}

.hero__desc {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 460px;
  font-weight: var(--fw-light);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero Right — Search Card */
.hero__right {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

/* ─────────────────────────────────────────
   SEARCH CARD
───────────────────────────────────────── */
.search-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--color-dew);
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: fadeUp 0.7s 0.2s ease both;
}
.search-card__leaf {
  position: absolute;
  top: -14px;
  right: var(--space-6);
  font-size: 1.75rem;
}
.search-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-forest);
  margin-bottom: var(--space-1);
}
.search-card__sub {
  font-size: var(--fs-xs);
  color: var(--color-sage);
  margin-bottom: var(--space-5);
}

/* ─────────────────────────────────────────
   TRUST BAND
───────────────────────────────────────── */
.trust-band {
  background-color: var(--color-forest);
  padding: var(--space-5) var(--space-10);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-mint);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}
.trust-item__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--color-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   TAGLINE SECTION
───────────────────────────────────────── */
.tagline-section {
  padding: var(--space-16) var(--space-10);
  text-align: center;
  background-color: var(--color-forest);
}
.tagline-section__heading {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.4;
  margin-bottom: var(--space-4);
}
.tagline-section__divider {
  font-size: 1.5rem;
  margin: var(--space-4) 0;
  opacity: 0.45;
}
.tagline-section__body {
  font-size: var(--fs-base);
  color: var(--color-white);
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.8;
  font-weight: var(--fw-light);
}

/* ─────────────────────────────────────────
   SERVICES SECTION
───────────────────────────────────────── */
.services-section {
  padding: var(--space-16) 0;
  background-color: var(--color-cream);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}

/* ─────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────── */
.how-section {
  background-color: var(--color-forest);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}
.how-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(74, 124, 89, 0.2);
  border-radius: 50%;
}
.how-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 240px;
  height: 240px;
  background: rgba(122, 170, 138, 0.12);
  border-radius: 50%;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────── */
.cta-section {
  padding: var(--space-20) var(--space-10);
  text-align: center;
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.cta-section__deco {
  position: absolute;
  font-size: 3rem;
  opacity: 0.1;
}
.cta-section__deco--left  { top: var(--space-8); left: var(--space-10); }
.cta-section__deco--right { bottom: var(--space-8); right: var(--space-10); }
.cta-section__heading {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-forest);
  margin-bottom: var(--space-4);
}
.cta-section__body {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  font-weight: var(--fw-light);
}
.cta-section__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background-color: var(--color-forest);
  padding: var(--space-12) 0 var(--space-8);
  color: var(--color-mint);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(122, 170, 138, 0.2);
  margin-bottom: var(--space-6);
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}
.footer__brand-body {
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: var(--color-sage);
  font-weight: var(--fw-light);
}
.footer__col-title {
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer__link {
  display: block;
  color: var(--color-sage);
  font-size: var(--fs-xs);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}
.footer__link:hover { color: var(--color-mint); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--color-sage);
}

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__left > * {
  animation: fadeUp 0.6s ease both;
}
.hero__left > *:nth-child(1) { animation-delay: 0.05s; }
.hero__left > *:nth-child(2) { animation-delay: 0.15s; }
.hero__left > *:nth-child(3) { animation-delay: 0.25s; }
.hero__left > *:nth-child(4) { animation-delay: 0.35s; }
.hero__left > *:nth-child(5) { animation-delay: 0.45s; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer__grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: var(--space-10) var(--space-6);
  }
  .hero__heading { font-size: var(--fs-3xl); }
  .hero__right   { display: none; }
  .navbar { padding: 0 var(--space-4); }
  .navbar__logo { gap: 8px; }
  .navbar__logo img { height: 36px !important; }
  .navbar__logo-text { display: none; }
  .navbar__links { display: none; }
  .navbar__burger{ display: flex; }
  .navbar__actions { gap: 8px; }
  .navbar__actions .btn { padding: 8px 12px; font-size: 12px; }
  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-white);
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-dew);
    gap: var(--space-4);
    box-shadow: var(--shadow-md);
  }
  .top-strip { flex-direction: column; text-align: center; }
  .trust-band { gap: var(--space-4); padding: var(--space-4); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid    { grid-template-columns: 1fr; }
  .footer__grid  { grid-template-columns: 1fr; }
  .footer__bottom{ flex-direction: column; gap: var(--space-2); text-align: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .cta-section__actions { flex-direction: column; align-items: center; }
  .top-strip .btn { width: auto; }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--space-8) var(--space-4);
  }
  .hero__heading { font-size: var(--fs-2xl); }
  .hero__blob--top,
  .hero__blob--bottom { display: none; }
  .top-strip { padding: var(--space-2) var(--space-4); }
  .navbar { padding: 0 var(--space-4); }
  .navbar__logo-icon { width: 36px; height: 36px; }
  .navbar__logo-name { font-size: var(--fs-base); }
  .navbar__logo-tagline { font-size: var(--fs-xs); }
  .trust-band { padding: var(--space-3) var(--space-4); }
  .tagline-section { padding: var(--space-12) var(--space-4); }
  .services-section { padding: var(--space-12) 0; }
  .how-section { padding: var(--space-16) 0; }
  .cta-section { padding: var(--space-16) var(--space-4); }
  .footer { padding: var(--space-8) 0 var(--space-6); }
}

.btn {
  width: auto;
  max-width: 100%;
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }
}