/* ============================================
   Kelsey Lynn Hair — Earth tone, modern refresh
   ============================================ */

:root {
  /* Earth palette */
  --cream: #F7F4EF;
  --sand: #EDE8E0;
  --clay: #E5DDD4;
  --warm-brown: #8B7355;
  --bronze: #9A7B4F;
  --golden-tan: #A88B5C;
  --sage: #8B9A7D;
  --dark-brown: #3D3530;
  --body-text: #5C5248;
  --muted: #7A6F63;

  /* Typography */
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Spacing & layout */
  --container: min(90vw, 1100px);
  --section-padding: clamp(3rem, 8vw, 5rem);
  --header-height: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body-text);
  background: var(--cream);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clay);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--dark-brown);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--warm-brown);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-brown);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--body-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--warm-brown);
}

.header-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body-text);
  padding: 0.35rem;
  margin-left: 0.5rem;
  transition: color 0.2s;
}

.header-instagram:hover {
  color: var(--warm-brown);
}

.header-instagram-icon {
  display: block;
}

/* Hero: image block first, then text below */
.hero {
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-image {
  position: relative;
  min-height: 55vh;
  min-height: 55dvh;
  background: linear-gradient(165deg, var(--sand) 0%, var(--clay) 50%, var(--cream) 100%);
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("main.PNG");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  -webkit-background-size: contain;
  opacity: 0.45;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 30%, rgba(139, 115, 85, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Mobile: single hero image for 375–428px (iPhone) and similar */
@media (max-width: 430px) {
  .hero-image {
    min-height: 50vh;
    min-height: 50dvh;
  }
  .hero-image::before {
    background-image: url("main-mobile.png");
    background-size: contain;
    background-position: center center;
  }
}

.hero-content {
  max-width: 32rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem 2rem;
  text-align: center;
}

.hero-tagline {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.15;
  color: var(--dark-brown);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--body-text);
  margin: 0 0 2rem;
  font-weight: 400;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--warm-brown);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--bronze);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--clay);
  color: var(--dark-brown);
}

.btn-secondary:hover {
  background: var(--sand);
  color: var(--dark-brown);
  transform: translateY(-1px);
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--sage);
  opacity: 0.6;
  border-radius: 2px;
}

/* Sections */
.section {
  padding: var(--section-padding) 1.5rem;
}

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

.section-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--dark-brown);
  margin: 0 0 1.5rem;
  text-align: center;
}

/* About */
.about {
  background: var(--cream);
}

.about-content {
  max-width: 38rem;
  margin: 0 auto;
}

.about-content p {
  margin: 0 0 1rem;
}

.contact-cta {
  display: inline-block;
  margin-top: 1rem;
  color: var(--warm-brown);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-cta:hover {
  color: var(--bronze);
}

/* Gallery: 4 wide × 2 tall max, square thumbnails; responsive on mobile */
.gallery {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 56rem;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--clay);
  display: block;
}

@media (min-width: 540px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Only first 8 images shown; keeps layout 4×2 */
.gallery-grid img:nth-child(n + 9) {
  display: none;
}

.gallery-placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.gallery-instagram-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
}

.gallery-instagram-note a {
  color: var(--warm-brown);
  font-weight: 500;
  text-decoration: none;
}

.gallery-instagram-note a:hover {
  text-decoration: underline;
}

.gallery:has(.gallery-grid img) .gallery-placeholder {
  display: none;
}

/* Services */
.services {
  background: var(--sand);
}

.services-intro {
  text-align: center;
  color: var(--body-text);
  margin: 0 auto 2rem;
  max-width: 36rem;
}

.services-travel {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 auto 2rem;
  max-width: 40rem;
  line-height: 1.55;
}

.services-expand-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 auto 1.25rem;
  max-width: 40rem;
  font-style: italic;
}

.service-group {
  background: var(--cream);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--clay);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.service-group:last-child {
  margin-bottom: 0;
}

.service-details {
  margin: 0;
}

.service-summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--dark-brown);
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
  border-bottom: 2px solid var(--sage);
}

.service-summary::-webkit-details-marker {
  display: none;
}

.service-summary:hover {
  color: var(--warm-brown);
}

.service-toggle {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: var(--warm-brown);
}

.service-toggle::after {
  content: '+';
}

.service-details[open] .service-toggle::after {
  content: '−';
}

.service-details-inner {
  padding-top: 1rem;
}

.service-group-note {
  font-size: 0.95rem;
  color: var(--body-text);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.service-pricing {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-pricing li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--clay);
}

.service-pricing li:last-child {
  border-bottom: none;
}

.service-name {
  font-weight: 500;
  color: var(--dark-brown);
  text-transform: capitalize;
}

.service-price {
  font-weight: 600;
  color: var(--warm-brown);
  white-space: nowrap;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 0;
  flex-basis: 100%;
  margin-top: -0.25rem;
  margin-bottom: 0.25rem;
  border-bottom: none;
  font-weight: 400;
}

.service-addl {
  font-size: 0.9rem;
  color: var(--body-text);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--clay);
  flex-basis: 100%;
  font-weight: 400;
}

.service-cta {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--body-text);
}

.service-cta a {
  color: var(--warm-brown);
  font-weight: 600;
  text-decoration: none;
}

.service-cta a:hover {
  text-decoration: underline;
}

/* Book */
.book {
  background: var(--clay);
}

.book-content {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.book-content p {
  margin: 0 0 1rem;
}

.book-content ul {
  text-align: left;
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.book-content li {
  margin-bottom: 0.5rem;
}

/* FAQ */
.faq {
  background: var(--sand);
}

.faq-list {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.faq-item {
  background: var(--cream);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--clay);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--dark-brown);
  margin: 0 0 0.5rem;
}

.faq-answer {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--body-text);
}

/* Contact */
.contact {
  background: var(--cream);
}

.contact-content {
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
}

.contact-content p {
  margin: 0 0 0.5rem;
}

.phone-link {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--warm-brown);
  text-decoration: none;
  margin: 0.5rem 0 1rem;
  transition: color 0.2s;
}

.phone-link:hover {
  color: var(--bronze);
}

.form-message {
  max-width: 28rem;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
  display: none;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: rgba(139, 154, 125, 0.2);
  color: var(--dark-brown);
  border: 1px solid var(--sage);
}

.form-message.error {
  background: rgba(61, 53, 48, 0.08);
  color: var(--body-text);
  border: 1px solid var(--clay);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  max-width: 28rem;
  margin: 2rem auto 0;
  text-align: left;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-brown);
  margin: 1rem 0 0.35rem;
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--body-text);
  background: var(--cream);
  border: 1px solid var(--clay);
  border-radius: 8px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--warm-brown);
}

.contact-form textarea {
  resize: vertical;
  min-height: 4rem;
}

.contact-form .btn {
  margin-top: 1.25rem;
  width: 100%;
  text-align: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clay);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--warm-brown);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--bronze);
}

.social-icon {
  flex-shrink: 0;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-note a {
  color: var(--warm-brown);
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

/* Terms & Conditions */
.terms {
  background: var(--clay);
}

.terms-expand-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 auto 0.75rem;
  max-width: 42rem;
  font-style: italic;
}

.terms-details {
  max-width: 42rem;
  margin: 0 auto;
}

.terms-summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--dark-brown);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
}

.terms-summary::-webkit-details-marker {
  display: none;
}

.terms-summary:hover {
  color: var(--warm-brown);
}

.terms-toggle {
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--warm-brown);
}

.terms-toggle::after {
  content: '+';
}

.terms-details[open] .terms-toggle::after {
  content: '−';
}

.terms-content {
  max-width: 100%;
  margin: 0;
  padding-top: 0.5rem;
}

.terms-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--dark-brown);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--warm-brown);
}

.terms-heading:first-child {
  margin-top: 0;
}

.terms-content p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--body-text);
}

.terms-content p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  padding: 1.5rem;
  background: var(--dark-brown);
  color: var(--clay);
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
}

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

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--clay);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--clay);
  }

  .main-nav a:last-of-type {
    border-bottom: none;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:hover,
  .service-card:hover {
    transform: none;
  }
}
