/* 
===============================================
ALTO MOBILYA - PREMIUM DESIGN SYSTEM
===============================================
*/

:root {
  /* Color Palette */
  --bg-primary: #F9F9F8; /* Off-white */
  --bg-secondary: #F2F1ED; /* Cream reflection */
  --bg-tertiary: #EAE9E4; /* Pearl white */
  
  --text-primary: #1A1A1A; /* Very dark grey, softer than pure black */
  --text-secondary: #4A4A4A;
  
  --gold-primary: #D4AF37; /* Elegant Gold */
  --gold-secondary: #AA8222;
  --gold-light: #F3E5AB;

  /* Typography */
  --font-heading: 'Cinzel', serif; /* Or Playfair Display */
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 10vh 5vw;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  /* Smooth scrolling is handled by Lenis, so no scroll-behavior: smooth here */
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
}

.text-gold {
  color: var(--gold-primary);
}

.text-huge {
  font-size: clamp(4rem, 10vw, 12rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Layout Utilities */
section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  padding: var(--section-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* -------------------------------------------
   COMPONENTS
------------------------------------------- */

/* Hamburger Menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at 100% 0%); /* Initial closed state */
}

.menu-links {
  list-style: none;
  text-align: center;
}

.menu-links li {
  margin: 2rem 0;
  overflow: hidden;
}

.menu-links a {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 5rem);
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
  transform: translateY(100%); /* Initial state for stagger */
}

.menu-links a:hover {
  color: var(--gold-primary);
}

.menu-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  z-index: 101;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

/* Sections */

/* 1. Hero */
.hero {
  background-color: var(--bg-secondary);
  align-items: center;
  text-align: center;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1); /* For parallax */
  filter: brightness(0.7); /* Darken for text readability if needed */
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--bg-primary); /* Assuming dark image background */
}

.hero-content.light {
  color: var(--text-primary);
}

/* 2. Manifesto */
.manifesto {
  background-color: var(--bg-primary);
}
.manifesto-text {
  font-size: clamp(1.5rem, 3vw, 3rem);
  max-width: 1200px;
  line-height: 1.4;
  margin: 0 auto;
}

/* 3. Horizontal Gallery */
.horizontal-scroll-container {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
}

.gallery-wrapper {
  display: flex;
  height: 70vh;
  padding: 0 10vw;
  gap: 5vw;
}

.gallery-item {
  position: relative;
  width: 60vw;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 4. Services */
.services {
  background-color: var(--bg-primary);
  justify-content: center;
}
.services h2 {
  font-size: clamp(3rem, 6vw, 8rem);
  margin-bottom: 2rem;
}

/* 5. Reveal / Before-After */
.reveal-section {
  background-color: var(--bg-secondary);
}
.reveal-container {
  position: relative;
  width: 80vw;
  height: 70vh;
  margin: 0 auto;
  overflow: hidden;
}
.reveal-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reveal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  transform-origin: right; /* Reveal from left to right */
}

/* 6. Material Grid */
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 5vw;
}
.material-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
}
.material-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.material-item:hover img {
  transform: scale(1.05);
}

/* 7. Who Are We */
.who-are-we {
  background-color: var(--bg-tertiary);
  text-align: center;
}

/* 8. Marquee */
.marquee-section {
  min-height: 50vh;
  display: flex;
  align-items: center;
  background-color: var(--gold-primary);
  color: var(--bg-primary);
}
.marquee-content {
  display: flex;
  white-space: nowrap;
}
.marquee-text {
  font-size: clamp(4rem, 8vw, 10rem);
  font-family: var(--font-heading);
  padding: 0 2rem;
  text-transform: uppercase;
}

/* 9. CTA */
.cta-section {
  background-color: var(--bg-primary);
  text-align: center;
}
.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1.5rem 4rem;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.cta-button:hover {
  background-color: var(--gold-primary);
  color: var(--text-primary);
}

/* 10. Footer */
.main-footer {
  background-color: var(--text-primary);
  color: var(--bg-secondary);
  padding: 10vh 5vw 5vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4rem;
}
.footer-brand {
  max-width: 300px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 1rem;
}
.footer-slogan {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.6;
}

.footer-links-group h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-links-group a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-family: var(--font-body);
  transition: color 0.3s, transform 0.3s;
}
.footer-links-group a:hover {
  color: var(--gold-primary);
  transform: translateX(5px);
}
.footer-bottom {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom .powered-by {
  font-size: 0.85rem;
}
.footer-bottom .powered-by a {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}
.footer-bottom .powered-by a:hover {
  opacity: 0.8;
}

/* Utilities for GSAP */
.gsap-reveal {
  opacity: 0;
  transform: translateY(50px);
}

/* Desktop Header */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99;
}

.main-header .logo a {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold-primary);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.desktop-nav a, .header-right a {
  text-decoration: none;
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.desktop-nav a:hover, .header-right a:hover {
  color: var(--gold-primary);
}

.header-right {
  display: flex;
  gap: 2.5rem;
}

@media (min-width: 1025px) {
  .menu-toggle {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .desktop-nav, .header-right {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

/* ==========================================================================
   Floating Badges (Glassmorphism & Fixed Animation)
   ========================================================================== */
.floating-badge {
    position: fixed;
    bottom: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    border-radius: 50px;
    padding: 12px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    height: 48px;
    box-sizing: border-box;
    /* Glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-badge svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: currentColor;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.badge-phone svg {
    fill: none;
}
.badge-whatsapp svg {
    fill: currentColor;
    stroke: none;
}

.badge-text {
    margin-left: 10px;
    margin-right: 12px;
    white-space: nowrap;
    opacity: 1;
    font-size: 1rem;
    /* Text Glow */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.badge-phone {
    left: 30px;
    width: 155px; /* Fixed width for perfect collapse */
    background: rgba(184, 155, 88, 0.6); /* var(--color-gold) but transparent */
}
.badge-phone:hover {
    background: rgba(184, 155, 88, 0.85);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.badge-whatsapp {
    right: 30px;
    width: 150px; /* Fixed width for perfect collapse */
    background: rgba(37, 211, 102, 0.6);
}
.badge-whatsapp:hover {
    background: rgba(37, 211, 102, 0.85);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* Scrolled state: Round, icon only */
body.scrolled .floating-badge {
    width: 48px;
    border-radius: 50%;
}

body.scrolled .badge-text {
    opacity: 0;
}
