/* ============================================
   KINDLING — thekindling.io
   Minimalist coaching site
   Black / White / Yellow accent
   Mixed typography: DM Serif Display + Inter
   ============================================ */

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

:root {
  --black: #0a0a0a;
  --dark: #1a1a1a;
  --white: #ffffff;
  --off-white: #f5f3ef;
  --accent: #d8e847;
  --accent-dark: #c5d43a;
  --gray-600: #6b6b6b;
  --gray-400: #999;
  --gray-300: #c4c4c4;
  --heading: 'Outfit', 'Helvetica Neue', 'Arial', sans-serif;
  --body-serif: 'Libre Baskerville', 'Georgia', serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- TYPOGRAPHY ---- */
h1, h2 {
  font-family: var(--heading);
}

h3, h4 {
  font-family: var(--heading);
}

blockquote {
  font-family: var(--body-serif);
}

h2.section-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

p {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: inherit;
  font-weight: 300;
}

.body-large {
  font-family: var(--body-serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover {
  background: #222;
  transform: translateY(-2px);
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
}

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

.nav-logo-img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.7; }

.nav-links .nav-cta {
  background: var(--accent);
  color: var(--black);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-links .nav-cta:hover { opacity: 1; background: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child { bottom: 0; }

.nav-toggle.active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-toggle.active span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  color: var(--white);
  font-family: var(--heading);
  font-size: 1.8rem;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 100%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(80, 100, 70, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(120, 130, 90, 0.1) 0%, transparent 50%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: scale(1) rotate(0deg); opacity: 0.6; }
  100% { transform: scale(1.1) rotate(5deg); opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  gap: 3rem;
}

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

.hero-rings {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-rings-svg {
  height: clamp(240px, 28vw, 380px);
  width: auto;
}

.ring-dot {
  opacity: 0;
  animation: dotAppear 0.4s ease-out 0.3s forwards;
}

@keyframes dotAppear {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.ring-trace {
  stroke-dasharray: var(--circ);
  stroke-dashoffset: var(--circ);
  animation: traceRing var(--dur) var(--delay) forwards;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-fast    { animation-timing-function: cubic-bezier(0.1, 0.8, 0.3, 1); }
.ring-slow    { animation-timing-function: cubic-bezier(0.7, 0, 0.4, 1); }
.ring-hesitate { animation-timing-function: cubic-bezier(0.2, 0, 0.1, 1); }

@keyframes traceRing {
  to { stroke-dashoffset: 0; }
}

.hero-tag {
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-300);
  margin-bottom: 2rem;
}

.hero-quote {
  font-family: var(--body-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--off-white);
  line-height: 1.45;
  margin-bottom: 2.5rem;
  font-weight: 400;
  font-style: italic;
  border: none;
  padding: 0;
}

/* ---- MARQUEE ---- */
.marquee-section {
  background: var(--black);
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 37.5s linear infinite;
}

.marquee-text {
  font-family: var(--heading);
  font-size: clamp(5rem, 12vw, 10rem);
  color: var(--white);
  white-space: nowrap;
  letter-spacing: -0.03em;
  font-weight: 300;
  user-select: none;
  display: inline-flex;
  align-items: center;
}

.marquee-divider {
  opacity: 0.3;
  font-weight: 200;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- SECTIONS ---- */
.section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

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

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

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

/* ---- ABOUT PHOTO ---- */
.about-photo {
  width: 100%;
  max-width: 260px;
  margin-top: 2rem;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 3/4;
}

/* ---- GRID HELPERS ---- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

/* ---- PHILOSOPHY ---- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.phil-card {
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.phil-number {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
}

.phil-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.phil-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- STATE MAPPING ---- */
.state-mapping-content {
  max-width: 900px;
}

.section-accent .section-title {
  color: var(--black);
}

.section-accent .body-large {
  color: var(--black);
}

.state-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 3rem 0;
}

.state-card {
  background: rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 2.5rem;
}

.state-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.state-card h4 {
  font-family: var(--heading);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.state-card p {
  font-size: 0.95rem;
  color: rgba(0,0,0,0.75);
}

.state-insight {
  font-family: var(--body-serif);
  font-size: 1.1rem;
  font-style: italic;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.15);
}

/* ---- MAP YOUR STATE ---- */
.map-state-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.map-state-copy .body-large {
  color: var(--black);
}

.map-state-copy p:not(.body-large) {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.75;
}

.map-state-form-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.map-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.map-form-fields label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.map-form-fields input,
.map-form-fields textarea {
  background: var(--off-white);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.map-form-fields input:focus,
.map-form-fields textarea:focus {
  border-color: var(--accent-dark);
}

.map-form-fields input::placeholder,
.map-form-fields textarea::placeholder {
  color: var(--gray-400);
}

.map-form-disclaimer {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ---- SERVICES — ACCORDION ---- */
.services-section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.accordion {
  border-top: 1px solid rgba(0,0,0,0.15);
}

.accordion-item {
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--black);
  transition: color 0.2s;
}

.accordion-header:hover {
  color: var(--gray-600);
}

.accordion-icon {
  font-size: 1.8rem;
  font-weight: 300;
  font-family: var(--sans);
  line-height: 1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.active .accordion-icon {
  font-size: 0;
}

.accordion-item.active .accordion-icon::after {
  content: '—';
  font-size: 1.6rem;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
}

.accordion-body-inner {
  padding-bottom: 2rem;
}

.accordion-body-inner p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.accordion-body-inner p:last-child {
  margin-bottom: 0;
}

.coming-soon-inline {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* ---- TESTIMONIALS ---- */
.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
}

.stars {
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}

.testimonials-count {
  font-family: var(--heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.testimonial blockquote {
  font-family: var(--body-serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}

.testimonial cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---- BOOK A CALL ---- */
#book.section {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.book-section {
  text-align: center;
  max-width: 600px;
}

.book-section .section-title {
  margin-bottom: 1.5rem;
}

.book-section .body-large {
  margin-bottom: 2.5rem;
}

/* ---- FOOTER ---- */
.footer-new {
  background: var(--off-white);
  padding: 5rem 0 2rem;
}

.footer-new-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  padding-bottom: 3rem;
}

.footer-left {
  flex: 1;
}

.footer-tagline {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.footer-contact {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.7;
}

.footer-contact a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact a:hover {
  color: var(--gray-600);
}

.footer-right {
  flex-shrink: 0;
}

.footer-heading {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.footer-social-list {
  list-style: none;
}

.footer-social-list li {
  margin-bottom: 0.5rem;
}

.footer-social-list a {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-social-list a:hover {
  color: var(--gray-600);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ---- FADE-IN ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .state-grid {
    grid-template-columns: 1fr;
  }

  .map-state-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-new-inner {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu { display: flex; }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 0 1.5rem;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-rings-svg {
    height: clamp(180px, 40vw, 260px);
  }

  .hero-quote {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .marquee-text {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }
}
