/* ==========================================
   Local Utility Classes (Bootstrap-free)
   ========================================== */

.container {
    width: min(100%, 900px);
    margin-inline: auto;
}

.text-center {
    text-align: center;
}

.text-decoration-none {
    text-decoration: none;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-content-center {
    justify-content: center;
}

.h-100 {
    height: 100%;
}

.border-0 {
    border: 0 !important;
}

.shadow-sm {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.fw-bold {
    font-weight: 700;
}

.fw-medium {
    font-weight: 500;
}

.lead {
    font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.text-muted {
    color: var(--text-soft) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.my-4 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.me-1 {
    margin-right: 0.25rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.p-3 {
    padding: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.row {
    --grid-gap: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: var(--grid-gap);
}

.g-3 {
    --grid-gap: 1rem;
}

.g-4 {
    --grid-gap: 1.5rem;
}

.row>.col,
.row>.col-md-4 {
    flex: 0 0 100%;
    min-width: 0;
}

.card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
}

.card-body {
    padding: 1rem;
}

.card-title,
.card-text {
    margin-top: 0;
}

.h5 {
    font-size: 1.25rem;
}

.btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--speed) ease, background-color var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease;
}

.btn-lg {
    padding: 12px 20px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline-secondary:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.bg-success {
    background: #166534 !important;
    color: #fff !important;
}

.bg-primary {
    background: var(--primary) !important;
    color: #fff !important;
}

.fs-6 {
    font-size: 1rem;
}

/* Status pill icon */
.status-pill-icon {
    font-size: 0.5em;
    vertical-align: middle;
}

/* Dark mode overrides */
body.dark-mode {
    --bg: #020617;
    --surface: #0f172a;
    --surface-muted: #111b31;
    --text: #e2e8f0;
    --text-soft: #94a3b8;
    --primary: #fb7185;
    --primary-hover: #f43f5e;
    --border: #243045;
    --focus: #0ea5e9;
    --shadow: 0 12px 30px rgba(225, 29, 72, 0.3);

}

body.dark-mode .card {
    background-color: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

body.dark-mode .text-muted {
    color: var(--text-soft) !important;
}

body.dark-mode .badge.bg-primary {
    background-color: var(--primary) !important;
}

body.dark-mode .bg-success {
    background: #15803d !important;
}

/* Preserve custom animations on Bootstrap cards */
.stat-card,
.gallery-card {
    transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}

.stat-card:hover,
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.15);
}

/* Gallery card hover effect */
.gallery-card .card-body {
    transition: border-color var(--speed) ease;
}

.gallery-card:hover .card-body {
    border-top: 3px solid var(--primary);
}

/* Preserve counter animation styles */
/* .stat-number transition is consolidated in the main .stat-number block below */

/* ==========================================
   Original Custom Styles (Preserved)
   ========================================== */

:root {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-muted: #f7f9fc;
    --text: #0f172a;
    --text-soft: #475569;
    --primary: #e11d48;
    --primary-hover: #be123c;
    --border: #e2e8f0;
    --focus: #0ea5e9;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    --radius: 18px;
    --speed: 240ms;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.08), transparent 38%),
        radial-gradient(circle at 80% 85%, rgba(225, 29, 72, 0.08), transparent 35%),
        var(--bg);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--speed) ease, color var(--speed) ease;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    background: var(--surface);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-decoration: none;
}

.skip-link:focus-visible {
    top: 16px;
}

.site-main {
    min-height: 100dvh;
    width: 100%;
    padding: 24px;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.hero-card {
    width: 100%;
    margin-inline: auto;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    padding: clamp(24px, 3vw, 40px);
}

.eyebrow {
    margin: 0;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1 {
    margin: 8px 0 10px;
    line-height: 1.2;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.tagline {
    margin: 0;
    color: var(--text-soft);
    font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 18px auto 0;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-email {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.contact-email a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

.copy-email-btn {
    margin-left: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.copy-email-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.copy-feedback {
    display: inline-block;
    min-width: 72px;
    margin-left: 6px;
    color: var(--text-soft);
    font-size: 0.78rem;
}

.cta-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--speed) ease, background-color var(--speed) ease, color var(--speed) ease;
}

.cta-primary {
    background: var(--primary);
    color: #fff;
}

.cta-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.cta-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.cta-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.trust-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.trust-list li {
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.availability-note {
    margin: 14px 0 0;
    font-size: 0.9rem;
    color: var(--text-soft);
    font-weight: 500;
}

.container>nav.social-links,
.container>.faq-section,
.container>.stats-section,
.container>.gallery-section,
.container>.badges-section {
    width: 100%;
    margin-inline: auto;
}

.container>#theme-toggle {
    display: block;
    margin-inline: auto;
}

.faq-section {
    margin-top: 24px;
    text-align: left;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.faq-section h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.faq-section details {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.faq-section summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-section p {
    margin: 8px 0 0;
    color: var(--text-soft);
}

.social-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--speed) ease, border-color var(--speed) ease, color var(--speed) ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--primary);
    border-color: var(--primary);
}

.social-links i {
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

.toggle-btn {
    margin-top: 24px;
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 12px 20px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--speed) ease, background-color var(--speed) ease, box-shadow var(--speed) ease;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.28);
}

.toggle-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.toggle-btn:active {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.no-js {
    margin: 0;
    text-align: center;
    padding: 10px 14px;
    background: #fff7ed;
    color: #9a3412;
    border-top: 1px solid #fed7aa;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.section-description {
    text-align: center;
    color: var(--text-soft);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    margin: 0 0 24px;
}

/* Statistics Section */
.stats-section {
    margin-top: 40px;
    padding: 32px 20px;
    background: var(--surface-muted);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.stat-card {
    text-align: center;
    padding: 20px 12px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    transition: color var(--speed) ease;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-soft);
    font-weight: 500;
}

/* Gallery Section */
.gallery-section {
    margin-top: 40px;
    padding: 32px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all var(--speed) ease;
    position: relative;
    overflow: hidden;
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--focus));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--speed) ease;
}

.gallery-card:hover::before {
    transform: scaleX(1);
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.gallery-card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.gallery-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text);
}

.gallery-card-desc {
    font-size: 0.95rem;
    color: var(--text-soft);
    margin: 0 0 16px;
}

.gallery-card-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
}

/* Badges Section */
.badges-section {
    margin-top: 40px;
    padding: 32px 20px;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    transition: all var(--speed) ease;
}

.badge:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Scroll Reveal Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.site-footer {
    text-align: center;
    color: var(--text-soft);
    padding: 32px 16px 24px;
    margin-top: 60px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-credit {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-legal-links {
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.credit-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--speed) ease;
}

.credit-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.consent-link-btn {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.policy-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 16px 20px;
}

.privacy-policy-h1 {
    margin: 0 0 20px;
    line-height: 1.25;
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.privacy-policy-h1 span {
    font-size: 0.55em;
    color: var(--text-soft);
    font-weight: 500;
}

.privacy-policy-h2 {
    margin: 20px 0 10px;
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
}

.privacy-policy-p {
    margin: 0 0 14px;
    color: var(--text-soft);
}

.privacy-policy-ol {
    margin: 0 0 14px;
    padding-left: 20px;
}

.policy-wrapper {
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 18px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface-muted);
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

@media (max-width: 520px) {
    .hero-card {
        padding: 22px 16px;
    }

    .stats-section,
    .gallery-section,
    .badges-section {
        padding: 24px 14px;
    }

    .section-description {
        margin-bottom: 18px;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a {
        width: 100%;
        justify-content: center;
    }

    .toggle-btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }

    .trust-list {
        grid-template-columns: 1fr;
    }

    .contact-email {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .copy-email-btn,
    .copy-feedback {
        margin-left: 0;
    }

    .site-footer {
        margin-top: 44px;
        padding: 24px 12px 20px;
    }
}

@media (min-width: 576px) {
    .flex-sm-row {
        flex-direction: row;
    }

    .gap-sm-3 {
        gap: 1rem;
    }

    .mb-sm-4 {
        margin-bottom: 1.5rem;
    }

    .py-sm-4 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .p-sm-4 {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .py-md-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .my-md-5 {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .mb-md-5 {
        margin-bottom: 3rem;
    }

    .g-md-4 {
        --grid-gap: 1.5rem;
    }

    .row>.col-md-4 {
        flex: 0 0 calc((100% - (2 * var(--grid-gap))) / 3);
    }

    .row.row-cols-md-3>.col {
        flex: 0 0 calc((100% - (2 * var(--grid-gap))) / 3);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}