/* =====================================================
   CALF WEBSITE V2
   Author : OpenAI
   ===================================================== */

/* Google Fonts
-----------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* Root Variables
-----------------------------------------------------*/
:root{

    --primary:#1B5E20;
    --primary-dark:#124417;
    --secondary:#8D6E63;
    --accent:#F4B400;

    --light:#F8F9FA;
    --white:#FFFFFF;
    --dark:#222222;
    --text:#555555;

    --border:#E5E5E5;

    --shadow:0 10px 30px rgba(0,0,0,.08);

    --radius:12px;

    --transition:.35s ease;

}


/* Reset
-----------------------------------------------------*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Inter',sans-serif;
    font-size:16px;
    line-height:1.8;

    color:var(--text);

    background:#fff;

}


/* Headings
-----------------------------------------------------*/

h1,h2,h3,h4,h5,h6{

    font-family:'Playfair Display',serif;

    color:var(--dark);

    font-weight:700;

    margin-bottom:20px;

}

h1{

    font-size:3.3rem;

}

h2{

    font-size:2.4rem;

}

h3{

    font-size:1.7rem;

}

h4{

    font-size:1.3rem;

}


/* Paragraph
-----------------------------------------------------*/

p{

    margin-bottom:18px;

}


/* Images
-----------------------------------------------------*/

img{

    max-width:100%;

    display:block;

}


/* Links
-----------------------------------------------------*/

a{

    color:var(--primary);

    text-decoration:none;

    transition:var(--transition);

}

a:hover{

    color:var(--primary-dark);

}


/* Sections
-----------------------------------------------------*/

section{

    padding:90px 0;

}


/* Containers
-----------------------------------------------------*/

.container{

    max-width:1200px;

}


/* Utilities
-----------------------------------------------------*/

.text-center{

    text-align:center;

}

.mt-20{

    margin-top:20px;

}

.mt-30{

    margin-top:30px;

}

.mt-40{

    margin-top:40px;

}

.mb-20{

    margin-bottom:20px;

}

.mb-40{

    margin-bottom:40px;

}


/* Section Title
-----------------------------------------------------*/

.section-title{

    text-align:center;

    margin-bottom:15px;

}

.section-subtitle{

    text-align:center;

    max-width:760px;

    margin:0 auto 50px;

    color:#666;

}




/*=====================================================
TOP BAR
=====================================================*/

.topbar{

    background:var(--primary);

    color:#fff;

    font-size:14px;

    padding:8px 0;

}

.topbar i{

    margin-right:6px;

    color:#FFD54F;

}


/*=====================================================
HEADER
=====================================================*/

.site-header{

    background:#fff;

    position:sticky;

    top:0;

    z-index:999;

    box-shadow:0 2px 20px rgba(0,0,0,.08);

}

.navbar{

    padding:15px 0;

}

.logo-title{

    font-size:26px;

    color:var(--primary);

    margin:0;

}

.navbar-brand small{

    display:block;

    color:#777;

    font-size:13px;

}


/*=====================================================
NAVIGATION
=====================================================*/

.navbar-nav .nav-link{

    color:#333;

    font-weight:600;

    margin-left:18px;

    transition:var(--transition);

    position:relative;

}

.navbar-nav .nav-link:hover{

    color:var(--primary);

}

.navbar-nav .nav-link.active{

    color:var(--primary);

}

.navbar-nav .nav-link.active::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:100%;

    height:3px;

    background:var(--accent);

    border-radius:10px;

}


/*=====================================================
BUTTONS
=====================================================*/

.btn-primary-custom{

    background:var(--primary);

    color:#fff;

    padding:14px 32px;

    border-radius:50px;

    display:inline-block;

    font-weight:600;

    transition:var(--transition);

    border:none;

}

.btn-primary-custom:hover{

    background:var(--primary-dark);

    color:#fff;

    transform:translateY(-3px);

}

.btn-outline-custom{

    border:2px solid var(--primary);

    color:var(--primary);

    padding:14px 32px;

    border-radius:50px;

    display:inline-block;

    font-weight:600;

    transition:var(--transition);

}

.btn-outline-custom:hover{

    background:var(--primary);

    color:#fff;

}


/* =====================================================
HOME HERO SECTION
===================================================== */

.hero {
    position: relative;
    padding: 120px 0 110px;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(12, 53, 23, 0.72), rgba(12, 53, 23, 0.72)),
        url("../images/banner/home-hero.jpg") center center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(7, 32, 14, 0.58) 0%,
        rgba(7, 32, 14, 0.28) 45%,
        rgba(7, 32, 14, 0.18) 100%
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 64px;
    line-height: 1.08;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    max-width: 720px;
}

.hero p {
    font-size: 21px;
    line-height: 1.8;
    color: rgba(255,255,255,0.92);
    max-width: 760px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero .btn-outline-light {
    border-width: 2px;
    color: #ffffff;
}

.hero .btn-outline-light:hover {
    background: #ffffff;
    color: #145a26;
}

.hero-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px;
    color: #ffffff;
    box-shadow: 0 25px 45px rgba(0,0,0,0.18);
}

.hero-card h3 {
    color: #ffffff;
    font-size: 34px;
    margin-bottom: 18px;
    font-weight: 700;
}

.hero-card p {
    color: rgba(255,255,255,0.90);
    font-size: 18px;
    margin-bottom: 18px;
}

.hero-card ul {
    margin: 0;
    padding-left: 20px;
}

.hero-card ul li {
    color: rgba(255,255,255,0.92);
    margin-bottom: 10px;
    font-size: 17px;
}

/* Mobile */
@media (max-width: 991px) {
    .hero {
        padding: 90px 0 80px;
        min-height: auto;
        text-align: center;
    }

    .hero h1 {
        font-size: 42px;
        max-width: 100%;
    }

    .hero p {
        font-size: 18px;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-card {
        margin-top: 20px;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-card h3 {
        font-size: 26px;
    }
}


/*=====================================================
PAGE HEADER
=====================================================*/

.page-header{

    background:linear-gradient(135deg,var(--primary),var(--primary-dark));

    color:#fff;

    text-align:center;

    padding:90px 0;

}

.page-header h1{

    color:#fff;

    margin-bottom:15px;

}

.page-header p{

    color:#f5f5f5;

    font-size:18px;

}


/*=====================================================
CARDS
=====================================================*/

.card{

    background:#fff;

    border:none;

    border-radius:var(--radius);

    padding:35px;

    box-shadow:var(--shadow);

    transition:var(--transition);

    height:100%;

}

.card:hover{

    transform:translateY(-8px);

}

.card img{

    border-radius:10px;

    margin-bottom:20px;

}

.card h3{

    margin-bottom:15px;

    color:var(--primary);

}


/*=====================================================
STATISTICS
=====================================================*/

.stats{

    background:var(--primary);

    color:#fff;

}

.stats .section-title{

    color:#fff;

}

.stat-card{

    text-align:center;

    padding:35px 20px;

}

.stat-card h2{

    color:#FFD54F;

    font-size:48px;

    margin-bottom:10px;

}

.stat-card p{

    color:#fff;

    font-size:18px;

    margin:0;

}


/*=====================================================
FOUNDER SECTION
=====================================================*/

.founder-section{

    background:#F8F9FA;

}

.founder-image img{

    width:100%;

    border-radius:20px;

    box-shadow:var(--shadow);

}

.founder-content{

    padding-left:30px;

}

.founder-content h2{

    color:var(--primary);

}

.quote-box{

    background:#fff;

    padding:30px;

    border-left:5px solid var(--accent);

    margin-top:30px;

    border-radius:12px;

    box-shadow:var(--shadow);

    font-style:italic;

}

.quote-box span{

    display:block;

    margin-top:20px;

    color:var(--primary);

    font-weight:700;

}


/*=====================================================
ECOSYSTEM
=====================================================*/

.ecosystem-card{

    overflow:hidden;

    border-radius:15px;

    box-shadow:var(--shadow);

    transition:.4s;

    background:#fff;

    height:100%;

}

.ecosystem-card img{

    width:100%;

    height:250px;

    object-fit:cover;

    transition:.5s;

}

.ecosystem-card:hover img{

    transform:scale(1.08);

}

.ecosystem-content{

    padding:25px;

}

.ecosystem-content h3{

    color:var(--primary);

    margin-bottom:15px;

}


/*=====================================================
AWARDS
=====================================================*/

.award-card{

    background:#fff;

    border-radius:15px;

    padding:30px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:.4s;

    height:100%;

}

.award-card:hover{

    transform:translateY(-8px);

}

.award-icon{

    font-size:55px;

    color:#D4AF37;

    margin-bottom:20px;

}


/*=====================================================
GALLERY
=====================================================*/

.gallery-item{

    overflow:hidden;

    border-radius:15px;

    box-shadow:var(--shadow);

    margin-bottom:30px;

}

.gallery-item img{

    width:100%;

    height:280px;

    object-fit:cover;

    transition:.5s;

}

.gallery-item:hover img{

    transform:scale(1.1);

}


/*=====================================================
CALL TO ACTION
=====================================================*/

.cta{

    background:linear-gradient(135deg,var(--primary),var(--primary-dark));

    color:#fff;

    text-align:center;

    border-radius:20px;

    padding:70px 40px;

}

.cta h2{

    color:#fff;

}

.cta p{

    max-width:700px;

    margin:20px auto 35px;

    color:#F8F9FA;

}




/*=====================================================
FOOTER
=====================================================*/

.footer{

    background:#1E1E1E;

    color:#CCCCCC;

    padding:70px 0 0;

}

.footer h4,
.footer h5{

    color:#FFFFFF;

    margin-bottom:20px;

}

.footer p{

    color:#CFCFCF;

    line-height:1.8;

}

.footer-logo{

    height:70px;

    margin-bottom:20px;

}

.footer-links{

    list-style:none;

    padding:0;

    margin:0;

}

.footer-links li{

    margin-bottom:12px;

}

.footer-links a{

    color:#CCCCCC;

    transition:var(--transition);

}

.footer-links a:hover{

    color:#FFD54F;

    padding-left:6px;

}

.footer-bottom{

    margin-top:50px;

    padding:20px 0;

    border-top:1px solid rgba(255,255,255,.12);

    font-size:14px;

}


/*=====================================================
CONTACT PAGE
=====================================================*/

.contact-card{

    background:#fff;

    border-radius:15px;

    box-shadow:var(--shadow);

    padding:35px;

    height:100%;

}

.contact-card i{

    font-size:40px;

    color:var(--primary);

    margin-bottom:20px;

}

.contact-form input,
.contact-form textarea{

    border-radius:10px;

    padding:14px;

    border:1px solid #DDD;

    margin-bottom:20px;

}

.contact-form textarea{

    min-height:180px;

}


/*=====================================================
BACK TO TOP
=====================================================*/

.back-to-top{

    position:fixed;

    right:25px;

    bottom:25px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:none;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    box-shadow:var(--shadow);

    z-index:999;

    transition:.3s;

}

.back-to-top:hover{

    background:var(--primary-dark);

}


/*=====================================================
ANIMATIONS
=====================================================*/

.fade-up{

    animation:fadeUp .8s ease forwards;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.zoom{

    overflow:hidden;

}

.zoom img{

    transition:.5s;

}

.zoom:hover img{

    transform:scale(1.08);

}


/*=====================================================
HELPER CLASSES
=====================================================*/

.rounded-xl{

    border-radius:20px;

}

.shadow-custom{

    box-shadow:var(--shadow);

}

.bg-light-custom{

    background:#F8F9FA;

}

.text-primary-custom{

    color:var(--primary);

}


/*=====================================================
RESPONSIVE
=====================================================*/

@media(max-width:991px){

.hero{

    min-height:70vh;

}

.hero-content h1{

    font-size:42px;

}

.founder-content{

    padding-left:0;

    margin-top:30px;

}

.navbar-nav{

    margin-top:20px;

}

.navbar-nav .nav-link{

    margin-left:0;

    padding:10px 0;

}

}


@media(max-width:767px){

section{

    padding:70px 0;

}

.hero-content h1{

    font-size:34px;

}

.hero-content p{

    font-size:17px;

}

.hero-buttons{

    flex-direction:column;

}

.page-header{

    padding:60px 0;

}

.page-header h1{

    font-size:34px;

}

.footer{

    text-align:center;

}

.footer-bottom{

    text-align:center;

}

}


@media(max-width:576px){

h1{

    font-size:32px;

}

h2{

    font-size:28px;

}

.stat-card h2{

    font-size:36px;

}

}




.diagram-popup {
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diagram-popup:hover {
    transform: scale(1.02);
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

#imageModal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
}

#imageModal .modal-body {
    padding: 20px;
}

#imageModalPreview {
    max-height: 80vh;
    width: auto;
}


.home-slider-section {
    padding: 60px 0;
    background: #f7fbf7;
}

#homeImageSlider {
    border-radius: 22px;
}

#homeImageSlider .carousel-item img {
    height: 520px;
    object-fit: cover;
}

#homeImageSlider .carousel-caption {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72),
        rgba(0, 0, 0, 0.25)
    );
    left: 0;
    right: 0;
    bottom: 0;
    padding: 35px 60px;
    text-align: left;
}

#homeImageSlider .carousel-caption h3 {
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
}

#homeImageSlider .carousel-caption p {
    color: #f1f1f1;
    font-size: 18px;
    margin-bottom: 0;
    max-width: 700px;
}

@media (max-width: 768px) {
    #homeImageSlider .carousel-item img {
        height: 320px;
    }

    #homeImageSlider .carousel-caption {
        padding: 20px;
    }

    #homeImageSlider .carousel-caption h3 {
        font-size: 22px;
    }

    #homeImageSlider .carousel-caption p {
        font-size: 14px;
    }
}