/* =============================================
   Gent's Grooming — Styles
   Refined luxury barbershop aesthetic
   ============================================= */

:root {
  --brown-deep: #2C1810;
  --brown-mid: #4A2C1A;
  --brown-warm: #6B3A2A;
  --gold: #B8860B;
  --gold-light: #C9A84C;
  --gold-muted: #D4B87A;
  --cream: #F5F0E8;
  --cream-light: #FAFAF5;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5C5C5C;
  --text-light: #8A8A8A;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--cream-light);
  -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 clamp(1.25rem, 4vw, 3rem);
}

/* ---- Typography ---- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--brown-deep);
  margin-bottom: 1.5rem;
}

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

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 3.5rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(250, 250, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(44, 24, 16, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
  color: var(--brown-deep);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}

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

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.navbar.scrolled .nav-toggle span {
  background: var(--brown-deep);
}

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

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

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 24, 16, 0.65) 0%,
    rgba(44, 24, 16, 0.50) 40%,
    rgba(44, 24, 16, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 0.5rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: 1.5px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

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

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

/* =============================================
   About
   ============================================= */
.about {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-text {
  padding-right: 1rem;
}

.about-description {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(44, 24, 16, 0.1);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--brown-deep);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(44, 24, 16, 0.1);
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
}

.about-img-wrapper {
  overflow: hidden;
  border-radius: 4px;
}

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

.about-img-wrapper:hover img {
  transform: scale(1.04);
}

.about-img-1 {
  height: 420px;
  margin-top: 2rem;
}

.about-img-2 {
  height: 420px;
  margin-top: -2rem;
}

/* =============================================
   Services
   ============================================= */
.services {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  background: var(--white);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(44, 24, 16, 0.06);
  border-radius: 4px;
  transition: all 0.35s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(44, 24, 16, 0.08);
  border-color: var(--gold-muted);
}

.service-card.featured {
  border-color: var(--gold);
  background: linear-gradient(to bottom, rgba(184, 134, 11, 0.03), var(--white));
}

.service-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 2px;
}

.service-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 1.25rem;
  color: var(--gold);
}

.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--brown-deep);
  margin-bottom: 0.75rem;
}

.service-price {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--gold);
}

/* =============================================
   Reviews
   ============================================= */
.reviews {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.reviews-overall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.reviews-stars {
  display: flex;
  gap: 2px;
}

.reviews-stars svg {
  width: 20px;
  height: 20px;
  color: #FBBC04;
}

.reviews-rating {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--white);
  border: 1px solid rgba(44, 24, 16, 0.06);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(44, 24, 16, 0.08);
  border-color: var(--gold-muted);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1.25rem;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  color: #FBBC04;
}

.review-text {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(44, 24, 16, 0.06);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brown-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.review-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brown-deep);
}

.review-source {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

.reviews-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-review {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--brown-deep);
  color: var(--white);
  border: 1.5px solid var(--brown-deep);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-review svg {
  width: 18px;
  height: 18px;
}

.btn-review:hover {
  background: var(--brown-mid);
  border-color: var(--brown-mid);
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   Contact
   ============================================= */
.contact {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: 1rem;
}

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

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(44, 24, 16, 0.06);
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.contact-card:hover {
  border-color: var(--gold-muted);
}

.contact-card-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-card address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 0.2rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-card a {
  transition: color 0.3s ease;
}

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

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--brown-deep);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.instagram-link:hover {
  background: var(--brown-mid);
}

.instagram-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-map {
  min-height: 460px;
  border: 1px solid rgba(44, 24, 16, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.contact-map iframe {
  display: block;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--brown-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

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

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

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

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

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

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* =============================================
   Back to Top
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--brown-deep);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(44, 24, 16, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links .nav-link {
    color: var(--brown-deep);
    font-size: 1rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-images {
    order: -1;
    grid-template-columns: 1fr 1fr;
  }

  .about-img-1,
  .about-img-2 {
    height: 280px;
    margin: 0;
  }

  .about-stats {
    gap: 1.25rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 300px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

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

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

  .btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }

  .about-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }
}
