:root {
    /* Colors */
    --homepage-primary: #FBC430;
    --homepage-secondary: #383455;
    --homepage-text-dark: #303030;
    --homepage-text-light: #818181;
    --homepage-white: #FFFFFF;
    --homepage-black: #101010;
    --homepage-light-bg: #F7F7F7;
    --homepage-border: #E2E2E2;
    --homepage-footer-text: #000000;

    /* Fonts */
    --homepage-font-inter: 'Inter', sans-serif;
    --homepage-font-montserrat: 'Montserrat', sans-serif;
    --homepage-font-manrope: 'Manrope', sans-serif;
    --homepage-font-poppins: 'Poppins', sans-serif;

    /* Container */
    --container-max-width: 1200.0px;
    --container-padding-left: 15.0px;
    --container-padding-right: 15.0px;
}

/* Alert Styles */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-success::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-error::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

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

body {
    font-family: var(--homepage-font-inter);
    color: var(--homepage-text-dark);
    margin: 0;
    padding: 0;
    background-color: var(--homepage-white);
    overflow-x: hidden;
    line-height: 1.6;
    /* Added for consistency with about.css */
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Fixes inline image spacing issues */
}

section {
    overflow-x: hidden;
}

.container {
    max-width: 1200.0px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Reusable Components */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--homepage-primary);
    color: var(--homepage-black);
    font-family: var(--homepage-font-inter);
    font-weight: 500;
    font-size: 18px;
    padding: 12px 26px;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    gap: 10px;
    line-height: 1.2;
    /* Prevent global line-height from affecting button height */
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary.full-width {
    width: 100%;
}

.section-header h2 {
    font-family: var(--homepage-font-montserrat);
    font-weight: 600;
    font-size: 32px;
    color: var(--homepage-secondary);
    margin: 0 0 6px 0;
}

.separator-line {
    width: 135px;
    height: 2px;
    background-color: var(--homepage-primary);
    margin-bottom: 16px;
}

.section-header.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-desc {
    font-family: var(--homepage-font-inter);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: #303030;
    margin: 0 auto;
}

/* Hero Section */
.homepage-hero {
    position: relative;
    width: 100%;
    min-height: 724px;
    background-image: url('images/HeroBanner.png');
    background-size: cover;
    background-position: center;
    color: var(--homepage-white);
    display: flex;
    flex-direction: column;
}

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

.homepage-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hero-nav {
    background-color: #FFFFFF;
    padding: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    position: sticky;
    top: 0;
}



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

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
}

.nav-link {
    color: var(--homepage-white);
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-family: var(--homepage-font-inter);
    font-size: 18px;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

/* Active and Hover States */
/* Active and Hover States */
.nav-link:hover,
.nav-link.active {
    /* focused only on underline effect */
    color: var(--homepage-black);
    font-weight: 400;
    /* Force normal weight to prevent 'bold' look on some browsers/contexts */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--homepage-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Sub-menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: #FFFFFF;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 280px;
    white-space: nowrap;
    z-index: 1000;
}

/* Bridge the gap between nav item and dropdown to prevent hover loss */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 0;
}

.dropdown-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: #000000;
    text-decoration: none;
    font-family: var(--homepage-font-inter);
    font-size: 18px;
    transition: background-color 0.2s ease;
}

.dropdown-item a:hover {
    background-color: #F7F7F7;
}

/* Dropdown arrow icon */
.dropdown-arrow-icon {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 4px;
    vertical-align: middle;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow-icon,
.dropdown.active .dropdown-arrow-icon {
    transform: rotate(-135deg);
}

/* Homepage specific nav positioning moved to overrides above */

/* Inner wrapper for nav content to stick to container width */
.hero-nav-container {
    width: 100%;
    max-width: 1200.0px;
    padding: 0 15px;
    margin: 0 auto;
    /* Ensure centering */
    display: flex;
    align-items: center;
}

.nav-logo {
    flex: 1;
    /* Takes available space to push nav to center */
}

.nav-action {
    flex: 1;
    /* Takes available space to push nav to center */
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
}

/* Inner Page Navigation Wrapper - Remove specific padding, rely on container */
.inner-page-nav {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.inner-page-nav .hero-nav {
    position: relative;
    background-color: #FFFFFF;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    top: auto;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

/* Hero Content positioning */
.hero-content {
    margin-top: 300px;
    max-width: 602px;
}

.hero-content h1 {
    font-family: var(--homepage-font-montserrat);
    font-weight: 600;
    font-size: 50px;
    line-height: 1.2;
    margin-bottom: 22px;
    color: #FFFFFF;
}

.highlight-text {
    color: var(--homepage-primary);
}

.hero-content p {
    font-family: var(--homepage-font-inter);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 22px;
    color: #FFFFFF;
}

.hero-scroll {
    position: absolute;
    right: 0;
    top: 545px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--homepage-font-inter);
    font-size: 14px;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background-color: #FFFFFF;
}

/* About Section */
.homepage-about {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    height: 500px;
    width: 570px;
}

.image-composition {
    position: relative;
    width: 100%;
    height: 100%;
}

.rect-back {
    position: absolute;
    top: 0;
    left: 35px;
    /* 170 - 135 offset */
    width: 500px;
    height: 500px;
    background-color: #D9D9D9;
    /* Placeholder grey */
    border-radius: 10px;
}

.rect-border {
    position: absolute;
    top: 25px;
    left: 60px;
    width: 430px;
    height: 457px;
    border: 3px solid var(--homepage-primary);
    border-radius: 10px;
    z-index: 0;
    pointer-events: none;
}

.main-img-container {
    position: absolute;
    top: 0;
    left: 35px;
    width: 500px;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-header.centered {
    position: absolute;
    top: -30px;
    right: -30px;
    /* Approx positioning based on design visual logic */
    width: 138px;
    height: 138px;
    background-color: #D9D9D9;
    z-index: 0;
}

.rect-small-bottom {
    position: absolute;
    bottom: -30px;
    /* Approx */
    left: 15px;
    width: 138px;
    height: 138px;
    background-color: #D9D9D9;
    z-index: 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-content .btn-primary {
    align-self: flex-start;
}

.about-content h3 {
    font-family: var(--homepage-font-inter);
    font-weight: 400;
    font-size: 18px;
    color: #303030;
    margin: 0;
}

.text-block p {
    font-family: var(--homepage-font-inter);
    font-size: 18px;
    line-height: 1.6;
    color: #303030;
    margin-bottom: 20px;
}

/* Products Section */
.homepage-products {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 36px;
}

.product-card {
    position: relative;
    height: auto !important;
    /* Allow card to grow with title */
    border-radius: 10px;
    overflow: visible !important;
    /* Don't cut off centered titles */
    display: flex;
    flex-direction: column;
}

/* Base style for standalone product titles below cards */
.product-card-title,
.product-title {
    display: block !important;
    color: #000000 !important;
    text-align: center;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 22px;
}

/* Keep original styling for homepage cards with overlays */
.card-content h3 {
    font-family: var(--homepage-font-inter);
    font-weight: 500;
    font-size: 22px;
    color: #FFFFFF;
    margin: 0;
    text-transform: capitalize;
}

.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 53%, #000000 83%);
    opacity: 0.8;
    border-radius: 10px;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 22px;
    /* Approx padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.card-content h3 {
    font-family: var(--homepage-font-inter);
    font-weight: 500;
    font-size: 22px;
    color: #FFFFFF;
    margin: 0;
    text-transform: capitalize;
}

.card-icon {
    width: 30px;
    height: 30px;
    border: 1.5px solid #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore-card {
    background-color: #F3F3F3;
    border: 1px solid #BEBEBE;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.explore-card:hover {
    background-color: var(--homepage-primary);
    border-color: #BEBEBE;
}

.explore-content h3 {
    color: #000000;
    font-family: var(--homepage-font-inter);
    font-weight: 500;
    font-size: 22px;
}

/* Why Toffy Section */
.homepage-why {
    padding: 80px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 472px;
    /* Fixed width for image column as per design */
    gap: 30px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}

/* Default simple feature item for other pages (like Export) */
.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Special styling for Homepage "Why Toffy" section only */
.homepage-why .feature-item {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 15px;
    padding: 15px;
    border: 1px solid #FBC430;
    border-radius: 14px;
}

.feature-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    font-family: var(--homepage-font-manrope);
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 5px 0;
    color: #000000;
}

.feature-text p {
    font-family: var(--homepage-font-manrope);
    font-weight: 400;
    font-size: 16px;
    margin: 0;
    color: #000000;
    line-height: 1.6;
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Certifications */
.homepage-certifications {
    padding: 80px 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 36px;
}

.cert-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Testimonials */
.homepage-testimonials {
    padding: 80px 0;
}

.testimonials-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.testimonial-nav {
    cursor: pointer;
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quote-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.quote-text {
    font-family: var(--homepage-font-poppins);
    font-size: 20px;
    line-height: 1.36;
    color: #000000;
    margin-bottom: 43px;
}

.author-role {
    font-family: var(--homepage-font-inter);
    font-weight: 500;
    font-size: 18px;
    color: #000000;
    margin: 0 0 5px 0;
}

.author-location {
    font-family: var(--homepage-font-inter);
    font-weight: 400;
    font-size: 14px;
    color: #6A6A6A;
    margin: 0;
}

.separator-line.small {
    width: 100%;
    height: 1px;
    background-color: var(--homepage-primary);
    margin-top: 20px;
}

/* Contact Section */
.homepage-contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}



.inquiry-form {
    display: flex;
    background-color: #F7F7F7;
    padding: 30px;
    border-radius: 16px;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-family: var(--homepage-font-inter);
    font-size: 16px;
    color: #5B5B5B;
}

.form-group input,
.form-group textarea {
    padding: 16px;
    border: 1px solid #D4D4D4;
    border-radius: 10px;
    background-color: #FFFFFF;
    font-family: var(--homepage-font-inter);
    font-size: 16px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #5B5B5B;
    font-family: var(--homepage-font-inter);
    font-size: 16px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Footer */
.homepage-footer {
    padding: 80px 0 0 0;
    background-color: #FFFFFF;
    border-top: 1px solid #AEAEAE;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    /* Adjusted for visual balance: Brand wider, Links narrower, Contact wider */
    gap: 30px;
    margin-bottom: 70px;
    align-items: start;
}



.footer-logo {
    width: 153px;
    /* Keep logo size */
    margin-bottom: 16px;
}

.footer-brand p {
    font-family: var(--homepage-font-inter);
    font-size: 14px;
    line-height: 1.4;
    color: #000000;
    margin-bottom: 26px;
    letter-spacing: 0.28px;
}

.social-links p {
    font-family: var(--homepage-font-montserrat);
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    /* Increased gap */
}

.social-icons a {
    width: 44px;
    /* Increased size to match 2nd screenshot */
    height: 44px;
    border: 1px solid #BEBEBE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    border-color: #FBC430;
    background-color: rgba(251, 196, 48, 0.05);
}

.social-icons a img {
    width: 20px;
    /* Consistent icon size */
    height: 20px;
    object-fit: contain;
}

.footer-links h4,
.footer-products h4,
.footer-contact h4 {
    font-family: var(--homepage-font-montserrat);
    font-weight: 600;
    font-size: 20px;
    margin: 0 0 26px 0;
    padding-bottom: 10px;
    /* Add spacing for underline */
    border-bottom: 1px solid #FBC430;
    /* Yellow theme underline */
    display: inline-block;
    /* Ensures underline matches text width */
    width: 100%;
    /* Or fit-content depending on design preference, implied full width block usually in footers but let's try inline-block or width constraints */
    border-bottom: 1px solid #E5E5E5;
    /* Wait, user said "yellow theme color". Assuming replacement of typical border */
}

/* User wants SPECIFIC yellow underline. Let's make it cleaner */
.footer-links h4,
.footer-products h4,
.footer-contact h4 {
    font-family: var(--homepage-font-montserrat);
    font-weight: 600;
    font-size: 20px;
    margin: 0 0 26px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #FBC430;
    /* Theme Yellow */
    width: 100%;
    display: block;
}

.footer-links ul,
.footer-products ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-products li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    /* Increased from 14px */
}

.footer-links a,
.footer-products a {
    text-decoration: none;
    color: #000000;
    font-family: var(--homepage-font-inter);
    font-size: 16px;
    font-weight: 400;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-item a,
.contact-item p {
    text-decoration: none;
    color: #000000;
    font-family: var(--homepage-font-inter);
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid #B8B8B8;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--homepage-font-montserrat);
    font-size: 14px;
    color: #000000;
    margin: 0;
}

/* Responsive */
/* Hamburger Menu */
.hamburger {
    display: none;
    position: relative;
    z-index: 1002;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--homepage-secondary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

/* Hamburger Animation when Active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Large Tablets & Mobile */
@media (max-width: 991px) {
    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .hero-nav-container {
        position: relative;
    }

    .homepage-hero .hero-nav {
        width: 100%;
        max-width: 100%;
        margin: 0;
        left: 0;
        transform: none;
        padding: 10px 20px;
        position: relative;
        box-sizing: border-box;
        border-radius: 0;
    }

    /* Mobile Menu Styles */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 0 30px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 18px 25px;
        font-size: 16px;
        font-weight: 500;
        color: var(--homepage-secondary);
        transition: all 0.2s ease;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background-color: #fff9e6;
        color: var(--homepage-primary);
        padding-left: 30px;
    }

    /* Mobile Dropdown */
    .nav-menu .dropdown {
        position: relative;
    }

    .nav-menu .dropdown > .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Style the dropdown arrow icon for mobile */
    .nav-menu .dropdown-arrow-icon {
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--homepage-secondary);
        border-bottom: 2px solid var(--homepage-secondary);
        margin-right: 5px;
        margin-left: auto;
    }

    .nav-menu .dropdown.active .dropdown-arrow-icon {
        transform: rotate(-135deg);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #f8f8f8;
        display: none;
        width: 100%;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 500px;
    }

    .dropdown-menu .dropdown-item {
        border-bottom: none;
    }

    .dropdown-menu .dropdown-item a {
        padding: 14px 25px 14px 35px;
        font-size: 14px;
        color: #555;
        display: block;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .dropdown-menu .dropdown-item a:hover {
        background-color: #fff9e6;
        color: var(--homepage-primary);
    }

    /* Hide desktop nav-action, show it inside mobile menu later if needed */
    .nav-action {
        display: none !important;
    }

    /* Body scroll lock when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Navigation Logo */
    .nav-logo img {
        height: 40px;
    }

    /* Hero Content Fixes */
    .hero-content {
        margin-top: 40px;
        text-align: center;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .homepage-hero {
        min-height: auto;
        padding-bottom: 50px;
    }

    .hero-scroll {
        display: none;
    }

    /* Button Responsive */
    .btn-primary {
        font-size: 16px;
        padding: 12px 22px;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 26px;
    }

    .section-desc {
        font-size: 15px;
        line-height: 1.5;
    }

    .separator-line {
        width: 100px;
        margin-bottom: 12px;
    }

    /* Grids to Single Column */
    .about-grid,
    .why-grid,
    .contact-grid,
    .products-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .why-grid {
        display: flex;
        flex-direction: column-reverse;
    }

    /* About Section */
    .about-content h3 {
        font-size: 16px;
    }

    .text-block p {
        font-size: 15px;
        margin-bottom: 15px;
    }

    /* About Image Fix */
    .about-image-wrapper {
        width: 100%;
        height: auto;
        min-height: auto;
        margin-bottom: 20px;
    }

    .image-composition {
        position: static;
        width: 100%;
        height: auto;
    }

    .rect-back,
    .rect-border,
    .rect-small-bottom,
    .section-header.centered {
        display: none;
    }

    .main-img-container {
        position: static;
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .main-img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }

    /* Products Section */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        height: 180px !important;
    }

    .card-content {
        padding: 15px;
    }

    .card-content h3 {
        font-size: 16px;
    }

    .card-icon {
        width: 24px;
        height: 24px;
    }

    .card-icon img {
        width: 10px;
        height: 10px;
    }

    /* Why Toffy Section */
    .homepage-why .feature-item {
        padding: 12px;
        border-radius: 10px;
    }

    .feature-text h4 {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .feature-text p {
        font-size: 14px;
    }

    .feature-icon {
        width: 26px;
        height: 26px;
    }

    .feature-icon img {
        width: 22px;
        height: 22px;
    }

    .why-image img {
        border-radius: 10px;
        max-height: 350px;
        object-fit: cover;
    }

    /* Certifications */
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cert-item img {
        border-radius: 8px;
    }

    /* Testimonials */
    .testimonials-wrapper {
        flex-direction: column;
    }

    .quote-text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .author-role {
        font-size: 16px;
    }

    .author-location {
        font-size: 13px;
    }

    /* Contact Section */
    .contact-image {
        display: none;
    }

    .contact-form-wrapper {
        width: 100%;
    }

    .contact-form-wrapper .section-header h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .inquiry-form {
        padding: 16px;
        gap: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 15px;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-logo {
        width: 120px;
    }

    .footer-brand p {
        font-size: 13px;
    }

    .footer-links,
    .footer-products,
    .footer-contact {
        text-align: left;
    }

    .footer-links h4,
    .footer-products h4,
    .footer-contact h4 {
        display: block;
        width: 100%;
        font-size: 18px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .footer-links a,
    .footer-products a {
        font-size: 14px;
    }

    .footer-links li,
    .footer-products li {
        margin-bottom: 14px;
    }

    .contact-item {
        gap: 15px;
        margin-bottom: 16px;
    }

    .contact-item a,
    .contact-item p {
        font-size: 14px;
    }

    .footer-brand {
        text-align: left;
    }

    .social-links p {
        font-size: 16px;
    }

    .social-icons {
        justify-content: flex-start;
        gap: 12px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
    }

    .social-icons a img {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        padding: 16px 0;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    /* Reduce section padding on mobile */
    section[class*="homepage-"],
    .homepage-about,
    .homepage-products,
    .homepage-why,
    .homepage-certifications,
    .homepage-testimonials,
    .homepage-contact {
        padding: 50px 0;
    }

    .homepage-footer {
        padding: 50px 0 0 0;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .hero-content {
        margin-top: 30px;
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 26px;
        line-height: 1.25;
    }

    .hero-content p {
        font-size: 14px;
    }

    .homepage-hero {
        padding-bottom: 40px;
    }

    /* Buttons */
    .btn-primary {
        font-size: 14px;
        padding: 10px 18px;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 22px;
    }

    .section-desc {
        font-size: 14px;
    }

    .separator-line {
        width: 80px;
    }

    /* Products Grid - Single Column on Small Mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card {
        height: 200px !important;
    }

    .card-content h3 {
        font-size: 18px;
    }

    /* Explore Card */
    .explore-card {
        padding: 30px 20px;
        min-height: 120px;
    }

    .explore-content h3 {
        font-size: 16px;
    }

    /* About Section */
    .about-content h3 {
        font-size: 15px;
    }

    .text-block p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Why Toffy */
    .features-list {
        gap: 12px;
    }

    .homepage-why .feature-item {
        padding: 10px;
    }

    .feature-text h4 {
        font-size: 15px;
    }

    .feature-text p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Certifications */
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cert-item {
        max-width: 280px;
        margin: 0 auto;
    }

    /* Contact Section */
    .contact-form-wrapper .section-header h2 {
        font-size: 20px;
    }

    .inquiry-form {
        padding: 14px;
        gap: 14px;
        border-radius: 12px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    /* Sections Padding */
    section[class*="homepage-"],
    .homepage-about,
    .homepage-products,
    .homepage-why,
    .homepage-certifications,
    .homepage-testimonials,
    .homepage-contact {
        padding: 40px 0;
    }

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

    /* Footer */
    .footer-top {
        gap: 30px;
    }

    .footer-logo {
        width: 100px;
    }

    .footer-brand p {
        font-size: 12px;
    }

    .footer-links h4,
    .footer-products h4,
    .footer-contact h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .footer-links a,
    .footer-products a {
        font-size: 13px;
    }

    .footer-links li,
    .footer-products li {
        margin-bottom: 12px;
    }

    .contact-item a,
    .contact-item p {
        font-size: 13px;
    }

    .social-links p {
        font-size: 14px;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
    }

    .social-icons a img {
        width: 16px;
        height: 16px;
    }

    .footer-bottom p {
        font-size: 11px;
    }

    /* Alert styling for mobile */
    .alert {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 6px;
    }

    .alert::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}