/* ==========================================================================
   PRIME ESTILOS — DESIGN MARCENARIA PREMIUM (REMASTERED)
   ========================================================================== */

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

:root {
  /* Premium Colors */
  --clr-white:       #FFFFFF;
  --clr-offwhite:    #F8F7F4;
  --clr-beige:       #EFECE6;
  --clr-accent:      #9F7B4F; /* Bronze/Gold */
  --clr-accent-dark: #7A5C37;
  --clr-dark:        #1A1A1A;
  --clr-dark-card:   #252525;
  
  --clr-text:        #2B2B2B;
  --clr-text-muted:  #6D6D6D;
  --clr-text-light:  #E0E0E0;

  /* Typography */
  --font-heading:    'Plus Jakarta Sans', sans-serif;
  --font-body:       'Inter', sans-serif;

  /* Spacing */
  --space-sm:        16px;
  --space-md:        32px;
  --space-lg:        64px;
  --space-xl:        120px;

  /* Shapes & Curves */
  --radius-sm:       12px;
  --radius-md:       24px;
  --radius-lg:       60px; /* Large curved corners inspired by references */
  --radius-full:     9999px;

  /* Animation */
  --ease:            cubic-bezier(0.16, 1, 0.3, 1);
  --transition:      0.5s var(--ease);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background-color: var(--clr-offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Typography ──────────────────────────────────────────────────────── */
.heading-display {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--clr-dark);
}

.heading-section {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--clr-dark);
}

.heading-card {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--clr-dark);
}

.text-lead {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--clr-text-muted);
  max-width: 500px;
}

/* ── Utilities ───────────────────────────────────────────────────────── */
.text-accent { color: var(--clr-accent); }
.text-center { text-align: center; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  gap: 12px;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--clr-accent);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--clr-accent);
  color: var(--clr-white);
}

.btn-accent:hover {
  background-color: var(--clr-dark);
}

/* ── Header ──────────────────────────────────────────────────────────── */
.header-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 32px 0;
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 32px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.1);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-white);
}

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

/* ── Hero Fullscreen Section ─────────────────────────────────────────── */
.hero-fullscreen {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.main-content {
  position: relative;
  z-index: 10;
  background-color: var(--clr-offwhite);
  padding-top: var(--space-xl);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.hero-fullscreen:hover .hero-bg img {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 650px;
  z-index: 2;
}

.hero-fullscreen .heading-display {
  color: var(--clr-white);
}

.hero-fullscreen .text-lead {
  color: rgba(255,255,255,0.85);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--clr-white);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background: var(--clr-accent);
  border-radius: 50%;
  display: inline-block;
}

/* ── Stats / Experience Section ──────────────────────────────────────── */
.stats-section {
  padding: var(--space-xl) 0;
  background-color: var(--clr-white);
  border-radius: var(--radius-lg);
  margin: 0 var(--space-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: center;
}

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

.stat-box {
  background: var(--clr-offwhite);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--transition);
}

.stat-box:hover {
  transform: translateY(-8px);
  background: var(--clr-beige);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--clr-dark);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
}

/* ── Explore Categories ──────────────────────────────────────────────── */
.explore-section {
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  margin-top: var(--space-lg);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  animation: scroll-carousel 25s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-carousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - (var(--space-md) / 2))); }
}

.explore-card {
  position: relative;
  width: 420px; /* Fixed width for cards */
  height: 500px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.explore-card img {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
}

.explore-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--clr-white);
}

.explore-card:hover img {
  transform: scale(1.05);
}

.explore-card h3 {
  color: var(--clr-white);
  margin-bottom: 8px;
}

.explore-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease);
}

.explore-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* ── Dark Premium Section ────────────────────────────────────────────── */
.dark-section {
  background-color: var(--clr-dark);
  color: var(--clr-white);
  padding: var(--space-xl) 0;
  margin: var(--space-lg) var(--space-sm);
  border-radius: var(--radius-lg);
}

.dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.dark-section .heading-section,
.dark-section .heading-card {
  color: var(--clr-white);
}

.dark-section .text-lead {
  color: var(--clr-text-light);
}

.dark-image-wrapper {
  height: 600px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dark-image-wrapper img {
  opacity: 0.9;
}

/* ── Newsletter / CTA ────────────────────────────────────────────────── */
.cta-section {
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-box {
  background-color: var(--clr-white);
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  padding: var(--space-xl) 0 40px 0;
  background-color: var(--clr-offwhite);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-dark);
  margin-bottom: 16px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--clr-dark);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a, .footer-links p {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--clr-beige);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid, .stats-grid, .dark-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image-wrapper, .dark-image-wrapper { height: 500px; }
  .explore-card { width: 350px; height: 450px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  :root { --space-xl: 80px; }
  .heading-display { font-size: 2.5rem; }
  .hero-image-wrapper, .dark-image-wrapper { height: 400px; border-radius: var(--radius-md); }
  .explore-card { width: 280px; height: 400px; }
  .stats-boxes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── Motion & Animations ────────────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
