/* agarbattimakingmachine.com - Premium Custom Styling */

:root {
    --primary: #0f172a;       /* Dark Slate/Indigo */
    --primary-light: #1e293b; /* Medium Slate */
    --accent: #d97706;        /* Amber/Gold */
    --accent-hover: #b45309;  /* Darker Amber */
    --accent-light: #fef3c7;  /* Light Amber background */
    --text-dark: #0f172a;     /* Dark Slate Text */
    --text-muted: #64748b;    /* Slate Gray Text */
    --bg-light: #f8fafc;      /* Very Light Slate */
    --white: #ffffff;
    --success: #10b981;       /* Emerald/WhatsApp Green */
    --success-hover: #059669;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-whatsapp {
    background-color: var(--success);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
}

/* Top bar contact banner */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.875rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-links {
    display: flex;
    gap: 20px;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.top-bar-link:hover {
    opacity: 1;
    color: var(--accent);
}

/* Header & Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: var(--white);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-light);
    position: relative;
    padding: 10px 0;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

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

.nav-cta {
    margin-left: 10px;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--white);
    z-index: 999;
    padding: 40px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: var(--transition);
}

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

.mobile-nav-close {
    align-self: flex-end;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e1b4b 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-title span {
    color: var(--accent);
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Hero Machinery Graphic */
.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.graphic-bg {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.2) 0%, transparent 75%);
    border-radius: 50%;
    animation: rotateBg 20s linear infinite;
    position: absolute;
}

.graphic-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 350px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    position: relative;
    transform: translateY(0);
    animation: floatCard 6s ease-in-out infinite;
}

.graphic-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.graphic-label {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.graphic-sub {
    font-size: 0.875rem;
    opacity: 0.8;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-light);
    color: var(--primary-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* Product Grid & Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 119, 6, 0.3);
}

.product-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    position: relative;
    padding: 20px;
    text-align: center;
}

.product-image-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
}

.product-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.product-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid var(--bg-light);
    padding-top: 15px;
}

/* Feature Checklist Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-box-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.feature-box-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-box-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Product Detail Page Styles */
.product-detail-layout {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-large-placeholder {
    height: 380px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #cbd5e1 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.product-info-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--bg-light);
    padding-bottom: 20px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 10px;
}

.product-detail-cat {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-description-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: justify;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.specs-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.specs-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

.specs-table td {
    padding: 12px 16px;
}

.specs-table td.spec-name {
    font-weight: 700;
    color: var(--primary-light);
    width: 40%;
}

.specs-table td.spec-val {
    color: var(--text-dark);
}

/* Optimization sections in detail page */
.optimization-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
    border-top: 1px solid #e2e8f0;
    padding-top: 50px;
}

.opt-box {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.opt-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.opt-title i {
    color: var(--accent);
}

.opt-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.opt-item-q {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.opt-item-a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FAQ Accordion Styling */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-question {
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    width: 100%;
    text-align: left;
    border: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 400;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--accent);
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}

/* Modal Popup Form */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--primary);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-align: center;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-light);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: var(--transition);
    font-family: var(--font);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.form-response {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    display: none;
}

.form-response.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
}

.form-response.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
}

/* Contact Info Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-info-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.contact-info-text {
    color: var(--text-muted);
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 350px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer & Floating CTA */
.footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 20px;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent);
}

.footer-about-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social-icon:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-item {
    font-size: 0.95rem;
}

.footer-link-item:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--accent);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

/* Sticky Bottom Mobile CTA */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 990;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-cta-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.mobile-cta-item.cta-call {
    background-color: var(--primary);
    color: var(--white);
}

.mobile-cta-item.cta-whatsapp {
    background-color: var(--success);
    color: var(--white);
}

.mobile-cta-item.cta-enquire {
    background-color: var(--accent);
    color: var(--white);
}

/* Locations Directory Page Styling */
.directory-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e1b4b 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.directory-hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.directory-search-container {
    max-width: 600px;
    margin: 30px auto 0;
    position: relative;
    z-index: 5;
}

.directory-search-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 50px;
    padding: 6px 10px 6px 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    transition: var(--transition);
}

.directory-search-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.2);
}

.directory-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: var(--font);
    color: var(--text-dark);
    padding: 10px 0;
}

.directory-search-icon {
    font-size: 1.25rem;
    color: var(--accent);
    margin-right: 15px;
}

.state-accordion-container {
    max-width: 900px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.state-card {
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.state-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 23, 42, 0.15);
}

.state-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 22px 28px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.state-card-header:hover {
    background-color: var(--bg-light);
}

.state-card-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.state-card-icon {
    font-size: 1.4rem;
    color: var(--accent);
}

.state-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.state-card-badge {
    font-size: 0.8rem;
    font-weight: 700;
    background-color: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
}

.state-card-toggle {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.state-card.active .state-card-toggle {
    transform: rotate(180deg);
    color: var(--accent);
}

.state-card.active {
    border-left: 5px solid var(--accent);
}

.state-card-body {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    padding: 0 28px;
}

.state-card.active .state-card-body {
    max-height: 2000px;
    padding: 10px 28px 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.districts-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding-top: 15px;
}

.district-pill-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background-color: var(--bg-light);
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-light);
    transition: var(--transition);
}

.district-pill-link:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.district-pill-link i {
    font-size: 0.75rem;
    opacity: 0.6;
    transition: var(--transition);
}

.district-pill-link:hover i {
    transform: translateX(3px);
    opacity: 1;
}

}

/* ROI Calculator Page Styles */
.calculator-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.calc-card {
    background-color: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-md);
    padding: 35px;
}

.calc-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 10px;
}

.calc-group {
    margin-bottom: 25px;
}

.calc-label-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-light);
}

.calc-val-display {
    color: var(--accent);
    font-size: 1.1rem;
}

.calc-slider {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-summary-box {
    background-color: var(--primary);
    color: var(--white);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-lg);
}

.calc-summary-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    text-align: center;
}

.calc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.05rem;
}

.calc-summary-row.total-profit {
    border-bottom: none;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.calc-summary-val {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--accent);
}

.calc-summary-row.total-profit .calc-summary-val {
    font-size: 1.8rem;
    color: var(--accent);
}

/* Machine Comparison Widget Styles */
.compare-checkbox-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255,255,255,0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
    transition: var(--transition);
}

.compare-checkbox-label:hover {
    background-color: var(--white);
    border-color: var(--accent);
}

.compare-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    width: 90%;
    max-width: 700px;
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.compare-bar.active {
    transform: translateX(-50%) translateY(0);
}

.compare-bar-info {
    font-size: 1rem;
    font-weight: 700;
}

.compare-bar-actions {
    display: flex;
    gap: 15px;
}

/* Comparison Modal */
.compare-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    z-index: 300;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.compare-modal-content {
    background-color: var(--white);
    width: 100%;
    max-width: 1000px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.compare-modal-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compare-modal-body {
    padding: 30px;
    overflow-y: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th {
    background-color: var(--bg-light);
    color: var(--primary);
    font-weight: 800;
    text-align: center;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}

.compare-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

.compare-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* Match Quiz Widget Styles */
.quiz-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-sm);
}

.quiz-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    min-height: 250px;
}

.quiz-step-indicator {
    height: 4px;
    background-color: #cbd5e1;
    border-radius: 2px;
    margin-bottom: 30px;
    display: flex;
    overflow: hidden;
}

.quiz-step-progress {
    height: 100%;
    background-color: var(--accent);
    width: 33.33%;
    transition: var(--transition);
}

.quiz-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.quiz-option-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary-light);
    transition: var(--transition);
}

.quiz-option-card:hover {
    border-color: var(--accent);
    background-color: var(--bg-light);
    transform: translateY(-3px);
}

.quiz-option-card.selected {
    border-color: var(--accent);
    background-color: var(--accent-light);
    color: var(--accent);
}

/* responsive media queries */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-gallery {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 90px; /* Space for sticky mobile bar + compare bar */
    }
    .top-bar {
        display: none;
    }
    .nav {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .optimization-sections {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .mobile-cta-bar {
        display: grid;
        z-index: 150; /* ensure it sits below compare modal but above other content */
    }
    
    /* Responsive Calculator */
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 20px;
    }
    .calc-card, .calc-summary-box {
        padding: 20px;
    }
    .calc-summary-row.total-profit .calc-summary-val {
        font-size: 1.5rem;
    }
    
    /* Responsive Compare Bar */
    .compare-bar {
        flex-direction: column;
        gap: 10px;
        border-radius: 16px;
        padding: 12px 20px;
        bottom: 80px; /* sit just above the sticky mobile-cta-bar */
        width: 95%;
    }
    .compare-bar-actions {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    .compare-bar-actions .btn {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    /* Responsive Match Quiz */
    .quiz-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    .quiz-card {
        padding: 20px;
        min-height: auto;
    }
    .quiz-option-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .quiz-option-card {
        padding: 15px;
    }
    
    /* Responsive Compare Modal */
    .compare-modal {
        padding: 10px;
    }
    .compare-modal-content {
        max-height: 95vh;
    }
    .compare-modal-header {
        padding: 15px 20px;
    }
    .compare-modal-body {
        padding: 15px;
    }
    .compare-table th, .compare-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .product-card-ctas {
        grid-template-columns: 1fr;
    }
}
