/* =========================================================
   RESERVETABLE - RESTAURANT BOOKING CONCEPT
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f2ea;
    color: #2e221d;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   COLORS / REUSABLE
========================================================= */

:root {
    --cream: #f7f2ea;
    --light-cream: #fffaf5;
    --dark: #2e221d;
    --brown: #5b3a2e;
    --wine: #7d2433;
    --wine-dark: #5d1722;
    --gold: #b88a44;
    --muted: #786a62;
    --border: #e5d8ce;
    --white: #ffffff;
}

.section-label {
    color: var(--wine);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

h1,
h2,
h3,
h4 {
    color: var(--dark);
}

p {
    color: var(--muted);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    width: 100%;
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 7%;

    background: rgba(255, 250, 245, 0.96);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--wine);
    color: var(--white);

    font-size: 18px;
}

.brand>div:last-child {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: var(--dark);
    font-size: 20px;
    font-weight: 700;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s ease;
}

.main-nav a:hover {
    color: var(--wine);
}

.header-book-btn {
    padding: 11px 18px;

    background: var(--wine);
    color: var(--white);

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.25s ease;
}

.header-book-btn:hover {
    background: var(--wine-dark);
    transform: translateY(-1px);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;

    padding: 90px 8%;

    background:
        linear-gradient(90deg,
            rgba(46, 34, 29, 0.96) 0%,
            rgba(46, 34, 29, 0.82) 42%,
            rgba(46, 34, 29, 0.46) 70%,
            rgba(46, 34, 29, 0.28) 100%),
        url("../images/restaurant-hero.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 850px;
}

.hero .eyebrow {
    color: #e6c89e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 820px;

    color: var(--white);
    font-size: 66px;
    line-height: 1.03;

    margin-bottom: 22px;
}

.hero h1 span {
    color: #e5bd82;
}

.hero-text {
    max-width: 720px;

    color: #eee2d9;

    font-size: 18px;
    line-height: 1.8;

    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 32px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.25s ease;
}

.primary-btn {
    background: var(--wine);
    color: var(--white);
}

.primary-btn:hover {
    background: var(--wine-dark);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: var(--white);

    border: 1px solid rgba(255, 255, 255, 0.6);
}

.secondary-btn:hover {
    background: var(--white);
    color: var(--dark);
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;

    margin-top: 55px;

    max-width: 780px;
}

.hero-meta>div {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 16px;

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 12px;
}

.hero-meta i {
    color: #e5bd82;
    margin-top: 3px;
}

.hero-meta span {
    color: #eee2d9;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   BOOKING SECTION
========================================================= */

.booking-section {
    width: 100%;

    padding: 100px 8%;

    background: var(--cream);
}

.booking-intro {
    max-width: 760px;
    margin-bottom: 45px;
}

.booking-intro h2 {
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.booking-intro p:last-child {
    max-width: 700px;
    font-size: 17px;
    line-height: 1.75;
}

.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);

    gap: 30px;

    align-items: start;

    max-width: 1200px;
}

.booking-card,
.booking-side-card {
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: 0 14px 35px rgba(74, 49, 39, 0.06);
}

.booking-card {
    padding: 32px;
}

.booking-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 30px;
}

.booking-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(125, 36, 51, 0.09);
    color: var(--wine);

    font-size: 18px;
}

.booking-card-heading h3 {
    font-size: 22px;
    margin-bottom: 3px;
}

.booking-card-heading p {
    font-size: 14px;
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    color: var(--dark);

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 8px;
}

.form-group label span {
    color: var(--muted);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #fffdfb;

    color: var(--dark);

    font-family: inherit;
    font-size: 14px;

    padding: 13px 14px;

    outline: none;

    transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--wine);

    box-shadow: 0 0 0 3px rgba(125, 36, 51, 0.08);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;

    top: 50%;
    left: 13px;

    transform: translateY(-50%);

    color: #9b877b;
}

.input-icon-wrapper input,
.input-icon-wrapper select {
    padding-left: 40px;
}

.form-divider {
    margin: 8px 0 22px;

    padding-top: 18px;

    border-top: 1px solid var(--border);

    color: var(--wine);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;

    text-transform: uppercase;
}

.booking-submit-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: none;
    border-radius: 9px;

    background: var(--wine);
    color: var(--white);

    padding: 14px 20px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.25s ease;
}

.booking-submit-btn:hover {
    background: var(--wine-dark);
    transform: translateY(-1px);
}

.booking-message {
    display: none;

    margin-top: 18px;

    padding: 14px 16px;

    border-radius: 9px;

    font-size: 14px;
}


/* =========================================================
   SIDE CARD
========================================================= */

.booking-side-card {
    padding: 32px;

    position: sticky;
    top: 110px;
}

.booking-side-card h3 {
    font-size: 28px;
    line-height: 1.2;

    margin-bottom: 16px;
}

.booking-side-card>p:not(.section-label) {
    font-size: 15px;
    line-height: 1.75;

    margin-bottom: 28px;
}

.booking-benefits {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.booking-benefits>div {
    display: flex;
    gap: 14px;
}

.benefit-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f4ebe5;
    color: var(--wine);
}

.booking-benefits h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.booking-benefits p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 0;
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.steps-section {
    width: 100%;

    padding: 100px 8%;

    background: var(--light-cream);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: 42px;
    line-height: 1.2;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;

    max-width: 1150px;
}

.step-card {
    position: relative;

    padding: 32px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 16px;

    overflow: hidden;

    transition: 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 14px 35px rgba(74, 49, 39, 0.07);
}

.step-number {
    position: absolute;

    top: 18px;
    right: 20px;

    color: #dbc8bb;

    font-size: 28px;
    font-weight: 800;
}

.step-card>i {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(125, 36, 51, 0.09);
    color: var(--wine);

    font-size: 18px;

    margin-bottom: 22px;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   ABOUT / CONCEPT
========================================================= */

.about-section {
    width: 100%;

    padding: 100px 8%;

    background: #efe6de;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);

    gap: 70px;

    align-items: center;

    max-width: 1200px;
}

.about-text h2 {
    max-width: 650px;

    font-size: 42px;
    line-height: 1.2;

    margin-bottom: 20px;
}

.about-text>p:not(.section-label) {
    max-width: 680px;

    font-size: 16px;
    line-height: 1.8;

    margin-bottom: 18px;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;

    gap: 30px;

    margin-top: 35px;
}

.about-stats div {
    min-width: 120px;
}

.about-stats strong {
    display: block;

    color: var(--wine);

    font-size: 28px;
    line-height: 1;
}

.about-stats span {
    color: var(--muted);
    font-size: 12px;
}

.visual-card {
    padding: 28px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: 0 18px 45px rgba(74, 49, 39, 0.08);
}

.visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;

    color: var(--dark);

    font-size: 14px;
    font-weight: 700;
}

.live-dot {
    padding: 5px 9px;

    border-radius: 999px;

    background: #e9f6ef;
    color: #2d7651;

    font-size: 11px;
}

.reservation-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reservation-preview>div {
    display: grid;
    grid-template-columns: 60px 1fr auto;

    gap: 14px;
    align-items: center;

    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #fffdfb;
}

.reservation-time {
    color: var(--wine);
    font-weight: 700;
}

.reservation-preview strong {
    display: block;
    font-size: 13px;
}

.reservation-preview small {
    color: var(--muted);
    font-size: 11px;
}

.status {
    padding: 5px 8px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;
}

.status.confirmed {
    background: #e9f6ef;
    color: #2d7651;
}

.status.pending {
    background: #fff3d8;
    color: #93651a;
}

.dashboard-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 18px;

    color: var(--wine);

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    margin: 70px 8%;

    padding: 55px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-radius: 18px;

    background: var(--wine);

    color: var(--white);
}

.cta-section .section-label {
    color: #efcfaa;
}

.cta-section h2 {
    max-width: 700px;

    color: var(--white);

    font-size: 38px;
    line-height: 1.2;

    margin-bottom: 12px;
}

.cta-section p {
    max-width: 700px;

    color: #f0dfe1;

    margin-bottom: 0;
}

.cta-btn {
    flex-shrink: 0;

    padding: 13px 22px;

    background: var(--white);
    color: var(--wine);

    border-radius: 8px;

    font-weight: 700;

    transition: 0.25s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 55px 8% 28px;

    background: #241a16;

    color: var(--white);
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 40px;

    padding-bottom: 35px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    max-width: 430px;
}

.footer-brand .brand-name {
    color: var(--white);
}

.footer-brand p {
    margin-top: 6px;

    color: #cbbdb5;

    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;

    gap: 24px;
}

.footer-links a {
    color: #e5d7cf;

    font-size: 13px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    color: #a99990;

    font-size: 12px;

    margin-bottom: 0;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .main-nav {
        display: none;
    }

    .hero h1 {
        font-size: 54px;
    }

    .booking-layout,
    .about-content {
        grid-template-columns: 1fr;
    }

    .booking-side-card {
        position: static;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 700px) {

    .site-header {
        padding: 14px 5%;
    }

    .header-book-btn {
        padding: 10px 13px;
        font-size: 12px;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-subtitle {
        font-size: 9px;
    }

    .hero {
        min-height: auto;

        padding: 85px 6% 70px;

        background-position: 65% center;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions a {
        width: 100%;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }

    .booking-section,
    .steps-section,
    .about-section {
        padding: 75px 6%;
    }

    .booking-intro h2,
    .section-heading h2,
    .about-text h2 {
        font-size: 34px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-card,
    .booking-side-card {
        padding: 24px 20px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        margin: 50px 5%;

        padding: 38px 26px;

        flex-direction: column;
        align-items: flex-start;
    }

    .cta-section h2 {
        font-size: 30px;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }

    .footer-content,
    .footer-bottom {
        flex-direction: column;
    }

}


@media (max-width: 480px) {

    .brand-subtitle {
        display: none;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .booking-intro h2,
    .section-heading h2,
    .about-text h2 {
        font-size: 30px;
    }

    .reservation-preview>div {
        grid-template-columns: 50px 1fr;
    }

    .status {
        grid-column: 2;
        justify-self: start;
    }

}

/* =========================================================
   ADMIN DASHBOARD
========================================================= */

.admin-layout {
    min-height: 100vh;

    display: grid;
    grid-template-columns: 250px 1fr;

    background: #f7f2ea;
}


/* SIDEBAR */

.admin-sidebar {
    min-height: 100vh;

    padding: 28px 20px;

    background: #241a16;

    position: sticky;
    top: 0;

    align-self: start;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding-bottom: 28px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-brand .brand-name {
    display: block;
    color: #ffffff;
}

.admin-brand .brand-subtitle {
    color: #a99990;
}

.admin-nav {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-top: 28px;
}

.admin-nav a {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px 14px;

    color: #cbbdb5;

    border-radius: 8px;

    font-size: 14px;

    transition: 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #7d2433;

    color: #ffffff;
}


/* MAIN */

.admin-main {
    padding: 45px;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;
}

.admin-topbar h1 {
    font-size: 38px;

    margin-bottom: 5px;
}

.admin-topbar>div:first-child>p:last-child {
    font-size: 14px;
}

.admin-date {
    color: #786a62;

    font-size: 13px;
    font-weight: 600;

    padding-top: 10px;
}


/* STATS */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 35px;
}

.admin-stat-card {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5d8ce;
    border-radius: 14px;
}

.stat-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 11px;

    background: rgba(125, 36, 51, 0.09);

    color: #7d2433;
}

.admin-stat-card span {
    display: block;

    color: #786a62;

    font-size: 12px;

    margin-bottom: 2px;
}

.admin-stat-card strong {
    color: #2e221d;

    font-size: 25px;
}


/* RESERVATIONS AREA */

.admin-reservations {
    padding: 28px;

    background: #ffffff;

    border: 1px solid #e5d8ce;
    border-radius: 16px;
}

.admin-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 25px;
}

.admin-section-heading h2 {
    font-size: 26px;
}

.admin-clear-btn {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    border: 1px solid #e5d8ce;

    background: #fffdfb;
    color: #786a62;

    padding: 9px 13px;

    border-radius: 8px;

    cursor: pointer;
}

.admin-clear-btn:hover {
    color: #a33434;
    border-color: #efc3c3;
}


/* TABLE */

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.reservations-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 900px;
}

.reservations-table th {
    text-align: left;

    color: #786a62;

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;

    padding: 12px;

    border-bottom: 1px solid #e5d8ce;
}

.reservations-table td {
    padding: 15px 12px;

    border-bottom: 1px solid #eee5df;

    color: #473831;

    font-size: 13px;

    vertical-align: middle;
}

.guest-cell {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 180px;
}

.guest-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #f0e3db;

    color: #7d2433;

    font-size: 11px;
    font-weight: 800;
}

.guest-cell strong,
.contact-cell span {
    display: block;

    color: #2e221d;

    font-size: 13px;
}

.guest-cell small,
.contact-cell small {
    display: block;

    color: #8c7c73;

    font-size: 10px;

    margin-top: 2px;
}


/* STATUS */

.admin-status {
    display: inline-flex;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;
}

.admin-status.pending {
    background: #fff3d8;
    color: #93651a;
}

.admin-status.confirmed {
    background: #e9f6ef;
    color: #2d7651;
}

.admin-status.cancelled {
    background: #fff0f0;
    color: #a33434;
}


/* ACTION BUTTONS */

.admin-actions {
    display: flex;

    gap: 6px;
}

.admin-actions button {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 7px;

    cursor: pointer;
}

.confirm-btn {
    background: #e9f6ef;

    color: #2d7651;
}

.cancel-btn {
    background: #fff3d8;

    color: #93651a;
}

.delete-btn {
    background: #fff0f0;

    color: #a33434;
}


/* EMPTY STATE */

.empty-bookings {
    min-height: 300px;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 30px;
}

.empty-bookings>i {
    font-size: 38px;

    color: #c9b6aa;

    margin-bottom: 16px;
}

.empty-bookings h3 {
    margin-bottom: 7px;
}

.empty-bookings p {
    margin-bottom: 20px;

    font-size: 13px;
}


/* ADMIN RESPONSIVE */

@media (max-width: 1100px) {

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 800px) {

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        min-height: auto;

        position: static;
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-main {
        padding: 28px 20px;
    }

}


@media (max-width: 600px) {

    .admin-topbar,
    .admin-section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-topbar h1 {
        font-size: 30px;
    }

}