/* =========================================
   Panda Box Website Stylesheet
   Version with robust modal and alignment fixes.
   ========================================= */

/* --- Global Styles & Variables --- */
:root {
    --primary-green: #4CAF50;
    --primary-green-darker: #2E7D32;
    --highlight-color: #DAA520; /* New Goldenrod highlight color */
    --text-color-dark: #43342D; /* Deep, earthy brown for text */
    --background-soft: #FBF9F6; /* Warm, soft off-white for backgrounds */
    --accent-black: #212121;
    --border-color: #e0e0e0;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --title-font: 'Raleway', sans-serif; /* New title font */
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--body-font);
    color: var(--text-color-dark);
    line-height: 1.7;
    background-color: var(--background-soft);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--text-color-dark);
    margin-bottom: 0.7em;
    line-height: 1.3;
    font-weight: 600;
}

h2 {
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 2.1rem;
    color: var(--text-color-dark);
    margin-bottom: 0.7em;
    line-height: 1.3;
    text-transform: uppercase; /* Added for sleekness */
    letter-spacing: 1px; /* Added for style */
}

h1 { font-size: clamp(2.2rem, 5vw, 2.8rem); }
h3 { font-size: 1.4rem; color: var(--primary-green-darker); font-weight: 600;}
h4 { font-size: 1.5rem; }
h5 { font-size: 1.1rem; color: var(--primary-green-darker); font-weight: 600; text-transform: uppercase; }


p { margin-bottom: 1.2em; color: #5c5552; }

.section-intro {
    font-size: 1.1rem;
    color: #5c5552;
    max-width: 700px;
    margin: 0 auto 2em auto;
    text-align: center;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green-darker);
    text-decoration: none;
}

ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    margin-bottom: 1em;
}

section { 
    padding: 80px 0; 
}
.alt-background { 
    background-color: #f8f9fa; 
}

/* --- Section Separator --- */
section:not(.hero-video) {
    border-top: 1px solid var(--border-color);
}

/* --- On-Scroll Animation --- */
.hidden-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.hidden-animate.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Header & Navigation --- */
header {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    flex-shrink: 0;
}

.logo .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo .logo-link img {
    height: 45px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.logo .logo-text {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green-darker);
    line-height: 1;
    white-space: nowrap;
}

/* --- Main Navigation (Desktop) --- */
nav#main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

nav#main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav#main-nav ul li { margin-left: 30px; }

nav#main-nav ul li a {
    text-decoration: none;
    color: var(--text-color-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease, border-color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav#main-nav ul li a:hover,
nav#main-nav ul li a.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

/* --- Header Controls (Language + Mobile Toggle) --- */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

/* --- Language Switcher Dropdown Styles (REFINED) --- */
.language-switcher {
    position: relative;
}

.language-switcher img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.current-lang-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background-color: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
    color: var(--text-color-dark);
}

.current-lang-display:hover {
    opacity: 0.7;
}

.current-lang-display .fa-chevron-down {
    font-size: 0.8rem;
    margin-left: 4px;
    color: #777;
    transition: transform 0.2s ease-in-out;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    z-index: 10;
    overflow: hidden;
    padding: 5px 0;
}

.language-switcher:hover .lang-dropdown {
    display: block;
}

.language-switcher:hover .current-lang-display .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown .lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color-dark);
}

.lang-dropdown .lang-item:hover {
    background-color: #f5f5f5;
}


/* --- Mobile Menu Toggle Button --- */
#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-color-dark);
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}

/* --- General CTA Button Style --- */
a.cta-button,
button.cta-button {
    display: inline-block;
    background-color: var(--primary-green);
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

a.cta-button:hover,
button.cta-button:hover {
    background-color: var(--primary-green-darker);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(46, 125, 50, 0.4);
}

/* --- Navigation Quote Button --- */
nav#main-nav ul li a.nav-quote-button {
    color: #ffffff;
}

a.nav-quote-button {
    padding: 8px 22px;
    font-weight: 500;
    margin: 0;
    box-shadow: none;
    border-bottom: none;
}

a.nav-quote-button:hover {
    color: white; 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}


/* --- FINAL VIDEO HERO SECTION --- */
.hero-video {
    height: calc(100vh - 80px);
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    border-top: none !important;
    background-color: #333;
    background-image: url('images/hero-fallback.jpg');
    background-size: cover;
    background-position: center;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-background-video.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-headline {
    text-align: center;
    margin-bottom: 1em;
}

.headline-line {
    font-weight: 700;
    margin: 0 0 1.5rem 0; /* Adds the gap between the lines */
    padding: 0;
    color: var(--soft-white); /* Ensures text color is white */
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7);
}

.headline-line:last-child {
    margin-bottom: 0;
}

.headline-line-two {
    font-family: var(--heading-font);
    font-size: clamp(2.2rem, 5vw, 2.8rem); /* Matches the h1 size */
}

.headline-line .highlight {
    position: relative;
    display: inline-block;
    padding: 0.2em 0.6em;
    z-index: 1;
    color: var(--soft-white);
    text-shadow: none;
}

.headline-line .highlight::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -10px -5px -8px;
    background-color: var(--highlight-color);
    transform-origin: center center;
    animation: paint-in 1s cubic-bezier(0.77, 0, 0.175, 1) backwards;
    clip-path: polygon(0 8%, 2% 12%, 5% 5%, 10% 10%, 20% 4%, 30% 8%, 50% 3%, 70% 8%, 80% 2%, 90% 5%, 95% 12%, 100% 8%, 100% 90%, 95% 95%, 90% 92%, 80% 98%, 70% 93%, 50% 97%, 30% 92%, 20% 96%, 10% 90%, 5% 95%, 0 90%);
}

.hero-video p {
    color: #ffffff;
    max-width: 600px;
    margin: 1em auto 2em auto;
    font-size: 1.1rem;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-video .mini-features {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-video .mini-features span {
    color: #ffffff;
    margin: 5px 20px;
}

.hero-video .mini-features i {
    color: var(--primary-green);
}

.hero-video .cta-button {
    margin-top: 1.5em;
}


/* --- Why Choose Us Section --- */
#why-us h2 { text-align: center; margin-bottom: 1.5em; }

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-us-item {
    text-align: center; /* Center icon */
}

.why-us-item .icon-large {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 0.5em;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.why-us-item:hover .fa-tags {
    transform: rotate(25deg);
}

.why-us-item:hover .fa-recycle {
    transform: scale(1.2);
}

.why-us-item:hover .fa-shield-alt {
    transform: scale(1.2);
}

.why-us-item:hover .fa-shipping-fast {
    transform: rotate(5deg) translateX(5px);
}

.why-us-item h3 {
    text-align: center; /* Center heading */
    font-size: 1.25rem;
    margin-bottom: 0.5em;
    color: var(--text-color-dark);
}

.why-us-item p {
    text-align: left; /* Justify text */
}


/* --- "Our Process" Section (Upgraded Animation) --- */
#our-process h2 { text-align: center; }

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 3em;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    padding-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.visible .process-step {
    opacity: 1;
    transform: translateY(0);
}

.visible .process-step:nth-child(2) {
    transition-delay: 0.2s;
}

.visible .process-step:nth-child(3) {
    transition-delay: 0.4s;
}

.visible .process-step:nth-child(4) {
    transition-delay: 0.6s;
}

.process-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5em auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid var(--border-color);
}

.process-icon-wrapper i {
    font-size: 2rem;
    color: var(--primary-green);
    transform: scale(0.5);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
    transition-delay: inherit;
}

.process-number {
    position: absolute;
    top: -15px;
    left: 50%;
    background-color: var(--primary-green-darker);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font);
    font-weight: 700;
    border: 2px solid var(--background-soft);
    transform: translateX(-50%) scale(0.5);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
    transition-delay: inherit;
}

.visible .process-step .process-icon-wrapper i,
.visible .process-step .process-number {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.visible .process-step .process-icon-wrapper i {
    transform: scale(1);
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5em;
}

.process-step p {
    font-size: 0.9rem;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(50% + 40px);
    width: 0;
    height: 2px;
    background-image: linear-gradient(to right, var(--border-color) 60%, transparent 40%);
    background-size: 12px 2px;
    transition: width 0.4s ease-in-out;
    z-index: -1;
}

.visible .process-step:not(:last-child)::after {
    width: calc(100% - 80px);
}

.visible .process-step:nth-child(1)::after {
    transition-delay: 0.3s;
}
.visible .process-step:nth-child(2)::after {
    transition-delay: 0.5s;
}
.visible .process-step:nth-child(3)::after {
    transition-delay: 0.7s;
}


/* --- Product Catalogue Section --- */
#products h2 { text-align: center; }

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2em;
}

.catalogue-item {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalogue-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.catalogue-item img {
    width: 100%;
    height: 125px; /* Adjusted height */
    object-fit: contain;
    margin-bottom: 1.5em;
    transition: transform 0.3s ease;
}

.catalogue-item:hover img {
    transform: scale(1.05);
}

.catalogue-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5em;
}

.catalogue-item p {
    flex-grow: 1;
    margin-bottom: 1.5em;
}

.pdf-button {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: auto;
}

.pdf-button:hover {
    background-color: var(--primary-green);
    color: #ffffff;
}

/* --- Full Catalogue CTA Section --- */
#full-catalogue-cta {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: #ffffff;
    background-image: url('images/hero-fallback.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#full-catalogue-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#full-catalogue-cta .container {
    position: relative;
    z-index: 2;
}

#full-catalogue-cta h2,
#full-catalogue-cta .section-intro {
    color: #ffffff;
}


/* --- Panda Lunch Box Section --- */
#panda-lunch-box h2 { 
    margin-bottom: 0.5em; 
}

.sustainability-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.sustainability-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.sustainability-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sustainability-text p:last-of-type { margin-bottom: 0; }
.sustainability-text strong { color: var(--primary-green-darker); }

.product-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#panda-lunch-box.visible .feature-item {
    opacity: 1;
    transform: translateX(0);
}

#panda-lunch-box.visible .feature-item:nth-child(2) {
    transition-delay: 0.1s;
}

#panda-lunch-box.visible .feature-item:nth-child(3) {
    transition-delay: 0.2s;
}

#panda-lunch-box.visible .feature-item:nth-child(4) {
    transition-delay: 0.3s;
}

.feature-item i {
    color: var(--primary-green);
}

#panda-lunch-box .cta-button {
    margin-top: 1.5em;
    padding: 10px 25px;
    font-size: 0.95rem;
    align-self: flex-start;
}

/* --- Custom Branding Section --- */
#custom-branding {
    text-align: center;
}

#custom-branding .branding-content p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 1.5em auto;
    line-height: 1.8;
}

/* --- REFINED About Us Section --- */
#about h2 {
    text-align: center;
    margin-bottom: 0.5em;
}

#about .about-tagline {
    font-family: var(--heading-font);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 0.7em;
}

#about .about-header .section-intro {
    margin-bottom: 4em;
}

.about-item, .about-solution, .about-summary {
    margin-bottom: 50px;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    margin-top: 2.5em;
}

.solution-item i {
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 0.7em;
}

.solution-item h5 {
    margin-bottom: 0.7em;
    font-size: 1.2rem;
}

.solution-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.quote {
    font-style: italic;
    border-left: 4px solid var(--primary-green);
    padding: 15px 25px;
    margin: 2em auto;
    font-size: 1.2rem;
    background-color: #ffffff;
    border-radius: 0 4px 4px 0;
    max-width: 650px;
}

.about-summary {
    text-align: center;
    margin-top: 40px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.about-summary p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.about-cta {
    margin-top: 1.5em;
}


/* --- Contact Section --- */
#contact h2 { text-align: center; margin-bottom: 0.5em; }

#contact .section-intro {
    max-width: 600px;
}

.contact-form {
    margin-top: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    padding: 35px 45px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    border: 1px solid var(--border-color);
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color-dark);
    font-size: 0.95rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group-consent {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}
.form-group-consent input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 10px;
    width: auto;
}
.form-group-consent label {
    font-size: 0.9rem;
    font-weight: normal;
    margin-bottom: 0;
}
.consent-details {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 25px;
    line-height: 1.5;
}

.contact-form button[type="submit"] {
    width: auto;
    min-width: 180px;
    margin: 10px auto 0 auto;
    display: block;
}

/* --- Privacy Policy Section (for privacy.html) --- */
#privacy {
    padding-bottom: 40px;
}
#privacy h2 {
    text-align: center;
    margin-bottom: 1.5em;
}
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}
.privacy-content h4 {
    font-size: 1.3rem;
    color: var(--text-color-dark);
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.privacy-content p {
    line-height: 1.8;
    margin-bottom: 1em;
}


/* --- Footer --- */
.revised-footer {
    background-color: var(--accent-black);
    color: #ccc;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}
.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
    background-color: var(--background-soft);
    padding: 5px;
    border-radius: 4px;
    display: inline-block;
}
.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #aaa;
}
.revised-footer h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links ul, .footer-contact p {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #ccc;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}
.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}
.footer-contact i {
    color: var(--primary-green);
    width: 16px;
    text-align: center;
    font-size: 1rem;
}

.footer-social .social-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.footer-social .social-links a {
    color: #ccc;
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social .social-links a:hover {
    color: var(--primary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #444;
    text-align: center;
    padding: 25px 0;
    font-size: 0.85rem;
    color: #aaa;
}
.footer-bottom p { margin-bottom: 0; }

/* --- Back to Top Button --- */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-green);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    background-color: var(--primary-green-darker);
    color: white;
}

/* --- REFINED Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    line-height: 1;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}
.modal-close:hover { color: var(--text-color-dark); }

.modal-content h2 { 
    margin-top: 0; 
    margin-bottom: 0.5em; 
    text-align: center;
}
.modal-content > p {
    margin-bottom: 1.5em;
    font-size: 0.95rem;
    text-align: center;
}

.modal-form {
    margin-top: 0;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
}

.modal-form .form-group {
    margin-bottom: 15px;
}

.modal-form .full-width {
    grid-column: 1 / -1;
}

.modal-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 0;
}
.modal-form textarea { resize: vertical; }
.modal-form button { width: 100%; margin-top: 10px; }


/* --- Responsive Design Adjustments --- */
@media (max-width: 992px) {
    #mobile-menu-toggle { display: block; }
    .header-flex { flex-wrap: wrap; justify-content: space-between; }
    .logo { flex-grow: 1; }
    
    .hero-video {
        height: 80vh;
        min-height: 500px;
    }

    .hero-video .mini-features {
        flex-direction: column;
        gap: 15px;
    }
    
    nav#main-nav {
        display: none;
        order: 3;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: stretch;
    }
    nav#main-nav.mobile-menu-active { display: flex; }
    
    nav#main-nav ul { flex-direction: column; width: 100%; padding: 0; }
    nav#main-nav ul li { margin: 0; text-align: center; border-bottom: 1px solid var(--border-color); }
    nav#main-nav ul li:last-child { border-bottom: none; }
    nav#main-nav ul li a { display: block; padding: 15px 20px; border-bottom: none; }
    
    a.nav-quote-button {
        background-color: var(--primary-green);
        color: white;
        margin: 15px 20px;
        padding: 12px 20px;
        border-radius: 25px;
    }
    a.nav-quote-button:hover {
        background-color: var(--primary-green-darker);
        color: white;
    }
    
    .sustainability-content { grid-template-columns: 1fr; }
    .sustainability-image { order: -1; margin-bottom: 30px; }
    
    .solution-grid { grid-template-columns: 1fr; }
    
    .about-grid { grid-template-columns: 1fr; }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .process-step {
        padding-top: 0;
        margin-bottom: 30px;
    }
    .process-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    h2 { font-size: 1.7rem; }
    header, html { scroll-padding-top: 70px; }
    header { height: 70px; }
    nav#main-nav { top: 70px; }

    .hero-video-wrapper {
        display: none; /* Hides video on mobile for performance */
    }

    #panda-lunch-box .cta-button {
        align-self: center; /* Centers the button on mobile */
    }
    
    .modal-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-grid { text-align: center; }
    .footer-logo { margin: 0 auto 15px; }
    .footer-contact p { justify-content: center; }
    .footer-social .social-links {
        justify-content: center;
    }

    .product-feature-list {
        grid-template-columns: 1fr;
    }

    #about .about-tagline {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .logo .logo-text { font-size: 1.2rem; }
    .logo .logo-link img { height: 35px; }
    .contact-form { padding: 20px 15px; }
}

/* --- Keyframe Animations --- */
@keyframes paint-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* --- Optional Hand-Drawn Underline --- */
/* To use this, wrap a word in your HTML like this:
   <h4>...<span class="hand-drawn-underline">Simple.</span>...</h4> 
   You will also need to create a simple SVG file for the underline. */
.hand-drawn-underline {
    position: relative;
    display: inline-block;
}

.hand-drawn-underline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -5%;
    width: 110%;
    height: 15px;
    background-image: url('path/to/your/underline.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

/* --- Floating Message Us Widget (Updated for Scroll & Hover) --- */
#message-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: var(--primary-green);
    color: white;
    z-index: 998;
    cursor: pointer;
    
    /* Default state: Icon-only circle */
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);

    /* Initial hidden state */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    
    /* REFINED: More specific transitions for smoothness */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, width 0.3s ease, border-radius 0.3s ease, background-color 0.3s ease;
}

/* State when it becomes visible after scroll */
#message-widget.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

#message-widget i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

/* Hide the text span by default */
#message-widget span {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 600;
    font-family: var(--heading-font);
    font-size: 1rem;
    /* REFINED: Added a delay to the text expansion */
    transition: max-width 0.3s ease-in-out 0.1s;
}

/* --- Desktop-Only Hover Effect --- */
@media (min-width: 992px) {
    #message-widget:hover {
        width: 185px; /* INCREASED: Give more room for Czech text */
        border-radius: 50px;
        justify-content: flex-start;
        padding: 0 20px 0 15px;
        background-color: var(--primary-green-darker);
    }

    #message-widget:hover i {
        transform: scale(0.9);
    }

    /* "Unroll" the text span on hover */
    #message-widget:hover span {
        max-width: 140px; /* INCREASED: Allow the text itself to take more space */
        margin-left: 10px;
    }
}