/* ========================================
   Buddy's Place — Styles
   Palette: Burgundy + Blush | Fresh & Airy
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5C1F2C;
    --burgundy-light: #9E3A4D;
    --blush: #F5D5CE;
    --blush-light: #FDEDEC;
    --blush-lighter: #FFF8F6;
    --cream: #FFFAF8;
    --warm-white: #FFFDFB;
    --text-dark: #2D1F23;
    --text-body: #4A3539;
    --text-muted: #7A6065;
    --text-light: #9E8589;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(123, 45, 59, 0.06);
    --shadow-md: 0 4px 20px rgba(123, 45, 59, 0.08);
    --shadow-lg: 0 8px 40px rgba(123, 45, 59, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: var(--text-body);
    background: var(--cream);
    line-height: 1.6;
    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;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'DM Serif Display', serif;
    color: var(--text-dark);
    line-height: 1.2;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

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

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

.navbar.scrolled .logo {
    color: var(--burgundy);
}

.logo-icon {
    display: flex;
    align-items: center;
    color: var(--blush);
    transition: var(--transition);
}

.navbar.scrolled .logo-icon {
    color: var(--burgundy);
}

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

.nav-links a {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 250, 245, 0.85);
    transition: var(--transition);
}

.navbar.scrolled .nav-links a {
    color: var(--text-body);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.navbar.scrolled .nav-links a:hover {
    background: var(--blush-light);
    color: var(--burgundy);
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--burgundy);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Menu --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 250, 248, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-link {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    color: var(--text-dark);
    padding: 12px 24px;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--burgundy);
}

.btn-mobile {
    margin-top: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--burgundy);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--burgundy);
    border: 1.5px solid var(--burgundy);
}

.btn-outline:hover {
    background: var(--burgundy);
    color: var(--white);
    transform: translateY(-2px);
}

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #7B2D3B 0%, #A0445A 25%, #C4707A 50%, #E8A5A5 75%, #F5D5CE 100%);
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.hero-badge svg {
    color: #FFD700;
}

.hero h1 {
    font-size: clamp(2.25rem, 6vw, 4rem);
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 250, 245, 0.85);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    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, 250, 245, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 250, 245, 0.6), 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); }
}

/* --- Info Strip --- */
.info-strip {
    background: var(--white);
    border-bottom: 1px solid var(--blush);
    padding: 0;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    border-right: 1px solid var(--blush);
    transition: var(--transition);
}

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

.info-item:hover {
    background: var(--blush-lighter);
}

.info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blush-light);
    border-radius: var(--radius-md);
    color: var(--burgundy);
}

.info-item strong {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.info-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--blush-light);
    color: var(--burgundy);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Menu Section --- */
.menu-section {
    background: var(--cream);
}

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

.tab-btn {
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--white);
    border: 1.5px solid var(--blush);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--burgundy);
    border-color: var(--burgundy);
}

.tab-btn.active {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

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

.menu-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--blush);
}

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

.menu-card-img {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.menu-card-body {
    padding: 24px;
}

.menu-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.menu-card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- About Section --- */
.about-section {
    background: var(--white);
}

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

.about-images {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-md);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    top: -20px;
    right: 30%;
    width: 56px;
    height: 56px;
    background: var(--burgundy);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--blush-lighter);
    border-radius: var(--radius-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--burgundy);
    border-radius: var(--radius-sm);
    color: var(--white);
}

.about-feature span {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* --- Gallery Section --- */
.gallery-section {
    background: var(--cream);
}

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

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item:nth-child(1) { grid-column: 1 / 8; }
.gallery-item:nth-child(2) { grid-column: 8 / 13; }
.gallery-item:nth-child(3) { grid-column: 1 / 5; }
.gallery-item:nth-child(4) { grid-column: 5 / 13; }
.gallery-item:nth-child(5) { grid-column: 1 / 13; }

/* --- CTA Section --- */
.cta-section {
    background: var(--white);
    padding: 80px 0;
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-content {
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-content .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    align-self: flex-start;
}

.cta-content .section-title {
    color: var(--white);
    text-align: left;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 250, 245, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.cta-buttons .btn-outline:hover {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}

.cta-visual {
    overflow: hidden;
}

.cta-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Visit Section --- */
.visit-section {
    background: var(--cream);
}

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

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

.visit-card {
    background: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--blush);
    transition: var(--transition);
}

.visit-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--burgundy);
}

.visit-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blush-light);
    border-radius: var(--radius-md);
    color: var(--burgundy);
    margin-bottom: 16px;
}

.visit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.visit-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.visit-card a {
    color: var(--burgundy);
    font-weight: 500;
    transition: var(--transition);
}

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

.visit-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
.footer {
    background: var(--text-dark);
    color: rgba(255, 250, 245, 0.7);
    padding: 72px 0 0;
}

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

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

.footer-brand .logo-icon {
    color: var(--blush);
}

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

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

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

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

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

.footer-contact p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(255, 250, 245, 0.7);
    transition: var(--transition);
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 40px;
    }
    
    .cta-content {
        padding: 48px 40px;
    }
    
    .gallery-grid {
        grid-template-rows: repeat(2, 200px);
    }
    
    .gallery-item:nth-child(1) { grid-column: 1 / 8; }
    .gallery-item:nth-child(2) { grid-column: 8 / 13; }
    .gallery-item:nth-child(3) { grid-column: 1 / 5; }
    .gallery-item:nth-child(4) { grid-column: 5 / 13; }
    .gallery-item:nth-child(5) { grid-column: 1 / 13; }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        border-right: none;
        border-bottom: 1px solid var(--blush);
    }
    
    .info-item:last-child {
        border-bottom: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-content .section-title {
        text-align: center;
    }
    
    .about-content p {
        text-align: center;
    }
    
    .about-content .section-tag {
        display: inline-block;
        text-align: center;
    }
    
    .about-features {
        max-width: 400px;
        margin: 32px auto 0;
    }
    
    .cta-card {
        grid-template-columns: 1fr;
    }
    
    .cta-visual {
        min-height: 300px;
    }
    
    .cta-content {
        padding: 48px 32px;
        text-align: center;
    }
    
    .cta-content .section-tag {
        align-self: center;
    }
    
    .cta-content .section-title {
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 72px 0;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item,
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: 1 / -1;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .about-img-secondary {
        right: -10px;
        bottom: -20px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
