/* ==========================================================================
   HASSAN DURGHAM — Part 2: sections, cards, bands, forms, footer
   ========================================================================== */

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section{padding:clamp(64px,7vw,110px) 0}
.section--tight{padding:clamp(48px,5vw,76px) 0}
.section--cream{background:var(--cream-2)}
.section--paper{background:var(--paper)}
.section--dark{background:var(--green-900);color:#fff}
.section--dark .lead{color:var(--on-dark-muted)}

.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:clamp(24px,5vw,80px);margin-bottom:clamp(32px,4vw,54px)}
.section-head__text{max-width:44ch}
.section-head__aside{max-width:46ch;padding-bottom:6px}
.section-head--center{flex-direction:column;align-items:center;text-align:center}
.section-head--center .section-head__text{max-width:56ch}

/* ==========================================================================
   Media placeholder — used until real photography is supplied
   ========================================================================== */
.ph{
  position:relative;overflow:hidden;background:
    radial-gradient(120% 90% at 20% 0%,rgba(163,191,107,.22),transparent 60%),
    linear-gradient(145deg,var(--green-800),var(--green-950));
  display:grid;place-items:center;color:rgba(255,255,255,.28);
}
.ph::after{
  content:"";position:absolute;inset:0;
  background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.035) 0 12px,transparent 12px 24px);
}
.ph__mark{position:relative;z-index:2;width:44px;height:44px;opacity:.6}
.ph--light{background:linear-gradient(145deg,var(--cream-3),var(--cream-2));color:rgba(28,33,23,.22)}
.media{position:relative;overflow:hidden;background:var(--cream-3)}
.media img{width:100%;height:100%;object-fit:cover}
.media--fill{position:absolute;inset:0}

/* Any box that declares its own aspect-ratio must not be re-sized by whatever
   sits inside it — the photo and the placeholder both fill it absolutely, so
   the ratio alone decides the height. */
.ratio-box{position:relative}
.ratio-box > img,.ratio-box > .ph{position:absolute;inset:0;width:100%;height:100%}

/* ==========================================================================
   Story block (Home / Our Story) — archival collage
   ========================================================================== */
.story{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:clamp(30px,5vw,80px);align-items:center}
.story__collage{position:relative;min-height:440px}
.story__photo{position:absolute;box-shadow:var(--shadow);overflow:hidden}
.story__photo--a{inset-block-start:0;inset-inline-start:0;width:62%;height:56%}
.story__photo--b{inset-block-end:0;inset-inline-start:22%;width:58%;height:50%;border:8px solid var(--cream)}
.story__card{
  position:absolute;inset-block-start:14%;inset-inline-end:16%;
  background:var(--cream-2);padding:26px 34px;box-shadow:var(--shadow-sm);
  font-family:var(--font-script);color:var(--gold);font-size:clamp(2rem,2.6vw,2.9rem);
  line-height:1;text-align:center;
}
.story__pillars{position:absolute;inset-block-start:6%;inset-inline-end:0;width:118px}
.story__note{
  position:absolute;inset-block-end:4%;inset-inline-end:2%;
  display:flex;align-items:center;gap:10px;
  font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;font-weight:700;color:var(--red);
  line-height:1.6;text-align:start;
}
.story__note .circle-btn{width:36px;height:36px;border-color:var(--red);color:var(--red)}

/* ==========================================================================
   Product family cards
   ========================================================================== */
.family-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,1.6vw,22px)}

.family-card{
  display:flex;flex-direction:column;background:var(--paper);
  border:1px solid var(--line);transition:transform .35s var(--ease),box-shadow .35s var(--ease);
}
.family-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.family-card__media{aspect-ratio:16/11;position:relative;overflow:hidden}
.family-card__media > img,.family-card__media > .ph{position:absolute;inset:0;width:100%;height:100%}
.family-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.family-card:hover .family-card__media img{transform:scale(1.05)}
.family-card__body{padding:20px 22px 24px;display:flex;flex-direction:column;gap:8px;flex:1}
.family-card__title{font-family:var(--font-display);font-size:1.45rem;line-height:1.15}
.family-card__text{font-size:.84rem;color:var(--muted);flex:1}
.family-card__badge{
  position:absolute;inset-block-start:12px;inset-inline-start:12px;z-index:2;
  background:var(--green-700);color:#fff;padding:6px 12px;
  font-size:.6rem;letter-spacing:.18em;text-transform:uppercase;font-weight:700;
}

/* Horizontal scroller variant used on the Home page */
.family-rail{position:relative}
.family-rail__track{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(178px,1fr);
  gap:clamp(12px,1.4vw,18px);overflow-x:auto;scroll-behavior:smooth;
  scroll-snap-type:x mandatory;padding-bottom:6px;
  scrollbar-width:none;
}
.family-rail__track::-webkit-scrollbar{display:none}
.family-rail__track > *{scroll-snap-align:start}
.family-rail__nav{
  position:absolute;inset-block-start:34%;inset-inline-end:-18px;z-index:5;
  box-shadow:var(--shadow-sm);
}
.rail-card{display:flex;flex-direction:column;gap:12px}
.rail-card__media{aspect-ratio:1/1;overflow:hidden;position:relative}
.rail-card__media > img,.rail-card__media > .ph{position:absolute;inset:0;width:100%;height:100%}
.rail-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.rail-card:hover .rail-card__media img{transform:scale(1.06)}
.rail-card__title{font-family:var(--font-display);font-size:1.12rem;line-height:1.2}
.rail-card .link-explore{font-size:.62rem}

/* ==========================================================================
   Filter chips + search (Products page)
   ========================================================================== */
.filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:clamp(26px,3vw,40px)}
.chip{
  display:inline-flex;align-items:center;gap:9px;
  padding:13px 20px;border:1px solid var(--line);background:var(--paper);
  font-size:.82rem;font-weight:500;color:var(--ink-2);
  transition:all .25s var(--ease);border-radius:var(--radius);
}
.chip:hover{border-color:var(--green-600);color:var(--green-700)}
.chip.is-active{background:var(--green-700);border-color:var(--green-700);color:#fff}
.chip svg{width:17px;height:17px;flex:none}

.search{position:relative;margin-inline-start:auto;min-width:min(280px,100%)}
.search input{
  width:100%;padding:13px 44px 13px 16px;border:1px solid var(--line);
  background:var(--paper);border-radius:var(--radius);font-size:.86rem;
}
.search input::placeholder{color:var(--muted-2)}
.search button{position:absolute;inset-block:0;inset-inline-end:12px;display:grid;place-items:center;color:var(--muted)}

/* ==========================================================================
   Dark banner band ("Your Market. Your Recipe. Your Brand.")
   ========================================================================== */
.banner{position:relative;color:#fff;overflow:hidden;isolation:isolate;background:var(--green-900)}
.banner__media{position:absolute;inset:0;z-index:-2}
.banner__media img{width:100%;height:100%;object-fit:cover}
.banner::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,rgba(6,20,10,.35) 0%,rgba(6,20,10,.72) 45%,rgba(6,20,10,.94) 100%);
}
[dir="rtl"] .banner::before{background:linear-gradient(-90deg,rgba(6,20,10,.35) 0%,rgba(6,20,10,.72) 45%,rgba(6,20,10,.94) 100%)}
.banner__inner{
  display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(30px,5vw,70px);
  padding:clamp(60px,7vw,96px) 0;
}
.banner__copy{grid-column:2}
.banner__title{font-family:var(--font-display);font-size:clamp(2.4rem,4.2vw,4.1rem);line-height:1.04;white-space:pre-line;margin-bottom:18px}
.banner__features{display:flex;flex-wrap:wrap;gap:22px 34px;margin-top:34px}
.banner__feature{display:flex;align-items:center;gap:11px;font-size:.82rem;color:rgba(255,255,255,.9)}
.banner__feature svg{width:26px;height:26px;color:var(--gold-soft);flex:none}
.banner__tag{
  position:absolute;z-index:2;inset-block-start:28%;inset-inline-start:22%;
  font-family:var(--font-script);color:var(--cream-2);font-size:clamp(1.4rem,2vw,2rem);
  line-height:1.1;text-align:center;transform:rotate(-6deg);
}

/* Banner variant with the copy on the left (Products page) */
.banner--left .banner__copy{grid-column:1}
.banner--left::before{background:linear-gradient(90deg,rgba(6,20,10,.94) 0%,rgba(6,20,10,.72) 45%,rgba(6,20,10,.35) 100%)}
[dir="rtl"] .banner--left::before{background:linear-gradient(-90deg,rgba(6,20,10,.94) 0%,rgba(6,20,10,.72) 45%,rgba(6,20,10,.35) 100%)}
.banner--left .banner__features{flex-direction:column;gap:18px}

/* ==========================================================================
   Export band — cream / photo / cream
   ========================================================================== */
.export-band{display:grid;grid-template-columns:1fr 1.05fr .85fr;align-items:stretch;background:var(--cream-2)}
.export-band__copy{padding:clamp(44px,5vw,78px) clamp(24px,4vw,60px);display:flex;flex-direction:column;justify-content:center}
.export-band__copy .h-lg{white-space:pre-line;margin-bottom:16px}
.export-band__media{position:relative;min-height:340px}
.export-band__list{
  padding:clamp(44px,5vw,78px) clamp(24px,4vw,50px);
  display:flex;flex-direction:column;justify-content:center;gap:26px;background:var(--cream-2);
}
.export-band__item{display:flex;align-items:center;gap:14px;font-size:.84rem;font-weight:500;color:var(--ink-2)}
.export-band__item svg{width:26px;height:26px;color:var(--green-600);flex:none}

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats{background:var(--green-900);color:#fff}
.stats__inner{display:grid;grid-template-columns:repeat(4,1fr);align-items:center}
.stats--six .stats__inner{grid-template-columns:repeat(6,1fr)}
.stat{
  display:flex;align-items:center;gap:15px;
  padding:clamp(26px,3vw,40px) clamp(14px,2vw,28px);
  border-inline-start:1px solid rgba(255,255,255,.14);
}
.stat:first-child{border-inline-start:0}
.stat__icon{width:40px;height:40px;color:var(--gold);flex:none}
.stat__value{font-family:var(--font-display);font-size:clamp(1.25rem,1.7vw,1.7rem);line-height:1.1}
.stat__label{font-size:.7rem;color:rgba(255,255,255,.66);line-height:1.4}
.stats__script{
  font-family:var(--font-script);font-size:clamp(1.8rem,2.6vw,2.6rem);
  color:#fff;line-height:1.05;text-align:center;padding-inline:clamp(14px,2vw,28px);
}
.stats--light{background:var(--cream-2);color:var(--ink)}
.stats--light .stat{border-color:var(--line)}
.stats--light .stat__icon{color:var(--green-600)}
.stats--light .stat__label{color:var(--muted)}
.stats--light .stats__script{color:var(--ink)}

/* ==========================================================================
   Closing CTA band
   ========================================================================== */
.cta-band{
  position:relative;text-align:center;color:#fff;overflow:hidden;isolation:isolate;
  padding:clamp(66px,8vw,118px) 0;background:var(--green-800);
}
.cta-band__media{position:absolute;inset:0;z-index:-2}
.cta-band__media img{width:100%;height:100%;object-fit:cover}
.cta-band::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(8,22,12,.58)}
.cta-band .h-lg{margin-bottom:14px}
.cta-band .lead{color:rgba(255,255,255,.85);margin-inline:auto;max-width:52ch;margin-bottom:30px}
.cta-band--light{color:var(--ink);background:var(--cream-2)}
.cta-band--light::before{display:none}

/* ==========================================================================
   Forms
   ========================================================================== */
.field{
  width:100%;padding:14px 16px;border:1px solid var(--line);background:var(--paper);
  border-radius:var(--radius);font-size:.9rem;transition:border-color .2s var(--ease);
}
.field:focus{outline:none;border-color:var(--green-600);box-shadow:0 0 0 3px rgba(44,90,52,.10)}
.field::placeholder{color:var(--muted-2)}
textarea.field{resize:vertical;min-height:96px}
select.field{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7266' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center;padding-inline-end:40px;
}
[dir="rtl"] select.field{background-position:left 16px center;padding-inline-end:16px;padding-inline-start:40px}

.field-label{display:block;font-size:.78rem;font-weight:600;color:var(--ink-2);margin-bottom:7px}
.field-hint{font-size:.74rem;color:var(--muted-2);margin-top:6px}
.field-error{font-size:.76rem;color:var(--red);margin-top:6px}
.field-group{margin-bottom:16px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}

/* Input with a unit suffix — the kg box */
.field-unit{position:relative;display:flex;align-items:center}
.field-unit .field{padding-inline-end:62px}
.field-unit__suffix{
  position:absolute;inset-inline-end:1px;inset-block:1px;
  display:grid;place-items:center;width:52px;background:var(--cream-2);
  border-inline-start:1px solid var(--line);font-size:.82rem;font-weight:600;color:var(--ink-2);
}

/* Numbered step card */
.step{background:var(--paper);border:1px solid var(--line);padding:clamp(20px,2.2vw,28px)}
.step__head{display:flex;align-items:flex-start;gap:13px;margin-bottom:18px}
.step__num{
  width:30px;height:30px;border-radius:50%;background:var(--green-700);color:#fff;
  display:grid;place-items:center;font-size:.82rem;font-weight:700;flex:none;
}
.step__title{font-size:1rem;font-weight:600;color:var(--ink);line-height:1.3}
.step__hint{font-size:.78rem;color:var(--muted);margin-top:3px}
.steps{display:grid;gap:16px}
.steps--two{grid-template-columns:1fr 1fr}

/* Selectable option tiles */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.tile{
  position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:14px 10px;border:1px solid var(--line);background:var(--paper);
  text-align:center;cursor:pointer;transition:all .22s var(--ease);border-radius:var(--radius);
}
.tile:hover{border-color:var(--green-600)}
.tile input{position:absolute;opacity:0;pointer-events:none}
.tile__media{width:46px;height:46px;display:grid;place-items:center;color:var(--green-600)}
.tile__media img{width:100%;height:100%;object-fit:contain}
.tile__label{font-size:.78rem;font-weight:600;line-height:1.25}
.tile__sub{font-size:.68rem;color:var(--muted)}
.tile.is-selected{border:2px solid var(--green-600);background:#F5F9F3;padding:13px 9px}

/* Wide option tiles with an icon at the start (Recipe / Branding rows) */
.tiles--wide{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.tiles--wide .tile{flex-direction:row;align-items:center;text-align:start;gap:12px;padding:15px 16px}
.tiles--wide .tile.is-selected{padding:14px 15px}
.tiles--wide .tile__media{width:30px;height:30px;flex:none}
.tiles--wide .tile__body{display:flex;flex-direction:column;gap:2px}

/* Radio list (Recipe & Ingredients on Custom Production) */
.radio-row{display:flex;align-items:flex-start;gap:11px;padding:10px 0;cursor:pointer}
.radio-row input{margin-top:4px;accent-color:var(--green-600);width:16px;height:16px;flex:none}
.radio-row__label{font-size:.88rem;font-weight:600}
.radio-row__hint{font-size:.76rem;color:var(--muted)}

/* Upload drop zone */
.upload{
  border:1px dashed var(--line-2);background:var(--cream-2);
  padding:22px 16px;text-align:center;cursor:pointer;transition:all .22s var(--ease);
  display:flex;flex-direction:column;align-items:center;gap:8px;
}
.upload:hover{border-color:var(--green-600);background:#F5F9F3}
.upload input{display:none}
.upload__icon{width:26px;height:26px;color:var(--muted)}
.upload__label{font-size:.82rem;font-weight:600}
.upload__hint{font-size:.7rem;color:var(--muted-2)}
.upload.has-file{border-style:solid;border-color:var(--green-600);background:#F5F9F3}

/* Honeypot — kept out of the accessibility tree AND off screen */
.hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert{padding:14px 18px;border-inline-start:3px solid;font-size:.88rem;margin-bottom:20px;border-radius:var(--radius)}
.alert--success{background:#F1F7EF;border-color:var(--green-600);color:var(--green-800)}
.alert--error{background:var(--red-100);border-color:var(--red);color:var(--red-600)}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{background:var(--cream-2);padding-top:clamp(46px,5vw,70px)}
.site-footer__grid{
  display:grid;grid-template-columns:1.5fr 1fr 1.2fr 1.4fr;
  gap:clamp(28px,4vw,60px);padding-bottom:clamp(34px,4vw,54px);
}
.site-footer__logo{width:150px;margin-bottom:16px}
.site-footer__script{font-family:var(--font-script);font-size:clamp(1.6rem,2vw,2.1rem);color:var(--ink-2);line-height:1.05}
.site-footer h4{font-size:.86rem;font-weight:700;margin-bottom:16px;color:var(--ink)}
.site-footer__links{display:flex;flex-direction:column;gap:10px}
.site-footer__links a{font-size:.86rem;color:var(--muted);transition:color .2s}
.site-footer__links a:hover{color:var(--red)}
.site-footer__contact{display:flex;flex-direction:column;gap:12px}
.site-footer__contact li{display:flex;align-items:center;gap:11px;font-size:.86rem;color:var(--muted)}
.site-footer__contact svg{width:17px;height:17px;color:var(--green-600);flex:none}
.site-footer__social{display:flex;gap:14px;margin-top:18px}
.site-footer__social a{width:20px;height:20px;color:var(--ink-2);transition:color .2s}
.site-footer__social a:hover{color:var(--red)}

.newsletter{display:flex;margin-top:16px;border:1px solid var(--line-2);background:var(--paper)}
.newsletter input{flex:1;padding:14px 16px;border:0;background:transparent;font-size:.86rem}
.newsletter input:focus{outline:none}
.newsletter button{width:50px;background:var(--green-800);color:#fff;display:grid;place-items:center;transition:background .2s}
.newsletter button:hover{background:var(--green-700)}

.site-footer__bottom{
  border-top:1px solid var(--line-2);padding:20px 0 26px;
  display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  font-size:.76rem;color:var(--muted-2);
}
.site-footer__bottom nav{display:flex;gap:18px}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb{display:flex;align-items:center;gap:9px;font-size:.76rem;color:rgba(255,255,255,.62);margin-bottom:22px}
.breadcrumb a:hover{color:#fff}
.breadcrumb__sep{opacity:.5}
.breadcrumb--dark{color:var(--muted)}
.breadcrumb--dark a:hover{color:var(--red)}

/* ==========================================================================
   Floating "My Inquiry" pill
   ========================================================================== */
.basket-pill{
  position:fixed;inset-block-end:24px;inset-inline-end:24px;z-index:80;
  display:inline-flex;align-items:center;gap:11px;
  padding:14px 22px;background:var(--green-800);color:#fff;
  box-shadow:var(--shadow-lg);border-radius:40px;
  font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  transition:transform .25s var(--ease);
}
.basket-pill:hover{transform:translateY(-3px)}
.basket-pill__count{
  min-width:22px;height:22px;padding-inline:6px;border-radius:11px;background:var(--red);
  display:grid;place-items:center;font-size:.72rem;
}

/* A placeholder dropped into a full-bleed media wrapper has no intrinsic
   height of its own, so it is told to fill the wrapper explicitly. */
.hero__media > .ph,
.banner__media > .ph,
.cta-band__media > .ph,
.video-card__media > .ph,
.process-card__media > .ph,
.cp-rail__media > .ph,
.export-band__media > .ph,
.product-hero__media > .ph,
.story__photo > .ph,
.partner-band__promo > .ph{width:100%;height:100%}

/* Rich-text content in a slot that was designed for a single paragraph:
   the editor wraps everything in <p>, so the outer margins are removed and
   only the gaps between paragraphs are kept. */
.rich--tight > p{margin:0 0 .55em}
.rich--tight > p:last-child{margin-bottom:0}
.rich--tight > ul,.rich--tight > ol{margin:0 0 .55em}
.hero__text.rich > p,.product-hero__text.rich > p{color:inherit;font-size:inherit;line-height:inherit}

/* The handwritten accents use a Latin-only script face. In RTL they fall back
   to Cairo: no Arabic hand-written face matches it, and a clean sans reads
   better than whatever default the browser would otherwise pick. */
[dir="rtl"] .hero__script,
[dir="rtl"] .cp-rail__script,
[dir="rtl"] .product-hero__script,
[dir="rtl"] .story__card,
[dir="rtl"] .site-footer__script,
[dir="rtl"] .stats-band__script{font-family:var(--font-body);font-style:normal;letter-spacing:0;line-height:1.7}

/* Pillar words under a section heading. The count varies per section, so the
   track is sized by content rather than by a number baked into the markup —
   an inline grid-template-columns cannot be overridden by a media query, and
   four fixed columns ran off a phone screen. */
.pillar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:16px}

/* Same idea for the numbered strip: the step count arrives as --steps, and the
   stylesheet decides how many of them fit. */
.process-strip--flat{grid-template-columns:repeat(var(--steps,4),minmax(0,1fr));margin-top:34px}
@media (max-width:760px){
  .pillar-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:0 16px}
  .process-strip--flat{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:420px){
  .process-strip--flat{grid-template-columns:minmax(0,1fr)}
}
