/* ============================================
   Co-op Cafe — Orderville, UT
   Clean Minimalist Design System
   Colors: Charcoal (#2D2D2D) + Coral (#C45B3E)
   ============================================ */

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

:root {
    --charcoal: #2D2D2D;
    --charcoal-light: #4A4A4A;
    --charcoal-muted: #6B6B6B;
    --coral: #C45B3E;
    --coral-light: #D4785E;
    --coral-pale: #F5E6E0;
    --coral-bg: #FDF6F3;
    --white: #FFFFFF;
    --off-white: #FAFAF8;
    --cream: #F7F5F3;
    --line: rgba(45, 45, 45, 0.1);
    --line-strong: rgba(45, 45, 45, 0.2);
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 24px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 1.5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--white);
}

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

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

.btn-full {
    width: 100%;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 1px 0 var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--charcoal);
}

.logo-text {
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal-muted);
    transition: color var(--transition);
    position: relative;
}

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

.nav-links a:hover {
    color: var(--charcoal);
}

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--charcoal);
    transition: all var(--transition);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--white);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    padding-right: 20px;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.15;
    margin-bottom: 28px;
    color: var(--charcoal);
    font-style: italic;
}

.hero-sub {
    font-size: 17px;
    line-height: 1.75;
    color: var(--charcoal-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    border-radius: 2px;
}

/* ============================================
   Thin Divider
   ============================================ */
.thin-divider {
    padding: 0 24px;
}

.thin-divider svg {
    margin: 0 auto;
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 2px;
}

.about-content .section-title {
    margin-bottom: 28px;
}

.about-content p {
    color: var(--charcoal-muted);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Products
   ============================================ */
.products {
    padding: 120px 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-title {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--white);
    padding: 40px 28px;
    border-radius: 2px;
    border: 1px solid var(--line);
    transition: all var(--transition);
}

.product-card:hover {
    border-color: var(--coral);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(196, 91, 62, 0.08);
}

.product-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
    margin-bottom: 24px;
}

.product-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 12px;
    font-style: italic;
}

.product-card p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--charcoal-muted);
}

/* ============================================
   Visit
   ============================================ */
.visit {
    padding: 120px 0;
    background: var(--white);
}

.visit-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.visit-content .section-title {
    margin-bottom: 40px;
}

.visit-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visit-details li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 15px;
    color: var(--charcoal-muted);
    line-height: 1.6;
}

.visit-details li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--coral);
}

.visit-link {
    color: var(--charcoal);
    font-weight: 500;
    transition: color var(--transition);
}

.visit-link:hover {
    color: var(--coral);
}

.visit-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: 120px 0;
    background: var(--charcoal);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--white);
    transition: color var(--transition);
}

.contact-method:hover {
    color: var(--coral-light);
}

.contact-method svg {
    color: var(--coral);
}

/* Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    padding: 40px;
}

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

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 0;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--white);
    outline: none;
    transition: border-color var(--transition);
    border-radius: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(196, 91, 62, 0.15);
    border: 1px solid rgba(196, 91, 62, 0.3);
    border-radius: 2px;
    font-size: 14px;
    color: var(--coral-light);
    text-align: center;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 64px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.04em;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--coral-light);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--transition);
}

.footer-info a:hover {
    color: var(--coral-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.04em;
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-container,
    .about-grid,
    .visit-container,
    .contact-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 24px;
    }

    .hero-content {
        padding-right: 0;
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-image img {
        height: 50vh;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
    }

    .about {
        padding: 80px 0;
    }

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

    .about-image img {
        height: 300px;
    }

    .products {
        padding: 80px 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        padding: 32px 24px;
    }

    .visit {
        padding: 80px 0;
    }

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

    .visit-image img {
        height: 300px;
    }

    .contact {
        padding: 80px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-headline {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }
}
