/*
Theme Name: HQ Dried Fruits
Description: Custom lightweight theme for HQ Dried Fruits.
Author: Devron
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

:root {
    --color-cta: #FFFFFF;
    --color-footer-bg: rgba(0, 0, 0, 0.4);
    --color-bg: #E6E7EF;
    --color-accent: #52149999;
    --font-main: 'Montserrat', sans-serif;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: #333;
    font-weight: 500;
    line-height: normal;
    /* Maps to auto */
    letter-spacing: 0.05em;
    /* Maps to 5% */
    -webkit-font-smoothing: antialiased;
}

.container {
    box-sizing: border-box;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 80px;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Global Figma Math Grid */
.figma-grid {
    display: grid;
    /* 44fr left : 20fr center : 20fr center : 44fr right */
    grid-template-columns: 2.2fr 1fr 1fr 2.2fr;
    gap: 0;
    width: 100%;
    justify-content: center;
    /* Horizontally centered on page */
}

/* ACF Dynamic Text Constraints */
.acf-text-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header & Navigation */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 30px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo.logo-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 14px 15px;
    height: 76px;
    text-decoration: none;
}

.site-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.header-center-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu.pill-menu {
    list-style: none;
    display: flex;
    align-items: center;
    background-color: transparent;
    border-radius: 40px;
    padding: 10px;
    gap: 10px;
    height: 76px;
    margin: 0;
}

.nav-menu.pill-menu li {
    height: 100%;
}

.nav-menu.pill-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    /* Reverted to white */
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 0 20px;
    height: 100%;
    border-radius: 28px;
    transition: opacity 0.3s ease;
}

.nav-menu.pill-menu a:hover {
    opacity: 0.8;
}

.nav-menu.pill-menu a.active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.header-right-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #521499;
    border: none;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    height: 48px;
    padding: 6px 6px 6px 24px;
    border-radius: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff;
}

.header-cta-btn .btn-text {
    margin-right: 16px;
}

.header-cta-btn .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #fff;
    color: #111;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 28px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* Hero Block */
.hero-block {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-color: #111;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    overflow: hidden;
}

/* Dynamic slider layers injected by JS */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(100%);
}

.hero-bg-slide.active {
    transform: translateX(0);
}

.hero-bg-slide.slide-left {
    transform: translateX(-100%);
}

.hero-bg-slide.slide-right {
    transform: translateX(100%);
}

.hero-bg-slide.no-transition {
    transition: none !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle dark gradient overlay based on the provided screenshot */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
    align-items: flex-end;
    /* Keeps items at bottom of the wrapper */
}

.hero-content {
    grid-column: 1 / 3;
    /* Spans the left 50% in new 4-col grid */
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

/* Button */
.hero-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-cta);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    padding: 6px 6px 6px 28px;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    transition: transform 0.3s ease;
    height: 52px;
    box-sizing: border-box;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.btn-text {
    margin-right: 20px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #000;
    border-radius: 50%;
}

.hero-slider-container {
    width: 100%;
    padding-bottom: 50px;
    position: relative;
    z-index: 2;
}

.hero-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 24px;
}

.hero-thumbnails {
    grid-column: 3;
    /* This natively forces the thumbnails identical to the 3rd progress line */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.hero-thumbnails img {
    width: 100%;
    height: 60px;
    /* Reduced specific size per user request */
    object-fit: cover;
    border: none;
    outline: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0.5;
}

.hero-thumbnails img.active,
.hero-thumbnails img:hover {
    opacity: 1;
}

/* Progress Lines */
.hero-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.progress-line {
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.progress-line.active {
    background-color: #fff;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .header-center-menu {
        flex: 0;
    }

    .header-cta-btn {
        display: none;
    }

    .nav-menu.pill-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-footer-bg);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 40px;
        border-radius: 0;
        gap: 20px;
        transition: right 0.3s ease;
    }

    .nav-menu.pill-menu a {
        color: #fff;
        height: auto;
        padding: 10px 0;
        justify-content: flex-start;
    }

    .nav-menu.pill-menu a:hover {
        background-color: transparent;
        opacity: 0.8;
    }

    .nav-menu.is-active {
        right: 0;
    }

    .menu-toggle.is-active .hamburger {
        background-color: transparent;
    }

    .menu-toggle.is-active .hamburger::before {
        transform: rotate(45deg);
        background-color: #fff;
    }

    .menu-toggle.is-active .hamburger::after {
        transform: rotate(-45deg);
        background-color: #fff;
    }

    .hero-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-btn {
        padding: 6px 6px 6px 20px;
    }

    .hero-thumbnails img {
        width: 100px;
        height: 65px;
    }

    .progress-line-active {
        flex: 0 0 200px;
    }
}

/* Footer Section */
.site-footer {
    background-color: var(--color-footer-bg);
    color: #fff;
    padding: 80px 0 40px;
}

.footer-top {
    /* Layout handled by .figma-grid */
    margin-bottom: 80px;
}

.footer-col-logo {
    grid-column: 1 / 2;
    justify-self: start;
}

.footer-col-logo img {
    max-width: 160px;
    height: auto;
}

.footer-col-links {
    grid-column: 3 / 4;
    justify-self: start;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-menu a:hover {
    opacity: 1;
    color: #fff;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: var(--font-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-weight: 300;

    /* CRITICAL FIX: Overrides rogue inline <style> block matching WP-Die/Error screen */
    max-width: none !important;
    margin: 0 !important;
}

.footer-col-contact {
    grid-column: 4 / 5;
    justify-self: end;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 320px;
}

.footer-col-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-col-contact a:hover {
    opacity: 1;
    color: #fff;
}

.contact-address {
    line-height: 1.6;
    margin-top: 20px;
}

.footer-middle {
    /* Layout handled by .figma-grid */
    margin-bottom: 60px;
    row-gap: 40px;
}

.footer-cta-text {
    grid-column: 1 / 5;
}

.footer-cta-text p {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 500;
}

.footer-form {
    grid-column: 1 / 5;
}

.footer-form form {
    display: flex;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.form-input {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    flex-grow: 1;
    min-width: 0;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.form-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.4);
}

.form-submit {
    border: none;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
    /* Removed custom padding so it natively inherits exact size from .hero-btn */
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-top {
        display: flex;
        flex-direction: column;
        gap: 50px;
        margin-bottom: 50px;
    }

    .footer-col-contact {
        align-items: flex-start;
        text-align: left;
    }

    .footer-col-links {
        justify-content: flex-start;
    }

    .footer-middle {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .footer-cta-text p {
        font-size: 26px;
    }

    .form-input {
        width: 100%;
        max-width: 100%;
    }

    .footer-form,
    .footer-form form {
        width: 100%;
    }

    .footer-form form {
        flex-direction: column;
        align-items: stretch;
    }

    .form-submit {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }
}

/* -------------------------------------
   ABOUT US SECTION
------------------------------------- */
.about-section {
    padding: 100px 0;
    /* Standardized */
    background-color: var(--color-bg);
}

.about-left {
    grid-column: 1 / 2;
    /* Spans the left 2.2fr column */
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: #521499;
    /* Derived color from reference */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-label-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #333;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    /* Standardized */
}

.about-content {
    grid-column: 2 / 5;
    /* Starts at left center grid, spans all the way till right fat grid */
}

.about-heading {
    font-size: 32px;
    line-height: 1.4;
    font-weight: 500;
    margin-top: -4px;
    /* Optically align baseline height with section label in col 1 */
    color: #111;
    margin-bottom: 60px;
    max-width: 800px;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 220px 220px 1fr;
    gap: 20px;
    width: 100%;
}

.stat-box {
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px 40px 40px 20px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 180px;
    max-height: 180px;
    /* Box height lock restored per user request */
    overflow: hidden;
}

.about-stats-grid .stat-box:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.about-stats-grid .stat-box:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.about-stats-grid .stat-box:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.about-stats-grid .stat-box:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

.stat-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: max-content;
    /* Hugging the height */
}

.stat-box.stat-purple {
    background-color: #521499;
    color: #fff;
}

.stat-number {
    font-size: 64px;
    font-weight: 500;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
}

.stat-box.stat-image-box {
    padding: 0;
    max-width: none;
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.stat-box.stat-image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .about-inner {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .about-stats-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .about-stats-grid .stat-box {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        max-height: none;
    }
}

.about-heading {
    font-size: 24px;
    margin-bottom: 40px;
}

.about-left {
    grid-column: 1 / 2;
}

.about-content {
    grid-column: 2 / 5;
}

@media (max-width: 768px) {
    .about-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-box.stat-image-box {
        min-height: 250px;
    }

    .stat-box {
        padding: 30px;
        min-height: 160px;
    }
}

/* -------------------------------------
   EXPORT SECTION
------------------------------------- */
.export-section {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.export-inner {
    display: grid;
    /* Switched back to grid for column spanning */
}

.export-content {
    grid-column: 1 / 3;
    /* Spans left fat and center left */
}

.export-map {
    grid-column: 3 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-map-container {
    width: 100%;
    min-height: 400px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

#world-map {
    width: 100%;
    height: auto;
}

.figma-image-map {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
}

.export-heading {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 500;
    color: #111;
    margin-bottom: 40px;
}

/* Dark variant of button for light backgrounds */
.hero-btn.btn-dark {
    background-color: #000;
    color: #fff;
}

.hero-btn.btn-dark .btn-icon {
    background-color: #fff;
    color: #000;
}

.hero-btn.btn-dark .btn-icon path {
    stroke: #000;
}

.country-wrap {
    margin-top: 60px;
}

.country-wrap h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111;
}

.country-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.country-tag {
    display: inline-block;
    padding: 10px 24px;
    background-color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.country-tag:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

.country-tag.active {
    background-color: #521499;
    color: #fff;
    border-color: #521499;
}

/* Redundant definitions removed */

#world-map path {
    fill: #b0b0b0 !important;
    /* Muted gray for high fidelity look */
    stroke: #ffffff !important;
    stroke-width: 0.8;
    /* Sharper borders */
    transition: all 0.3s ease;
    cursor: pointer;
}

#world-map path:hover {
    fill: #909090 !important;
}

#world-map path.is-active {
    fill: #521499 !important;
    /* Brand accent purple */
    stroke: #521499 !important;
    stroke-width: 1.5;
    /* Emphasize active block */
}

.map-bg-circle img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

@media (max-width: 992px) {
    .export-inner {
        display: flex;
        /* Switch from grid to flex for stacking */
        flex-direction: column;
    }

    .export-content {
        max-width: 100%;
        order: 2;
        /* Move text below map on mobile if preferred, or keep order:1 */
    }

    .export-map {
        justify-content: center;
        width: 100%;
        order: 1;
    }

    .export-heading {
        font-size: 36px;
    }
}

/* -------------------------------------
   PRODUCTS SECTION
------------------------------------- */
.products-section {
    padding: 100px 0;
    /* Standardized */
    background-color: var(--color-bg);
}

.products-header {
    text-align: center;
    margin-bottom: 60px;
}

.products-header .section-label-btn {
    margin-bottom: 20px;
}

.products-heading {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 500;
    color: #111;
}

.products-grid {
    /* Layout is now handled globally via .figma-grid */
    margin-top: 40px;
}

.product-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 30px;
    color: #fff;
    /* Base background color logic matching the overall pastel tone of the cards */
    background-color: #8c78b4;
}

/* Individual Card Tints */
.product-card:nth-child(1) {
    grid-column: 1 / 2;
    justify-self: start;
    background: linear-gradient(180deg, #A89AC8 0%, #685A82 100%);
}

.product-card:nth-child(2) {
    grid-column: 2 / 4;
    justify-self: center;
    background: linear-gradient(180deg, #E6DFA3 0%, #8A845A 100%);
}

.product-card:nth-child(3) {
    grid-column: 4 / 5;
    justify-self: end;
    background: linear-gradient(180deg, #A8C8DB 0%, #5F7381 100%);
}

.product-header-inline {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    /* Vertically align them to each other */
    justify-content: flex-start;
    /* Horizontally left-aligned within the card */
    gap: 16px;
    /* Gap between number and title */
}

.product-number {
    font-size: 64px;
    font-weight: 400;
    line-height: 1;
    opacity: 0.9;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0;
    /* Clear previous auto margins */
}

.product-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* For clear cut PNGs */
.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
}

.product-content {
    position: relative;
    z-index: 2;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card,
    .products-grid .product-card:nth-child(1),
    .products-grid .product-card:nth-child(2),
    .products-grid .product-card:nth-child(3) {
        width: 100%;
        grid-column: auto;
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-heading {
        font-size: 32px;
    }
}

/* -------------------------------------
   CTA SECTION
------------------------------------- */
.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    max-height: 346px;
    /* Max height user requested */
    height: 346px;
    display: flex;
    align-items: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient similar to hero */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.cta-inner {
    position: relative;
    z-index: 2;
    align-items: center;
    width: 100%;
}

.cta-content {
    grid-column: 1 / 4;
    /* Flush left alignment across fat and both center grids */
}

.cta-heading {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.cta-form-wrap {
    grid-column: 4 / 5;
    /* Placed in the right fat grid */
    display: flex;
    align-items: center;
    justify-content: stretch;
    width: 100%;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.cta-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    color: #111;
}

.cta-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    /* Firefox support */
}

.cta-form .form-submit {
    align-self: flex-start;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .cta-inner {
        display: flex;
        /* Override grid on mobile */
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cta-heading {
        font-size: 40px;
    }

    .cta-form-wrap {
        width: 100%;
        padding: 0;
        justify-content: flex-start;
    }

    .cta-form {
        width: 100%;
    }
}

/* -------------------------------------
   CERTIFICATES SECTION
------------------------------------- */
.certificates-section {
    padding: 100px 0;
    /* Standardized */
    background-color: var(--color-bg);
    overflow: hidden;
    /* Prevent horizontal scroll from slider */
}

.certificates-inner {
    /* Uses global figma-grid alignment */
    align-items: flex-start;
    /* Forces the slider and title to start at exactly the same vertical height */
}

.certificates-content {
    grid-column: 1 / 3;
}

.certificates-heading {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 500;
    color: #111;
    margin: 0 0 30px 0;
    /* Stripped top margin to align perfectly with top of slider image */
}

.cert-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #111;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-nav-btn:hover {
    background-color: #111;
    color: #fff;
}

.certificates-slider-wrap {
    grid-column: 3 / 5;
    /* Maps to center of viewport in 4-col grid */
    position: relative;
    width: 100%;
}

.certificates-slider {
    width: 100%;
    overflow: visible;
    /* Prevents swiper from clipping inside the grid block */
}

.certificate-card {
    /* width is calculated dynamically by Swiper via slidesPerView: 2.5 */
    height: auto;
    aspect-ratio: 1 / 1.414;
    /* Maintains A4 proportion dynamically */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.certificate-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover behavior to fit placeholders or real certs cleanly */
}



/* Navigation below the certificates, aligned left */
.certificates-nav {
    display: flex;
    justify-content: flex-start;
    /* Left aligns relative to the right-side grid block under the certificates */
    gap: 16px;
    margin-top: 30px;
}

@media (max-width: 1440px) {
    /* Handled visually by generic grid mechanics */
}

@media (max-width: 992px) {
    .certificates-inner {
        display: flex;
        /* Resets to stacking */
        flex-direction: column;
        align-items: flex-start;
    }

    .certificates-content {
        flex: none;
        width: 100%;
    }

    .certificates-heading {
        font-size: 36px;
    }

    .certificates-slider-wrap {
        width: 100%;
    }
}

/* -------------------------------------
   CONTACTS SECTION
------------------------------------- */
.contacts-wrapper {
    background-color: #FFFFFF;
    padding: 100px 0;
    /* Standardized to 100px */
}

.contacts-header {
    text-align: center;
    margin-bottom: 80px;
}

.contacts-header .section-label-btn {
    margin-bottom: 0;
}

.contacts-inner {
    /* Layout handled by .figma-grid */
    row-gap: 80px;
}

.contacts-left {
    grid-column: 1 / 2;
}

.contacts-phone-wrap {
    grid-column: 2 / 5;
}

.contacts-phone {
    font-size: 64px;
    /* Reduced from 80px to fit in 1 row */
    font-weight: 500;
    color: #111;
    line-height: 1;
    letter-spacing: 0.05em;
    /* 5% character spacing */
}

.contact-write {
    grid-column: 2 / 4;
    grid-row: 2;
}

.contact-visit {
    grid-column: 4 / 5;
    grid-row: 2;
}

.contact-block {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 14px;
    font-weight: 600;
    color: #521499;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-link-lg,
.contact-text-lg {
    font-size: 24px;
    color: #111;
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.05em;
    /* 5% character spacing */
}

.contact-link-lg:hover {
    color: #521499;
}

.contact-hours {
    margin-top: 30px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .contacts-inner {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .contacts-phone-wrap {
        width: 100%;
    }

    .contacts-phone {
        font-size: 50px;
    }
}

@media (max-width: 768px) {
    .contacts-phone {
        font-size: 40px;
    }

    .contact-link-lg,
    .contact-text-lg {
        font-size: 20px;
    }
}

/* Map & Export Buttons */
.map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #FFFFFF;
    color: #333333;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.map-btn:hover {
    background-color: #f0f0f0;
}

.map-btn.active {
    background-color: #521499;
    color: #FFFFFF;
}

/* =========================================================================
   MOBILE RESPONSIVENESS FIXES (STRICTLY MOBILE)
   ========================================================================= */
@media screen and (max-width: 768px) {

    /* -------------------------------------------------------------------------
       1. GLOBAL RESET & DE-GRIDDING
       ------------------------------------------------------------------------- */
    .figma-grid,
    .products-grid,
    .contacts-inner,
    .map-section,
    .cta-inner,
    .certificates-inner {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .fat-column,
    .about-left,
    .about-content,
    .map-display,
    .contact-block {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Container global padding fix */
    section,
    .container,
    .about-inner,
    .export-inner,
    .products-inner,
    .cta-inner,
    .certificates-inner,
    .contacts-inner {
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Shrink headings generally */
    h2,
    .section-title,
    .about-heading,
    .export-heading {
        font-size: 28px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    /* -------------------------------------------------------------------------
       2. STICKY HEADER
       ------------------------------------------------------------------------- */
    .site-header {
        position: absolute !important;
        /* Not fixed, so it doesn't crop hero on scroll */
        top: 0 !important;
        width: 100% !important;
        background-color: transparent !important;
        /* Transparent menu */
        border-bottom: none !important;
        z-index: 999 !important;
        padding: 15px 0 !important;
    }

    .header-center-menu,
    .header-right-action {
        display: none !important;
        /* Hide desktop menu/button */
    }

    .menu-toggle {
        display: block !important;
    }

    .site-logo.logo-pill {
        height: 50px !important;
        padding: 5px 15px !important;
    }

    .site-logo img {
        height: 30px !important;
    }

    /* -------------------------------------------------------------------------
       3. HERO SECTION
       ------------------------------------------------------------------------- */
    .hero-block {
        height: 60vh !important;
        /* slightly higher to accommodate padding */
        min-height: 60vh !important;
        padding-top: 90px !important;
        /* push content down to not be cropped by header */
        justify-content: center !important;
    }

    .hero-content-wrapper {
        width: 100% !important;
        align-items: center !important;
    }

    .hero-content {
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-title {
        width: 100% !important;
        font-size: 30px !important;
        line-height: 1.2 !important;
    }

    .hero-description {
        width: 100% !important;
        font-size: 14px !important;
    }

    .hero-thumbnails {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        gap: 15px !important;
    }

    /* -------------------------------------------------------------------------
       4. ABOUT STATS (3 in 1 row) & IMAGE
       ------------------------------------------------------------------------- */
    .about-stats-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .stat-box {
        /* Safer math: 100% width minus the two 10px gaps, divided by 3 */
        flex: 1 1 calc((100% - 20px) / 3) !important;
        max-width: calc((100% - 20px) / 3) !important;
        padding: 15px 5px !important;

        /* HEIGHT CONTROLS FOR THE 3 TEXT BOXES */
        min-height: auto !important;
        /* Kills the desktop 180px rule */
        height: 100px !important;
        /* <-- CHANGE THIS NUMBER to whatever you want */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        /* Centers text vertically */
    }

    .stat-number {
        font-size: 18px !important;
        text-align: center !important;
    }

    .stat-label {
        font-size: 10px !important;
        word-wrap: break-word !important;
        text-align: center !important;
    }

    .stat-box.stat-image-box {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        margin-top: 10px !important;
        padding: 0 !important;

        /* HEIGHT CONTROLS FOR THE IMAGE BOX */
        min-height: auto !important;
        height: 150px !important;
        /* <-- CHANGE THIS NUMBER to whatever you want */
        display: flex !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .stat-box.stat-image-box img,
    .about-image-side {
        width: 100% !important;
        height: 100% !important;
        /* Forces image to respect your box height */
        max-height: none !important;
        object-fit: cover !important;
        /* Prevents image squishing */
    }

    /* -------------------------------------------------------------------------
       5. MAP SECTION VERTICAL FLOW (Buttons -> Map -> Learn More)
       ------------------------------------------------------------------------- */
    .export-section .map-section {
        display: flex !important;
        flex-direction: column !important;
    }

    .map-left-content {
        display: contents !important;
        /* Allows children to sort alongside map-display */
    }

    .export-section .section-label-btn {
        order: 1 !important;
        margin: 0 auto 15px auto !important;
    }

    .export-section .export-heading {
        order: 2 !important;
        margin-bottom: 20px !important;
    }

    .export-section .countries-subtitle {
        order: 3 !important;
        text-align: center !important;
        margin-bottom: 15px !important;
    }

    .map-buttons {
        order: 4 !important;
        /* Flow 1: Buttons */
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        width: 100% !important;
        scroll-snap-type: x mandatory !important;
        gap: 10px !important;
        padding-bottom: 10px !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
    }

    .map-btn {
        flex: 0 0 auto !important;
        scroll-snap-align: start !important;
    }

    .map-display {
        order: 5 !important;
        /* Flow 2: Map Image */
        width: 100% !important;
        margin: 15px 0 !important;
    }

    #main-map-image,
    .map-display img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .export-section .hero-btn {
        order: 6 !important;
        /* Flow 3: Button */
        margin: 15px auto 0 auto !important;
        align-self: center !important;
    }

    /* -------------------------------------------------------------------------
       6. PRODUCTS VERTICAL STACK
       ------------------------------------------------------------------------- */
    .products-grid {
        display: flex !important;
        flex-direction: column !important;
        /* Stacked vertically like screenshot */
        gap: 15px !important;
        padding-bottom: 20px !important;
    }

    .product-card {
        width: 100% !important;
        height: 190px !important;
        min-height: auto !important;
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 20px !important;
        overflow: hidden !important;
        position: relative !important;
        margin: 0 !important;
    }

    .product-header-inline {
        position: relative !important;
        z-index: 5 !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .product-number {
        font-size: 32px !important;
        margin: 0 !important;
    }

    .product-title {
        font-size: 20px !important;
        margin: 0 !important;
    }

    .product-content {
        position: absolute !important;
        z-index: 5 !important;
        bottom: 20px !important;
        right: 20px !important;
        width: 50% !important;
        text-align: right !important;
        margin: 0 !important;
    }

    .product-content .acf-text-clamp {
        font-size: 11px !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 6 !important;
        /* allow more text on mobile */
    }

    .product-image-wrap {
        position: absolute !important;
        bottom: 0 !important;
        left: -10% !important;
        width: 65% !important;
        height: auto !important;
        z-index: 2 !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
    }

    .product-image-wrap img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        max-height: 250px !important;
    }

    /* -------------------------------------------------------------------------
       7. CTA BACKGROUND FIX & CERTIFICATES
       ------------------------------------------------------------------------- */
    .cta-inner {
        padding: 40px 20px !important;
        text-align: center !important;
        height: auto !important;
        /* Allow background to enclose text */
        min-height: auto !important;
    }

    .cta-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .cta-description {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }

    .certificates-nav {
        display: none !important;
        /* Hide native arrows */
    }

    .certificates-gallery {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .cert-image {
        width: 100% !important;
        height: auto !important;
    }
}