/* Warriors of Africa Safaris — luxury safari palette + glass + motion */

:root {
    --cream: #f5f0e8;
    --cream-deep: #ebe4d8;
    --warm-ink: #2c3228;
    --warm-muted: #6b7366;
    --gold: #c8a45d;
    --gold-hover: #b8924a;
    --olive: #5c6d54;
    --olive-deep: #3d4a38;
    --glass-border: rgba(255, 255, 255, 0.35);
    --ring-gold: rgba(200, 164, 93, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-height: 100dvh;
}

body {
    margin: 0;
    color: var(--warm-ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Hero glass panel (outer drop shadow via Tailwind shadow-2xl on .glass-hero) */
.glass-hero {
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* Email row focus */
.email-glow {
    transition:
        box-shadow 0.2s ease-out,
        border-color 0.2s ease-out,
        background-color 0.2s ease-out;
}
.email-glow:focus-within {
    box-shadow:
        0 0 0 3px rgba(200, 164, 93, 0.35),
        0 12px 28px -8px rgba(44, 50, 40, 0.12);
    border-color: rgba(200, 164, 93, 0.55);
    background-color: rgba(255, 255, 255, 0.92);
}

/* Email signup row — feedback animations */
.email-row {
    transition:
        border-color 0.2s ease-out,
        background-color 0.2s ease-out,
        box-shadow 0.2s ease-out;
}

.email-row--shake {
    animation: notify-shake 0.2s ease-out both;
}

.email-row--success {
    border-color: rgba(109, 129, 150, 0.55) !important;
    background-color: rgba(255, 255, 255, 0.96) !important;
    box-shadow:
        0 0 0 3px rgba(109, 129, 150, 0.22),
        0 14px 36px -10px rgba(44, 50, 40, 0.14) !important;
    animation: notify-row-success 0.2s ease-out;
}

.email-row--success:focus-within {
    border-color: rgba(109, 129, 150, 0.65) !important;
}

@keyframes notify-shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-6px);
    }
    75% {
        transform: translateX(6px);
    }
}

@keyframes notify-row-success {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.006);
    }
}

.notify-submit {
    min-width: 7.25rem;
    transition:
        transform 0.2s ease-out,
        background-color 0.2s ease-out,
        box-shadow 0.2s ease-out;
}

.notify-submit--loading {
    animation: notify-btn-breathe 1.2s ease-in-out infinite;
}

.notify-submit--success {
    background: #5a6e82 !important;
    animation: notify-btn-pop 0.18s ease-out;
}

@keyframes notify-btn-breathe {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.72;
    }
}

@keyframes notify-btn-pop {
    0% {
        transform: scale(1);
    }
    70% {
        transform: scale(1.04);
    }
    100% {
        transform: scale(1);
    }
}

.notify-hint {
    transition:
        opacity 0.2s ease-out,
        transform 0.2s ease-out,
        color 0.2s ease-out;
}

.notify-hint--show {
    animation: notify-hint-in 0.2s ease-out both;
}

.notify-hint--error {
    color: #9a5c52;
}

@keyframes notify-hint-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Primary / secondary buttons */
.btn-primary {
    transition:
        transform 0.2s ease-out,
        box-shadow 0.2s ease-out,
        background-color 0.2s ease-out;
}
.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(200, 164, 93, 0.45);
}
.btn-primary:active {
    transform: scale(0.99);
}

.btn-secondary {
    transition:
        transform 0.2s ease-out,
        border-color 0.2s ease-out,
        background-color 0.2s ease-out,
        color 0.2s ease-out;
}
.btn-secondary:hover {
    transform: scale(1.02);
}
.btn-secondary:active {
    transform: scale(0.99);
}

/* Right column: flat wash (no gradients) + depth from photography */
.hero-glow {
    position: absolute;
    inset: -20% -30% -20% -20%;
    background: var(--cream-deep);
    opacity: 0.85;
    pointer-events: none;
}

/* Safari visual — default + full-bleed right column */
.safari-visual {
    position: relative;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(44, 50, 40, 0.18);
}
.safari-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(245, 240, 232, 0.38);
}
.safari-visual img,
.safari-visual video {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
    min-height: 16rem;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.safari-visual video {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: unset;
}

/* Full width / height of right panel */
.safari-visual--full {
    height: 100%;
    min-height: min(48vh, 26rem);
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: none;
}
.safari-visual--full img,
.safari-visual--full video {
    width: 100%;
    height: 100%;
    min-height: min(48vh, 26rem);
    object-fit: cover;
    aspect-ratio: unset;
}

@media (min-width: 1024px) {
    .safari-visual--full {
        min-height: 100dvh;
        border-radius: 1.75rem 0 0 1.75rem;
        box-shadow: 0 25px 50px -12px rgba(44, 50, 40, 0.12);
    }
    .safari-visual--full img,
    .safari-visual--full video {
        min-height: 100dvh;
    }
}

/* Floating glass panels */
.float-card {
    position: absolute;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 20px 25px -5px rgba(44, 50, 40, 0.1),
        0 8px 10px -6px rgba(44, 50, 40, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.float-card--sm {
    border-radius: 1rem;
}

/* Staggered entrance */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.4s ease-out,
        transform 0.4s ease-out;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger-1 {
    transition-delay: 0.04s;
}
.reveal-stagger-2 {
    transition-delay: 0.08s;
}
.reveal-stagger-3 {
    transition-delay: 0.12s;
}
.reveal-stagger-4 {
    transition-delay: 0.16s;
}
.reveal-stagger-5 {
    transition-delay: 0.2s;
}
.reveal-stagger-6 {
    transition-delay: 0.24s;
}
.reveal-stagger-7 {
    transition-delay: 0.28s;
}
.reveal-stagger-8 {
    transition-delay: 0.32s;
}
.reveal-stagger-9 {
    transition-delay: 0.36s;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

#notify-hint[hidden] {
    display: none;
}

.icon-18 {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}
.icon-20 {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}
.icon-22 {
    width: 1.375rem;
    height: 1.375rem;
    flex-shrink: 0;
}
.icon-28 {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}
.icon-32 {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

/* z-scale: page 10/20, footer 30, float 50 */
.site-footer {
    padding-bottom: 0;
}

.wa-float-wrap {
    position: fixed;
    bottom: max(0.875rem, env(safe-area-inset-bottom, 0px));
    right: max(0.875rem, env(safe-area-inset-right, 0px));
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    padding-left: env(safe-area-inset-left, 0px);
}

.wa-float-wrap--image {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    padding-left: 0;
}

.wa-float-tip {
    display: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--warm-ink);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 0.65rem;
    border-radius: 0.5rem;
    box-shadow:
        0 10px 15px -3px rgba(44, 50, 40, 0.12),
        0 4px 6px -4px rgba(44, 50, 40, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition:
        opacity 0.2s ease-out,
        transform 0.2s ease-out;
}

.wa-float-wrap:hover .wa-float-tip,
.wa-float-wrap:focus-within .wa-float-tip {
    opacity: 1;
    transform: translateY(0);
}

.wa-float-btn {
    display: flex;
    height: 3.5rem;
    width: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #128c7e;
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(18, 140, 126, 0.35);
    transition:
        transform 0.2s ease-out,
        background-color 0.2s ease-out,
        box-shadow 0.2s ease-out;
}

/* Pulse only while in view (see main.js) */
.wa-float-btn--in-view {
    animation: wa-float-pulse 2.5s ease-out infinite;
}

.wa-float-btn:hover {
    transform: scale(1.06);
    background: #0f7a6e;
}

.wa-float-btn:active {
    transform: scale(0.98);
}

@keyframes wa-float-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (min-width: 640px) {
    .site-footer {
        padding-bottom: 0;
    }
    .wa-float-wrap {
        bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
        right: max(1.25rem, env(safe-area-inset-right, 0px));
    }
    .wa-float-wrap--image {
        right: 1.5rem;
        bottom: 1.5rem;
    }
    .wa-float-tip {
        display: block;
    }
    .wa-float-btn {
        height: 4rem;
        width: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-primary:active,
    .btn-secondary:active {
        transform: none;
    }
    .wa-float-btn--in-view {
        animation: none;
    }
    .wa-float-btn {
        box-shadow: 0 12px 32px -8px rgba(18, 140, 126, 0.55);
    }
    .wa-float-tip {
        transition: none;
    }
    .email-row--shake,
    .email-row--success,
    .notify-submit--loading,
    .notify-submit--success,
    .notify-hint--show {
        animation: none;
    }
    .email-row--success {
        box-shadow:
            0 0 0 3px rgba(109, 129, 150, 0.22),
            0 14px 36px -10px rgba(44, 50, 40, 0.14) !important;
        transform: none;
    }
}

/* Privacy policy page */
.policy-page {
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--cream);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.policy-bg-image {
    display: none;
}

.policy-shell {
    position: relative;
    z-index: 20;
    width: 100%;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.75rem;
}

.policy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.policy-logo-link {
    display: inline-flex;
    min-width: 0;
    flex: 1 1 auto;
}

.policy-logo {
    display: block;
    width: auto;
    height: 2.25rem;
    max-width: min(100%, 11rem);
    object-fit: contain;
}

.policy-quote-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    padding: 0.85rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(200, 164, 93, 0.7);
    transition:
        transform 0.2s ease-out,
        background-color 0.2s ease-out,
        box-shadow 0.2s ease-out;
}

.policy-quote-btn:hover {
    transform: translateY(-2px);
    background: var(--gold-hover);
    box-shadow: 0 18px 32px -14px rgba(200, 164, 93, 0.9);
}

.policy-quote-btn img {
    width: 1.25rem;
    height: 1.25rem;
    filter: brightness(0) invert(1);
}

.policy-card {
    width: 100%;
    max-width: 56rem;
    margin-top: 1.75rem;
    border-radius: 1.5rem;
    padding: 1.5rem 1rem;
    box-shadow: 0 25px 50px -12px rgba(44, 50, 40, 0.18);
}

.policy-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(109, 129, 150, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.55rem 1rem;
    color: #6d8196;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.2s ease-out,
        border-color 0.2s ease-out,
        color 0.2s ease-out;
}

.policy-back-link:hover {
    border-color: #6d8196;
    background: #6d8196;
    color: #fff;
}

.policy-eyebrow {
    margin: 0 0 0.75rem;
    color: #6d8196;
    font-size: 0.9rem;
    font-weight: 600;
}

.policy-title {
    margin: 0;
    color: var(--warm-ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.85rem, 8.2vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    text-wrap: balance;
}

.policy-intro {
    max-width: 48rem;
    margin: 1rem 0 0;
    color: var(--warm-muted);
    font-size: clamp(0.95rem, 1vw + 0.75rem, 1.05rem);
    line-height: 1.7;
    text-wrap: pretty;
}

.policy-content {
    margin-top: 2.25rem;
    color: var(--warm-muted);
    font-size: clamp(0.93rem, 0.25vw + 0.88rem, 1rem);
    line-height: 1.72;
    text-wrap: pretty;
}

.policy-section + .policy-section {
    margin-top: 2rem;
}

.policy-section h2,
.policy-info-box h3 {
    margin: 0;
    color: var(--warm-ink);
    font-weight: 700;
}

.policy-section h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.4rem, 3.3vw, 1.75rem);
    line-height: 1.15;
    text-wrap: balance;
}

.policy-info-box h3 {
    font-size: 1rem;
}

.policy-section p,
.policy-info-box p {
    margin: 0.75rem 0 0;
}

.policy-section ul,
.policy-info-box ul {
    margin: 0.75rem 0 0;
    padding-left: 1.3rem;
}

.policy-section li,
.policy-info-box li {
    margin-top: 0.45rem;
}

.policy-section li::marker,
.policy-info-box li::marker {
    color: var(--gold);
}

.policy-info-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.policy-info-box {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.45);
    padding: 1.25rem;
    box-shadow: 0 12px 28px -24px rgba(44, 50, 40, 0.35);
}

.policy-footer {
    position: relative;
    z-index: 30;
    border-top: 1px solid rgba(109, 129, 150, 0.2);
    background: var(--cream);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.policy-footer-inner {
    display: flex;
    width: min(100%, 90rem);
    margin: 0 auto;
    flex-direction: column;
    gap: 2rem;
    padding: 1.75rem 1.25rem;
}

.policy-footer-brand,
.policy-contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.policy-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.policy-socials a {
    display: flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(109, 129, 150, 0.2);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 10px -8px rgba(44, 50, 40, 0.35);
    transition:
        transform 0.2s ease-out,
        background-color 0.2s ease-out,
        border-color 0.2s ease-out;
}

.policy-socials a:hover {
    transform: translateY(-2px);
    border-color: #6d8196;
    background: rgba(109, 129, 150, 0.1);
}

.policy-footer-logo-link img {
    display: block;
    width: auto;
    height: 3.5rem;
    max-width: 100%;
}

.policy-contact-links {
    color: var(--warm-muted);
    font-size: 0.9rem;
    min-width: 0;
}

.policy-contact-links a {
    color: var(--warm-ink);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease-out;
}

.policy-contact-links a:hover {
    color: #6d8196;
}

@media (min-width: 640px) {
    .policy-shell {
        width: min(100%, 72rem);
        padding: 1.75rem 2rem 3.5rem;
    }
    .policy-logo {
        height: 2.5rem;
    }
    .policy-quote-btn {
        padding: 0.95rem 1.5rem;
        font-size: 1rem;
    }
    .policy-card {
        border-radius: 1.75rem;
        margin-top: 2.25rem;
        padding: 2.25rem 1.75rem;
    }
    .policy-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .policy-footer-inner {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        padding-inline: 2rem;
    }
    .policy-contact-links {
        align-items: flex-end;
        text-align: right;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .policy-shell {
        padding-inline: 2.25rem;
    }
    .policy-card {
        padding-inline: 2.1rem;
    }
}

@media (min-width: 1024px) {
    .policy-bg-image {
        position: absolute;
        inset: 0 0 0 auto;
        display: block;
        width: 38%;
        overflow: hidden;
        pointer-events: auto;
    }
    .policy-bg-image .hero-glow,
    .policy-bg-image .safari-visual {
        pointer-events: none;
    }
    .policy-bg-image .safari-visual::after {
        background: rgba(245, 240, 232, 0.48);
    }
    .policy-shell {
        margin-left: clamp(1rem, 3vw, 3rem);
        margin-right: auto;
        width: min(100%, 74rem);
        max-width: min(74rem, calc(100% - 35vw));
        padding: 2rem 2.5rem 4rem;
    }
    .policy-card {
        margin-top: 3rem;
        padding: 3rem;
    }
}

@media (min-width: 1280px) {
    .policy-bg-image {
        width: 40%;
    }
    .policy-shell {
        max-width: min(76rem, calc(100% - 39vw));
        padding-left: clamp(1.5rem, 4vw, 4rem);
        padding-right: clamp(1.75rem, 3vw, 3rem);
    }
}

@media (min-width: 1536px) {
    .policy-bg-image {
        width: 42%;
    }
    .policy-shell {
        max-width: min(80rem, calc(100% - 41vw));
    }
}

@media (max-width: 399px) {
    .policy-quote-btn {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .policy-shell {
        padding-inline: 0.85rem;
    }
    .policy-card {
        border-radius: 1.35rem;
        padding: 1.35rem 0.9rem;
    }
    .policy-title {
        font-size: clamp(1.7rem, 8vw, 2.15rem);
    }
    .policy-back-link {
        width: 100%;
        justify-content: center;
    }
}
