/* ===============================================
   WildPoints Web Theme (aligned with app palette)
   =============================================== */

:root {
    --wp-primary: #1e3f2e;
    --wp-primary-strong: #163224;
    --wp-primary-soft: #2a5841;
    --wp-secondary: #f2cc8d;
    --wp-secondary-strong: #d8ae67;
    --wp-dark: #212129;
    --wp-dark-deep: #17171d;
    --wp-surface: rgba(29, 33, 35, 0.78);
    --wp-surface-soft: rgba(29, 33, 35, 0.56);
    --wp-border: rgba(242, 204, 141, 0.18);
    --wp-text: #f4efe5;
    --wp-muted: #beb7ab;
    --wp-radius: 22px;
    --wp-radius-sm: 14px;
    --wp-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --wp-fast: 0.2s ease;
    --wp-smooth: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--wp-dark-deep);
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 15% 12%, rgba(42, 88, 65, 0.45), transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(242, 204, 141, 0.16), transparent 42%),
        linear-gradient(160deg, var(--wp-dark-deep) 0%, var(--wp-dark) 55%, #1d1f22 100%);
    color: var(--wp-text);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(242, 204, 141, 0.02), transparent 32%, rgba(30, 63, 46, 0.05));
    z-index: 0;
}

main,
.footer {
    position: relative;
    z-index: 1;
}

.navbar {
    z-index: 1030;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--wp-text);
    letter-spacing: 0;
}

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

.gradient-text {
    color: var(--wp-secondary);
}

.py-6 {
    padding-top: 88px !important;
    padding-bottom: 88px !important;
}

/* ===============================================
   Navbar
   =============================================== */
.navbar {
    background: rgba(23, 23, 29, 0.84) !important;
    border-bottom: 1px solid rgba(242, 204, 141, 0.15);
    backdrop-filter: blur(16px);
    padding: 0.85rem 0;
}

.navbar-brand {
    color: var(--wp-text) !important;
}

.navbar-brand img {
    filter: drop-shadow(0 4px 10px rgba(30, 63, 46, 0.5));
}

.nav-link {
    color: var(--wp-muted) !important;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--wp-secondary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--wp-fast);
}

.nav-link:hover {
    color: var(--wp-secondary) !important;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* ===============================================
   Hero
   =============================================== */
.hero-section {
    min-height: 94vh;
    padding: 126px 0 74px;
    display: flex;
    align-items: center;
}

.hero-layout {
    min-height: calc(100vh - 200px);
}

.hero-phone-col {
    display: flex;
    justify-content: flex-end;
}

.hero-section .display-1 {
    font-size: clamp(2.7rem, 7.2vw, 5.2rem);
    line-height: 1.02;
}

.hero-section .lead {
    color: var(--wp-muted) !important;
    max-width: 52ch;
    overflow-wrap: break-word;
}

.hero-section .badge {
    white-space: normal;
    max-width: 100%;
}

.badge {
    border: 1px solid transparent;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.bg-success-subtle {
    background: rgba(42, 88, 65, 0.34) !important;
    border-color: rgba(42, 88, 65, 0.5);
}

.text-success {
    color: var(--wp-secondary) !important;
}

.stats-item {
    text-align: center;
    background: rgba(30, 63, 46, 0.18);
    border: 1px solid rgba(242, 204, 141, 0.16);
    border-radius: var(--wp-radius-sm);
    padding: 0.95rem 0.7rem;
    height: 100%;
}

.stats-item h3 {
    color: var(--wp-secondary);
    margin-bottom: 0.2rem;
}

.hero-phone-container {
    position: relative;
    max-width: min(450px, 100%);
    margin: 0 0 0 auto;
    filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.45));
}

.phone-mockup {
    position: relative;
    max-width: min(390px, 100%);
    margin: 0 auto;
    transform: perspective(1200px) rotateY(-9deg) rotateX(4deg);
    transition: transform var(--wp-smooth);
}

.hero-phone-container:hover .phone-mockup {
    transform: perspective(1200px) rotateY(-3deg) rotateX(2deg) translateY(-4px);
}

.phone-screen {
    width: 100%;
    max-height: min(80vh, 780px);
    object-fit: cover;
    display: block;
    border-radius: 36px;
    border: 7px solid #272c2f;
    background: #111;
}

.phone-screen.hover-swap {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.hero-phone-container:hover .phone-screen.hover-swap {
    opacity: 1;
}

.floating-card {
    position: absolute;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.55rem 0.9rem;
    background: rgba(23, 23, 29, 0.87);
    border: 1px solid rgba(242, 204, 141, 0.25);
    border-radius: 999px;
    color: var(--wp-text);
    font-size: 0.84rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card i {
    color: var(--wp-secondary);
}

.floating-card i.poi-water {
    color: #81bddf;
}

.floating-card i.poi-supply {
    color: #f5bf67;
}

.floating-card i.poi-emergency {
    color: #d48272;
}

.floating-card-1 {
    top: 8%;
    right: -12%;
}

.floating-card-2 {
    top: 52%;
    left: -16%;
    animation-delay: 0.9s;
}

.floating-card-3 {
    bottom: 8%;
    right: -7%;
    animation-delay: 1.8s;
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

/* ===============================================
   Buttons
   =============================================== */
.btn {
    font-weight: 600;
    transition: transform var(--wp-fast), box-shadow var(--wp-fast), background var(--wp-fast), color var(--wp-fast), border-color var(--wp-fast);
}

.btn-success {
    background: linear-gradient(145deg, var(--wp-primary-soft), var(--wp-primary));
    border: 1px solid rgba(242, 204, 141, 0.16);
    box-shadow: 0 12px 28px rgba(13, 26, 18, 0.48);
}

.btn-success:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, var(--wp-primary), var(--wp-primary-strong));
}

.btn-outline-light {
    border: 1px solid rgba(242, 204, 141, 0.45);
    color: var(--wp-secondary);
    background: rgba(242, 204, 141, 0.04);
}

.btn-outline-light:hover {
    color: #1b1c21;
    background: var(--wp-secondary);
    border-color: var(--wp-secondary);
    transform: translateY(-2px);
}

.btn-dark {
    background: rgba(242, 204, 141, 0.12);
    border: 1px solid rgba(242, 204, 141, 0.35);
    color: var(--wp-secondary);
}

.btn-dark:hover {
    background: rgba(242, 204, 141, 0.2);
    color: #fff4dd;
    transform: translateY(-2px);
}

.filter-chip {
    border: 1px solid rgba(242, 204, 141, 0.2);
    background: rgba(29, 33, 35, 0.66);
    color: var(--wp-text);
}

.filter-chip-water {
    border-color: rgba(129, 189, 223, 0.5);
}

.filter-chip-shelter {
    border-color: rgba(87, 156, 118, 0.54);
}

.filter-chip-supply {
    border-color: rgba(245, 191, 103, 0.52);
}

.filter-chip-helper {
    border-color: rgba(90, 160, 176, 0.52);
}

.filter-chip-emergency {
    border-color: rgba(212, 130, 114, 0.52);
}

/* ===============================================
   Cards + Sections
   =============================================== */
.audience-section,
.features-section,
.poi-section,
.screenshots-section,
.cta-section {
    position: relative;
}

.poi-section {
    background: linear-gradient(180deg, rgba(29, 33, 35, 0.5), rgba(42, 88, 65, 0.2)) !important;
    border-top: 1px solid rgba(242, 204, 141, 0.12);
    border-bottom: 1px solid rgba(242, 204, 141, 0.12);
}

.audience-card,
.feature-card,
.poi-card {
    background: var(--wp-surface);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
    padding: 2rem;
    backdrop-filter: blur(8px);
    transition: transform var(--wp-fast), border-color var(--wp-fast), box-shadow var(--wp-fast);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    height: 100%;
}

.audience-card:hover,
.feature-card:hover,
.poi-card:hover {
    transform: translateY(-6px);
    border-color: rgba(242, 204, 141, 0.35);
    box-shadow: var(--wp-shadow);
}

.audience-section {
    border-top: 1px solid rgba(242, 204, 141, 0.12);
    background: linear-gradient(180deg, rgba(23, 23, 29, 0.16), rgba(42, 88, 65, 0.12));
}

.audience-card {
    min-height: 100%;
}

.audience-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 204, 141, 0.1);
    border: 1px solid rgba(242, 204, 141, 0.18);
    color: var(--wp-secondary);
    font-size: 1.35rem;
    margin-bottom: 0.95rem;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(42, 88, 65, 0.55), rgba(242, 204, 141, 0.18));
    border: 1px solid rgba(242, 204, 141, 0.18);
    color: var(--wp-secondary);
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.feature-list li {
    color: var(--wp-text);
    padding: 0.32rem 0;
}

.feature-list .bi-check-circle-fill {
    color: var(--wp-secondary) !important;
}

.feature-img {
    border: 1px solid rgba(242, 204, 141, 0.18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.poi-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
    color: #fff;
}

.poi-icon.bg-primary {
    background: linear-gradient(160deg, #3974a3, #275981);
}

.poi-icon.bg-warning {
    background: linear-gradient(160deg, #b57c1d, #845a16);
}

.poi-icon.bg-success {
    background: linear-gradient(160deg, #2f6a4c, #214a35);
}

.poi-icon.bg-info {
    background: linear-gradient(160deg, #417489, #2a5669);
}

.poi-icon.bg-danger {
    background: linear-gradient(160deg, #ad4f44, #833b34);
}

.poi-icon.bg-secondary {
    background: linear-gradient(160deg, #7b6c50, #5c4f3a);
}

.poi-card ul,
.audience-card p,
.feature-card p,
.feature-card .text-muted,
.poi-card .text-muted {
    color: var(--wp-muted) !important;
}

.screenshot-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(242, 204, 141, 0.22);
    transition: transform var(--wp-fast), box-shadow var(--wp-fast);
    background: var(--wp-surface-soft);
}

.screenshot-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--wp-shadow);
}

.screenshot-card img {
    width: 100%;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    left: 12px;
    bottom: 12px;
}

.screenshot-overlay .badge.bg-dark {
    background: rgba(23, 23, 29, 0.86) !important;
    border: 1px solid rgba(242, 204, 141, 0.3);
    color: var(--wp-secondary);
}

.cta-section {
    border-top: 1px solid rgba(242, 204, 141, 0.15);
    border-bottom: 1px solid rgba(242, 204, 141, 0.15);
    background: linear-gradient(150deg, rgba(30, 63, 46, 0.44), rgba(242, 204, 141, 0.08));
}

/* ===============================================
   Footer + content pages
   =============================================== */
.footer {
    background: rgba(23, 23, 29, 0.9);
    border-top: 1px solid rgba(242, 204, 141, 0.14);
    color: var(--wp-muted);
}

.footer-link {
    color: var(--wp-secondary);
}

.footer-link:hover {
    color: #ffe5bc;
}

.page-content {
    padding-top: 130px;
    padding-bottom: 80px;
    width: min(100% - 2rem, 860px);
    max-width: none;
    overflow-x: hidden;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    margin-top: 1.4rem;
    margin-bottom: 0.8rem;
    overflow-wrap: break-word;
}

.page-content p,
.page-content li {
    color: var(--wp-muted);
    overflow-wrap: break-word;
}

.page-content a {
    color: var(--wp-secondary);
}

.page-content a:hover {
    color: #ffe5bc;
}

.page-content img {
    display: block;
    width: min(100%, 390px);
    max-height: 620px;
    object-fit: cover;
    object-position: top center;
    margin: 1.8rem auto 0.75rem;
    border: 1px solid rgba(242, 204, 141, 0.16);
    border-radius: 18px;
    background: rgba(23, 23, 29, 0.34);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.page-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.4rem 0 2rem;
    color: var(--wp-muted);
}

.page-content th,
.page-content td {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(242, 204, 141, 0.16);
    vertical-align: top;
    min-width: 180px;
}

.page-content th {
    color: var(--wp-text);
    background: rgba(42, 88, 65, 0.24);
}

.page-content tr:nth-child(even) td {
    background: rgba(23, 23, 29, 0.32);
}

/* ===============================================
   Utilities + responsive
   =============================================== */
.bg-dark-subtle {
    background: transparent !important;
}

.main-content {
    display: none !important;
}

@media (max-width: 1200px) {
    .floating-card-1 {
        right: -12%;
    }

    .floating-card-2 {
        left: -13%;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding-top: 112px;
    }

    .hero-section .display-1 {
        font-size: clamp(2.4rem, 9vw, 4rem);
    }

    .hero-section .lead {
        max-width: 100%;
    }

    .hero-copy {
        flex: 0 0 100%;
        width: calc(100vw - 64px);
        max-width: calc(100vw - 64px);
        min-width: 0;
        overflow-wrap: break-word;
    }

    .hero-phone-container {
        margin-top: 1.1rem;
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-layout {
        min-height: 0;
    }

    .hero-phone-col {
        justify-content: center;
    }

    .phone-mockup {
        transform: none;
    }

    .hero-phone-container:hover .phone-mockup {
        transform: none;
    }

    .floating-card {
        display: none;
    }

    .py-6 {
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }
}

@media (max-width: 767.98px) {
    .page-content {
        width: calc(100dvw - 2rem);
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .page-content h1 {
        font-size: 2rem;
        line-height: 1.16;
    }

    .page-content h2 {
        font-size: 1.55rem;
        line-height: 1.22;
    }

    .page-content table,
    .page-content thead,
    .page-content tbody,
    .page-content tr,
    .page-content th,
    .page-content td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .page-content table {
        overflow: visible;
        border: 0;
    }

    .page-content thead {
        display: none;
    }

    .page-content tr {
        margin-bottom: 0.85rem;
        border: 1px solid rgba(242, 204, 141, 0.16);
        background: rgba(23, 23, 29, 0.28);
    }

    .page-content td {
        border: 0;
        padding: 0.85rem 1rem;
    }

    .page-content td:first-child {
        color: var(--wp-text);
        font-weight: 700;
        background: rgba(42, 88, 65, 0.24);
    }

    .stats-item {
        padding: 0.7rem 0.45rem;
    }

    .stats-item h3 {
        font-size: 1.3rem;
    }

    .feature-card,
    .poi-card {
        padding: 1.35rem;
        border-radius: 18px;
    }

    .phone-screen {
        border-radius: 28px;
        border-width: 6px;
        max-height: 64vh;
    }
}

/* ===============================================
   Use Cases page — alternating rows
   =============================================== */
.use-cases-section .use-case-row {
    border-top: 1px solid rgba(242, 204, 141, 0.08);
}

.use-cases-section .use-case-row:nth-child(even) {
    background: rgba(23, 23, 29, 0.45);
}

.use-case-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(242, 204, 141, 0.18);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}
