/* ========================================
   ANOMALY HAIR COLLECTIVE — STYLES
   Midnight Blue + Mint | Bold Editorial
   ======================================== */

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

:root {
  --midnight: #0a1628;
  --midnight-light: #122038;
  --midnight-mid: #1a2d4a;
  --mint: #4ade80;
  --mint-light: #86efac;
  --mint-dark: #22c55e;
  --cream: #f8fafc;
  --cream-dark: #f1f5f9;
  --white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --nav-h: 72px;
  --container: 1200px;
}

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

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

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

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

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 222, 128, 0.1);
  height: var(--nav-h);
  transition: background 0.3s ease;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--mint);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.nav-logo-mark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border: 2px solid var(--midnight);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

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

.nav-cta {
  background: var(--mint) !important;
  color: var(--midnight) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--mint-light) !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 105;
  background: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--mint);
}

.mobile-nav-cta {
  margin-top: 12px;
  font-family: var(--font-sans) !important;
  font-size: 1rem !important;
  background: var(--mint);
  color: var(--midnight);
  padding: 14px 40px;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem !important;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(10, 22, 40, 0.78) 50%,
    rgba(10, 22, 40, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: center;
  padding: 40px 24px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mint);
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 500;
  line-height: 1.08;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--mint);
  color: var(--midnight);
}

.btn-primary:hover {
  background: var(--mint-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 222, 128, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.btn-ghost-light {
  background: transparent;
  color: var(--midnight);
  border: 1.5px solid var(--midnight);
}

.btn-ghost-light:hover {
  background: var(--midnight);
  color: var(--white);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---------- INTRO STRIP ---------- */
.intro-strip {
  background: var(--midnight);
  padding: 48px 0;
}

.intro-strip-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.intro-stat {
  text-align: center;
}

.intro-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 8px;
}

.intro-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.intro-divider {
  width: 1px;
  height: 48px;
  background: rgba(74, 222, 128, 0.25);
}

/* ---------- SECTION COMMON ---------- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mint-dark);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--midnight);
  margin-bottom: 20px;
  line-height: 1.1;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 120px 0;
  background: var(--cream);
}

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

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
  border-color: rgba(74, 222, 128, 0.3);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  background: var(--midnight);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  margin-bottom: 24px;
}

.service-card-title {
  font-size: 1.35rem;
  color: var(--midnight);
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--mint);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.2;
}

.about-content .section-headline {
  margin-bottom: 28px;
}

.about-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.about-signature-line {
  width: 48px;
  height: 2px;
  background: var(--mint);
}

.about-signature-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--midnight);
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: 120px 0;
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.gallery-item--tall {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-item--tall img {
  height: 100%;
  min-height: 500px;
}

.gallery-item--wide {
  grid-column: span 6;
}

.gallery-item--wide img,
.gallery-item:not(.gallery-item--tall) img {
  height: 240px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 120px 0;
  background: var(--midnight);
}

.testimonials .section-label {
  color: var(--mint);
}

.testimonials .section-headline {
  color: var(--white);
  margin-bottom: 56px;
}

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

.testimonial-card {
  background: var(--midnight-light);
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid rgba(74, 222, 128, 0.1);
  transition: border-color 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(74, 222, 128, 0.3);
}

.testimonial-quote {
  color: var(--mint);
  margin-bottom: 20px;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- CTA ---------- */
.cta {
  padding: 120px 0;
  background: var(--cream);
}

.cta-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mint-dark);
  margin-bottom: 20px;
}

.cta-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--midnight);
  margin-bottom: 20px;
}

.cta-body {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 120px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail svg {
  color: var(--mint-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-detail-value {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.contact-detail-value a {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.contact-detail-value a:hover {
  color: var(--mint-dark);
}

.contact-map {
  border-radius: 16px;
  overflow: hidden;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--cream);
  border-radius: 20px;
  padding: 48px 40px;
}

.contact-form-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--midnight);
  margin-bottom: 32px;
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--mint-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form Success */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}

.form-success svg {
  color: var(--mint-dark);
}

.form-success-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--midnight);
}

.form-success-text {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--midnight);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--mint);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.footer-logo-mark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border: 2px solid var(--midnight);
  border-radius: 50%;
}

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mint);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    justify-self: center;
  }

  .about-grid {
    gap: 48px;
  }

  .contact-grid {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .intro-strip-grid {
    flex-direction: column;
    gap: 28px;
  }

  .intro-divider {
    width: 48px;
    height: 1px;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    height: 360px;
  }

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

  .gallery-item--tall {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item--tall img {
    min-height: 280px;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .gallery-item:not(.gallery-item--tall) img,
  .gallery-item--wide img {
    height: 200px;
  }

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .gallery-item--tall,
  .gallery-item--wide {
    grid-column: span 1;
  }
}
