/* LABICI — style.css */

/* ========================
   Custom Properties
   ======================== */
:root {
  --forest:      #2D5016;
  --green:       #5BA52D;
  --light-green: #A8D26F;
  --beige:       #D4C4A8;
  --sand:        #E8DCC8;
  --cream:       #F5F1E8;
  --dark:        #1A1A1A;
  --white:       #FFFFFF;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius:    1rem;
  --radius-lg: 1.5rem;
  --section:   clamp(4rem, 10vw, 7rem);
  --max-w:     1280px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur: 0.45s;
  --shadow-card: 0 8px 48px rgba(45, 80, 22, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ========================
   Typography
   ======================== */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.72);
}

.label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.label--light { color: var(--light-green); }

/* ========================
   Layout
   ======================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2.5rem; }
}

/* ========================
   Buttons
   ======================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.25rem;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 100px;
  transition: background var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn-primary:hover {
  background: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(45, 80, 22, 0.28);
}

.btn-primary--light {
  background: var(--cream);
  color: var(--forest);
}

.btn-primary--light:hover {
  background: var(--white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2.25rem;
  border: 2px solid var(--forest);
  color: var(--forest);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 100px;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn-outline:hover {
  background: var(--forest);
  color: var(--cream);
  transform: translateY(-3px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2.25rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 100px;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* ========================
   Header
   ======================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.75rem 0;
  transition: background var(--dur) var(--ease),
              padding var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.site-header.scrolled {
  background: rgba(245, 241, 232, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 0;
  box-shadow: 0 2px 24px rgba(45, 80, 22, 0.07);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .header-inner { padding: 0 2.5rem; }
}

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cream);
  transition: color var(--dur) var(--ease);
}

.site-header.scrolled .logo {
  color: var(--forest);
}

.logo--footer {
  font-size: 1.75rem;
  color: var(--cream);
}

.nav {
  display: none;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .nav { display: flex; }
}

.nav a {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--dur) var(--ease);
}

.nav a:hover { color: var(--light-green); }

.site-header.scrolled .nav a {
  color: var(--forest);
}

.site-header.scrolled .nav a:hover {
  color: var(--green);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 101;
  position: relative;
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
  transform-origin: center;
}

.site-header.scrolled .nav-toggle span {
  background: var(--forest);
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--forest);
}
.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--forest);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 1.25rem;
  color: rgba(245, 241, 232, 0.45);
  transition: color var(--dur) var(--ease);
}

.mobile-nav-close:hover { color: var(--cream); }

.mobile-nav a {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream);
  transition: color var(--dur) var(--ease);
}

.mobile-nav a:hover { color: var(--light-green); }

/* ========================
   Hero
   ======================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

@media (max-width: 767px) {
  .hero { height: 90svh; min-height: 560px; }
}

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

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.hero-mobile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 20, 20, 0.78) 0%,
    rgba(20, 20, 20, 0.18) 55%,
    rgba(20, 20, 20, 0.04) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
}

@media (min-width: 768px) {
  .hero-content { padding: 0 2.5rem 5.5rem; }
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light-green);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

.hero-title {
  color: var(--cream);
  margin-bottom: 2.25rem;
  opacity: 0;
  transform: translateY(32px);
  animation: fadeUp 0.9s var(--ease) 0.65s forwards;
}

.hero-content .btn-primary {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.95s forwards;
}

.hero-scroll {
  position: absolute;
  right: 2.5rem;
  bottom: 3rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}

.hero-scroll span {
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollPulse 2.2s ease infinite;
}

@media (max-width: 767px) {
  .hero-scroll { display: none; }
}

/* ========================
   Brand Intro
   ======================== */
.brand-intro {
  padding: var(--section) 0;
  background: var(--cream);
}

.brand-intro-inner {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .brand-intro-inner {
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
  }
}

.brand-intro-text h2 {
  color: var(--forest);
  margin-bottom: 1.5rem;
}

.brand-intro-text p + p {
  margin-top: 0.75rem;
}

.brand-intro-text .btn-outline {
  margin-top: 2rem;
}

.brand-intro-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-badge {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--forest) 0%, var(--green) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  box-shadow: 0 24px 64px rgba(45, 80, 22, 0.28);
  animation: floatBadge 4s ease-in-out infinite;
}

@media (min-width: 768px) {
  .visual-badge { width: 280px; height: 280px; }
}

.visual-badge span {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .visual-badge span { font-size: 1.75rem; }
}

/* ========================
   Products
   ======================== */
.products {
  padding: var(--section) 0;
  background: var(--sand);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: var(--forest);
  margin-top: 0.25rem;
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 64px rgba(45, 80, 22, 0.18);
}

.product-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.07);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.product-category {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.product-info h3 {
  color: var(--forest);
}

.product-price {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--forest);
  margin-top: 0.1rem;
}

.product-info p {
  font-size: 0.9rem;
  flex: 1;
  margin-top: 0.25rem;
}

.product-link {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
  transition: color var(--dur) var(--ease),
              letter-spacing var(--dur) var(--ease);
}

.product-card:hover .product-link {
  color: var(--green);
  letter-spacing: 0.08em;
}

/* ========================
   Lifestyle
   ======================== */
.lifestyle {
  overflow: hidden;
}

.lifestyle-inner {
  display: grid;
  min-height: 560px;
}

@media (min-width: 768px) {
  .lifestyle-inner {
    grid-template-columns: 1fr 1fr;
    min-height: 680px;
  }
}

.lifestyle-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--beige);
}

@media (min-width: 768px) {
  .lifestyle-media { min-height: unset; }
}

.lifestyle-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

@media (min-width: 768px) {
  .lifestyle-video { display: block; }
}

.lifestyle-mobile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .lifestyle-mobile-img { display: none; }
}

.lifestyle-content {
  background: var(--forest);
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .lifestyle-content { padding: 6rem 5rem; }
}

.lifestyle-content h2 {
  color: var(--cream);
}

.lifestyle-content p {
  color: rgba(245, 241, 232, 0.75);
}

/* ========================
   Story
   ======================== */
.story {
  padding: var(--section) 0;
  background: var(--cream);
}

.story-inner {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .story-inner {
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
  }
}

.story-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--beige);
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content h2 {
  color: var(--forest);
  margin-bottom: 1.5rem;
}

.story-content p + p {
  margin-top: 0.75rem;
}

.story-tagline {
  font-family: var(--font-head);
  font-size: 1rem !important;
  font-weight: 600;
  color: var(--green) !important;
  letter-spacing: 0.08em;
  margin-top: 1.25rem !important;
}

.story-content .btn-outline {
  margin-top: 2rem;
}

/* ========================
   CTA
   ======================== */
.cta {
  padding: var(--section) 0;
  background: linear-gradient(140deg, var(--forest) 0%, #3e7020 100%);
}

.cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-inner h2 {
  color: var(--cream);
  margin-bottom: 1rem;
}

.cta-inner > p {
  color: rgba(245, 241, 232, 0.75);
  margin-bottom: 2.75rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================
   Footer
   ======================== */
.footer {
  background: var(--dark);
  padding: 4.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-brand > p {
  color: rgba(245, 241, 232, 0.42);
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.35);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(245, 241, 232, 0.65);
  transition: color var(--dur) var(--ease);
}

.footer-col a:hover { color: var(--light-green); }

.footer-bottom {
  padding-top: 1.75rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(245, 241, 232, 0.28);
}

/* ========================
   Scroll Reveal
   ======================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s ease,
              transform 0.85s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ========================
   Keyframes
   ======================== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ========================
   Reduced Motion
   ======================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-eyebrow,
  .hero-title,
  .hero-content .btn-primary,
  .hero-scroll {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
