/* ============================================
   BARBERIA ANDERSON — Premium Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --black:       #0a0a0a;
  --dark:        #111111;
  --dark-2:      #1a1a1a;
  --dark-3:      #222222;
  --gray:        #888888;
  --gray-light:  #aaaaaa;
  --white:       #f5f3ef;
  --white-soft:  #e8e4dc;
  --gold:        #c9a84c;
  --gold-light:  #e2c47a;
  --gold-dim:    #8a6d30;
  --copper:      #b87333;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --section-pad: clamp(80px, 10vw, 140px);
  --container:   1200px;
  --radius:      4px;

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ── Section Label ── */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ── Divider ── */
.gold-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 20px 0 32px;
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

#navbar.scrolled {
  padding: 14px 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}

.nav-logo span {
  color: var(--gold);
}

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

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

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

.lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold) !important;
  border: 1px solid var(--gold-dim);
  padding: 6px 14px;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition) !important;
}

.lang-btn:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
  border-color: var(--gold) !important;
}

.lang-btn::after { display: none !important; }

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1.1rem;
  }
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('logo 2.jpg');
  background-size: cover;
  background-position: center center;
  transform: scale(1);
  transform-origin: center 40%;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.hero-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--black), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.2s ease forwards;
}

.hero-badge-line {
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-badge-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s 0.35s ease forwards;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--gray-light);
  letter-spacing: 0.03em;
  max-width: 480px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.5s ease forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.65s ease forwards;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(245, 243, 239, 0.35);
}

.btn-outline:hover {
  background: rgba(245, 243, 239, 0.08);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: transparent;
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.btn-whatsapp:hover {
  background: rgba(74, 222, 128, 0.08);
  border-color: #4ade80;
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s 1.2s ease forwards;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

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

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about {
  padding: var(--section-pad) 0;
  background: var(--dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--dark-2);
  border: 1px solid rgba(201, 168, 76, 0.3);
  position: relative;
  overflow: hidden;
}

.about-frame-inner {
  position: absolute;
  inset: 24px;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-monogram {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.15);
  letter-spacing: -0.02em;
  user-select: none;
}

.about-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
  z-index: 1;
}

.about-corner.tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.about-corner.tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.about-corner.bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.about-corner.br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-stat {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--black);
  padding: 20px 24px;
  text-align: center;
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.about-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--gray-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-value-icon {
  width: 32px;
  height: 32px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.85rem;
}

.about-value-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.about-value-text span {
  font-size: 0.78rem;
  color: var(--gray);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 100%; margin: 0 auto; }
  .about-stat { bottom: 16px; right: 16px; padding: 16px 20px; }
}

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
#services {
  padding: var(--section-pad) 0;
  background: var(--black);
}

.services-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 72px;
}

.services-header .gold-divider {
  margin: 20px auto 32px;
}

.services-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}

.services-header p {
  color: var(--gray-light);
  font-size: 0.95rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.service-card {
  background: var(--dark-2);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--copper));
  transition: width 0.5s ease;
}

.service-card:hover {
  background: var(--dark-3);
  transform: translateY(-2px);
}

.service-card:hover::before {
  width: 100%;
}

.service-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.07);
  line-height: 1;
  margin-bottom: 20px;
  user-select: none;
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.7;
}

.service-price {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════
   GALLERY
══════════════════════════════════════════ */
#gallery {
  padding: var(--section-pad) 0;
  background: var(--dark);
}

.gallery-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.gallery-header .gold-divider {
  margin: 20px auto 32px;
}

.gallery-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}

.gallery-header p {
  color: var(--gray-light);
  font-size: 0.95rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px;
}

.gallery-item {
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--dark-2);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.88);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

.gallery-dots { display: none; }

@media (max-width: 600px) {
  .gallery-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-wrapper::-webkit-scrollbar { display: none; }

  .gallery-grid {
    display: flex;
    width: max-content;
    gap: 0;
  }

  .gallery-item {
    flex: 0 0 100vw;
    width: 100vw;
    height: 80vw;
    aspect-ratio: unset;
    scroll-snap-align: start;
  }

  .gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding: 0 20px;
  }

  .gallery-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
  }
  /* Invisible touch-target padding (44px minimum per WCAG) */
  .gallery-dot::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
  }

  .gallery-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.35);
  }
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
#contact {
  padding: var(--section-pad) 0;
  background: var(--dark);
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}

.contact-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-header p {
  color: var(--gray-light);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 400px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
}

.contact-item-body strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-item-body span,
.contact-item-body a {
  font-size: 1rem;
  color: var(--white-soft);
  line-height: 1.5;
}

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

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-social-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-btn:hover {
  border-color: var(--gold-dim);
  background: var(--dark-3);
  transform: translateX(4px);
}

.social-btn.whatsapp svg  { color: #4ade80; }
.social-btn.email svg     { color: #818cf8; }
.social-btn.facebook svg  { color: #60a5fa; }
.social-btn.instagram svg { color: #e1306c; }
.social-btn.google svg    { color: #f87171; }
.social-btn.phone svg     { color: var(--gold); }

.social-btn .social-arrow {
  margin-left: auto;
  color: var(--gray);
  font-size: 0.9rem;
}

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

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-logo span { color: var(--gold); }

.footer-tagline {
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--gray);
}

.footer-copy a {
  color: var(--gold-dim);
  transition: color var(--transition);
}

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

/* ══════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ══════════════════════════════════════════
   MISC UTILITIES
══════════════════════════════════════════ */
.text-gold { color: var(--gold); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Address link + block */
.address-map-btn {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.address-map-btn svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

.address-block {
  font-style: normal;
  line-height: 1.7;
  color: var(--white-soft);
  font-size: 0.95rem;
}

/* ── Mobile tweaks ── */
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .about-frame { aspect-ratio: 4/3; }
  .about-stat-num { font-size: 1.8rem; }
}
