/* ========================================
   Tammy D's Hair Salon — Styles
   Palette: Terracotta + Sand | Serif + Sans
   ======================================== */

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

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

body {
  font-family: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #3D2B1F;
  background-color: #FAF6F1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.2;
  color: #3D2B1F;
}

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

/* ---------- Section Shared ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #B86B4A;
  margin-bottom: 12px;
}

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

.section-desc {
  font-size: 1.05rem;
  color: #6B5344;
  line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: #B86B4A;
  color: #FFFFFF;
  border: 2px solid #B86B4A;
}

.btn-primary:hover {
  background-color: #A05A3A;
  border-color: #A05A3A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 107, 74, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

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

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 107, 74, 0.12);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(61, 43, 31, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  color: #B86B4A;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #3D2B1F;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B5344;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
  letter-spacing: 0.02em;
}

.nav-menu a:hover {
  color: #B86B4A;
  background-color: rgba(184, 107, 74, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #3D2B1F;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #3D2B1F;
  background-image: url('https://images.pexels.com/photos/7755481/pexels-photo-7755481.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(61, 43, 31, 0.88) 0%,
    rgba(93, 62, 45, 0.82) 50%,
    rgba(61, 43, 31, 0.88) 100%
  );
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle at 25% 25%, #FFFFFF 1px, transparent 1px),
                    radial-gradient(circle at 75% 75%, #FFFFFF 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

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

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #D4A574;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  color: #D4A574;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

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

/* ---------- Services ---------- */
.services {
  padding: 120px 0;
  background-color: #FAF6F1;
}

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

.service-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(184, 107, 74, 0.1);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(61, 43, 31, 0.1);
  border-color: rgba(184, 107, 74, 0.25);
}

.service-icon {
  color: #B86B4A;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #3D2B1F;
}

.service-card p {
  font-size: 0.95rem;
  color: #6B5344;
  line-height: 1.75;
}

/* ---------- About ---------- */
.about {
  padding: 120px 0;
  background-color: #F3E8DC;
}

.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(61, 43, 31, 0.15);
}

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

.about-img-accent {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 55%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(61, 43, 31, 0.18);
  border: 4px solid #F3E8DC;
}

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

.about-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  background-color: #B86B4A;
  color: #FFFFFF;
  border-radius: 8px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(184, 107, 74, 0.35);
}

.badge-number {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.about-content {
  max-width: 520px;
}

.about-content .section-header {
  text-align: left;
  margin: 0 0 28px;
}

.about-lead {
  font-size: 1.1rem;
  color: #3D2B1F;
  line-height: 1.85;
  margin-bottom: 20px;
  font-weight: 500;
}

.about-content > p {
  font-size: 0.975rem;
  color: #6B5344;
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(184, 107, 74, 0.2);
}

.about-sig-img {
  border-radius: 4px;
  opacity: 0.85;
}

.about-sig-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: #B86B4A;
}

/* ---------- Gallery ---------- */
.gallery {
  padding: 120px 0;
  background-color: #FAF6F1;
}

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

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(61, 43, 31, 0.14);
}

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

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

.gallery-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 2; }
.gallery-item:nth-child(2) { grid-column: 6 / 9; grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 2; }
.gallery-item:nth-child(4) { grid-column: 1 / 4; grid-row: 2 / 3; }
.gallery-item:nth-child(5) { grid-column: 4 / 8; grid-row: 2 / 3; }
.gallery-item:nth-child(6) { grid-column: 8 / 13; grid-row: 2 / 3; }

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 120px 0;
  background-color: #3D2B1F;
}

.testimonials .section-eyebrow {
  color: #D4A574;
}

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

.testimonials .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

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

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 700;
  color: #B86B4A;
  line-height: 1;
  position: absolute;
  top: 20px;
  left: 28px;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
  margin-top: 24px;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: #D4A574;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */
.contact {
  padding: 120px 0;
  background-color: #F3E8DC;
}

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

.contact-info .section-header {
  text-align: left;
  margin: 0 0 36px;
}

.contact-desc {
  font-size: 1.05rem;
  color: #6B5344;
  line-height: 1.8;
  margin-bottom: 40px;
}

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

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

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: #B86B4A;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #B86B4A;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1rem;
  color: #3D2B1F;
  line-height: 1.6;
}

.contact-value a {
  color: #3D2B1F;
  border-bottom: 1px solid rgba(184, 107, 74, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-value a:hover {
  color: #B86B4A;
  border-color: #B86B4A;
}

/* ---------- Form ---------- */
.contact-form-wrap {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 48px 40px;
  box-shadow: 0 16px 48px rgba(61, 43, 31, 0.08);
}

.form-title {
  font-size: 1.75rem;
  margin-bottom: 28px;
  color: #3D2B1F;
}

.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;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B5344;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(184, 107, 74, 0.2);
  border-radius: 6px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.95rem;
  color: #3D2B1F;
  background-color: #FAF6F1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #A89080;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #B86B4A;
  box-shadow: 0 0 0 3px rgba(184, 107, 74, 0.1);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B5344' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background-color: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: 6px;
  color: #2E7D32;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 16px;
}

.form-success svg {
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #2A1E16;
  padding: 64px 0 32px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.logo-light .logo-text {
  color: #FFFFFF;
}

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

.footer-nav a {
  padding: 8px 16px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.footer-nav a:hover {
  color: #D4A574;
  background-color: rgba(212, 165, 116, 0.08);
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #D4A574;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

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

  .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; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

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

  .about-grid {
    gap: 60px;
  }

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

  .gallery-item:nth-child(1) { grid-column: 1 / 4; }
  .gallery-item:nth-child(2) { grid-column: 4 / 7; }
  .gallery-item:nth-child(3) { grid-column: 1 / 4; }
  .gallery-item:nth-child(4) { grid-column: 4 / 7; }
  .gallery-item:nth-child(5) { grid-column: 1 / 4; }
  .gallery-item:nth-child(6) { grid-column: 4 / 7; }

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

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

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background-color: rgba(250, 246, 241, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(184, 107, 74, 0.12);
    box-shadow: 0 12px 24px rgba(61, 43, 31, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
  }

  .hero-content {
    padding: 140px 24px 100px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .services {
    padding: 80px 0;
  }

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

  .about {
    padding: 80px 0;
  }

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

  .about-images {
    max-width: 480px;
    margin: 0 auto;
  }

  .about-img-accent {
    right: -16px;
    bottom: -24px;
  }

  .about-content {
    max-width: 100%;
  }

  .about-content .section-header {
    text-align: center;
  }

  .about-signature {
    justify-content: center;
  }

  .gallery {
    padding: 80px 0;
  }

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

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }

  .testimonials {
    padding: 80px 0;
  }

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

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

  .contact {
    padding: 80px 0;
  }

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

  .contact-info .section-header {
    text-align: center;
  }

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

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

  .site-footer {
    padding: 48px 0 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .service-card {
    padding: 28px 24px;
  }

  .about-img-accent {
    width: 65%;
    right: -8px;
    bottom: -16px;
  }

  .about-badge {
    top: -12px;
    left: -12px;
    padding: 14px 18px;
  }

  .badge-number {
    font-size: 1.8rem;
  }

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

  .gallery-item {
    height: 300px;
  }
}
