/* =========================================
   EL PATRON BARBERIA - Styles
   ========================================= */

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

:root {
  --black: #111111;
  --gold: #C5A55A;
  --gold-dark: #a8893d;
  --gold-light: #d4ba7a;
  --offwhite: #F2F0ED;
  --charcoal: #333333;
  --charcoal-light: #555555;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--offwhite);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

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

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background-color: var(--gold);
  color: var(--black);
}

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

.btn--full {
  width: 100%;
  text-align: center;
}

/* --- SECTION HEADER --- */
.section-header {
  margin-bottom: 60px;
}

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

.section-header__label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--offwhite);
}

.section-header__line {
  width: 60px;
  height: 3px;
  background-color: var(--gold);
  margin-top: 20px;
}

.section-header__line--center {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   HEADER / NAV
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.header--scrolled {
  background-color: rgba(17, 17, 17, 0.97);
  padding: 12px 0;
  border-bottom: 1px solid rgba(197, 165, 90, 0.15);
}

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

.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.header__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 4px;
  color: var(--offwhite);
}

.header__logo-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--offwhite);
  position: relative;
}

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

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--cta {
  background-color: var(--gold);
  color: var(--black);
  padding: 10px 24px;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background-color: var(--gold-light);
}

/* BURGER */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger__line {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--offwhite);
  margin: 6px 0;
  transition: all 0.3s ease;
}

.burger--active .burger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger--active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #0a0a0a;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(197, 165, 90, 0.05) 0%, transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(197, 165, 90, 0.02) 40px,
      rgba(197, 165, 90, 0.02) 41px
    );
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.3) 0%, rgba(17,17,17,0.8) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero__since {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--offwhite);
  margin-bottom: 24px;
}

.hero__tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(242, 240, 237, 0.7);
  max-width: 500px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

/* Decorative lines */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  z-index: 1;
}

.hero::before {
  top: 80px;
  left: 10%;
}

.hero::after {
  bottom: 80px;
  right: 10%;
}

/* =========================================
   SERVICES
   ========================================= */
.services {
  padding: 120px 0;
  background-color: var(--black);
}

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

.service-card {
  background-color: rgba(51, 51, 51, 0.3);
  padding: 48px 36px;
  position: relative;
  transition: all 0.4s ease;
  border: 1px solid rgba(197, 165, 90, 0.05);
}

.service-card:hover {
  background-color: rgba(197, 165, 90, 0.06);
  border-color: rgba(197, 165, 90, 0.2);
}

.service-card__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  color: rgba(197, 165, 90, 0.12);
  line-height: 1;
  margin-bottom: 20px;
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--offwhite);
  margin-bottom: 12px;
}

.service-card__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: rgba(242, 240, 237, 0.55);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold);
}

/* =========================================
   ABOUT
   ========================================= */
.about {
  padding: 120px 0;
  background-color: #0d0d0d;
}

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

.about__image-block {
  position: relative;
}

.about__image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background-color: #1a1510;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about__image-placeholder span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: rgba(197, 165, 90, 0.3);
}

.about__image-placeholder::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(197, 165, 90, 0.15);
}

.about__image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--gold);
  z-index: -1;
}

.about__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: rgba(242, 240, 237, 0.7);
  line-height: 1.8;
  margin-top: 20px;
}

.about__text strong {
  color: var(--gold);
  font-weight: 500;
}

.about__stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(197, 165, 90, 0.15);
}

.about__stat {
  display: flex;
  flex-direction: column;
}

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

.about__stat-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: rgba(242, 240, 237, 0.5);
  margin-top: 8px;
  text-transform: uppercase;
}

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

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 8px;
}

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

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.5s ease;
}

.gallery__item:hover .gallery__placeholder {
  transform: scale(1.05);
}

.gallery__placeholder span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: rgba(197, 165, 90, 0.25);
  text-transform: uppercase;
  z-index: 1;
}

.gallery__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 17, 17, 0.6) 100%);
}

/* =========================================
   CONTACT
   ========================================= */
.contact {
  padding: 120px 0;
  background-color: #0d0d0d;
}

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

.contact__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  color: rgba(242, 240, 237, 0.65);
  line-height: 1.7;
  margin-top: 20px;
  margin-bottom: 48px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__detail-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact__detail-value {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(242, 240, 237, 0.65);
  line-height: 1.7;
}

/* BOOKING FORM */
.booking-form {
  background-color: rgba(51, 51, 51, 0.2);
  border: 1px solid rgba(197, 165, 90, 0.1);
  padding: 48px 40px;
}

.booking-form__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--offwhite);
  margin-bottom: 32px;
  text-align: center;
}

.booking-form__group {
  margin-bottom: 20px;
}

.booking-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.booking-form__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.booking-form__input {
  width: 100%;
  padding: 14px 16px;
  background-color: rgba(17, 17, 17, 0.8);
  border: 1px solid rgba(197, 165, 90, 0.15);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.booking-form__input::placeholder {
  color: rgba(242, 240, 237, 0.3);
}

.booking-form__input:focus {
  border-color: var(--gold);
}

.booking-form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C5A55A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.booking-form__select option {
  background-color: var(--charcoal);
  color: var(--offwhite);
}

.booking-form__textarea {
  resize: vertical;
  min-height: 80px;
}

.booking-form .btn {
  margin-top: 12px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 60px 0 0;
  background-color: var(--black);
  border-top: 1px solid rgba(197, 165, 90, 0.1);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 4px;
  color: var(--offwhite);
  display: block;
}

.footer__logo-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
}

.footer__copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(242, 240, 237, 0.4);
  margin-top: 12px;
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(242, 240, 237, 0.5);
}

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

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--offwhite);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 165, 90, 0.2);
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background-color: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid rgba(197, 165, 90, 0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: rgba(242, 240, 237, 0.3);
}

.footer__credit a {
  color: var(--gold);
  transition: opacity 0.3s ease;
}

.footer__credit a:hover {
  opacity: 0.7;
}

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

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

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

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }

  .about__layout,
  .contact__layout {
    gap: 60px;
  }
}

@media (max-width: 768px) {
  /* NAV MOBILE */
  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(17, 17, 17, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav--open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .nav__link {
    font-size: 1.2rem;
    letter-spacing: 4px;
  }

  .nav__link--cta {
    margin-top: 12px;
  }

  /* HERO */
  .hero {
    min-height: 600px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  /* SERVICES */
  .services {
    padding: 80px 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-card {
    padding: 36px 28px;
  }

  /* ABOUT */
  .about {
    padding: 80px 0;
  }

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

  .about__image-accent {
    bottom: -12px;
    right: -12px;
  }

  .about__stats {
    gap: 32px;
  }

  .about__stat-number {
    font-size: 2rem;
  }

  /* GALLERY */
  .gallery {
    padding: 80px 0;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  /* CONTACT */
  .contact {
    padding: 80px 0;
  }

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

  .booking-form {
    padding: 36px 28px;
  }

  .booking-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* FOOTER */
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    letter-spacing: 3px;
  }

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

  .service-card__number {
    font-size: 2.2rem;
  }

  .about__stats {
    flex-direction: column;
    gap: 24px;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}
