/* ============================================
   GORGEOUS HAIR EXTENTION — styles.css
   Mobile-first | Pink/Blush Design System
   ============================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  --pink-primary:     #FFC0CF;
  --pink-bg:          #fef7f2;
  --pink-accent:      #FFA0B6;
  --pink-deep:        #C1C1ED;
  --pink-light:       #fef7f2;
  --text-dark:        #333333;
  --text-muted:       #777777;
  --white:            #FFFFFF;
  --border-radius-sm: 12px;
  --border-radius-md: 16px;
  --border-radius-lg: 20px;
  --shadow-soft:      0 2px 16px rgba(255, 192, 207, 0.25);
  --shadow-card:      0 4px 24px rgba(255, 192, 207, 0.28);
  --shadow-hero:      0 8px 40px rgba(179, 179, 227, 0.2);
  --font-display:     'Cormorant Garamond', 'Didot', 'Bodoni MT', Georgia, serif;
  --font-body:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width:        1100px;
  --section-gap:      72px;
  --section-gap-sm:   48px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero is full-viewport; sections below flow naturally */
main > .hero { margin-top: 0; }

/* ---- SECTION UTILITIES ---- */
.section {
  padding: var(--section-gap-sm) 0;
}

.section-alt {
  background: var(--pink-bg);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--pink-accent);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.12s ease;
  min-height: 52px;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #B3B3E3;
  color: var(--white);
  box-shadow: 0 2px 16px rgba(179, 179, 227, 0.28);
}

.btn-primary:hover {
  background: #9898d4;
  box-shadow: 0 4px 24px rgba(179, 179, 227, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--pink-accent);
  border-color: var(--pink-primary);
}

.btn-secondary:hover {
  background: var(--pink-bg);
  border-color: var(--pink-accent);
}

/* ---- NAV ---- */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 192, 207, 0.3);
  box-shadow: 0 1px 12px rgba(255, 192, 207, 0.15);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Transparent state when over the hero */
.nav-header.nav-transparent {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.nav-transparent .nav-logo {
  color: #000000;
}

.nav-transparent .nav-link {
  color: #000000;
}

.nav-transparent .nav-link:hover {
  color: #000000;
}

.nav-transparent .nav-toggle span {
  background: var(--white);
}

/* Mobile menu always uses white bg so it stays readable */
.nav-transparent .nav-menu.is-open {
  background: rgba(40, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,0.1);
}

.nav-transparent .nav-menu.is-open .nav-link {
  color: #000000;
  border-bottom-color: rgba(0,0,0,0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #000000;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  transition: color 0.35s ease;
}

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 16px 20px 24px;
  border-bottom: 1px solid rgba(255, 192, 207, 0.25);
  box-shadow: 0 8px 24px rgba(255, 192, 207, 0.18);
  gap: 4px;
}

.nav-menu.is-open {
  display: flex;
}

.nav-link {
  display: block;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  border-bottom: 1px solid var(--pink-light);
  transition: color 0.18s;
}

.nav-link:last-child {
  border-bottom: none;
}

.nav-link:hover {
  color: var(--pink-accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pink-accent);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s, background 0.35s ease;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #2a1018;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 8%;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
}

/* Cinematic reveal overlay — fades out to show image on load */
@keyframes hero-image-appear {
  0%   { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

.hero-reveal {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #2a1018;
  animation: hero-image-appear 2.4s ease-out 0.1s forwards;
  pointer-events: none;
}

/* Dark-to-transparent gradient — bottom-heavy for text contrast */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.10) 45%,
    rgba(0, 0, 0, 0.52) 75%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Bottom block: headline + sub + CTA stacked */
.hero-bottom {
  position: relative;
  z-index: 2;
  padding: 0 20px 24px;
  will-change: transform, opacity;
}

/* Headline animation */
@keyframes headline-reveal {
  0%   { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.7rem, 10.8vw, 12.3vw);
  font-weight: 700;
  color: #fef7f2;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
  opacity: 0;
  animation: headline-reveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero-headline span {
  display: block;
}

.hero-bottom-text {
  padding-left: 4px;
  will-change: transform;
}

.hero-sub {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 10px;
  max-width: 380px;
}

.hero-cta-link {
  display: inline-block;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hero-cta-link:hover {
  color: var(--pink-primary);
  text-decoration-color: var(--pink-primary);
}

/* ---- ABOUT ---- */
.about-inner {
  max-width: 740px;
}

.about-body p {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-body em {
  color: var(--pink-accent);
  font-style: italic;
}

.about-quote {
  background: none;
  border: none;
  border-radius: 0;
  padding: 16px 40px;
  margin: 20px 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-style: italic;
  color: #3a3030;
  line-height: 1.55;
  text-align: center;
}

.about-quote::before {
  content: none;
}

.about-quote strong {
  font-weight: 700;
  font-style: italic;
}

/* ---- FEATURES ---- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 192, 207, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(179, 179, 227, 0.3);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  color: #B3B3E3;
  line-height: 1;
  margin-bottom: 12px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---- RESULTS ---- */
.results-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.results-subheading {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: -12px auto 28px;
  line-height: 1.7;
}

.results-image-wrap {
  margin: 8px 0 20px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  background: var(--pink-light);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Placeholder shown when image is missing */
.results-image-wrap:not(:has(img[src])) {
  position: relative;
}

.results-caption {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 28px;
  letter-spacing: 0.2px;
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 192, 207, 0.22);
  transition: transform 0.22s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
}

.testimonial-stars {
  color: var(--pink-accent);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-deep));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pink-accent);
}

/* ---- CONTACT ---- */
.contact-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
  margin-top: -12px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.btn-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  max-width: 320px;
  padding: 18px 32px;
  background: var(--white);
  border: 2px solid var(--pink-primary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  transition: background 0.22s, border-color 0.22s, box-shadow 0.22s, transform 0.12s;
  cursor: pointer;
  min-height: 72px;
}

.btn-contact:hover {
  background: var(--pink-bg);
  border-color: var(--pink-accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.btn-contact:active {
  transform: scale(0.97);
}

.contact-btn-name {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  font-family: var(--font-display);
}

.contact-btn-email {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ---- FOOTER ---- */
.footer {
  background: linear-gradient(135deg, #1e1e35 0%, #2c2c50 100%);
  padding: 36px 0 32px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--pink-primary);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.3px;
}

/* ============================================
   RESPONSIVE — TABLET (600px+)
   ============================================ */
@media (min-width: 600px) {

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

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

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

  .contact-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn-contact {
    width: auto;
    min-width: 180px;
    max-width: none;
  }

}

/* ============================================
   RESPONSIVE — DESKTOP (900px+)
   ============================================ */
@media (min-width: 900px) {

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

  .nav-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    width: auto;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    gap: 4px;
  }

  .nav-link {
    padding: 8px 14px;
    border-bottom: none;
    border-radius: 8px;
    font-size: 14px;
  }

  .nav-link:hover {
    background: var(--pink-bg);
  }

  /* Hero */
  .hero-bg {
    object-position: center top;
  }

  .hero-bottom {
    padding: 0 48px 28px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  /* Testimonials */
  .testimonials-grid {
    gap: 24px;
  }

  /* Contact buttons — all three inline on one row */
  .contact-inner {
    max-width: 800px;
  }

  .contact-buttons {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 16px;
  }

  .btn-contact {
    flex: 1;
    max-width: 220px;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
  }

  .contact-btn-name {
    font-size: 16px;
  }

}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .hero-headline {
    opacity: 1;
    animation: none;
  }
  .hero-bottom {
    opacity: 1 !important;
    transform: none !important;
  }
}

:focus-visible {
  outline: 2.5px solid #B3B3E3;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .nav-header, .nav-toggle { display: none; }
  .section { padding: 24px 0; }
}
