/* FermenDiet site-wide styling (header, footer, shop pages, fixes).
   Fonts and colour tokens live in fd-brand.css, which loads just before this. */

/* page-hero.css hides anything whose class ends in "-hero" on phones */
.fdh-hero { display: block !important; }

/* Images that carry width/height attributes but are sized by aspect-ratio */
.fdh-flavour img { height: auto !important; }
.fdh-story__grid { align-items: center; }
.fdh-hero__title { font-size: clamp(2.4rem, 5.4vw, 4.7rem) !important; }

/* ---------- Our Story: the family photo, softly faded into the cream page ---------- */
.fdh-story__media {
  position: relative; width: 100%; max-width: 460px; justify-self: center;
  aspect-ratio: 4 / 5;
  background: url("/media/626d43f1-7ce9-4435-9f85-595048d3db49/c4540d45-c7bf-4e22-a50a-1f26b751511a.webp") 50% 58% / cover no-repeat;
  filter: saturate(.78) sepia(.14) contrast(.94) brightness(1.04);
  opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse 70% 72% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 72% at 50% 50%, #000 58%, transparent 100%);
}
.fdh-story__media img { display: none !important; }
@media (max-width: 820px) { .fdh-story__media { max-width: 380px; aspect-ratio: 1 / 1; background-position: 50% 52%; } }

/* ---------- Brand graphics (uploaded to the Invo media store) ---------- */
/* Hero badge: the brand's bilingual "Alive Inside" sand blob */
.fdh-badge {
  background: url("/media/626d43f1-7ce9-4435-9f85-595048d3db49/5bcedfb3-bade-4a25-93e8-a8c7c5d19b53.webp") center / contain no-repeat !important;
  width: clamp(130px, 15vw, 190px) !important; max-width: none !important; aspect-ratio: 413 / 380;
  padding: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.28)); transform: rotate(-6deg) !important;
}
.fdh-badge > * { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* English headings swapped for the brand's own lettering (text stays for screen readers and Arabic) */
html[lang="en"] .fdh-range .fdh-head h2,
html[lang="en"] .fdh-promise .fdh-head h2,
html[lang="en"] .fdh-cta h2 {
  color: transparent !important; font-size: 0 !important; line-height: 0 !important;
  background-repeat: no-repeat; background-size: contain; margin-inline: auto;
}
html[lang="en"] .fdh-range .fdh-head h2 { background-image: url("/media/626d43f1-7ce9-4435-9f85-595048d3db49/d9f0d520-b73a-47ae-876e-e599854b3c19.webp"); background-position: center; width: min(62vw, 260px); aspect-ratio: 350 / 288; }
html[lang="en"] .fdh-promise .fdh-head h2 { background-image: url("/media/626d43f1-7ce9-4435-9f85-595048d3db49/f1b33c65-04d0-46c3-942e-5dc1c04865ec.webp"); background-position: center; width: min(88vw, 520px); aspect-ratio: 525 / 148; }
html[lang="en"] .fdh-cta h2 { background-image: url("/media/626d43f1-7ce9-4435-9f85-595048d3db49/e73bc3b1-fed2-4372-ab6b-ed9de2b505a4.webp"); background-position: left center; width: min(80vw, 440px); aspect-ratio: 524 / 281; margin-inline: 0; }

/* Lime scribble behind the range eyebrow */
.fdh-range .fd-eyebrow, .fdh-promise .fd-eyebrow {
  padding: .55rem 1.1rem; color: var(--fd-green-dark) !important;
  background: url("/media/626d43f1-7ce9-4435-9f85-595048d3db49/0094fe82-58d7-46f4-bdc5-340b6f66112f.webp") center / 100% 100% no-repeat;
}
@media (max-width: 820px) { .fdm__deco--lime { display: none; } }

/* ---------- Page title bands (shop, categories, search, cart, account...) ----------
   Invo hides these on phones and paints them grey; show them everywhere in brand green. */
:is(.cat-hero, .shop-hero, .col-hero, .cxl-hero, .search-hero-band, .cart-hero, .brand-hero, .dept-hero, .depts-hero, .wishlist-hero, .acct-hero, .blog-hero, .cx-auth-hero, .ot-hero, .article-title-band) {
  display: block !important;
  position: relative; overflow: hidden;
  background: var(--fd-green-dark) url("/media/626d43f1-7ce9-4435-9f85-595048d3db49/9f295fc1-87c6-4994-b357-5f4eb7313332.webp") no-repeat !important;
  background-size: clamp(90px, 12vw, 150px) auto !important;
  background-position: right -20px bottom -30px !important;
  border: 0 !important;
  padding-block: clamp(1.8rem, 4vw, 3rem) clamp(1.6rem, 3.5vw, 2.6rem) !important;
  text-align: center;
}
[dir="rtl"] :is(.cat-hero, .shop-hero, .col-hero, .cxl-hero, .search-hero-band, .cart-hero, .brand-hero, .dept-hero, .depts-hero, .wishlist-hero, .acct-hero, .blog-hero, .cx-auth-hero, .ot-hero, .article-title-band) { background-position: left -20px bottom -30px !important; }
:is(.cat-hero, .shop-hero, .col-hero, .cxl-hero, .search-hero-band, .cart-hero, .brand-hero, .dept-hero, .depts-hero, .wishlist-hero, .acct-hero, .blog-hero, .cx-auth-hero, .ot-hero, .article-title-band) :is([class*="__title"], h1) {
  color: #fff !important; text-transform: none !important; letter-spacing: -0.01em !important;
  font-family: var(--font-display) !important; font-weight: 900 !important; font-size: clamp(1.9rem, 5vw, 3.4rem) !important;
}
:is(.cat-hero, .shop-hero, .col-hero, .cxl-hero, .search-hero-band, .cart-hero, .brand-hero, .dept-hero, .depts-hero, .wishlist-hero, .acct-hero, .blog-hero, .cx-auth-hero, .ot-hero, .article-title-band) :is([class*="__desc"], [class*="__lede"], [class*="__sub"], p) { color: rgba(255,255,255,.85) !important; }
:is(.cat-hero, .shop-hero, .col-hero, .cxl-hero, .search-hero-band, .cart-hero, .brand-hero, .dept-hero, .depts-hero, .wishlist-hero, .acct-hero, .blog-hero, .cx-auth-hero, .ot-hero, .article-title-band) .cx-path__link { color: var(--fd-lime) !important; }
:is(.cat-hero, .shop-hero, .col-hero, .cxl-hero, .search-hero-band, .cart-hero, .brand-hero, .dept-hero, .depts-hero, .wishlist-hero, .acct-hero, .blog-hero, .cx-auth-hero, .ot-hero, .article-title-band) :is(.cx-path__current, .cx-path__item::before) { color: #fff !important; }
/* the search band holds a search box: keep its field white */
.search-hero-band input { background: #fff !important; color: var(--fd-ink) !important; }

/* ---------- Customer account: FermenDiet has no table reservations or appointments ---------- */
:is(.acct-sidebar__link, .cx-acct-link):is([href*="reservations"], [href*="appointments"]) { display: none !important; }

/* ---------- Checkout (Invo's platform checkout reads these theme tokens) ---------- */
body[data-template="checkout"], .checkout-page {
  --accent: #174823;
  --accent-ink: #ffffff;
  --ink: #1B2A1E;
  --muted: #5f6b62;
  --paper: #ffffff;
  --surface: #F9EFD4;
  --line: rgba(23, 72, 35, .16);
  --radius: 16px;
  --font-body: "Acumin Pro", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}
html[dir="rtl"] .checkout-page { --font-body: var(--fd-font-ar); }
.checkout-page { background: var(--fd-cream); }
.checkout-page .chk-head__eyebrow { color: var(--fd-orange) !important; letter-spacing: .14em; font-weight: 700; }
.checkout-page .chk-head__title { font-family: var(--font-display) !important; font-weight: 900 !important; font-style: normal !important; color: var(--fd-green-dark) !important; letter-spacing: -0.01em; }
.checkout-page .chk-head__title span { color: var(--fd-green) !important; font-style: normal !important; }
html[dir="rtl"] .checkout-page .chk-head__title { font-weight: 700 !important; }
.checkout-page .chk-head__divider-icon { color: var(--fd-lime); }
.checkout-page :is(h2, h3, [class*="__heading"], [class*="section-title"]) { color: var(--fd-green-dark); }
.checkout-page .chk-service-option--active { background: color-mix(in srgb, var(--fd-lime) 35%, #fff) !important; border-color: var(--fd-green) !important; }
.checkout-page :is(.chk-submit, .chk-summary__submit) {
  background: var(--fd-orange) !important; border-color: var(--fd-orange) !important; color: #fff !important;
  border-radius: 999px !important; font-weight: 700 !important; letter-spacing: .02em;
}
.checkout-page :is(.chk-submit, .chk-summary__submit):hover { background: #e05a12 !important; }
.checkout-page .chk-topbar__btn { background: var(--fd-green-dark) !important; border-radius: 999px !important; }
.checkout-page input:focus, .checkout-page select:focus, .checkout-page textarea:focus { outline: 2px solid var(--fd-green) !important; outline-offset: 1px; }

/* Delivery terms note (rendered by the footer, moved under the checkout title) */
.fd-delivery-note {
  display: flex; gap: .85rem; align-items: flex-start;
  background: #fff; border: 2px solid var(--fd-lime); border-radius: 18px;
  padding: 1rem 1.15rem; margin: 1.2rem auto 0; max-width: 46rem; text-align: start;
  color: var(--fd-ink); line-height: 1.55; font-size: .97rem;
}
.fd-delivery-note__icon { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--fd-lime); color: var(--fd-green-dark); display: flex; align-items: center; justify-content: center; }
.fd-delivery-note strong { display: block; color: var(--fd-green-dark); font-size: 1.02rem; margin-bottom: .15rem; }
.fd-delivery-note p { margin: 0; }
.site-footer > .fd-delivery-note { margin: 0 auto 1.5rem; }

/* ---------- Header ---------- */
.header-topbar { background: var(--fd-green-dark) !important; color: #fff !important; border: 0 !important; }
.header-topbar a, .header-topbar button, .header-topbar span, .header-topbar svg { color: #fff !important; }
.site-header { background: #fff; box-shadow: 0 1px 0 rgba(23,72,35,.08); }
.site-logo-img { height: 58px !important; width: auto !important; max-height: none !important; }
.site-nav__item > a, .site-nav__item summary { font-weight: 700 !important; color: var(--fd-green-dark) !important; }
.site-nav__item > a[aria-current="page"], .site-nav__item > a:hover { color: var(--fd-orange) !important; }
.site-nav__item > a[aria-current="page"] { background: transparent !important; }
.contact-phone, .contact-phone * { color: var(--fd-green-dark) !important; }
/* Restaurant leftovers in the phone menu */
.nav-drawer__utility-link[href*="appointment"], .nav-drawer__utility-link[href*="reserve"] { display: none !important; }

/* ---------- Footer: the old wrapper painted a 16px black band above ours ---------- */
.site-footer { background: var(--fd-green-dark) !important; padding-top: 0 !important; }

/* ---------- Product cards, product page & shop ---------- */
.hm-section { padding-block: clamp(2rem, 5vw, 3.5rem) !important; }
.hm-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem) !important; }
[class*="product-card"] { border-radius: 18px; }
[class*="product-card"] img { border-radius: 14px; }
.cx-product-card__add-btn { border-radius: 999px !important; background: var(--fd-green-dark) !important; }
.cx-product-card__add-btn:hover { background: var(--fd-green) !important; }
.pdp-add { border-radius: 999px !important; background: var(--fd-orange) !important; border-color: var(--fd-orange) !important; }
.pdp-add:hover { background: #e05a12 !important; }
.pdp-reviews__write { border-radius: 999px !important; background: var(--fd-green-dark) !important; }
