/*
 * ARCHETYPE: Cultural-Storytelling
 * LAYOUT DNA: Split hero (image + text side by side), Symmetric centered layout, Full-width image bands, Tabbed/timeline content
 * SIGNATURE DETAIL: Heritage timeline with gold-framed "mirror" motif — each era section is framed like the baroque gold mirrors in the real shop
 * WHY: Apolo's 58-year story is its superpower — a heritage timeline tells that story while the warm tones and serif typography evoke the shop's vintage elegance
 */

/* ========== CUSTOM PROPERTIES ========== */
:root {
  --gold: #B8860B;
  --gold-light: #D4A934;
  --navy: #1B2A4A;
  --chrome: #C0C0C0;
  --cream: #F5F0E8;
  --walnut: #2C1810;
  --espresso: #1A1008;
  --warm-gray: #8B7D6B;
  --barber-red: #C41E3A;
  --bg: #FAF7F2;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Libre Baskerville', serif;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--espresso);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p { font-size: clamp(0.9rem, 1vw, 1rem); max-width: 60ch; }

.text-gold { color: var(--gold); }
.text-red { color: var(--barber-red); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--warm-gray); }

/* ========== DECORATIVE ELEMENTS ========== */
.ornament {
  text-align: center;
  margin: 2rem 0;
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 0.5em;
}

.gold-rule {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem auto;
  border: none;
}

.gold-rule--left {
  margin-left: 0;
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 134, 11, 0.15);
  transition: all 0.4s;
}

.nav.scrolled {
  padding: 0.8rem 3rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav__links a:hover { color: var(--gold); }

.nav__cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.8rem;
  background: var(--navy);
  color: var(--cream);
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}

.nav__cta:hover {
  background: var(--gold);
  color: white;
}

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

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--espresso);
  transition: all 0.3s;
}

/* ========== HERO — SPLIT ========== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 60px;
}

.hero__image {
  position: relative;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 600px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem;
  background: var(--cream);
  position: relative;
}

.hero__est {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 0.3s forwards;
}

.hero__title {
  margin-bottom: 1.5rem;
  color: var(--navy);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 450px;
  opacity: 0;
  animation: fadeIn 1s ease 0.8s forwards;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  background: var(--barber-red);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  width: fit-content;
  letter-spacing: 0.03em;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeIn 1s ease 1.1s forwards;
}

.hero__cta:hover {
  background: #A01830;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.25);
}

/* ========== HERITAGE TIMELINE ========== */
.timeline {
  padding: 6rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.timeline__header {
  text-align: center;
  margin-bottom: 4rem;
}

.timeline__header h2 {
  color: var(--navy);
}

.timeline__items {
  position: relative;
  padding-left: 3rem;
}

.timeline__items::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--chrome));
}

.timeline__item {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 2rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -3.45rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.timeline__item h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.timeline__item p {
  color: var(--warm-gray);
  line-height: 1.8;
}

/* ========== SERVICES GRID ========== */
.services {
  padding: 6rem 3rem;
  background: var(--walnut);
  color: var(--cream);
}

.services__header {
  text-align: center;
  margin-bottom: 4rem;
}

.services__header h2 { color: var(--gold-light); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 4px;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--gold-light);
}

.service-card h3 {
  color: var(--cream);
  margin-bottom: 1rem;
}

.service-card p {
  color: rgba(245, 240, 232, 0.7);
  font-size: 0.9rem;
  margin: 0 auto;
}

.service-card__price {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold-light);
}

/* ========== GALLERY ROW ========== */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.gallery-row__item {
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-row__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-row__item:hover img {
  transform: scale(1.08);
}

/* ========== ABOUT SECTION ========== */
.about {
  padding: 6rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about__content h2 {
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.about__content p {
  color: var(--warm-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about__image {
  position: relative;
}

.about__image img {
  width: 100%;
  border-radius: 4px;
}

.about__image::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  z-index: -1;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(184, 134, 11, 0.2);
}

.stat__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--warm-gray);
  margin-top: 0.3rem;
}

/* ========== TESTIMONIAL BAND ========== */
.testimonial-band {
  background: var(--navy);
  color: var(--cream);
  padding: 5rem 3rem;
  text-align: center;
}

.testimonial-band__stars {
  color: var(--gold-light);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  margin-bottom: 2rem;
}

.testimonial-band__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.4;
}

.testimonial-band__author {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.6);
  letter-spacing: 0.1em;
}

/* ========== CTA ========== */
.cta {
  padding: 6rem 3rem;
  text-align: center;
}

.cta h2 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.cta p {
  color: var(--warm-gray);
  margin: 0 auto 2.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  background: var(--barber-red);
  padding: 1rem 3rem;
  border-radius: 4px;
  transition: all 0.3s;
}

.cta-btn:hover {
  background: #A01830;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.25);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--walnut);
  color: var(--cream);
  padding: 4rem 3rem 2rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__brand p {
  color: rgba(245, 240, 232, 0.6);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer__col a {
  display: block;
  color: rgba(245, 240, 232, 0.6);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

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

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 134, 11, 0.15);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.4);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero__image img { min-height: 50vh; }
  .hero__content { padding: 3rem 2.5rem; }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .about__image::before { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .gallery-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__cta { display: none; }
  .hero__content { padding: 2.5rem 1.5rem; }
  .timeline { padding: 3rem 1.5rem; }
  .timeline__items { padding-left: 2rem; }
  .services { padding: 3rem 1.5rem; }
  .about { padding: 3rem 1.5rem; }
  .cta { padding: 4rem 1.5rem; }
  .footer { padding: 3rem 1.5rem 1.5rem; }
  .footer__content { grid-template-columns: 1fr; }
  .gallery-row { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero__est, .hero__title, .hero__subtitle, .hero__cta { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}
