/* ============================================
   SUNYATA GLOBAL DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700&display=swap');

/* ============================================
   ROOT VARIABLES
   ============================================ */

:root {
    /* Footer combination: warm cream, gold, dark brown */
    --background: #FBF6EE;
    --foreground: #2C1E16;
    --surface: #FFF8EE;

    --primary: #D4AF37;
    --primary-dark: #B8941F;
    --primary-light: #E5C968;

    --secondary: #2C1E16;
    --secondary-light: #3D2A20;

    --accent: #C5A059;

    --muted: #F4E7D4;
    --border: #E4D2B0;

    --white: #FFFFFF;
    --black: #000000;

    /* Typography */
    --heading-font: "Lato", sans-serif;
    --body-font: "Lato", sans-serif;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-soft:
        0 8px 32px rgba(44, 30, 22, 0.06);

    --shadow-hover:
        0 16px 40px rgba(44, 30, 22, 0.10);

    /* Layout */
    --container-width: 1400px;
    --header-height: 82px;
}


/* ============================================
   RESET
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(900px 420px at 100% 0%, rgba(212, 175, 55, 0.08), transparent 62%),
        linear-gradient(180deg, #FBF6EE 0%, #F4E7D4 100%);
    background-attachment: fixed;
    color: var(--foreground);

    font-family: var(--body-font);

    font-size: 16px;
    line-height: 1.7;

    letter-spacing: 0.02em;
}


/* ============================================
   HEADINGS
   ============================================ */

button,
input,
select,
textarea {
    font-family: var(--body-font);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 500;
    color: inherit;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
}

p {
    font-family: var(--body-font);
    line-height: 1.8;
}


/* ============================================
   LINKS
   ============================================ */

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 2px var(--primary);
}


/* ============================================
   CONTAINER
   ============================================ */

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


/* ============================================
   SECTION
   ============================================ */

.section {
    padding: 96px 0;
}

.section-sm {
    padding: 64px 0;
}

.section-lg {
    padding: 128px 0;
}


/* ============================================
   OVERLINE
   ============================================ */

.overline {
    font-family: var(--body-font);

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.2em;

    color: var(--accent);

    margin-bottom: 16px;
}


/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 28px;

    border-radius: var(--radius-pill);

    border: 1px solid transparent;

    font-family: var(--body-font);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 300ms ease,
        color 300ms ease,
        border-color 300ms ease,
        transform 300ms ease,
        box-shadow 300ms ease;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);

    box-shadow: var(--shadow-hover);
}

.btn-gold {
    background: var(--primary);
    color: var(--secondary);
}

.btn-gold:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
}


/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    padding: 32px;

    box-shadow: var(--shadow-soft);

    transition:
        transform 400ms ease,
        box-shadow 400ms ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}


/* ============================================
   IMAGES
   ============================================ */

img {
    display: block;

    max-width: 100%;
    width: 100%;

    object-fit: cover;
}

.image-hover {
    overflow: hidden;
}

.image-hover img {
    transition:
        transform 700ms ease;
}

.image-hover:hover img {
    transform: scale(1.05);
}


/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;

    min-height: 80vh;

    display: flex;
    align-items: center;

    background-size: cover;
    background-position: center;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.05)
        );

    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 700px;

    color: var(--white);
}

.hero-content h1 {
    color: var(--white);
}

.hero-content p {
    margin-top: 24px;

    font-size: 18px;

    max-width: 600px;
}


/* ============================================
   GRAIN / TEXTURE
   ============================================ */

.grain {
    position: relative;
}

.grain::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    opacity: 0.05;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.4'/%3E%3C/svg%3E");
}


/* ============================================
   FORM
   ============================================ */

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;
}

.form-control {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--surface);

    color: var(--foreground);

    font-family: var(--body-font);

    transition:
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.form-control:focus {
    border-color: var(--primary);

    outline: none;

    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.15);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}


/* ============================================
   BENTO GRID
   ============================================ */

.bento-grid {
    display: grid;

    grid-template-columns: repeat(12, 1fr);

    gap: 32px;
}

.bento-wide {
    grid-column: span 7;
}

.bento-small {
    grid-column: span 5;
}

.bento-full {
    grid-column: span 12;
}


/* ============================================
   SESSION GRID
   ============================================ */

.session-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 48px;
}


/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;

    top: 16px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 1000;

    width: min(96%, 1500px);

    background: rgba(255, 255, 255, 0.70);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid var(--border);

    border-radius: 999px;

    box-shadow: var(--shadow-soft);
}

.navbar-inner {
    min-height: 74px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 8px 24px;
}

.nav-logo {
    display: flex;

    align-items: center;

    gap: 12px;
}

.nav-logo img {
    width: 150px;
    height: auto;
}

.nav-links {
    display: flex;

    align-items: center;

    gap: 38px;
}

.nav-link {
    position: relative;

    font-family: var(--body-font);

    font-size: 15px;

    color: var(--secondary);

    transition:
        color 200ms ease;
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition:
        width 300ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

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


/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--secondary);

    color: var(--background);

    padding: 96px 0 40px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 64px;
}

.footer h3 {
    color: var(--white);

    font-size: 24px;

    margin-bottom: 20px;
}

.footer a {
    color: rgba(253, 251, 247, 0.75);

    transition:
        color 200ms ease;
}

.footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 64px;

    padding-top: 24px;

    border-top:
        1px solid rgba(230, 222, 213, 0.2);

    display: flex;

    justify-content: space-between;

    align-items: center;
}


/* ============================================
   ANIMATIONS
   ============================================ */

.fade-up {
    opacity: 0;

    transform: translateY(20px);

    animation:
        fadeUp 800ms ease forwards;
}

@keyframes fadeUp {

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {

    .nav-links {
        gap: 20px;
    }

    .session-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {

    .container {
        width: min(100% - 28px, var(--container-width));
    }

    .section {
        padding: 72px 0;
    }

    .navbar {
        width: 94%;
    }

    .nav-links {
        display: none;
    }

    .nav-logo img {
        width: 125px;
    }

    .hero {
        min-height: 70vh;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-wide,
    .bento-small,
    .bento-full {
        grid-column: span 1;
    }

    .session-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}


/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* The live site navbar and footer keep their own structure.
   These rules sit after the system so that layout is not replaced. */
.site-header .nav-links {
    display: flex;
}

.page-home .hero {
    min-height: 100vh;
    justify-content: center;
    padding: 120px 24px 72px;
    color: #FFFFFF;
    text-align: center;
}

.page-home .hero::before {
    content: none;
}

.hero h1,
.hero h2,
.hero h3,
.closing h2,
.sacred-banner h2 {
    color: inherit;
}

.sessions-page .session-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.site-footer .footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(240px, 1.15fr) minmax(150px, 0.8fr) minmax(170px, 0.9fr) minmax(220px, 1.05fr);
    align-items: start;
    gap: 28px 36px;
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 64px 0 88px;
}

@media (max-width: 1024px) {
    .site-header .nav-links {
        gap: 20px;
    }

    .site-footer .footer-grid {
        grid-template-columns: minmax(240px, 1.15fr) minmax(150px, 0.8fr) minmax(170px, 0.9fr) minmax(220px, 1.05fr);
    }
}

@media (max-width: 900px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
        padding: 48px 0 72px;
    }

    .site-footer .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-header .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-header .nav-links {
        display: none;
    }

    .site-header .nav-links.is-open {
        display: flex;
    }

    .sessions-page .session-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
