/* Main Styles for Domain Burrito Cafe Website */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Rules from Requirements */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #FFF7F1; /* Main background: milk peach */
    color: #2B2E33; /* Text: graphite */
    line-height: 1.6;
}

body:has(#menu-toggle:checked) {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #1C1F33; /* Dark indigo for headings */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #F75F40; /* Coral */
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

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

.container > h2, .container > p {
    text-align: center;
}

.container > p {
    margin-bottom: 2rem;
}

section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: #F2E6DC; /* Secondary section background: warm sand */
}

/* Header */
header {
    background-color: #FFF7F1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #F75F40; /* Coral */
}

/* Navigation */
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav a {
    font-weight: 500;
}

.menu-toggle {
    display: none;
}

.menu-checkbox {
    display: none;
}

/* Button Styles */
.btn {
    display: block;
    padding: 0.8rem 1.5rem;
    background-color: #F75F40; /* Coral */
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: auto;
    max-width: max-content;
}

.btn:hover {
    background-color: #e34a2d;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background-image: url('img/X88Pw5.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for readability */
}

.hero-content {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

/* About Section */
.about {
    background-color: #F2E6DC;
}

/* Burrito Section */
.burritos {
    padding: 4rem 0;
}

.burrito-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.burrito-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.burrito-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.burrito-card-content {
    padding: 1.5rem;
}

.burrito-card h3 {
    margin-top: 0;
}

/* Benefits Section */
.benefits {
    background-color: #F2E6DC;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    padding: 1.5rem;
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

/* Gallery Section */
.gallery {
    overflow: hidden;
}

.gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-slider::-webkit-scrollbar {
    height: 8px;
}

.gallery-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-slider::-webkit-scrollbar-thumb {
    background: #F75F40;
    border-radius: 4px;
}

.gallery-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1.5rem;
}

/* Menu Section */
.menu {
    background-color: #F2E6DC;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-category {
    margin-bottom: 2rem;
}

.menu-category h3 {
    border-bottom: 2px solid #F75F40;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.menu-item-name {
    font-weight: 600;
}

.menu-item-price {
    font-weight: 700;
    color: #F75F40;
}

.menu-item-desc {
    font-size: 0.9rem;
    margin-top: 0.3rem;
    font-style: italic;
}

/* Forms */
.form-section {
    background-color: #F2E6DC;
    padding: 4rem 0;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
}

option {
    color: black;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.3rem;
}

/* Footer */
footer {
    background-color: #1C1F33; /* Dark indigo */
    color: white;
    padding: 3rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #F75F40;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.copyright {
    margin-top: 3rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 90%;
    min-width: 300px;
}

.cookie-text {
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* FAQ Accordion (if needed) */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    padding: 1rem;
    background-color: #f9f9f9;
    font-weight: 600;
    cursor: pointer;
    display: block;
    position: relative;
    padding-right: 2.5rem;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-checkbox {
    display: none;
}

.faq-checkbox:checked + .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 1rem;
}

/* Thanks Section */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

/* Policy Pages and Additional Pages Styling */
.policy-content, .values-content, .blog-content, .tips-content, .thanks-content {
    background-color: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #F2E6DC;
    position: relative;
}

.policy-content:before, .values-content:before, .blog-content:before, .tips-content:before, .thanks-content:before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 6px;
    background: linear-gradient(to right, #F75F40, #F2E6DC);
    border-radius: 1.5rem 1.5rem 0 0;
}

.policy-section h1, .about-page h1, .blog-page h1, .tips-page h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1C1F33;
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scale-up {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.fade-in {
    animation: fade-in 1s ease forwards;
}

.scale-up {
    animation: scale-up 0.7s ease forwards;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    /* Mobile Navigation */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #F75F40;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #FFF7F1;
        transition: right 0.3s ease;
        padding: 5rem 2rem 2rem;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .menu-checkbox:checked ~ nav {
        right: 0;
        max-height: 100vh;
    }
    
    /* Adjustments for smaller screens */
    section {
        padding: 3rem 0;
    }
    
    .burrito-cards, .benefits-list, .menu-items {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 300px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .thanks-section {
        height: auto;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
}
