/* =====================================================================
   MAS ENTERPRISES — PREMIUM LAYER v2
   Real assets · gold + Arabian accents · motion. Loads after style.css.
   ===================================================================== */

/* ---- Real logo lockup ---- */
.brand-logo { height: 40px; width: auto; display: block; }
.foot-mast .brand-logo { height: 56px; }
@media (max-width:720px){ .brand-logo { height: 34px; } }

/* ---- Gold gradient text + rules ---- */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hairline-gold { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---- Arabian 8-point geometric ornament (faint) ---- */
section { position: relative; }
.arabesque {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 6l6 12 12-6-6 12 12 6-12 6 6 12-12-6-6 12-6-12-12 6 6-12-12-6 12-6-6-12 12 6z' fill='none' stroke='%23C9A24B' stroke-width='0.9'/%3E%3C/svg%3E");
  background-size: 64px 64px;
  opacity: 0.08;
}
.dark .arabesque, .darker .arabesque, .cta-band .arabesque { opacity: 0.06; }
.wrap, .wrap-tight, .wrap-narrow { position: relative; z-index: 1; }

/* ---- Geometric divider strip ---- */
.geo-strip {
  height: 8px; width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='8' viewBox='0 0 32 8'%3E%3Cg fill='%23C9A24B'%3E%3Cpath d='M16 0l4 4-4 4-4-4z'/%3E%3Cpath d='M2 2l2 2-2 2-2-2z' opacity='0.55'/%3E%3Cpath d='M30 2l2 2-2 2-2-2z' opacity='0.55'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 32px 8px; background-repeat: repeat-x; opacity: 0.9;
}

/* ---- Hero real-cardamom figure + parallax ---- */
.hero-figure {
  position: absolute; z-index: 1; pointer-events: none;
  right: -1%; top: 50%; transform: translateY(-50%);
  width: min(40vw, 500px);
}
.hero-figure img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45)); border-radius: 4px; }
@media (max-width: 1024px){ .hero-figure { opacity: 0.14; right: -12%; width: 78vw; } }

/* ---- Product / catalogue image cards ---- */
.shot { background: var(--ivory); border: 1px solid var(--rule); overflow: hidden; position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.045); }

/* ---- Real cardamom grading chart band ---- */
.chart-band { background: var(--ivory-warm); padding: clamp(48px,7vw,96px) 0; }
.chart-wrap { background: #fff; border: 1px solid var(--rule); padding: clamp(24px,4vw,56px); position: relative; box-shadow: 0 30px 60px -40px rgba(0,0,0,0.35); }
.chart-wrap img { width: 100%; height: auto; display: block; }
.chart-cap { display:flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.chart-cap strong { color: var(--green-deep); }

/* ---- Retail / MAS Spices packaging feature ---- */
.retail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.retail-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.retail-shots .shot { aspect-ratio: 3/4; box-shadow: 0 22px 44px -26px rgba(0,0,0,0.55); }
.retail-shots .shot.tall { grid-row: span 2; aspect-ratio: 3/5; }
.retail-text .pill { display:inline-flex; align-items:center; gap:8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; margin-bottom: 22px; }
.retail-text .pill::before { content:''; width:7px; height:7px; border-radius:50%; background: var(--fresh); }
.retail-text .ar { font-family: var(--f-display); font-size: 22px; color: var(--gold); margin: 8px 0 0; direction: rtl; }

/* ---- Trophy / award feature ---- */
.award { display:grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.award-frame { background: radial-gradient(ellipse at 50% 32%, rgba(231,205,138,0.18), transparent 70%); display:flex; align-items:center; justify-content:center; padding: 16px; }
.award-frame img { width: 100%; max-width: 220px; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.45)); }
.award h3 { font-family: var(--f-display); font-size: clamp(26px,3.2vw,42px); font-weight:400; font-variation-settings:"SOFT" 60; color: var(--ivory); letter-spacing:-0.01em; margin-bottom:16px; line-height:1.1; }
.award h3 em { font-style: italic; color: var(--gold-bright); }
.award p { color: rgba(244,237,224,0.78); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.award .award-cite { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); border-left: 2px solid var(--gold); padding-left: 16px; line-height: 1.7; }

/* ---- Real cert stamps row ---- */
.stamp-row { display:flex; flex-wrap:wrap; gap: 36px; align-items:flex-start; }
.stamp { display:flex; flex-direction:column; align-items:center; gap:12px; max-width: 130px; text-align:center; }
.stamp img { height: 96px; width:auto; }
.stamp span { font-family: var(--f-mono); font-size:10px; letter-spacing:0.12em; text-transform:uppercase; color: var(--mute); line-height:1.5; }

/* ---- Magnetic + underline draw ---- */
.magnetic { will-change: transform; }
.draw-underline { background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: 0 92%; background-size: 0% 2px; transition: background-size 1.1s cubic-bezier(.2,.7,.2,1); }
.draw-underline.drawn { background-size: 100% 2px; }

/* ---- Count-up ---- */
.counting { font-variant-numeric: tabular-nums; }

/* ---- Ticker (markets + Arabic) ---- */
.ticker { overflow: hidden; background: var(--green-darker); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ticker-track { display: flex; white-space: nowrap; width: max-content; animation: ticker 40s linear infinite; }
.ticker-item { display:inline-flex; align-items:center; gap: 18px; padding: 18px 28px; font-family: var(--f-display); font-size: 22px; font-variation-settings:"SOFT" 60; color: var(--ivory); }
.ticker-item::after { content:'◆'; color: var(--gold); font-size: 10px; }
.ticker-item .ar { font-size: 19px; color: var(--gold-bright); }
@keyframes ticker { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---- Richer reveals (fail-open via JS safety net) ---- */
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal-up.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2){ transition-delay:.07s; }
.stagger.in > *:nth-child(3){ transition-delay:.14s; }
.stagger.in > *:nth-child(4){ transition-delay:.21s; }
.stagger.in > *:nth-child(5){ transition-delay:.28s; }
.stagger.in > *:nth-child(6){ transition-delay:.35s; }

@media (prefers-reduced-motion: reduce){
  .reveal-up, .stagger > * { opacity:1 !important; transform:none !important; }
  .draw-underline { background-size:100% 2px !important; }
  .ticker-track { animation: none; }
  .hero-figure { transform: translateY(-50%) !important; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px){
  .retail { grid-template-columns: 1fr; gap: 36px; }
  .award { grid-template-columns: 1fr; gap: 28px; }
  .award-frame { max-width: 220px; }
}
@media (max-width: 720px){
  .retail-shots { gap: 12px; }
  .stamp img { height: 72px; }
  .stamp { max-width: 100px; }
  .ticker-item { font-size: 17px; padding: 14px 18px; }
  .award-frame img { max-width: 180px; }
}

/* =====================================================================
   READABILITY PASS — accessible label contrast on light backgrounds
   (dark-section eyebrows already use brass-light / gold-bright = high AA)
   ===================================================================== */
:root { --bronze: #6F5524; }   /* AA on ivory (~5.8:1) — deep antique gold */

/* Eyebrow / section-number / market-flag labels on light sections */
.eyebrow:not(.on-dark) { color: var(--bronze); }
.sec-label .num { color: var(--bronze); }
.market .flag { color: var(--bronze); }
.dark .market .flag, .darker .market .flag { color: var(--brass-light); }

/* Retail pill — was gold-deep (3.2:1) → green-deep (high AA) */
.retail-text .pill { color: var(--green-deep); }

/* Chart caption plain text — was mute (4.1:1) → ink-soft (8:1) */
.chart-cap { color: var(--ink-soft); }

/* Grades-page retail caption + value-added gold lines on light bg */
.ivory-warm p[style*="--gold-deep"], p[style*="gold-deep"] { color: var(--bronze) !important; }

/* Market Incoterm sub-labels (inline gold-deep) stay AA */
.market p[style*="gold-deep"] { color: var(--bronze) !important; }

/* Retail pack grid — responsive (was inline repeat(4,1fr)) */
.pack-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
@media (max-width: 720px){ .pack-grid { grid-template-columns: repeat(2,1fr); gap: 14px; } }
