/* ═══════════════════════════════════════════
   Honea Path Trading Post — Styles
   Palette: Plum (#6B2150) + Amber (#D97706)
   Fonts: Cormorant Garamond + Outfit
   ═══════════════════════════════════════════ */

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

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

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: #1a1a1a;
    background-color: #fefcfb;
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ── Utilities ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #6B2150;
    color: #fff;
    padding: 8px 16px;
    z-index: 200;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.2;
    color: #1a1a1a;
}

.section-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #D97706;
    margin-bottom: 16px;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.0625rem;
    color: #555;
    max-width: 520px;
    line-height: 1.7;
}

.lead {
    font-size: 1.125rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #D97706;
    color: #fff;
    border-color: #D97706;
}

.btn-primary:hover {
    background-color: #b8620a;
    border-color: #b8620a;
}

.btn-ghost {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(254, 252, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(107, 33, 80, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(107, 33, 80, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    color: #6B2150;
    border: 1.5px solid #6B2150;
    padding: 4px 8px;
    border-radius: 2px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-primary {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1.125rem;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

.logo-secondary {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #666;
}

/* ── Navigation ── */
.nav-list {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-list a {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #444;
    transition: color 0.2s;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #D97706;
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: #6B2150;
}

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

.nav-cta {
    background-color: #6B2150;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 2px;
    transition: background-color 0.2s !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: #5a1d42;
    color: #fff !important;
}

/* ── Mobile Menu Button ── */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
    padding: 0;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 20px;
    height: 1px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 1px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.mobile-menu-btn[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

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

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

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1a1a1a;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 10, 20, 0.4) 0%,
        rgba(26, 10, 20, 0.55) 50%,
        rgba(26, 10, 20, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #D97706;
    margin-bottom: 28px;
}

.hero-headline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 44px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Outfit', sans-serif;
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ── Intro ── */
.intro {
    padding: 120px 0;
}

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

.intro-heading {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 300;
    margin-bottom: 28px;
    color: #1a1a1a;
}

.intro-text p {
    color: #444;
    margin-bottom: 16px;
}

.intro-image {
    position: relative;
}

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

.intro-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid #D97706;
    border-radius: 2px;
    z-index: -1;
}

/* ── Divider ── */
.divider-section {
    padding: 0;
}

.divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #6B2150 20%, #6B2150 80%, transparent);
    opacity: 0.15;
}

/* ── Departments ── */
.departments {
    padding: 100px 0;
    background-color: #faf7f5;
}

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

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

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

.dept-card {
    background: #fefcfb;
    border: 1px solid rgba(107, 33, 80, 0.08);
    border-radius: 2px;
    padding: 40px 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.dept-card:hover {
    border-color: rgba(107, 33, 80, 0.2);
    box-shadow: 0 8px 40px rgba(107, 33, 80, 0.06);
    transform: translateY(-4px);
}

.dept-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    color: #6B2150;
}

.dept-icon svg {
    width: 100%;
    height: 100%;
}

.dept-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.dept-card p {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.7;
}

/* ── Hero Image Break ── */
.hero-image-break {
    height: 400px;
    overflow: hidden;
}

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

/* ── Community ── */
.community {
    padding: 120px 0;
}

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

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

.community-content .section-heading {
    margin-bottom: 24px;
}

.community-content p {
    color: #444;
    margin-bottom: 16px;
}

.community-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(107, 33, 80, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: #6B2150;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(107, 33, 80, 0.15);
}

/* ── Visit ── */
.visit {
    padding: 100px 0;
    background-color: #faf7f5;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 64px;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.visit-card {
    background: #fefcfb;
    border: 1px solid rgba(107, 33, 80, 0.08);
    border-radius: 2px;
    padding: 32px;
}

.visit-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.visit-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.link-arrow {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B2150;
    border-bottom: 1px solid rgba(107, 33, 80, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.link-arrow:hover {
    border-color: #6B2150;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.9375rem;
    color: #555;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(107, 33, 80, 0.06);
}

.hours-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hours-list .day {
    font-weight: 400;
    color: #333;
}

.hours-list .time {
    color: #888;
    font-weight: 300;
}

.contact-link {
    color: #6B2150;
    border-bottom: 1px solid rgba(107, 33, 80, 0.2);
    transition: border-color 0.2s;
}

.contact-link:hover {
    border-color: #6B2150;
}

.visit-map {
    border-radius: 2px;
    overflow: hidden;
    min-height: 400px;
    border: 1px solid rgba(107, 33, 80, 0.08);
}

/* ── Newsletter ── */
.newsletter {
    padding: 100px 0;
    background-color: #6B2150;
}

.newsletter-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.newsletter .section-eyebrow {
    color: #D97706;
}

.newsletter .section-heading {
    color: #fff;
    margin-bottom: 16px;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 440px;
    margin: 0 auto 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-right: none;
    border-radius: 2px 0 0 2px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.newsletter-form input:focus {
    border-color: #D97706;
    background: rgba(255, 255, 255, 0.12);
}

.newsletter-form .btn-primary {
    border-radius: 0 2px 2px 0;
    white-space: nowrap;
}

.newsletter-note {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    color: #fff;
    font-size: 0.9375rem;
}

.newsletter-success svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Footer ── */
.site-footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.6);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-footer .logo-primary {
    color: #fff;
}

.logo-footer .logo-secondary {
    color: rgba(255, 255, 255, 0.5);
}

.logo-footer .logo-mark {
    color: #D97706;
    border-color: #D97706;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.footer-brand a {
    color: #D97706;
    transition: color 0.2s;
}

.footer-brand a:hover {
    color: #e8960a;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

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

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(254, 252, 251, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 32px 24px;
        border-bottom: 1px solid rgba(107, 33, 80, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 24px;
    }

    .nav-list a {
        font-size: 1rem;
    }

    .nav-cta {
        display: inline-block;
        text-align: center;
    }

    .intro-grid,
    .community-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .intro-image {
        order: -1;
    }

    .intro-image img {
        height: 360px;
    }

    .intro-image-accent {
        display: none;
    }

    .community-image img {
        height: 360px;
    }

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

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

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

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .community-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

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

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-right: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 2px;
    }

    .newsletter-form .btn-primary {
        border-radius: 2px;
    }

    .hero-scroll {
        display: none;
    }
}

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

    .hero-content {
        padding: 100px 16px 60px;
    }

    .intro {
        padding: 80px 0;
    }

    .departments {
        padding: 80px 0;
    }

    .community {
        padding: 80px 0;
    }

    .visit {
        padding: 80px 0;
    }

    .newsletter {
        padding: 80px 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Force visible when JS is disabled */
.no-js .reveal {
    opacity: 1;
    transform: none;
}
