/* ========================================
   Cowboys General Store and Cafe
   Terracotta + Sand | Confident Corporate
   ======================================== */

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

:root {
    --terracotta-900: #5C2E1E;
    --terracotta-800: #7A3B28;
    --terracotta-700: #8B4530;
    --terracotta-600: #A0522D;
    --terracotta-500: #B85838;
    --terracotta-400: #C27C5A;
    --terracotta-300: #D4A574;
    --terracotta-200: #E8C4A0;
    --terracotta-100: #F2DED0;
    --terracotta-50:  #FBF0EA;

    --sand-900:  #1A1612;
    --sand-800:  #2C2420;
    --sand-700:  #3D3229;
    --sand-600:  #5C4D3E;
    --sand-500:  #7A6855;
    --sand-400:  #9C8872;
    --sand-300:  #BFB59E;
    --sand-200:  #DDD3C4;
    --sand-100:  #EDE6DA;
    --sand-50:   #F7F2EB;
    --sand-25:   #FBF8F4;
    --sand-0:    #FDF8F2;

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

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

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

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--sand-800);
    background-color: var(--sand-0);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--terracotta-600);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
}
.skip-link:focus {
    top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--terracotta-500);
    color: #fff;
    border-color: var(--terracotta-500);
}
.btn-primary:hover {
    background: var(--terracotta-700);
    border-color: var(--terracotta-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--terracotta-600);
    border-color: var(--terracotta-400);
}
.btn-outline-dark:hover {
    background: var(--terracotta-50);
    border-color: var(--terracotta-600);
    transform: translateY(-2px);
}

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

.btn-map {
    margin-top: 24px;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 242, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sand-100);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--sand-900);
}
.logo:hover {
    color: var(--terracotta-600);
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--terracotta-500), var(--terracotta-400));
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--sand-700);
    transition: all var(--transition);
}
.main-nav a:hover {
    color: var(--terracotta-600);
    background: var(--terracotta-50);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    border-radius: var(--radius-sm);
}
.mobile-menu-btn:hover {
    background: var(--sand-100);
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sand-700);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger {
    position: relative;
    margin: 0 auto;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.mobile-menu-btn[aria-expanded="true"] .hamburger {
    background: 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: linear-gradient(
        135deg,
        var(--terracotta-700) 0%,
        var(--terracotta-500) 25%,
        var(--terracotta-400) 50%,
        var(--sand-300) 75%,
        var(--sand-200) 100%
    );
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(92, 46, 30, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(194, 124, 90, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 90% 70% at 50% 50%, rgba(184, 88, 56, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

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

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

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

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

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}
@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ---------- Features ---------- */
.features {
    padding: 100px 0;
    background: var(--sand-0);
}

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

.feature-card {
    background: #fff;
    border: 1px solid var(--sand-100);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--terracotta-200);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--terracotta-50);
    border: 1px solid var(--terracotta-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta-600);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--sand-900);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--sand-600);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta-500);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--sand-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--sand-500);
    line-height: 1.7;
}

/* ---------- Menu Section ---------- */
.menu-section {
    padding: 100px 0;
    background: var(--sand-50);
}

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

.menu-category {
    background: #fff;
    border: 1px solid var(--sand-100);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}
.menu-category:hover {
    border-color: var(--terracotta-200);
    box-shadow: var(--shadow-md);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sand-100);
}

.category-header svg {
    color: var(--terracotta-500);
    flex-shrink: 0;
}

.category-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sand-900);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sand-50);
}
.menu-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-list li span:first-child {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--sand-800);
}

.menu-list li span:last-child {
    font-size: 0.8125rem;
    color: var(--sand-400);
    text-align: right;
    flex-shrink: 0;
}

.menu-note {
    text-align: center;
    padding: 24px 32px;
    background: var(--terracotta-50);
    border: 1px solid var(--terracotta-100);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--sand-600);
}
.menu-note a {
    color: var(--terracotta-600);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--terracotta-200);
    text-underline-offset: 3px;
}
.menu-note a:hover {
    text-decoration-color: var(--terracotta-500);
}

/* ---------- Gallery ---------- */
.gallery-section {
    padding: 100px 0;
    background: var(--sand-0);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--sand-100);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item.tall {
    grid-column: span 5;
    grid-row: span 2;
    min-height: 520px;
}
.gallery-item {
    min-height: 240px;
}
.gallery-item.wide {
    grid-column: span 7;
    min-height: 240px;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(
        135deg,
        var(--sand-900) 0%,
        var(--sand-700) 50%,
        var(--terracotta-800) 100%
    );
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta-300);
    margin-bottom: 16px;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

/* ---------- Visit Section ---------- */
.visit-section {
    padding: 100px 0;
    background: var(--sand-50);
}

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

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: var(--terracotta-50);
    border: 1px solid var(--terracotta-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta-600);
    flex-shrink: 0;
}

.info-block h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sand-400);
    margin-bottom: 4px;
}

.info-block p {
    color: var(--sand-800);
    font-size: 1rem;
    line-height: 1.6;
}
.info-block a {
    color: var(--terracotta-600);
    font-weight: 600;
}
.info-block a:hover {
    text-decoration: underline;
}

.visit-map {
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--sand-100);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--sand-900);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo-mark {
    width: 44px;
    height: 44px;
    font-size: 1.375rem;
}

.footer-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--terracotta-300);
}

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

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 1;
    transform: none;
}

@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);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid,
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item.tall {
        grid-column: span 6;
        grid-row: span 1;
        min-height: 360px;
    }
    .gallery-item.wide {
        grid-column: span 6;
    }
    .gallery-item {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 248, 242, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--sand-100);
        padding: 16px 24px 24px;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        z-index: 999;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .main-nav a {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        font-size: 1rem;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item.tall,
    .gallery-item.wide {
        grid-column: span 1;
        min-height: 260px;
    }

    .visit-grid {
        grid-template-columns: 1fr;
    }
    .visit-map {
        min-height: 300px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .features,
    .menu-section,
    .gallery-section,
    .cta-section,
    .visit-section {
        padding: 72px 0;
    }
    .feature-card,
    .menu-category {
        padding: 28px 20px;
    }
}
