/* ========================================
   IceBoro — Café & Bar
   Color Palette: Plum + Amber
======================================== */

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

:root {
    --plum-50: #faf5f7;
    --plum-100: #f3e8ed;
    --plum-200: #e8cfd9;
    --plum-300: #d4a7be;
    --plum-400: #c07fa3;
    --plum-500: #a85d85;
    --plum-600: #8b4568;
    --plum-700: #6b2f5b;
    --plum-800: #4a1e40;
    --plum-900: #2d1227;
    --plum-950: #1a0b17;

    --amber-50: #fffbf0;
    --amber-100: #fff3d6;
    --amber-200: #ffe8b0;
    --amber-300: #ffd478;
    --amber-400: #ffc24d;
    --amber-500: #f5a623;
    --amber-600: #e08a1a;
    --amber-700: #b86912;
    --amber-800: #8c4d0d;
    --amber-900: #6b3c0a;

    --warm-white: #fefaf8;
    --warm-gray-50: #faf8f7;
    --warm-gray-100: #f5f0ed;
    --warm-gray-200: #e8e0db;
    --warm-gray-300: #d4c8c0;
    --warm-gray-400: #b0a098;
    --warm-gray-500: #8a7870;
    --warm-gray-600: #6b5c54;
    --warm-gray-700: #4a3f38;
    --warm-gray-800: #2d2622;
    --warm-gray-900: #1a1512;

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

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(107, 47, 91, 0.06), 0 1px 2px rgba(45, 18, 39, 0.04);
    --shadow-md: 0 4px 16px rgba(107, 47, 91, 0.08), 0 2px 6px rgba(45, 18, 39, 0.05);
    --shadow-lg: 0 12px 40px rgba(107, 47, 91, 0.12), 0 4px 12px rgba(45, 18, 39, 0.07);
    --shadow-xl: 0 24px 60px rgba(107, 47, 91, 0.15), 0 8px 20px rgba(45, 18, 39, 0.09);

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

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

body {
    font-family: var(--font-body);
    color: var(--warm-gray-800);
    background: var(--warm-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--warm-gray-900);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--plum-600), var(--plum-700));
    color: #fff;
    border-color: var(--plum-600);
    box-shadow: 0 4px 16px rgba(107, 47, 91, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--plum-700), var(--plum-800));
    border-color: var(--plum-700);
    box-shadow: 0 6px 24px rgba(107, 47, 91, 0.4);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

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

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

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

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

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--plum-600);
    background: var(--plum-100);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    color: var(--warm-gray-900);
}

.section-title--light {
    color: #fff;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--warm-gray-500);
    line-height: 1.7;
}

.text-gradient {
    background: linear-gradient(135deg, var(--plum-600), var(--amber-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 250, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107, 47, 91, 0.08);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(254, 250, 248, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    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-size: 1.5rem;
    color: var(--plum-700);
}

.logo-icon {
    color: var(--plum-600);
}

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

.nav-links a {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--warm-gray-600);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--plum-700);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--plum-600), var(--amber-500));
    border-radius: var(--radius-full);
    transition: width var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--plum-700);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(254, 250, 248, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 40px 24px;
}

.mobile-menu.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--warm-gray-800);
    transition: color var(--transition);
}

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

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

.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(45, 18, 39, 0.82) 0%,
        rgba(74, 30, 64, 0.72) 50%,
        rgba(107, 47, 91, 0.65) 100%
    );
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--amber-300);
    background: rgba(255, 194, 77, 0.12);
    border: 1px solid rgba(255, 194, 77, 0.25);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
}

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

.hero-title .text-gradient {
    background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.hero-highlights {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.938rem;
    font-weight: 500;
}

.highlight-item svg {
    color: var(--amber-400);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s ease-in-out infinite;
}

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

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

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

.tab-btn {
    padding: 10px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.938rem;
    font-weight: 500;
    border: 2px solid var(--warm-gray-200);
    background: transparent;
    color: var(--warm-gray-600);
    cursor: pointer;
    transition: all var(--transition);
}

.tab-btn:hover {
    border-color: var(--plum-300);
    color: var(--plum-700);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--plum-600), var(--plum-700));
    border-color: var(--plum-600);
    color: #fff;
}

.menu-tab-content {
    display: none;
}

.menu-tab-content.active {
    display: block;
}

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

.menu-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--warm-gray-100);
    transition: all var(--transition);
}

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

.menu-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--plum-100), var(--plum-50));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum-600);
}

.menu-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: var(--warm-gray-900);
}

.menu-card-body p {
    font-size: 0.938rem;
    color: var(--warm-gray-500);
    line-height: 1.6;
}

/* --- About Section --- */
.about-section {
    background: linear-gradient(180deg, var(--warm-gray-50) 0%, var(--warm-white) 100%);
}

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

.about-images {
    position: relative;
    min-height: 500px;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 6px solid var(--warm-white);
    box-shadow: var(--shadow-lg);
}

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

.about-img-accent {
    position: absolute;
    top: -24px;
    right: 40px;
    width: 150px;
    height: 150px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 5px solid var(--warm-white);
    box-shadow: var(--shadow-md);
}

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

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

.about-text {
    font-size: 1.063rem;
    color: var(--warm-gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--warm-gray-200);
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--plum-700);
    line-height: 1;
}

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

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

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

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

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

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

.gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item--wide {
    grid-column: span 2;
}

/* --- Hours Section --- */
.hours-section {
    background: linear-gradient(135deg, var(--plum-800) 0%, var(--plum-900) 100%);
}

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

.hours-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.hours-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.hours-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
}

.hours-card h3 {
    font-size: 1.375rem;
    color: #fff;
    margin-bottom: 20px;
}

.hours-detail {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    line-height: 1.6;
}

.hours-detail span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.link-phone {
    color: var(--amber-400);
    font-weight: 600;
    transition: color var(--transition);
}

.link-phone:hover {
    color: var(--amber-300);
}

/* --- Testimonials --- */
.testimonials-section {
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--plum-50) 100%);
}

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

.testimonial-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--warm-gray-100);
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--plum-200);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: var(--amber-500);
}

.testimonial-text {
    font-size: 1.063rem;
    color: var(--warm-gray-700);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--plum-700);
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

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

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 18, 39, 0.88) 0%,
        rgba(74, 30, 64, 0.80) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
}

.cta-content .section-title {
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
}

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

/* --- Footer --- */
.footer {
    background: var(--plum-950);
    padding: 64px 0 32px;
}

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

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

.footer-brand p {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer-links a,
.footer-links p {
    display: block;
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
    transition: color var(--transition);
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

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

    .hero-highlights {
        gap: 24px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-images {
        min-height: 360px;
        order: -1;
    }

    .about-img-secondary {
        right: -16px;
        bottom: -16px;
        width: 140px;
        height: 140px;
    }

    .about-img-accent {
        right: 20px;
        top: -16px;
        width: 110px;
        height: 110px;
    }

    .about-img-main img,
    .about-img-secondary img,
    .about-img-accent img {
        height: auto;
        aspect-ratio: inherit;
    }

    .about-img-main img {
        height: 360px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }

    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item--wide {
        grid-column: span 1;
    }

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

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

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

    .section {
        padding: 72px 0;
    }
}

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

    .hero-title {
        font-size: 2rem;
    }

    .menu-tabs {
        gap: 6px;
    }

    .tab-btn {
        padding: 8px 18px;
        font-size: 0.875rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item--large,
    .gallery-item--wide {
        grid-column: span 1;
    }

    .gallery-item {
        height: 220px;
    }

    .about-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
