/**
 * NatureProf Custom Styles
 * Hybrid DaisyUI + Magic UI + Hyper UI inspired palette
 */

/* ===== Root Variables ===== */
:root {
    --brand-primary: #1c7f57;
    --brand-primary-light: #28a16d;
    --brand-primary-dark: #0f3426;
    --brand-ink: #1f2a44;
    --brand-ink-soft: #4c5a7a;
    --accent-sun: #f59e0b;
    --surface-100: rgba(255, 255, 255, 0.92);
    --surface-200: rgba(244, 250, 247, 0.9);
    --surface-emerald: rgba(222, 247, 236, 0.72);
    --glass-border: rgba(148, 163, 184, 0.28);
    --shadow-soft: 0 24px 48px -32px rgba(15, 118, 110, 0.45);
    --shadow-elevated: 0 32px 64px -20px rgba(37, 99, 235, 0.25);
    --text-dark: #0f172a;
    --text-light: #64748b;
}

[data-theme="natureprof"] {
    color-scheme: light;
    --p: 156 64% 30%;
    --pc: 155 48% 92%;
    --s: 231 40% 43%;
    --sc: 231 87% 93%;
    --a: 38 92% 50%;
    --ac: 38 100% 92%;
    --n: 215 28% 17%;
    --nc: 210 40% 96%;
    --b1: 210 20% 98%;
    --b2: 145 81% 96%;
    --b3: 214 95% 93%;
    --bc: 215 28% 17%;
    --in: 198 93% 60%;
    --inc: 200 92% 95%;
    --su: 142 76% 36%;
    --suc: 142 97% 92%;
    --wa: 43 96% 56%;
    --wac: 43 95% 15%;
    --er: 348 86% 61%;
    --erc: 348 88% 94%;
    --rounded-btn: 9999px;
    --rounded-box: 1.5rem;
    --rounded-badge: 9999px;
    --animation-btn: 0.25s;
    --animation-input: 0.2s;
    --border-btn: 1px;
    --tab-radius: 1rem;
}

/* ===== Font Adjustments ===== */
body {
    font-family: 'Prompt', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
}

/* ===== Brand Theme Overrides ===== */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #f8fafc;
}

.btn-primary:hover {
    background-color: var(--brand-primary-light);
    border-color: var(--brand-primary-light);
}

.navbar {
    background-color: transparent;
    box-shadow: none;
}

.navbar-brand {
    color: var(--brand-primary) !important;
    font-weight: 600;
}

/* ===== Navigation ===== */
.nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(231, 245, 255, 0.75), rgba(222, 247, 236, 0.8));
    box-shadow:
        inset 0 1px 8px rgba(255, 255, 255, 0.65),
        0 24px 40px -28px rgba(15, 118, 110, 0.65);
    backdrop-filter: blur(12px);
}

.nav-pill ul {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.nav-pill__item--active {
    background: linear-gradient(135deg, rgba(40, 161, 109, 0.95), rgba(22, 101, 72, 0.95));
    color: #f8fafc !important;
    box-shadow: 0 12px 25px -12px rgba(15, 118, 110, 0.7);
}

.mobile-nav-panel {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform-origin: top center;
}

.mobile-nav-panel:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav-panel {
        transition: none;
        transform: none;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: clamp(320px, 55vh, 520px);
    padding-block: clamp(4rem, 8vw, 6.5rem);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.78) 0%, rgba(45, 80, 22, 0.58) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(68ch, 100%);
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 4vw, 3rem);
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.hero p {
    margin-top: clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(1.0625rem, 3vw, 1.5rem);
    line-height: 1.65;
    text-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

@media (max-width: 640px) {
    .hero {
        padding-block: clamp(3rem, 10vw, 4.5rem);
        text-align: center;
    }

    .hero-content {
        padding-inline: clamp(1rem, 6vw, 2rem);
    }
}

/* ===== Magic UI Inspired Cards ===== */
.magic-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    background: var(--surface-100);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    backdrop-filter: blur(18px);
}

.magic-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 30px 60px -30px rgba(15, 118, 110, 0.4);
}

.magic-card__glow {
    position: absolute;
    inset: -40% -10%;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.2), transparent 60%), radial-gradient(circle at bottom, rgba(16, 185, 129, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    filter: blur(6px);
}

.magic-card:hover .magic-card__glow {
    opacity: 1;
}

.hyper-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hyper-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elevated);
}

.hyper-stat-card {
    position: relative;
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(219, 234, 254, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 20px 60px -40px rgba(37, 99, 235, 0.4);
}

.hyper-stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

/* ===== Hero Slider ===== */
#hero-slider {
    position: relative;
    overflow: hidden;
}

#hero-slider .swiper {
    width: 100%;
}

#hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hero-slider [data-swiper-container] .swiper-button-prev,
#hero-slider [data-swiper-container] .swiper-button-next {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

#hero-slider [data-swiper-container] .swiper-button-prev:hover,
#hero-slider [data-swiper-container] .swiper-button-next:hover {
    color: var(--accent-sun);
}

#hero-slider .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

#hero-slider .swiper-pagination-bullet-active {
    background-color: var(--accent-sun);
}

.magic-swiper-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.85);
    color: var(--brand-primary);
    box-shadow: 0 20px 45px -25px rgba(15, 118, 110, 0.55);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.magic-swiper-btn::after {
    font-size: 1rem;
    font-weight: 600;
}

.magic-swiper-btn:hover {
    transform: translateY(-3px);
    background: var(--brand-primary);
    color: #f8fafc;
}

.magic-swiper-dots .swiper-pagination-bullet {
    width: 0.75rem;
    height: 0.75rem;
    background: rgba(148, 163, 184, 0.5);
    opacity: 1;
    transition: transform 0.3s ease, background 0.3s ease;
}

.magic-swiper-dots .swiper-pagination-bullet-active {
    background: var(--brand-primary);
    transform: scale(1.2);
}

/* ===== Service Cards ===== */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(45, 80, 22, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ===== News Cards ===== */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-card img {
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ===== Awards Section ===== */
.award-card {
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--accent-sun);
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.award-card:hover {
    transform: scale(1.05);
}

.award-year {
    color: var(--accent-sun);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--brand-primary-dark);
    color: white;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer-title {
    color: var(--accent-sun);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== Language Switcher ===== */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--brand-primary);
    border-radius: 0.25rem;
    background-color: transparent;
    color: var(--brand-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-btn:hover {
    background-color: var(--brand-primary);
    color: white;
}

.lang-btn.active {
    background-color: var(--brand-primary);
    color: white;
}

/* ===== Active Menu Item ===== */
.menu-item.active {
    color: var(--brand-primary) !important;
    font-weight: 600;
}

.menu-item.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--brand-primary);
    margin-top: 0.25rem;
}

/* ===== Mobile Menu ===== */
@media (max-width: 768px) {
    .navbar-menu {
        background-color: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .menu-item.active::after {
        display: none;
    }
}

/* ===== Contact Form ===== */
.contact-form input,
.contact-form textarea {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.75rem;
    width: 100%;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

/* ===== Newsletter Form ===== */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background-color: var(--accent-sun);
    color: var(--brand-primary-dark);
    border: none;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #c9a02c;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.breadcrumb a:hover {
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Enhanced Breadcrumb Animations */
.breadcrumb-item {
    transition: all 0.3s ease;
}

.breadcrumb-item:hover {
    transform: translateY(-1px);
}

/* Breadcrumb separator animation */
.breadcrumb-separator {
    transition: all 0.2s ease;
    opacity: 0.6;
}

.breadcrumb-item:hover + .breadcrumb-separator,
.breadcrumb-separator:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== Post Content Styling ===== */
.post-content {
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

.post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--brand-primary-light);
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* ===== 404 Page ===== */
.error-404 {
    text-align: center;
    padding: 4rem 1rem;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--brand-primary);
    font-weight: 700;
}

.error-404 p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===== Utility Classes ===== */
.text-corporate-green {
    color: var(--brand-primary);
}

.bg-corporate-green {
    background-color: var(--brand-primary);
}

.border-corporate-green {
    border-color: var(--brand-primary);
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Image Lazy Loading ===== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== Responsive Grid Adjustments ===== */
@media (max-width: 640px) {
    .grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    /* Newsletter form responsive fix */
    .footer form fieldset {
        width: 100% !important;
        max-width: 100%;
    }
    
    .footer .join {
        flex-direction: column;
        width: 100%;
    }
    
    .footer .join-item {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .footer,
    .lang-switcher {
        display: none;
    }
}
