/* ════════════════════════════════════════════════════════════
   MARCO SCARPA — Clean Minimalist Premium Website
════════════════════════════════════════════════════════════ */

:root {
  --bg-color: #fbfaf8;
  --bg-alt: #f1eee9;
  --bg-dark: #1a1a1a;
  --text-dark: #111111;
  --text-muted: #666666;
  --text-light: #ffffff;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', sans-serif;
  
  --nav-height: 80px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

body.loading {
  overflow: hidden;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 120px 0;
}

.bg-light { background-color: var(--bg-alt); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

.section-title em {
  font-style: italic;
  color: var(--text-muted);
}

.bg-dark .section-title em {
  color: #a0a0a0;
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.body-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--text-dark);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  gap: 12px;
  font-weight: 500;
}

.btn-whatsapp:hover {
  background-color: #1fad53;
  transform: translateY(-2px);
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background-color: rgba(251, 250, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.4s var(--ease);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text-dark);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--text-dark);
}

.nav-btn {
  text-decoration: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  border-bottom: 1px solid var(--text-dark);
  padding-bottom: 4px;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  width: 30px;
  height: 1px;
  background-color: var(--text-dark);
  transition: 0.3s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-links {
  list-style: none;
  text-align: center;
}

.mobile-links li {
  margin-bottom: 2rem;
}

.m-link {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--text-dark);
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-links, .nav-btn { display: none; }
  .menu-toggle { display: flex; }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 500px;
}

.hero-eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.hero-title {
  font-size: clamp(4rem, 8vw, 7rem);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--text-muted);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-visual {
  width: 100%;
  position: relative;
  min-height: 50vh;
}

.image-wrapper {
  width: 100%;
  height: 100%;
}

.parallax-img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    height: 50vh;
    order: -1;
  }
}

/* ── MARQUEE ─────────────────────────────────────────────── */
.marquee-section {
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  background-color: var(--bg-alt);
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
}

.marquee-content {
  display: inline-block;
  animation: scroll 20s linear infinite;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dark);
}

.marquee-content span {
  margin: 0 20px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── MANIFESTO ───────────────────────────────────────────── */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--text-dark);
  line-height: 1;
}

.stat-symbol {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-dark);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 10px;
}

@media (max-width: 900px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── SERVICES ────────────────────────────────────────────── */
.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.service-card {
  background-color: var(--bg-color);
  padding: 60px 40px;
  transition: transform 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-10px);
}

.card-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

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

@media (max-width: 900px) {
  .service-cards { grid-template-columns: 1fr; }
}

/* ── FABRICS ─────────────────────────────────────────────── */
.fabrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.fabric-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.fabric-color {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
}

.fabric-item:hover .fabric-color {
  transform: scale(1.05);
}

.fabric-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: var(--text-light);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--ease);
}

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

.fabric-info h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.fabric-info p {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .fabrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .fabrics-grid { grid-template-columns: 1fr; }
  .fabric-info { opacity: 1; transform: translateY(0); }
}

/* ── BAGS ────────────────────────────────────────────────── */
.bags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.bags-visual {
  height: 600px;
}

.bag-abstract {
  width: 100%;
  height: 100%;
  background-color: #111;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.leather-swatch {
  position: absolute;
  inset: 20px;
  border: 1px dashed #444;
}

.bag-abstract span {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: #888;
  z-index: 2;
}

.feature-list {
  list-style: none;
  margin-top: 30px;
}

.feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
}

.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  margin-right: 16px;
}

@media (max-width: 900px) {
  .bags-grid { grid-template-columns: 1fr; }
  .bags-visual { order: -1; height: 400px; }
}

/* ── CTA ─────────────────────────────────────────────────── */
.cta-container {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta .section-title {
  font-size: clamp(3rem, 6vw, 5rem);
}

.cta .btn {
  margin-top: 20px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background-color: var(--bg-alt);
  padding: 60px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
}

.footer-nav {
  display: flex;
  gap: 30px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
.reveal, .reveal-right {
  opacity: 0;
  transition: all 1s var(--ease);
}

.reveal {
  transform: translateY(40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.active, .reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s var(--ease) 1.6s forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeRight 1.2s var(--ease) 1.8s forwards; /* Slight delay for image */
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeRight {
  to { opacity: 1; transform: translateX(0); }
}

/* LOADER */
.loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease);
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.3em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.loader-bar-wrap {
  width: 200px;
  height: 1px;
  background-color: rgba(0,0,0,0.1);
  margin: 0 auto;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background-color: var(--text-dark);
  transition: width 1.5s var(--ease);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Custom Cursor (Optional minimal version) */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--text-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}

@media (max-width: 1024px) {
  .cursor, .cursor-follower { display: none; }
}

/* Season Tabs */
.season-tabs button {
  background: transparent;
  border: 1px solid var(--border-color, #e0e0e0);
  padding: 10px 20px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
}

.season-tabs button.active, .season-tabs button:hover {
  background: var(--text-dark);
  color: var(--text-light);
  border-color: var(--text-dark);
}

/* ── COMPREHENSIVE MOBILE OPTIMIZATIONS ──────────────────── */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero {
    padding-top: calc(var(--nav-height) + 20px);
    padding-bottom: 40px;
    min-height: auto;
  }
  
  .hero-container {
    gap: 30px;
  }
  
  .hero-visual {
    min-height: auto;
    height: auto;
  }
  
  .parallax-img {
    min-height: auto;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  
  .hero-title {
    font-size: clamp(3rem, 10vw, 4rem);
    margin-bottom: 16px;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .section-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 1.5rem;
  }
  
  .manifesto-grid {
    gap: 40px;
  }
  
  .stats {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
  }
  
  .service-card {
    padding: 40px 30px;
  }
  
  .btn {
    width: 100%;
    padding: 16px 20px;
  }
  
  .cta-container {
    padding: 0 15px;
  }
  
  .bags-visual {
    height: 350px;
  }
}

