/* ==========================================
   ARTISAN CAFÉ - Elegant & Sophisticated
   ========================================== */

:root {
    --coffee: #6B4423;
    --coffee-light: #8B5E34;
    --coffee-dark: #4A2F1A;
    --cream: #F5F1EC;
    --cream-dark: #E8E1D8;
    --gold: #C9A874;
    --text: #2C2C2C;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.2; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

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

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(107, 68, 35, 0.1);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--coffee);
    transition: var(--transition);
}

.logo-icon { font-size: 1.75rem; }
.logo:hover { color: var(--coffee-light); }

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    transition: var(--transition);
}

.nav a:not(.nav-btn):hover { color: var(--coffee); }

.nav a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav a:not(.nav-btn):hover::after { transform: translateX(-50%) scaleX(1); }

.nav-btn {
    padding: 0.75rem 1.75rem;
    background: var(--coffee);
    color: var(--white);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--coffee-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--coffee);
    transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107,68,35,0.85), rgba(74,47,26,0.75));
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

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

.hero-label {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-text {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gold);
    color: var(--coffee-dark);
}

.btn-primary:hover {
    background: #D4B684;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--coffee);
}

.btn-full { width: 100%; justify-content: center; }

.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6px;
}

.scroll-hint span {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.5; }
}

/* ========== FEATURES ========== */
.features {
    padding: 5rem 0;
    background: var(--white);
}

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

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.5rem;
    color: var(--coffee);
    margin-bottom: 0.75rem;
}

.feature p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ========== SECTIONS ========== */
section {
    padding: 6rem 0;
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-head.center { text-align: center; }

.label {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-head h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--coffee);
    margin-bottom: 1.25rem;
}

.section-head p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ========== MENU ========== */
.menu {
    background: var(--cream);
}

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

.category-title {
    font-size: 2rem;
    color: var(--coffee);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.menu-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--cream-dark);
    position: relative;
}

.menu-item:last-child { border-bottom: none; }

.item-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.menu-item h4 {
    font-size: 1.25rem;
    color: var(--coffee);
    font-weight: 500;
}

.price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: var(--gold);
    font-weight: 600;
}

.menu-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--gold);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== GALLERY ========== */
.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

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

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
}

/* ========== ABOUT ========== */
.about {
    background: var(--cream);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 3rem;
    color: var(--coffee);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value {
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--coffee);
    margin-bottom: 0.75rem;
}

.value p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ========== VISIT ========== */
.visit {
    background: var(--white);
}

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

.visit-info h2 {
    font-size: 3rem;
    color: var(--coffee);
    margin-bottom: 2rem;
}

.info-block {
    margin-bottom: 2.5rem;
}

.info-block h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--coffee);
    margin-bottom: 0.75rem;
}

.info-block p {
    color: var(--text);
    line-height: 1.8;
}

.info-block a {
    color: var(--gold);
    font-weight: 500;
    transition: var(--transition);
}

.info-block a:hover {
    color: var(--coffee);
}

.map-placeholder {
    aspect-ratio: 1;
    background: var(--cream);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 2px dashed var(--cream-dark);
}

.map-icon {
    font-size: 3rem;
}

.map-placeholder p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: var(--text-light);
}

.map-placeholder small {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========== RESERVE ========== */
.reserve {
    background: var(--cream);
}

.reserve-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 1rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    background: var(--cream);
    transition: var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.reserve-form .btn {
    margin-top: 1rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--coffee-dark);
    color: var(--cream);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social {
    display: flex;
    gap: 1rem;
}

.social a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social a:hover {
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.hours {
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.credit a {
    color: var(--gold);
    transition: var(--transition);
}

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

/* ========== CHATBOT ========== */
.chatbot {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--coffee);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.chat-toggle:hover {
    background: var(--coffee-dark);
    transform: scale(1.1);
}

.chat-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 2s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0; }
}

.icon-close {
    display: none;
}

.chatbot.active .icon-chat {
    display: none;
}

.chatbot.active .icon-close {
    display: block;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot.active .chat-window {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

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

.chat-header {
    padding: 1.5rem;
    background: var(--coffee);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.status {
    font-size: 0.85rem;
    opacity: 0.8;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--cream);
}

.message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.message.user {
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.msg-content {
    flex: 1;
}

.msg-content p {
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.message.user .msg-content p {
    background: var(--coffee);
    color: var(--white);
}

.quick-replies {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quick-btn {
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.quick-btn:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.chat-input {
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid var(--cream-dark);
    display: flex;
    gap: 0.75rem;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cream-dark);
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.95rem;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--gold);
}

.chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--coffee);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-input button:hover {
    background: var(--coffee-dark);
    transform: scale(1.05);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .menu-grid { grid-template-columns: 1fr; gap: 3rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.large { grid-column: span 1; grid-row: span 1; }
    .visit-grid { grid-template-columns: 1fr; }
    .values { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        gap: 1.5rem;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .menu-toggle { display: flex; }
    
    .features-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
    
    .chat-window {
        width: calc(100vw - 2rem);
        right: 1rem;
    }
}

@media (max-width: 640px) {
    .hero { min-height: 600px; }
    .hero-title { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .gallery-grid { grid-template-columns: 1fr; }
}
