/* ============================================
   The Coffee Barn — Custom Styles
   Confident Corporate | Charcoal + Coral
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-charcoal-900: #1a1d23;
    --color-charcoal-800: #242830;
    --color-charcoal-700: #2d323c;
    --color-charcoal-600: #3a3f4b;
    --color-charcoal-500: #4a5060;
    --color-charcoal-400: #6b7280;
    --color-charcoal-300: #9ca3af;
    --color-charcoal-200: #d1d5db;
    --color-charcoal-100: #f3f4f6;
    --color-charcoal-50:  #f9fafb;

    --color-coral-600: #c45a3f;
    --color-coral-500: #E07A5F;
    --color-coral-400: #e8957e;
    --color-coral-300: #f0b4a3;
    --color-coral-200: #f7d4c9;
    --color-coral-100: #fce8e2;
    --color-coral-50:  #fdf3f0;

    --color-white: #ffffff;
    --color-black: #0a0c10;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(26, 29, 35, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 29, 35, 0.10);
    --shadow-lg: 0 8px 32px rgba(26, 29, 35, 0.14);
    --shadow-xl: 0 16px 48px rgba(26, 29, 35, 0.18);

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* --- 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: 16px;
    line-height: 1.65;
    color: var(--color-charcoal-800);
    background-color: var(--color-white);
    -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;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-charcoal-900);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-coral-500);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-charcoal-500);
    max-width: 560px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

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

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

.btn-coral:hover {
    background-color: var(--color-coral-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-charcoal-800);
    border: 2px solid var(--color-charcoal-200);
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(26, 29, 35, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color var(--transition-base);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-white);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-charcoal-200);
    transition: color var(--transition-fast);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger::before { transform: translateY(-7px); }
.hamburger::after  { transform: translateY(7px); }

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-charcoal-900);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(26, 29, 35, 0.45) 0%,
            rgba(26, 29, 35, 0.55) 50%,
            rgba(26, 29, 35, 0.85) 100%
        ),
        url('https://images.pexels.com/photos/10755244/pexels-photo-10755244.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 29, 35, 0.3) 0%,
        rgba(26, 29, 35, 0.6) 100%
    );
    z-index: 2;
}

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

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-coral-400);
    margin-bottom: 20px;
}

.hero-headline {
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-charcoal-200);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 40px;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-scroll-indicator span {
    display: block;
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, var(--color-coral-400), transparent);
    border-radius: 2px;
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* --- Trust Bar --- */
.trust-bar {
    background-color: var(--color-charcoal-900);
    padding: 0;
    border-bottom: 1px solid var(--color-charcoal-700);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 24px;
    border-right: 1px solid var(--color-charcoal-700);
}

.trust-item:last-child {
    border-right: none;
}

.trust-icon {
    flex-shrink: 0;
    color: var(--color-coral-400);
}

.trust-item span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-charcoal-200);
    letter-spacing: 0.02em;
}

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

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

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

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

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background-color: var(--color-coral-100);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content p {
    color: var(--color-charcoal-600);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--color-charcoal-200);
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-charcoal-900);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-charcoal-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Menu --- */
.menu {
    padding: 100px 0;
    background-color: var(--color-charcoal-50);
}

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

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

.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.menu-tab {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 100px;
    color: var(--color-charcoal-600);
    background-color: var(--color-white);
    border: 1px solid var(--color-charcoal-200);
    transition: all var(--transition-base);
}

.menu-tab:hover {
    color: var(--color-charcoal-900);
    border-color: var(--color-charcoal-400);
}

.menu-tab.active {
    background-color: var(--color-charcoal-900);
    color: var(--color-white);
    border-color: var(--color-charcoal-900);
}

.menu-panel {
    display: none;
}

.menu-panel.active {
    display: block;
    animation: fadeIn 300ms ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.menu-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-charcoal-200);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition-base);
}

.menu-card:hover {
    border-color: var(--color-coral-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.menu-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.menu-card-header h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-charcoal-900);
}

.menu-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-coral-600);
    background-color: var(--color-coral-50);
    padding: 4px 10px;
    border-radius: 100px;
}

.menu-card p {
    font-size: 0.9rem;
    color: var(--color-charcoal-500);
    line-height: 1.7;
}

/* --- Atmosphere --- */
.atmosphere {
    padding: 100px 0 80px;
    background-color: var(--color-white);
}

.atmosphere-gallery {
    margin-top: 56px;
}

.atm-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 240px);
    gap: 16px;
}

.atm-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.atm-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.atm-card:hover img {
    transform: scale(1.05);
}

.atm-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(26, 29, 35, 0.85), transparent);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
}

.atm-large  { grid-column: span 5; grid-row: span 2; }
.atm-wide   { grid-column: span 7; grid-row: span 1; }
.atm-card:not(.atm-large):not(.atm-wide) { grid-column: span 6; grid-row: span 1; }

/* --- Visit --- */
.visit {
    padding: 100px 0;
    background-color: var(--color-charcoal-900);
}

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

.visit-info .section-title {
    color: var(--color-white);
}

.visit-description {
    color: var(--color-charcoal-300);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.visit-detail {
    display: flex;
    gap: 16px;
}

.visit-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-coral-400);
}

.visit-detail strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-coral-400);
    margin-bottom: 4px;
}

.visit-detail p,
.visit-detail a {
    font-size: 0.95rem;
    color: var(--color-charcoal-200);
    line-height: 1.7;
}

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

.visit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

/* --- CTA --- */
.cta {
    padding: 100px 0;
    background-color: var(--color-coral-500);
}

.cta-inner {
    text-align: center;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

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

.cta .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
}

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

/* --- Footer --- */
.footer {
    background-color: var(--color-charcoal-900);
    border-top: 1px solid var(--color-charcoal-700);
}

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

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

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-charcoal-400);
    line-height: 1.75;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-coral-400);
    margin-bottom: 20px;
}

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

.footer-links a,
.footer-contact li {
    font-size: 0.9rem;
    color: var(--color-charcoal-300);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
}

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

.footer-contact li {
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--color-charcoal-700);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-charcoal-400);
}

.footer-bottom a {
    color: var(--color-coral-400);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--color-coral-300);
}

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

    .trust-item {
        border-right: none;
        border-bottom: 1px solid var(--color-charcoal-700);
    }

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

    .about-image-wrapper {
        order: -1;
    }

    .atm-grid {
        grid-template-rows: auto;
    }

    .atm-large  { grid-column: span 12; grid-row: span 1; }
    .atm-wide   { grid-column: span 12; grid-row: span 1; }
    .atm-card:not(.atm-large):not(.atm-wide) { grid-column: span 6; }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(26, 29, 35, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        transform: translateY(-120%);
        transition: transform var(--transition-base);
        border-bottom: 1px solid var(--color-charcoal-700);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

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

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

    .atm-card:not(.atm-large):not(.atm-wide) {
        grid-column: span 12;
    }

    .atm-grid {
        grid-template-rows: auto;
    }

    .atm-large img,
    .atm-wide img {
        height: 280px;
    }

    .atm-card img {
        height: 220px;
    }

    .about-stats {
        gap: 24px;
    }

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

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

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

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

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

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

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

    .menu-tabs {
        gap: 6px;
    }

    .menu-tab {
        padding: 8px 16px;
        font-size: 0.8125rem;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .atm-card img {
        transition: none;
    }

    .atm-card:hover img {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}
