/* Quivaro - Design System */

:root {
    /* Palette */
    --color-charcoal: #1C1C1C;
    --color-off-black: #111111;
    --color-chalk: #F2F0EB;
    --color-linen: #E0D8CC;
    --color-slate: #6C7A89;
    --color-white: #FFFFFF;

    /* Typography */
    --font-header: 'Archivo', sans-serif;
    --font-body: 'EB Garamond', serif;

    /* Spacing */
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --space-xl: 8rem;
    --space-xxl: 12rem;

    /* Transition */
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-standard: 0.4s ease-out;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* Native smooth scroll as fallback */
}

body {
    background-color: var(--color-chalk);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-header);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    font-stretch: 110%;
    /* Makes it slightly wider/extended */
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    max-width: 60ch;
    color: var(--color-charcoal);
    opacity: 0.9;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-standard);
}

a:hover {
    opacity: 0.7;
}

/* Utility */
.container {
    padding: 0 var(--space-m);
    max-width: 1440px;
    margin: 0 auto;
}

.full-height {
    min-height: 100vh;
}

.grid {
    display: grid;
    gap: var(--space-m);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

/* Components */
.btn {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background-color: var(--color-charcoal);
    color: var(--color-chalk);
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--color-charcoal);
    cursor: pointer;
    transition: all var(--transition-standard);
}

.btn:hover {
    background-color: transparent;
    color: var(--color-charcoal);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-charcoal);
    border: 1px solid var(--color-charcoal);
}

.btn-outline:hover {
    background-color: var(--color-charcoal);
    color: var(--color-chalk);
}

/* Section Styling */
header.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    color: var(--color-chalk);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transform: scale(1.1);
    /* Initial zoom for effect */
    transition: transform 0.1s linear;
    /* For JS zoom */
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-m);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-m);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    mix-blend-mode: difference;
    color: var(--color-white);
}

.logo {
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: var(--space-m);
    list-style: none;
    font-family: var(--font-header);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Sections */
section {
    padding: var(--space-xxl) 0;
}

.intent-section {
    background-color: var(--color-chalk);
}

.sanctuary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
    align-items: center;
}

.image-frame {
    overflow: hidden;
    position: relative;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.image-frame:hover img {
    transform: scale(1.05);
    /* Micro-interaction */
}

/* The Method */
.method-list {
    list-style: none;
    border-top: 1px solid rgba(28, 28, 28, 0.2);
}

.method-item {
    border-bottom: 1px solid rgba(28, 28, 28, 0.2);
    padding: var(--space-l) 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.method-item h3 {
    font-size: 1.5rem;
    width: 30%;
}

.method-item p {
    width: 60%;
    font-size: 1.25rem;
}

/* Schedule */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-l);
}

.schedule-table th,
.schedule-table td {
    text-align: left;
    padding: var(--space-m) 0;
    border-bottom: 1px solid rgba(28, 28, 28, 0.1);
    font-family: var(--font-header);
    text-transform: uppercase;
    font-size: 0.875rem;
}

.schedule-table td:last-child {
    text-align: right;
}

/* Contact / Inquiry */
.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-header);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-charcoal);
    padding: 1rem 0;
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--color-charcoal);
    outline: none;
    border-radius: 0;
}

.form-input:focus {
    border-color: var(--color-slate);
}

/* Footer */
footer {
    background-color: var(--color-charcoal);
    color: var(--color-linen);
    padding: var(--space-xl) 0 var(--space-l);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-l);
    margin-bottom: var(--space-l);
}

.footer-col h4 {
    color: var(--color-chalk);
    margin-bottom: var(--space-s);
    font-size: 0.875rem;
}

.footer-col ul {
    list-style: none;
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-m);
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.5;
}

/* Utilities for Zoom Scroll */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    :root {
        --space-l: 2rem;
        --space-xl: 4rem;
        --space-xxl: 6rem;
    }

    nav {
        flex-direction: column;
        align-items: center;
        background: rgba(28, 28, 28, 0.8);
        backdrop-filter: blur(10px);
        padding: 1rem;
    }

    .logo {
        margin-bottom: 0.5rem;
    }

    .nav-links {
        margin-top: 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

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

    .method-item {
        flex-direction: column;
        gap: 1rem;
    }

    .method-item h3,
    .method-item p {
        width: 100%;
        font-size: 1.1rem;
    }

    .schedule-table thead {
        display: none;
    }

    .schedule-table tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid rgba(28, 28, 28, 0.2);
        padding: 1rem 0;
    }

    .schedule-table td {
        padding: 0.1rem 0;
        border: none;
    }

    .schedule-table td:last-child {
        text-align: left;
        color: var(--color-slate);
        font-size: 0.8rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}