/* ==========================================================================
   Remote Care Wellness - Main Stylesheet
   Aesthetic: Refined wellness, premium but approachable
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #1a4d5c;
  --color-primary-dark: #0f3540;
  --color-primary-light: #2a6b7d;
  --color-accent: #c47d5f;
  --color-accent-dark: #a8654a;
  --color-accent-light: #d4967b;

  --color-cream: #f8f6f3;
  --color-cream-dark: #ebe7e0;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-text-light: #8a8a8a;
  --color-border: #e0dcd6;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 900px;
  --header-height: 80px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(26, 77, 92, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 77, 92, 0.08);
  --shadow-lg: 0 8px 40px rgba(26, 77, 92, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  display: block;
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--lg {
  padding: var(--space-3xl) 0;
}

.section--cream {
  background-color: var(--color-cream);
}

.section--white {
  background-color: var(--color-white);
}

.section--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--primary h2,
.section--primary h3 {
  color: var(--color-white);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--secondary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--outline-light {
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn--outline-light:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn--lg {
  padding: 1.125rem 2.25rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(248, 246, 243, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo__mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link:hover::after {
  width: 100%;
}

/* Dropdown */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 200px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

@media (min-width: 1025px) {
  .nav__item--dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.nav__dropdown-link {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav__dropdown-link:hover {
  background-color: var(--color-cream);
  color: var(--color-primary);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__portal {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.header__portal:hover {
  color: var(--color-primary);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: all var(--transition-base);
}

/* Mobile Navigation */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .nav__list,
  .header__cta .header__portal {
    display: none;
  }

  .nav--open .nav__list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
  }

  .nav--open .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding-left: var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(26, 77, 92, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
}

.hero__image {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.hero__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__image-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.125rem;
  padding: var(--space-lg);
  text-align: center;
}

.hero__floating-card {
  position: absolute;
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.hero__floating-card--1 {
  bottom: 10%;
  left: -10%;
  animation-delay: 0s;
}

.hero__floating-card--2 {
  top: 20%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__image {
    height: 300px;
  }

  .hero__floating-card {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Trust Bar
   -------------------------------------------------------------------------- */
.trust-bar {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.trust-bar__icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.section-header__title {
  margin-bottom: var(--space-sm);
}

.section-header__description {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Service Cards
   -------------------------------------------------------------------------- */
.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  position: relative;
  overflow: hidden;
}

.service-card__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3));
}

.service-card__icon {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  width: 48px;
  height: 48px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.service-card__content {
  padding: var(--space-lg);
}

.service-card__title {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.service-card__description {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.service-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-base);
}

.service-card__link:hover {
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   How It Works
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  counter-reset: step;
}

.step {
  text-align: center;
  padding: var(--space-lg);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 50%;
}

.step__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step__description {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Connector lines on larger screens */
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 52px;
    right: -15%;
    width: 30%;
    height: 2px;
    background: linear-gradient(to right, var(--color-accent), transparent);
  }
}

/* --------------------------------------------------------------------------
   About / Provider Section
   -------------------------------------------------------------------------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-preview__image {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.about-preview__image::before {
  content: '';
  position: absolute;
  inset: var(--space-sm);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
}

.about-preview__credentials {
  margin: var(--space-md) 0;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.credential {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.credential__icon {
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .about-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-preview__image {
    max-width: 400px;
    margin: 0 auto;
  }

  .about-preview__credentials {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.testimonial {
  background-color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.2;
}

.testimonial__text {
  font-size: 1.0625rem;
  font-style: italic;
  margin-bottom: var(--space-md);
  position: relative;
}

.testimonial__author {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial__meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.footer__description {
  font-size: 0.9375rem;
  opacity: 0.8;
  line-height: 1.8;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  font-size: 0.9375rem;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer__link:hover {
  opacity: 1;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.footer__contact-icon {
  margin-top: 3px;
  opacity: 0.6;
}

.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer__legal-links {
  display: flex;
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Interior Page Headers
   -------------------------------------------------------------------------- */
.page-header {
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-xl);
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
  text-align: center;
}

.page-header__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.page-header__title {
  margin-bottom: var(--space-sm);
}

.page-header__description {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Content Sections (for interior pages)
   -------------------------------------------------------------------------- */
.content-section {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.content-section h2 {
  margin-bottom: var(--space-md);
}

.content-section h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.content-section ul,
.content-section ol {
  margin-left: var(--space-md);
  margin-bottom: var(--space-md);
}

.content-section li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.content-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.accordion__item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion__trigger {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: left;
  color: var(--color-primary);
  transition: background-color var(--transition-fast);
}

.accordion__trigger:hover {
  background-color: var(--color-cream);
}

.accordion__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.accordion__item.active .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion__item.active .accordion__content {
  max-height: 500px;
}

.accordion__body {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 77, 92, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mt-0 {
  margin-top: 0;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-in:nth-child(1) {
  animation-delay: 0.1s;
}

.animate-in:nth-child(2) {
  animation-delay: 0.2s;
}

.animate-in:nth-child(3) {
  animation-delay: 0.3s;
}

.animate-in:nth-child(4) {
  animation-delay: 0.4s;
}

.animate-in:nth-child(5) {
  animation-delay: 0.5s;
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Mobile Responsive Enhancements
   ========================================================================== */

/* Mobile Header & Navigation Improvements */
@media (max-width: 1024px) {
  .header__inner {
    padding: 0 var(--space-md);
  }

  .header__cta {
    gap: var(--space-xs);
  }

  .header__cta .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  /* Hamburger Menu Animation */
  .nav-toggle {
    position: relative;
    z-index: 1001;
    cursor: pointer;
    background: none;
    border: none;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Mobile Navigation Menu */
  .nav--open .nav__list {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    gap: 0;
    z-index: 1000;
  }

  .nav--open .nav__list li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav--open .nav__link {
    display: block;
    padding: var(--space-md) 0;
    font-size: 1.125rem;
  }

  .nav--open .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0 0 var(--space-md) var(--space-md);
    background: transparent;
    min-width: unset;
  }

  .nav--open .nav__dropdown-link {
    padding: 0.5rem 0;
    font-size: 1rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {

  /* Typography Scaling */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Header Adjustments */
  .logo {
    font-size: 1.125rem;
    gap: 0.375rem;
  }

  .logo__mark {
    width: 32px;
    height: 32px;
  }

  .header__cta .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* Hero Adjustments */
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-xl);
  }

  .hero__title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__image {
    height: 250px;
  }

  .hero__floating-card {
    display: none;
  }

  /* Section Adjustments */
  .section {
    padding: var(--space-xl) 0;
  }

  .section--lg {
    padding: var(--space-2xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

  .section-header__title {
    font-size: 1.5rem;
  }

  .section-header__description {
    font-size: 0.9375rem;
  }

  /* Container Padding */
  .container {
    padding: 0 var(--space-sm);
  }

  /* Service Cards */
  .service-card__content {
    padding: var(--space-md);
  }

  .service-card__title {
    font-size: 1.125rem;
  }

  /* Steps */
  .steps {
    gap: var(--space-md);
  }

  .step {
    padding: var(--space-md);
  }

  .step__title {
    font-size: 1.125rem;
  }

  /* Testimonials */
  .testimonials {
    grid-template-columns: 1fr;
  }

  .testimonial {
    padding: var(--space-md);
  }

  .testimonial__text {
    font-size: 1rem;
  }

  /* CTA Banner */
  .cta-banner {
    padding: var(--space-xl) 0;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }

  .cta-banner p {
    font-size: 0.9375rem;
  }

  /* Trust Bar */
  .trust-bar {
    padding: var(--space-md) 0;
    gap: var(--space-md);
  }

  .trust-bar__item {
    font-size: 0.75rem;
    flex: 0 0 auto;
  }

  /* About Preview */
  .about-preview__image {
    height: 250px;
  }

  .about-preview__credentials {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  /* Page Headers */
  .page-header {
    padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-lg);
  }

  .page-header__title {
    font-size: 1.75rem;
  }

  .page-header__description {
    font-size: 0.9375rem;
  }

  /* Accordion */
  .accordion__trigger {
    padding: var(--space-md);
    font-size: 0.9375rem;
  }

  .accordion__body {
    padding: 0 var(--space-md) var(--space-md);
  }

  /* Footer */
  .footer {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .footer__heading {
    margin-bottom: var(--space-sm);
  }

  /* Buttons */
  .btn--lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  /* Education Cards */
  .education-card {
    padding: var(--space-md);
  }
}

/* Touch-Friendly Improvements */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
  }

  .nav__link,
  .nav__dropdown-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .accordion__trigger {
    min-height: 48px;
  }

  .service-card__link {
    padding: var(--space-sm) 0;
  }
}

/* Landscape Mobile */
@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--space-md)) 0 var(--space-lg);
  }

  .hero__image {
    height: 200px;
  }
}

/* ==========================================================================
   Refined Mobile Styles
   ========================================================================== */

/* 1. Mobile Nav Improvements (De-clutter & Fix Scrolling) */
@media (max-width: 1024px) {

  /* Hide text in logo on mobile, keep icon */
  .logo {
    font-size: 0;
    gap: 0;
  }

  .logo__mark {
    margin-right: 0;
  }

  /* Make nav menu full screen and VISIBLE without tiny scrolling area */
  .nav--open .nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - var(--header-height));
    padding: var(--space-lg);
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    /* Allow scrolling if content is taller than screen, but take full screen space */
    box-shadow: none;
    gap: var(--space-sm);
  }

  .nav--open .nav__link {
    padding: 0.75rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    display: block;
  }

  /* Dropdowns: Expand them fully */
  .nav--open .nav__dropdown {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
    box-shadow: none;
    background: var(--color-cream);
    /* Slight contrast */
    padding: var(--space-sm) var(--space-md);
    margin-top: var(--space-xs);
    border-radius: var(--radius-sm);
    display: block;
  }

  .nav--open .nav__dropdown-link {
    padding: 0.5rem 0;
    font-size: 1rem;
    display: block;
  }
}

@media (max-width: 768px) {

  /* 2. Home Header Mobile View */
  .hero {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    text-align: center;
    background: var(--color-cream);
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero::before {
    display: none;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__visual {
    width: 100%;
    margin-top: 0;
  }

  .hero__image {
    height: 300px;
    border-radius: var(--radius-md);
  }

  /* 3. Service Page Header Buttons - Centered */
  .page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-header .btn {
    margin: var(--space-md) auto 0;
    display: inline-flex;
    width: auto;
    min-width: 200px;
    /* Ensure clickability */
  }

  /* 4. About Page Mobile Layout */
  .about-preview,
  .grid--2 {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
  }

  .about-preview__image img,
  .about__image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }
}

/* Fix: Center buttons in Service Hero on mobile */
@media (max-width: 768px) {
  .service-hero__content>div {
    justify-content: center !important;
    /* Override inline flex-start defaults if any */
    width: 100%;
  }
}

/* Helper for centering hero actions on mobile */
@media (max-width: 768px) {
  .hero-actions {
    justify-content: center !important;
  }
}

/* Optimize Home Page Header Mobile */
@media (max-width: 768px) {

  /* Reduce the "blue square" size or hide it if it takes too much space */
  .hero__image {
    height: 180px;
    /* Reduced from 300px */
    margin-top: var(--space-md);
  }

  .hero__image-content svg {
    width: 48px;
    height: 48px;
  }

  .hero__image-content p {
    font-size: 1rem !important;
  }
}

/* FEEDBACK FIX: Remove blue square and reduce gap on mobile */
@media (max-width: 768px) {
  .hero__visual {
    display: none !important;
    /* Completely hide the blue square image */
  }

  .hero {
    /* Significantly reduce the top padding (margin to nav) */
    padding-top: calc(var(--header-height) + var(--space-xl)) !important;
    min-height: auto !important;
  }

  .hero__inner {
    gap: var(--space-md) !important;
    /* Reduce gap between elements */
  }
}
/* Make logo slightly larger on mobile */
@media (max-width: 768px) {
  .logo__mark {
    width: 56px;
    height: 56px;
  }
}
