/* =========================================================
   IHOP RESTAURANT TEMPLATE — BASE STYLES
   File: css/ihop-base.css

   Shared by both:
   - ihop-light.html
   - ihop-dark.html
   ========================================================= */

:root {
  --blue: #0065b3;
  --blue2: #003f79;
  --red: #e31837;
  --gold: #f4bd27;

  --ink: #131820;
  --muted: #627080;
  --surface: #ffffff;
  --bg: #f5f9fc;
  --line: rgba(0, 64, 121, 0.14);

  --shadow:
    0 24px 70px rgba(0, 55, 101, 0.14);

  --radius: 26px;

  --shell:
    min(1380px, calc(100% - 30px));
}

/* =========================================================
   GLOBAL RESET AND PAGE STRUCTURE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: var(--shell);
  margin: auto;
}

.section {
  padding:
    clamp(72px, 9vw, 128px) 0;
}

.eyebrow,
.kicker {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0.2em 0;
  font-size:
    clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.section-lead {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.65;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 950;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--primary {
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--blue2)
    );
  box-shadow:
    0 16px 34px
    rgba(0, 101, 179, 0.25);
}

.btn--gold {
  color: #1b2b3a;
  background:
    linear-gradient(
      135deg,
      #ffe27a,
      var(--gold)
    );
}

/* =========================================================
   FLOATING NAVIGATION
   ========================================================= */

.site-nav {
  position: fixed;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 100;
  opacity: 0;
  transform: translateY(-130%);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.site-nav.is-visible {
  opacity: 1;
  transform: none;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background:
    rgba(247, 252, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.site-nav img {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 850;
}

/* =========================================================
   HERO HEADER
   ========================================================= */

.hero {
  position: relative;
  min-height:
    calc(100svh + 50px);
  overflow: hidden;
  color: #ffffff;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
   Black-to-gray video overlay.

   This replaces the original blue overlay while keeping
   the white heading readable over the video.
*/
.hero::after {
  position: absolute;
  inset: 0;
  content: "";

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.90) 0%,
      rgba(24, 24, 24, 0.68) 42%,
      rgba(92, 92, 92, 0.30) 72%,
      rgba(150, 150, 150, 0.10) 100%
    );
}

.hero__logo {
  position: absolute;
  top: 24px;
  left:
    max(
      20px,
      calc((100vw - 1380px) / 2)
    );
  z-index: 2;
  width: auto;
  height: 96px;
  object-fit: contain;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height:
    calc(100svh + 50px);
  padding-top: 100px;
  transform: translateY(-22px);
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  color: #ffffff;
  font-size:
    clamp(3.1rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-shadow:
    0 5px 25px
    rgba(0, 0, 0, 0.55);
}

.hero p {
  max-width: 750px;
  color:
    rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   HERO TRUST CARDS
   ========================================================= */

.trust-row {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.trust-card {
  padding: 18px 20px;
  background:
    rgba(0, 0, 0, 0.48);
  border:
    1px solid
    rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  backdrop-filter: blur(14px);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.12em;
}

.trust-card .stars {
  font-size: 1.45rem;
}

.trust-card strong {
  display: block;
}

.trust-card p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

/* =========================================================
   EXPERIENCE SECTION
   ========================================================= */

.experience-grid {
  display: grid;
  grid-template-columns:
    repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 18px;
}

.experience-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.experience-card:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}

.experience-card:nth-child(2),
.experience-card:nth-child(3) {
  grid-column: span 5;
}

.experience-card:nth-child(4) {
  grid-column: span 12;
}

.experience-card img,
.experience-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-card::after {
  position: absolute;
  inset: 0;
  content: "";

  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(0, 29, 62, 0.84)
    );
}

.experience-card__copy {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 2;
  color: #ffffff;
}

.experience-card__copy h3 {
  margin: 0;
  font-size: 1.5rem;
}

/* =========================================================
   MENU FILTERS AND ORDERING TABS
   ========================================================= */

.menu-controls,
.order-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.filter-btn,
.order-tab {
  padding: 12px 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}

.filter-btn.is-active,
.order-tab.is-active {
  color: #ffffff;
  background: var(--blue);
}

/* =========================================================
   SMART MENU
   ========================================================= */

.smart-menu {
  display: grid;
  gap: 16px;
}

.menu-category {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 12px 34px
    rgba(0, 55, 100, 0.08);
}

.menu-category summary {
  display: grid;
  grid-template-columns:
    130px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  list-style: none;
  cursor: pointer;
}

.menu-category summary::-webkit-details-marker {
  display: none;
}

.menu-category summary img {
  width: 130px;
  height: 92px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
}

.menu-category summary strong {
  display: block;
  font-size: 1.25rem;
}

.menu-category summary small {
  color: var(--muted);
}

.menu-category summary b {
  color: var(--blue);
  font-size: 2rem;
}

.menu-items {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 18px;
  padding: 0 18px 18px;
}

.menu-item {
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.menu-item > img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  object-position: center;
}

.menu-item__copy {
  padding: 20px;
}

.menu-item__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.menu-item h3 {
  margin: 0;
  font-size: 1.25rem;
}

.menu-item p {
  color: var(--muted);
  line-height: 1.55;
}

.mini-cta {
  color: var(--blue);
  font-weight: 900;
}

/* =========================================================
   ORDERING SECTION
   ========================================================= */

.order-panel {
  display: none;
  grid-template-columns:
    0.78fr 1.22fr;
  align-items: center;
  gap: 28px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.order-panel.is-active {
  display: grid;
}

.order-panel h3 {
  margin: 0.2em 0;
  font-size:
    clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

.order-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.embed-shell {
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 24px;
  color: #ffffff;

  background:
    linear-gradient(
      145deg,
      #042b4f,
      #00162d
    );

  border-radius: 22px;
}

.app-demo-disclosure {
  max-width: 920px;
  margin: 22px 0;
  padding: 15px 18px;

  border-left:
    5px solid var(--blue);

  border-radius: 14px;
  color: var(--muted);

  background:
    rgba(0, 101, 179, 0.07);

  line-height: 1.55;
}

/* =========================================================
   REWARDS SECTION
   ========================================================= */

.rewards {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.rewards video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rewards::after {
  position: absolute;
  inset: 0;
  content: "";

  background:
    linear-gradient(
      135deg,
      rgba(0, 65, 125, 0.96),
      rgba(0, 111, 190, 0.76)
    );
}

.rewards__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns:
    1fr 1fr;
  align-items: center;
  gap: 36px;
}

.rewards-card {
  padding: 26px;
  color: var(--ink);

  background:
    rgba(255, 255, 255, 0.96);

  border-radius: 30px;
  box-shadow: var(--shadow);
}

.rewards-card img {
  width: auto;
  max-width: 100%;
  max-height: 160px;
  margin: auto;
  object-fit: contain;
}

.reward-perks {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.reward-perks div {
  padding: 16px;

  background:
    rgba(255, 255, 255, 0.12);

  border:
    1px solid
    rgba(255, 255, 255, 0.18);

  border-radius: 18px;
}

/* =========================================================
   DEALS AND CATERING
   ========================================================= */

.deals-grid {
  display: grid;
  grid-template-columns:
    2fr 1fr 1fr;
  gap: 18px;
}

.deal-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.deal-card:first-child {
  grid-row: span 2;
}

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

.deal-card:first-child img {
  height: 100%;
  min-height: 520px;
}

.deal-card__copy {
  padding: 20px;
}

.deal-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.catering-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 28px;
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #003b70,
      #0073ba
    );

  border-radius: 26px;
}

/* =========================================================
   REVIEW CARDS

   The original initials-based .review-avatar element has
   been removed.

   The review cards now display:
   profile-a.png
   profile-b.png
   profile-c.png

   The paths are controlled inside js/ihop-assets.js.
   ========================================================= */

.review-grid {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 18px;
}

.review-card {
  display: grid;
  grid-template-columns:
    82px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/*
   Profile portrait image.

   This class is generated by js/ihop-main.js.
*/
.review-profile-image {
  display: block;
  width: 82px;
  height: 82px;
  min-width: 82px;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
  border:
    4px solid
    rgba(244, 189, 39, 0.38);
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    0 8px 20px
    rgba(0, 54, 96, 0.12);
}

.review-card__content {
  min-width: 0;
}

.review-card blockquote {
  margin: 0.4rem 0 1rem;
  line-height: 1.5;
}

.review-card strong {
  display: block;
}

/* =========================================================
   FOOD GALLERY
   ========================================================= */

.gallery {
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  padding: 70px 0 110px;
  color: #ffffff;
  background: #001a33;
}

.footer__grid {
  display: grid;
  grid-template-columns:
    1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer img {
  width: auto;
  height: 72px;
  object-fit: contain;
}

.footer h3 {
  color: var(--gold);
}

.footer ul {
  padding: 0;
  list-style: none;
}

.footer li {
  margin: 0.6rem 0;
  color:
    rgba(255, 255, 255, 0.78);
}

/* =========================================================
   FIXED MOBILE ACTION BAR
   ========================================================= */

.mobile-actions {
  position: fixed;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 90;
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);
  gap: 8px;
  padding: 9px;

  background:
    rgba(0, 27, 52, 0.82);

  border-radius: 20px;
  backdrop-filter: blur(16px);
}

.mobile-actions a {
  display: grid;
  place-items: center;
  min-height: 52px;
  color: #ffffff;
  border-radius: 15px;
  font-weight: 900;
}

.mobile-actions a:nth-child(1) {
  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--blue2)
    );
}

.mobile-actions a:nth-child(2) {
  color: #162b3d;

  background:
    linear-gradient(
      135deg,
      #ffe27a,
      var(--gold)
    );
}

.mobile-actions a:nth-child(3) {
  background: #092d50;
}

.mobile-actions a:nth-child(4) {
  color: #004d8a;
  background: #eaf6ff;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {
  .menu-items {
    grid-template-columns:
      1fr 1fr;
  }

  .order-panel,
  .rewards__inner {
    grid-template-columns: 1fr;
  }

  .deals-grid {
    grid-template-columns: 1fr;
  }

  .deal-card:first-child {
    grid-row: auto;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .site-nav__links {
    display: none;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {
  .hero__content {
    justify-content: flex-start;
    padding-top: 150px;
    transform: none;
  }

  .hero__logo {
    height: 76px;
  }

  .trust-row {
    display: flex;
    overflow-x: auto;
  }

  .trust-card {
    min-width: 82vw;
  }

  .experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .experience-card,
  .experience-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    height: 300px;
  }

  .menu-items {
    grid-template-columns: 1fr;
  }

  .menu-category summary {
    grid-template-columns:
      90px 1fr auto;
  }

  .menu-category summary img {
    width: 90px;
    height: 76px;
  }

  .reward-perks,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .review-card {
    grid-template-columns:
      72px minmax(0, 1fr);
  }

  .review-profile-image {
    width: 72px;
    height: 72px;
    min-width: 72px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
  .review-card {
    grid-template-columns:
      64px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .review-profile-image {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-width: 3px;
  }

  .mobile-actions {
    gap: 5px;
  }

  .mobile-actions a {
    min-height: 48px;
    font-size: 0.8rem;
  }
}

/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration:
      0.01ms !important;
    transition-duration:
      0.01ms !important;
  }
}