/* 
---------------------------------------------------------------------------
Shastra Wisdom Foundation - Global Site Styles 
---------------------------------------------------------------------------
*/

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&family=Sansation:ital@0;1&display=swap");

:root {
    /* =====================================================
       SHASTRA WISDOM BRAND COLORS
       ===================================================== */

    /* Primary brand teal / green */
    --sw-brand-primary: #0f766e;
    --sw-brand-primary-dark: #115e59;
    --sw-brand-primary-darker: #134e4a;

    /* Light brand backgrounds */
    --sw-brand-primary-soft: #f0fdfa;
    --sw-brand-primary-light: #ccfbf1;

    /* Brand borders / highlights */
    --sw-brand-border: #99f6e4;
    --sw-brand-border-soft: #ccfbf1;
    --sw-brand-border-hover: #5eead4;

    /* Wisdom / sacred accent */
    --sw-brand-gold: #b7791f;
    --sw-brand-gold-dark: #92400e;
    --sw-brand-gold-soft: #fffbeb;

    /* Main text */
    --sw-text: #0f172a;
    --sw-text-secondary: #475569;
    --sw-text-muted: #64748b;

    /* Backgrounds */
    --sw-bg: #ffffff;
    --sw-bg-soft: #f8fafc;
    --sw-bg-brand-soft: #f0fdfa;

    /* Dark sections */
    --sw-bg-dark: #020617;
    --sw-bg-dark-soft: #0f172a;

    /* Neutral borders */
    --sw-border: #e2e8f0;
    --sw-border-medium: #cbd5e1;

    /* =====================================================
       LEGACY VARIABLE MAPPING
       Keep these so existing pages continue working
       ===================================================== */

    --sw-primary: var(--sw-brand-primary);
    --sw-primary-dark: var(--sw-brand-primary-dark);
    --sw-primary-darker: var(--sw-brand-primary-darker);
    --sw-primary-soft: var(--sw-brand-primary-soft);
    --sw-primary-border: var(--sw-brand-border);
    --sw-primary-border-soft: var(--sw-brand-border-soft);
    --sw-primary-border-hover: var(--sw-brand-border-hover);
    --sw-primary-accent: var(--sw-brand-primary);

    /* =====================================================
       SHAPE / LAYOUT
       ===================================================== */

    --sw-radius-sm: .75rem;
    --sw-radius: 1rem;
    --sw-radius-lg: 1.5rem;
    --sw-max: 72rem;

    /* =====================================================
       TYPOGRAPHY
       ===================================================== */

    --sw-font-body: "Roboto", Arial, Helvetica, sans-serif;
    --sw-font-display: "Sansation", Arial, Helvetica, sans-serif;

    /* =====================================================
       SHADOWS
       ===================================================== */

    --sw-shadow-sm:
        0 1px 2px rgba(15, 23, 42, .05);

    --sw-shadow-md:
        0 12px 30px rgba(15, 23, 42, .08);
}


/* =========================================================
   BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: var(--sw-font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--sw-text);
    background: var(--sw-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

img,
video {
    height: auto;
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

table {
    max-width: 100%;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

/* Headings / editorial emphasis */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--sw-font-display);
}

/* Interface / utility typography */
nav,
button,
input,
select,
textarea,
.nav-text,
.sw-btn,
.sw-eyebrow,
.sw-chip {
    font-family: var(--sw-font-body);
}

/* Legacy class retained for compatibility with existing HTML */
.font-sansation {
    font-family: var(--sw-font-display) !important;
}

.nav-text {
    letter-spacing: .05em;
}

.sw-eyebrow {
    color: var(--sw-brand-gold);
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .20em;
    text-transform: uppercase;
}

.sw-section-title {
    margin-top: .5rem;
    color: var(--sw-text);
    font-family: var(--sw-font-display);
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.sw-body-copy {
    color: var(--sw-text-secondary);
    line-height: 1.75;
}


/* =========================================================
   SHARED UI
   ========================================================= */

.glass {
    backdrop-filter: saturate(150%) blur(10px);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    background: rgba(255, 255, 255, .82);
}

.sw-card {
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    background: var(--sw-bg);
    padding: 1.5rem;
}

.sw-card-soft {
    border-color: var(--sw-brand-border);
    background: var(--sw-brand-primary-soft);
}

.sw-card-hover {
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.sw-card-hover:hover {
    transform: translateY(-4px);
    border-color: var(--sw-brand-border-hover);
    box-shadow: var(--sw-shadow-md);
}

.sw-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--sw-border);
    border-radius: 9999px;
    background: var(--sw-bg);
    padding: .25rem .75rem;
    color: var(--sw-text-secondary);
    font-size: .75rem;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.sw-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: var(--sw-radius-sm);
    padding: .625rem 1.25rem;
    font-family: var(--sw-font-body);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.sw-btn-primary {
    border: 1px solid var(--sw-brand-primary-dark);
    background: var(--sw-brand-primary-dark);
    color: #fff;
}

.sw-btn-primary:hover {
    background: var(--sw-brand-primary-darker);
    border-color: var(--sw-brand-primary-darker);
    transform: translateY(-1px);
}

.sw-btn-secondary {
    border: 1px solid var(--sw-border-medium);
    background: var(--sw-bg);
    color: #334155;
}

.sw-btn-secondary:hover {
    border-color: var(--sw-brand-border);
    color: var(--sw-brand-primary);
    background: var(--sw-bg-soft);
}

.sw-btn-dark {
    border: 1px solid var(--sw-bg-dark-soft);
    background: var(--sw-bg-dark-soft);
    color: #fff;
}

.sw-btn-dark:hover {
    background: #1e293b;
    border-color: #1e293b;
    transform: translateY(-1px);
}


/* =========================================================
   TEACHING / PATHWAY CARDS
   ========================================================= */

/* Retained for compatibility with existing teaching pages */
.sw-teaching-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--sw-brand-border-soft);
    border-radius: var(--sw-radius);
    background: linear-gradient(135deg,
            #ffffff,
            var(--sw-brand-primary-soft));
    padding: 1.5rem;
    box-shadow: var(--sw-shadow-sm);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.sw-teaching-card:hover {
    transform: translateY(-4px);
    border-color: var(--sw-brand-border-hover);
    box-shadow: var(--sw-shadow-md);
}

/* Primary homepage pathway cards.
   Keep this styling intact because it controls the visible boxed layout. */
.sw-pathway-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--sw-brand-border-soft);
    border-radius: var(--sw-radius);
    background: linear-gradient(to bottom right,
            #ffffff,
            var(--sw-brand-primary-soft));
    padding: 1.5rem;
    box-shadow: var(--sw-shadow-sm);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.sw-pathway-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(183, 121, 31, .20);
    border-radius: .65rem;
    background: var(--sw-brand-gold-soft);
    padding: .25rem .75rem;
    color: var(--sw-brand-gold-dark);
    font-family: var(--sw-font-body);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sw-pathway-card:hover {
    transform: translateY(-.25rem);
    border-color: var(--sw-brand-border-hover);
    box-shadow:
        0 10px 15px -3px rgba(15, 23, 42, .10),
        0 4px 6px -4px rgba(15, 23, 42, .10);
}

.sw-start-panel {
    border: 1px solid var(--sw-brand-border);
    border-top: 2px solid var(--sw-brand-gold);
    border-radius: var(--sw-radius);
    background: var(--sw-brand-primary-soft);
    padding: 1.5rem;
}

.org-hero-separator {
    height: 1px;
    width: 3.5rem;
    background: var(--sw-brand-gold);
}


/* =========================================================
   FOOTER
   ========================================================= */

#site-footer a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1023px) {
    #mobileMenu {
        max-height: calc(100vh - 6.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    #mobileMenu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        border-radius: .65rem;
        padding-left: .65rem;
        padding-right: .65rem;
    }

    #mobileMenu a:active {
        background: rgb(241 245 249);
    }

    #menuBtn {
        min-width: 44px;
        min-height: 44px;
        flex: 0 0 auto;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 16px;
        line-height: 1.65;
    }

    header {
        max-width: 100vw;
    }

    header>div {
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    header [class*="rounded-2xl"] {
        margin-top: .5rem !important;
        margin-bottom: .5rem !important;
    }

    .text-justify {
        text-align: left !important;
    }

    h1 {
        line-height: 1.15 !important;
    }

    h2,
    h3 {
        line-height: 1.25 !important;
    }

    p,
    li {
        overflow-wrap: anywhere;
    }

    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .overflow-hidden img {
        min-width: 0;
    }

    a[class*="px-"],
    button[class*="px-"],
    .sw-btn {
        min-height: 44px;
    }

    #site-footer {
        text-align: left;
    }
}

@media (max-width: 420px) {
    #home .flex.flex-wrap>a {
        width: 100%;
        justify-content: center;
    }

    header .tracking-\[0\.18em\] {
        letter-spacing: .10em !important;
        font-size: .95rem !important;
    }
}

.gita-feature-left {
    background: linear-gradient(135deg,
            #c65d00 0%,
            #a94700 45%,
            #7c3200 100%);
}

.gita-feature-label {
    color: var(--sw-brand-gold);
}

.gita-feature-button {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .5rem;

    background: var(--sw-brand-gold);
    color: #ffffff;

    padding: .75rem 1.25rem;
    border-radius: .75rem;

    font-family: var(--sw-font-body);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25;

    text-decoration: none;

    transition:
        background-color .2s ease,
        transform .2s ease;
}

.gita-feature-button:hover {
    background: var(--sw-brand-gold-dark);
    transform: translateY(-1px);
}

.gita-feature-right {
    background: var(--sw-bg-dark-soft);
}

.gita-feature-right .sw-eyebrow {
    color: var(--sw-brand-gold);
}

.gita-shloka {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.45;
    font-weight: 500;
    color: #fff7ed;
}

.timeless-teachings-page .reflection-chip {
    background: var(--sw-brand-gold-soft);
    color: var(--sw-brand-gold-dark);
}

.timeless-teachings-page .reflection-step-featured .step-number {
    background: var(--sw-brand-gold);
    color: #fff;
}

.timeless-teachings-page .reflection-step-number {
    background: var(--sw-bg-dark-soft);
    color: #ffffff;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}