/* ==========================================================================
   Fraga Lumiéra - Premium Visual Identity Design System
   Vanilla CSS Master Stylesheet
   ========================================================================== */

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

/* Design Tokens & Variables */
:root {
  /* Colors */
  --bg-dark: #050505;          /* Obsidian Black */
  --bg-card: rgba(15, 15, 17, 0.65); /* Glass card background */
  --border-gold: rgba(197, 160, 89, 0.2);
  --border-gold-hover: rgba(197, 160, 89, 0.5);
  --text-primary: #f5f5f7;
  --text-muted: #9e9e9f;
  
  /* Gold Gradients */
  --gold-primary: #c5a059;
  --gold-metallic: linear-gradient(135deg, #a67c33 0%, #f3e7c4 50%, #a67c33 100%);
  --gold-glow: 0 0 20px rgba(197, 160, 89, 0.25);
  
  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-label: 'Outfit', sans-serif;
  
  /* Spacing Scale */
  --space-unit: 8px;
  --space-xs: 4px;
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  
  /* Miscellaneous */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1200px;
}

/* Base resets & scroll behavior */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px; /* Prevent fixed header from overlapping anchor content */
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(197, 160, 89, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(197, 160, 89, 0.02) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Typography styles */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p {
  line-height: 1.6;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Premium Utilities */
.text-gold {
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  width: 150px;
  margin: var(--space-md) auto;
}

/* Layout Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(5, 5, 5, 0.9);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
}

.logo-swirl-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

nav a {
  font-family: var(--font-label);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
  opacity: 0.8;
  position: relative;
  padding: var(--space-xs) 0;
}

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

nav a:hover {
  opacity: 1;
  color: var(--gold-primary);
}

nav a:hover::after {
  width: 100%;
}

.nav-btn {
  font-family: var(--font-label);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--gold-primary);
  background: transparent;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  background: var(--gold-metallic);
  color: var(--bg-dark);
  box-shadow: var(--gold-glow);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  background-image: url('assets/products/hero_bg.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.65) 0%, rgba(5, 5, 5, 0.85) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeIn 1.5s ease-out;
}

.hero-tagline {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.9rem;
  color: var(--gold-primary);
  margin-bottom: var(--space-md);
  display: block;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: var(--space-md);
  line-height: 1.1;
  font-weight: 300;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.btn-primary {
  font-family: var(--font-label);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 16px 32px;
  background: var(--gold-metallic);
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-glow);
}

.btn-secondary {
  font-family: var(--font-label);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 16px 32px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* About / History Section (Nossa Essência) */
.about {
  padding: var(--space-xl) 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: var(--space-md);
}

.about-text h3 {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--gold-primary);
  margin-bottom: var(--space-sm);
}

.about-text p {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  padding: var(--space-sm);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  filter: grayscale(20%);
  transition: var(--transition-smooth);
}

.about-image:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* Catalog Filter Section */
.catalog-section {
  padding: var(--space-xl) 0;
  background: rgba(10, 10, 12, 0.3);
  position: relative;
}

.catalog-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.catalog-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.tabs-container {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: var(--space-md);
}

.tab-btn {
  font-family: var(--font-label);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  position: relative;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--gold-primary);
  font-weight: 500;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-metallic);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  opacity: 1;
  transition: var(--transition-smooth);
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 80%, rgba(197,160,89,0.05) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(197, 160, 89, 0.1);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 120%; /* Consistent aspect ratio */
  overflow: hidden;
  background: #000;
}

.product-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-container img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(5, 5, 5, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.product-info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-id {
  font-family: var(--font-label);
  font-size: 0.75rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.product-title {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-pricing {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xs);
}

.price-label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.price-value-cash {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.price-value-install {
  font-size: 1rem;
  color: var(--gold-primary);
  font-weight: 500;
}

.btn-catalog-action {
  width: 100%;
  font-family: var(--font-label);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 0;
  border: 1px solid var(--gold-primary);
  background: transparent;
  color: var(--gold-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.btn-catalog-action:hover {
  background: var(--gold-metallic);
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: var(--gold-glow);
}

.btn-catalog-action svg {
  fill: currentColor;
}

/* Original Catalogs (Lookbook Flipbook/Slider) */
.lookbook-container {
  display: none;
  opacity: 0;
  transition: var(--transition-smooth);
}

.lookbook-container.active {
  display: block;
  opacity: 1;
}

.lookbook-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.lookbook-tab-btn {
  font-family: var(--font-label);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.lookbook-tab-btn.active, .lookbook-tab-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.lookbook-slider-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.8);
}

.lookbook-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.lookbook-slide {
  min-width: 100%;
  width: 100%;
  position: relative;
}

.lookbook-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.lookbook-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-md);
  pointer-events: none;
}

.lookbook-arrow {
  background: rgba(5,5,5,0.85);
  border: 1px solid var(--border-gold);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition-smooth);
}

.lookbook-arrow:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: var(--gold-glow);
}

.lookbook-pagination {
  text-align: center;
  margin-top: var(--space-md);
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Purchase terms / conditions section */
.conditions-section {
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.condition-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: var(--transition-smooth);
}

.condition-card:hover {
  border-color: var(--border-gold-hover);
  transform: translateY(-4px);
}

.condition-icon {
  margin-bottom: var(--space-sm);
  color: var(--gold-primary);
}

.condition-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
  color: #fff;
}

.condition-card p {
  font-size: 0.9rem;
}

/* Contact / Location Section */
.contact {
  padding: var(--space-xl) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5,5,5,0.95) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info-wrapper h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: var(--space-md);
}

.contact-info-wrapper p.desc {
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
}

.contact-details {
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.contact-item-icon {
  color: var(--gold-primary);
  margin-top: 4px;
}

.contact-item h3 {
  font-family: var(--font-label);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-primary);
  margin-bottom: var(--space-xs);
}

.contact-item p {
  font-size: 1rem;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  height: 100%;
  min-height: 350px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
}

/* Footer styling */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #030303;
  padding: var(--space-lg) 0 var(--space-md) 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  color: #fff;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-social-link:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

.footer-copyright {
  font-family: var(--font-label);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .map-container {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }
  
  .nav-wrapper {
    height: 70px;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl) 0;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
  }
  
  nav a {
    font-size: 1.1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
  }
  
  .tabs-container {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }
  
  .tab-btn {
    font-size: 0.8rem;
    padding: var(--space-xs) var(--space-sm);
  }
}

/* Mobile Optimization adjustments for small screens */
@media (max-width: 576px) {
  .container {
    padding: 0 var(--space-sm); /* 12px instead of 24px for better screen utilization */
  }
  
  .products-grid {
    grid-template-columns: 1fr; /* Force single column to prevent card overflow */
    gap: var(--space-md);
  }
  
  .catalog-download-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    padding: 0 var(--space-sm);
  }
  
  .catalog-download-wrapper a {
    width: 100%;
    justify-content: center;
    padding: 14px 20px; /* Taller touch targets */
  }
}
