/* ============================================
   ETRE - ARCHITECTURE & INTERIOR DESIGN
   Style: Warm beige/gold (#F5F0EB + #B8956A)
   Animations: 21st.dev inspired
   ============================================ */

:root {
  --bg: #F5F0EB;
  --bg-dark: #EDE6DD;
  --gold: #B8956A;
  --gold-light: #C9A87C;
  --gold-dark: #9A7B56;
  --text: #2C2420;
  --text-light: #6B5E54;
  --white: #FFFFFF;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ============================================
   ANIMATIONS - Reveal system
   ============================================ */

.reveal-up,
.reveal-word,
.reveal-letter {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 0.8s var(--ease-out),
              transform 0.8s var(--ease-out),
              filter 0.8s var(--ease-out);
}

.reveal-up.visible,
.reveal-word.visible,
.reveal-letter.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}

.nav.scrolled {
  background: rgba(245, 240, 235, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 40px;
  box-shadow: 0 1px 0 rgba(184, 149, 106, 0.15);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s;
}

.nav.scrolled .nav-logo-img {
  filter: none;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
  position: relative;
}

.nav.scrolled .nav-links a {
  color: var(--text-light);
}

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

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

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

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

.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  transition: background 0.3s, transform 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

/* WhatsApp button in nav - mobile/tablet only */
.nav-wa-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-right: 12px;
}

.nav-wa-mobile:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s, background 0.4s;
}

.nav.scrolled .nav-toggle span { background: var(--text); }

.nav-toggle span:first-child { margin-bottom: 8px; }

.nav-toggle.active span:first-child {
  transform: translateY(4.75px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-4.75px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(245, 240, 235, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--gold); }

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease-in-out, transform 4s ease-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 36, 32, 0.4) 0%,
    rgba(44, 36, 32, 0.6) 50%,
    rgba(44, 36, 32, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-tag {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 28px;
  font-weight: 500;
  background: rgba(184, 149, 106, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-block;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid rgba(184, 149, 106, 0.35);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-title span {
  display: block;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 540px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.8;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

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

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

/* ============================================
   BUTTON
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(184, 149, 106, 0.3);
}

.btn-large {
  padding: 20px 40px;
  font-size: 16px;
}

/* ============================================
   STATS
   ============================================ */

.stats {
  padding: 80px 0;
  border-bottom: 1px solid rgba(184, 149, 106, 0.15);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--gold);
  font-weight: 300;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(184, 149, 106, 0.25);
}

/* ============================================
   SECTION HEADINGS
   ============================================ */

.section-tag {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 48px;
}

/* ============================================
   PROJECTS GALLERY - Accordion hover
   ============================================ */

.projects {
  padding: 100px 0;
}

.gallery {
  display: flex;
  gap: 4px;
  height: 500px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 48px auto 0;
}

.gallery-item {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
  transition: flex 0.6s var(--ease-out);
}

.gallery-item:hover {
  flex: 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
  background: linear-gradient(to top, rgba(44, 36, 32, 0.85), transparent);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}

.gallery-item:hover .gallery-info {
  opacity: 1;
  transform: translateY(0);
}

.gallery-info h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 4px;
}

.gallery-info p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  padding: 100px 0;
  background: var(--bg-dark);
}

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

.service-card {
  padding: 40px 32px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid rgba(184, 149, 106, 0.1);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(44, 36, 32, 0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 149, 106, 0.1);
  border-radius: 12px;
  color: var(--gold);
  margin-bottom: 24px;
  transition: background 0.3s;
}

.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  padding: 100px 0;
}

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

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184, 149, 106, 0.2);
  border-radius: 12px;
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  transition: transform 0.8s var(--ease-out);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-subtitle {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}

.about-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.about-tools span {
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(184, 149, 106, 0.3);
  border-radius: 100px;
  color: var(--gold-dark);
  transition: all 0.3s;
}

.about-tools span:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ============================================
   PROCESS
   ============================================ */

.process {
  padding: 100px 0;
  background: var(--bg-dark);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-steps-3 {
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

.process-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 56px;
}

.process-connector::after {
  content: '';
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, rgba(184, 149, 106, 0.15), var(--gold), rgba(184, 149, 106, 0.15));
}

.process-step {
  text-align: center;
  padding: 40px 28px;
  position: relative;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid rgba(184, 149, 106, 0.15);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(44, 36, 32, 0.08);
  border-color: var(--gold);
}

.step-number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.4s;
}

.process-step:hover .step-number {
  opacity: 1;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}

.process-step p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   CTA
   ============================================ */

.cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(184, 149, 106, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(184, 149, 106, 0.15);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-right {
  display: flex;
  gap: 32px;
}

.footer-right a {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 16, 14, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.92);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.3s;
  z-index: 201;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 56px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  z-index: 201;
  padding: 16px;
  line-height: 1;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { height: 400px; }
}

@media (max-width: 1024px) {
  .nav-wa-mobile { display: flex; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; }
  .nav { padding: 16px 24px; }

  .hero-title { letter-spacing: -0.5px; }

  .stats-grid {
    flex-direction: column;
    gap: 32px;
  }

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

  .gallery {
    flex-direction: column;
    height: auto;
    gap: 8px;
  }

  .gallery-item {
    height: 250px;
    flex: unset !important;
  }

  .gallery-info {
    opacity: 1;
    transform: translateY(0);
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image img {
    aspect-ratio: 4/3;
  }

  .process-steps { grid-template-columns: 1fr; }
  .process-steps-3 { grid-template-columns: 1fr; gap: 0; }
  .process-connector { padding: 0; }
  .process-connector::after { width: 2px; height: 32px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-right {
    flex-direction: column;
    gap: 12px;
  }
}
