:root {
  /* Palette */
  --terracotta: #B65B36;
  --terracotta-light: #D4896A;
  --terracotta-deep: #8B3A1F;
  --teal: #5C7F73;
  --teal-light: #6E9487;
  --cream: #F3ECE6;
  --cream-warm: #EDE5DC;
  --charcoal: #44484C;
  --charcoal-soft: #5A5E62;
  --text-body: #3D3632;
  --text-light: #7A6E66;
  --white: #FFFFFF;

  /* Theme-aware translucent values */
  --nav-bg: rgba(243, 236, 230, 0.92);
  --nav-border: rgba(182, 91, 54, 0.08);
  --shadow-soft: rgba(68, 72, 76, 0.06);
  --shadow-med: rgba(68, 72, 76, 0.1);
  --hero-grad-1: rgba(182, 91, 54, 0.04);
  --hero-grad-2: rgba(92, 127, 115, 0.03);
  --contact-text: rgba(243, 236, 230, 0.7);
  --contact-text-dim: rgba(243, 236, 230, 0.35);
  --contact-label: rgba(243, 236, 230, 0.6);
  --contact-input-bg: rgba(243, 236, 230, 0.12);
  --contact-input-border: rgba(243, 236, 230, 0.2);
  --contact-placeholder: rgba(243, 236, 230, 0.3);
  --contact-border: rgba(243, 236, 230, 0.08);

  /* Typography */
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --text-base: 17px;
  --leading: 1.7;

  /* Spacing */
  --section-pad: 6rem 1.5rem;
  --container: 800px;

  /* Transitions */
  --ease: 0.35s ease;
}

/* Dark theme */
[data-theme="dark"] {
  --cream: #1a1a1f;
  --cream-warm: #222228;
  --white: #242429;
  --charcoal: #F3ECE6;
  --charcoal-soft: #d4ccc4;
  --text-body: #e0d8d0;
  --text-light: #a89e94;
  --terracotta: #D4896A;
  --terracotta-light: #e0a080;
  --terracotta-deep: #B65B36;
  --teal: #7aab9a;
  --teal-light: #8fbfac;

  --nav-bg: rgba(26, 26, 31, 0.92);
  --nav-border: rgba(212, 137, 106, 0.1);
  --shadow-soft: rgba(0, 0, 0, 0.15);
  --shadow-med: rgba(0, 0, 0, 0.2);
  --hero-grad-1: rgba(212, 137, 106, 0.06);
  --hero-grad-2: rgba(122, 171, 154, 0.04);
  --contact-text: rgba(224, 216, 208, 0.7);
  --contact-text-dim: rgba(224, 216, 208, 0.35);
  --contact-label: rgba(224, 216, 208, 0.6);
  --contact-input-bg: rgba(224, 216, 208, 0.08);
  --contact-input-border: rgba(224, 216, 208, 0.15);
  --contact-placeholder: rgba(224, 216, 208, 0.25);
  --contact-border: rgba(224, 216, 208, 0.08);
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--text-base);
  scroll-behavior: smooth;

  @media (prefers-reduced-motion: reduce) {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: var(--leading);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.25;
  color: var(--charcoal);
}

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

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

ul {
  list-style: none;
}

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

input, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Scroll-reveal base */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;

  @media (prefers-reduced-motion: reduce) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.reveal.visible {
  opacity: 1;
  transform: none;
}
/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transition: box-shadow 0.4s ease;

  &.scrolled {
    box-shadow: 0 2px 30px var(--shadow-soft);
  }

  & .nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 500;
    color: var(--terracotta);
    white-space: nowrap;
  }

  & .nav__logo-icon {
    height: 30px;
    width: auto;
  }

  & .nav__links {
    display: flex;
    gap: 2rem;
  }

  & .nav__link {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--charcoal-soft);
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
    transition: color var(--ease), border-color var(--ease);

    &:hover,
    &.active {
      color: var(--terracotta);
      border-bottom-color: var(--terracotta);
    }
  }

  & .nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;

    & span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--charcoal);
      transition: transform var(--ease), opacity var(--ease);
    }
  }

  & .nav__theme {
    display: flex;
    align-items: center;
    padding: 4px;
    color: var(--charcoal-soft);
    transition: color var(--ease);

    &:hover {
      color: var(--terracotta);
    }

    & svg {
      width: 20px;
      height: 20px;
    }

    & .icon-moon { display: none; }
  }
}

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
    position: relative;

    & .nav__toggle {
      display: flex;
      order: 3;
    }

    & .nav__links {
      order: 4;
      position: absolute;
      top: 100%;
      left: 0.8rem;
      right: 0.8rem;
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      background: var(--nav-bg);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: 8px;
      box-shadow: 0 8px 30px var(--shadow-med);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease, padding 0.4s ease;
      padding: 0 1.2rem;
      margin-top: 0.5rem;

      &.open {
        max-height: 500px;
        padding: 0.6rem 1.2rem;
      }

      & li {
        width: 100%;
        border-bottom: 1px solid var(--nav-border);
      }

      & li:last-child {
        border-bottom: none;
      }
    }

    & .nav__link {
      display: block;
      font-size: 0.9rem;
      padding: 0.8rem 0;
    }

    & .nav__theme {
      padding: 0.8rem 0;
    }

    /* Hamburger → X animation */
    & .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);
    }
  }
}

/* ── Sections ── */
.section {
  padding: var(--section-pad);
}

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

.section__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.section__heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.8rem;
}

.section__divider {
  width: 50px;
  height: 1.5px;
  background: var(--terracotta-light);
  margin-bottom: 2.5rem;
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 8rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse at 20% 50%, var(--hero-grad-1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, var(--hero-grad-2) 0%, transparent 60%),
    var(--cream);

  & .hero__logo {
    width: 150px;
    filter: drop-shadow(0 4px 20px var(--hero-grad-1));
    margin-bottom: 2.5rem;
  }

  & .hero__title {
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;

    & .hero__title--teal {
      color: var(--teal);
    }
  }

  & .hero__tagline {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    letter-spacing: 0.12em;
    color: var(--terracotta);
    margin-bottom: 1.2rem;
  }

  & .hero__sub {
    max-width: 520px;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
  }
}

/* ── About ── */
.about__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.about__photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about__photo {
  width: 220px;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  box-shadow: 0 8px 30px var(--shadow-med);
}

.about__badge {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--shadow-med);
}

.about__bacp {
  height: 80px;
  width: auto;
  opacity: 0.9;
}

.about__text {
  & p {
    margin-bottom: 1.2rem;
    color: var(--text-body);
    line-height: 1.85;
  }
}

.about__quote {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--teal);
  padding-left: 1.5rem;
  border-left: 2px solid var(--terracotta-light);
  margin: 1.5rem 0;
  line-height: 1.6;
}

/* ── Sessions ── */
.sessions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;

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

.sessions__text {
  & h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 1.2rem;
  }

  & p {
    margin-bottom: 1.2rem;
    color: var(--text-body);
    line-height: 1.85;
  }
}

/* ── Contact ── */
.contact {
  background: #2a2a2f;
  color: #e0d8d0;
}

.contact__inner {
  text-align: center;
}

.contact .section__label {
  color: var(--terracotta-light);
}

.contact .section__heading {
  color: #e0d8d0;
}

.contact .section__divider {
  margin-left: auto;
  margin-right: auto;
}

.contact__intro {
  color: var(--contact-text);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
}

.contact__next {
  max-width: 520px;
  margin: 2.5rem auto 0;
  text-align: left;

  & h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: #e0d8d0;
    margin-bottom: 1rem;
  }

  & p {
    color: var(--contact-text);
    font-size: 0.95rem;
    line-height: 1.85;
  }
}

/* ── Footer ── */
.footer {
  background: #2a2a2f;
  border-top: 1px solid var(--contact-border);
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(243, 236, 230, 0.55);
  letter-spacing: 0.05em;
}

/* ── Dark mode overrides ── */
[data-theme="dark"] .nav__theme .icon-sun { display: none; }
[data-theme="dark"] .nav__theme .icon-moon { display: block; }
[data-theme="dark"] .about__badge {
  display: inline-block;
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  border-top-color: transparent;
}
/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: all var(--ease);

  &:hover {
    transform: translateY(-2px);
  }

  @media (prefers-reduced-motion: reduce) {
    transition: none;

    &:hover {
      transform: none;
    }
  }
}

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

  &:hover {
    background: var(--terracotta-deep);
    box-shadow: 0 6px 25px var(--shadow-med);
  }
}

.btn--outline {
  background: transparent;
  color: #e0d8d0;
  border: 1.5px solid var(--terracotta-light);

  &:hover {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
    box-shadow: 0 6px 25px var(--shadow-med);
  }
}

/* ── Services ── */
.services__intro {
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.services__grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  padding: 1.5rem;
  background: var(--white);
  border-left: 3px solid var(--terracotta);
  border-radius: 4px;
  transition: box-shadow var(--ease);

  &:hover {
    box-shadow: 0 4px 20px var(--shadow-soft);
  }

  & h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
  }

  & p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
  }
}

/* ── Session info cards ── */
.info-card {
  text-align: center;
  padding: 2.2rem 1.5rem;
  background: var(--cream);
  border-radius: 4px;

  & .info-card__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.8rem;
  }

  & .info-card__value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
  }

  & .info-card__note {
    font-size: 0.85rem;
    color: var(--text-light);
  }
}

/* ── FAQ ── */
.faq__list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
  overflow: hidden;

  & summary {
    padding: 1.2rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--charcoal);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;

    &::-webkit-details-marker {
      display: none;
    }

    &::after {
      content: '+';
      font-size: 1.3rem;
      color: var(--teal);
      transition: transform var(--ease);
      flex-shrink: 0;
      margin-left: 1rem;
    }
  }

  &[open] summary::after {
    content: '\2212';
  }

  & .faq-item__answer {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.85;
  }
}

/* ── Contact form ── */
.form {
  display: grid;
  gap: 1.3rem;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;

  & label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--contact-label);
  }

  & input,
  & textarea {
    background: var(--contact-input-bg);
    border: 1px solid var(--contact-input-border);
    border-radius: 3px;
    padding: 0.85rem 1rem;
    color: #e0d8d0;
    font-size: 0.95rem;
    transition: border-color var(--ease);

    &::placeholder {
      color: var(--contact-placeholder);
    }

    &:focus {
      border-color: var(--terracotta-light);
    }
  }

  & textarea {
    resize: vertical;
    min-height: 100px;
  }

  & .form__error {
    font-size: 0.75rem;
    color: var(--terracotta-light);
    display: none;
  }

  &.invalid {
    & input,
    & textarea {
      border-color: var(--terracotta-light);
    }

    & .form__error {
      display: block;
    }
  }
}

.form__submit {
  margin-top: 0.5rem;
}

.form__success {
  display: none;
  background: rgba(92, 127, 115, 0.15);
  padding: 2.5rem;
  border-radius: 4px;
  max-width: 520px;
  margin: 0 auto;

  & h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #e0d8d0;
    margin-bottom: 0.5rem;
  }

  & p {
    color: var(--contact-text);
    font-size: 0.95rem;
  }
}

.form__success.visible {
  display: block;
}
