/* CRAVO custom stylesheet
   Bootstrap 5 handles layout/components.
   This file contains CRAVO branding and page-specific presentation only.
*/

:root {
  --cravo-orange: #ff4a0a;
  --cravo-orange-dark: #e94105;
  --cravo-orange-soft: #fff0e9;
  --cravo-dark: #111318;
  --cravo-muted: #6d7078;
  --cravo-border: #ece9e7;
  --cravo-shadow: 0 25px 70px rgba(31, 21, 16, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  color: var(--cravo-dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.text-cravo {
  color: var(--cravo-orange) !important;
}

.section-space {
  padding: 6rem 0;
}

.section-kicker {
  color: var(--cravo-orange);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.1rem;
  font-weight: 800;
}

.body-copy {
  color: var(--cravo-muted);
  line-height: 1.7;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-fixed {
  position: fixed;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
}

.navbar-brand img {
  width: 130px;
  height: auto;
}

.navbar .nav-link {
  color: var(--cravo-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--cravo-orange);
}

.btn-cravo {
  color: #fff;
  background: var(--cravo-orange);
  border-color: var(--cravo-orange);
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-cravo:hover {
  color: #fff;
  background: var(--cravo-orange-dark);
  border-color: var(--cravo-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 74, 10, 0.22);
}

/* Hero */
.hero {
  position: relative;
  min-height: 810px;
  padding-top: 7.5rem;
  overflow: hidden;
  background: #fff url("../images/banner.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3.2rem, 6vw, 4.25rem);
  line-height: 0.99;
  letter-spacing: -0.25rem;
  font-weight: 800;
}

.hero-copy {
  max-width: 540px;
}

.store-badge {
  min-width: 148px;
  padding: 0.5rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  background: #08090b;
  border: 1px solid #292929;
  border-radius: 0.55rem;
}

.store-badge:hover {
  color: #fff;
}

.store-badge small {
  display: block;
  font-size: 0.5rem;
  line-height: 1;
}

.store-badge strong {
  font-size: 0.9rem;
}

.scribble {
  margin-left: 4rem;
  color: #555;
  font-size: 0.75rem;
  font-style: italic;
}


/* Hero phone image */
.hero-phone-image {
  position: relative;
  z-index: 2;
  width: min(100%, 470px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 35px rgba(35, 18, 9, 0.18));
  transform: rotate(2deg);
  animation:
    phone-image-enter 0.9s 0.2s both,
    phone-image-float 5s 1.2s ease-in-out infinite;
}

@keyframes phone-image-enter {
  from {
    opacity: 0;
    transform: translate(60px, 30px) rotate(7deg) scale(0.92);
  }
  to {
    opacity: 1;
    transform: rotate(2deg) scale(1);
  }
}

@keyframes phone-image-float {
  50% {
    translate: 0 -12px;
  }
}

/* Phone mockup */
.phone-stage {
  position: relative;
  height: 610px;
}

.phone {
  position: absolute;
  top: 8px;
  right: 75px;
  width: 310px;
  height: 610px;
  overflow: hidden;
  background: #111;
  border: 9px solid #151619;
  border-radius: 48px;
  box-shadow: 0 38px 65px rgba(35, 18, 9, 0.28);
  transform: rotate(7deg);
  animation:
    phone-enter 1s 0.25s both,
    phone-float 5s 1.4s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 4;
  width: 105px;
  height: 25px;
  background: #101114;
  border-radius: 18px;
  transform: translateX(-50%);
}

.app-screen {
  height: 100%;
  padding: 43px 14px 13px;
  background: #f7f7f8;
  font-size: 0.55rem;
}

.app-logo {
  color: var(--cravo-orange);
  font-size: 1.5rem;
  font-weight: 800;
}

.app-search,
.app-category,
.restaurant-card {
  background: #fff;
  border-radius: 0.75rem;
}

.app-search {
  padding: 0.7rem;
  color: #999;
}

.app-category {
  padding: 0.45rem 0.15rem;
  text-align: center;
  font-size: 0.45rem;
}

.app-category span {
  display: block;
  font-size: 1.05rem;
}

.app-offer {
  position: relative;
  min-height: 118px;
  padding: 1.1rem;
  overflow: hidden;
  color: #fff;
  border-radius: 1rem;
  background: linear-gradient(125deg, #512215, #f45d1d);
}

.app-offer::after {
  content: "🍔";
  position: absolute;
  right: 0.25rem;
  bottom: -0.8rem;
  font-size: 4.5rem;
}

.restaurant-card {
  padding: 0.45rem;
}

.food-thumb {
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #f8c28e, #8b3d19);
  font-size: 2.3rem;
}

/* Features */
.feature-card {
  transition: transform 0.3s ease;
}

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

.feature-icon {
  width: 75px;
  height: 75px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  color: var(--cravo-orange);
  background: var(--cravo-orange-soft);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 800;
}

/* How it works */
.steps-panel {
  padding: 5rem max(1.5rem, calc((100vw - 1140px) / 2));
}

.step-number {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--cravo-orange);
  border-radius: 50%;
  font-weight: 800;
}

.bahrain-image {
  position: relative;
  min-height: 520px;
  border-radius: 95px 0 0 0;
  background:
    linear-gradient(rgba(40, 16, 5, 0.12), rgba(30, 10, 0, 0.15)),
    url("../images/bahrain.jpg") center / cover no-repeat;
}

.bahrain-image::after {
  content: "Bahrain\A Delivers\A Better";
  position: absolute;
  top: 25%;
  left: 18%;
  white-space: pre;
  color: #fff;
  font-size: 2rem;
  font-style: italic;
  line-height: 1.3;
  transform: rotate(-8deg);
}

/* Statistics */
.stats-section {
  padding: 2.25rem 0;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.79), rgba(0, 0, 0, 0.79)),
    url("../images/food-bg.png") center / cover no-repeat;
}

.stat-value {
  font-size: 2.15rem;
  font-weight: 800;
}

/* Offers */
.deal-visual {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  background-image: url("../images/food-offer.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.deal-content {
  width: 100%;
  padding: 70px;
}

/* Reviews */
.review-card {
  height: 100%;
  padding: 1.7rem;
  border: 1px solid #f0eeec;
  border-radius: 0.9rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.035);
  transition: transform 0.3s ease;
}

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

.stars {
  color: var(--cravo-orange);
  letter-spacing: 0.12rem;
}

/* FAQ */
.accordion-button {
  font-size: 0.82rem;
  font-weight: 700;
}

.accordion-button:not(.collapsed) {
  color: var(--cravo-orange);
  background: #fff7f2;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

/* Download */
.download-section {
  min-height: 355px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.25)),
    url("../images/footer-bg.png") center / cover no-repeat;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.75s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@keyframes hero-blob {
  50% {
    border-radius: 57% 43% 42% 58%;
    transform: scale(1.035);
  }
}

@keyframes phone-float {
  50% { translate: 0 -14px; }
}

@keyframes phone-enter {
  from {
    opacity: 0;
    transform: translate(90px, 40px) rotate(14deg) scale(0.88);
  }
  to {
    opacity: 1;
    transform: rotate(7deg);
  }
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero {
    min-height: 1160px;
  }

  .hero-copy {
    margin-inline: auto;
    text-align: center;
  }

  .scribble {
    margin-left: 0;
  }

  .phone {
    right: 50%;
    translate: 50% 0;
  }

  .bahrain-image {
    border-radius: 55px 55px 0 0;
  }
}

@media (max-width: 575.98px) {
  .section-space {
    padding: 4.25rem 0;
  }

  .hero {
    min-height: 1050px;
  }

  .phone-stage {
    height: 520px;
  }

  .phone {
    width: 255px;
    height: 510px;
  }

  .steps-panel {
    padding: 4rem 1.5rem;
  }

}

@media (max-width: 991.98px) {
  .hero-phone-image {
    width: min(82vw, 430px);
  }
}

@media (max-width: 575.98px) {
  .hero-phone-image {
    width: min(88vw, 340px);
  }
}



/* Mockup-matched typography */
body,
button,
input,
textarea,
select {
  font-family: "Poppins", Arial, sans-serif;
}

.hero-title,
.section-title {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.hero-title {
  line-height: 1.02;
}

.section-title {
  line-height: 1.08;
}

.section-kicker {
  font-weight: 700;
  letter-spacing: 0.18em;
}

.body-copy {
  font-weight: 400;
  letter-spacing: -0.01em;
}

.navbar .nav-link,
.btn-cravo {
  font-weight: 600;
}

.feature-card h3,
.steps-panel strong,
.review-card strong,
.accordion-button,
.stat-value {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
}

.stats-section small,
.review-card small,
footer,
footer a {
  font-family: "Poppins", Arial, sans-serif;
}



/* =========================================================
   FEATURES — matched to supplied landing-page mockup
   ========================================================= */
.features-section {
  position: relative;
  background: #fff;
  padding: 42px 0 62px;
}

.features-heading {
  margin-bottom: 34px;
}

.features-section .section-kicker {
  margin-bottom: 8px;
  color: var(--cravo-orange);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .20em;
}

.features-section .section-title {
  margin-bottom: 0;
  color: #101114;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.features-row {
  align-items: start;
}

.features-section .feature-card {
  max-width: 230px;
  margin: 0 auto;
  transition: transform .3s ease;
}

.features-section .feature-card:hover {
  transform: translateY(-6px);
}

.features-section .feature-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cravo-orange);
  background: #fff0ea;
  border-radius: 50%;
}

.features-section .feature-icon svg {
  width: 31px;
  height: 31px;
  display: block;
  fill: currentColor;
}

.features-section .feature-icon-bolt svg {
  width: 29px;
  height: 29px;
}

.features-section .percent-icon {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.features-section .feature-card h3 {
  margin: 0 0 7px;
  color: #101114;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.features-section .feature-card p {
  margin: 0;
  color: #686b70;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.01em;
}

@media (min-width: 1200px) {
  .features-section .container {
    max-width: 1180px;
  }
}

@media (max-width: 991.98px) {
  .features-section {
    padding: 52px 0 60px;
  }

  .features-heading {
    margin-bottom: 30px;
  }

  .features-row {
    row-gap: 42px !important;
  }
}

@media (max-width: 575.98px) {
  .features-section {
    padding: 45px 0 50px;
  }

  .features-section .section-title {
    font-size: 27px;
  }

  .features-section .feature-icon {
    width: 62px;
    height: 62px;
  }

  .features-section .feature-card h3 {
    font-size: 14px;
  }

  .features-section .feature-card p {
    font-size: 12px;
  }
}

/* =========================================================
   HOW IT WORKS — matched to supplied mockup
   ========================================================= */
#how {
  position: relative;
  overflow: hidden;
  background: #fff;
}

#how > .container-fluid {
  max-width: none;
}

#how .row {
  min-height: 520px;
}

#how .col-lg-5,
#how .col-lg-7 {
  width: 50%;
  flex: 0 0 50%;
  max-width: 50%;
}

#how .steps-panel {
  width: 100%;
  height: 100%;
  min-height: 520px;
  padding: 58px 54px 48px max(40px, calc((100vw - 1180px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  position: relative;
  z-index: 3;
}

#how .steps-panel .section-kicker {
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .18em;
}

#how .steps-panel .section-title {
  max-width: 390px;
  margin-bottom: 28px !important;
  font-size: clamp(34px, 3.1vw, 46px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

#how .steps-panel > .d-flex {
  max-width: 390px;
  align-items: flex-start;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

#how .steps-panel > .d-flex:last-child {
  margin-bottom: 0 !important;
}

#how .step-number {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  font-size: 16px;
}

#how .steps-panel strong {
  display: block;
  margin: 1px 0 2px;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 700;
}

#how .steps-panel .body-copy {
  max-width: 285px;
  font-size: 13px;
  line-height: 1.35;
}

#how .bahrain-image {
  position: relative;
  width: 100%;
  min-height: 520px;
  height: 100%;
  border-radius: 90px 0 0 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(70, 28, 10, .10), rgba(40, 15, 5, .16)),
    url("../images/cravo-bahrain.png") center center / cover no-repeat;
}

#how .bahrain-image::after {
  
  position: absolute;
  top: 58px;
  left: 84px;
  white-space: pre;
  color: #fff;
  font-size: 27px;
  line-height: 1.28;
  font-weight: 500;
  font-style: italic;
  transform: rotate(-8deg);
}

@media (max-width: 991.98px) {
  #how .col-lg-5,
  #how .col-lg-7 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  #how .steps-panel {
    min-height: auto;
    padding: 60px 28px;
  }

  #how .bahrain-image {
    min-height: 430px;
    border-radius: 55px 55px 0 0;
  }
}

/* =========================================================
   CONSISTENT PAGE PROPORTIONS / MASTER GRID
   Keeps every section on the same visual scale as the hero.
   ========================================================= */
:root {
  --site-max-width: 1180px;
  --site-gutter: 24px;
}

@media (min-width: 1200px) {
  .container {
    width: 100%;
    max-width: var(--site-max-width);
  }
}

/* Keep the hero and all content sections on one common grid. */
.hero .container,
.features-section .container,
.stats-section .container,
#reviews .container,
#faq .container,
.download-section .container,
footer .container,
.site-header .container {
  width: 100%;
  max-width: var(--site-max-width);
}

/* How-it-works stays full bleed, but its content aligns to the same 1180px grid. */
#how .row {
  min-height: 590px;
}

#how .steps-panel {
  min-height: 590px;
  padding-top: 64px;
  padding-right: 58px;
  padding-bottom: 58px;
  padding-left: max(var(--site-gutter), calc((100vw - var(--site-max-width)) / 2));
}

#how .steps-panel .section-title {
  max-width: 470px;
  font-size: clamp(34px, 3vw, 42px);
  line-height: 1.08;
}

#how .steps-panel > .d-flex {
  max-width: 440px;
}

#how .steps-panel .body-copy {
  max-width: 340px;
}

#how .bahrain-image {
  min-height: 590px;
}

/* The reference design has one header at the top. A fixed header can appear
   in the middle of full-page browser screenshots and makes sections look
   like they use different proportions, so keep it at the top of the page. */
.site-header.is-fixed {
  position: absolute;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

@media (max-width: 1199.98px) {
  :root { --site-gutter: 24px; }
}

@media (max-width: 991.98px) {
  #how .row { min-height: 0; }
  #how .steps-panel {
    min-height: auto;
    padding: 56px var(--site-gutter);
  }
  #how .bahrain-image { min-height: 430px; }
}

@media (max-width: 575.98px) {
  :root { --site-gutter: 18px; }
}


/* Deals responsive layout */
@media (max-width: 991.98px) {
 .deal-visual { min-height: 430px; }
  .deal-content { padding: 56px 28px; }
}

@media (max-width: 575.98px) {
 .deal-visual { min-height: 340px; }
  .deal-content { padding: 44px 20px; }
}
