/* the complete styles.css */
/* --- ROOT & VARIABLES --- */
:root {
    --font-display: 'Vollkorn', serif;
    --font-body: 'Karla', sans-serif;

    --bg: #F9F7F3;
    --surface: #EDEAE4;
    --ink: #2D2A26;
    --muted: #847F7A;
    --accent: #6B4F3A;
    --line: #D1CBC3;

    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    background-color: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="10" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: 100;
    mix-blend-mode: multiply;
}

img, figure {
    max-width: 100%;
    display: block;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
    font-weight: 400;
}

h2 {
    font-size: clamp(2rem, 5vw + 0.5rem, 3.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--accent);
}

p {
    max-width: 65ch;
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

a:hover, a:focus-visible {
    color: var(--ink);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

section {
    padding: clamp(4rem, 10vh, 8rem) 0;
}

/* --- SCROLL REVEAL (JS-ENHANCED) --- */
/* By default, content is visible. These rules only apply if JS is enabled. */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Only transition if the user has not requested reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .reveal {
        transition: opacity 1s var(--ease-out-quart), transform 1s var(--ease-out-quart);
    }
}


/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background-image: linear-gradient(rgba(45, 42, 38, 0.45), rgba(45, 42, 38, 0.45)), url('assets/hero.png');
    background-size: cover;
    background-position: center;
    color: var(--bg);
}

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

.hero-subtext {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--line);
    max-width: 40ch;
    margin: 1.5rem auto 0;
}

.hero-subtext p + p {
    margin-top: 0.5rem;
}

/* --- PHILOSOPHY SECTION --- */
.philosophy-section {
    background-color: var(--surface);
}

.philosophy-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.philosophy-text p + p {
    margin-top: 1.25rem;
}

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

@media (min-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    .philosophy-text { order: 2; }
    .philosophy-image { order: 1; }
}

/* --- OFFERINGS SECTION --- */
.offerings-section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.offerings-grid {
    display: grid;
    gap: 1.5rem;
}

.offering-item {
    border: 1px solid var(--line);
    background-color: var(--surface);
    display: flex;
    flex-direction: column;
}

.offering-item figure {
    flex-grow: 1;
    line-height: 0;
}
.offering-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offering-item.text-only {
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    min-height: 250px;
}

.offering-text {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .offering-item:nth-child(1) { grid-column: 1 / 3; }
    .offering-item:nth-child(2) { grid-column: 1 / 2; }
    .offering-item:nth-child(3) { grid-column: 2 / 3; }
    .offering-item:nth-child(4) { grid-column: 1 / 3; }
}

@media (min-width: 1024px) {
    .offerings-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
    }
    .offering-item:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    .offering-item:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .offering-item:nth-child(3) {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
    }
    .offering-item:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
}

/* --- CONTACT SECTION --- */
.contact-section {
    background-color: var(--surface);
    text-align: center;
}

.contact-section .container {
    max-width: 800px;
}

.contact-section p + p {
    margin-top: 1rem;
}

.contact-section p {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.contact-links {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.contact-link {
    display: block;
    padding: 1rem;
    text-align: center;
    min-width: 280px;
}

.contact-link span {
    display: block;
    font-family: var(--font-body);
    color: var(--accent); /* FIX: Was --muted, failed contrast. Now uses --accent. */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.contact-link {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 400;
}

@media (min-width: 768px) {
    .contact-links {
        flex-direction: row;
        gap: 5rem;
    }
}

/* --- FOOTER --- */
.footer {
    background-color: var(--ink);
    color: var(--surface);
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.footer-info p {
    margin: 0;
    color: var(--muted);
}
.footer-info p:first-child {
    color: var(--surface);
    font-weight: 700;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer a {
    color: var(--surface);
    font-weight: 400;
    display: inline-block; /* FIX: Ensure padding creates a larger tap area */
    padding: 0.75rem; /* FIX: Increase tap target size for accessibility */
}

.footer a:hover, .footer a:focus-visible {
    color: var(--line);
}

@media (min-width: 768px) {
    .footer .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .footer-contact {
        flex-direction: row;
        gap: 2rem;
    }
}