/* ==========================================================================
   base.css — loaded on every page: tokens, reset, header, marquee,
   breadcrumb, footer, shared buttons. Page sections live in their own file.
   ========================================================================== */


/* ---- tokens ---- */

:root {
    --bg: #0b0b12;
    --panel: #14141f;
    --panel-2: #1a1a28;
    --line: #2a2a3d;
    --text: #ececf1;
    --muted: #a0a0b6;
    --gold: #f5b800;
    --gold-soft: #ffd84d;
    --red: #d9182b;
    --red-dark: #a80f1f;
    --radius: 12px;
    --maxw: 1180px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}


/* ---- reset ---- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.7 var(--font);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold);
}

a:hover {
    color: var(--gold-soft);
}

h1,
h2,
h3,
p,
ul,
ol {
    margin-top: 0;
}

table {
    border-collapse: collapse;
}

button {
    font: inherit;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--gold);
    color: #000;
    padding: 8px 14px;
    z-index: 100;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}


/* ---- buttons (shared) ---- */

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-gold {
    background: var(--gold);
    color: #1a1300;
}

.btn-gold:hover {
    background: var(--gold-soft);
    color: #1a1300;
}

.btn-line {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-line:hover {
    background: var(--gold);
    color: #1a1300;
}


/* ---- header ---- */

.hd {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 11, 18, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
}

.hd-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
}

.hd-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
}

.hd-brand b {
    color: var(--gold);
}

.hd-nav {
    display: flex;
    gap: 6px;
}

.hd-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
}

.hd-nav a:hover {
    background: var(--panel-2);
    color: var(--gold);
}

.hd-nav a.is-active {
    background: var(--gold);
    color: #1a1300;
}

.hd-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hd-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold);
    transition: transform .2s, opacity .2s;
}

.hd-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hd-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hd-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ---- red disclaimer marquee ---- */

.mq {
    background: var(--red);
    color: #fff;
    overflow: hidden;
    border-bottom: 2px solid var(--red-dark);
}

.mq-track {
    display: flex;
    width: max-content;
    animation: mqMove 45s linear infinite;
}

.mq:hover .mq-track {
    animation-play-state: paused;
}

.mq-item {
    padding: 7px 40px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.mq-item strong {
    background: #fff;
    color: var(--red);
    padding: 1px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

@keyframes mqMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/* ---- breadcrumb ---- */

.bc {
    padding-block: 10px;
    font-size: 14px;
}

.bc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--muted);
}

.bc li+li::before {
    content: "/";
    margin-right: 6px;
    color: var(--line);
}

.bc a {
    text-decoration: none;
}


/* ---- footer ---- */

.ft {
    margin-top: 50px;
    background: #07070c;
    border-top: 3px solid var(--gold);
    padding-top: 34px;
}

.ft-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 28px;
}

.ft h3 {
    color: var(--gold);
    font-size: 16px;
    margin-bottom: 10px;
}

.ft ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ft li {
    margin-bottom: 6px;
}

.ft a {
    text-decoration: none;
    color: var(--text);
}

.ft a:hover {
    color: var(--gold);
}

.ft p {
    color: var(--muted);
    font-size: 14px;
}

.ft-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
    margin-bottom: 8px;
}

.ft-brand b {
    color: var(--gold);
}

.ft-age b {
    background: var(--red);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 6px;
}

.ft-bottom {
    border-top: 1px solid var(--line);
    margin-top: 26px;
    padding-block: 16px;
    text-align: center;
}

.ft-bottom p {
    margin-bottom: 6px;
}

.ft-note {
    font-size: 13px;
}


/* ---- floating WhatsApp contact button (fixed, bottom right) ---- */

.wa-float {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
    transition: transform .2s;
}

.wa-float:hover {
    transform: scale(1.08);
    background: #1ebe5b;
}

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

.wa-float svg {
    display: block;
}

@media (max-width: 760px) {
    .ft {
        padding-bottom: 70px;
    }
}


/* ---- responsive ---- */

@media (max-width: 860px) {
    .ft-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .hd-toggle {
        display: flex;
    }
    .hd-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--panel);
        border-bottom: 1px solid var(--line);
        padding: 10px 12px 14px;
    }
    .hd-nav.is-open {
        display: flex;
    }
    .hd-nav a {
        padding: 12px 14px;
    }
    .hd-brand {
        font-size: 18px;
    }
    .ft-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .mq-track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
    }
    .mq-item[aria-hidden="true"] {
        display: none;
    }
    .mq-item {
        white-space: normal;
    }
}


/* ==========================================================
   TODAY'S TIP / KHAIWAL CTA SECTION
   Uses existing base.css variables:
   --bg, --panel, --panel-2, --line,
   --text, --muted, --gold, --gold-soft,
   --red, --red-dark, --radius, --maxw, --font
   ========================================================== */

.tip-cta {
    padding: 34px 0;
}

.tip-cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .28);
}


/* ---- left image ---- */

.tip-cta-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #09090e;
}

.tip-cta-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, transparent 60%, rgba(11, 11, 18, .35));
    pointer-events: none;
}

.tip-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ---- right content ---- */

.tip-cta-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px;
    background: radial-gradient( circle at 100% 0%, rgba(245, 184, 0, .08), transparent 40%), var(--panel);
}

.tip-cta-label {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--gold);
    color: #1a1300;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.tip-cta-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(217, 24, 43, .15);
}

.tip-cta-content h2 {
    max-width: 540px;
    margin-bottom: 14px;
    color: var(--text);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.18;
    font-weight: 900;
}

.tip-cta-content p {
    max-width: 540px;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}


/* ---- buttons ---- */

.tip-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}


/* WhatsApp */

.tip-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 10px 19px;
    border: 2px solid #25d366;
    border-radius: 999px;
    background: #25d366;
    color: #071b0e;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(37, 211, 102, .2);
    animation: whatsappPulse 1.6s ease-in-out infinite;
}

.tip-whatsapp:hover {
    background: #1ebe5b;
    border-color: #1ebe5b;
    color: #071b0e;
    transform: translateY(-2px);
}

.tip-whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
}

.tip-whatsapp-icon svg {
    width: 25px;
    height: 25px;
}


/* WhatsApp blinking/pulse */

@keyframes whatsappPulse {
    0%,
    100% {
        box-shadow: 0 5px 18px rgba(37, 211, 102, .18);
    }
    50% {
        box-shadow: 0 5px 24px rgba(37, 211, 102, .55), 0 0 0 7px rgba(37, 211, 102, .08);
    }
}


/* Result button */

.tip-result-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 10px 19px;
    border: 2px solid var(--gold);
    border-radius: 999px;
    color: var(--gold);
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.tip-result-btn:hover {
    background: var(--gold);
    color: #1a1300;
    transform: translateY(-2px);
}


/* ---- small note ---- */

.tip-cta-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
}

.tip-cta-note span {
    color: var(--gold);
    font-size: 16px;
}


/* ---- focus accessibility ---- */

.tip-whatsapp:focus-visible,
.tip-result-btn:focus-visible {
    outline: 3px solid var(--gold-soft);
    outline-offset: 3px;
}


/* ---- tablet ---- */

@media (max-width: 850px) {
    .tip-cta-content {
        padding: 32px;
    }
    .tip-cta-content h2 {
        font-size: 29px;
    }
    .tip-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .tip-whatsapp,
    .tip-result-btn {
        width: 100%;
    }
}


/* ---- mobile ---- */

@media (max-width: 650px) {
    .tip-cta {
        padding: 24px 0;
    }
    .tip-cta-card {
        grid-template-columns: 1fr;
    }
    .tip-cta-image {
        aspect-ratio: 1 / 1;
    }
    .tip-cta-content {
        padding: 27px 22px 30px;
    }
    .tip-cta-content h2 {
        font-size: 27px;
    }
    .tip-cta-content p {
        font-size: 15px;
        margin-bottom: 21px;
    }
}


/* ---- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
    .tip-whatsapp {
        animation: none;
    }
    .tip-result-btn,
    .tip-whatsapp {
        transition: none;
    }
}