/* Import Hubot Sans font */
@import url('https://api.fontshare.com/v2/css?f[]=hubot-sans@400,500,600,700&display=swap');

/* Custom color variables */
:root {
    --primary-green: #507D3C;
    --accent-orange: #B85C38;
    --light-green: #4D6F3D;
    --bg-light: #F9F7F1;
    --text-dark: #2C3E50;
}

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hubot Sans', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.navbar {
    background-color: transparent !important;
    padding: 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Navigation Container */
.nav-container {
    position: relative;
    max-width: 1363px;
    width: 100%;
    margin: 0 auto;
}

.nav-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation Overlays - Base Styles */
.nav-overlay,
.contact-btn-overlay {
    position: absolute;
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Individual Navigation Link Positions (based on 1363px wide SVG) */
.nav-home {
    left: 34.80%;  /* Move right 1px more (total 11px: 11/1363 = 0.80%) */
    top: 50%;
    width: 3.7%;  /* ~50px / 1363px */
    height: 27%; /* Adjusted height */
    transform: translateY(-50%);
}

.nav-about {
    left: 40.8%;  /* Keep same */
    top: 50%;
    width: 5.3%;  /* ~72px / 1363px */
    height: 27%;
    transform: translateY(-50%);
}

.nav-products {
    left: 48.44%;  /* Keep same */
    top: 50%;
    width: 5.1%;  /* ~70px / 1363px */
    height: 27%;
    transform: translateY(-50%);
}

.nav-sustainability {
    left: 55.75%;  /* Move left 2px more (total 17px: -17/1363 = -1.25%) */
    top: 50%;
    width: 8.1%;  /* ~110px / 1363px */
    height: 27%;
    transform: translateY(-50%);
}

.nav-research {
    left: 65.77%;  /* Move right 1px more (total 16px: 16/1363 = 1.17%) */
    top: 50%;
    width: 2.8%;  /* ~38px / 1363px */
    height: 27%;
    transform: translateY(-50%);
}

/* Contact Button Overlay */
.nav-contact {
    left: 90.2%;  /* ~1230px / 1363px */
    top: 50%;
    width: 7.2%;  /* ~98px / 1363px */
    height: 58.1%; /* ~43px / 74px */
    border-radius: 21.5px;
    transform: translateY(-50%);
}

/* Underline Effect for Navigation Links */
.nav-underline {
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-overlay:hover .nav-underline {
    transform: scaleX(1);
}

/* Active state for current page */
.nav-overlay.active .nav-underline {
    transform: scaleX(1);
}

/* ============================================
   TEXT-BASED NAVIGATION STYLES
   ============================================ */

.nav-container-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1360px;
    width: 100%;
    height: 74px;
    background: #FFFFFF;
    border-radius: 37px;
    padding: 0 32px;
    margin: 0 auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Hubot Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #507D3C;
    white-space: nowrap;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    justify-content: center;
    margin-left: 80px;
}

.nav-link-text {
    position: relative;
    color: #507D3C;
    text-decoration: none;
    font-family: 'Hubot Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding-bottom: 4px;
}

.nav-link-text:hover {
    color: #507D3C;
}

.nav-underline-text {
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #507D3C;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link-text:hover .nav-underline-text {
    transform: scaleX(1);
}

.nav-link-text.active .nav-underline-text {
    transform: scaleX(1);
}

.nav-contact-btn {
    margin-left: auto;
}

.contact-btn-text {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4D6F3D;
    color: white;
    text-decoration: none;
    font-family: 'Hubot Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    border-radius: 21.5px;
    transition: all 0.3s ease;
}

.contact-btn-text:hover {
    background-color: #B85C38;
    color: white;
    transform: translateY(-1px);
}

/* ============================================
   HERO & CONTENT SECTIONS
   ============================================ */

.hero-section {
    position: relative;
    width: 100%;
    margin-bottom: 80px; /* Add spacing after hero */
    display: flex;
    justify-content: center;
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: 1440px;
}

.hero-section img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero Button Overlays */
.hero-btn {
    position: absolute;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.hero-btn:hover {
    opacity: 0.8;
}

.hero-learn-more {
    left: 5.4%;
    bottom: 38%;
    width: 13.5%;
    height: 7.5%;
    border-radius: 25px;
}

.hero-explore-products {
    left: 16.2%;
    bottom: 38%;
    width: 19.5%;
    height: 7.5%;
    border-radius: 25px;
}

/* Content Container for Button Overlays */
.content-container {
    position: relative;
    width: 100%;
    max-width: 1360px;
}

/* Content Button Overlays */
.content-btn {
    position: absolute;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.content-btn:hover {
    opacity: 0.8;
}

.content5-sustainability {
    left: 5.5%;
    bottom: 15%;
    width: 22%;
    height: 12%;
    border-radius: 25px;
}

.content5-research {
    left: 72%;
    bottom: 15%;
    width: 14%;
    height: 12%;
    border-radius: 25px;
}

.content-section {
    position: relative;
    width: 100%;
    margin-bottom: 80px; /* Add spacing between content sections */
    display: flex;
    justify-content: center;
}

.content-section .container-fluid {
    display: flex;
    justify-content: center;
}

.content-section img {
    width: 100%;
    height: auto;
    display: block;
}

/* Last content section before footer */
.content-section:last-of-type {
    margin-bottom: 0;
}

/* Video Container Styling */
.video-container {
    position: relative;
    width: 100%;
    max-width: 1440px;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Specific max-widths for each section based on SVG dimensions */
.hero-section img {
    max-width: 1440px; /* Hero.svg: 1440x885 */
}

.content-0 img {
    max-width: 1400px; /* Content.svg: 1400x1227 */
}

.content-1 img {
    max-width: 1440px; /* Content1.svg: 1440x919 */
}

.content-2 img {
    max-width: 1440px; /* Content2.svg (Assured Quality): 1440x926 */
}

.content-3 img {
    max-width: 1360px; /* Content3.svg: 1360x711 */
}

.content-4 img {
    max-width: 1360px; /* Content4.svg: 1360x505 */
}

.content-5 img {
    max-width: 1360px; /* Content5.svg: 1360x527 */
}

.content-6 img {
    max-width: 1360px; /* Content6.svg: 1360x891 */
}

.content-7 img {
    max-width: 674px; /* Content7.svg: 674x363 */
}

.content-8 img {
    max-width: 1440px; /* Content8.svg: 1440x707 */
}

/* About Us Page Specific Sizing */
.about-content-0 img {
    max-width: 1400px; /* Content.svg: 1400x1080 */
}

.about-content-1 img {
    max-width: 1359px; /* Content (1).svg: 1359x577 */
}

.about-content-2 img {
    max-width: 1359px; /* Content (2).svg: 1359x643 */
}

.about-content-3 img {
    max-width: 1362px; /* Content (3).svg: 1362x923 */
}

.about-content-4 img {
    max-width: 896px; /* Content (4).svg: 896x164 */
}

.about-content-5 img {
    max-width: 1440px; /* Content (5).svg: 1440x710 */
}

/* Products Page Specific Sizing */
.products-content-0 img {
    max-width: 939px; /* Content.svg: 939x198 */
}

.products-content-1 img {
    max-width: 1360px; /* Content (1).svg: 1360x978 */
}

.products-content-2 img {
    max-width: 1361px; /* Content (2).svg: 1361x2281 */
}

.products-content-3 img {
    max-width: 1425px; /* Content (3).svg: 1425x1342 */
}

.products-content-4 img {
    max-width: 1440px; /* Content (4).svg: 1440x707 */
}

/* Sustainability Page Specific Sizing */
.sustainability-content-0 img {
    max-width: 939px; /* Content.svg: 939x266 */
}

.sustainability-content-1 img {
    max-width: 1360px; /* Content (1).svg: 1360x800 */
}

.sustainability-content-2 img {
    max-width: 1440px; /* Content (2).svg: 1440x1058 */
}

.sustainability-content-3 img {
    max-width: 1440px; /* Content (3).svg: 1440x1260 */
}

.sustainability-content-4 img {
    max-width: 1360px; /* Content (4).svg: 1360x464 */
}

.sustainability-content-5 img {
    max-width: 1440px; /* Content (5).svg: 1440x707 */
}

/* Research Page Specific Sizing */
.research-content-0 img {
    max-width: 939px; /* Content.svg: 939x266 */
}

.research-content-1 img {
    max-width: 1360px; /* Content (1).svg: 1360x806 */
}

.research-content-2 img {
    max-width: 1360px; /* Content (2).svg: 1360x806 */
}

.research-content-3 img {
    max-width: 1440px; /* Content (3).svg: 1440x382 */
}

.research-content-4 img {
    max-width: 1433px; /* Content (4).svg: 1433x362 */
}

.research-content-5 img {
    max-width: 1360px; /* Content (5).svg: 1360x467 */
}

.research-content-6 img {
    max-width: 1440px; /* Content (6).svg: 1440x707 */
}

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

.footer-section {
    width: 100%;
    margin-top: 80px;
}

.footer-content {
    background-color: #FFFFFF;
    padding: 60px 0;
}

.footer-text-row {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    padding: 0 80px;
}

.footer-column h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000000;
}

.footer-column p {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    margin: 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #000000;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-column ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 2px;
    left: 0;
    background-color: #000000;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.footer-column ul li a:hover::after {
    transform: scaleX(1);
}

.footer-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-image img {
    width: 100%;
    max-width: 1440px;
    height: auto;
    display: block;
}

@media (max-width: 992px) {
    .footer-text-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 0 40px;
    }
}

@media (max-width: 576px) {
    .footer-text-row {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .footer-content {
        padding: 40px 0;
    }
}

/* ============================================
   CONTACT FORM STYLES
   ============================================ */

.contact-form {
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Hubot Sans', sans-serif;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(80, 125, 60, 0.25);
}

.contact-form textarea.form-control {
    resize: none;
}

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

.btn-primary {
    background-color: var(--light-green);
    border-color: var(--light-green);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 92, 56, 0.3);
}

/* ============================================
   CONTACT INFO SECTION
   ============================================ */

.contact-info {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 15px;
}

.contact-info h2 {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info h3 {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--primary-green);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

@media (max-width: 992px) {
    .nav-container {
        max-width: 100%;
    }

    .hero-section {
        margin-bottom: 60px;
    }

    .content-section {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
    }

    .contact-info {
        padding: 2rem;
        margin-top: 2rem;
    }

    /* Adjust overlay sizes for smaller screens */
    .nav-overlay,
    .contact-btn-overlay {
        height: 30%;
    }

    .hero-section {
        margin-bottom: 40px;
    }

    .content-section {
        margin-bottom: 40px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.alert {
    border-radius: 10px;
    font-family: 'Hubot Sans', sans-serif;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}
