/* ==========================================================================
   Reset & Variables
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
    --bg-cream: #F8F1E9;
    --bg-off: #FDFAF7;
    --dark-brown: #2F2118;
    --primary-red: #9C2A2A;
    --gold: #D4A017;
    --white: #FFFFFF;
    --warm-gray: #8D7A6B;

    --gutter: 15px;
    --column-width: 80px;
    --grid-columns: 12;
    --max-grid-width: calc(var(--grid-columns) * var(--column-width) + (var(--grid-columns) - 1) * var(--gutter));
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
html {
    font-size: 16px;
}

body {
    background: var(--bg-cream);
    color: var(--dark-brown);
    font-family: 'Lora', serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Layout & Grid
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-grid-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.grid-row {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), var(--column-width));
  gap: var(--gutter);
  justify-content: center;
}

.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-12 { grid-column: span 12; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}

h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--dark-brown);
}

h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Nav Bar
   ========================================================================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--bg-off);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 80px;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, .25);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2.5rem;
  color: var(--gold);
}

.main-nav {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 2rem);;
  align-items: center;
}

.main-nav a {
  color: var(--dark-brown);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
}

.main-nav a:hover {
  color: var(--primary-red);
}

.hamburger {
    display: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    background-image: url('../images/buffalo-italian-food_la-nonna-trattoria.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    width: 100%;
    min-height: clamp(50vh, 70vh, 85vh);

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    margin: 3rem auto;
    border-radius: 25px;

    position: relative;
    overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(47, 33, 24, 0.45);
  z-index: 1;
  border-radius: 25px;
}

.hero h1 {
    font-size: clamp(2.75rem, 7vw + 1rem, 5rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
    font-weight: 400;
    font-style: normal;
    color: white;
}

.hero p {
    font-size: clamp(1.125rem, 3.5vw + 0.5rem, 1.875rem);
    line-height: 1.4;
    margin-bottom: 2rem;
    max-width: 75ch;
    opacity: 0.95;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-grid-width);
    margin: 0;
    padding: clamp(2rem, 5vw, 4rem) 1.5rem;
    color: white;
}

.hero-ctas {
  margin: 2rem 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: none;

    font-size: clamp(1rem, 2.5vw + 0.4rem, 1.25rem);
    padding-block: clamp(0.75rem, 1.8vw + 0.3rem, 1.125rem);
    padding-inline: clamp(1.25rem, 3vw + 0.5rem, 2.25rem);
    border-radius: 9999px;
}

.btn-reserve, 
.btn-primary {
    background: var(--primary-red);
    color: white !important;
}

.btn-primary:hover,
.btn-reserve:hover {
    background: #7d2121;
}

.btn-secondary {
    border: 2px solid var(--gold);
    color: var(--white);
    background: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--dark-brown);
}

.main-nav .btn-reserve {
    font-size: clamp(0.9rem, 1.5vw, 1.375rem);
    padding-block: clamp(0.5rem, 1vw, 1rem);
    padding-inline: clamp(0.75rem, 1.5vw, 2rem);
    margin-left: clamp(0.5rem, 1vw, 1.5rem);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about h2 {
    font-size: clamp(2.75rem, 7vw + 1rem, 5rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
    font-weight: 400;
    font-style: normal;
}

.about p {
    font-size: clamp(1.125rem, 3.5vw + 0.5rem, 1.875rem);
    line-height: 1.4;
    margin-bottom: 2rem;
    max-width: 75ch;
    opacity: 0.95;
}

.about-content {
  position: relative;
  width: 100%;
  padding: clamp(2rem, 5vw, 4rem) 2rem;
  color: var(--dark-brown);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: var(--max-grid-width);
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.about-card {
    grid-column: span 1;
    background: rgba(212, 160, 23, 0.3);
    border-radius: 25px;
    padding: 2rem 1.25rem 1.75rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 32px rgba(47, 33, 24, 0.12);
}

.about-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(47, 33, 24, 0.18);
}

.card-icon {
    width: 100%;
    max-width: var(--column-width);
    margin: 0 auto 1.5rem;
    aspect-ratio: 1 / 1;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-photo {
    width: clamp(60%, 75%, 80%);
    max-width: clamp(120px, 25vw, 220px);
    margin: 0 auto 1.5rem;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(212, 160, 23, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-card h3 {
    font-size: clamp(1.375rem, 3vw + 0.5rem, 1.8rem);
    margin-bottom: 1rem;
    color: var(--dark-brown);
}

.about-card p {
    font-size: clamp(1rem, 2.2vw + 0.3rem, 1.125rem);
    line-height: 1.5;
    opacity: 0.9;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    gap: var(--gutter);
    width: 100%;
    max-width: var(--max-grid-width);
    margin: 3rem auto 5rem;
    padding: 0 1rem;

    grid-template-columns: 1fr 1fr;
    grid-template-rows: 
        min(33.3vw, 470px)
        min(calc(41.7vw - 15px), 447px)
        min(33.3vw, 370px);
}

.item-a { grid-column: 1; grid-row: 1; }
.item-b { grid-column: 2; grid-row: 1 / span 2; }
.item-c { grid-column: 1; grid-row: 2 / span 2; }
.item-d { grid-column: 2; grid-row: 3; }

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 6px 24px rgba(47, 33, 24, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 36px rgba(47, 33, 24, 0.22);
}

.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-cta button {
    color: var(--dark-brown) !important;
}

/* ==========================================================================
   Signature Section
   ========================================================================== */
.dish-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--gutter);
    width: 100%;
    max-width: var(--max-grid-width);
    margin: 3rem auto 5rem;
    padding: 0 1rem;
}

.dish-card {
    background: white;
    border-radius: 25px;
    padding: 2rem 1.5rem 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(47, 33, 24, 0.12);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dish-card h3 {
    font-size: clamp(1.375rem, 2.5vw + 0.5rem, 1.8rem);
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--dark-brown);
    min-height: 2.8em;
}

.dish-card .description {
    font-size: clamp(0.9375rem, 2vw + 0.3rem, 1.0625rem);
    line-height: 1.5;
    margin-bottom: auto;
    flex-grow: 1;
    opacity: 0.9;
    color: var(--dark-brown);
}

.dish-card .price {
    display: block;
    font-weight: 700;
    color: var(--primary-red);
    font-size: clamp(1.125rem, 2.5vw + 0.4rem, 1.375rem);
    margin-top: 1rem;
}

.dish-card img {
    width: 100%;
    border-radius: 25px;
    margin-bottom: 1.5rem;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.dish-card img {
  transition: transform 0.4s ease;
}

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

.signature-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-cta button {
    color: var(--dark-brown) !important;
}

/* ==========================================================================
   Lower Hero
   ========================================================================== */
.lower-hero {
    background-image: url('../images/la-nonna-trattoria-buffalo-reservation.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  
    width: 100%;
    min-height: clamp(50vh, 70vh, 85vh);
  
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  
    margin: 3rem auto;
    border-radius: 25px;
  
    position: relative;
    overflow: hidden;
}
  
.lower-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(47, 33, 24, 0.45);
    z-index: 1;
    border-radius: 25px;
}
  
.lower-hero h2 {
      font-size: clamp(2.75rem, 7vw + 1rem, 5rem);
      line-height: 1.05;
      margin-bottom: 1.25rem;
      font-weight: 400;
      font-style: normal;
      color: white;
}
  
.lower-hero p {
      font-size: clamp(1.125rem, 3.5vw + 0.5rem, 1.875rem);
      line-height: 1.4;
      margin-bottom: 2rem;
      max-width: 75ch;
      opacity: 0.95;
}
  
.lower-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-grid-width);
    margin: 0;
    padding: clamp(2rem, 5vw, 4rem) 1.5rem;
    color: white;
}
  
.lower-hero-ctas {
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer h3 {
    font-size: clamp(1.375rem, 3vw + 0.5rem, 1.8rem);
    margin-bottom: 1rem;
    color: var(--gold);
    font-weight: 500;
}

.footer p {
    font-size: clamp(1rem, 2.2vw + 0.3rem, 1.125rem);
    line-height: 2;
    opacity: 0.9;
}

.footer-bi {
    font-style: italic;
    font-weight: bold;
}

.footer-i {
    font-style: italic;
}

.footer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gutter);
    width: 100%;
    max-width: var(--max-grid-width);
    margin: 3rem auto 5rem;
    padding: 0 1rem;
}

.footer-card {
    padding: 2rem 1.5rem 2.5rem;
    text-align: center;
    background-color: white;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(47, 33, 24, 0.12);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.footer-social img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

/* ==========================================================================
   Menu Cards
   ========================================================================== */
.menu-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(47, 33, 24, 0.12);
  transition: transform 0.2s;
}

.menu-card:hover {
  transform: translateY(-8px);
}

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

.menu-card h3 {
  padding: 1.2rem 1.5rem 0.5rem;
}

.menu-card p {
  padding: 0 1.5rem 1rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   Contact Us
   ========================================================================== */
.contact-hero {
    width: 100%;
    min-height: clamp(50vh, 70vh, 85vh);

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    margin: 3rem auto;

    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: -10px;
    background-image: url('../images/la-nonna-trattoria-contact-page-background.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    z-index: 0;
}

.contact-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(47, 33, 24, 0.45);
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-grid-width);
    margin: 0;
    padding: clamp(2rem, 5vw, 4rem) 1.5rem;
    color: white;
}

.contact-content h1 {
    font-size: clamp(2.75rem, 7vw + 1rem, 5rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
    font-weight: 400;
    font-style: normal;
    color: white;
}

.contact-content p {
    margin-bottom: 1.25rem;
}





/* ==========================================================================
   Section Helpers
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.intro {
  text-align: center;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #5c4a3e;
}

/* ==========================================================================
   Responsive Adjustments – Mobile-first
   ========================================================================== */

/* Small screens / mobile (default styles already apply) */

/* Tablet and up – start showing multi-column layouts */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 { font-size: clamp(3.5rem, 8vw + 1rem, 5rem); }
    h2 { font-size: clamp(2.25rem, 5vw + 0.75rem, 3rem); }
    h3 { font-size: clamp(1.5rem, 3.5vw + 0.5rem, 1.8rem); }

    .card-icon,
    .card-photo {
        max-width: 140px;
    }
}

/* Medium screens (tablet landscape / small desktop) */
@media (min-width: 900px) {
    .hamburger { display: none; }

    .site-header {
        padding: 1.5rem 3rem;
    }

    .hero {
        margin: 4rem auto;
    }

    .hero-content {
        padding: clamp(3rem, 6vw, 6rem) 3rem;
    }

    .lower-hero {
        margin: 4rem auto;
    }

    .lower-hero-content {
        padding: clamp(3rem, 6vw, 6rem) 3rem;
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .container {
        padding: 0;
    }

    .hero {
        margin: 5rem auto;
        max-width: var(--max-grid-width);
    }

    .lower-hero {
        margin: 5rem auto;
        max-width: var(--max-grid-width);
    }

    .about-cards {
        gap: var(--gutter);
    }

    .about-card {
        padding: 3rem 2rem 2.5rem;
    }

    .card-icon,
    .card-photo {
        max-width: var(--column-width);
    }
}

/* Very large screens – cap scaling */
@media (min-width: 1440px) {
    h1 { font-size: 5rem; }
    h2 { font-size: 3rem; }
    .btn { font-size: 1.25rem; }
}

/* Mobile menu toggle */
@media (max-width: 899px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-off);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 99;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 1rem 0;
        text-align: center;
        font-size: 1.25rem;
    }

    .main-nav .btn-reserve {
        margin: 1rem auto 0;
        width: fit-content;
    }

    /* Hamburger button */
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 200;
    }

    .hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background: var(--dark-brown);
        margin: 5px 0;
        transition: all 0.3s;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }

    .gallery-item {
        aspect-ratio: 4 / 3;
    }

    .item-a, .item-b, .item-c, .item-d {
        grid-column: 1;
        grid-row: auto;
    }
}
