/* ═══════════════════════════════════════════════════════════════
   BOOM'S BARBERSHOP — pages.css
   Page-Specific Styles
   Version: 1.0.0
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE — index.html
═══════════════════════════════════════════════════════════════ */

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

/* Background image layer */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Dark overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8, 8, 8, 0.88) 0%,
    rgba(8, 8, 8, 0.72) 50%,
    rgba(8, 8, 8, 0.88) 100%
  );
  z-index: 1;
}

/* Gold gradient at bottom */
.hero__overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(
    to top,
    var(--color-bg-base),
    transparent
  );
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: var(--container-pad);
  padding-top: 80px;
  padding-bottom: var(--space-16);
  max-width: 860px;
  margin-inline: auto;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 18px;
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  animation: pulse-wa 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

.hero__title span {
  display: block;
}

/* Gold gradient on second line */
.hero__title .hero__title-gold {
  background: linear-gradient(
    135deg,
    var(--color-gold-pale)  0%,
    var(--color-gold)       40%,
    var(--color-gold-dark)  70%,
    var(--color-gold)       100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer-gold 4s linear infinite;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-8);
  max-width: 560px;
  margin-inline: auto;
}

.hero__subtitle strong {
  color: var(--color-text-primary);
  font-weight: var(--weight-bold);
}

/* CTA Buttons */
.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

@media (max-width: 480px) {
  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

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

/* Trust Badges */
.hero__trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: scroll-bounce 2.2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(
    to bottom,
    var(--color-accent),
    transparent
  );
}

.hero__scroll-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  opacity: 0.7;
}

/* ─────────────────────────────────────────
   STATS BAR SECTION
───────────────────────────────────────── */
.section-stats {
  padding: 0;
}

.stats-bar {
  background: var(--color-bg-surface);
  border-block: 1px solid var(--color-accent-border);
}

.stats-bar__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .stats-bar__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: clamp(24px, 4vw, 40px) var(--space-4);
  border-right: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

/* Remove borders on edges */
.stat-item:nth-child(2),
.stat-item:nth-child(4) {
  border-right: none;
}

.stat-item:nth-child(3),
.stat-item:nth-child(4) {
  border-bottom: none;
}

@media (min-width: 768px) {
  .stat-item:nth-child(2) {
    border-right: 1px solid var(--color-border-subtle);
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

  .stat-item:nth-child(4) {
    border-right: none;
  }
}

/* ─────────────────────────────────────────
   PROCESS / HOW IT WORKS SECTION
───────────────────────────────────────── */
.process-section {
  text-align: center;
}

.process-section .steps-grid {
  margin-top: var(--space-4);
}

.process-section .card-step {
  margin-top: var(--space-6);
}

/* CTA below steps */
.process-section__cta {
  margin-top: var(--space-12);
  display: flex;
  justify-content: center;
}

/* ─────────────────────────────────────────
   GALLERY PREVIEW SECTION (Homepage)
───────────────────────────────────────── */
.gallery-preview-section {
  text-align: center;
}

.gallery-preview-section .gallery-preview-grid {
  margin-bottom: var(--space-10);
}

/* ─────────────────────────────────────────
   LOCATION SECTION (Homepage)
───────────────────────────────────────── */
.location-section {
  overflow: hidden;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.location-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

/* ─────────────────────────────────────────
   FAQ SECTION
───────────────────────────────────────── */
.faq-section .container {
  max-width: var(--container-narrow);
}

.faq-section .section__header {
  margin-bottom: var(--space-10);
}

/* ─────────────────────────────────────────
   FINAL CTA SECTION (Homepage)
───────────────────────────────────────── */
.final-cta-section {
  background: linear-gradient(
    180deg,
    var(--color-bg-base) 0%,
    var(--color-bg-deep) 100%
  );
  text-align: center;
  padding-block: var(--section-py);
}

.final-cta-box {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-sm);
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.04) 0%,
    transparent 60%,
    rgba(201, 168, 76, 0.04) 100%
  );
  overflow: hidden;
}

/* Corner glow effects */
.final-cta-box::before,
.final-cta-box::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.final-cta-box::before {
  top: -80px;
  right: -80px;
}

.final-cta-box::after {
  bottom: -80px;
  left: -80px;
}

.final-cta-deco {
  font-size: 48px;
  margin-bottom: var(--space-5);
  display: block;
  opacity: 0.6;
}

.final-cta-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
  max-width: none;
}

.final-cta-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-8);
  max-width: none;
}

.final-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.final-cta-info {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.final-cta-info span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 480px) {
  .final-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LAYANAN PAGE — layanan.html
═══════════════════════════════════════════════════════════════ */

.layanan-hero {
  background: var(--color-bg-surface);
}

/* Services intro text */
.services-intro {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

/* Price highlight inside service page cards */
.services-page .card-service {
  height: 100%;
}

/* Packages section */
.packages-section {
  background: var(--color-bg-deep);
}

.packages-section .packages-grid {
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   GALERI PAGE — galeri.html
═══════════════════════════════════════════════════════════════ */

.galeri-hero {
  background: var(--color-bg-surface);
}

/* Gallery main section */
.gallery-main-section {
  padding-bottom: 0;
}

/* Before/After section */
.before-after-main {
  background: var(--color-bg-deep);
}

.before-after-main .section__header {
  margin-bottom: var(--space-10);
}

/* Gallery CTA section */
.gallery-cta-section {
  background: var(--color-bg-base);
  text-align: center;
  padding-block: var(--section-py);
}

/* ═══════════════════════════════════════════════════════════════
   TENTANG PAGE — tentang.html
═══════════════════════════════════════════════════════════════ */

/* About hero — with background image */
.about-hero {
  background-image: url('https://picsum.photos/seed/booms-hero-about/1920/600');
  background-size: cover;
  background-position: center 40%;
}

/* Story section */
.story-section {
  overflow: hidden;
}

.story-section__media {
  position: relative;
}

.story-section__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-accent-border);
}

/* Gold accent line beside image */
.story-section__media::before {
  content: '';
  position: absolute;
  top: var(--space-8);
  left: calc(var(--space-8) * -1);
  width: 3px;
  height: calc(100% - var(--space-16));
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-accent),
    transparent
  );
  border-radius: var(--radius-full);
}

@media (max-width: 767px) {
  .story-section__media::before {
    display: none;
  }
}

.story-section__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  justify-content: center;
}

.story-section__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
  max-width: none;
}

/* Mini stats in story */
.story-stats {
  display: flex;
  gap: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
  flex-wrap: wrap;
}

.story-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.story-stat__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.story-stat__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
}

/* Values section */
.values-section {
  background: var(--color-bg-deep);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Team section */
.team-section {
  background: var(--color-bg-base);
}

/* About CTA */
.about-cta-section {
  background: var(--color-bg-deep);
}

/* ═══════════════════════════════════════════════════════════════
   KONTAK PAGE — kontak.html
═══════════════════════════════════════════════════════════════ */

.kontak-hero {
  background: var(--color-bg-surface);
}

/* Contact main section */
.contact-main-section {
  background: var(--color-bg-base);
}

/* Contact info column */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info-col__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.contact-info-col__sub {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  max-width: none;
  margin-bottom: var(--space-4);
}

/* Contact form column */
.contact-form-col {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 40px);
}

.contact-form-col__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.contact-form-col__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  max-width: none;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-subtle);
}

.contact-form-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-4);
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Maps section */
.maps-section {
  background: var(--color-bg-deep);
}

.maps-section .location-map {
  aspect-ratio: 16 / 7;
}

@media (max-width: 767px) {
  .maps-section .location-map {
    aspect-ratio: 4 / 3;
  }
}

.maps-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

/* ═══════════════════════════════════════════════════════════════
   SHARED PAGE ELEMENTS
═══════════════════════════════════════════════════════════════ */

/* Page Hero Variants */
.page-hero--layanan {
  background: var(--color-bg-surface);
}

.page-hero--galeri {
  background: var(--color-bg-surface);
}

.page-hero--kontak {
  background: var(--color-bg-surface);
}

/* Decorative gold dots pattern */
.gold-dots-bg {
  position: relative;
  overflow: hidden;
}

.gold-dots-bg::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
  background-image: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.12) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.gold-dots-bg > * {
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────
   SECTION ALTERNATING BACKGROUNDS
   Pattern for Homepage sections
───────────────────────────────────────── */

/* 1: Hero           → bg-base (with image)  */
/* 2: Stats          → bg-surface            */
/* 3: Services       → bg-base               */
/* 4: Why Us         → bg-deep               */
/* 5: Process        → bg-base               */
/* 6: Gallery        → bg-deep               */
/* 7: Testimonials   → bg-base               */
/* 8: Location       → bg-deep               */
/* 9: FAQ            → bg-base               */
/* 10: Final CTA     → gradient              */

.section-why-us   { background: var(--color-bg-deep); }
.section-process  { background: var(--color-bg-base); }
.section-gallery-preview { background: var(--color-bg-deep); }
.section-testimonials    { background: var(--color-bg-base); }
.section-location { background: var(--color-bg-deep); }
.section-faq      { background: var(--color-bg-base); }

/* ─────────────────────────────────────────
   MEDIA QUERIES — PAGE SPECIFIC
───────────────────────────────────────── */

@media (max-width: 767px) {
  /* Hero adjustments */
  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__trust-badges {
    gap: var(--space-2);
  }

  .trust-badge {
    font-size: 10px;
    padding: 6px 12px;
  }

  /* Story section stacks */
  .story-section__media::before {
    display: none;
  }

  /* Final CTA box */
  .final-cta-title {
    font-size: var(--text-3xl);
  }

  /* Contact form full width */
  .contact-form-col {
    padding: var(--space-5);
  }
}

@media (min-width: 768px) {
  /* Hero larger on tablet */
  .hero__content {
    padding-top: 100px;
  }
}

@media (min-width: 1024px) {
  /* Story section image decoration */
  .story-section__media::before {
    display: block;
  }
}
