/* ============================================
   Shear Madness, Hair By Martha
   Bold Editorial · Emerald + Cream
   ============================================ */

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a2e23;
  background-color: #faf6f0;
  -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;
}

/* --- Custom Properties --- */
:root {
  --emerald-900: #0a2e1f;
  --emerald-800: #0d3b26;
  --emerald-700: #145a38;
  --emerald-600: #1a7a4e;
  --emerald-500: #239b62;
  --emerald-400: #3db87a;
  --emerald-100: #d1f0e0;
  --emerald-50:  #eaf7f0;

  --cream-100: #faf6f0;
  --cream-200: #f3ede2;
  --cream-300: #ebe3d4;

  --ink-900: #1a2e23;
  --ink-800: #2a4a36;
  --ink-700: #3d5c48;
  --ink-600: #4f6b57;
  --ink-400: #7a9482;
  --ink-300: #9ab09f;

  --gold-500: #c8a45e;
  --gold-400: #d4b76e;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(10, 46, 31, 0.06), 0 1px 2px rgba(10, 46, 31, 0.04);
  --shadow-md: 0 4px 16px rgba(10, 46, 31, 0.08), 0 2px 4px rgba(10, 46, 31, 0.04);
  --shadow-lg: 0 12px 40px rgba(10, 46, 31, 0.12), 0 4px 12px rgba(10, 46, 31, 0.06);
  --shadow-xl: 0 24px 60px rgba(10, 46, 31, 0.15);

  --transition-fast: 0.2s ease;
  --transition-med: 0.35s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 48px;
  }
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* --- Section Shared --- */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--ink-900);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--ink-600);
  max-width: 560px;
  line-height: 1.7;
}

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

.btn:focus-visible {
  outline: 2px solid var(--emerald-500);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--emerald-700);
  color: #fff;
  border-color: var(--emerald-700);
}

.btn-primary:hover {
  background: var(--emerald-800);
  border-color: var(--emerald-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-900);
}

.btn-outline:hover {
  background: var(--ink-900);
  color: #fff;
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--emerald-800);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--cream-100);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-full {
  width: 100%;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 46, 31, 0.06);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-900);
}

.logo-icon {
  color: var(--emerald-600);
}

.nav-list {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-list a:hover {
  color: var(--emerald-700);
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--emerald-700);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-xl);
  font-weight: 500;
  transition: all var(--transition-fast) !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--emerald-800) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Hamburger */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger {
  position: relative;
  width: 22px;
  height: 16px;
  display: block;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger::before { top: 0; }
.hamburger span { top: 7px; }
.hamburger::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  bottom: 7px;
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 246, 240, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 24px 32px;
    gap: 0;
    border-bottom: 1px solid rgba(10, 46, 31, 0.08);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
  }

  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(10, 46, 31, 0.06);
  }

  .nav-list li:last-child {
    border-bottom: none;
    margin-top: 12px;
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 1.0625rem;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--emerald-900);
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/20092123/pexels-photo-20092123.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1600&h=900') center center / cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 46, 31, 0.88) 0%,
    rgba(13, 59, 38, 0.80) 50%,
    rgba(20, 90, 56, 0.70) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: #fff;
  line-height: 1.05;
  margin-bottom: 24px;
  font-weight: 900;
}

.hero-headline em {
  font-style: italic;
  color: var(--emerald-400);
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

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

.hero-image {
  display: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr 420px;
    align-items: center;
    gap: 60px;
  }

  .hero-image {
    display: block;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
  }

  .hero-content {
    padding-right: 20px;
  }
}

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

.services .container {
  text-align: center;
}

.services .section-subtitle {
  margin: 0 auto 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid rgba(10, 46, 31, 0.06);
  transition: all var(--transition-med);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-100);
}

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

.service-card-title {
  font-size: 1.375rem;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.service-card-desc {
  font-size: 0.9375rem;
  color: var(--ink-600);
  line-height: 1.7;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--cream-100);
}

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

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

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: var(--emerald-100);
  border-radius: var(--radius-md);
  z-index: -1;
}

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

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

.about-body {
  font-size: 1.0625rem;
  color: var(--ink-700);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0;
  padding: 28px 0;
  border-top: 1px solid rgba(10, 46, 31, 0.08);
  border-bottom: 1px solid rgba(10, 46, 31, 0.08);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--emerald-700);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 480px 1fr;
    gap: 72px;
  }
}

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

.gallery .container {
  text-align: center;
}

.gallery .section-subtitle {
  margin: 0 auto 56px;
}

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

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
}

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

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

.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(5),
.gallery-item:nth-child(6) {
  aspect-ratio: 4/3;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--emerald-900);
}

.testimonials .container {
  text-align: center;
}

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

.testimonials .section-title {
  color: #fff;
}

.testimonials .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 56px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: left;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 36px;
  position: relative;
  transition: all var(--transition-med);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.testimonial-quote-mark {
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.testimonial-text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.testimonial-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-400);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 80px 0;
  background: var(--emerald-700);
  text-align: center;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--cream-100);
}

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

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

.contact-body {
  font-size: 1.0625rem;
  color: var(--ink-600);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-details {
  display: grid;
  gap: 28px;
}

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

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-400);
  padding-top: 4px;
}

.contact-detail a,
.contact-detail dd {
  font-size: 1rem;
  color: var(--ink-800);
  line-height: 1.6;
}

.contact-detail a:hover {
  color: var(--emerald-700);
  text-decoration: underline;
}

.contact-note {
  font-size: 0.875rem;
  color: var(--ink-400);
}

/* Contact Form */
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(10, 46, 31, 0.06);
}

.contact-form-title {
  font-size: 1.5rem;
  color: var(--ink-900);
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(10, 46, 31, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink-900);
  background: var(--cream-100);
  transition: all var(--transition-fast);
  appearance: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(35, 155, 98, 0.1);
}

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

.form-note {
  font-size: 0.8125rem;
  color: var(--ink-400);
  margin-top: 12px;
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-800);
}

.form-success svg {
  color: var(--emerald-600);
  margin: 0 auto 16px;
}

.form-success h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 0.9375rem;
  color: var(--ink-600);
  line-height: 1.7;
}

.form-success a {
  color: var(--emerald-700);
  font-weight: 500;
}

.form-success a:hover {
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--emerald-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

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

.footer-brand .logo {
  color: #fff;
  margin-bottom: 12px;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--gold-400);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Reduced motion fallback — content always visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
