/*
 * Connecting Families — Melody Caton, LMHC
 * Design: Warm Contemporary with glassmorphism, gradients, bold typography
 * Colors: Mint green, soft yellow, cream backgrounds
 * Fonts: Outfit (headings), Inter (body)
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors */
  --brand-mint: #A8D5BA;
  --brand-mint-dark: #2A5A4A;
  --brand-yellow: #F4E5C3;
  --brand-peach: #F0C9A8;
  --brand-turquoise: #6BBFAF;

  /* Semantic Colors */
  --color-bg: #FDFCFA;
  --color-bg-alt: #F5F2ED;
  --color-fg: #2A3A34;
  --color-fg-muted: #6B7B74;
  --color-border: #D8E4DD;
  --color-card: rgba(255, 255, 255, 0.6);

  /* Gradients */
  --gradient-mint-yellow: linear-gradient(135deg, #A8D5BA 0%, #F4E5C3 100%);
  --gradient-hero: linear-gradient(135deg, rgba(168, 213, 186, 0.3), rgba(244, 229, 195, 0.3));

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 6rem);
  --container-max: 1200px;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-fg);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand-mint-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--brand-turquoise);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-fg);
}

h1 {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

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

p {
  margin-bottom: 1rem;
}

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

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

section {
  padding: var(--section-padding) 0;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.glass {
  background: var(--color-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
}

.hover-lift {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-fg);
  background: var(--gradient-mint-yellow);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--color-fg);
}

.btn-full {
  width: 100%;
}

/* Accent text */
.text-primary {
  color: var(--brand-mint-dark);
}

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

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease forwards;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background-color: rgba(248, 248, 247, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(248, 248, 247, 0.97);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav-logo img {
  width: 100px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-fg);
  transition: color 0.3s ease;
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--brand-mint-dark);
}

.nav-cta {
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Mobile hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.3s;
}

.hamburger:hover {
  background: var(--color-bg-alt);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--color-fg);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  list-style: none;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu li a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--color-fg);
  font-size: 1rem;
}

.mobile-menu li a:hover {
  color: var(--brand-mint-dark);
}

.mobile-menu .btn {
  margin-top: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 7rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  animation: fadeInLeft 0.8s ease forwards;
}

.hero-content h1 span {
  color: var(--brand-mint-dark);
  font-weight: 800;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--color-fg-muted);
  max-width: 540px;
  margin: 1.5rem 0;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-portrait-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  max-width: 266px;
}

.hero-portrait-frame img {
  border-radius: calc(var(--radius-xl) - 0.25rem);
  width: 242px;
  height: 532px;
  object-fit: cover;
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  z-index: 1;
}

.hero-blob--top {
  top: -1.5rem;
  left: -1.5rem;
  background: var(--brand-mint);
}

.hero-blob--bottom {
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--brand-yellow);
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   MISSION / APPROACH SECTION
   ============================================================ */
.mission {
  background-color: var(--color-bg-alt);
}

.mission-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.mission h2 {
  color: var(--brand-mint-dark);
  margin-bottom: 1.5rem;
}

.mission p {
  font-size: 1.125rem;
  color: var(--color-fg-muted);
  line-height: 1.8;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  padding: 2rem;
  cursor: pointer;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.35s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: white;
  stroke: white;
  fill: none;
}

.service-icon--pink { background: linear-gradient(135deg, #F472B6, #F43F5E); }
.service-icon--purple { background: linear-gradient(135deg, #C084FC, #EC4899); }
.service-icon--blue { background: linear-gradient(135deg, #60A5FA, #06B6D4); }
.service-icon--green { background: linear-gradient(135deg, #4ADE80, #10B981); }
.service-icon--yellow { background: linear-gradient(135deg, #FACC15, #F97316); }
.service-icon--indigo { background: linear-gradient(135deg, #818CF8, #A855F7); }

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-fg-muted);
  font-size: 1rem;
}

.services-note {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.125rem;
  color: var(--color-fg-muted);
}

.services-note strong {
  color: var(--color-fg);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process {
  background-color: var(--color-bg);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.process-content h2 {
  margin-bottom: 1.5rem;
}

.process-content p {
  font-size: 1.125rem;
  color: var(--color-fg-muted);
  line-height: 1.8;
}

.process-content strong {
  color: var(--brand-mint-dark);
}

.process-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  background-color: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.about-bg-decor {
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 100%;
  opacity: 0.15;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

.about-card {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
}

.about-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-avatar {
  flex-shrink: 0;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--brand-mint);
  box-shadow: var(--shadow-md);
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 0.5rem;
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand-mint-dark);
  margin-bottom: 0.25rem;
}

.about-text .about-role {
  color: var(--color-fg-muted);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--color-fg-muted);
  line-height: 1.8;
}

.about-text strong {
  color: var(--brand-mint-dark);
}

@media (min-width: 640px) {
  .about-flex {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-card {
    padding: 3rem;
  }
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  background-color: var(--color-bg);
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h2 {
  margin-bottom: 0.5rem;
}

.contact-header p {
  font-size: 1.125rem;
  color: var(--color-fg-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form-card {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-fg);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand-mint);
  box-shadow: 0 0 0 3px rgba(168, 213, 186, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9BA8A1;
}

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

/* Contact Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  padding: 1.5rem;
}

.info-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  color: white;
  stroke: white;
  fill: none;
}

.info-icon--phone { background: linear-gradient(135deg, #60A5FA, #06B6D4); }
.info-icon--email { background: linear-gradient(135deg, #C084FC, #EC4899); }
.info-icon--address { background: linear-gradient(135deg, #4ADE80, #10B981); }

.info-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.info-card a {
  font-size: 1.125rem;
  color: var(--brand-mint-dark);
}

.info-card a:hover {
  text-decoration: underline;
}

.info-card p {
  font-size: 1.125rem;
  color: var(--color-fg-muted);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-bg-alt);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.footer-inner p {
  color: var(--color-fg-muted);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   TOAST / NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--brand-mint-dark);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease;
  z-index: 200;
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}
