/* ============================================================
   MIDMAR FEED TRADING — Corporate Stylesheet
   Premium palette: deep green + gold, matching brand logo
   Supports RTL (Arabic) and LTR (English) via logical properties
   ============================================================ */

:root {
    --green-950: #0d2418;
    --green-900: #123524;
    --green-800: #1b4332;
    --green-700: #2d6a4f;
    --green-600: #40916c;
    --gold-500: #c9a227;
    --gold-400: #d4af37;
    --gold-300: #e6c65c;
    --cream: #faf7f0;
    --cream-dark: #f3eee2;
    --ink: #1d2521;
    --muted: #5c6b63;
    --white: #ffffff;
    --radius: 14px;
    --shadow-sm: 0 2px 10px rgba(13, 36, 24, .07);
    --shadow-md: 0 10px 34px rgba(13, 36, 24, .13);
    --shadow-lg: 0 24px 60px rgba(13, 36, 24, .22);
    --font-main: 'Tajawal', 'Manrope', system-ui, sans-serif;
    --transition: all .35s cubic-bezier(.22, .61, .36, 1);
}

html[lang="en"] body { --font-main: 'Manrope', 'Tajawal', system-ui, sans-serif; }

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

/* ---------- Announcement bar ---------- */
.announce-bar {
    background: linear-gradient(90deg, var(--green-950), var(--green-800), var(--green-950));
    color: var(--cream);
    font-size: .95rem;
    padding: .55rem 0;
    text-align: center;
}
.announce-bar a {
    color: var(--gold-300);
    font-weight: 700;
    border-bottom: 1px dashed var(--gold-400);
    margin-inline-start: .35rem;
}
.announce-bar a:hover { color: var(--white); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(250, 247, 240, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(27, 67, 50, .09);
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: .65rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-shrink: 0;
}
.brand img { height: 56px; width: auto; }
.brand-text { line-height: 1.25; }
.brand-text .brand-name {
    display: block;
    font-weight: 800;
    font-size: 1.12rem;
    color: var(--green-900);
}
.brand-text .brand-sub {
    display: block;
    font-size: .72rem;
    letter-spacing: .12em;
    color: var(--gold-500);
    font-weight: 700;
    text-transform: uppercase;
}

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 1.7rem; align-items: center; }
.main-nav a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--green-900);
    position: relative;
    padding-block: .4rem;
}
.main-nav a::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 0;
    height: 2.5px;
    border-radius: 2px;
    background: var(--gold-500);
    transition: var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a:hover { color: var(--green-700); }

.header-actions { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }

.lang-switch {
    font-weight: 800;
    font-size: .9rem;
    color: var(--green-800);
    border: 1.5px solid rgba(27, 67, 50, .25);
    border-radius: 50px;
    padding: .35rem .95rem;
}
.lang-switch:hover { background: var(--green-800); color: var(--white); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: inherit;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    padding: .8rem 1.9rem;
    transition: var(--transition);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--green-950);
    box-shadow: 0 6px 20px rgba(201, 162, 39, .35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(201, 162, 39, .45); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, .75);
}
.btn-outline:hover { background: var(--white); color: var(--green-900); }
.btn-green {
    background: linear-gradient(135deg, var(--green-700), var(--green-800));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(27, 67, 50, .3);
}
.btn-green:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27, 67, 50, .4); }
.header-cta { padding: .62rem 1.5rem; font-size: .95rem; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--green-900);
    margin: 5px 0;
    transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    color: var(--white);
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/brand/hero.jpg") center/cover no-repeat;
    z-index: -2;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(13, 36, 24, .88) 22%, rgba(13, 36, 24, .55) 55%, rgba(13, 36, 24, .25));
    z-index: -1;
}
html[dir="rtl"] .hero::after {
    background: linear-gradient(-100deg, rgba(13, 36, 24, .88) 22%, rgba(13, 36, 24, .55) 55%, rgba(13, 36, 24, .25));
}
.hero-content { max-width: 700px; padding-block: 7rem 6rem; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(201, 162, 39, .16);
    border: 1px solid rgba(212, 175, 55, .5);
    color: var(--gold-300);
    font-weight: 700;
    font-size: .92rem;
    border-radius: 50px;
    padding: .4rem 1.2rem;
    margin-bottom: 1.6rem;
}
.hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 1.4rem;
}
.hero h1 .accent { color: var(--gold-300); }
.hero-sub {
    font-size: clamp(1.02rem, 1.6vw, 1.22rem);
    color: rgba(250, 247, 240, .88);
    margin-bottom: 2.4rem;
    max-width: 620px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Section scaffolding ---------- */
section { padding-block: 5.5rem; }

.section-head { max-width: 720px; margin-bottom: 3.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-block;
    color: var(--gold-500);
    font-weight: 800;
    font-size: .92rem;
    letter-spacing: .06em;
    margin-bottom: .7rem;
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 34px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--gold-500);
    vertical-align: middle;
    margin-inline-end: .6rem;
}
.section-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    font-weight: 800;
    color: var(--green-900);
    line-height: 1.4;
}
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.06rem; }

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}
.about-media { position: relative; }
.about-media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.about-media::before {
    content: "";
    position: absolute;
    inset: -18px auto auto -18px;
    width: 45%;
    height: 45%;
    border: 3px solid var(--gold-400);
    border-radius: var(--radius);
    z-index: -1;
}
.about-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--green-900);
    line-height: 1.45;
    margin-bottom: 1.4rem;
}
.about-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.1rem; }
.about-copy p strong { color: var(--green-800); }

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.2rem;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--gold-400);
    text-align: center;
    padding: 1.3rem .8rem;
}
.stat-card .num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--green-800);
    line-height: 1.2;
}
.stat-card .lbl { font-size: .88rem; color: var(--muted); font-weight: 600; }

/* ---------- Features (Why Midmar) ---------- */
.features { background: var(--green-950); color: var(--cream); position: relative; overflow: hidden; }
.features::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 500px at 80% -10%, rgba(64, 145, 108, .25), transparent 60%),
                radial-gradient(900px 400px at 5% 110%, rgba(201, 162, 39, .12), transparent 60%);
}
.features .section-head h2 { color: var(--white); }
.features .section-head p { color: rgba(250, 247, 240, .75); }
.features-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
.feature-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, .09);
    border-color: rgba(212, 175, 55, .45);
}
.feature-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, .25), rgba(212, 175, 55, .08));
    border: 1px solid rgba(212, 175, 55, .4);
    margin-bottom: 1.4rem;
}
.feature-card h3 {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--gold-300);
    margin-bottom: .8rem;
}
.feature-card p { color: rgba(250, 247, 240, .8); font-size: .99rem; }

/* ---------- Products ---------- */
.products { background: var(--cream-dark); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-md); }
.product-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}
.product-card:hover .product-media img { transform: scale(1.07); }
.product-tag {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    background: rgba(13, 36, 24, .82);
    color: var(--gold-300);
    font-size: .8rem;
    font-weight: 700;
    padding: .3rem .9rem;
    border-radius: 50px;
    backdrop-filter: blur(6px);
}
.product-body { padding: 1.7rem 1.6rem 1.9rem; flex: 1; display: flex; flex-direction: column; }
.product-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--green-900);
    margin-bottom: .7rem;
}
.product-body p { color: var(--muted); font-size: .99rem; flex: 1; }
.product-link {
    margin-top: 1.3rem;
    font-weight: 800;
    color: var(--green-700);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.product-link:hover { color: var(--gold-500); gap: .7rem; }

/* Sectors strip */
.sectors-strip {
    margin-top: 3.4rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.6rem 1rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .6rem;
    text-align: center;
}
.sector { font-weight: 700; color: var(--green-800); font-size: .95rem; }
.sector .s-icon { font-size: 1.7rem; display: block; margin-bottom: .3rem; }

/* ---------- Synergy (Fido) ---------- */
.synergy {
    position: relative;
    color: var(--white);
    isolation: isolate;
    text-align: center;
}
.synergy::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/brand/synergy.jpg") center/cover no-repeat fixed;
    z-index: -2;
}
.synergy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 36, 24, .9), rgba(18, 53, 36, .82));
    z-index: -1;
}
.synergy-inner { max-width: 840px; margin-inline: auto; }
.synergy .eyebrow { color: var(--gold-300); }
.synergy .eyebrow::before { background: var(--gold-300); }
.synergy h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 1.5rem;
}
.synergy p {
    color: rgba(250, 247, 240, .88);
    font-size: 1.08rem;
    margin-bottom: 2.4rem;
}
.synergy p strong { color: var(--gold-300); }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.contact-cards { display: grid; gap: 1.1rem; }
.contact-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.35rem 1.5rem;
    transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
    color: var(--gold-300);
}
.contact-card .c-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.contact-card .c-value { font-weight: 800; color: var(--green-900); font-size: 1.05rem; direction: ltr; unicode-bidi: embed; }
.contact-card .c-value.keep-dir { direction: inherit; }
.contact-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--green-950);
    color: rgba(250, 247, 240, .75);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer-brand img { height: 64px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .97rem; max-width: 380px; }
.footer-col h4 {
    color: var(--gold-300);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: .7rem; }
.footer-col a:hover { color: var(--gold-300); padding-inline-start: .3rem; }
.footer-contact li {
    display: flex;
    gap: .6rem;
    align-items: baseline;
}
.footer-contact .ltr { direction: ltr; unicode-bidi: embed; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.4rem 0;
    text-align: center;
    font-size: .92rem;
}
.footer-bottom .heart { color: var(--gold-400); }

/* ---------- WhatsApp float ---------- */
.wa-float {
    position: fixed;
    bottom: 26px;
    inset-inline-end: 26px;
    z-index: 998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: var(--white);
    box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
    transition: var(--transition);
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22, .61, .36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
    .sectors-strip { grid-template-columns: repeat(3, 1fr); row-gap: 1.4rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.6rem; }
    .contact-media { order: -1; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; margin-inline-start: auto; }
    .main-nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(320px, 82vw);
        background: var(--green-950);
        padding: 5.5rem 2rem 2rem;
        transform: translateX(var(--drawer-hide, 100%));
        transition: transform .45s cubic-bezier(.22, .61, .36, 1);
        z-index: 1000;
        margin-inline-start: 0;
    }
    html[dir="rtl"] .main-nav { inset: 0 auto 0 0; --drawer-hide: -100%; }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
    .main-nav a { color: var(--cream); font-size: 1.15rem; }
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(13, 36, 24, .55);
        backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .4s ease;
        z-index: 999;
    }
    .nav-overlay.show { opacity: 1; pointer-events: auto; }
    .nav-close {
        position: absolute;
        top: 1.2rem;
        inset-inline-end: 1.2rem;
        background: none;
        border: none;
        color: var(--cream);
        font-size: 1.8rem;
        cursor: pointer;
    }
    .header-cta { display: none; }
    .hero { min-height: 78vh; }
    .hero-content { padding-block: 5rem 4.5rem; }
    section { padding-block: 4rem; }
}

@media (max-width: 620px) {
    .features-grid, .products-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
    .stat-card .num { font-size: 1.4rem; }
    .sectors-strip { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .brand img { height: 46px; }
    .brand-text .brand-name { font-size: 1rem; }
    .hero-actions .btn { width: 100%; }
    .synergy::before { background-attachment: scroll; }
}

/* ============================================================
   V2 — Multi-page + creative animations
   ============================================================ */

/* ---------- Keyframes ---------- */
@keyframes kenburns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.14) translate(-1.5%, 1.5%); }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .45); }
    60%      { box-shadow: 0 0 0 18px rgba(212, 175, 55, 0); }
}
@keyframes spinSlow {
    to { transform: rotate(360deg); }
}
@keyframes marquee {
    to { transform: translateX(calc(-50% * var(--marq-dir, 1))); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes wheatSway {
    0%, 100% { transform: rotate(-4deg); }
    50%      { transform: rotate(5deg); }
}
@keyframes slideUpIn {
    from { opacity: 0; transform: translateY(46px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Hero slider (4 slides) ---------- */
.hero-slider {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}
.hs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: -2;
    transition: opacity 1.4s ease;
}
.hs-slide .hs-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.hs-slide.active { opacity: 1; }
.hs-slide.active .hs-bg { animation: kenburns 9s ease-out forwards; }
.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(13, 36, 24, .9) 20%, rgba(13, 36, 24, .58) 55%, rgba(13, 36, 24, .25));
    z-index: -1;
}
html[dir="rtl"] .hero-slider::after {
    background: linear-gradient(-100deg, rgba(13, 36, 24, .9) 20%, rgba(13, 36, 24, .58) 55%, rgba(13, 36, 24, .25));
}
.hs-caption { max-width: 720px; padding-block: 7rem 7.5rem; }
.hs-caption .hero-badge, .hs-caption h1, .hs-caption .hero-sub, .hs-caption .hero-actions {
    opacity: 0;
}
.hs-caption.animate .hero-badge   { animation: slideUpIn .8s .15s cubic-bezier(.22,.61,.36,1) forwards; }
.hs-caption.animate h1            { animation: slideUpIn .9s .3s  cubic-bezier(.22,.61,.36,1) forwards; }
.hs-caption.animate .hero-sub     { animation: slideUpIn .9s .5s  cubic-bezier(.22,.61,.36,1) forwards; }
.hs-caption.animate .hero-actions { animation: slideUpIn .9s .68s cubic-bezier(.22,.61,.36,1) forwards; }

.hs-dots {
    position: absolute;
    bottom: 34px;
    inset-inline-start: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: .6rem;
    z-index: 5;
}
.hs-dot {
    width: 34px;
    height: 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .35);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.hs-dot.active { background: var(--gold-400); width: 52px; }

.hs-arrows {
    position: absolute;
    inset-inline-end: 34px;
    bottom: 26px;
    display: flex;
    gap: .6rem;
    z-index: 5;
}
.hs-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .5);
    background: rgba(13, 36, 24, .35);
    color: var(--white);
    font-size: 1.15rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.hs-arrow:hover { background: var(--gold-400); color: var(--green-950); border-color: var(--gold-400); }

/* ---------- Animated icons ---------- */
.anim-float { animation: floatY 3.6s ease-in-out infinite; }
.anim-float-2 { animation: floatY 4.4s .6s ease-in-out infinite; }
.anim-float-3 { animation: floatY 5s 1.1s ease-in-out infinite; }
.anim-pulse { animation: pulseGlow 2.6s ease-out infinite; }
.anim-sway { display: inline-block; animation: wheatSway 3.2s ease-in-out infinite; transform-origin: bottom center; }

.icon-ring {
    position: relative;
}
.icon-ring::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    border: 1.5px dashed rgba(212, 175, 55, .55);
    animation: spinSlow 14s linear infinite;
}

/* Shimmering gold text */
.gold-shimmer {
    background: linear-gradient(90deg, var(--gold-300), #fff6d8 25%, var(--gold-300) 50%, var(--gold-400));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 5s linear infinite;
}

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative;
    min-height: 46vh;
    display: flex;
    align-items: center;
    color: var(--white);
    isolation: isolate;
    overflow: hidden;
    text-align: center;
}
.page-hero .ph-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: kenburns 14s ease-out forwards;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 36, 24, .82), rgba(13, 36, 24, .68));
    z-index: -1;
}
.page-hero .container { padding-block: 6.5rem 4.5rem; }
.page-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: .9rem;
    animation: slideUpIn .9s .15s cubic-bezier(.22,.61,.36,1) both;
}
.page-hero p {
    color: rgba(250, 247, 240, .85);
    max-width: 640px;
    margin-inline: auto;
    font-size: 1.08rem;
    animation: slideUpIn .9s .35s cubic-bezier(.22,.61,.36,1) both;
}
.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: .5rem;
    font-size: .92rem;
    color: var(--gold-300);
    margin-top: 1.2rem;
    animation: slideUpIn .9s .5s cubic-bezier(.22,.61,.36,1) both;
}
.breadcrumbs a { color: rgba(250, 247, 240, .8); }
.breadcrumbs a:hover { color: var(--gold-300); }

/* ---------- Marquee (sectors ticker) ---------- */
.marquee-wrap {
    overflow: hidden;
    background: var(--green-950);
    padding-block: 1.1rem;
    border-block: 1px solid rgba(212, 175, 55, .25);
}
.marquee-track {
    display: flex;
    width: max-content;
    gap: 3.4rem;
    animation: marquee 26s linear infinite;
}
html[dir="rtl"] .marquee-track { --marq-dir: -1; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--cream);
    font-weight: 700;
    font-size: 1.02rem;
    white-space: nowrap;
}
.marquee-item .mi-icon { font-size: 1.45rem; }
.marquee-item .mi-star { color: var(--gold-400); font-size: .8rem; }

/* ---------- Counters band ---------- */
.counters-band {
    background: linear-gradient(120deg, var(--green-900), var(--green-800));
    color: var(--cream);
    padding-block: 3.6rem;
}
.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    text-align: center;
}
.counter-item .c-icon {
    font-size: 2.1rem;
    display: inline-grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(212, 175, 55, .14);
    border: 1.5px solid rgba(212, 175, 55, .45);
    margin-bottom: .9rem;
}
.counter-item .c-num {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--gold-300);
    line-height: 1.2;
}
.counter-item .c-lbl { font-weight: 600; color: rgba(250, 247, 240, .85); }

/* ---------- Value / process cards ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
.value-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2.1rem 1.7rem;
    border-top: 3px solid var(--gold-400);
    transition: var(--transition);
}
.value-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.value-card .v-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
    color: var(--gold-300);
    margin-bottom: 1.2rem;
}
.value-card h3 { color: var(--green-900); font-size: 1.2rem; font-weight: 800; margin-bottom: .7rem; }
.value-card p { color: var(--muted); font-size: .98rem; }

/* Process steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    counter-reset: step;
}
.step-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2.4rem 1.5rem 1.8rem;
    text-align: center;
    transition: var(--transition);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-card::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -20px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--green-950);
    box-shadow: 0 6px 16px rgba(201, 162, 39, .4);
}
html[dir="rtl"] .step-card::before { transform: translateX(50%); }
.step-card .st-icon { font-size: 2rem; margin-bottom: .7rem; }
.step-card h4 { color: var(--green-900); font-weight: 800; margin-bottom: .5rem; }
.step-card p { color: var(--muted); font-size: .93rem; }

/* ---------- Split feature rows ---------- */
.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.6rem;
    align-items: center;
}
.split-row + .split-row { margin-top: 4.5rem; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split-media .badge-float {
    position: absolute;
    bottom: -18px;
    inset-inline-end: -14px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: .9rem 1.4rem;
    font-weight: 800;
    color: var(--green-900);
    display: flex;
    align-items: center;
    gap: .6rem;
}
.split-copy h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 800;
    color: var(--green-900);
    line-height: 1.45;
    margin-bottom: 1.2rem;
}
.split-copy p { color: var(--muted); margin-bottom: 1rem; }
.check-list { margin-top: 1.2rem; display: grid; gap: .75rem; }
.check-list li {
    display: flex;
    gap: .7rem;
    align-items: baseline;
    font-weight: 600;
    color: var(--green-800);
}
.check-list li::before {
    content: "✔";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    font-size: .72rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(201, 162, 39, .18);
    color: var(--gold-500);
    transform: translateY(3px);
}

/* ---------- Fido chips ---------- */
.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: center;
    margin-top: 2rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(212, 175, 55, .4);
    color: var(--cream);
    border-radius: 50px;
    padding: .55rem 1.3rem;
    font-weight: 700;
    font-size: .96rem;
    transition: var(--transition);
}
.chip:hover { background: rgba(212, 175, 55, .2); transform: translateY(-3px); }

/* Duo cards (Midmar <-> Fido) */
.duo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}
.duo-card {
    border-radius: var(--radius);
    padding: 2.4rem 2rem;
    color: var(--cream);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.duo-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.duo-card.midmar { background: linear-gradient(135deg, var(--green-900), var(--green-800)); }
.duo-card.fido { background: linear-gradient(135deg, #4d3b12, #8a6d1f); }
.duo-card .d-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.duo-card h3 { font-size: 1.35rem; font-weight: 800; color: var(--gold-300); margin-bottom: .8rem; }
.duo-card p { color: rgba(250, 247, 240, .87); }
.duo-card::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 2px dashed rgba(212, 175, 55, .3);
    top: -70px;
    inset-inline-end: -70px;
    animation: spinSlow 22s linear infinite;
}

/* ---------- Contact form ---------- */
.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2.4rem 2.2rem;
}
.contact-form h3 { color: var(--green-900); font-weight: 800; font-size: 1.3rem; margin-bottom: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; color: var(--green-800); font-size: .95rem; }
.form-field input, .form-field textarea, .form-field select {
    font-family: inherit;
    font-size: 1rem;
    border: 1.5px solid rgba(27, 67, 50, .18);
    border-radius: 10px;
    padding: .8rem 1rem;
    background: var(--cream);
    color: var(--ink);
    transition: var(--transition);
    resize: vertical;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, .14);
}
.form-submit { margin-top: 1.4rem; width: 100%; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--green-950), var(--green-800));
    border-radius: var(--radius);
    color: var(--cream);
    padding: 3.2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    inset-inline-end: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: url('../images/icons/icon-wheat.jpg') center/cover no-repeat;
    border-radius: 50%;
    opacity: .12;
    animation: floatY 5s ease-in-out infinite;
    pointer-events: none;
}
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
.cta-band p { color: rgba(250, 247, 240, .8); }

/* ---------- V2 responsive ---------- */
@media (max-width: 1024px) {
    .counters-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .values-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { row-gap: 2.6rem; }
    .split-row, .duo-grid { grid-template-columns: 1fr; }
    .split-row .split-media { order: -1; }
}
@media (max-width: 620px) {
    .values-grid, .steps-grid { grid-template-columns: 1fr; }
    .steps-grid { row-gap: 2.6rem; }
    .form-grid { grid-template-columns: 1fr; }
    .hs-caption { padding-block: 5.5rem 6.5rem; }
    .hero-slider { min-height: 80vh; }
    .hs-arrows { display: none; }
    .counters-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-band { padding: 2.4rem 1.6rem; }
    .page-hero .container { padding-block: 5rem 3.5rem; }
    .cta-band::before { width: 110px; height: 110px; opacity: .1; }
}

/* ============================================================
   V3 — Real photo icons + premium motion system
   ============================================================ */

.ico {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    box-shadow: 0 6px 18px rgba(13, 36, 24, .18);
    border: 2px solid rgba(212, 175, 55, .55);
    background: #fff;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s ease;
}
.ico-xs {
    width: 28px;
    height: 28px;
    border-width: 1.5px;
    box-shadow: 0 3px 10px rgba(13, 36, 24, .16);
    display: inline-block;
    vertical-align: middle;
    margin-inline-end: .35rem;
}
.ico-sm {
    width: 40px;
    height: 40px;
    border-width: 1.5px;
}
.ico-lg {
    width: 72px;
    height: 72px;
    border-width: 2.5px;
}
.ico-inline {
    width: 22px;
    height: 22px;
    border-width: 1px;
    display: inline-block;
    vertical-align: -5px;
    margin-inline: .2rem;
    box-shadow: 0 2px 8px rgba(13, 36, 24, .2);
}

.feature-icon,
.counter-item .c-icon,
.value-card .v-icon,
.step-card .st-icon,
.contact-icon,
.duo-card .d-icon {
    background: transparent !important;
    border: none !important;
    padding: 0;
    overflow: visible;
    width: auto !important;
    height: auto !important;
    font-size: 0 !important;
}
.feature-icon .ico,
.counter-item .c-icon .ico,
.value-card .v-icon .ico,
.step-card .st-icon .ico,
.contact-icon .ico,
.duo-card .d-icon .ico {
    width: 72px;
    height: 72px;
}
.contact-icon .ico { width: 58px; height: 58px; }
.feature-card:hover .ico,
.counter-item:hover .ico,
.value-card:hover .ico,
.step-card:hover .ico,
.contact-card:hover .ico {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 12px 28px rgba(13, 36, 24, .28);
}

.marquee-item .mi-icon {
    font-size: 0;
    display: inline-flex;
    align-items: center;
}
.marquee-item .mi-icon .ico { width: 38px; height: 38px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.hero-badge .ico { width: 30px; height: 30px; flex-shrink: 0; }

.badge-float .ico {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.footer-contact li {
    align-items: center;
}
.footer-contact .ico {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.chip .ico { width: 28px; height: 28px; }

.announce-bar .ico {
    width: 26px;
    height: 26px;
    vertical-align: -7px;
    margin-inline-end: .4rem;
}

/* Motion keyframes */
@keyframes riseIn {
    from { opacity: 0; transform: translateY(48px) scale(.96); }
    to   { opacity: 1; transform: none; }
}
@keyframes fadeScaleIn {
    from { opacity: 0; transform: scale(.88); }
    to   { opacity: 1; transform: none; }
}
@keyframes slideInStart {
    from { opacity: 0; transform: translateX(48px); }
    to   { opacity: 1; transform: none; }
}
@keyframes slideInEnd {
    from { opacity: 0; transform: translateX(-48px); }
    to   { opacity: 1; transform: none; }
}
@keyframes tiltIn {
    from { opacity: 0; transform: perspective(800px) rotateX(12deg) translateY(30px); }
    to   { opacity: 1; transform: none; }
}
@keyframes softGlow {
    0%, 100% { box-shadow: 0 6px 18px rgba(13, 36, 24, .18), 0 0 0 0 rgba(212, 175, 55, .35); }
    50%      { box-shadow: 0 10px 28px rgba(13, 36, 24, .26), 0 0 0 10px rgba(212, 175, 55, 0); }
}
@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-10px) rotate(2deg); }
}
@keyframes pageHeroZoom {
    from { transform: scale(1.12); }
    to   { transform: scale(1); }
}

.anim-bob { animation: bob 3.8s ease-in-out infinite; }
.anim-glow { animation: softGlow 3.2s ease-in-out infinite; }
.anim-spin-slow { animation: spinSlow 18s linear infinite; }

/* Enhanced reveal variants */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.22, .61, .36, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { transform: translateX(56px); }
.reveal-right { transform: translateX(-56px); }
.reveal-scale { transform: scale(.9); }
.reveal-tilt { transform: perspective(900px) rotateX(10deg) translateY(28px); }
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible,
.reveal-tilt.visible { transform: none; }

.page-hero .ph-bg { animation: pageHeroZoom 8s ease-out forwards; }

.product-card,
.feature-card,
.value-card,
.step-card,
.contact-card,
.duo-card {
    transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s ease, border-color .45s ease;
}
.product-card:hover .product-media img {
    transform: scale(1.1);
}

.section-head.center h2,
.section-head h2 {
    position: relative;
}
.section-head.center h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin: .9rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    animation: shimmer 3.5s linear infinite;
    background-size: 200% auto;
}

.ico.icon-ring {
    position: relative;
}
.icon-ring-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 88px;
    height: 88px;
}
.icon-ring-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(212, 175, 55, .65);
    animation: spinSlow 14s linear infinite;
}
.icon-ring-wrap .ico {
    width: 68px;
    height: 68px;
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
