/* ───────────────────────────────────────────
   Dana's Barber Shop — Styles
   Palette: Terracotta + Sand + Charcoal
─────────────────────────────────────────── */

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

:root {
  --terra:        #B85C38;
  --terra-dark:   #9A4B2C;
  --terra-light:  #D4845E;
  --sand:         #F5EDE4;
  --sand-light:   #FAF6F1;
  --sand-dark:    #E8DDD2;
  --charcoal:     #1E1E1E;
  --charcoal-mid: #3A3A3A;
  --charcoal-light: #5C5C5C;
  --white:        #FFFFFF;
  --radius:       8px;
  --radius-lg:    12px;
  --shadow:       0 1px 3px rgba(30,30,30,.08), 0 4px 16px rgba(30,30,30,.06);
  --shadow-lg:    0 4px 24px rgba(30,30,30,.10), 0 12px 48px rgba(30,30,30,.06);
  --transition:   220ms cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--sand-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, .gallery-img, .hero-bg, .about-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

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

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--charcoal);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--charcoal-light);
  max-width: 560px;
  line-height: 1.65;
}

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

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

.section-header.center .section-sub {
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--terra);
  color: var(--white);
  border: 2px solid var(--terra);
}
.btn-primary:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,92,56,.35);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--terra);
  border: 2px solid var(--white);
}
.btn-light:hover {
  background: var(--sand);
  border-color: var(--sand);
  transform: translateY(-1px);
}

.btn-sm { padding: 8px 18px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(30,30,30,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition);
}

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

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav-logo-icon {
  color: var(--terra-light);
}

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

.nav-menu a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  transition: color var(--transition);
  position: relative;
}

.nav-menu a:not(.btn):hover {
  color: var(--white);
}

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

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

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

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30,30,30,.82) 0%,
    rgba(30,30,30,.55) 50%,
    rgba(30,30,30,.35) 100%
  );
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184,92,56,.2);
  border: 1px solid rgba(184,92,56,.4);
  color: var(--terra-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  max-width: 780px;
  margin-bottom: 24px;
  line-height: 1.08;
}

.hero-accent {
  color: var(--terra-light);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,.75);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 40px;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: rgba(255,255,255,.55);
  font-size: 0.875rem;
}

.hero-meta svg {
  vertical-align: -2px;
  margin-right: 6px;
}

/* ── Trust Bar ── */
.trust {
  background: var(--charcoal);
  padding: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition);
}

.trust-item:last-child { border-right: none; }
.trust-item:hover { background: rgba(255,255,255,.03); }

.trust-item svg {
  color: var(--terra-light);
  margin-bottom: 16px;
}

.trust-item strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 6px;
}

.trust-item span {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
}

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

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  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: 3px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

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

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

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

.service-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--charcoal-light);
  line-height: 1.65;
}

.services-note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--charcoal-light);
}

.services-note a {
  color: var(--terra);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(184,92,56,.3);
  text-underline-offset: 3px;
  transition: all var(--transition);
}

.services-note a:hover {
  text-decoration-color: var(--terra);
}

/* ── About ── */
.about {
  padding: 100px 0;
  background: var(--sand);
}

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

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

.about-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background:
    url('https://images.pexels.com/photos/13068357/pexels-photo-13068357.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=800&h=1000') center center / cover no-repeat;
  box-shadow: var(--shadow-lg);
}

.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--terra);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.15;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1rem;
  color: var(--charcoal-light);
  line-height: 1.75;
  margin-bottom: 16px;
}

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

.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--terra);
  line-height: 1.2;
}

.stat-phone {
  font-size: 1.25rem;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--charcoal-light);
  margin-top: 4px;
  line-height: 1.4;
}

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

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

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.gallery-img {
  background-color: var(--sand-dark);
  transition: transform 500ms cubic-bezier(.4,0,.2,1);
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,30,30,.25), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.gallery-item--large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-item--large .gallery-img {
  background: url('https://images.pexels.com/photos/7195801/pexels-photo-7195801.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1200&h=900') center center / cover no-repeat;
}

.gallery-item:nth-child(2) .gallery-img {
  background: url('https://images.pexels.com/photos/27165072/pexels-photo-27165072.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=600&h=480') center center / cover no-repeat;
}

.gallery-item:nth-child(3) .gallery-img {
  background: url('https://images.pexels.com/photos/7755461/pexels-photo-7755461.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=600&h=480') center center / cover no-repeat;
}

.gallery-item:nth-child(4) .gallery-img {
  background: url('https://images.pexels.com/photos/7195800/pexels-photo-7195800.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=600&h=480') center center / cover no-repeat;
}

.gallery-item--wide {
  grid-column: 2 / 5;
}

.gallery-item--wide .gallery-img {
  background: url('https://images.pexels.com/photos/7755481/pexels-photo-7755481.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1400&h=480') center center / cover no-repeat;
}

/* ── CTA ── */
.cta {
  padding: 100px 0;
  background:
    url('https://images.pexels.com/photos/1654834/pexels-photo-1654834.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=800') center center / cover no-repeat;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(154,75,44,.9), rgba(30,30,30,.88));
}

.cta .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--white);
  max-width: 680px;
  margin: 0 auto 20px;
}

.cta-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

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

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

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--sand-dark);
}

.contact-block:first-child { padding-top: 0; }
.contact-block:last-child { border-bottom: none; }

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

.contact-block strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  margin-bottom: 4px;
}

.contact-block p {
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.6;
}

.contact-block a {
  color: var(--terra);
  font-weight: 600;
  transition: color var(--transition);
}

.contact-block a:hover { color: var(--terra-dark); }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 400px;
}

/* ── Footer ── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.6);
  padding: 72px 0 0;
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-logo svg { color: var(--terra-light); }

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 300px;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

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

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

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

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

.footer-contact a {
  color: var(--terra-light);
  font-weight: 600;
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.35);
}

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

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

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(.4,0,.2,1), transform 600ms cubic-bezier(.4,0,.2,1);
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-bottom: 1px solid rgba(255,255,255,.06); }
  .trust-item:nth-child(2) { border-right: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 280px 200px 200px;
  }
  .gallery-item--large { grid-column: 1 / 3; grid-row: 1 / 2; }
  .gallery-item--wide { grid-column: 1 / 3; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(30,30,30,.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

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

  .nav-toggle { display: flex; }

  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-meta { flex-direction: column; gap: 10px; }

  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none; }

  .services { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }

  .about { padding: 72px 0; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image-wrap { order: -1; }
  .about-accent { display: none; }
  .about-stats { flex-direction: column; gap: 24px; }

  .gallery { padding: 72px 0; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item,
  .gallery-item--large,
  .gallery-item--wide {
    grid-column: auto;
    grid-row: auto;
  }
  .gallery-item { height: 220px; }
  .gallery-item--large { height: 300px; }

  .cta { padding: 72px 0; }
  .cta-actions { flex-direction: column; align-items: center; }

  .contact { padding: 72px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 300px; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content { padding: 100px 16px 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 12px 20px; font-size: 0.9375rem; }
}
