/* ========================================
   Gus Streetside Cafe — Custom Styles
   ======================================== */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

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

/* --- Utility --- */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.gold-line {
    display: block;
    width: 40px;
    height: 2px;
    background-color: #C9A84C;
    flex-shrink: 0;
}

/* --- Header --- */
.site-header {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background-color: rgba(10, 22, 40, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.nav-brand {
    text-decoration: none;
}

.nav-link {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: #C9A84C;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #C9A84C;
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: rgba(201, 168, 76, 0.1);
    border-color: #C9A84C;
}

/* --- Mobile Menu --- */
#mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: #fff;
    transition: all 0.3s ease;
    transform-origin: center;
}

#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav-link {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* --- Hero --- */
.hero-section {
    background: linear-gradient(135deg, #f8f6f1 0%, #f0ebe0 100%);
    position: relative;
    overflow: hidden;
}

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

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
    }
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-label .gold-line {
    width: 32px;
    height: 1.5px;
    background-color: #C9A84C;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: clamp(3rem, 5vw, 4.5rem);
    }
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-img-main {
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.hero-img-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 22, 40, 0.15) 100%);
    pointer-events: none;
}

.hero-img-side {
    border-radius: 2px;
    overflow: hidden;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background-color: #0a1628;
    padding: 14px 28px;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #0a1628;
}

.btn-primary:hover {
    background-color: #1e3a6f;
    border-color: #1e3a6f;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0a1628;
    background: transparent;
    padding: 14px 28px;
    border-radius: 2px;
    text-decoration: none;
    border: 1px solid rgba(10, 22, 40, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #0a1628;
    transform: translateY(-1px);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0a1628;
    background-color: #C9A84C;
    padding: 14px 28px;
    border-radius: 2px;
    border: 1px solid #C9A84C;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #b8913a;
    border-color: #b8913a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

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

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

/* --- Story Section --- */
.story-images {
    position: relative;
}

.story-img-primary {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.12);
}

.story-img-accent {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.15);
    border: 4px solid #fff;
}

.story-feature {
    display: flex;
    flex-direction: column;
}

/* --- Menu --- */
.menu-category h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

.menu-category ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1rem;
}

.menu-category ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: auto;
    cursor: pointer;
}

.gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(2) { grid-row: span 2; aspect-ratio: auto; }
.gallery-item:nth-child(3) { grid-column: span 1; }
.gallery-item:nth-child(4) { grid-column: span 1; }
.gallery-item:nth-child(5) { grid-column: span 1; }
.gallery-item:nth-child(6) { grid-column: span 2; }

@media (min-width: 1024px) {
    .gallery-item:nth-child(1) { grid-column: span 1; }
    .gallery-item:nth-child(2) { grid-row: span 2; }
    .gallery-item:nth-child(6) { grid-column: span 1; }
}

.gallery-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* --- Visit --- */
.visit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.map-container {
    aspect-ratio: 4 / 3;
    width: 100%;
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.12);
}

/* --- Contact Form --- */
.input-field {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    outline: none;
    transition: all 0.3s ease;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-field:focus {
    border-color: #C9A84C;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-success {
    animation: fadeInUp 0.4s ease;
}

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

/* --- Footer --- */
footer a {
    text-decoration: none;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-line { animation: none; opacity: 0.6; }
    .gallery-img { transition: none; }
    .gallery-item:hover .gallery-img { transform: none; }
    .gallery-item-overlay { transition: none; }
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: #0a1628;
    color: #C9A84C;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}
