/* ========================================
   Linn's Trading Post — Stylesheet
   Warm terracotta + sand palette
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #C05A3D;
    --color-terracotta-dark: #A1472E;
    --color-terracotta-light: #D4785C;
    --color-sand: #F5EDE4;
    --color-sand-light: #FBF7F3;
    --color-sand-dark: #E8DDD2;
    --color-warm-gray: #6B5B53;
    --color-warm-gray-light: #9A8A81;
    --color-text: #3A2A24;
    --color-text-light: #6B5B53;
    --color-white: #FFFFFF;
    --color-bg: #FBF7F3;
    --color-bg-alt: #F5EDE4;

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 3px rgba(58, 42, 36, 0.06), 0 1px 2px rgba(58, 42, 36, 0.04);
    --shadow-md: 0 4px 16px rgba(58, 42, 36, 0.08), 0 2px 6px rgba(58, 42, 36, 0.04);
    --shadow-lg: 0 12px 40px rgba(58, 42, 36, 0.12), 0 4px 12px rgba(58, 42, 36, 0.06);
    --shadow-card: 0 2px 12px rgba(58, 42, 36, 0.07), 0 1px 4px rgba(58, 42, 36, 0.04);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Section Labels & Titles --- */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    background: rgba(192, 90, 61, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.063rem;
    color: var(--color-text-light);
    max-width: 560px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.938rem;
    padding: 0.813rem 1.625rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-terracotta);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(192, 90, 61, 0.3);
}

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 90, 61, 0.35);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-terracotta);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-light {
    background: var(--color-white);
    color: var(--color-terracotta);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-map {
    margin-top: 1.5rem;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(251, 247, 243, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(192, 90, 61, 0.08);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text);
}

.logo-accent {
    color: var(--color-terracotta);
}

.logo-mark {
    flex-shrink: 0;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--color-text-light);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.site-nav a:hover {
    color: var(--color-terracotta);
    background: rgba(192, 90, 61, 0.06);
}

.nav-cta {
    background: var(--color-terracotta) !important;
    color: var(--color-white) !important;
    font-weight: 600 !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--color-terracotta-dark) !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(192, 90, 61, 0.06);
}

.hamburger {
    position: relative;
    width: 20px;
    height: 14px;
    display: block;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before { top: 0; }
.hamburger span { top: 6px; }
.hamburger::after { bottom: 0; }

.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 6px;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger span {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(58, 42, 36, 0.3);
    backdrop-filter: blur(4px);
    z-index: 98;
}

.mobile-overlay.active {
    display: block;
}

/* --- Hero --- */
.hero {
    padding: 8rem 0 5rem;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(192, 90, 61, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(232, 221, 210, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(192, 90, 61, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--color-terracotta);
    background: rgba(192, 90, 61, 0.08);
    border: 1px solid rgba(192, 90, 61, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.hero-headline em {
    font-style: italic;
    color: var(--color-terracotta);
}

.hero-sub {
    font-size: 1.063rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

/* Hero visual cards */
.hero-visual {
    position: relative;
    min-height: 420px;
}

.hero-card {
    position: absolute;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-card-main {
    width: 85%;
    top: 0;
    right: 0;
}

.hero-card-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(58, 42, 36, 0.75));
    color: var(--color-white);
    font-size: 0.813rem;
    font-weight: 500;
    padding: 2rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stat cards */
.stat-card {
    position: absolute;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.125rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
}

.stat-card-1 {
    top: 5%;
    left: -5%;
}

.stat-card-2 {
    bottom: 18%;
    left: -3%;
}

.stat-card-3 {
    bottom: 2%;
    right: 5%;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(192, 90, 61, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.stat-text strong {
    font-size: 0.875rem;
    color: var(--color-text);
    font-weight: 700;
}

.stat-text span {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* --- About --- */
.about {
    padding: 6rem 0;
    background: var(--color-bg-alt);
}

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

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--color-terracotta);
    border-radius: var(--radius-xl);
    bottom: -20px;
    right: -20px;
    z-index: -1;
    opacity: 0.15;
}

.about-content .section-title {
    margin-top: 0.25rem;
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-list {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.938rem;
    color: var(--color-text);
    font-weight: 500;
}

.about-list svg {
    flex-shrink: 0;
}

/* --- Features --- */
.features {
    padding: 6rem 0;
    background: var(--color-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(192, 90, 61, 0.06);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(192, 90, 61, 0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(192, 90, 61, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.625rem;
}

.feature-card p {
    font-size: 0.938rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Gallery --- */
.gallery {
    padding: 6rem 0;
    background: var(--color-bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.gallery-item-wide {
    grid-column: 1 / -1;
}

.gallery-item img,
.gallery-item-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img,
.gallery-item-wide:hover img {
    transform: scale(1.03);
}

/* --- Visit --- */
.visit {
    padding: 6rem 0;
    background: var(--color-bg);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.visit-info .section-title {
    margin-top: 0.25rem;
}

.visit-desc {
    color: var(--color-text-light);
    font-size: 1.063rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item dt {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(192, 90, 61, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item dd {
    margin-top: 0.375rem;
}

.contact-item a {
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--color-terracotta);
}

.contact-item dd span {
    font-size: 0.938rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.visit-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 420px;
    border: 4px solid var(--color-white);
}

/* --- CTA --- */
.cta {
    padding: 6rem 0;
    background: var(--color-terracotta);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 0, 0, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-desc {
    font-size: 1.063rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.875rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: var(--color-white);
}

.footer-brand p {
    font-size: 0.938rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    padding: 0.25rem 0;
}

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

.footer-contact p {
    font-size: 0.938rem;
    line-height: 1.7;
}

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

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

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

.footer-bottom p {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 2rem;
    }

    .hero-visual {
        min-height: 360px;
    }

    .about-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    /* Mobile nav */
    .mobile-menu-btn {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--color-bg);
        padding: 5rem 1.5rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
    }

    .site-nav.open {
        right: 0;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .site-nav a {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }

    .nav-cta {
        margin-left: 0 !important;
        margin-top: 0.75rem;
        text-align: center;
    }

    /* Hero mobile */
    .hero {
        padding: 6rem 0 4rem;
    }

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

    .hero-visual {
        order: -1;
        min-height: 300px;
    }

    .hero-card-main {
        width: 100%;
    }

    .stat-card-1 {
        left: 0;
    }

    .stat-card-2 {
        left: 2%;
    }

    .stat-card-3 {
        right: 2%;
    }

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

    .hero-actions .btn {
        justify-content: center;
    }

    /* About mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrap img {
        height: 280px;
    }

    .about-image-accent {
        width: 80px;
        height: 80px;
        bottom: -12px;
        right: -12px;
    }

    /* Features mobile */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-wide {
        grid-column: 1;
    }

    .gallery-item img,
    .gallery-item-wide img {
        height: 220px;
    }

    /* Visit mobile */
    .visit-grid {
        grid-template-columns: 1fr;
    }

    .visit-map {
        min-height: 280px;
    }

    /* Footer mobile */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 0 3rem;
    }

    .hero-headline {
        font-size: 1.875rem;
    }

    .stat-card {
        padding: 0.75rem 0.875rem;
    }

    .stat-icon {
        width: 34px;
        height: 34px;
    }

    .stat-text strong {
        font-size: 0.813rem;
    }

    .stat-text span {
        font-size: 0.688rem;
    }

    .section-title {
        font-size: 1.625rem;
    }
}
