/* ============================================================
   1Nature Corp — home.css
   Provides all CSS classes + variables used by home.blade.php
   ============================================================ */

/* --- Missing CSS Variables (aliases + additions) --- */
:root {
    --font-display: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --green-primary: #3aaa35;
    --green-ultra-pale: #f0fbed;
    --text-mid: #4a5c4b;
    --border: rgba(58, 170, 53, 0.15);
    --radius-xl: 24px;
    --radius-lg: 20px;
    --gold-light: #f7d96a;
    --shadow: 0 8px 40px rgba(26, 77, 30, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* --- Section Labels --- */
.section-label {
    display: inline-flex; align-items: center;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--green-primary);
    background: var(--green-ultra-pale);
    border: 1.5px solid rgba(58,170,53,0.25);
    padding: 5px 16px; border-radius: 100px; margin-bottom: 14px;
}
.section-label.white { color: var(--gold-light); background: rgba(244,197,66,0.12); border-color: rgba(244,197,66,0.3); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 16px;
}
.section-title span { color: var(--green-primary); }
.section-subtitle { font-size: 1.02rem; color: var(--text-mid); line-height: 1.75; max-width: 620px; margin: 0 auto; }

/* Gradient highlight text */
.highlight {
    background: linear-gradient(135deg, var(--green-primary), var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 100px;
    font-family: var(--font-body); font-size: 0.93rem; font-weight: 600;
    cursor: pointer; border: 2px solid transparent;
    transition: var(--transition); text-decoration: none;
}
.btn-gold {
    background: linear-gradient(135deg, #f4c542, #d4a017);
    color: #1a1a1a; border-color: transparent;
    box-shadow: 0 4px 20px rgba(244,197,66,0.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(244,197,66,0.55); }

.btn-outline {
    background: transparent; color: var(--green-primary);
    border-color: var(--green-primary);
}
.btn-outline:hover { background: var(--green-primary); color: #fff; }

.btn-outline-white {
    background: transparent; color: #fff;
    border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* --- Reveal animations --- */
.reveal, .reveal-left, .reveal-right {
    opacity: 0; transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

.stagger-parent .stagger-child {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-parent .stagger-child.visible { opacity: 1; transform: none; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative; min-height: 100vh;
    background: linear-gradient(145deg, #060f07 0%, #0c230d 45%, #0a1e0b 100%);
    display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 80% at 20% 60%, rgba(58,170,53,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 20%, rgba(244,197,66,0.07) 0%, transparent 50%);
}
.hero-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to right, rgba(6,15,7,0.55) 0%, transparent 75%);
}
.hero-pattern {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='3' cy='3' r='1.5'/%3E%3Ccircle cx='25' cy='25' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-leaf-1, .hero-leaf-2 {
    position: absolute; font-size: 9rem; opacity: 0.04;
    pointer-events: none; user-select: none;
    animation: leafFloat 9s ease-in-out infinite;
}
.hero-leaf-1 { top: 8%;  right: 4%;  animation-delay: 0s; }
.hero-leaf-2 { bottom: 12%; left: 2%; animation-delay: 4.5s; }
@keyframes leafFloat {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-22px) rotate(10deg); }
}

/* Hero inner grid */
.hero > .container { position: relative; z-index: 2; width: 100%; }
.hero-content {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
    padding: 130px 0 90px;
}

/* Hero text */
.hero-text { display: flex; flex-direction: column; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em;
    text-transform: uppercase; color: #7ddb78;
    background: rgba(58,170,53,0.14); border: 1px solid rgba(58,170,53,0.35);
    padding: 6px 18px; border-radius: 100px; margin-bottom: 26px;
    width: fit-content;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.8vw, 4rem); font-weight: 900;
    color: #fff; line-height: 1.08; margin-bottom: 22px;
}
.hero-subtitle {
    font-size: 1.05rem; color: rgba(255,255,255,0.7);
    line-height: 1.8; margin-bottom: 38px; max-width: 490px;
}
.hero-actions {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 50px;
}
.hero-play {
    display: inline-flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,0.75); font-size: 0.88rem; font-weight: 500;
    cursor: pointer; transition: var(--transition); text-decoration: none;
}
.hero-play:hover { color: #fff; gap: 16px; }
.play-circle {
    width: 42px; height: 42px; flex-shrink: 0;
    background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: background 0.3s, border-color 0.3s; padding-left: 3px;
}
.hero-play:hover .play-circle { background: var(--green-primary); border-color: var(--green-primary); }

/* Hero stats row */
.hero-stats { display: flex; gap: 36px; }
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-value {
    font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
    color: #f4c542; line-height: 1;
}
.hero-stat-label {
    font-size: 0.72rem; color: rgba(255,255,255,0.48);
    text-transform: uppercase; letter-spacing: 0.09em;
}

/* Hero visual */
.hero-visual {
    display: flex; justify-content: center; align-items: flex-end;
    position: relative;
}
.hero-image-wrap { position: relative; display: inline-block; }
.hero-image-main {
    display: block; width: 100%; max-width: 440px; height: 560px;
    object-fit: cover; object-position: center top;
    border-radius: 52% 52% 40% 40% / 60% 60% 40% 40%;
    filter: drop-shadow(0 24px 64px rgba(0,0,0,0.5));
    position: relative; z-index: 2;
}
.hero-card {
    position: absolute; z-index: 3;
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
    padding: 12px 20px; border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    animation: floatCard 3.2s ease-in-out infinite;
    white-space: nowrap;
}
.hero-card-1 { bottom: 90px; left: -30px; animation-delay: 0s; }
.hero-card-2 { top: 70px;  right: -10px; animation-delay: 1.6s; }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.card-icon { font-size: 1.9rem; }
.card-text strong { display: block; font-size: 0.9rem; font-weight: 700; color: #0e1a0f; }
.card-text span   { font-size: 0.74rem; color: #5a6b5b; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: #fff; padding: 100px 0; overflow: hidden; }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}

/* Visual stack */
.about-visual { position: relative; }
.about-image-stack { position: relative; }
.about-img-main {
    display: block; width: 100%; height: 500px;
    object-fit: cover; object-position: center top;
    border-radius: 24px; box-shadow: 0 20px 60px rgba(26,77,30,0.2);
}
.about-img-accent {
    position: absolute; bottom: -28px; right: -28px;
    width: 190px; height: 210px; object-fit: cover;
    border-radius: 16px; border: 4px solid #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.about-badge {
    position: absolute; top: 28px; right: -18px; z-index: 3;
    background: var(--green-primary); color: #fff;
    padding: 16px 20px; border-radius: 16px; text-align: center;
    box-shadow: 0 8px 24px rgba(58,170,53,0.4);
}
.about-badge-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.about-badge-text { font-size: 0.7rem; opacity: 0.88; margin-top: 4px; }

/* About content */
.about-content {}
.about-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin: 24px 0;
}
.about-feature {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.88rem; font-weight: 500; color: var(--text-mid);
    padding: 10px 14px; border-radius: 8px;
}
.feature-check {
    width: 22px; height: 22px; background: var(--green-ultra-pale);
    color: var(--green-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}
.about-cta { display: flex; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.about-phone { display: flex; align-items: center; gap: 12px; }
.phone-icon { font-size: 1.4rem; }
.phone-text span { display: block; font-size: 0.7rem; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.09em; }
.phone-text a { font-weight: 700; color: var(--dark); font-size: 0.95rem; transition: color 0.2s; }
.phone-text a:hover { color: var(--green-primary); }

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section { background: #f4f8f3; padding: 100px 0; }
.products-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 28px; margin: 50px 0 60px;
}
.product-card {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1.5px solid rgba(58,170,53,0.08);
    transition: var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 14px 44px rgba(26,77,30,0.15); border-color: rgba(58,170,53,0.3); }
.product-image { position: relative; height: 255px; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s; }
.product-card:hover .product-image img { transform: scale(1.07); }
.product-category-badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--green-primary); color: #fff;
    font-size: 0.7rem; font-weight: 700; padding: 4px 13px;
    border-radius: 100px; text-transform: uppercase; letter-spacing: 0.06em;
}
.product-icon {
    position: absolute; bottom: 14px; right: 14px;
    width: 40px; height: 40px; background: rgba(255,255,255,0.92);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.product-body { padding: 22px 26px 28px; }
.product-title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.product-desc { font-size: 0.87rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 18px; }
.product-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--green-primary); font-weight: 700; font-size: 0.84rem;
    transition: gap 0.25s;
}
.product-link:hover { gap: 10px; }
.product-link::after { content: '→'; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: linear-gradient(135deg, #1a4d1e 0%, #2d7a2d 100%);
    padding: 52px 0;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    text-align: center;
}
.stat-item { padding: 0 20px; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-value {
    font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
    color: #f4c542; line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.62); text-transform: uppercase; letter-spacing: 0.1em; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section { background: #fff; padding: 100px 0; }
.reasons-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 22px; margin: 48px 0 60px;
}
.reason-card {
    background: #f4f8f3; border-radius: 20px; padding: 32px 26px;
    border: 1.5px solid transparent; transition: var(--transition);
}
.reason-card:hover { background: #fff; border-color: rgba(58,170,53,0.2); transform: translateY(-4px); box-shadow: 0 10px 40px rgba(26,77,30,0.12); }
.reason-icon { font-size: 2rem; display: block; margin-bottom: 16px; }
.reason-title { font-weight: 700; color: var(--dark); font-size: 1rem; margin-bottom: 10px; }
.reason-desc { font-size: 0.87rem; color: var(--text-mid); line-height: 1.65; }

/* ============================================================
   VIDEO / TESTIMONIAL SECTION
   ============================================================ */
.video-section {
    background: linear-gradient(135deg, #060f07 0%, #0c230d 55%, #0a1e0b 100%);
    padding: 100px 0; position: relative; overflow: hidden;
}
.video-section::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 80% at 15% 50%, rgba(58,170,53,0.12) 0%, transparent 55%);
}
.video-section > .container { position: relative; z-index: 2; }
.video-section-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: start;
}
.video-content {}
.video-title {
    font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700; color: #fff; line-height: 1.22; margin-bottom: 16px;
}
.video-title span { color: #f4c542; }
.video-desc { color: rgba(255,255,255,0.7); font-size: 0.98rem; line-height: 1.77; margin-bottom: 36px; }

/* Testimonial cards */
.video-testimonials { display: flex; flex-direction: column; gap: 14px; }
.video-testimonial {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 18px 22px; backdrop-filter: blur(6px);
    transition: background 0.3s;
}
.video-testimonial:hover { background: rgba(255,255,255,0.1); }
.vt-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.vt-avatar {
    width: 38px; height: 38px; background: var(--green-primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 700; flex-shrink: 0;
}
.vt-name { font-size: 0.88rem; font-weight: 700; color: #fff; }
.vt-role { font-size: 0.73rem; color: rgba(255,255,255,0.48); }
.vt-stars { margin-left: auto; color: #f4c542; font-size: 0.82rem; letter-spacing: 2px; }
.vt-text { font-size: 0.86rem; color: rgba(255,255,255,0.76); line-height: 1.65; font-style: italic; }

/* Video player */
.video-player-wrap {}
.video-thumbnail {
    position: relative; border-radius: 20px; overflow: hidden;
    aspect-ratio: 16/9; cursor: pointer;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.42);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.video-thumbnail:hover .video-overlay { background: rgba(0,0,0,0.28); }
.play-btn-large {
    width: 76px; height: 76px; background: var(--green-primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; padding-left: 5px;
    transition: transform 0.3s, background 0.3s;
    animation: pulsePB 2.4s ease-in-out infinite;
}
@keyframes pulsePB {
    0%,100% { box-shadow: 0 0 0 0 rgba(58,170,53,0.45); }
    50%      { box-shadow: 0 0 0 18px rgba(58,170,53,0); }
}
.video-thumbnail:hover .play-btn-large { transform: scale(1.1); background: #5ec95a; }
.video-caption { text-align: center; color: rgba(255,255,255,0.48); font-size: 0.8rem; margin-top: 12px; letter-spacing: 0.04em; }
.video-thumbnail-small { transition: var(--transition); }
.video-thumbnail-small:hover { background: rgba(255,255,255,0.1) !important; }

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section { background: #f8fdf5; padding: 100px 0; }
.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 26px; margin: 48px 0 0;
}
.blog-card {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: var(--transition); display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 14px 44px rgba(26,77,30,0.14); }
.blog-image { position: relative; height: 200px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s; }
.blog-card:hover .blog-image img { transform: scale(1.07); }
.blog-cat {
    position: absolute; top: 14px; left: 14px;
    background: var(--green-primary); color: #fff;
    font-size: 0.7rem; font-weight: 700; padding: 4px 12px;
    border-radius: 100px;
}
.blog-body { padding: 22px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-date { font-size: 0.76rem; color: #8a9a88; margin-bottom: 8px; }
.blog-title {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
    color: var(--dark); margin-bottom: 10px; line-height: 1.38;
}
.blog-excerpt { font-size: 0.86rem; color: var(--text-mid); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.blog-link { color: var(--green-primary); font-weight: 700; font-size: 0.84rem; transition: var(--transition); }
.blog-link:hover { gap: 10px; letter-spacing: 0.02em; }
.blog-link::after { content: ' →'; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, #1a4d1e 0%, #0d3d10 55%, #2d7a2d 100%);
    padding: 100px 0; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 80% at 85% 50%, rgba(244,197,66,0.09) 0%, transparent 55%);
}
.cta-section > .container { position: relative; z-index: 2; }
.cta-inner {
    display: grid; grid-template-columns: 1fr auto;
    gap: 60px; align-items: center;
}
.cta-title {
    font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 16px;
}
.cta-title span { color: #f4c542; }
.cta-desc { color: rgba(255,255,255,0.74); font-size: 1rem; line-height: 1.77; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-note { font-size: 0.78rem; color: rgba(255,255,255,0.48); margin-top: 6px; }

/* Back-to-top */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 900;
    width: 48px; height: 48px; background: var(--green-primary);
    color: #fff; border: none; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer;
    box-shadow: 0 4px 20px rgba(58,170,53,0.4);
    transition: var(--transition); opacity: 0; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); background: #1a4d1e; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content   { grid-template-columns: 1fr; padding: 100px 0 60px; text-align: center; }
    .hero-stats     { justify-content: center; }
    .hero-actions   { justify-content: center; }
    .hero-subtitle  { margin: 0 auto 38px; }
    .hero-badge     { margin: 0 auto 26px; }
    .hero-visual    { margin-top: 40px; justify-content: center; }
    .hero-card-1    { left: 0; }
    .about-grid     { grid-template-columns: 1fr; }
    .about-img-accent { display: none; }
    .about-badge    { right: 0; }
    .products-grid  { grid-template-columns: 1fr 1fr; }
    .stats-grid     { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stat-item      { border-right: none; padding: 16px; }
    .reasons-grid   { grid-template-columns: 1fr 1fr; }
    .video-section-grid { grid-template-columns: 1fr; }
    .blog-grid      { grid-template-columns: 1fr 1fr; }
    .cta-inner      { grid-template-columns: 1fr; text-align: center; }
    .cta-actions    { align-items: center; }
}
@media (max-width: 768px) {
    .hero-image-main { height: 380px; max-width: 100%; }
    .hero-card       { display: none; }
    .about-img-main  { height: 360px; }
    .products-grid   { grid-template-columns: 1fr; }
    .reasons-grid    { grid-template-columns: 1fr; }
    .blog-grid       { grid-template-columns: 1fr; }
    .hero-stats      { gap: 20px; flex-wrap: wrap; justify-content: center; }
}
