/* =====================================================
   DELICATE REPAIR — Design System & Styles
   ===================================================== */

/* ── CSS Variables ── */
:root {
  --primary: #a7c7e7;
  --primary-dark: #7ca8d4;
  --primary-deeper: #5b8fbe;
  --secondary: #f8f4ec;
  --secondary-dark: #efe9dc;
  --accent: #c6a55c;
  --accent-light: #d4b976;
  --accent-dark: #ad8e47;

  --text-dark: #2c3e50;
  --text-body: #4a5568;
  --text-light: #718096;
  --text-on-primary: #ffffff;
  --text-on-accent: #ffffff;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 12px rgba(198, 165, 92, 0.1);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--secondary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

/* ── Utility ── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  background-color: var(--secondary);
}

.section-alt {
  background-color: #ffffff;
}

.section-title {
  font-size: 2.4rem;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-full);
  margin: 0 auto 56px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--text-on-accent);
  box-shadow: 0 4px 16px rgba(198, 165, 92, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 6px 24px rgba(198, 165, 92, 0.5);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.05rem;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(167, 199, 231, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar.scrolled {
  background: rgba(167, 199, 231, 1);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.nav-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-on-primary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  opacity: 0.85;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

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

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 180px;
  background: var(--primary-dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu .nav-link {
  display: block;
  padding: 10px 20px;
  border-radius: 0;
  font-size: 0.86rem;
  white-space: nowrap;
}

.nav-dropdown-menu .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-on-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 50%, #c3ddf1 100%);
  overflow: hidden;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(198,165,92,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 32px;
  object-fit: contain;
  animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-headline {
  font-size: 3.4rem;
  color: var(--text-on-primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-dark);
  max-width: 520px;
  margin: 0 auto 36px;
  font-style: italic;
  font-family: var(--font-heading);
  line-height: 1.6;
}

.hero-gif-placeholder {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 1;
  opacity: 0.3;
}

.hero-gif {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
}

/* =====================================================
   WHY DELICATE REPAIR
   ===================================================== */
.about-name-content {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.about-name-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-name-text em {
  color: var(--accent-dark);
  font-family: var(--font-heading);
}

.about-img {
  max-width: 350px;
  margin: 0 auto;
}

/* =====================================================
   MEET YOUR THERAPIST
   ===================================================== */
.therapist-content {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 56px;
  align-items: start;
}

.therapist-portrait {
  position: sticky;
  top: 100px;
}

.therapist-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--accent-light);
}

.therapist-text h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.therapist-text .pronoun {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 400;
}

.therapist-text h4 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 16px;
  color: var(--accent-dark);
}

.therapist-text p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.therapist-list {
  padding-left: 0;
  margin-bottom: 20px;
}

.therapist-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.therapist-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* =====================================================
   SERVICES
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid rgba(198, 165, 92, 0.2);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-card p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Who We Help */
.who-we-help {
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  border: 1px solid rgba(198, 165, 92, 0.15);
  box-shadow: var(--shadow-sm);
}

.who-we-help h3 {
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: var(--text-dark);
}

.help-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.help-tag {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-dark);
  background: linear-gradient(135deg, rgba(198, 165, 92, 0.08), rgba(198, 165, 92, 0.15));
  border: 1px solid rgba(198, 165, 92, 0.25);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.help-tag:hover {
  background: var(--accent);
  color: var(--text-on-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 165, 92, 0.3);
}

/* =====================================================
   LEARN MORE / APPROACH
   ===================================================== */
.learn-more-content {
  max-width: 800px;
  margin: 0 auto;
}

.feature-quote {
  text-align: center;
  margin-bottom: 32px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(167, 199, 231, 0.12), rgba(198, 165, 92, 0.08));
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
}

.feature-quote p {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--text-dark);
  font-weight: 500;
}

.learn-intro p,
.learn-reasons p,
.learn-approach p {
  margin-bottom: 16px;
  line-height: 1.85;
  font-size: 1.05rem;
}

.highlight-text {
  font-size: 1.15rem !important;
  color: var(--text-dark) !important;
  text-align: center;
  margin: 28px 0 !important;
}

.learn-reasons {
  margin: 40px 0;
  padding: 36px;
  background: var(--secondary);
  border-radius: var(--radius-md);
}

.learn-reasons h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.reasons-list {
  padding-left: 0;
}

.reasons-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  line-height: 1.7;
  font-size: 0.98rem;
}

.reasons-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
}

.learn-approach {
  margin: 40px 0;
}

.learn-approach h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.learn-cta {
  text-align: center;
  margin-top: 48px;
}

/* =====================================================
   FAQ
   ===================================================== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(198, 165, 92, 0.2);
}

.faq-item:first-child {
  border-top: 1px solid rgba(198, 165, 92, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent-dark);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 8px 22px;
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-body);
}

/* =====================================================
   POLICIES
   ===================================================== */
.policies-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-block h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.policy-block h4 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-family: var(--font-heading);
}

.policy-block p {
  margin-bottom: 14px;
  line-height: 1.8;
}

.policy-block ul {
  padding-left: 0;
  margin-bottom: 16px;
}

.policy-block ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.policy-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.policy-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  margin: 48px 0;
  border-radius: var(--radius-full);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-deeper) 100%);
  padding: 72px 0 0;
  color: var(--text-on-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo {
  width: 50px;
  height: auto;
  margin-bottom: 16px;
  object-fit: contain;
}

.footer-brand h3 {
  font-size: 1.35rem;
  color: var(--text-on-primary);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-contact h4,
.footer-links h4,
.footer-social h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-on-primary);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-light);
}

.footer-contact a {
  color: var(--text-on-primary);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.footer-contact a:hover {
  opacity: 1;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: all var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-light);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent-light);
  transition: all var(--transition);
}

.social-icon:hover {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(198, 165, 92, 0.4);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* =====================================================
   ANIMATIONS — Fade-in on scroll
   ===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
  .about-name-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-name-visual {
    order: -1;
    text-align: center;
  }

  .about-img {
    max-width: 360px;
    margin: 0 auto;
  }

  .therapist-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .therapist-portrait {
    position: static;
    text-align: center;
  }

  .therapist-img {
    max-width: 300px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .hero-gif-placeholder {
    display: none;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--primary);
    padding: 24px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }

  /* Mobile dropdown */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height var(--transition);
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    transform: none;
    max-height: 200px;
  }

  .nav-dropdown-menu .nav-link {
    padding: 10px 16px;
    font-size: 0.92rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-contact ul li {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 16px 60px;
  }

  .hero-headline {
    font-size: 1.9rem;
  }

  .hero-logo {
    width: 90px;
    height: 90px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 14px 36px;
    font-size: 0.95rem;
  }

  .who-we-help {
    padding: 32px 20px;
  }

  .feature-quote p {
    font-size: 1.3rem;
  }

  .learn-reasons {
    padding: 24px 20px;
  }

  .faq-question {
    font-size: 1rem;
    padding: 18px 4px;
  }
}
