/* ========================================
   SAXX Hair Studio — Stylesheet
   Bold editorial · Teal + Slate Grey
======================================== */

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

:root {
  --teal-900: #0d2e2e;
  --teal-800: #134f4f;
  --teal-700: #1a6e6e;
  --teal-600: #208a8a;
  --teal-500: #26a69a;
  --teal-400: #4db8ac;
  --teal-300: #80cbc4;
  --teal-100: #b2dfdb;
  --teal-50:  #e0f2f1;
  
  --slate-950: #0a0f14;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  
  --white: #ffffff;
  --black: #050a0f;
  
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.1;
  color: var(--slate-900);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal-700);
  color: var(--white);
  border-color: var(--teal-700);
}

.btn-primary:hover {
  background: var(--teal-800);
  border-color: var(--teal-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 110, 110, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--slate-900);
  border-color: var(--white);
}

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

.btn-large {
  padding: 18px 40px;
  font-size: 1.0625rem;
}

.btn-full {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.logo-dot {
  color: var(--teal-600);
  font-weight: 700;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-600);
  position: relative;
}

.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal-600);
  transition: width var(--transition);
}

.nav a:not(.btn):hover {
  color: var(--slate-900);
}

.nav a:not(.btn):hover::after {
  width: 100%;
}

.nav .btn-primary {
  padding: 10px 24px;
  font-size: 0.875rem;
}

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

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-800);
  transition: all var(--transition);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav Overlay (mobile) */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

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

.nav-overlay-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
}

.nav-overlay-link:hover {
  color: var(--teal-700);
}

.nav-overlay .btn-large {
  margin-top: 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 46, 46, 0.88) 0%,
    rgba(15, 23, 42, 0.82) 50%,
    rgba(13, 46, 46, 0.75) 100%
  );
}

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

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-headline em {
  color: var(--teal-300);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--slate-300);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 44px;
}

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

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--slate-400);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--teal-400), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ---------- Section Shared ---------- */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ---------- Services ---------- */
.services {
  padding: 120px 0;
  background: var(--slate-50);
}

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

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 44px 36px;
  border: 1px solid var(--slate-200);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  border-color: var(--teal-200, var(--teal-100));
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-50);
  border-radius: 12px;
  margin-bottom: 24px;
  color: var(--teal-700);
}

.service-card:hover .service-icon {
  background: var(--teal-700);
  color: var(--white);
}

.service-name {
  font-size: 1.375rem;
  margin-bottom: 12px;
  color: var(--slate-900);
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--slate-600);
  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-images {
  position: relative;
}

.about-img-main {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

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

.about-img-secondary {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 55%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  border: 4px solid var(--white);
}

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

.about-badge {
  position: absolute;
  top: -24px;
  left: -24px;
  background: var(--teal-700);
  color: var(--white);
  padding: 20px 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 32px rgba(26, 110, 110, 0.35);
}

.about-badge-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge-text {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.about-content .section-eyebrow {
  text-align: left;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 28px;
}

.about-text {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text em {
  color: var(--teal-700);
}

.about-stats {
  display: flex;
  gap: 40px;
  margin: 40px 0;
  padding: 32px 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--teal-700);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-content .btn {
  margin-top: 8px;
}

/* ---------- Gallery ---------- */
.gallery {
  padding: 120px 0;
  background: var(--slate-900);
}

.gallery .section-eyebrow {
  color: var(--teal-400);
}

.gallery .section-title {
  color: var(--white);
}

.gallery .section-title em {
  color: var(--teal-400);
}

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

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 46, 46, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.gallery-item-overlay span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 700;
}

/* ---------- Testimonial ---------- */
.testimonial {
  padding: 120px 0;
  background: var(--teal-900);
}

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

.testimonial-quote-mark {
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 0.8;
  color: var(--teal-600);
  margin-bottom: -20px;
}

.testimonial blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 32px;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--teal-300);
  font-size: 0.9375rem;
}

.testimonial-divider {
  opacity: 0.5;
}

/* ---------- Contact ---------- */
.contact {
  padding: 120px 0;
  background: var(--slate-50);
}

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

.contact-info .section-eyebrow {
  text-align: left;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.contact-text {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 44px;
}

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

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

.contact-detail-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-700);
  border-radius: 10px;
  color: var(--white);
  flex-shrink: 0;
}

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

.contact-detail-value {
  display: block;
  font-size: 1rem;
  color: var(--slate-800);
  line-height: 1.6;
}

.contact-detail-value a:hover {
  color: var(--teal-700);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--slate-200);
}

.form-title {
  font-size: 1.75rem;
  margin-bottom: 32px;
  color: var(--slate-900);
}

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

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

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--slate-900);
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: 6px;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--teal-600);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(38, 166, 154, 0.1);
}

.form-input::placeholder {
  color: var(--slate-400);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--teal-50);
  border: 1px solid var(--teal-200, var(--teal-100));
  border-radius: 8px;
  margin-top: 20px;
  color: var(--teal-800);
  font-size: 0.9375rem;
}

.form-success svg {
  color: var(--teal-700);
  flex-shrink: 0;
}

.form-success.visible {
  display: flex;
}

/* ---------- Map ---------- */
.map-section {
  background: var(--slate-200);
}

.map-section iframe {
  display: block;
  width: 100%;
  min-height: 300px;
  filter: grayscale(0.4) contrast(1.05);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--slate-900);
  padding: 80px 0 0;
  color: var(--slate-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--slate-800);
}

.logo-light {
  color: var(--white);
}

.footer-tagline {
  margin-top: 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
  color: var(--slate-400);
}

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

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

.footer-links a {
  font-size: 0.9375rem;
  color: var(--slate-400);
}

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

.footer-contact p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 4px;
}

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

.footer-bottom {
  padding: 28px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--slate-600);
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    gap: 48px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav {
    display: none;
  }
  
  .hero-content {
    padding: 100px 20px 60px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .services {
    padding: 80px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 32px 28px;
  }
  
  .about {
    padding: 80px 0;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .about-img-secondary {
    right: -16px;
    bottom: -24px;
  }
  
  .about-badge {
    left: -16px;
    top: -16px;
  }
  
  .about-content .section-eyebrow,
  .about-content .section-title {
    text-align: center;
  }
  
  .about-stats {
    justify-content: center;
  }
  
  .about-content .btn {
    margin: 8px auto 0;
  }
  
  .gallery {
    padding: 80px 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .testimonial {
    padding: 80px 0;
  }
  
  .testimonial-quote-mark {
    font-size: 5rem;
  }
  
  .contact {
    padding: 80px 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-info .section-eyebrow,
  .contact-info .section-title {
    text-align: center;
  }
  
  .contact-text {
    text-align: center;
  }
  
  .contact-form-wrapper {
    padding: 32px 24px;
  }
  
  .footer {
    padding: 60px 0 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .footer-bottom {
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-headline {
    font-size: 2.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .about-img-secondary {
    width: 65%;
    right: -8px;
    bottom: -16px;
  }
  
  .about-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

@media not all and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
