:root {
    --primary-color: #0d3b66;
    /* Deep Ocean Blue */
    --secondary-color: #00a8e8;
    /* Fresh Water Blue */
    --accent-color: #eef4ed;
    /* Soft White/light blue tint */
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--accent-color);
    overflow-x: hidden;

    /* High-quality font antialiasing for crisp, smooth text */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-smooth: always;
    -webkit-text-stroke: 0.45px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-white {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(13, 59, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 59, 102, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.btn-white:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Adjust based on logo proportions */
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Search Container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
}

.search-icon:hover {
    color: var(--secondary-color);
    background: rgba(0, 168, 232, 0.1);
}

.search-input {
    width: 0;
    opacity: 0;
    padding: 8px 15px;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.4s ease;
    margin-left: 0;
    pointer-events: none;
}

.search-input.active {
    width: 250px;
    opacity: 1;
    margin-left: 10px;
    pointer-events: all;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 168, 232, 0.2);
}

.search-results {
    position: absolute;
    top: 50px;
    right: 0;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1001;
}

.search-results.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--accent-color);
}

.search-result-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.search-result-category {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: #999;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background: url('images/hero_family.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    text-align: left;
    color: var(--white);
    padding-top: 80px;
    /* Offset for navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(13, 59, 102, 0.8) 0%, rgba(13, 59, 102, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.text-highlight {
    color: var(--secondary-color);
}

.separator {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--accent-color);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    background: var(--white);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.8rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Catalog Section */
.catalog {
    padding: 100px 0;
    background: #f8fcfd;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 250px;
    background: #eef4ed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-category {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.product-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Server-rendered product page */
.product-page {
    background: #f5f9fc;
}

.product-page-main {
    min-height: 70vh;
    padding: 120px 0 80px;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #64748b;
    font-size: 0.92rem;
}

.product-breadcrumb a {
    color: var(--primary-color);
    font-weight: 600;
}

.product-breadcrumb span[aria-current="page"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-page-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding: 48px;
    background: var(--white);
    border: 1px solid rgba(13, 59, 102, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(13, 59, 102, 0.09);
}

.product-page-gallery {
    min-width: 0;
}

.product-page-main-image {
    display: block;
    width: 100%;
    height: 480px;
    padding: 28px;
    object-fit: contain;
    background: #f4f8fb;
    border-radius: 18px;
}

.product-page-placeholder {
    opacity: 0.55;
}

.product-page-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.product-page-thumbnail {
    width: 100%;
    height: 96px;
    padding: 8px;
    background: #f4f8fb;
    border: 1px solid #e4edf4;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.product-page-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-page-thumbnail:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.product-page-thumbnail.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 59, 102, 0.16);
}

.product-page-thumbnail:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

.product-page-info h1 {
    margin: 10px 0 16px;
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.product-page-location {
    margin-bottom: 24px;
    color: #486174;
    font-weight: 600;
}

.product-page-location i {
    margin-right: 7px;
    color: var(--secondary-color);
}

.product-page-description {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-line;
}

.product-page-cta {
    margin-top: 30px;
}

.product-page-cta i {
    margin-right: 8px;
}

.product-page-support {
    margin-top: 16px;
    color: #64748b;
    font-size: 0.92rem;
}

.product-page-local-cta {
    max-width: 820px;
    margin: 64px auto 0;
    text-align: center;
}

.product-page-local-cta h2 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.product-page-local-cta p {
    margin-bottom: 24px;
    color: #64748b;
}

.product-not-found {
    display: grid;
    min-height: 100vh;
    place-items: center;
    text-align: center;
}

.product-not-found img {
    width: 90px;
    margin-bottom: 24px;
}

.product-not-found h1 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-not-found p {
    margin-bottom: 28px;
    color: #64748b;
}

@media (max-width: 800px) {
    .product-page-main {
        padding: 96px 0 56px;
    }

    .product-page-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 22px;
    }

    .product-page-main-image {
        height: 340px;
        padding: 18px;
    }

    .product-breadcrumb span[aria-current="page"] {
        display: none;
    }
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #0a2e4f;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo img {
    height: 40px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Simplification for mobile, usually would need JS toggle */
    }

    .mobile-toggle {
        display: block;
    }

    .search-input.active {
        width: 180px;
    }

    .search-results {
        width: 90vw;
        right: -10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 60px;
        background-position: left center;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-links a {
        margin: 0 10px;
    }
}

/* Product Modal Specifics */
/* Product Modal Specifics */
.product-modal-content {
    max-width: 800px;
    width: 95%;
    /* Slightly wider on mobile if needed, but 90% is fine usually */
    max-height: 85vh;
    /* Reduce from 90vh */
    overflow-y: auto;
    padding: 30px;
    /* Reduce padding slightly */
}

/* Message Modal Specifics */
.message-modal-content {
    max-width: 400px;
    text-align: center;
    padding: 2rem;
}

.message-icon-box {
    margin-bottom: 1rem;
}

.message-icon-box i {
    font-size: 3rem;
}

.message-success {
    color: var(--secondary-color);
}

.message-error {
    color: #e74c3c;
}

#messageBtn {
    margin-top: 1.5rem;
    min-width: 120px;
}

/* Info Modal Specifics (Minimalist, to the right) */
.info-modal-overlay {
    background: rgba(0, 0, 0, 0.2);
    /* Lighter backdrop */
    z-index: 2000;
    /* Above product modal */
}

.info-modal-content {
    position: relative;
    /* Changed from absolute */
    width: 90%;
    max-width: 350px;
    /* Slightly wider */
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--primary-color);
    animation: fadeInUp 0.3s ease;
    /* Use existing fade up animation or standard */
    margin: 0 auto;
    /* Ensure centering logic if needed, but flex handles it */
}

/* Removed specific slideInRight animation to avoid side-effect confusion */


#infoTitle {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.info-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.info-body ul {
    list-style: none;
    padding: 0;
}

.info-body li {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.info-body li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 8px;
}

@media (min-width: 768px) {
    .product-detail-container {
        flex-direction: row;
    }
}

.detail-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    border-radius: 10px;
    object-fit: contain;
    max-height: 300px;
    /* Reduce from 400px to save vertical space */
    background: #f9f9f9;
    /* Add bg for transparent images */
}

.thumbnail-grid {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.detail-desc {
    color: var(--text-light);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* Added padding to prevent touching edges */
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.modal-content p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    max-width: 350px;
    /* Slightly wider */
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--primary-color);
    animation: fadeInUp 0.3s ease;
    /* Use existing fade up animation or standard */
    margin: 0 auto;
    /* Ensure centering logic if needed, but flex handles it */
}

/* Removed specific slideInRight animation to avoid side-effect confusion */


#infoTitle {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.info-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.info-body ul {
    list-style: none;
    padding: 0;
}

.info-body li {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.info-body li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 8px;
}

@media (min-width: 768px) {
    .product-detail-container {
        flex-direction: row;
    }
}

.detail-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    border-radius: 10px;
    object-fit: contain;
    max-height: 300px;
    /* Reduce from 400px to save vertical space */
    background: #f9f9f9;
    /* Add bg for transparent images */
}

.thumbnail-grid {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.detail-desc {
    color: var(--text-light);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* Added padding to prevent touching edges */
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.modal-content p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

#contactModal .modal-content {
    max-height: min(90vh, 760px);
    overflow-y: auto;
}

/* Keep functional dialogs usable while the privacy choice is still pending. */
.modal-overlay {
    z-index: 10002;
}

#contactModal .form-group {
    margin-bottom: 14px;
}

#contactModal .form-group label span {
    color: #6b7a86;
    font-size: 0.85em;
    font-weight: 500;
}

.contact-privacy-note {
    margin: -2px 0 16px !important;
    color: #5e6d78 !important;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: left !important;
}

.contact-privacy-note a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Footer Enhanced Styles */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 30px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    margin: 15px 0;
    line-height: 1.6;
}

.footer-info {
    margin-top: 20px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0;
    font-size: 0.9rem;
}

.footer-info a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.footer-info a:hover {
    color: var(--secondary-color);
    border-bottom-color: rgba(0, 180, 255, 0.45);
}

.footer-info i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.footer-links h4,
.footer-social h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.developer-credit {
    font-size: 0.9rem;
}

/* Institutional Pages Styles */
.institutional-page {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: var(--white);
}

.page-title {
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

/* FAQ Styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--accent-color);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.faq-item h3 i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.faq-item p {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* About Page Styles */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 50px;
}

.about-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-section h2 i {
    color: var(--secondary-color);
}

.about-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    line-height: 1.8;
}

.values-list li:last-child {
    border-bottom: none;
}

/* Legal Pages Styles */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin: 40px 0 20px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content ul li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-separator {
    margin: 20px auto 60px;
}

.legal-content a {
    color: #087987;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-summary {
    padding: 22px 24px;
    color: #173f45 !important;
    background: #eff8f8;
    border-left: 4px solid #0a8997;
    border-radius: 0 12px 12px 0;
    font-size: 1.05rem;
}

.legal-table-wrap {
    max-width: 100%;
    margin: 22px 0;
    overflow-x: auto;
    border: 1px solid #dce8e9;
    border-radius: 12px;
}

.legal-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    color: #435b60;
    background: #fff;
}

.legal-table th,
.legal-table td {
    padding: 16px;
    border-bottom: 1px solid #e5eeee;
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}

.legal-table th {
    color: #fff;
    background: #0a5963;
}

.legal-table tr:last-child td {
    border-bottom: 0;
}

.legal-table code {
    color: #075965;
    font-size: 0.9em;
}

.legal-contact {
    padding: 20px 22px;
    color: #3e595e;
    background: #f6f9f9;
    border: 1px solid #dce8e9;
    border-radius: 12px;
    font-style: normal;
    line-height: 1.8;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .page-title {
        font-size: 2rem;
    }

    .institutional-page {
        padding: 100px 0 60px;
    }
}

/* ============================================
   FLOATING ACTION BUTTONS
   ============================================ */

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
    animation: fadeInScale 0.5s ease forwards;
}

.floating-btn.show {
    opacity: 1;
    transform: scale(1);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.floating-btn:active {
    transform: scale(0.95);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    animation-delay: 0.1s;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
}

.scroll-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    animation-delay: 0.2s;
}

.scroll-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.scroll-btn i {
    transition: transform 0.3s ease;
}

.scroll-btn.rotate i {
    transform: rotate(180deg);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating buttons responsive */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* ============================================
   PROMO MODAL (BANNER)
   ============================================ */
.promo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promo-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.promo-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    /* or your preferred max width */
    max-height: 90vh;
    background: transparent;
    border-radius: 12px;
    padding: 0;
    box-shadow: none;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: visible;
    /* To allow close button to hang out if needed */
}

.promo-modal-overlay.active .promo-modal-content {
    transform: translateY(0);
}

.close-promo-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.2s ease;
}

.close-promo-modal:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

#promoModalBody img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Make it responsive */
@media (max-width: 600px) {
    .promo-modal-content {
        width: 95%;
    }

    .close-promo-modal {
        top: -10px;
        right: -10px;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

/* Featured carousel */
.featured-strip {
    background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 40%, #0ea5e9 100%);
    color: #fff;
    padding: 60px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: center;
}

.featured-info h2 {
    margin: 8px 0 12px;
    color: #fff;
}

.featured-info p {
    color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #a5f3fc;
    margin-bottom: 8px;
}

.featured-carousel {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 16px 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.featured-window {
    overflow: hidden;
    touch-action: pan-y;
}

.featured-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.featured-card {
    flex: 0 0 260px;
    min-width: 260px;
    max-width: 280px;
    background: #fff;
    color: #0f172a;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.featured-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    background: #f1f5f9;
}

.featured-card h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.featured-card p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.featured-badge {
    display: inline-block;
    padding: 6px 10px;
    background: #0ea5e9;
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.featured-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: grid;
    place-items: center;
}

.featured-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.featured-prev {
    left: 10px;
}

.featured-next {
    right: 10px;
}

.featured-dots {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.featured-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.featured-dot.active {
    background: #fff;
    transform: scale(1.1);
}

@media (max-width: 960px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-carousel {
        padding: 16px 40px;
    }

    .featured-card {
        flex-basis: 240px;
        min-width: 240px;
    }
}

@media (max-width: 640px) {
    .featured-carousel {
        padding: 12px 12px 24px;
    }

    .featured-nav {
        display: none;
    }

    .featured-track {
        gap: 12px;
    }

    .featured-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

/* Marketing Carousels Upgrade */
.marketing-carousel-section {
    padding: 100px 0;
    overflow: hidden;
    background-color: var(--white);
}

.marketing-carousel-section.bg-light {
    background-color: #f8fcfd;
}

.marketing-carousel {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.marketing-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.marketing-item {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.marketing-image {
    flex: 1;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.marketing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.marketing-item:hover .marketing-image img {
    transform: scale(1.1);
}

.marketing-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.marketing-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 168, 232, 0.2);
}

.marketing-text h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.marketing-text p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

/* Social Proof */
.social-proof-section {
    padding: 20px 0 100px;
    background: linear-gradient(180deg, rgba(248, 252, 253, 0) 0%, rgba(255, 255, 255, 0.85) 22%, #f7fbfc 100%);
}

.social-proof-shell {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(18, 87, 142, 0.1) 0%, rgba(18, 87, 142, 0) 28%),
        linear-gradient(180deg, #ffffff 0%, #f4f9fb 100%);
    border: 1px solid rgba(13, 59, 102, 0.08);
    box-shadow: 0 28px 60px rgba(6, 31, 53, 0.08);
}

.social-proof-shell::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.12) 0%, rgba(0, 168, 232, 0) 70%);
}

.social-proof-shell::after {
    content: '';
    position: absolute;
    left: -30px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 59, 102, 0.08) 0%, rgba(13, 59, 102, 0) 72%);
}

.social-proof-topline,
.social-proof-intro,
.social-proof-grid {
    position: relative;
    z-index: 1;
}

.social-proof-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, auto);
    gap: 24px;
    align-items: end;
    margin-bottom: 20px;
}

.social-proof-intro h2 {
    margin: 12px 0 14px;
    color: var(--primary-color);
    font-size: 2.4rem;
    line-height: 1.04;
    max-width: 13ch;
}

.social-proof-intro p {
    color: #5d7388;
    font-size: 1rem;
    max-width: 58ch;
}

.social-proof-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 26px;
    background: linear-gradient(135deg, #0d3b66 0%, #0f4d82 100%);
    box-shadow: 0 18px 36px rgba(8, 39, 70, 0.16);
}

.social-proof-summary-badge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 112px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
}

.social-proof-value {
    display: block;
    color: var(--primary-color);
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1;
}

.social-proof-summary-source {
    display: block;
    margin-bottom: 6px;
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.social-proof-summary-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-proof-stars {
    display: flex;
    gap: 8px;
    color: #ffd15c;
    font-size: 1.1rem;
}

.social-proof-summary-meta p {
    max-width: 28ch;
    color: rgba(255, 255, 255, 0.9);
}

.social-proof-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.social-proof-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.social-proof-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 230px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 251, 0.98));
    border: 1px solid rgba(13, 59, 102, 0.08);
    box-shadow: 0 16px 32px rgba(5, 24, 41, 0.08);
}

.social-proof-card-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.social-proof-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 10px 18px rgba(13, 59, 102, 0.12);
}

.social-proof-person {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.social-proof-person h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1.2;
}

.social-proof-person p {
    margin: 0;
    color: #7b8ea0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.social-proof-card-time {
    margin-left: auto;
    color: #8ea1b2;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.social-proof-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 168, 232, 0.12);
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.social-proof-card-icon {
    display: none;
}

.social-proof-card-stars {
    display: flex;
    gap: 6px;
    margin: 18px 0 14px;
    color: #ffbf3f;
    font-size: 0.95rem;
}

.social-proof-card blockquote {
    margin: 0;
    color: #37556c;
    font-size: 1.02rem;
    line-height: 1.75;
    font-weight: 500;
}

.social-proof-card-footer,
.social-proof-card-link {
    margin-top: 18px;
}

.social-proof-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
}

.social-proof-card-footer {
    padding-top: 14px;
    border-top: 1px solid rgba(13, 59, 102, 0.08);
    color: #7a8fa3;
    font-size: 0.92rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .social-proof-section {
        padding-bottom: 72px;
    }

    .social-proof-shell {
        padding: 24px;
        border-radius: 28px;
    }

    .social-proof-topline {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 18px;
    }

    .social-proof-intro h2 {
        font-size: 2rem;
        max-width: none;
    }

    .social-proof-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-proof-summary-badge {
        width: 100%;
        max-width: 220px;
    }

    .social-proof-grid {
        grid-template-columns: 1fr;
    }

    .social-proof-card {
        min-height: auto;
    }

    .social-proof-card-head {
        flex-wrap: wrap;
        align-items: center;
    }

    .social-proof-card-time {
        margin-left: 68px;
    }
}

/* Brand Ticker */
.brand-ticker {
    padding: 40px 0;
    background: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.ticker-container {
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.ticker-logo {
    height: 50px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition);
    object-fit: contain;
}

.ticker-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 40px)); }
}

/* Catalog Footer */
.catalog-footer {
    text-align: center;
    margin-top: 60px;
}

.btn-large {
    padding: 18px 45px !important;
    font-size: 1.2rem !important;
}

/* Catalog Page Styles */
.catalog-page .navbar .nav-links a.active {
    color: var(--secondary-color);
    font-weight: 700;
}

.page-header {
    position: relative;
    display: grid;
    min-height: clamp(520px, 39vw, 580px);
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 106px 0 36px;
    background: #082f50;
    color: white;
}

.page-header::before {
    content: none;
}

.page-header::after {
    content: none;
}

.page-header .container {
    position: relative;
    z-index: 5;
    width: 100%;
}

.page-header-layout {
    display: block;
}

.page-header-copy {
    width: min(610px, 52vw);
    max-width: 610px;
    text-shadow: 0 2px 22px rgba(2, 18, 32, 0.42);
}

.page-header-kicker {
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
}

.page-header h1 {
    font-size: clamp(3rem, 4.2vw, 4rem);
    line-height: 1;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    color: white;
    max-width: none;
}

.page-header h1 em {
    color: #72d8fb;
    font-style: normal;
    font-weight: 700;
}

.page-header p {
    font-size: 1.04rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    max-width: 50ch;
}

.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 20px;
}

.page-header-actions .btn-primary,
.page-header-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1rem;
}

.page-header-actions i {
    font-size: 0.82rem;
}

.page-header-secondary-link {
    margin-left: 0;
    font-weight: 600;
}

.page-header-secondary-link:hover {
    color: var(--primary-color);
}

.page-header-services {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 24px;
    margin-top: 18px;
}

.page-header-services li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 500;
}

.page-header-services i {
    color: #72d8fb;
    font-size: 0.82rem;
}

.page-header-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #082f50;
}

.page-header-motion > picture {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

.page-header-motion-poster,
.page-header-motion-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
    filter: saturate(0.95) contrast(1.02);
}

.page-header-motion-poster {
    z-index: 1;
    opacity: 1;
    transition: opacity 600ms ease;
}

.page-header-motion-video {
    z-index: 2;
    opacity: 0;
    transition: opacity 600ms ease;
}

.page-header-motion.is-ready .page-header-motion-poster {
    opacity: 0;
}

.page-header-motion.is-ready .page-header-motion-video {
    opacity: 1;
}

.page-header-motion.is-fallback .page-header-motion-poster {
    opacity: 1;
}

.page-header-motion.is-fallback .page-header-motion-video {
    display: none;
}

.page-header-motion::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(4, 25, 44, 0.97) 0%,
            rgba(4, 30, 53, 0.91) 31%,
            rgba(5, 39, 68, 0.68) 52%,
            rgba(5, 39, 68, 0.18) 78%,
            rgba(5, 39, 68, 0.08) 100%),
        linear-gradient(0deg, rgba(2, 22, 39, 0.44), transparent 42%);
}

.page-header-motion-ui {
    position: absolute;
    right: max(20px, calc((100vw - 1200px) / 2 + 20px));
    bottom: 24px;
    left: auto;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    pointer-events: none;
}

.page-header-motion-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(5, 30, 52, 0.56);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.page-header-motion-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 0 rgba(114, 216, 251, 0.42);
}

.page-header-motion.is-playing .page-header-motion-dot {
    background: #72d8fb;
    animation: catalog-motion-pulse 1.8s ease-out infinite;
}

.page-header-motion-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(5, 30, 52, 0.64);
    backdrop-filter: blur(12px);
    color: white;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.page-header-motion-toggle[hidden] {
    display: none;
}

.page-header-motion-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(114, 216, 251, 0.72);
    background: rgba(11, 82, 125, 0.88);
}

.page-header-motion-toggle:focus-visible {
    outline: 3px solid #72d8fb;
    outline-offset: 3px;
}

.page-header-motion-symbol {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

@keyframes catalog-motion-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(114, 216, 251, 0.42);
    }

    70%,
    100% {
        box-shadow: 0 0 0 8px rgba(114, 216, 251, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-header-motion-poster,
    .page-header-motion-video,
    .page-header-motion-toggle {
        transition: none;
    }

    .page-header-motion-dot {
        animation: none !important;
    }
}

@media (max-width: 480px) {
    .page-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.catalog-full {
    position: relative;
    margin-top: 0;
    padding-top: 64px;
    background-color: #f8fcfd;
    min-height: 600px;
    border-radius: 0;
}

.catalog-controls {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    background: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid transparent;
    background: transparent;
    color: #666;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--secondary-color);
}

.filter-btn.active {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marketing-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .marketing-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .marketing-text h3 {
        font-size: 1.5rem;
    }

    .marketing-text p {
        font-size: 1.1rem;
    }

    .page-header {
        min-height: 520px;
        padding: 100px 0 30px;
    }

    .page-header-layout {
        display: block;
    }

    .page-header-copy {
        width: 100%;
        max-width: 34rem;
    }

    .page-header h1 {
        margin-bottom: 14px;
        font-size: clamp(2.45rem, 11.5vw, 3.1rem);
        line-height: 0.98;
    }

    .page-header p {
        max-width: 34ch;
        font-size: 0.96rem;
        line-height: 1.48;
    }

    .page-header-actions {
        gap: 8px;
        margin-top: 18px;
    }

    .page-header-actions .btn-primary,
    .page-header-actions .btn-secondary {
        min-height: 46px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .page-header-services {
        display: none;
    }

    .page-header-motion-ui {
        display: none;
    }

    .page-header-motion-poster {
        opacity: 1 !important;
        object-position: center 48%;
    }

    .page-header-motion-video {
        display: none !important;
    }

    .page-header-motion::after {
        background:
            linear-gradient(90deg, rgba(4, 25, 44, 0.92), rgba(4, 31, 54, 0.66)),
            linear-gradient(0deg, rgba(3, 23, 41, 0.88), rgba(3, 23, 41, 0.30) 72%);
    }

    .catalog-full {
        margin-top: 0;
        padding-top: 44px;
        border-radius: 0;
    }

    .catalog-controls {
        justify-content: flex-start;
        margin-bottom: 36px;
    }

    .filter-group {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 12px;
        border-radius: 24px;
        scrollbar-width: none;
    }

    .filter-group::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
    }
}

/* Careers page */
.careers-page {
    background: #f4f8f7;
}

.careers-page .nav-links a.active {
    color: var(--secondary-color);
}

.careers-hero {
    position: relative;
    min-height: 720px;
    padding: 150px 0 72px;
    color: var(--white);
    overflow: hidden;
}

.careers-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 29, 50, 0.9) 0%, rgba(10, 57, 82, 0.68) 48%, rgba(7, 31, 48, 0.36) 100%),
        url('images/servico_especializado.webp') center center / cover no-repeat;
}

.careers-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.72fr);
    gap: 56px;
    align-items: center;
}

.careers-hero-copy {
    max-width: 680px;
}

.careers-kicker,
.careers-section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 168, 232, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #dff8ff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.careers-section-label {
    background: rgba(0, 168, 232, 0.08);
    color: var(--primary-color);
}

.careers-hero h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: 3.8rem;
    line-height: 1.04;
    letter-spacing: 0;
}

.careers-hero p {
    max-width: 630px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.16rem;
}

.careers-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.careers-hero-actions .btn-primary,
.careers-submit {
    border: 0;
    font-family: inherit;
}

.careers-ghost-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: var(--white);
    font-weight: 700;
    transition: var(--transition);
}

.careers-ghost-link:hover {
    background: rgba(255, 255, 255, 0.14);
}

.careers-hero-panel {
    justify-self: end;
    width: min(100%, 380px);
}

.careers-hero-panel img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.careers-hero-panel-copy {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-color);
    box-shadow: 0 18px 36px rgba(6, 27, 46, 0.2);
}

.careers-hero-panel-copy span {
    color: #247489;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.careers-hero-panel-copy strong {
    font-size: 1.28rem;
}

.careers-hero-panel-copy button {
    width: fit-content;
    border: 0;
    background: transparent;
    color: var(--secondary-color);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.careers-band {
    background: #0a2e4f;
    color: var(--white);
}

.careers-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
}

.careers-metrics div {
    padding: 28px 26px;
    background: rgba(255, 255, 255, 0.04);
}

.careers-metrics strong,
.careers-metrics span {
    display: block;
}

.careers-metrics strong {
    margin-bottom: 6px;
    font-size: 1.08rem;
}

.careers-metrics span {
    color: rgba(255, 255, 255, 0.74);
}

.careers-intro,
.careers-jobs,
.careers-apply-section {
    padding: 96px 0;
}

.careers-intro {
    background: var(--white);
}

.careers-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
    gap: 54px;
    align-items: center;
}

.careers-intro-copy h2,
.careers-section-heading h2,
.careers-apply-copy h2 {
    color: var(--primary-color);
    font-size: 2.35rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.careers-intro-copy p,
.careers-apply-copy p {
    margin-top: 18px;
    color: #53606b;
    font-size: 1.05rem;
    line-height: 1.8;
}

.careers-photo-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: stretch;
}

.careers-photo-grid img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(6, 27, 46, 0.16);
}

.careers-photo-grid img:nth-child(2) {
    margin-top: 48px;
    height: 360px;
}

.careers-jobs {
    background: #eef5f4;
}

.careers-section-heading {
    max-width: 680px;
    margin-bottom: 36px;
}

.careers-job-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.careers-job-card {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding: 28px;
    border: 1px solid rgba(13, 59, 102, 0.12);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 16px 36px rgba(6, 27, 46, 0.08);
}

.careers-job-card-muted {
    background: #f9fbfb;
}

.careers-job-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

.careers-job-top span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(0, 168, 232, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
}

.careers-job-top i {
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.careers-job-card h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 1.46rem;
}

.careers-job-card p {
    color: #596672;
    line-height: 1.7;
}

.careers-job-card ul {
    display: grid;
    gap: 10px;
    margin: 22px 0 26px;
}

.careers-job-card li {
    position: relative;
    padding-left: 22px;
    color: #45545f;
}

.careers-job-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28b99b;
}

.careers-job-card .btn-outline {
    width: fit-content;
    margin-top: auto;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.careers-apply-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 247, 0.94)),
        url('images/servico_manutencao.webp') center center / cover no-repeat;
}

.careers-apply-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr);
    gap: 52px;
    align-items: start;
}

.careers-apply-copy {
    position: sticky;
    top: 110px;
}

.careers-apply-note {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
    padding: 16px 18px;
    border-left: 4px solid #28b99b;
    border-radius: 10px;
    background: var(--white);
    color: #40515f;
    box-shadow: 0 12px 30px rgba(6, 27, 46, 0.08);
}

.careers-apply-note i {
    color: #28b99b;
}

.careers-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 30px;
    border: 1px solid rgba(13, 59, 102, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(6, 27, 46, 0.12);
}

.careers-form .form-group {
    margin-bottom: 0;
}

.careers-form .form-group.full,
.careers-consent,
.careers-form-status,
.careers-submit {
    grid-column: 1 / -1;
}

.careers-form .form-group input,
.careers-form .form-group textarea,
.careers-form .form-group select {
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #dbe6ea;
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

.careers-form .form-group input:focus,
.careers-form .form-group textarea:focus,
.careers-form .form-group select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.11);
}

.careers-form small {
    display: block;
    margin-top: 8px;
    color: #667580;
}

.careers-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #41515d;
    font-weight: 500;
}

.careers-consent input {
    margin-top: 5px;
}

.career-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.careers-form-status {
    min-height: 24px;
    font-weight: 700;
}

.careers-form-status.is-success {
    color: #14805e;
}

.careers-form-status.is-error {
    color: #c0392b;
}

.careers-submit {
    width: 100%;
    border-radius: 12px;
}

.careers-submit:disabled {
    opacity: 0.72;
    cursor: wait;
}

@media (max-width: 980px) {
    .careers-hero {
        min-height: auto;
        padding: 128px 0 56px;
    }

    .careers-hero-layout,
    .careers-intro-grid,
    .careers-apply-grid {
        grid-template-columns: 1fr;
    }

    .careers-hero-panel {
        justify-self: start;
        width: min(100%, 340px);
    }

    .careers-metrics,
    .careers-job-grid {
        grid-template-columns: 1fr;
    }

    .careers-photo-grid img,
    .careers-photo-grid img:nth-child(2) {
        height: 320px;
        margin-top: 0;
    }

    .careers-apply-copy {
        position: static;
    }
}

@media (max-width: 640px) {
    .careers-hero h1 {
        font-size: 2.45rem;
    }

    .careers-hero p {
        font-size: 1rem;
    }

    .careers-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .careers-ghost-link,
    .careers-hero-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .careers-intro,
    .careers-jobs,
    .careers-apply-section {
        padding: 64px 0;
    }

    .careers-intro-copy h2,
    .careers-section-heading h2,
    .careers-apply-copy h2 {
        font-size: 2rem;
    }

    .careers-photo-grid {
        grid-template-columns: 1fr;
    }

    .careers-form {
        grid-template-columns: 1fr;
        padding: 22px;
    }
}
