/* ============================================
   Blue Sapphire – Modern Professional Styles
   ============================================ */

:root {
    --primary: #1a3a8f;        /* Royal blue */
    --primary-dark: #0f255c;
    --primary-light: #2a4fb0;
    --accent: #4169e1;         /* Royal blue accent */
    --accent-hover: #3151c4;
    --sapphire: #4169e1;
    --text: #1a1a2e;
    --text-muted: #5a6577;
    --bg: #ffffff;
    --bg-alt: #f0f4fc;
    --bg-dark: #1a3a8f;
    --border: #e2e8f0;
    --success: #10b981;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 20px rgba(26, 58, 143, 0.1);
    --shadow-lg: 0 12px 40px rgba(26, 58, 143, 0.14);
    --font: 'Inter', system-ui, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
    --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ========== HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
}
.logo img { border-radius: 8px; }
.logo strong { color: var(--primary); }

.main-nav ul {
    display: flex;
    gap: 0.25rem;
}
.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: rgba(26, 58, 143, 0.08);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #fff !important;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition), transform var(--transition);
}
.header-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    background: linear-gradient(160deg, #f0f4fc 0%, #ffffff 55%, #e8eef9 100%);
    color: #0a1f5c;
    padding: 5rem 0 4.5rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}
.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #0a1f5c;
}
.hero-text .tagline {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #0a1f5c;
}
.hero-text p {
    margin-bottom: 2rem;
    max-width: 520px;
    color: #1a1a2e;
    opacity: 1;
}
.hero-text p.tagline {
    color: #0a1f5c;
    margin-bottom: 1.5rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(65, 105, 225, 0.35);
}
.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.btn-dark {
    background: var(--primary);
    color: #fff;
}
.btn-dark:hover {
    background: var(--primary-dark);
    color: #fff;
}
.hero-image {
    position: relative;
}
.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    width: 100%;
    max-height: 380px;
}
.hero-badge {
    position: absolute;
    bottom: -16px;
    left: 20px;
    background: #fff;
    color: var(--primary);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== SECTIONS ========== */
.section {
    padding: 4.5rem 0;
}
.section-alt { background: var(--bg-alt); }
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.section-header .eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About split */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.about-split img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.about-content h2 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}
.about-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.cert-box {
    background: linear-gradient(135deg, rgba(26,58,143,0.07), rgba(65,105,225,0.1));
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}
.cert-box strong { color: var(--primary); }

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}
.product-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.product-card .card-body {
    padding: 1.5rem;
}
.product-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}
.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.tag {
    background: rgba(26,58,143,0.09);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
}

/* Uses list */
.uses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.use-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-weight: 500;
}
.use-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-alt);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    gap: 0.5rem;
    background: linear-gradient(135deg, #e8f0f5, #d4e4ec);
}
.gallery-placeholder i { font-size: 2rem; color: var(--primary); opacity: 0.5; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
}
.contact-info-card {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
}
.contact-info-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}
.contact-info-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}
.contact-info-list i {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-list a { color: #fff; }
.contact-info-list a:hover { color: var(--accent); }

.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 143, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* CTA banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}
.cta-banner h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
}
.cta-banner p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #0a1f4a;
    color: rgba(255,255,255,0.85);
    padding: 3.5rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-brand .logo strong { color: var(--accent); }
.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.25rem;
    max-width: 280px;
}
.social-links {
    display: flex;
    gap: 0.75rem;
}
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background var(--transition);
}
.social-links a:hover { background: var(--accent); color: #fff; }

.site-footer h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1.1rem;
}
.footer-links a,
.footer-contact a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--accent); }
.footer-links li,
.footer-contact li { margin-bottom: 0.55rem; }
.footer-contact i {
    width: 18px;
    margin-right: 0.5rem;
    color: var(--accent);
}
.footer-cert p { font-size: 0.9rem; margin-bottom: 0.4rem; }
.cert-num { opacity: 0.7; font-size: 0.85rem !important; }
.made-in { margin-top: 0.75rem; font-weight: 500; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero-content,
    .about-split,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-image { order: -1; max-width: 480px; margin: 0 auto; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        box-shadow: var(--shadow);
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0.25rem;
    }
    .header-cta span { display: none; }
    .header-cta { padding: 0.6rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 3.5rem 0 3rem; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}

/* ========== AGENT SEARCH ========== */
.agent-search-panel {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.agent-search-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}
.agent-search-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.agent-search-field input,
.agent-search-field select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.agent-search-field input:focus,
.agent-search-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 143, 0.12);
}
.btn-outline-dark {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--border);
    padding: 0.65rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-outline-dark:hover {
    border-color: var(--primary);
    background: rgba(26, 58, 143, 0.05);
}
.agent-result-count {
    margin-top: 0.85rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}
.agent-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.agent-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: transparent;
}
.agent-card-top {
    padding: 1.25rem 1.25rem 0.75rem;
}
.agent-province-badge {
    display: inline-block;
    background: rgba(26, 58, 143, 0.1);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    margin-bottom: 0.6rem;
}
.agent-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}
.agent-location {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.agent-location i {
    color: var(--accent);
    margin-right: 0.25rem;
}
.agent-card-body {
    padding: 0.75rem 1.25rem 1.25rem;
    margin-top: auto;
}
.agent-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.agent-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--primary);
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition);
}
.agent-phone:hover {
    background: var(--primary-dark);
    color: #fff !important;
}

.agent-no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}
.agent-no-results i {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: 0.75rem;
}
.agent-no-results h3 {
    font-family: var(--font-display);
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}
.agent-no-results p {
    color: var(--text-muted);
}

.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

@media (max-width: 900px) {
    .agent-search-row {
        grid-template-columns: 1fr 1fr;
    }
    .agent-search-main {
        grid-column: 1 / -1;
    }
    .agent-search-actions {
        grid-column: 1 / -1;
    }
    .agent-search-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .agent-search-row {
        grid-template-columns: 1fr;
    }
}

/* ========== GALLERY SHOWCASE ========== */
.gallery-showcase {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.gallery-feature {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.gallery-feature-reverse {
    grid-template-columns: 0.8fr 1.2fr;
}
.gallery-feature-reverse .gallery-feature-img {
    order: 2;
}
.gallery-feature-reverse .gallery-feature-text {
    order: 1;
}
.gallery-feature-img {
    min-height: 280px;
    background: var(--bg-alt);
}
.gallery-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.gallery-feature-text {
    padding: 1.75rem 2rem 1.75rem 0.5rem;
}
.gallery-feature-reverse .gallery-feature-text {
    padding: 1.75rem 0.5rem 1.75rem 2rem;
}
.gallery-feature-text .tag {
    margin-bottom: 0.75rem;
}
.gallery-feature-text h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--primary-dark);
    margin-bottom: 0.65rem;
}
.gallery-feature-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

@media (max-width: 800px) {
    .gallery-feature,
    .gallery-feature-reverse {
        grid-template-columns: 1fr;
    }
    .gallery-feature-reverse .gallery-feature-img,
    .gallery-feature-reverse .gallery-feature-text {
        order: unset;
    }
    .gallery-feature-img {
        min-height: 220px;
        max-height: 360px;
    }
    .gallery-feature-text,
    .gallery-feature-reverse .gallery-feature-text {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}

/* ========== REVIEWS CAROUSEL ========== */
.reviews-section {
    overflow: hidden;
}
.reviews-carousel {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}
.reviews-track {
    position: relative;
    min-height: 420px;
}
.review-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: center;
    opacity: 0;
    transition: opacity 0.7s ease;
}
.review-slide.is-active {
    display: grid;
    opacity: 1;
    animation: reviewFadeIn 0.7s ease;
}
@keyframes reviewFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
}
.review-quote-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.review-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.25rem;
    font-style: italic;
}
.review-author strong {
    display: block;
    font-family: var(--font-display);
    color: var(--primary-dark);
    font-size: 1.05rem;
}
.review-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.review-poster {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: var(--bg-alt);
}
.review-poster img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.reviews-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}
.reviews-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.reviews-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.reviews-dots {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 280px;
}
.reviews-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #c5d0e0;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}
.reviews-dots button.is-active {
    background: var(--primary);
    transform: scale(1.25);
}
.reviews-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .review-slide.is-active {
        grid-template-columns: 1fr;
    }
    .review-poster {
        order: -1;
        max-width: 320px;
        margin: 0 auto;
    }
    .reviews-track {
        min-height: auto;
    }
}

/* ========== PROMO POPUP ========== */
.promo-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 37, 92, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.promo-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.promo-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 880px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.35s ease;
}
.promo-overlay.is-open .promo-modal {
    transform: translateY(0) scale(1);
}
.promo-close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: var(--primary-dark);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.promo-close:hover {
    background: var(--primary);
    color: #fff;
}
.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.promo-image {
    background: linear-gradient(135deg, #f0f4fc, #e8eef9);
}
.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 280px;
}
.promo-content {
    padding: 1.75rem 1.75rem 1.5rem;
}
.promo-content h2 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}
.promo-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}
.promo-body {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-height: 220px;
    overflow-y: auto;
}
.promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.promo-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.promo-dismiss:hover {
    color: var(--primary);
}

@media (max-width: 720px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }
    .promo-image img {
        max-height: 220px;
        min-height: 180px;
    }
    .promo-content {
        padding: 1.25rem;
    }
    .promo-body {
        max-height: 160px;
    }
}

/* Reviews – true same-space rotation */
.reviews-track {
    position: relative;
    min-height: 440px;
}
.review-slide {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: center;
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    transform: none;
}
.review-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: none;
}
@media (max-width: 768px) {
    .reviews-track {
        min-height: 0;
    }
    .review-slide {
        position: absolute;
        grid-template-columns: 1fr;
    }
    .review-slide.is-active {
        position: relative;
    }
}

/* ========== PRODUCT SHOWCASE ========== */
.product-showcase {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}
.product-feature {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 0;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.product-feature-reverse {
    grid-template-columns: 1.1fr 1fr;
}
.product-feature-reverse .product-feature-img {
    order: 2;
}
.product-feature-reverse .product-feature-text {
    order: 1;
}
.product-feature-img {
    background: linear-gradient(135deg, #f0f4fc, #e8eef9);
    min-height: 280px;
}
.product-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-img-placeholder {
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0.35;
    font-size: 3rem;
}
.product-feature-text {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-feature-text .tag {
    align-self: flex-start;
    margin-bottom: 0.75rem;
}
.product-feature-text h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}
.product-feature-text p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}
.product-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.product-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}
.product-feature-list i {
    color: var(--accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .product-feature,
    .product-feature-reverse {
        grid-template-columns: 1fr;
    }
    .product-feature-reverse .product-feature-img,
    .product-feature-reverse .product-feature-text {
        order: unset;
    }
    .product-feature-img {
        min-height: 220px;
        max-height: 320px;
    }
    .product-feature-text {
        padding: 1.35rem 1.5rem 1.5rem;
    }
}

/* Logo wordmark – larger, clear branding */
.logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}
.logo-img {
    height: 52px;
    width: auto;
    max-width: min(220px, 55vw);
    object-fit: contain;
    border-radius: 0 !important;
    display: block;
}
.logo-img-footer {
    height: 42px;
    max-width: 180px;
    /* Keep readable on dark footer – slight brightness if needed */
    filter: brightness(0) invert(1);
}
.header-inner {
    min-height: 80px;
    height: auto;
    padding: 0.65rem 0;
}

@media (max-width: 600px) {
    .logo-img {
        height: 40px;
        max-width: 160px;
    }
}

/* Homepage hero title – dark blue */
.hero-text h1,
.hero-text h1.hero-title {
    color: #0a1f5c;
}

/* About banner image on homepage */
.about-banner {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.about-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.about-split-text {
    grid-template-columns: 1fr;
    max-width: 720px;
}

/* Certificate number links – theme-aware */
a.cert-link,
.cert-num a,
.cert-box a,
.feature-card a[href*="certificate"],
.about-content a[href*="certificate"],
a[href*="blue-sapphire-food-safe-certificate"] {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: color 0.2s ease, opacity 0.2s ease;
}
a.cert-link:hover,
.cert-num a:hover,
.cert-box a:hover,
a[href*="blue-sapphire-food-safe-certificate"]:hover {
    color: var(--accent);
    opacity: 1;
}
.cert-num a {
    opacity: 1;
    color: var(--accent);
}
.footer-cert .cert-num a {
    color: var(--accent, #93c5fd);
}

/* Global certificate links on every page */
a.cert-link {
    color: var(--primary) !important;
    font-weight: 600;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}
a.cert-link:hover {
    color: var(--accent) !important;
}
.site-footer a.cert-link,
.footer-cert a.cert-link,
.footer-cert .cert-num a {
    color: var(--accent, #93c5fd) !important;
}
.site-footer a.cert-link:hover,
.footer-cert a.cert-link:hover {
    color: #ffffff !important;
}

/* ===== More Services / Private Label page ===== */
.services-hero {
    background:
        radial-gradient(ellipse 70% 60% at 85% 20%, rgba(65, 105, 225, 0.14), transparent 55%),
        linear-gradient(160deg, #f0f4fc 0%, #ffffff 50%, #e8eef9 100%);
    padding: 3.5rem 0 3.25rem;
    border-bottom: 1px solid var(--border);
}
.services-hero-inner {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}
.services-hero-copy .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.services-hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    line-height: 1.15;
    color: #0a1f5c;
    margin-bottom: 1rem;
    font-weight: 700;
}
.services-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin-bottom: 1.75rem;
    line-height: 1.65;
}
.services-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.services-hero-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
.services-hero-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.15rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    box-shadow: 0 8px 28px rgba(26, 58, 143, 0.08);
}
.services-hero-stat i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.services-hero-stat span {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary-dark);
}

.services-intro {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}
.services-intro-main h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--primary-dark);
    margin-bottom: 1.15rem;
    line-height: 1.25;
}
.services-intro-main p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.02rem;
}
.services-intro-aside {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-lg);
}
.services-intro-aside h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}
.services-checklist {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
.services-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
}
.services-checklist i {
    color: #93c5fd;
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.services-aside-btn {
    width: 100%;
    justify-content: center;
    background: #fff;
    color: var(--primary-dark);
}
.services-aside-btn:hover {
    background: #e8eef9;
    color: var(--primary-dark);
}

.services-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.services-step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    position: relative;
    box-shadow: 0 4px 18px rgba(26, 58, 143, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.services-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(26, 58, 143, 0.1);
}
.services-step-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.85;
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
}
.services-step h3 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}
.services-step p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
}
.services-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(26, 58, 143, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.services-card:hover {
    border-color: rgba(26, 58, 143, 0.25);
    box-shadow: 0 12px 36px rgba(26, 58, 143, 0.1);
}
.services-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
}
.services-card h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 0.55rem;
}
.services-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    font-size: 0.98rem;
}

.services-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #2a4fb0 100%);
    color: #fff;
    padding: 3.25rem 0;
}
.services-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
}
.services-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    margin-bottom: 0.5rem;
    color: #fff;
}
.services-cta p {
    opacity: 0.9;
    max-width: 32rem;
    margin: 0;
    line-height: 1.6;
}
.services-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.services-cta .btn-outline {
    border-color: rgba(255,255,255,0.55);
    color: #fff;
}
.services-cta .btn-outline:hover {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
}

@media (max-width: 900px) {
    .services-hero-inner,
    .services-intro,
    .services-steps {
        grid-template-columns: 1fr;
    }
    .services-cards {
        grid-template-columns: 1fr;
    }
    .services-hero-panel {
        max-width: 420px;
    }
}
@media (max-width: 600px) {
    .services-hero {
        padding: 2.5rem 0 2rem;
    }
    .services-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
