/* ====================================
   Bella Cucina - Main Stylesheet
   style.css
   ==================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #faf8f5;
}

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

a {
    color: #8b4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d4a574;
}

/* ---------- Box Model (Req #19) ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
header {
    background-color: #2c1810;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #8b4513;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-family: 'Georgia', serif;
    font-size: 2em;
    color: #d4a574;
    margin: 0;
}

.logo .tagline {
    font-size: 0.85em;
    color: #ccc;
    font-style: italic;
    margin: 0;
}

/* ---------- Navigation (Req #16 - styled unordered list) ---------- */
nav ul#main-nav {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

nav ul#main-nav li {
    margin: 0;
}

nav ul#main-nav li a {
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
    font-size: 0.95em;
    text-decoration: none;
}

nav ul#main-nav li a:hover,
nav ul#main-nav li a.active {
    background-color: #8b4513;
    color: #fff;
}

/* ---------- Hamburger Menu Toggle ---------- */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #d4a574;
    color: #d4a574;
    font-size: 1.5em;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../Images/restaurant.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 120px 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h2 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Buttons (Req #22 - rollover/hover) ---------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    margin: 5px;
}

.btn-primary {
    background-color: #8b4513;
    color: #fff;
    border: 2px solid #8b4513;
}

.btn-primary:hover {
    background-color: #a0522d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #8b4513;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ---------- Page Banner ---------- */
.page-banner {
    background-color: #2c1810;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    border-bottom: 3px solid #8b4513;
}

.page-banner h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #d4a574;
}

.page-banner p {
    font-size: 1.1em;
    color: #ccc;
}

/* ---------- Main Content ---------- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

main section {
    margin-bottom: 50px;
}

main h2 {
    font-size: 2em;
    color: #2c1810;
    margin-bottom: 20px;
    text-align: center;
}

/* ---------- Float (Req #17) & Clear (Req #18) ---------- */
.float-left {
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ---------- Home About Section ---------- */
.home-about {
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.home-about .about-image img {
    max-width: 400px;
    border-radius: 8px;
    border: 3px solid #d4a574;
}

.home-about .about-text h2 {
    text-align: left;
}

.home-about .about-text a {
    font-weight: bold;
}

/* ---------- Dish Grid ---------- */
.dish-grid {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.dish-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e0d8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.dish-card h3 {
    padding: 15px 15px 5px;
    color: #2c1810;
}

.dish-card p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 0.95em;
}

/* ---------- Quick Info ---------- */
.quick-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.info-card {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e8e0d8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #2c1810;
}

.info-card a {
    font-weight: bold;
}

/* ---------- Menu Page ---------- */
.menu-nav {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
}

.menu-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.menu-nav ul li a {
    padding: 8px 20px;
    background-color: #f5f0eb;
    border-radius: 25px;
    display: block;
    transition: all 0.3s ease;
}

.menu-nav ul li a:hover {
    background-color: #8b4513;
    color: #fff;
}

.menu-section {
    padding: 20px 0;
}

.menu-section h2 {
    border-bottom: 2px solid #d4a574;
    padding-bottom: 10px;
    display: inline-block;
}

/* ---------- Tables (Req #21 - table properties) ---------- */
.menu-table,
.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.menu-table thead,
.hours-table thead {
    background-color: #2c1810;
    color: #fff;
}

.menu-table th,
.menu-table td,
.hours-table th,
.hours-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e8e0d8;
}

.menu-table tbody tr:hover,
.hours-table tbody tr:hover {
    background-color: #f5f0eb;
}

.menu-table td:last-child {
    font-weight: bold;
    color: #8b4513;
}

/* ---------- Specials Page ---------- */
.specials-intro {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    max-width: 700px;
    margin: 0 auto 30px;
}

.specials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.special-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e0d8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.special-image {
    position: relative;
}

.special-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.special-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #8b4513;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
}

.special-details {
    padding: 20px;
}

.special-details h3 {
    color: #2c1810;
    margin-bottom: 10px;
}

.special-price {
    font-size: 1.3em;
    font-weight: bold;
    color: #8b4513;
    margin-top: 10px;
}

.special-availability {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
}

/* Weekly Deals */
.deal-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.deal-card {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    background: #2c1810;
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.deal-card h3 {
    color: #d4a574;
    margin-bottom: 10px;
}

/* ---------- About Page ---------- */
.about-story {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
}

.about-story .about-image img {
    max-width: 350px;
    border-radius: 8px;
    border: 3px solid #d4a574;
}

.about-story .about-text h2 {
    text-align: left;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.value-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.value-card h3 {
    color: #8b4513;
    margin-bottom: 10px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.team-member {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e0d8;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-member h3 {
    padding: 15px 15px 0;
    color: #2c1810;
}

.team-role {
    color: #8b4513;
    font-weight: bold;
    font-style: italic;
    padding: 5px 15px;
}

.team-member p:last-child {
    padding: 5px 15px 20px;
    color: #666;
    font-size: 0.95em;
}

.press-list {
    list-style: disc;
    padding-left: 25px;
}

.press-list li {
    margin-bottom: 8px;
}

/* ---------- Gallery Page ---------- */
.gallery-section {
    margin-bottom: 40px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery-item {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e0d8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item figcaption {
    padding: 12px;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* ---------- Contact Page ---------- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-form-wrapper {
    flex: 2;
    min-width: 300px;
}

.contact-info-wrapper {
    flex: 1;
    min-width: 280px;
}

.contact-info-card {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-info-card h3 {
    color: #8b4513;
    margin-bottom: 10px;
}

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

.social-links li {
    margin-bottom: 5px;
}

/* ---------- Forms (Req #7, #14, #15) ---------- */
form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c1810;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #8b4513;
    outline: none;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.2);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group label {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.radio-group input[type="radio"] {
    width: auto;
}

.radio-group label {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
}

.required {
    color: #d32f2f;
}

.error-message {
    display: block;
    color: #d32f2f;
    font-size: 0.85em;
    margin-top: 5px;
    min-height: 1.2em;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #d32f2f;
    background-color: #fff5f5;
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: #4caf50;
}

/* ---------- Reservation Page ---------- */
.reservation-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.reservation-form-wrapper {
    flex: 2;
    min-width: 300px;
}

.reservation-info {
    flex: 1;
    min-width: 280px;
}

.info-box {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
    color: #8b4513;
    margin-bottom: 10px;
}

.info-box ul {
    padding-left: 20px;
}

.info-box ul li {
    margin-bottom: 5px;
}

/* ---------- Location Page ---------- */
.location-container {
    padding: 20px 0;
}

.location-info {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
}

.location-address {
    min-width: 250px;
    margin-right: 30px;
    margin-bottom: 20px;
}

.location-address address {
    font-style: normal;
    line-height: 1.8;
}

.parking-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.parking-card {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.parking-card h3 {
    color: #8b4513;
    margin-bottom: 10px;
}

/* ---------- Map ---------- */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e0d8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
}

.back-to-top a {
    font-weight: bold;
    font-size: 1.1em;
}

/* ---------- Footer ---------- */
footer {
    background-color: #2c1810;
    color: #ccc;
    padding: 40px 0 20px;
    border-top: 3px solid #8b4513;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: #d4a574;
    margin-bottom: 15px;
    font-size: 1.2em;
}

footer ul {
    list-style: none;
}

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

footer ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #d4a574;
}

/* ---------- Background Image (Req #21 - background properties) ---------- */
.page-banner {
    background-image: url('../Images/restaurant.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 24, 16, 0.85);
}

.page-banner h2,
.page-banner p {
    position: relative;
    z-index: 1;
}

/* ---------- Text Properties (Req #21) ---------- */
h1, h2, h3, h4 {
    font-family: 'Georgia', serif;
    font-weight: bold;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ---------- Multiple Selectors: IDs & Classes (Req #20) ---------- */
#main-nav { /* ID selector */ }
.btn { /* Class selector */ }
header .logo h1 { /* Descendant selector */ }
.btn-primary:hover { /* Class + Pseudo-class */ }
nav ul#main-nav li a { /* Complex selector */ }
