/* ============================================
   TOMMY'S DINER — Red & Checkerboard Theme
   Matching the classic tommysdiner.com style
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --red: #cf152d;
  --red-dark: #a80c20;
  --red-darker: #8a0a1a;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f5f5f5;
  --gray-mid: #999999;
  --gray-border: #bbbbbb;
  --checker-size: 20px;
}

/* ---------- Base / Checkerboard Body ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.03rem;
  color: var(--black);
  margin: 0;
  padding: 0;

  /* Checkerboard background — matches original site */
  background-color: var(--black);
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    linear-gradient(to right, black 50%, white 50%),
    linear-gradient(to bottom, black 50%, white 50%);
  background-blend-mode: normal, difference, normal;
  background-size: var(--checker-size) var(--checker-size);
}

::selection {
  background: var(--red);
  color: var(--white);
}

/* ---------- Main Content (white card over checkerboard) ---------- */
#maincontent {
  max-width: 960px;
  margin: 30px auto 30px;
  background: var(--white);
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

@media (max-width: 991.98px) {
  #maincontent {
    max-width: 100%;
    margin: 25px;
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.85);
  }
}

/* ---------- Red Divider (5px red bar between sections) ---------- */
.red-divider {
  height: 5px;
  background: var(--red-dark);
}

/* ---------- Order Bar (pickup / delivery) ---------- */
.order-bar {
  background: var(--red);
  padding: 1rem 0;
}
.order-bar-col {
  padding: 0.4rem 1rem;
}
.order-bar-label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--white);
}
.order-bar-links {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--white);
  margin-top: 0.5rem;
}
.order-bar-links a {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  text-decoration: none;
  border-radius: 15px;
  padding: 0.4rem 1.2rem;
  transition: background 0.2s;
}
.order-bar-links a:hover {
  background: #eeeeee;
  color: var(--red-dark);
}

/* ---------- Navbar (inside #maincontent, sticky) ---------- */
#mainNav {
  background: var(--red);
  border-bottom: 2px solid var(--red-dark);
  padding: 0.4rem 0.75rem;
  z-index: 1020;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.brand-text {
  font-family: 'Lobster', cursive;
  font-size: 1.5rem;
  color: var(--white) !important;
  letter-spacing: 0.03rem;
}

#mainNav .nav-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-size: 0.9rem;
  color: var(--white) !important;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: rgba(255, 255, 255, 0.8) !important;
}

#mainNav .btn-order {
  background: var(--white) !important;
  color: var(--red) !important;
  border-radius: 15px !important;
  font-weight: 500 !important;
  padding: 0.4rem 1.2rem !important;
  margin-left: 0.5rem;
  transition: background 0.2s !important;
  text-decoration: none !important;
}

#mainNav .btn-order:hover {
  background: #eeeeee !important;
  color: var(--red-dark) !important;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
}

.hero-image-wrap > img:first-child {
  display: block;
  width: 100%;
  height: auto;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.hero-text {
  max-width: 600px;
}

.hero-subtitle {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  margin: 0;
  letter-spacing: 0.05rem;
}

.hero-flag {
  position: absolute;
  top: 12%;
  right: 0;
  width: 280px;
  z-index: 10;
}

/* ---------- Order Bar ---------- */
/* ---------- Today's Specials ---------- */
.specials-bar {
  background: linear-gradient(144deg, rgba(76, 76, 76, 1) 0%, rgba(0, 0, 0, 1) 100%);
  padding: 2rem 1.5rem;
  color: var(--white);
}

.about-col {
  padding: 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-col h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 0.75rem;
}

.about-col p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
}

.about-col .btn-diner {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  text-align: center;
  display: inline-block;
  align-self: center;
}

.about-col .btn-diner:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

/* ---------- Homepage Alternating Sections ---------- */
.hp-text-col {
  padding: 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-text-col h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 1rem;
}

.hp-text-col p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
}

.hp-text-col .btn-diner {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  text-align: center;
  display: inline-block;
  align-self: center;
  margin-bottom: 0.75rem;
}

.hp-text-col .btn-diner:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

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

/* ---------- Media Page ---------- */
.media-section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.media-card {
  background: var(--gray-light);
  padding: 1.5rem;
  border-left: 4px solid var(--red);
}

.media-card h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.media-card .media-source {
  color: var(--gray-mid);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.media-list .list-group-item {
  border-left: 3px solid var(--red);
  margin-bottom: 0.25rem;
}

.media-list .list-group-item h5 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.media-list .list-group-item small {
  color: var(--gray-mid);
  white-space: nowrap;
}

.media-pub {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 500;
}

.learn-more-link {
  color: var(--red);
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 500;
}

.learn-more-link:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.specials-bar .specials-title {
  font-family: 'Rock Salt', cursive !important;
  font-size: 1.4rem;
  color: var(--white) !important;
  text-align: center;
  margin-bottom: 0.25rem;
  border-bottom: none !important;
  padding-bottom: 0;
}

.specials-bar .specials-date {
  font-family: 'Rock Salt', cursive;
  font-size: 1.1rem;
  color: var(--white) !important;
  text-align: center;
  margin-bottom: 1.5rem;
}

.specials-list {
  list-style: decimal;
  padding-left: 2.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.specials-list li {
  font-family: 'Rock Salt', cursive;
  font-size: 0.95rem;
  color: var(--white);
  padding: 0.4rem 0;
}

.specials-menu-link {
  font-family: 'Rock Salt', cursive;
  font-size: 1rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.specials-menu-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Buttons ---------- */
.btn-diner {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--red);
  border: 2px solid var(--white);
  border-radius: 15px;
  padding: 0.6rem 1.8rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-diner:hover {
  background: #eeeeee;
  color: var(--red-dark);
}

.btn-diner-lg {
  font-size: 1.1rem;
  padding: 0.75rem 2.5rem;
}

.btn-diner-sm {
  font-size: 0.8rem;
  padding: 0.4rem 1.2rem;
}

/* Red bg variant */
.section-pad .btn-diner {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.section-pad .btn-diner:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

/* ---------- Section Shared ---------- */
.section-pad {
  padding: 3.5rem 0;
}

.section-pad h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: 0.05rem;
  color: var(--black);
  margin-bottom: 0.3rem;
}

.section-pad h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--gray-mid);
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
}

.section-pad p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

.section-pad a:not(.btn-diner):not(.nav-link) {
  color: var(--red);
  text-decoration: none;
}

.section-pad a:not(.btn-diner):not(.nav-link):hover {
  color: var(--red-dark);
  text-decoration: underline;
}

/* ---------- About Images ---------- */
.about-img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--red);
}

.about-thumb {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 2px solid var(--red);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ---------- Banner Sections ---------- */
.banner-section {
  line-height: 0;
}

.banner-section img {
  display: block;
}

.banner-img {
  height: 280px;
  object-fit: cover;
}

/* ---------- Menu ---------- */
.menu-note {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  color: var(--gray-mid) !important;
}

/* Menu Tabs */
.menu-tabs {
  gap: 0.35rem;
}

.menu-tabs .nav-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-size: 0.8rem;
  color: var(--red);
  background: transparent;
  border: 2px solid var(--red);
  border-radius: 0 !important;
  padding: 0.45rem 0.9rem;
  transition: all 0.2s;
}

.menu-tabs .nav-link:hover {
  background: rgba(207, 21, 45, 0.08);
}

.menu-tabs .nav-link.active {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: var(--white) !important;
}

.menu-cat-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
}

.menu-cat-sub {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin-bottom: 1rem;
}

.menu-sub-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 0.3rem;
  margin-bottom: 0.75rem;
}

/* Menu Table — dotted lines like original */
.menutable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}

.menutable tr {
  border-bottom: 1px dotted var(--gray-mid);
}

.menutable tr:last-child {
  border-bottom: none;
}

.menutable td {
  padding: 0.5rem 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  vertical-align: bottom;
}

.menu-name {
  border-bottom: 1px solid #ddd;
  padding-right: 0.5rem;
  line-height: 1.4;
}

.menu-item-desc {
  font-size: 0.82rem;
  color: #777;
  font-weight: 300;
  line-height: 1.3;
  margin-top: 0.1rem;
  background: none;
}

/* ---------- Reviews ---------- */
.section-reviews-bg {
  background: var(--gray-light);
}

.review-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  height: 100%;
  text-align: center;
  transition: transform 0.3s;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.review-stars {
  color: #f5a623;
  font-size: 0.9rem;
  letter-spacing: 0.15rem;
  margin-bottom: 0.8rem;
}

.review-card p {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.review-source {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--red);
}

/* ---------- Location ---------- */
.info-card {
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-top: 4px solid var(--red);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: transform 0.3s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--red);
  margin-bottom: 1rem;
}

.info-card h3 i {
  margin-right: 0.3rem;
}

.info-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.neighborhood {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--red) !important;
}

.hours-table {
  width: 100%;
  font-size: 0.9rem;
}

.hours-table td {
  padding: 0.25rem 0;
  color: #555;
}

.hours-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--black);
}

.hours-table td:last-child {
  text-align: right;
}

.phone-number {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem !important;
  font-weight: 500;
}

.phone-number a {
  color: var(--red) !important;
  text-decoration: none !important;
}

.phone-number a:hover {
  color: var(--red-dark) !important;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.contact-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--black) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.contact-links a:hover {
  color: var(--red) !important;
}

.contact-links a i {
  color: var(--red);
  margin-right: 0.3rem;
}

.map-wrapper {
  border: 3px solid var(--red);
  overflow: hidden;
}

.map-wrapper iframe {
  display: block;
}

/* ---------- Footer (solid red like original) ---------- */
.site-footer {
  background: var(--red);
  color: var(--white);
  padding: 1.5rem 0 1rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-brand {
  font-family: 'Lobster', cursive;
  font-size: 2rem;
  color: var(--white);
  display: block;
  margin-bottom: 0.75rem;
}

.site-footer h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-bottom: 0.5rem;
}

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--white);
  color: var(--red);
  text-decoration: none;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.3);
  margin: 1rem 0 0.5rem;
}

.footer-copy {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-3px);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  #maincontent {
    margin: 15px;
  }

  .navbar-collapse {
    background: var(--red-dark);
    padding: 0.75rem;
    margin-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .btn-order {
    margin-left: 0 !important;
    margin-top: 0.5rem;
    display: inline-block;
  }

  .hero-flag {
    width: 200px;
    top: 10%;
  }

  .section-pad h1 {
    font-size: 1.7rem;
  }

  .section-pad p {
    font-size: 0.95rem;
  }

  .banner-img {
    height: 200px;
  }
}

@media (max-width: 767px) {
  #maincontent {
    margin: 20px;
  }

  .hero-flag {
    width: 160px;
    top: 8%;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-pad {
    padding: 2.5rem 0;
  }

  .menu-tabs .nav-link {
    font-size: 0.72rem;
    padding: 0.35rem 0.6rem;
  }

  .about-thumb {
    height: 140px;
  }

  .banner-img {
    height: 180px;
  }

  .hp-text-col {
    padding: 1.25rem;
  }

  .hp-text-col h1 {
    font-size: 1.1rem;
  }

  .hp-text-col p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .hp-text-col .btn-diner {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
  }

  .about-col {
    padding: 1.25rem;
  }

  .about-col h1 {
    font-size: 1.3rem;
  }

  .about-col p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  .about-col .btn-diner {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
  }

  .specials-bar {
    padding: 1.25rem 1rem;
  }

  .specials-bar .specials-title {
    font-size: 1rem;
  }

  .specials-bar .specials-date {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .specials-list li {
    font-size: 0.7rem;
    padding: 0.2rem 0;
  }

  .specials-menu-link {
    font-size: 0.75rem;
  }
}

@media (max-width: 575px) {
  #maincontent {
    margin: 15px;
  }

  .hero-flag {
    width: 130px;
    top: 5%;
  }

  .order-card {
    padding: 1rem;
  }

  .menutable td {
    font-size: 0.85rem;
  }
}
