/* ========================================
   TRILLION KUTTZ BARBERSHOP — STYLES
   Palette: Terracotta + Sand
   ======================================== */

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

:root {
  --terracotta: #B85C38;
  --terracotta-dark: #9A4B2C;
  --terracotta-light: #D4845E;
  --sand: #F5EDE3;
  --sand-light: #FAF6F1;
  --sand-dark: #E8DDD0;
  --charcoal: #1A1A1A;
  --charcoal-light: #2D2D2D;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-light: #F5EDE3;
  --white: #FFFFFF;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-primary);
  background: var(--sand-light);
  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;
}

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

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}

.nav.scrolled {
  background: rgba(250, 246, 241, 0.97);
  box-shadow: 0 1px 0 rgba(184, 92, 56, 0.1);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  background: var(--terracotta);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background var(--transition);
  letter-spacing: 0.05em;
}

.nav.scrolled .nav-logo-mark {
  color: var(--white);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav.scrolled .nav-logo-text {
  color: var(--charcoal);
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
  position: relative;
}

.nav.scrolled .nav-links a {
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--terracotta);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width var(--transition);
}

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

.nav-cta {
  background: var(--terracotta) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 500 !important;
  letter-spacing: 0.06em;
  transition: background var(--transition), transform var(--transition) !important;
}

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

.nav-cta:hover {
  background: var(--terracotta-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

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

.nav-toggle-line {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
  transform-origin: center;
}

.nav.scrolled .nav-toggle-line {
  background: var(--charcoal);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -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 0.4s ease, visibility 0.4s ease;
}

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

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color var(--transition);
}

.mobile-menu-link:hover {
  color: var(--terracotta);
}

.mobile-menu-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--terracotta);
  margin-top: 8px;
  padding: 12px 28px;
  border: 1.5px solid var(--terracotta);
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}

.mobile-menu-cta:hover {
  background: var(--terracotta);
  color: var(--white);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.55) 0%,
    rgba(26, 26, 26, 0.7) 60%,
    rgba(26, 26, 26, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  padding-top: 80px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 40px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

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

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

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), 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 COMMON
   ======================================== */
section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

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

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-line {
  width: 48px;
  height: 1.5px;
  background: var(--terracotta);
  margin: 0 auto;
}

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

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

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
  border: 1px solid var(--sand-dark);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(184, 92, 56, 0.1);
  border-color: transparent;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--sand);
  color: var(--terracotta);
  margin-bottom: 24px;
  transition: all var(--transition);
}

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

.service-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

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

.about-image {
  position: relative;
}

.about-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.about-image-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--terracotta);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.3;
}

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

.about-content .section-header {
  text-align: left;
  margin-bottom: 32px;
}

.about-content .section-line {
  margin: 0;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

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

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

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--terracotta);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  background: var(--sand-dark);
  align-self: stretch;
}

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

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

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 5/4;
  cursor: pointer;
}

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

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

/* ========================================
   QUOTE SECTION
   ======================================== */
.quote-section {
  background: var(--charcoal);
  padding: 100px 0;
  text-align: center;
}

.quote-reveal {
  max-width: 720px;
  margin: 0 auto;
}

.quote-mark {
  color: var(--terracotta);
  opacity: 0.6;
  margin-bottom: 24px;
}

.quote-reveal blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--white);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 24px;
}

.quote-reveal cite {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-light);
}

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

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

.contact-info .section-header {
  text-align: left;
  margin-bottom: 32px;
}

.contact-info .section-line {
  margin: 0;
}

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

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

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--sand);
  color: var(--terracotta);
  flex-shrink: 0;
}

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

.contact-item a {
  font-size: 1rem;
  color: var(--charcoal);
  transition: color var(--transition);
  line-height: 1.5;
}

.contact-item a:hover {
  color: var(--terracotta);
}

/* Form */
.contact-form-wrap {
  background: var(--sand-light);
  border-radius: 8px;
  padding: 48px;
  border: 1px solid var(--sand-dark);
}

.contact-form-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 32px;
}

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

.form-input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.1);
}

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

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: 4px;
  color: #2E7D32;
  font-size: 0.9rem;
  margin-top: 16px;
}

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

/* ========================================
   MAP
   ======================================== */
.map-section {
  background: var(--sand-dark);
}

.map-section iframe {
  width: 100%;
  height: 350px;
  filter: saturate(0.6) contrast(1.1);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  background: var(--terracotta);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 4px;
}

.footer-nav a,
.footer-contact a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--terracotta-light);
}

.footer-contact span {
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   REVEAL ANIMATIONS
   (progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

/* Without JS, ensure content is visible */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

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

  .about-grid {
    gap: 48px;
  }

  .contact-grid {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

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

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

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

  .about-image {
    order: -1;
  }

  .about-img {
    height: 350px;
  }

  .about-image-accent {
    display: none;
  }

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

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

  .about-content .section-line {
    margin: 0 auto;
  }

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

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

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

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

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

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

  .nav-inner {
    padding: 16px;
  }

  .hero-content {
    padding-top: 60px;
  }

  .hero-scroll {
    display: none;
  }

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

  .section-header {
    margin-bottom: 48px;
  }
}
