/* =================================================================
   THE RESERVE — Custom Styles
   These styles sit ON TOP of Bootstrap to give the site its
   own brand look (colours, fonts, custom buttons, etc.).
   ================================================================= */

/* -----------------------------------------------------------------
   1. BRAND VARIABLES
   CSS variables let us reuse the same colours/fonts everywhere.
   Change a value here and it updates across the whole site.
   ----------------------------------------------------------------- */
:root {
    --color-cream:         #fdf8f8;  /* Main background */
    --color-cream-dark:    #f1edec;  /* Slightly darker section background */
    --color-cream-lowest:  #ffffff;  /* White panels */
    --color-charcoal:      #1c1b1b;  /* Main text colour */
    --color-mahogany:      #894e47;  /* Brand accent (buttons, links) */
    --color-mahogany-hover:#6d3731;  /* Darker accent for hover */
    --color-taupe:         #747878;  /* Muted/secondary text */
    --color-light-accent:  #ebe7e6;  /* Soft borders */
    --color-border:        #c4c7c7;  /* Standard borders */

    --font-serif: 'EB Garamond', Georgia, serif;
    --font-sans:  'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
}


/* -----------------------------------------------------------------
   2. BASE / BODY
   ----------------------------------------------------------------- */
body {
    background-color: var(--color-cream);
    color: var(--color-charcoal);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}


/* -----------------------------------------------------------------
   3. TYPOGRAPHY
   ----------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.font-serif {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Small, spaced-out uppercase label (used above headings) */
.label-caps {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Reusable accent text colour */
.text-mahogany {
    color: var(--color-mahogany);
}


/* -----------------------------------------------------------------
   4. LAYOUT HELPERS
   Simple max-width wrappers to keep content readable.
   ----------------------------------------------------------------- */
.max-width-container { max-width: 1280px; margin: 0 auto; }
.max-width-800       { max-width: 800px;  margin: 0 auto; }
.max-width-600       { max-width: 600px;  margin: 0 auto; }

/* Generous top/bottom breathing room for full sections */
.section-spaced {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

/* Section background colours */
.bg-cream-dark   { background-color: var(--color-cream-dark); }
.bg-cream-lowest { background-color: var(--color-cream-lowest); }


/* -----------------------------------------------------------------
   5. BUTTONS
   ----------------------------------------------------------------- */

/* Solid mahogany button — the main call-to-action */
.btn-mahogany {
    background-color: var(--color-mahogany);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 2rem;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-mahogany:hover {
    background-color: var(--color-mahogany-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-mahogany:active {
    transform: translateY(0);
}

/* Outlined button — secondary action */
.btn-outline-custom {
    background-color: transparent;
    color: var(--color-charcoal);
    border: 1px solid var(--color-charcoal);
    border-radius: 4px;
    padding: 0.75rem 2rem;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--color-charcoal);
    color: var(--color-cream);
}


/* -----------------------------------------------------------------
   6. NAVBAR / HEADER
   ----------------------------------------------------------------- */
.navbar {
    background-color: rgba(253, 248, 248, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-light-accent);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand h1 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--color-charcoal);
    letter-spacing: -0.02em;
}

.nav-link {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-taupe);
    margin: 0 0.75rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-mahogany) !important;
}

/* Underline indicator for the active link */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-mahogany);
}


/* -----------------------------------------------------------------
   7. HERO SECTION
   ----------------------------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark gradient over the photo so white text stays readable */
.scrim-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(28, 27, 27, 0.45) 0%,
        rgba(28, 27, 27, 0.20) 50%,
        rgba(28, 27, 27, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 1.5rem;
    text-align: center;
    color: #ffffff;
}

.hero-content h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


/* -----------------------------------------------------------------
   8. MENU SECTION
   ----------------------------------------------------------------- */
.section-header h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-charcoal);
}

/* Short decorative line under a heading */
.divider-line {
    width: 60px;
    height: 1px;
    margin: 1.5rem auto;
    background-color: var(--color-mahogany);
}

/* Filter "pills" above the menu grid */
.category-chip {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-taupe);
    margin: 0.25rem;
    padding: 0.5rem 1.25rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-chip.active,
.category-chip:hover {
    background-color: var(--color-charcoal);
    border-color: var(--color-charcoal);
    color: var(--color-cream);
}

.menu-card {
    background: transparent;
    border: none;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-img-container {
    width: 100%;
    aspect-ratio: 4 / 5;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 0.5px solid var(--color-border);
    border-radius: 4px;
}

.menu-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.menu-col {
    transition: all 0.5s ease;
}

.menu-title {
    margin: 0;
    font-size: 1.4rem;
    color: var(--color-charcoal);
}

.menu-price {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-mahogany);
}

.menu-desc {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-taupe);
}

.decorative-outline-box {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 151px;
    height: 151px;
    z-index: -1;
    border: 1px solid rgba(137, 78, 71, 0.25);
    pointer-events: none;
}

.form-floating-custom {
    position: relative;
    margin-bottom: 2rem;
}

.form-floating-custom input,
.form-floating-custom textarea,
.form-floating-custom select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-taupe);
    border-radius: 0;
    padding: 0.5rem 0;
    color: var(--color-charcoal);
    font-family: var(--font-sans);
    transition: border-color 0.3s ease;
}

.form-floating-custom input:focus,
.form-floating-custom textarea:focus,
.form-floating-custom select:focus {
    outline: none;
    border-bottom: 1.5px solid var(--color-mahogany);
}

.form-floating-custom label {
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-taupe);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-floating-custom input:focus ~ label,
.form-floating-custom input:not(:placeholder-shown) ~ label,
.form-floating-custom textarea:focus ~ label,
.form-floating-custom textarea:not(:placeholder-shown) ~ label,
.form-floating-custom select:focus ~ label,
.form-floating-custom select:valid ~ label {
    top: -1.25rem;
    font-size: 10px;
    color: var(--color-mahogany);
}

.modal-content {
    background-color: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-charcoal);
}

.modal-header {
    border-bottom: 1.5px solid var(--color-light-accent);
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}


/* -----------------------------------------------------------------
   SECTION 15 — FOOTER (YOUR TASK)
   Styles for the site footer: dark background, centered text,
   three columns that stack on small screens, and link hover states.
   ----------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-charcoal);
    color: var(--color-cream);
    padding: 3rem 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center; /* vertically center the three columns */
    gap: 2rem;
    text-align: left; /* align left on desktop for tidy columns */
}

.footer-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertically center content within each column */
}

.footer-contact {
    display: flex;
    justify-content: flex-end; /* align social icon to the right on desktop */
    align-items: center;
    padding-right: 0.75rem; /* nudge icon slightly inward from the edge */
}

.footer-brand h2 {
    margin-bottom: 0.5rem;
    color: var(--color-cream);
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-light-accent);
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.15s ease;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.footer-links a:hover {
    color: var(--color-cream);
    background-color: rgba(137,78,71,0.12);
    transform: translateY(-2px);
}

.footer-copy {
    color: var(--color-light-accent);
    font-size: 0.9rem;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    color: var(--color-cream);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.footer-social:hover {
    background-color: var(--color-mahogany);
    color: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        align-items: center; /* ensure centered columns on small screens */
    }
    .footer-col { width: 100%; }
    .footer-contact { justify-content: center; }
}

.modal-footer {
    border-top: 1px solid var(--color-light-accent);
    padding: 1.5rem 2rem;
}

.btn-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background-color: var(--color-charcoal);
    color: var(--color-cream);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
}

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

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


/* -----------------------------------------------------------------
   15. FOOTER  —  🎓 STUDENT TASK 2  (write this CSS yourself)

   The footer HTML is in index.html and currently has no styling, so
   it looks plain. Write the CSS rules below to match the screenshot
   on the board. Work through the tiers in order — finish 🟢 before
   moving on. Brand variables you can reuse:
       var(--color-charcoal)   dark background
       var(--color-mahogany)   accent / hover colour
   ----------------------------------------------------------------- */

/* 🟢 GUIDED — make it look like a footer.
   On .site-footer set: a dark background colour, a light/white-ish
   text colour, and generous padding (try 4rem top & bottom).
   On .footer-grid, for now simply centre the text. */

/* 🟡 BUILD — lay the 3 columns out side-by-side on desktop.
   Turn .footer-grid into a flex container (display: flex) and spread
   the columns apart (justify-content + gap). Then add a media query
   for small screens (max-width: 768px) that STACKS the columns and
   re-centres them. Align column 1 left, 2 centre, 3 right.

   .footer-brand   { ... }
   .footer-center  { ... }
   .footer-contact { ... }
   @media (max-width: 768px) { ... }  */

/* 🔴 RESEARCH — polish the details (you'll need to look these up).
   1. .footer-links a  — a muted colour that smoothly changes to a
      brighter colour on hover. Search: "css transition" + ":hover".
   2. .footer-social   — make the mail icon a circle that fills with
      colour on hover. Search: "border-radius: 50%" and how to centre
      an icon with "display: inline-flex" + width/height.  */
