html { background-color: #0f0e0c; }
/* ========== CSS Variables - Dark (default) ========== */
:root {
  --bg: #0f0e0c;
  --bg-soft: #171512;
  --card: #1c1916;
  --border: #2e2a25;
  --text: #f5f0e8;
  --muted: #b8a99a;
  --accent: #c9a227;
  --accent-hover: #e0b83a;
  --wood: #8b5a2b;
  --wood-light: #a67c52;
  --success: #25d366;
  --header-bg: rgba(15, 14, 12, 0.92);
  --shadow: rgba(0, 0, 0, 0.4);
  --card-hover-shadow: rgba(0, 0, 0, 0.3);
  --gradient-overlay: rgba(201, 162, 39, 0.08);
  --wood-overlay: rgba(139, 90, 43, 0.12);
}

/* ========== Light Mode (auto based on device) ========== */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8f5f0;
    --bg-soft: #f0ebe3;
    --card: #ffffff;
    --border: #e0d8cc;
    --text: #1a1612;
    --muted: #6b5e52;
    --accent: #b8921f;
    --accent-hover: #a07d18;
    --wood: #8b5a2b;
    --wood-light: #a67c52;
    --success: #1ea952;
    --header-bg: rgba(248, 245, 240, 0.95);
    --shadow: rgba(0, 0, 0, 0.08);
    --card-hover-shadow: rgba(0, 0, 0, 0.12);
    --gradient-overlay: rgba(184, 146, 31, 0.1);
    --wood-overlay: rgba(139, 90, 43, 0.08);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease, background 0.4s ease, border-color 0.4s ease;
}

header.scrolled {
  box-shadow: 0 8px 30px var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo svg {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
}

.logo:hover svg {
  transform: rotate(-5deg) scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text strong {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  transition: color 0.3s;
}

.logo-text span {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.nav-cta {
  background: var(--accent);
  color: #0f0e0c !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: 0.3s;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 78px;
  background: 
    radial-gradient(ellipse at 20% 50%, var(--gradient-overlay) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--wood-overlay) 0%, transparent 45%),
    var(--bg);
  overflow: hidden;
  transition: background 0.4s ease;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(90deg, transparent 0%, transparent 49%, rgba(201,162,39,0.03) 50%, transparent 51%),
    linear-gradient(0deg, transparent 0%, transparent 49%, rgba(201,162,39,0.03) 50%, transparent 51%);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease forwards 0.35s;
}

.hero h1 span {
  color: var(--accent);
  background: linear-gradient(120deg, var(--accent), var(--wood-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.9s ease forwards 0.5s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0f0e0c;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48%;
  max-width: 560px;
  opacity: 0;
  pointer-events: none;
  animation: fadeInRight 1.1s ease forwards 0.5s;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  transition: filter 0.4s;
}

/* ========== SECTIONS ========== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header .label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--wood));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 22px 45px var(--card-hover-shadow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(201, 162, 39, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent);
  transition: transform 0.35s ease, background 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(201, 162, 39, 0.2);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
  transition: color 0.3s;
}

.service-card:hover h3 {
  color: var(--accent);
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ========== GALLERY ========== */
.gallery {
  background: var(--bg-soft);
  transition: background 0.4s ease;
}

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

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
  opacity: 0;
  transform: scale(0.92) translateY(30px);
}

.gallery-item.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.gallery-item:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 40px var(--card-hover-shadow);
}

.gallery-item .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--muted);
  padding: 20px;
  text-align: center;
  transition: background 0.4s, color 0.3s;
}

.gallery-item:hover .placeholder {
  color: var(--accent);
}

.gallery-item .placeholder svg {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  opacity: 0.7;
  color: var(--accent);
  transition: transform 0.4s, opacity 0.3s;
}

.gallery-item:hover .placeholder svg {
  transform: scale(1.15);
  opacity: 1;
}

.gallery-item .placeholder span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.stat {
  text-align: center;
  padding: 20px 12px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.35s ease;
  opacity: 0;
  transform: translateY(25px);
}

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

.stat:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px var(--card-hover-shadow);
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

.about-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease, background 0.4s, border-color 0.4s;
}

.about-visual.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-visual svg {
  width: 100%;
  height: auto;
}

/* ========== CONTACT ========== */
.contact {
  background: var(--bg-soft);
  transition: background 0.4s ease;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateX(-25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 162, 39, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s, background 0.3s;
}

.contact-item:hover .icon {
  transform: scale(1.1);
  background: rgba(201, 162, 39, 0.22);
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-item p,
.contact-item a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.25s;
}

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

.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 380px;
  background: var(--card);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.4s;
}

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

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  transition: background 0.4s, border-color 0.4s;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo svg {
  width: 40px;
  height: 40px;
}

.footer-logo strong {
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: pulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(40px);
  }
  to {
    opacity: 0.9;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Stagger delays for cards */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

.gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-item:nth-child(4) { transition-delay: 0.2s; }
.gallery-item:nth-child(5) { transition-delay: 0.25s; }
.gallery-item:nth-child(6) { transition-delay: 0.3s; }

.stat:nth-child(1) { transition-delay: 0.1s; }
.stat:nth-child(2) { transition-delay: 0.2s; }
.stat:nth-child(3) { transition-delay: 0.3s; }

.contact-item:nth-child(1) { transition-delay: 0.1s; }
.contact-item:nth-child(2) { transition-delay: 0.2s; }
.contact-item:nth-child(3) { transition-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .hero-visual {
    display: none;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.4s;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

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

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

  section {
    padding: 70px 0;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .service-card,
  .gallery-item,
  .stat,
  .about-visual,
  .contact-item,
  .map-container {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none !important;
  }
}

/* ========== CURSOR GLOW (mouse light effect) ========== */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(
    circle,
    rgba(201, 162, 39, 0.18) 0%,
    rgba(201, 162, 39, 0.08) 30%,
    rgba(139, 90, 43, 0.04) 55%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition: opacity 0.35s ease;
  opacity: 0;
  mix-blend-mode: screen;
}

@media (prefers-color-scheme: light) {
  .cursor-glow {
    background: radial-gradient(
      circle,
      rgba(184, 146, 31, 0.22) 0%,
      rgba(184, 146, 31, 0.10) 30%,
      rgba(139, 90, 43, 0.05) 55%,
      transparent 70%
    );
    mix-blend-mode: multiply;
  }
}

/* Hide on touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow {
    display: none !important;
  }
}

/* ========== CONTACT FORM ========== */
.contact-form-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: background 0.4s, border-color 0.4s;
}

.contact-form-wrapper h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 14px 20px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 22px;
}

.form-status.success {
  color: #25d366;
}

.form-status.error {
  color: #e74c3c;
}


/* force show content if animation class delayed */
.service-card.visible,
.gallery-item.visible,
.stat.visible,
.about-visual.visible,
.contact-item.visible,
.map-container.visible {
  opacity: 1 !important;
}
