/* ═══════════════════════════════════════════════════
   OXYGENIA.ES — Global Styles
   Organic luxury meets forestry professionalism
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Sora:wght@300;400;500;600;700&display=swap');

:root {
    --forest: #1B3726;
    --forest-mid: #2A5438;
    --forest-light: #3A7A4A;
    --sage: #6B8F71;
    --sage-light: #A8C5AD;
    --sage-pale: #D4E5D7;
    --gold: #C09E5A;
    --gold-light: #DCC48A;
    --gold-pale: #F0E6CC;
    --cream: #FAF8F3;
    --cream-dark: #F0ECE3;
    --white: #FFFFFF;
    --charcoal: #1A1A1A;
    --text: #2D2D2D;
    --text-mid: #5A5A5A;
    --text-light: #8A8A8A;
    --border: rgba(0,0,0,0.06);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-w: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Sora', sans-serif; color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; font-size: 16px; }
h1, h2, h3, h4 { font-family: 'Instrument Serif', serif; color: var(--forest); font-weight: 400; line-height: 1.15; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── CONTAINER ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.8rem; border-radius: 50px; font-family: 'Sora', sans-serif; font-size: 0.9rem; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; letter-spacing: -0.01em; }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,55,38,0.25); }
.btn-secondary { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-secondary:hover { background: var(--forest); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #b08d48; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(192,158,90,0.3); }
.btn-ghost { background: rgba(255,255,255,0.1); color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }

/* ── NAVIGATION ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); transition: var(--transition); }
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0.9rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Instrument Serif', serif; font-size: 1.7rem; color: var(--forest); letter-spacing: -0.03em; }
.logo span { color: var(--gold); }
.nav-center { display: flex; gap: 0.3rem; background: var(--cream); border-radius: 50px; padding: 0.25rem; }
.nav-tab { padding: 0.5rem 1.2rem; border-radius: 50px; font-size: 0.82rem; font-weight: 600; color: var(--text-mid); transition: var(--transition); cursor: pointer; text-decoration: none; }
.nav-tab:hover { color: var(--forest); }
.nav-tab.active { background: var(--white); color: var(--forest); box-shadow: var(--shadow-sm); }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: 0.85rem; font-weight: 500; color: var(--text-mid); transition: color 0.2s; }
.nav-link:hover { color: var(--forest); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--forest); margin: 5px 0; transition: 0.3s; border-radius: 2px; }

/* ── SECTIONS ── */
section { padding: 7rem 2rem; }
.section-sm { padding: 4rem 2rem; }
.bg-cream { background: var(--cream); }
.bg-forest { background: var(--forest); color: var(--white); }
.bg-forest h2, .bg-forest h3 { color: var(--white); }

.tag { display: inline-block; font-family: 'Sora', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.tag-gold { color: var(--gold); }
.tag-light { color: var(--gold-light); }
.section-title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-title em { font-style: italic; color: var(--gold); }
.section-subtitle { font-size: 1.05rem; color: var(--text-mid); max-width: 580px; line-height: 1.7; margin-bottom: 3rem; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── HERO ── */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 5rem; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 30%, rgba(107,143,113,0.08) 0%, transparent 60%), radial-gradient(ellipse at 20% 80%, rgba(192,158,90,0.05) 0%, transparent 50%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 5.5vw, 4.2rem); letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-desc { font-size: 1.1rem; color: var(--text-mid); max-width: 480px; line-height: 1.75; margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero-proof-text { font-size: 0.8rem; color: var(--text-light); }
.hero-proof-text strong { color: var(--text); font-weight: 600; }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-xl); position: relative; overflow: hidden; }
.hero-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--forest), var(--sage), var(--gold)); }
.hero-card-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1.5rem; }
.hero-card-badge { background: var(--gold-pale); color: var(--gold); font-size: 0.7rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 50px; letter-spacing: 0.05em; }
.semaphore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.semaphore-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); background: var(--cream); font-size: 0.8rem; font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: #4CAF50; }
.dot-yellow { background: #FFC107; }
.dot-red { background: #EF5350; }
.dot-gray { background: #BDBDBD; }
.hero-card-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }
.hero-card-stat { text-align: center; }
.hero-card-stat .val { font-family: 'Instrument Serif', serif; font-size: 1.4rem; color: var(--forest); }
.hero-card-stat .lbl { font-size: 0.65rem; color: var(--text-light); margin-top: 0.15rem; }

/* Floating elements around hero card */
.float-badge { position: absolute; background: var(--white); border-radius: var(--radius); padding: 0.8rem 1rem; box-shadow: var(--shadow-lg); font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; animation: float 6s ease-in-out infinite; }
.float-badge.top-right { top: -15px; right: -20px; animation-delay: 0s; }
.float-badge.bottom-left { bottom: -15px; left: -20px; animation-delay: 3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── METRICS BAR ── */
.metrics { background: var(--forest); padding: 3.5rem 2rem; }
.metrics-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; }
.metric-item { text-align: center; }
.metric-num { font-family: 'Instrument Serif', serif; font-size: 2.5rem; color: var(--gold-light); letter-spacing: -0.02em; }
.metric-desc { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.3rem; }

/* ── PROBLEM SECTION ── */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.problem-card { padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition); }
.problem-card:hover { border-color: var(--sage-light); box-shadow: var(--shadow); }
.problem-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.problem-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.problem-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; }

/* ── PRODUCT CARDS ── */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.2rem; border: 1px solid var(--border); transition: var(--transition); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--sage-light); transition: var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card:hover::before { background: var(--forest); }
.product-card.featured { border-color: var(--gold-pale); }
.product-card.featured::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); height: 4px; }
.popular-tag { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--gold); color: var(--white); font-size: 0.65rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 50px; letter-spacing: 0.08em; }
.product-card h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.product-subtitle { font-size: 0.82rem; color: var(--sage); font-weight: 600; margin-bottom: 1rem; }
.product-desc { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 1.5rem; }
.product-features { list-style: none; margin-bottom: 1.5rem; flex-grow: 1; }
.product-features li { padding: 0.4rem 0; font-size: 0.85rem; display: flex; align-items: flex-start; gap: 0.6rem; color: var(--text); }
.product-features li::before { content: '✓'; color: var(--forest-light); font-weight: 700; flex-shrink: 0; margin-top: 0.05rem; }
.product-price { font-family: 'Instrument Serif', serif; font-size: 1.6rem; color: var(--forest); margin-bottom: 0.3rem; }
.product-price-note { font-size: 0.75rem; color: var(--text-light); margin-bottom: 1rem; }

/* ── B2B SECTION ── */
.b2b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.b2b-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 2rem; transition: var(--transition); }
.b2b-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }
.b2b-icon { font-size: 1.5rem; margin-bottom: 0.8rem; }
.b2b-card h3 { font-size: 1.05rem; color: var(--gold-light); margin-bottom: 0.5rem; }
.b2b-card p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ── PROCESS ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--sage-pale), var(--gold-pale), var(--sage-pale)); z-index: 0; }
.process-step { text-align: center; position: relative; z-index: 1; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--forest); color: var(--white); font-family: 'Instrument Serif', serif; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; box-shadow: 0 4px 16px rgba(27,55,38,0.2); }
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.5; max-width: 220px; margin: 0 auto; }

/* ── TESTIMONIALS ── */
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); max-width: 700px; margin: 0 auto; text-align: center; }
.testimonial-text { font-family: 'Instrument Serif', serif; font-size: 1.3rem; color: var(--forest); line-height: 1.5; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 0.78rem; color: var(--text-light); }

/* ── FAQ ── */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { padding: 1.3rem 0; font-size: 1rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.2s; }
.faq-question:hover { color: var(--forest); }
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--sage); transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 1.2rem; }
.faq-answer p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; }

/* ── CTA ── */
.cta-section { background: linear-gradient(135deg, var(--forest) 0%, #234d32 50%, var(--forest-mid) 100%); color: var(--white); text-align: center; padding: 5rem 2rem; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(192,158,90,0.08) 0%, transparent 50%); pointer-events: none; }
.cta-section h2 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 480px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 2rem; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ── FOOTER ── */
.footer { background: var(--charcoal); color: rgba(255,255,255,0.4); padding: 3.5rem 2rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer .logo { color: var(--white); font-size: 1.5rem; margin-bottom: 0.8rem; display: block; }
.footer-desc { font-size: 0.82rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-family: 'Sora', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.4); padding: 0.3rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; }
.footer-powered { display: flex; align-items: center; gap: 0.5rem; }
.footer-powered img { height: 16px; opacity: 0.5; }

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .b2b-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    section { padding: 4.5rem 1.5rem; }
    .nav-center, .nav-right .nav-link { display: none; }
    .hamburger { display: block; }
    .hero { padding-top: 4rem; min-height: auto; padding-bottom: 3rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .problem-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .b2b-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .process-grid::before { display: none; }
    .metrics-grid { flex-direction: column; gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .mobile-menu { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--white); padding: 1.5rem 2rem; box-shadow: var(--shadow-lg); z-index: 999; flex-direction: column; gap: 1rem; border-bottom: 1px solid var(--border); }
    .mobile-menu.open { display: flex; }
    .mobile-menu a { font-size: 0.95rem; font-weight: 500; color: var(--text); padding: 0.5rem 0; }
}
