/* =========================================
   BLOOMFIELD'S ORDERING APP
   Main shared styles
========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal: #13b8ad;
  --teal-dark: #079c93;
  --teal-light: #d9f8f5;

  --black: #101010;
  --black-soft: #1a1a1a;

  --white: #ffffff;
  --background: #f5f5f2;
  --grey: #747474;
  --light-grey: #eeeeeb;

  --radius-small: 14px;
  --radius-medium: 20px;
  --radius-large: 28px;

  --shadow: 0 5px 18px rgba(0, 0, 0, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--black);
  min-height: 100vh;
  padding-bottom: 95px;
}


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

.app-header {
  background: var(--teal);
  padding:
    calc(20px + env(safe-area-inset-top))
    20px
    22px;

  border-radius: 0 0 28px 28px;

  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.12);
}

.header-inner {
  max-width: 700px;
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 15px;
}

.logo-area h1 {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.logo-area p {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
}

.open-badge {
  background: var(--black);
  color: var(--white);

  padding: 9px 13px;
  border-radius: 30px;

  font-size: 11px;
  font-weight: 900;

  white-space: nowrap;
}

.open-dot {
  display: inline-block;

  width: 7px;
  height: 7px;

  background: #42e889;
  border-radius: 50%;

  margin-right: 5px;
}


/* =========================================
   MAIN PAGE
========================================= */

.page {
  width: 100%;
  max-width: 700px;

  margin: auto;
  padding: 18px;
}


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

.hero {
  position: relative;

  min-height: 310px;

  border-radius: var(--radius-large);
  overflow: hidden;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.78)
    ),
    url("https://images.unsplash.com/photo-1565299507177-b0ac66763828?auto=format&fit=crop&w=1200&q=85");

  background-size: cover;
  background-position: center;

  padding: 25px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  color: var(--white);

  box-shadow: var(--shadow);
}

.hero-label {
  color: #aef5ef;

  font-size: 12px;
  font-weight: 900;

  letter-spacing: 0.7px;

  margin-bottom: 7px;
}

.hero h2 {
  font-size: 34px;
  line-height: 1.03;

  max-width: 420px;

  margin-bottom: 9px;

  letter-spacing: -1px;
}

.hero-text {
  font-size: 14px;
  line-height: 1.45;

  max-width: 420px;

  margin-bottom: 18px;
}

.order-button {
  width: 100%;

  border: 0;

  background: var(--teal);
  color: var(--black);

  padding: 17px 18px;

  border-radius: 15px;

  font-size: 16px;
  font-weight: 900;

  cursor: pointer;
}

.order-button:active {
  transform: scale(0.98);
}

.pay-on-collection {
  text-align: center;

  margin-top: 9px;

  font-size: 11px;
  font-weight: 700;

  color: #eeeeee;
}


/* =========================================
   SECTION TITLES
========================================= */

.section-heading {
  margin: 27px 2px 14px;

  font-size: 21px;
  font-weight: 900;

  letter-spacing: -0.4px;
}


/* =========================================
   QUICK CARDS
========================================= */

.quick-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;
}

.quick-card {
  background: var(--white);

  border-radius: var(--radius-medium);

  padding: 18px 16px;

  min-height: 140px;

  box-shadow:
    0 3px 13px rgba(0, 0, 0, 0.07);

  border: 2px solid transparent;

  cursor: pointer;
}

.quick-card:active {
  border-color: var(--teal);
  transform: scale(0.98);
}

.quick-icon {
  width: 45px;
  height: 45px;

  border-radius: 14px;

  background: var(--teal-light);

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

  font-size: 22px;

  margin-bottom: 13px;
}

.quick-card h3 {
  font-size: 16px;
  font-weight: 900;

  margin-bottom: 5px;
}

.quick-card p {
  color: var(--grey);

  font-size: 12px;
  line-height: 1.4;
}


/* =========================================
   FEATURED SPECIAL
========================================= */

.featured {
  position: relative;

  margin-top: 24px;

  background: var(--black);

  color: var(--white);

  padding: 22px;

  border-radius: 22px;

  overflow: hidden;

  box-shadow: var(--shadow);
}

.featured::after {
  content: "";

  position: absolute;

  width: 145px;
  height: 145px;

  border-radius: 50%;

  background: var(--teal);

  opacity: 0.17;

  right: -45px;
  top: -55px;
}

.featured-label {
  color: var(--teal);

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 0.8px;

  margin-bottom: 7px;
}

.featured h2 {
  font-size: 23px;
  font-weight: 900;

  margin-bottom: 7px;

  max-width: 80%;
}

.featured p {
  color: #d4d4d4;

  font-size: 13px;
  line-height: 1.45;

  max-width: 80%;
}

.featured-price {
  margin-top: 12px;

  color: var(--teal);

  font-size: 22px;
  font-weight: 900;
}


/* =========================================
   COLLECTION INFO
========================================= */

.collection-box {
  margin-top: 18px;

  background: var(--teal-light);

  padding: 18px;

  border-radius: 18px;
}

.collection-box strong {
  display: block;

  font-size: 14px;

  margin-bottom: 6px;
}

.collection-box p {
  font-size: 12px;
  line-height: 1.45;
}


/* =========================================
   BOTTOM NAVIGATION
========================================= */

.bottom-nav {
  position: fixed;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 1000;

  height:
    calc(72px + env(safe-area-inset-bottom));

  padding-bottom:
    env(safe-area-inset-bottom);

  background: var(--black);

  display: flex;
  align-items: center;
  justify-content: space-around;

  box-shadow:
    0 -4px 16px rgba(0, 0, 0, 0.15);
}

.nav-item {
  width: 20%;

  text-align: center;

  color: #9b9b9b;

  font-size: 9px;
  font-weight: 800;

  cursor: pointer;
}

.nav-icon {
  display: block;

  font-size: 21px;

  margin-bottom: 4px;
}

.nav-item.active {
  color: var(--teal);
}


/* =========================================
   DESKTOP / LARGE SCREEN
========================================= */

@media (min-width: 700px) {

  .app-header {
    border-radius: 0;
  }

  .hero {
    min-height: 380px;
  }

  .hero h2 {
    font-size: 42px;
  }

  }
