/* Pahad Calling shared public shell: palette, typography, navigation and auth dialog. */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --saffron: #e8651a;
    --turmeric: #f0a500;
    --indigo-night: #0f2318;
    --violet-storm: #3d2b6b;
    --sage: #2e7d32;
    --fern: #388e3c;
    --leaf: #66bb6a;
    --slate: #2c3e50;
    --rose-mauve: #c2607a;
    --rose: #c2185b;
    --river: #1565c0;
    --brass: #c8a96e;
    --cerulean: #2176ae;
    --cream: #fafdf7;
    --meadow: #e8f5e9;
    --sky: #ebf5fb;
    --white: #fff;
    --text-dark: #1a2e1a;
    --text-mid: #3e4e3e;
    --text-soft: #5c6b5c;
    --text-xsoft: #8a9a8a;
    --charcoal: #263238;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background: var(--cream);
    color: var(--text-dark);
    font-family: "Inter", sans-serif;
    cursor: auto;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("/images/heroimage.jpeg") center / cover no-repeat;
    opacity: 0.03;
}

.cur,
.cur-trail {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    will-change: left, top, transform, opacity;
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) and (min-width: 769px) {
    html.pc-custom-cursor-active,
    html.pc-custom-cursor-active body,
    html.pc-custom-cursor-active body * {
        cursor: none !important;
    }

    .cur,
    .cur-trail {
        display: block;
    }

    .cur.is-visible,
    .cur-trail.is-visible {
        opacity: 1;
    }

    .cur {
        z-index: 2147483647;
        width: 11px;
        height: 11px;
        border: 2px solid rgba(255, 255, 255, 0.9);
        background: var(--saffron);
        box-shadow: 0 3px 12px rgba(15, 35, 24, 0.32);
        transition: width 0.18s ease, height 0.18s ease, background 0.18s ease,
            opacity 0.16s ease, transform 0.16s ease;
    }

    .cur-trail {
        z-index: 2147483646;
        width: 38px;
        height: 38px;
        border: 1.5px solid rgba(232, 101, 26, 0.72);
        background: rgba(255, 255, 255, 0.06);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45),
            0 5px 18px rgba(15, 35, 24, 0.12);
        transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease,
            background 0.2s ease, opacity 0.16s ease, transform 0.16s ease;
    }

    .cur.is-interactive {
        width: 8px;
        height: 8px;
        background: var(--turmeric);
    }

    .cur-trail.is-interactive {
        width: 54px;
        height: 54px;
        border-color: rgba(240, 165, 0, 0.9);
        background: rgba(240, 165, 0, 0.1);
    }

    .cur.is-pressed {
        transform: translate(-50%, -50%) scale(0.72);
    }

    .cur-trail.is-pressed {
        transform: translate(-50%, -50%) scale(0.82);
    }
}

#mainNav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 4rem;
    border-bottom: 1px solid rgba(46, 125, 50, 0.08);
    background: rgba(250, 253, 247, 0.86);
    box-shadow: 0 4px 20px rgba(15, 35, 24, 0.03);
    backdrop-filter: blur(18px);
    transition: padding 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}

#mainNav.solid {
    padding: 1.1rem 4rem;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
    background: rgba(250, 253, 247, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(20px);
}

.nav-logo {
    position: relative;
    color: var(--text-dark);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.nav-logo::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--saffron);
    transition: width 0.4s ease;
}

.nav-logo:hover::after {
    width: 100%;
}

.nav-logo b {
    color: var(--saffron);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: var(--text-soft);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--turmeric);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--saffron);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active::after {
    background: var(--saffron);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1.5rem;
}

.nav-cta {
    min-height: 42px;
    padding: 0.6rem 1.4rem;
    border: 0;
    border-radius: 4px;
    background: var(--sage);
    color: var(--white);
    font: 600 0.62rem/1 "Inter", sans-serif;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

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

.nav-cta-label-short {
    display: none;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-btn {
    padding: 0.5rem 1rem;
    border: 0;
    background: none;
    color: var(--text-dark);
    font: 600 0.68rem/1.2 "Inter", sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}

.user-btn-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.user-btn-icon {
    display: none;
    align-items: center;
    justify-content: center;
}

.user-btn-icon svg {
    width: 22px;
    height: 22px;
}

.dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 1000;
    display: none;
    min-width: 180px;
    overflow: hidden;
    border: 1px solid rgba(46, 125, 50, 0.1);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(26, 46, 26, 0.08);
}

.dropdown.show {
    display: block;
}

.dropdown a,
.dropdown button {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    color: var(--text-mid);
    font: 400 0.8rem/1.4 "Inter", sans-serif;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.dropdown a:hover,
.dropdown button:hover {
    background: var(--meadow);
    color: var(--sage);
}

.dropdown form {
    margin: 0;
}

.colour-strip {
    height: 4px;
    background: linear-gradient(90deg, var(--violet-storm), var(--cerulean), var(--sage), var(--turmeric), var(--saffron), var(--rose-mauve), var(--violet-storm));
    background-size: 200% 100%;
    animation: stripSlide 8s linear infinite;
}

@keyframes stripSlide {
    to { background-position: 200% 0; }
}

.rise {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.rise.up {
    opacity: 1;
    transform: translateY(0);
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: rgba(10, 18, 12, 0.62);
    cursor: default;
    backdrop-filter: blur(10px);
}

.auth-box {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10000;
    width: min(520px, calc(100% - 32px));
    overflow: hidden;
    padding: 44px 38px 38px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(23, 49, 29, 0.12);
    border-radius: 30px;
    background: #fffdf8;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
    text-align: center;
    cursor: default;
}

.auth-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #355e3b, #6d8b5a, #355e3b);
}

.auth-box h2 {
    margin: 0 0 16px;
    color: #17311d;
    font: 700 clamp(2.1rem, 5vw, 3.6rem) / 1.02 "Cormorant Garamond", serif;
    letter-spacing: -0.05em;
}

.auth-box p {
    max-width: 390px;
    margin: 0 auto 30px;
    color: rgba(23, 49, 29, 0.68);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.65;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    z-index: 1;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--text-xsoft);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.pc-google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    background: #17311d;
    box-shadow: 0 14px 34px rgba(23, 49, 29, 0.24);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pc-google-login-btn::before {
    content: "G";
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #17311d;
    font-weight: 700;
}

.pc-google-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(23, 49, 29, 0.32);
}

@media (max-width: 1100px) {
    #mainNav,
    #mainNav.solid {
        padding: 1.15rem 2.5rem;
    }

    .nav-links {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    #mainNav,
    #mainNav.solid {
        padding: 1rem 1.25rem;
    }

    .nav-logo {
        flex: 0 1 auto;
        font-size: 1.2rem;
    }

    .nav-actions {
        flex: 0 0 auto;
        gap: 0.5rem;
        margin-left: auto;
    }

    .nav-cta {
        min-height: 40px;
        padding: 0.5rem 0.8rem;
        font-size: 0.58rem;
    }

    .nav-cta-label-full {
        display: none;
    }

    .nav-cta-label-short {
        display: inline;
    }

    body {
        cursor: auto;
    }

    .cur,
    .cur-trail {
        display: none;
    }

    .auth-box {
        padding: 36px 24px 30px;
        border-radius: 24px;
    }
}

@media (max-width: 420px) {
    #mainNav,
    #mainNav.solid {
        padding: 0.85rem 1rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-actions {
        gap: 0.35rem;
    }

    .nav-cta {
        min-height: 38px;
        padding: 0.45rem 0.65rem;
    }
}
