* {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Rosario", sans-serif;
    background: #f4f4dc;
    text-align: center;
}

h1 {
    font-weight: 700;
    color: #556b2f;
    font-size: 64px;
}

h2,
h3 {
    font-weight: 600;
    color: #4d433A;
}

h4 {
    color: #fff;
}

header {
    display: flex;
}

nav {
    flex-basis: 100%;
}

main {
    max-width: 90vw;
}

.sect-txt {
    max-width: 80vw;
    margin: 4rem auto;
}

/* BUTTONS */
.btn-custom {
    color: #000;
    border-color: #ebb230;
    background-color: #FFFFFF;
    padding: 0.2rem 5rem;
}

.btn-custom:hover {
    border-color: #EBB230;
    background-color: #EBB230;
    color: #000;
}

.btn-success {
    color: #000;
    border-color: #ebb230;
    background-color: #FFFFFF;
}

.btn-success:hover {
    border-color: #EBB230;
    background-color: #EBB230;
    color: #000;
}

/* ================================= HEADER =================================  */
/* ============*/
/* NAVIGATION */
/* ============*/
.navbar {
    background-color: #4d433a;
}

.navbar-brand img {
    height: 7rem;
}

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

/* this centers the navbar links and shift them to the right to accurately center them*/
.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.navbar-nav {
    display: flex;
    align-items: center;
    padding-left: 5.5vw;
}

.navbar-nav .nav-item .nav-link {
    color: #FFFFFF !important;
    transition: color 0.3s;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #ebb230 !important;
}

.nav-item {
    margin: 0 1.5rem;
}

.navbar>.container-fluid {
    justify-content: flex-end;
}

/* ================================= CAROUSEL =================================*/
.carousel {
    position: relative;
    width: 100vw;
    height: auto;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 100%;
    padding: 1rem;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    justify-content: center;
    margin-top: 1rem;
}

.cta-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .carousel-inner {
        height: 400px;
    }

    .cta-buttons {
        gap: 15rem;
    }

    .cta-buttons .btn {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .carousel {
        height: 400px;
    }

    .cta-buttons .btn {
        gap: 30rem;
    }
}


/* ================================= HOME PAGE - MAIN =================================*/
/* =========== */
/* SINGLE CARD */
/* =========== */
.card-container {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    width: 88%;
    border: 0.1rem solid #ddd;
    box-sizing: border-box;
    align-items: center;
    overflow: hidden;
    margin: 0 auto;
    padding: 1rem;
}

.card-container img {
    width: 30%;
    height: auto;
    max-width: 30rem;
    object-fit: cover;
    margin-right: 0.75rem;
}

.card-container .text-col {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.75rem;
    box-sizing: border-box;
}

.card-container .text-col p {
    font-size: 0.75rem;
}

@media (min-width: 376px) and (max-width: 768px) {
    .card-container {
        padding: 0.75rem;
    }

    .card-container img {
        width: 35%;
        max-width: 25rem;
        margin-right: 1rem;
    }

    .card-container .text-col {
        padding: 0.75rem;
    }

    .card-container .text-col p {
        font-size: 0.75rem;
    }
}

@media (min-width: 769px) {
    .card-container {
        padding: 1rem;
    }

    .card-container img {
        width: 30%;
        max-width: 30rem;
        margin-right: 1rem;
    }

    .card-container .text-col {
        padding: 1rem;
        font-size: 1rem;
    }

    .card-container .text-col p {
        font-size: 1rem;
    }
}


/* ======================== */
/* IMG SECTION - HOME */
/*======================== */
.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

/* Ensure image covers the container */
.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Card Body - Remove preset styles */
.card-body {
    background-color: transparent;
    color: inherit;
    border: none;
    padding: 1.25rem;
}

/* Card Text - Remove preset styles */
.card-text {
    color: inherit;
}

/* Card - Remove border and background color */
.card {
    border: none;
    background-color: transparent;
}

.row-cols-2 .col {
    flex: 1 0 50%;
}

@media (min-width: 768px) {
    .row-cols-md-4 .col {
        flex: 1 0 25%;
    }
}

/* quote of "We cater to all..." */
.qt {
    font-size: 1.5rem;
}

/* ================= */
/* FORM SECTION */
/* ================= */
.container {
    max-width: 90%;
    margin: auto;
}

.form-label {
    font-weight: bold;
    font-size: 1rem;
}

.form-control {
    font-size: 1rem;
}

.invalid-feedback {
    display: none;
}

.was-validated .form-control:invalid~.invalid-feedback {
    display: block;
}

@media (max-width: 768px) {
    .form-control {
        font-size: 0.9rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .container {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .form-label {
        font-size: 0.8rem;
    }

    .form-control {
        font-size: 0.8rem;
    }
}

/* ================================= MENU PAGE - MAIN ================================= */
.background {
    background: url('images/menu/menu-bg-cropped.jpg') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.background h1 {
    text-shadow: 3px 5px 2px rgba(0, 0, 0, 1);
    font-size: 8rem;
    margin: 0;
}

.background .btn {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .background {
        height: 40vh;
    }
}

@media (min-width: 1200px) {
    .background {
        height: 50vh;
    }
}

/* =================== */
/* IMG SECTION - MENU */
/* =================== */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================= */
/* PICK-UP/DELIVERY SECTION ON ORDER ONLINE FORM */
/* ============================================= */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.toggle-switch {
    display: flex;
    width: 100%;
    max-width: 100%;
    border-radius: 2rem;
    background-color: #fafafa;
    overflow: hidden;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
    position: relative;
    height: 3rem;
}

.toggle-switch label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1rem;
    user-select: none;
    padding: 0.5rem 1rem;
}

.toggle-option {
    border-radius: 2rem;
}

/* highlight the color for 'Pick-up' */
#pickup:checked~.toggle-switch label[for="pickup"] {
    background-color: #ebb230;
    color: #000;
}

/* highlight the color for 'Delivery' */
#delivery:checked~.toggle-switch label[for="delivery"] {
    background-color: #ebb230;
    color: #000;
}

#delivery:checked~.toggle-switch .toggle-slider {
    transform: translateX(100%);
}

.toggle-container input[type="radio"] {
    display: none;
}

@media (max-width: 767px) {
    .toggle-switch {
        flex-direction: row;
        height: auto;
    }

    .toggle-switch label {
        width: 50%;
    }
}

@media (min-width: 768px) {

    .form-control {
        width: 100%;
    }

    .toggle-switch {
        width: 100%;
    }

    .toggle-switch label {
        width: 50%;
    }
}

/* ========================= */
/* DROPDOWN FOR TAKEOUT MENU*/
/* ======================== */
.dropdown {
    width: 100%;
    position: relative;
}

.dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    box-sizing: border-box;
}

.dropdown-menu {
    max-height: 50vh;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    background-color: #fff;
    padding: 0.5rem;
    box-sizing: border-box;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
}

/* dropdown items */
.form-check {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

/* checkbox */
.form-check-input {
    margin-right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
}

.form-check-label {
    flex: 1;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* quantity input */
.form-quantity {
    width: 2.5rem;
    margin: 0 1rem;
    padding: 0.25rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    text-align: center;
}

/* quantity buttons */
.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background-color: #ebb230;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1;
    margin: 0 0.25rem;
}

/* checked checkboxes */
.form-check-input:checked {
    background-color: #ebb230;
    border-color: #000;
}

/* total cost display */
#totalCost {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 1rem;
}

@media (min-width: 576px) {
    .dropdown-menu {
        max-height: 40vh;
    }

    .form-quantity {
        width: 3rem;
    }

    .quantity-btn {
        font-size: 1rem;
        padding: 0.5rem;
    }
}

@media (min-width: 992px) {
    .dropdown-menu {
        max-height: 35vh;
    }

    .form-quantity {
        width: 3.5rem;
    }

    .quantity-btn {
        font-size: 1.125rem;
        padding: 0.75rem;
    }
}

/* ================================= ABOUT PAGE - MAIN ================================= */
/* ==================== */
/* IMG SECTION - ABOUT */
/* ==================== */

@media (min-width: 768px) {
    .card-img-wrapper {
        padding-top: 100%;
    }
}

@media (min-width: 992px) {
    .card-img-wrapper {
        padding-top: 100%;
    }
}

/* ==================== */
/* DROPDOWN FAQs */
/* ==================== */
.accordion {
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem #ebb230;
}

.accordion-button {
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
}

.accordion-button:not(.collapsed) {
    color: #000;
    background-color: #ebb230;
}

@media (max-width: 768px) {
    .accordion-button {
        font-size: 1rem;
    }
}

/* CONTACT FORM */
#contactForm {
    text-align: left;
}

/* =================================  FOOTER  ================================= */
footer {
    background-color: #4d433a;
    color: #fff;
    padding: 0.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.footer-item {
    box-sizing: border-box;
}

.footer-item h4 {
    margin-top: 0;
}

.footer-item ul li {
    margin: 0.5rem 0;
}

.footer-item ul li a {
    color: #fff;
}

.footer-item ul li a:hover {
    color: #ebb230;
}

/* Social media links */
.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.social-links li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links img {
    width: 100%;
    max-width: 3rem;
    height: auto;
}

/* Footer copyright */
.footer-copyright {
    text-align: center;
    position: relative;
    margin-top: 1rem;
    color: #fff;
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    footer {
        padding: 1rem 0.5rem;
    }

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

    .footer-item {
        padding: 1rem;
    }

    .footer-item h4 {
        font-size: 2.25rem;
    }

    .footer-item ul li {
        margin: 1rem 0.5rem;
    }

    .social-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-copyright {
        font-size: 0.875rem;
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-item:nth-child(1) {
        order: 1;
    }

    .footer-item:nth-child(2) {
        order: 3;
    }

    .footer-item:nth-child(3) {
        order: 2;
    }
}