:root {
    --navy: #14324f;
    --navy-2: #1d466d;
    --cream: #f6f2ea;
    --cream-2: #efe9dd;
    --ink: #1c2733;
    --muted: #6b7280;
    --line: rgba(20, 50, 79, 0.12);
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: inherit;
}

html,
body {
    height: 100%;
}

html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--cream);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(12px, 2.4vh, 20px) 48px;
    border-bottom: 1px solid var(--line);
    background: rgba(246, 242, 234, 0.9);
    backdrop-filter: blur(6px);
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--navy);
}

.logo svg {
    width: 26px;
    height: 26px;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}

nav a.active {
    border-bottom-color: var(--navy);
}

.icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icons svg {
    width: 20px;
    height: 20px;
    color: var(--navy);
    cursor: pointer;
}

.cart-wrap {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--navy);
    color: white;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(16px, 3vh, 40px) 48px;
}

.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: clamp(8px, 1.6vh, 18px);
}

h1 {
    font-size: clamp(1.8rem, 3vw + 1.2rem, 3.4rem);
    line-height: 1.08;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 clamp(10px, 1.6vh, 22px);
    max-width: 560px;
}

.sub {
    font-size: 0.98rem;
    color: var(--muted);
    max-width: 440px;
    line-height: 1.55;
    margin-bottom: clamp(14px, 2.4vh, 32px);
}

.shop-now {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: white;
    padding: 15px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.shop-now svg {
    width: 16px;
    height: 16px;
}

.hero-art {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Floating call button */
.call-fab {
    position: fixed;
    right: 28px;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(20, 50, 79, 0.35);
    cursor: pointer;
    border: 2px solid var(--navy);
    z-index: 20;
}

.call-fab svg {
    width: 26px;
    height: 26px;
    color: var(--navy);
}

.call-ring {
    position: fixed;
    right: 28px;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid var(--navy);
    opacity: 0.5;
    animation: pulse 2.2s ease-out infinite;
    pointer-events: none;
    z-index: 19;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

.call-label {
    position: fixed;
    right: 100px;
    bottom: calc(44px + env(safe-area-inset-bottom, 0px));
    background: var(--navy);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 20;
    pointer-events: none;
}

.call-fab:hover~.call-label,
.call-fab:focus-visible~.call-label {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 860px) {
    header {
        padding: clamp(10px, 2vh, 16px) 20px;
    }

    nav {
        display: none;
    }

    .hero {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .hero-content {
        max-width: none;
        padding: clamp(10px, 2vh, 20px) 20px;
    }

    h1 {
        font-size: clamp(1.5rem, 6vw, 2.1rem);
    }

    .sub {
        font-size: 0.98rem;
        color: var(--muted);
        max-width: 440px;
        line-height: 1.55;
        margin-bottom: clamp(14px, 2.4vh, 32px);
    }

    @media (max-width: 860px) {
        .sub {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            overflow: hidden;
        }
    }

    .hero-art {
        position: static;
        width: 100%;
        order: -1;
        flex: 0 0 auto;
    }

    .hero-art img {
        height: auto;
        object-fit: contain;
    }
}

@media (prefers-reduced-motion: reduce) {
    .call-ring {
        animation: none;
        opacity: 0;
    }
}

/* Call widget: idle / connecting / active states */
.call-fab,
.call-ring,
.call-label,
.call-connecting,
.call-card {
    display: none;
}

.call-widget[data-call-state="idle"] .call-fab,
.call-widget[data-call-state="idle"] .call-ring {
    display: flex;
}

.call-widget[data-call-state="idle"] .call-ring {
    display: block;
}

.call-widget[data-call-state="idle"] .call-fab:hover~.call-label,
.call-widget[data-call-state="idle"] .call-fab:focus-visible~.call-label {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.call-widget[data-call-state="connecting"] .call-connecting {
    display: flex;
}

.call-widget[data-call-state="active"] .call-card {
    display: flex;
}

.call-connecting {
    position: fixed;
    right: 28px;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    align-items: center;
    gap: 10px;
    background: var(--cream);
    border: 2px solid var(--navy);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 20px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(20, 50, 79, 0.35);
    z-index: 20;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(20, 50, 79, 0.25);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.call-card {
    position: fixed;
    right: 28px;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    width: 260px;
    background: white;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 14px 32px rgba(20, 50, 79, 0.28);
    z-index: 20;
}

.call-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--ink);
}

.call-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.call-timer {
    color: var(--muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.call-card-sub {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 2px;
}

.call-card-divider {
    height: 1px;
    background: var(--line);
    margin: 14px 0;
}

.end-call-btn,
.mute-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #e15b5b;
    color: white;
    border: none;
    padding: 13px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
}

.end-call-btn svg,
.mute-btn svg {
    width: 16px;
    height: 16px;
}

/* both buttons sit in one red pill, split by a small white line */
.call-actions {
    display: flex;
    align-items: center;
    width: 100%;
    background: #e15b5b;
    /* same colour as End call */
    border-radius: 999px;
    overflow: hidden;
}

.call-actions .end-call-btn,
.call-actions .mute-btn {
    flex: 1;
    width: auto;
    background: transparent;
    border-radius: 0;
}

.call-actions .end-call-btn:hover,
.call-actions .mute-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.call-actions .end-call-btn:focus-visible,
.call-actions .mute-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -5px;
}

.call-actions-divider {
    flex: none;
    align-self: stretch;
    width: 8px;
    background: #fff;
}

.mute-slash {
    display: none;
}

.mute-btn[data-muted="true"] .mute-slash {
    display: inline;
}

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none;
    }
}