/* ============================================
   OLD ABE'S COFFEE — Stylesheet
   Palette: Terracotta + Sand
   ============================================ */

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

:root {
    --terracotta: #C4703F;
    --terracotta-dark: #A85A2E;
    --terracotta-light: #D4956A;
    --sand: #F5E6D3;
    --sand-light: #FBF5ED;
    --sand-mid: #EDE0D0;
    --cream: #FFFDF9;
    --charcoal: #2C2420;
    --warm-gray: #6B5E56;
    --warm-gray-light: #9A8C84;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(44, 36, 32, 0.06);
    --shadow-md: 0 8px 30px rgba(44, 36, 32, 0.10);
    --shadow-lg: 0 20px 60px rgba(44, 36, 32, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
}

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

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

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

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

.btn-sm {
    padding: 10px 24px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* --- Section Tags & Titles --- */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 12px;
}

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

/* --- Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(251, 245, 237, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    color: var(--white);
    transition: var(--transition);
}

.nav.scrolled .nav-brand {
    color: var(--charcoal);
}

.nav-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
    position: relative;
}

.nav.scrolled .nav-links a {
    color: var(--warm-gray);
}

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

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

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

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

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav.scrolled .nav-toggle span {
    background: var(--charcoal);
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 36, 32, 0.72) 0%,
        rgba(44, 36, 32, 0.45) 50%,
        rgba(196, 112, 63, 0.25) 100%
    );
}

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

.hero-tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

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

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--cream);
}

.about-img-secondary img {
    width: 250px;
    height: 300px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--terracotta);
    color: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.about-badge svg {
    width: 28px;
    height: 28px;
}

.about-badge span {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
}

.about-text p {
    color: var(--warm-gray);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--sand-mid);
}

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

.stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: var(--terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--warm-gray-light);
}

/* --- Menu --- */
.menu {
    padding: 120px 0;
    background: var(--sand-light);
}

.menu-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.menu-intro {
    color: var(--warm-gray);
    font-size: 1.05rem;
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.menu-cat {
    padding: 10px 28px;
    border-radius: 50px;
    border: 2px solid var(--sand-mid);
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--warm-gray);
    cursor: pointer;
    transition: var(--transition);
}

.menu-cat:hover {
    border-color: var(--terracotta-light);
    color: var(--terracotta);
}

.menu-cat.active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.menu-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: default;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.menu-item-img {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-item-img img {
    transform: scale(1.1);
}

.menu-item-body {
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-item-body h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.menu-item-body p {
    font-size: 0.875rem;
    color: var(--warm-gray);
    line-height: 1.5;
}

/* --- Community --- */
.community {
    padding: 120px 0;
    background: var(--cream);
}

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

.community-text p {
    color: var(--warm-gray);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

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

.community-features li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 1rem;
    color: var(--charcoal);
}

.community-features svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--terracotta);
    margin-top: 2px;
}

.community-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ci-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.ci-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* --- Visit --- */
.visit {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--sand) 100%);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.visit-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.visit-detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.visit-detail svg {
    width: 28px;
    height: 28px;
    color: var(--terracotta);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--charcoal);
}

.visit-detail p {
    color: var(--warm-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.visit-detail a {
    color: var(--terracotta);
    transition: var(--transition);
}

.visit-detail a:hover {
    color: var(--terracotta-dark);
    text-decoration: underline;
}

.visit-map {
    min-height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--cream);
}

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

.contact-text p {
    color: var(--warm-gray);
    font-size: 1.05rem;
}

.contact-form {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--sand-mid);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--sand-light);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(196, 112, 63, 0.1);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #E8F5E9;
    border-radius: var(--radius-sm);
    color: #2E7D32;
    font-size: 0.95rem;
    margin-top: 16px;
}

.form-success svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo svg {
    width: 28px;
    height: 28px;
}

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

.footer h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-hours p,
.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--terracotta-light);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

/* --- Mobile Menu --- */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .nav-links a {
        color: var(--charcoal) !important;
        font-size: 1.1rem;
    }

    .nav-links a:hover {
        color: var(--terracotta) !important;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(44, 36, 32, 0.5);
        z-index: 999;
    }

    .nav-overlay.show {
        display: block;
    }
}

@media (max-width: 768px) {
    .about-grid,
    .community-layout,
    .visit-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-img-secondary {
        right: 10px;
        bottom: -20px;
    }

    .about-img-secondary img {
        width: 180px;
        height: 220px;
    }

    .about-badge {
        left: 10px;
        top: -10px;
    }

    .about-stats {
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 32px 24px;
    }

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

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

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

    .community-images {
        order: -1;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

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

    .menu-categories {
        gap: 8px;
    }

    .menu-cat {
        padding: 8px 20px;
        font-size: 0.825rem;
    }
}
