/* ═══════════════════════════════════════
   NB Hair Studio — Styles
   Palette: Burgundy #7B2D3B · Blush #D4A0A0 · Cream #F9F3F1
   Fonts: Cormorant Garamond · Inter
   ═══════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: #2A1F1F;
  background: #F9F3F1;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Grain overlay ── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: #7B2D3B; color: #fff;
  padding: 8px 16px; border-radius: 0 0 8px 8px;
  z-index: 10000; font-size: 14px;
}
.skip-link:focus { top: 0; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
  color: #2A1F1F;
}

/* ── Section labels ── */
.section-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7B2D3B;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #6B5555;
  max-width: 520px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 64px;
}
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn--dark {
  background: #7B2D3B;
  color: #F9F3F1;
  border: 1.5px solid #7B2D3B;
}
.btn--dark:hover {
  background: #5E1F2B;
  border-color: #5E1F2B;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123,45,59,0.25);
}
.btn--outline {
  background: transparent;
  color: #7B2D3B;
  border: 1.5px solid #7B2D3B;
}
.btn--outline:hover {
  background: #7B2D3B;
  color: #F9F3F1;
  transform: translateY(-2px);
}
.btn--light {
  background: #F9F3F1;
  color: #7B2D3B;
  border: 1.5px solid #F9F3F1;
}
.btn--light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn--outline-light {
  background: transparent;
  color: #F9F3F1;
  border: 1.5px solid rgba(249,243,241,0.6);
}
.btn--outline-light:hover {
  background: #F9F3F1;
  color: #7B2D3B;
  transform: translateY(-2px);
}
.btn--small {
  padding: 10px 22px;
  font-size: 12px;
}
.btn--full {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(249,243,241,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(123,45,59,0.08);
  transition: box-shadow 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 2px 24px rgba(123,45,59,0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #7B2D3B;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-menu a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2A1F1F;
  position: relative;
  transition: color 0.3s ease;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: #7B2D3B;
  transition: width 0.3s ease;
}
.nav-menu a:hover { color: #7B2D3B; }
.nav-menu a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger-line {
  display: block;
  width: 22px; height: 1.5px;
  background: #2A1F1F;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:first-child {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:last-child {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(249,243,241,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { font-size: 16px; }
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-line {
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(123,45,59,0.12), transparent);
  transform: translateX(-50%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { max-width: 540px; }
.hero-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7B2D3B;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-label::before {
  content: '';
  width: 32px; height: 1px;
  background: #7B2D3B;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #1A1212;
}
.hero-title em {
  font-style: italic;
  color: #7B2D3B;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: #6B5555;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Floating cards */
.hero-float-cards {
  position: relative;
  height: 480px;
}
.float-card {
  position: absolute;
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 8px 40px rgba(123,45,59,0.08), 0 1px 3px rgba(123,45,59,0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: float 6s ease-in-out infinite;
}
.float-card__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #7B2D3B;
  line-height: 1;
}
.float-card__label {
  font-size: 12px;
  color: #6B5555;
  letter-spacing: 0.04em;
}
.float-card--1 { top: 0; left: 20px; animation-delay: 0s; }
.float-card--2 { top: 60px; right: 0; animation-delay: 1.5s; }
.float-card--3 { bottom: 80px; left: 40px; animation-delay: 3s; }
.float-card--4 {
  bottom: 0; right: 20px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  animation-delay: 4.5s;
  padding: 20px 24px;
}
.float-card--4 svg { color: #D4A0A0; flex-shrink: 0; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Decorative circle */
.hero-float-cards::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,160,0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-float-cards { height: 300px; order: -1; }
  .float-card { padding: 18px 22px; border-radius: 16px; }
  .float-card__num { font-size: 1.8rem; }
  .float-card--1 { top: 10px; left: 0; }
  .float-card--2 { top: 50px; right: 0; }
  .float-card--3 { bottom: 60px; left: 20px; }
  .float-card--4 { bottom: 0; right: 0; }
}
@media (max-width: 480px) {
  .hero { padding: 100px 0 60px; }
  .hero-float-cards { height: 240px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════ */
.services {
  padding: 120px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(123,45,59,0.06);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(123,45,59,0.1);
}
.service-card__img {
  height: 260px;
  overflow: hidden;
}
.service-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card__img img { transform: scale(1.05); }
.service-card__body {
  padding: 28px 28px 32px;
}
.service-card__name {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #2A1F1F;
}
.service-card__body p {
  font-size: 0.92rem;
  color: #6B5555;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 48px; }
}

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about {
  padding: 120px 0;
  background: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image img {
  border-radius: 24px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image-accent {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 160px; height: 160px;
  border-radius: 20px;
  background: #D4A0A0;
  opacity: 0.3;
  z-index: -1;
}
.about-content { max-width: 480px; }
.about-text {
  font-size: 1rem;
  color: #6B5555;
  line-height: 1.85;
  margin-bottom: 20px;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 32px 0 40px;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #2A1F1F;
  font-weight: 400;
}
.about-features svg { color: #7B2D3B; flex-shrink: 0; }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image { max-width: 480px; }
}
@media (max-width: 480px) {
  .about { padding: 80px 0; }
  .about-features { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════ */
.gallery {
  padding: 120px 0 80px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(123,45,59,0.2), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 16px;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }

.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(3) { grid-row: span 2; }

@media (max-width: 768px) {
  .gallery { padding: 80px 0 60px; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(3) { grid-row: span 1; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
}

/* ═══════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════ */
.testimonials {
  padding: 120px 0;
  background: #fff;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #F9F3F1;
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  transition: transform 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-quote {
  margin-bottom: 20px;
  opacity: 0.6;
}
.testimonial-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: #4A3535;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: normal;
  color: #7B2D3B;
  letter-spacing: 0.04em;
  font-weight: 500;
}

@media (max-width: 960px) {
  .testimonials { padding: 80px 0; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ═══════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════ */
.cta-banner {
  padding: 120px 0;
  background: #7B2D3B;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(212,160,160,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(249,243,241,0.6);
  margin-bottom: 16px;
}
.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: #F9F3F1;
  margin-bottom: 16px;
  font-weight: 300;
}
.cta-subtitle {
  font-size: 1.05rem;
  color: rgba(249,243,241,0.7);
  margin-bottom: 40px;
  max-width: 440px;
  margin-left: auto; margin-right: auto;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact {
  padding: 120px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-desc {
  font-size: 1rem;
  color: #6B5555;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 420px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-details svg { flex-shrink: 0; margin-top: 2px; }
.contact-details strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #2A1F1F;
  margin-bottom: 2px;
}
.contact-details span,
.contact-details a {
  font-size: 0.95rem;
  color: #6B5555;
}
.contact-details a:hover { color: #7B2D3B; }

/* Form */
.contact-form-wrap {
  background: #fff;
  border-radius: 24px;
  padding: 44px 40px;
  border: 1px solid rgba(123,45,59,0.08);
  box-shadow: 0 8px 40px rgba(123,45,59,0.06);
}
.form-title {
  font-size: 1.6rem;
  margin-bottom: 28px;
  color: #2A1F1F;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B5555;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(123,45,59,0.15);
  border-radius: 12px;
  background: #F9F3F1;
  color: #2A1F1F;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #7B2D3B;
  box-shadow: 0 0 0 3px rgba(123,45,59,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B09A9A;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-success {
  text-align: center;
  padding: 16px;
  margin-top: 16px;
  font-size: 0.95rem;
  color: #7B2D3B;
  background: rgba(123,45,59,0.06);
  border-radius: 12px;
}

@media (max-width: 960px) {
  .contact { padding: 80px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 480px) {
  .contact-form-wrap { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  background: #1A1212;
  color: rgba(249,243,241,0.6);
  padding: 80px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(249,243,241,0.08);
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer-brand .logo { color: #F9F3F1; }
.footer-links h4,
.footer-contact h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(249,243,241,0.4);
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 0.92rem;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: #D4A0A0; }
.footer-contact p {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 4px;
}
.footer-contact a:hover { color: #D4A0A0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0;
  font-size: 0.82rem;
  color: rgba(249,243,241,0.35);
}
.footer-bottom a {
  transition: color 0.3s ease;
}
.footer-bottom a:hover { color: #D4A0A0; }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #7B2D3B;
  color: #F9F3F1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(123,45,59,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #5E1F2B;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
