
/* ====================
   Base Styles
   ==================== */
:root {
    --cafe-espresso: #4a2c2a;
    --cafe-mocha: #6b4b3e;
    --cafe-cream: #f6e6cb;
    --cafe-light: #fff8f0;
    --white: #ffffff;
    --black: #333333;
    --gray: #f5f5f5;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--cafe-espresso);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--cafe-mocha);
    font-size: 1.1rem;
}

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

.rounded-image {
    border-radius: 10px;
    overflow: hidden;
}

.mt-12 {
    margin-top: 48px;
}

/* ====================
   Buttons
   ==================== */
.btn-primary {
    display: inline-block;
    background-color: var(--cafe-espresso);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #3a1f1d;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    padding: 11px 23px;
    border-radius: 4px;
    font-weight: 600;
    border: 2px solid var(--white);
    transition: all 0.3s;
}

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

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

/* ====================
   Navbar
   ==================== */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    padding: 8px 0;
}

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

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

.logo i {
    font-size: 24px;
    color: var(--cafe-espresso);
}

.logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--cafe-espresso);
    font-family: 'Times New Roman', Times, serif;
}

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

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--cafe-espresso);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--cafe-espresso);
    cursor: pointer;
}

.menu-toggle .close-icon {
    display: none;
}

/* ====================
   Hero Section
   ==================== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), 
                      url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?q=80&w=2670&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    padding-top: 64px;
}

.hero-content {
    max-width: 600px;
    color: var(--white);
    animation: fadeIn 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.text-cafe-cream {
    color: var(--cafe-cream);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--white);
    font-size: 24px;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* ====================
   Featured Menu Section
   ==================== */
.featured-menu {
    background-color: var(--cafe-light);
}

/* ====================
   Menu Section
   ==================== */
.menu-section {
    background-color: var(--cafe-light);
}

.menu-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 100px;
    background-color: var(--white);
    color: var(--cafe-mocha);
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: var(--cafe-cream);
}

.filter-btn.active {
    background-color: var(--cafe-espresso);
    color: var(--white);
}

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

.menu-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.menu-card .image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.menu-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.menu-card:hover .image-container img {
    transform: scale(1.1);
}

.menu-card .tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--cafe-espresso);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.menu-card .category {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.menu-card .category span {
    color: var(--cafe-cream);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.menu-card .content {
    padding: 16px;
}

.menu-card .content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.menu-card h3 {
    font-size: 1.25rem;
    color: var(--cafe-espresso);
}

.menu-card .price {
    font-weight: 600;
    color: var(--cafe-mocha);
}

.menu-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ====================
   About Preview Section
   ==================== */
.about-preview {
    background-color: var(--white);
}

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

.about-preview .about-content h2 {
    font-size: 2.5rem;
    color: var(--cafe-espresso);
    margin-bottom: 24px;
}

.about-preview .about-content p {
    color: var(--cafe-mocha);
    margin-bottom: 24px;
}

.about-preview .about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

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

/* ====================
   About Section
   ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--cafe-espresso);
    margin-bottom: 24px;
}

.about-content p {
    color: var(--cafe-mocha);
    margin-bottom: 24px;
}

.about-images {
    position: relative;
}

.main-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

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

.secondary-image {
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 180px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 80px;
}

.feature-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 32px;
    color: var(--cafe-espresso);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--cafe-espresso);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--cafe-mocha);
}

/* ====================
   Contact Section
   ==================== */
.contact-section {
    background-color: var(--cafe-cream);
}

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

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    background-color: var(--white);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.info-item i {
    color: var(--cafe-espresso);
    font-size: 20px;
    margin-right: 16px;
    margin-top: 4px;
}

.info-item h3 {
    color: var(--cafe-espresso);
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--cafe-mocha);
}

.hours {
    display: flex;
    align-items: flex-start;
}

.hours i {
    color: var(--cafe-espresso);
    font-size: 20px;
    margin-right: 16px;
    margin-top: 4px;
}

.hours h3 {
    color: var(--cafe-espresso);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.hours ul li {
    display: flex;
    justify-content: space-between;
    color: var(--cafe-mocha);
    margin-bottom: 8px;
}

.contact-form-container {
    background-color: var(--white);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-container h3 {
    color: var(--cafe-espresso);
    margin-bottom: 24px;
    font-size: 1.5rem;
    text-align: center;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .form-group:nth-child(3),
.contact-form .form-group:nth-child(4),
.contact-form button {
    grid-column: span 2;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cafe-espresso);
}

/* ====================
   Footer
   ==================== */
.footer {
    background-color: var(--cafe-espresso);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-logo i {
    font-size: 24px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Times New Roman', Times, serif;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.footer-col p {
    color: var(--cafe-cream);
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--cafe-cream);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--cafe-cream);
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-col address {
    font-style: normal;
    color: var(--cafe-cream);
}

.footer-col address p {
    margin-bottom: 8px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
}

.newsletter-form button {
    background-color: var(--cafe-cream);
    color: var(--cafe-espresso);
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cafe-cream);
    font-size: 0.9rem;
}

/* ====================
   Responsive Design
   ==================== */
@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-grid,
    .about-preview .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .secondary-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        padding: 40px 20px;
        gap: 20px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .contact-form .form-group:nth-child(3),
    .contact-form .form-group:nth-child(4),
    .contact-form button {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}
