/* ============================================
   TULSA HAIR EXTENSION PRO
   Joyful Editorial Design System
   ============================================ */

:root {
  --coral:        #FF6F61;
  --coral-dark:   #E55A4D;
  --brown:        #2E1A0E;
  --brown-mid:    #6B4226;
  --cream:        #FEF5EF;
  --cream-dark:   #F5E6DC;
  --white:        #FFFFFF;
  --border:       rgba(46, 26, 14, 0.1);

  --font-display: 'DM Serif Display', serif;
  --font-body:    'Raleway', sans-serif;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);

  --max-content:  1600px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  color: var(--brown);
}

h1 { font-size: clamp(3.5rem, 9vw, 9rem); }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.1; }
h3 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); }

em { font-style: italic; color: var(--coral); }

p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--brown-mid);
  line-height: 1.85;
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.btn-coral:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}

.btn-outline-dark {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}
.btn-outline-dark:hover {
  background: var(--brown);
  color: var(--white);
}

.btn-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--white);
  color: var(--brown);
}

/* Focus visible */
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(254, 245, 239, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--brown);
  text-decoration: none;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--coral); }

.nav-book {
  background: var(--coral);
  color: var(--white) !important;
  padding: 0.55rem 1.3rem;
  transition: background-color 0.2s ease !important;
}

.nav-book:hover {
  background: var(--coral-dark) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  touch-action: manipulation;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--brown);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-text {
  padding: 6rem 3rem 6rem 5vw;
  position: relative;
  z-index: 2;
}

.hero-text .eyebrow {
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(4rem, 9vw, 9.5rem);
  line-height: 0.95;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-size: 1.08em;
  display: block;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stars {
  color: var(--coral);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.hero-rating-text {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown-mid);
}

/* Photo composition */
.hero-photos {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  object-fit: cover;
  object-position: center top;
}

.hero-photo--back {
  width: 72%;
  height: 78%;
  right: 0;
  top: 6%;
  transform: rotate(-3deg);
  transform-origin: bottom right;
  box-shadow: -12px 20px 70px rgba(46, 26, 14, 0.2);
  z-index: 1;
}

.hero-photo--front {
  width: 58%;
  height: 68%;
  left: 4%;
  bottom: 4%;
  transform: rotate(2.5deg);
  transform-origin: bottom left;
  box-shadow: 12px 16px 60px rgba(46, 26, 14, 0.25);
  z-index: 2;
}

/* Rotating badge */
.rotating-badge {
  position: absolute;
  bottom: 14%;
  right: 3%;
  width: 120px;
  height: 120px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotating-badge svg {
  position: absolute;
  inset: 0;
  animation: spin 16s linear infinite;
  transform-origin: center;
}

.rotating-badge-center {
  font-size: 1.4rem;
  color: var(--coral);
  position: relative;
  z-index: 1;
  line-height: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rotating-badge svg { animation: none; }
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
}

.about-image {
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 5vw 6rem 4rem;
  background: var(--cream-dark);
}

.about-headline {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.0;
  margin-bottom: 2rem;
}

.about-content p {
  margin-bottom: 1.3rem;
  max-width: 440px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-stat strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.5rem;
  color: var(--coral);
  line-height: 1;
  font-weight: 400;
}

.about-stat span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-mid);
  margin-top: 0.3rem;
}

/* ============================================
   BOOK CTA
   ============================================ */

.book-cta {
  padding: 7rem 2rem;
  text-align: center;
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.book-cta h2 {
  margin: 0.5rem 0 1.5rem;
}

.book-cta-sub {
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ============================================
   EXTENSION PANELS
   ============================================ */

.extensions {
  background: var(--cream-dark);
}

.extensions-header {
  text-align: center;
  padding: 6rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
}

.extensions-header h2 {
  margin-top: 0.5rem;
}

.extension-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  border-bottom: 1px solid var(--border);
}

.extension-panel--flip {
  direction: rtl;
}

.extension-panel--flip > * {
  direction: ltr;
}

.extension-panel-image {
  overflow: hidden;
  position: relative;
  min-height: 600px;
}

.extension-panel-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s var(--ease-out);
}

.extension-panel:hover .extension-panel-image img {
  transform: scale(1.03);
}

.extension-panel-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5vw;
  position: relative;
  background: var(--cream-dark);
}

.extension-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 8rem;
  color: var(--coral);
  opacity: 0.1;
  line-height: 1;
  position: absolute;
  top: 2rem;
  right: 3rem;
  user-select: none;
  pointer-events: none;
}

.extension-panel-text h3 {
  margin-bottom: 1.2rem;
  position: relative;
}

.extension-panel-text p {
  max-width: 380px;
  position: relative;
}

/* ============================================
   INVESTMENT
   ============================================ */

.investment {
  text-align: center;
  padding: 7rem 2rem;
  background: var(--cream);
}

.investment .eyebrow {
  margin-bottom: 0.5rem;
}

.investment h2 {
  margin-bottom: 1.5rem;
}

.investment h2 em {
  font-size: 1em;
}

.investment p {
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 2 / 3;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   PULL QUOTE
   ============================================ */

.pull-quote {
  background: var(--brown);
  padding: 9rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pull-quote-mark {
  position: absolute;
  font-family: var(--font-display);
  font-size: 22rem;
  color: rgba(255, 111, 97, 0.08);
  line-height: 1;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  user-select: none;
  pointer-events: none;
}

.pull-quote-stars {
  color: var(--coral);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  color: var(--white);
  line-height: 1.55;
  max-width: 860px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  font-style: normal;
  position: relative;
  z-index: 1;
}

/* ============================================
   FAQs
   ============================================ */

.faqs {
  padding: 8rem 0;
  background: var(--cream);
}

.faqs-header {
  margin-bottom: 4rem;
  text-align: center;
}

.faqs-header h2 {
  margin-top: 0.5rem;
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
}

.faq-question span:first-child {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brown);
  font-weight: 400;
  flex: 1;
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--coral);
  line-height: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 1.5rem;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.85;
}

.faq-answer a {
  color: var(--coral);
  text-decoration: underline;
}

/* ============================================
   REVIEWS
   ============================================ */

.reviews {
  padding: 8rem 0;
  background: var(--cream-dark);
}

.reviews .eyebrow {
  margin-bottom: 0.5rem;
}

.reviews h2 {
  margin-bottom: 0.75rem;
}

.reviews-rating {
  font-size: 0.85rem;
  color: var(--brown-mid);
  margin-bottom: 3.5rem;
}

.reviews-rating strong {
  color: var(--coral);
}

.reviews-widget {
  border: 1px solid var(--border);
  margin-bottom: 3.5rem;
  overflow: hidden;
}

.review-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.review-card {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.review-stars {
  color: var(--coral);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.review-card p {
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.review-card footer {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--coral);
}

/* ============================================
   INSTAGRAM CTA
   ============================================ */

.insta-cta {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.insta-cta-bg {
  position: absolute;
  inset: 0;
}

.insta-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.insta-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 26, 14, 0.68);
}

.insta-cta-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.insta-cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.insta-cta-content h2 em {
  color: var(--coral);
}

.insta-handle {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--brown);
  padding: 5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.footer-contact a,
.footer-contact p {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 2;
  text-decoration: none;
}

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

.footer-col-title {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.2rem;
}

.footer p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  line-height: 2;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 2.2;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--coral); }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.75rem !important;
  opacity: 0.4;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-text {
    padding: 5rem 2rem 3rem;
    text-align: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-photos {
    height: 60vw;
    max-height: 500px;
    margin-bottom: 0;
  }

  .hero-photo--back {
    width: 55%;
    height: 85%;
    right: 5%;
    top: 5%;
  }

  .hero-photo--front {
    width: 45%;
    height: 80%;
    right: 28%;
    bottom: 3%;
  }

  .about {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-image {
    height: 60vw;
    max-height: 480px;
  }

  .about-content {
    padding: 4rem 2rem;
  }

  .extension-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .extension-panel--flip {
    direction: ltr;
  }

  .extension-panel-image {
    min-height: 55vw;
    max-height: 480px;
  }

  .extension-panel-text {
    padding: 3rem 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .nav {
    padding: 1.2rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(254, 245, 239, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .hero-photos {
    height: 75vw;
  }

  .hero-photo--front {
    width: 55%;
    right: 20%;
  }

  .rotating-badge {
    right: 0;
    bottom: 5%;
    width: 90px;
    height: 90px;
  }

  .rotating-badge svg {
    width: 90px;
    height: 90px;
  }

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

  .review-cards {
    grid-template-columns: 1fr;
  }

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

  .pull-quote-mark {
    font-size: 12rem;
  }

  .extension-panel-image {
    min-height: 70vw;
  }
}

/* ============================================
   LARGE SCREEN — 27" iMac, 4K, Ultrawide
   ============================================ */

@media (min-width: 1440px) {
  /* Nav: prevent logo and links from drifting 50cm apart */
  .nav {
    padding-left: max(2.5rem, calc((100vw - var(--max-content)) / 2 + 2.5rem));
    padding-right: max(2.5rem, calc((100vw - var(--max-content)) / 2 + 2.5rem));
  }

  /* Hero + About: cap these full-bleed grids */
  .hero,
  .about {
    max-width: var(--max-content);
    margin-left: auto;
    margin-right: auto;
  }

  /* Extension panels: center within their full-bleed section */
  .extension-panel {
    max-width: var(--max-content);
    margin-left: auto;
    margin-right: auto;
  }

  /* Extensions section header */
  .extensions-header {
    padding-left: max(2rem, calc((100vw - var(--max-content)) / 2 + 2rem));
    padding-right: max(2rem, calc((100vw - var(--max-content)) / 2 + 2rem));
  }

  /* Gallery */
  .gallery-grid {
    max-width: var(--max-content);
    margin-left: auto;
    margin-right: auto;
  }

  /* Bump container max-width for larger displays */
  .container {
    max-width: 1200px;
  }

  /* Footer padding */
  .footer {
    padding-left: max(2rem, calc((100vw - var(--max-content)) / 2 + 2rem));
    padding-right: max(2rem, calc((100vw - var(--max-content)) / 2 + 2rem));
  }
}
