/* ============================================
   Studio T Hair Salon — Styles
   Palette: Terracotta (#B85C38) + Sand (#F5E6D3)
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --terra: #B85C38;
  --terra-dark: #9A4B2C;
  --terra-light: #D4845E;
  --sand: #F5E6D3;
  --sand-light: #FBF5EE;
  --sand-dark: #E8D5C0;
  --charcoal: #1E1E1E;
  --slate: #3A3A3A;
  --gray: #6B6B6B;
  --gray-light: #9A9A9A;
  --white: #FFFFFF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(30,30,30,0.08);
  --shadow-md: 0 4px 16px rgba(30,30,30,0.10);
  --shadow-lg: 0 8px 32px rgba(30,30,30,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--sand-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 245, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-dark);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--charcoal);
}

.nav__brand-mark {
  width: 36px;
  height: 36px;
  background: var(--terra);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

.nav__brand-text {
  letter-spacing: -0.01em;
}

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

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--transition);
  position: relative;
}

.nav__links a:not(.nav__cta):hover {
  color: var(--terra);
}

.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terra);
  transition: width var(--transition);
}

.nav__links a:not(.nav__cta):hover::after {
  width: 100%;
}

.nav__cta {
  background: var(--terra);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}

.nav__cta:hover {
  background: var(--terra-dark);
  transform: translateY(-1px);
}

.nav__cta::after {
  display: none !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

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

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

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

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--sand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: color var(--transition);
}

.mobile-menu__link:hover {
  color: var(--terra);
}

.mobile-menu__cta {
  margin-top: 16px;
  background: var(--terra);
  color: var(--white);
  padding: 14px 36px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-body);
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/4783289/pexels-photo-4783289.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.82) 0%,
    rgba(30, 30, 30, 0.65) 50%,
    rgba(184, 92, 56, 0.35) 100%
  );
}

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

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 20px;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

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

.hero__trust-item {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.hero__trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra-light);
  opacity: 0.7;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--primary:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
  box-shadow: 0 8px 24px rgba(184, 92, 56, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

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

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

.btn--full {
  width: 100%;
}

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

.section-header__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 12px;
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header__sub {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
}

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

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--sand-dark);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--sand);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terra);
  margin-bottom: 20px;
  transition: background var(--transition), color var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--terra);
  color: var(--white);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}

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

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

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.about__text {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--sand-dark);
}

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

.about__stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--terra);
  line-height: 1;
}

.about__stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

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

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

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,30,30,0.2) 0%, transparent 40%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item:nth-child(1) { grid-row: span 2; }
.gallery__item:nth-child(1) img { height: 100%; }

/* ============================================
   HOURS
   ============================================ */
.hours {
  padding: 100px 0;
  background: var(--charcoal);
}

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

.hours__left .section-header__title {
  color: var(--white);
}

.hours__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hours__address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hours__address svg {
  color: var(--terra-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.hours__address strong {
  display: block;
  color: var(--white);
  margin-bottom: 2px;
}

.hours__right {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.hours__schedule-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
}

.hours__schedule {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}

.hours__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hours__row:last-child {
  border-bottom: none;
}

.hours__day {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.hours__time {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

.hours__row.closed .hours__time {
  color: var(--terra-light);
  font-weight: 500;
}

.hours__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.hours__contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.hours__contact a:hover {
  color: var(--terra-light);
}

.hours__contact svg {
  color: var(--terra-light);
  flex-shrink: 0;
}

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

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

.contact__text {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--slate);
}

.contact__detail svg {
  color: var(--terra);
  flex-shrink: 0;
}

.contact__detail a {
  transition: color var(--transition);
}

.contact__detail a:hover {
  color: var(--terra);
}

/* Form */
.contact__form-wrap {
  background: var(--sand-light);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
}

.form__input {
  padding: 12px 16px;
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form__input::placeholder {
  color: var(--gray-light);
}

.form__input:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.12);
}

.form__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='%236B6B6B' 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 14px center;
  padding-right: 40px;
}

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

.form__success {
  text-align: center;
  padding: 40px 20px;
}

.form__success svg {
  color: var(--terra);
  margin: 0 auto 16px;
}

.form__success p {
  font-size: 1rem;
  color: var(--slate);
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal);
  padding: 64px 0 0;
}

.footer__top {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 400px;
  line-height: 1.6;
}

.footer__mid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.footer__col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 5px 0;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--terra-light);
}

.footer__col span {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

  .about__grid {
    gap: 40px;
  }

  .footer__mid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__content {
    padding: 100px 20px 60px;
  }

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

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .services {
    padding: 72px 0;
  }

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

  .about {
    padding: 72px 0;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__stats {
    gap: 24px;
  }

  .gallery {
    padding: 72px 0;
  }

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

  .gallery__item:nth-child(1) {
    grid-row: span 1;
  }

  .gallery__item:nth-child(1) img {
    height: 250px;
  }

  .hours {
    padding: 72px 0;
  }

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

  .contact {
    padding: 72px 0;
  }

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

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

  .footer__mid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

  .hero__headline {
    font-size: 2.2rem;
  }

  .section-header__title {
    font-size: 1.75rem;
  }

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

  .contact__form-wrap {
    padding: 24px;
  }

  .hours__right {
    padding: 24px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .hero__bg {
    animation: none;
    transform: scale(1);
  }

  .gallery__item img {
    transition: none;
  }
}
