/* ========================================
   MAIN STYLESHEET — 365 Care Services
   ======================================== */

/* ------ GENERAL ------ */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------ TYPOGRAPHY UTILITIES ------ */
.text-heading-xl {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
}
.text-heading-lg {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
}
.text-heading-md {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
}
.text-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-muted);
}
.text-muted {
  color: var(--color-text-muted);
}
.text-accent {
  color: var(--color-accent);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: block;
}

/* ------ BUTTONS ------ */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 2px;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 2s ease;
  text-align: center;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 2s ease, color 2s ease, border-color 2s ease;
  text-align: center;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-secondary--dark {
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn-secondary--dark:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ------ IMAGE PLACEHOLDER / FALLBACK ------ */
.image-placeholder {
  background: var(--color-section);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  width: 100%;
}
.image-placeholder span {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Fallback container for img tags that fail to load */
.img-fallback-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.img-fallback-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-fallback-wrap .img-fallback {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--color-section);
  align-items: center;
  justify-content: center;
}
.img-fallback-wrap .img-fallback span {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.img-fallback-wrap.img-broken img {
  visibility: hidden;
}
.img-fallback-wrap.img-broken .img-fallback {
  display: flex;
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-white);
  transition: box-shadow var(--transition-base), background var(--transition-base);
}
.site-nav.nav-scrolled {
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}
.nav-logo .logo-365 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-logo);
  font-weight: 700;
}
.nav-logo .logo-services {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-logo);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color var(--transition-base);
  font-weight: 400;
}
.nav-link:hover {
  color: var(--color-accent);
}

.nav-cta {
  margin-left: var(--space-4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  z-index: 999;
}
.nav-mobile.nav-open {
  max-height: 400px;
}
.nav-mobile .nav-mobile-links {
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-6) var(--space-8);
  gap: var(--space-5);
}
.nav-mobile .nav-link {
  font-size: var(--text-base);
  padding: var(--space-2) 0;
}
.nav-mobile .nav-cta {
  margin-left: 0;
  margin-top: var(--space-2);
}

/* Hamburger animated state */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .nav-mobile {
    display: block;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #1A1A1A;
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-16) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-12);
}
.footer-logo .logo-365 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 700;
}
.footer-logo .logo-services {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}
.footer-tagline {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 320px;
}
.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  font-weight: 500;
}
.footer-links li {
  margin-bottom: var(--space-3);
}
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-base);
}
.footer-links a:hover {
  color: var(--color-accent);
}
.footer-contact p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  color: rgba(255,255,255,0.55);
}
.footer-bottom {
  margin-top: var(--space-12);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-6) 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   HERO SECTIONS
   ======================================== */
.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.section-hero--short {
  min-height: 60vh;
}
.section-hero--xs {
  min-height: 40vh;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-section);
  background-image: url('../assets/images/hero-placeholder.png');
  background-size: cover;
  background-position: center;
}
.hero-bg--about {
  background-image: url('../assets/images/about-hero.png');
}
.hero-bg--services {
  background-image: url('../assets/images/homecare-hero.png');
}
.hero-bg--levels {
  background-image: url('../assets/images/levels-hero.png');
}
.hero-bg--howitworks {
  background-image: url('../assets/images/howitworks-hero.png');
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.50);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--space-6);
}
.hero-content .eyebrow {
  color: var(--color-white);
}
.hero-content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-6);
}
.hero-content p {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-xl);
  max-width: 640px;
  margin: 0 auto var(--space-8);
  opacity: 0.9;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero caption bar */
.hero-caption-bar {
  background: var(--color-section);
  padding: var(--space-12) 0;
}
.hero-caption-bar p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-text);
  line-height: 1.8;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* ========================================
   TRUST BAR
   ======================================== */
.section-trust {
  background: var(--color-white);
  padding: var(--space-8) 0;
}
.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.trust-item {
  text-align: center;
  padding: var(--space-6) var(--space-8);
  flex: 1;
}
.trust-item + .trust-item {
  border-left: 1px solid var(--color-section);
}
.trust-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  line-height: 1.2;
}
.trust-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

@media (max-width: 767px) {
  .trust-row {
    flex-direction: column;
  }
  .trust-item + .trust-item {
    border-left: none;
    border-top: 1px solid var(--color-section);
  }
}

/* ========================================
   SECTION: ABOUT INTRO (HOMEPAGE)
   ======================================== */
.section-about {
  background: var(--color-bg);
  padding: var(--space-24) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.about-image {
  aspect-ratio: 4 / 5;
  background: var(--color-section);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image span {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.about-content .text-heading-lg {
  margin-bottom: var(--space-6);
}
.about-content .text-body {
  max-width: 520px;
  margin-bottom: var(--space-6);
}
.link-accent {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: text-decoration var(--transition-base);
}
.link-accent:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .about-image {
    aspect-ratio: 16 / 9;
  }
}

/* ========================================
   SECTION: SERVICES PREVIEW
   ======================================== */
.section-services {
  background: var(--color-section);
  padding: var(--space-24) 0;
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section-header .text-heading-lg,
.section-header .text-heading-md {
  margin-top: var(--space-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.card-service {
  background: var(--color-white);
  padding: 40px 32px;
  position: relative;
}
.card-service::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: var(--space-6);
}
.card-service-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}
.card-service h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: var(--space-4);
}
.card-service p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SECTION: LEVELS OF CARE TEASER
   ======================================== */
.section-levels {
  background: var(--color-bg);
  padding: var(--space-24) 0;
}
.levels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}
.card-level {
  display: flex;
  overflow: hidden;
  background: var(--color-white);
  min-height: 100px;
}
.card-level-badge {
  width: 60px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  font-weight: 500;
  padding: var(--space-4) var(--space-2);
  flex-shrink: 0;
}
.card-level-content {
  padding: var(--space-6) var(--space-6);
}
.card-level-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: var(--space-2);
}
.card-level-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .levels-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SECTION: HOW IT WORKS
   ======================================== */
.section-how {
  background: var(--color-section);
  padding: var(--space-20) 0;
}
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--color-accent);
  opacity: 0.3;
  z-index: 0;
}
.card-step {
  text-align: center;
  flex: 1;
  max-width: 240px;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}
.card-step h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
}
.card-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .steps-row {
    flex-direction: column;
    align-items: center;
  }
  .steps-row::before {
    display: none;
  }
  .card-step {
    max-width: 100%;
  }
}

/* ========================================
   SECTION: CTA BANNER
   ======================================== */
.section-cta {
  background: var(--color-accent);
  padding: var(--space-20) 0;
  text-align: center;
}
.section-cta h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}
.section-cta p {
  font-family: var(--font-body);
  color: var(--color-white);
  opacity: 0.85;
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
}
.section-cta .btn-secondary {
  border-color: var(--color-white);
  color: var(--color-white);
}
.section-cta .btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-accent-dark);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  padding: var(--space-24) 0;
}
.about-full-grid p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.mission-section {
  background: var(--color-bg);
  padding: var(--space-24) 0;
  text-align: center;
}
.pull-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-3xl);
  color: var(--color-text);
  max-width: 800px;
  margin: 0;
  line-height: 1.5;
  position: relative;
  padding: 0 var(--space-12);
  text-align: left;
}
.pull-quote::before,
.pull-quote::after {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-accent);
  position: absolute;
  line-height: 1;
  opacity: 0.6;
}
.pull-quote::before {
  content: '\201C';
  top: -20px;
  left: 0;
}
.pull-quote::after {
  content: '\201D';
  bottom: -40px;
  right: 0;
}

/* Who We Serve */
.serve-section {
  background: var(--color-section);
  padding: var(--space-24) 0;
}
.serve-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
.serve-card {
  background: var(--color-white);
  padding: var(--space-10) var(--space-8);
}
.serve-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.serve-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Values */
.values-section {
  background: var(--color-bg);
  padding: var(--space-24) 0;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.value-block {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}
.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}
.value-block h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
}
.value-block p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .about-full-grid,
  .serve-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pull-quote {
    font-size: var(--text-2xl);
  }
}
@media (max-width: 479px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SERVICES PAGE
   ======================================== */
.service-detail {
  padding: var(--space-24) 0;
}
.service-detail:nth-child(even) {
  background: var(--color-section);
}
.service-detail:nth-child(odd) {
  background: var(--color-bg);
}
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.service-detail:nth-child(even) .service-detail-grid {
  direction: rtl;
}
.service-detail:nth-child(even) .service-detail-grid > * {
  direction: ltr;
}
.service-detail-content .eyebrow {
  margin-bottom: var(--space-3);
}
.service-detail-content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}
.service-detail-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}
.service-detail-content .check-list {
  margin-bottom: var(--space-8);
}
.check-list li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}
.service-image-placeholder {
  background: var(--color-section);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
}
.service-image-placeholder span {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  .service-detail:nth-child(even) .service-detail-grid {
    direction: ltr;
  }
  .service-image-placeholder {
    aspect-ratio: 16 / 9;
    min-height: 250px;
  }
}

/* ========================================
   LEVELS OF CARE PAGE
   ======================================== */
.levels-intro {
  text-align: center;
  padding: var(--space-16) 0;
  background: var(--color-bg);
}
.levels-intro p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: var(--text-lg);
}

.level-section {
  padding: var(--space-24) 0;
}
.level-section:nth-child(even) {
  background: var(--color-section);
}
.level-section:nth-child(odd) {
  background: var(--color-bg);
}
.level-header {
  margin-bottom: var(--space-8);
}
.level-badge {
  display: inline-block;
  padding: 4px 16px;
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.level-header h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}
.level-header p {
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 700px;
  font-size: var(--text-lg);
}
.level-includes {
  margin-top: var(--space-6);
}
.level-includes h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

/* ========================================
   HOW IT WORKS PAGE — TIMELINE
   ======================================== */
.timeline-section {
  padding: var(--space-24) 0;
  background: var(--color-bg);
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--color-accent);
  opacity: 0.3;
}
.timeline-item {
  display: flex;
  margin-bottom: var(--space-16);
  position: relative;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item:nth-child(odd) {
  flex-direction: row;
  text-align: right;
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  text-align: left;
}
.timeline-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}
.timeline-content {
  flex: 1;
  padding: 0 var(--space-8);
}
.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: var(--space-2);
}
.timeline-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: var(--text-base);
}

@media (max-width: 767px) {
  .timeline::before {
    left: 28px;
  }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
    text-align: left;
  }
  .timeline-number {
    margin: 0;
  }
  .timeline-content {
    padding: 0 0 0 var(--space-6);
  }
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-section {
  background: var(--color-section);
  padding: var(--space-24) 0;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-6) 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
  background: none;
  border: none;
}
.faq-question::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.faq-item.active .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer p {
  padding: 0 0 var(--space-6);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-section {
  padding: var(--space-24) 0;
  background: var(--color-bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
}
.contact-info h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-8);
}
.contact-info-item {
  margin-bottom: var(--space-6);
}
.contact-info-item .label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.contact-info-item .value {
  font-size: var(--text-lg);
  color: var(--color-text);
}
.contact-note {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-section);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Form */
.contact-form {
  background: var(--color-white);
  padding: var(--space-10);
}
.form-group {
  margin-bottom: var(--space-6);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-section);
  background: var(--color-bg);
  font-size: var(--text-base);
  transition: border-color var(--transition-base);
  border-radius: 2px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--color-accent);
}
.form-error {
  display: none;
  font-size: var(--text-xs);
  color: var(--color-accent);
  margin-top: var(--space-1);
}
.form-group.error .form-error {
  display: block;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}
.form-checkbox label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.btn-primary--full {
  width: 100%;
}

.thank-you-message {
  display: none;
  text-align: center;
  padding: var(--space-16) var(--space-8);
}
.thank-you-message.show {
  display: block;
}
.thank-you-message h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.thank-you-message p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: var(--space-6);
  }
}

/* ========================================
   BLOG PAGE
   ======================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  padding: var(--space-24) 0;
}
.blog-card {
  background: var(--color-white);
}
.blog-card-image {
  background: var(--color-section);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-image span {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.blog-card-body {
  padding: var(--space-6);
}
.blog-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.blog-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.blog-card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}
.blog-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ANIMATIONS — Intersection Observer
   ======================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   ANIMATIONS — Hero entrance
   ======================================== */
.hero-content .eyebrow,
.hero-content h1,
.hero-content p,
.hero-content .hero-buttons {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero-content .eyebrow   { animation-delay: 0.2s; }
.hero-content h1          { animation-delay: 0.4s; }
.hero-content p           { animation-delay: 0.6s; }
.hero-content .hero-buttons { animation-delay: 0.8s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   ANIMATIONS — Scroll-reveal children
   ======================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   ANIMATIONS — Button scale-in
   ======================================== */
.btn-reveal {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background var(--transition-base);
}
.btn-reveal.visible {
  opacity: 1;
  transform: scale(1);
}

/* Caption bar fade */
.hero-caption-bar p {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-caption-bar.visible p {
  opacity: 1;
  transform: translateY(0);
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-content .eyebrow,
  .hero-content h1,
  .hero-content p,
  .hero-content .hero-buttons,
  .reveal-up,
  .btn-reveal,
  .fade-in-section,
  .hero-caption-bar p {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================
   RESPONSIVE — MOBILE FIRST ADJUSTMENTS
   ======================================== */
@media (max-width: 639px) {
  .text-heading-xl {
    font-size: var(--text-4xl);
  }
  .text-heading-lg {
    font-size: var(--text-3xl);
  }
  .section-cta h2 {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .text-heading-xl {
    font-size: var(--text-4xl);
  }
}

/* Utility: body padding for fixed nav */
body {
  padding-top: 72px;
}
