/* ==========================================
   BETTER BITE ORLANDO
   HOMEPAGE DESIGN
========================================== */

:root {
  --bbo-green: #416b32;
  --bbo-dark-green: #365d2c;
  --bbo-light-green: #d9f3dc;
  --bbo-orange: #ff8519;
  --bbo-purple: #a51bc9;
  --bbo-blue: #c9e2f4;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--bbo-font);
}

main {
  flex: 0 0 auto;
}

/* ==========================================
   HOMEPAGE BACKGROUND
========================================== */

.homepage {
  background: #c9e2f4;
}

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 480px;
  padding: 14px 0 23px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

  background: linear-gradient(
    to bottom,
    rgba(221, 239, 250, 0.85),
    rgba(205, 228, 244, 0.75),
    rgba(188, 222, 242, 0.88)
  );
}

.home-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

/* ==========================================
   HERO HEADING
========================================== */

.hero-heading {
  padding: 0 20px;
  margin-bottom: 7px;
}

.hero-heading h1 {
  font-family: var(--bbo-font);
  font-size: clamp(22px, 2.5vw, 29px);
  font-weight: 700;
  line-height: 1.2;
  color: #080808;
  margin: 0 0 5px;
}

.hero-heading p {
  font-family: var(--bbo-font);
  font-size: 8px;
  line-height: 1.3;
  color: #111;
  margin: 0;
}

/* ==========================================
   CATEGORY CARDS
========================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.category-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  height: 227px;
  overflow: hidden;
  border-radius: 20px;
  padding: 14px 15px;
}

.groceries-card {
  background: #d9f4df;
}

.restaurants-card {
  background: #ffddc7;
}

.recipes-card {
  background: #e8d1ed;
}

/* ==========================================
   CARD FOOD IMAGES
========================================== */

.card-food-image {
  position: absolute;
  z-index: -1;
  right: -8px;
  bottom: 0;
  width: 55%;
  height: 88%;
  object-fit: cover;
  object-position: center;
  border-radius: 50% 0 0 0;
  opacity: 0.98;

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 15%,
    black 45%
  );
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* ==========================================
   CARD HEADINGS AND ICONS
========================================== */

.card-heading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 70px;
}

.card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 24px;
}

.groceries-card .card-icon {
  background: #78c88a;
  color: #37643b;
}

.restaurants-card .card-icon {
  background: #ffc18e;
  color: #ff811d;
}

.recipes-card .card-icon {
  background: #d6b4e1;
  color: #a51bc9;
}

.card-heading h2 {
  font-family: var(--bbo-font);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--bbo-green);
  margin: 0 0 4px;
  white-space: nowrap;
}

.card-heading p {
  font-family: var(--bbo-font);
  font-size: 8px;
  line-height: 1.25;
  color: #496342;
  margin: 0;
}

/* ==========================================
   CARD LISTS
========================================== */

.card-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--bbo-font);
  font-size: 9px;
  color: #496342;
  white-space: nowrap;
}

.card-list i {
  font-size: 13px;
  flex-shrink: 0;
}

.groceries-card .card-list i {
  color: #78c88a;
}

.restaurants-card .card-list i {
  color: #ffb77f;
}

.recipes-card .card-list i {
  color: #d0a8df;
}

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

.card-button {
  position: relative;
  z-index: 2;
  margin: auto auto 0 0;
  min-width: 145px;
  min-height: 31px;
  padding: 8px 12px;
  border-radius: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  text-decoration: none;
  font-family: var(--bbo-font);
  font-size: 9px;
  color: #fff;

  transition: all 0.25s ease;
}

.groceries-button {
  background: #416b32;
}

.restaurants-button {
  background: #ff8519;
}

.recipes-button {
  background: #a51bc9;
}

.card-button:hover {
  color: white;
  filter: brightness(0.92);
  transform: translateY(-2px);
}

/* ==========================================
   THREE PATHS SECTION
========================================== */

.pathways-section {
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr 1.1fr 1.5fr;

  align-items: center;
  gap: 8px;

  min-height: 110px;
  margin-top: 17px;
  padding: 12px 16px;

  border-radius: 13px;
  background: #d9f4df;
  color: var(--bbo-green);
}

/* Section title */

.pathways-title h2 {
  font-family: var(--bbo-font);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 5px;
}

.decorative-underline {
  display: block;
  width: 85px;
  height: 5px;
  border-top: 4px solid #79c98a;
  border-radius: 50%;
  transform: rotate(-4deg);
}

/* Three pathway items */

.pathway-item {
  position: relative;
  z-index: 1;
  text-align: center;
}

.pathway-icon {
  width: 53px;
  height: 53px;

  display: grid;
  place-items: center;

  margin: 0 auto 5px;
  border-radius: 50%;

  background: #a9c9a6;
  color: #416b32;

  font-size: 24px;
}

.pathway-item h3 {
  font-family: var(--bbo-font);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  margin: 0 0 2px;
}

.pathway-item h3 span {
  display: inline-grid;
  place-items: center;

  width: 13px;
  height: 13px;

  border-radius: 50%;
  background: #91bd91;
  color: white;
}

.pathway-item p {
  font-family: var(--bbo-font);
  font-size: 8px;
  line-height: 1.3;
  margin: 0;
}

/* Right message */

.pathways-message {
  position: relative;
  z-index: 1;
  text-align: center;
}

.pathways-message h3 {
  font-family: var(--bbo-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 5px;
}

.pathways-message i {
  color: #ff8519;
}

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

@media (max-width: 991.98px) {
  .home-hero {
    padding-top: 20px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-card {
    min-height: 245px;
    height: auto;
  }

  .card-heading h2 {
    font-size: 21px;
  }

  .pathways-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 22px 15px;
  }

  .pathways-title {
    grid-column: 1 / -1;
    text-align: center;
  }

  .pathways-title .decorative-underline {
    margin: auto;
  }

  .pathways-message {
    grid-column: 1 / -1;
    margin-top: 5px;
  }
}

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

@media (max-width: 575.98px) {
  .home-hero {
    padding: 25px 0 35px;
  }

  .hero-heading {
    padding: 0 5px;
    margin-bottom: 20px;
  }

  .hero-heading h1 {
    font-size: 29px;
  }

  .hero-heading p {
    font-size: 10px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-card {
    min-height: 250px;
    padding: 17px;
  }

  .card-heading h2 {
    font-size: 22px;
  }

  .card-heading p {
    font-size: 9px;
  }

  .card-list {
    gap: 10px;
    margin-top: 15px;
  }

  .card-list li {
    font-size: 10px;
  }

  .card-food-image {
    width: 52%;
    height: 80%;
  }

  .card-button {
    min-height: 34px;
    font-size: 10px;
  }

  .pathways-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px 15px;
  }

  .pathways-title,
  .pathways-message {
    grid-column: auto;
  }

  .pathways-title h2 {
    font-size: 23px;
  }

  .pathway-item h3 {
    font-size: 11px;
  }

  .pathway-item p {
    font-size: 9px;
  }

  .pathways-message h3 {
    font-size: 15px;
  }
}

/* ==========================================
   EXTRA SMALL PHONES
========================================== */

@media (max-width: 360px) {
  .card-heading h2 {
    font-size: 19px;
  }

  .card-list li {
    font-size: 9px;
  }
}

/* ==========================================
   BETTER BITE ORLANDO - LAYOUT FIXES
========================================== */

/* Allow the homepage to grow with its content */
.home-hero {
  min-height: 480px;
  height: auto;
  padding: 20px 0 40px;
  overflow: visible;
}

/* Give the content proper width */
.home-container {
  width: calc(100% - 60px);
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}

/* Background should cover the entire hero */
.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Heading */
.hero-heading {
  margin-bottom: 18px;
  padding: 0 30px;
}

.hero-heading h1 {
  font-size: clamp(30px, 2.5vw, 44px);
  line-height: 1.12;
}

.hero-heading p {
  font-size: 13px;
  line-height: 1.3;
}

/* ==========================================
   CATEGORY GRID
========================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  width: 100%;
}

.category-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 340px;
  height: auto;
  padding: 22px;
  overflow: hidden;
  border-radius: 30px;
}

/* Keep text above images */
.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 70%;
}

/* ==========================================
   FIX CARD IMAGES
========================================== */

.card-food-image {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 88%;
  object-fit: cover;
  object-position: center;
  border-radius: 50% 0 0 0;
  opacity: 0.98;

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 15%,
    black 50%
  );
}

/* ==========================================
   FIX CARD HEADINGS
========================================== */

.card-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 90px;
}

.card-heading h2 {
  font-size: clamp(23px, 2vw, 36px);
  line-height: 1.08;
  white-space: normal;
  overflow-wrap: normal;
}

.card-heading p {
  font-size: 12px;
  line-height: 1.25;
}

/* ==========================================
   FIX CARD LISTS
========================================== */

.card-list {
  position: relative;
  z-index: 2;
  margin: 12px 0 18px 15px;
  gap: 14px;
}

.card-list li {
  font-size: 13px;
  white-space: normal;
  line-height: 1.3;
}

/* ==========================================
   FIX BUTTON VISIBILITY
========================================== */

.card-button {
  position: relative;
  z-index: 3;
  margin-top: auto;
  margin-bottom: 0;
  min-height: 40px;
  min-width: 180px;
  font-size: 12px;
  padding: 10px 18px;
}

/* ==========================================
   FIX LOWER SECTION
========================================== */

.pathways-section {
  margin-top: 25px;
  min-height: 140px;
  height: auto;
  overflow: visible;
}

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

@media (max-width: 991.98px) {
  .home-container {
    width: calc(100% - 40px);
  }

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

  .category-card {
    min-height: 330px;
  }

  .card-content {
    width: 75%;
  }

  .card-heading h2 {
    font-size: 26px;
  }

  .pathways-section {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 575.98px) {
  .home-hero {
    padding: 25px 0 35px;
  }

  .home-container {
    width: calc(100% - 30px);
  }

  .hero-heading {
    padding: 0 5px;
    margin-bottom: 22px;
  }

  .hero-heading h1 {
    font-size: 30px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .category-card {
    min-height: 330px;
    padding: 18px;
  }

  .card-content {
    width: 75%;
  }

  .card-heading {
    min-height: 80px;
  }

  .card-heading h2 {
    font-size: 24px;
  }

  .card-heading p {
    font-size: 10px;
  }

  .card-list {
    gap: 12px;
    margin-top: 12px;
  }

  .card-list li {
    font-size: 11px;
  }

  .card-food-image {
    width: 50%;
    height: 75%;
  }

  .card-button {
    min-height: 38px;
    font-size: 11px;
  }

  .pathways-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px 15px;
  }
}
