:root {
    color-scheme: light;
    --canvas: #f8f6ee;
    --cream: #fffdf7;
    --ink: #18352b;
    --muted: #4f5c51;
    --olive: #567047;
    --line: #e4e2d6;
    --warm: #ed9a79;
    --accent: #e88d6b;
    --heading-font: "Alexandria", Tahoma, sans-serif;
    --body-font: "Tajawal", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 500 1.0625rem/1.6 var(--body-font); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; flex: 0 0 auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); line-height: 1.48; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #95603b; outline-offset: 4px; }
::selection { background: #efc8af; color: #173127; }
section[id] { scroll-margin-top: 1.5rem; }

.container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; inset: 18px 18px auto auto; padding: 6px 16px; background: var(--cream); border-radius: 6px; transform: translateY(-165%); }
.skip-link:focus { transform: translateY(0); }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 9px 19px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #241f18; }
.button-primary:hover { background: #f3a381; box-shadow: 0 6px 16px #9e62422a; }
.button-secondary { border-color: #d9ddce; background: transparent; color: var(--ink); }
.button-secondary:hover { background: #eceee2; border-color: #bfc7b3; }
.brand { display: inline-flex; align-items: center; gap: 11px; vertical-align: middle; }
.brand-mark { display: grid; width: 45px; height: 45px; place-items: center; background: #244337; color: #fffaf0; border-radius: 14px; }
.brand-word { display: grid; align-content: center; gap: 4px; font: 730 1.55rem/1.1 var(--heading-font); }
.brand-word small { font: 700 .69rem/1 var(--body-font); color: #586553; white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 87px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.site-brand { justify-self: start; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 3.5vw, 54px); color: #4b584d; }
.site-nav a { position: relative; padding-block: 10px; white-space: nowrap; transition: color 180ms ease; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] { font-weight: 700; }
.site-nav a[aria-current]::after { content: ""; position: absolute; inset-inline-start: 50%; bottom: 2px; width: 16px; height: 2px; background: var(--accent); transform: translateX(50%); }
.header-portal { justify-self: end; border-color: #adb7a5; font-size: 1rem; white-space: nowrap; }
.header-portal:hover { background: #e9eee1; }
.menu-toggle { display: none; }

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(48px, 7.4vw, 110px);
    padding-block: clamp(54px, 7vw, 91px) clamp(66px, 8vw, 109px);
}
.hero-copy { padding-block: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #566a44; font: 700 .97rem/1.4 var(--body-font); }
.eyebrow > span { display: block; width: 21px; height: 2px; border-radius: 3px; background: #c76e4d; }
.hero h1 { font-size: clamp(3rem, 5.6vw, 5.4rem); line-height: 1.28; letter-spacing: -.06em; font-weight: 800; margin-block: 22px 23px; }
.hero h1 em { position: relative; font-style: normal; color: var(--olive); }
.hero h1 em span { color: #c97050; }
.hero h1 em::after {
    position: absolute;
    content: "";
    inset: auto 0 -13px 14%;
    border-top: 3px solid #da8b6c;
    border-radius: 50%;
    height: 13px;
    transform: rotate(-3deg);
}
.hero-copy > p { max-width: 430px; margin-block-start: 29px; color: var(--muted); font-size: clamp(1.14rem, 1.7vw, 1.35rem); line-height: 1.62; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-block-start: 31px; }
.hero-actions .button { min-height: 52px; padding-inline: 21px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-block-start: 27px; color: #54654e; font-size: .99rem; }
.hero-note > span { color: #58724e; }
.hero-figure { position: relative; display: grid; padding: 0 0 15px 13px; }
.hero-figure::before {
    position: absolute;
    content: "";
    z-index: -1;
    inset: 17px 14px 0 0;
    border: 1px solid #b9bca0;
    border-radius: 145px 24px 24px 24px;
}
.hero-figure::after {
    position: absolute;
    content: "";
    z-index: -2;
    width: 118px;
    height: 115px;
    inset: auto auto -23px -21px;
    background-image: radial-gradient(#a4a786 1.3px, transparent 1.3px);
    background-size: 9px 9px;
    opacity: .53;
}
.hero-photo { position: relative; overflow: hidden; height: clamp(390px, 36.6vw, 531px); background: #dbbd95; border-radius: 145px 22px 22px 22px; box-shadow: 0 17px 40px #573b2321; }
.hero-photo img { height: 100%; object-fit: cover; object-position: 50% 58%; }
.figure-stamp {
    position: absolute;
    bottom: 37px;
    inset-inline-start: -25px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 191px;
    padding: 11px 13px 11px 20px;
    background: #fffdf5;
    border: 1px solid #f7eada;
    border-radius: 13px;
    box-shadow: 0 6px 24px #37271530;
    font: 690 .91rem/1.45 var(--heading-font);
}
.stamp-icon { display: grid; width: 40px; height: 40px; place-items: center; color: #526b49; background: #e8ebda; border-radius: 11px; }
.figure-stamp small { display: block; margin-block-start: 3px; color: var(--muted); font: 500 .82rem/1.2 var(--body-font); }

.feature-band { background: #1d3b30; color: #fff9ed; }
.feature-inner { min-height: 92px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.feature-inner div { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 5px 14px; font-size: 1.12rem; }
.feature-inner div + div { border-inline-start: 1px solid #ffffff31; }
.feature-inner svg { color: #d9deac; }

.section-space { padding-block: clamp(65px, 8vw, 112px); }
.section-heading { margin-block-end: 33px; }
.section-heading h2, .video-copy h2, .member-banner h2 { margin-block: 9px 12px; font-size: clamp(1.78rem, 3.4vw, 3.05rem); font-weight: 750; letter-spacing: -.047em; }
.section-heading p, .member-banner p { color: var(--muted); font-size: 1.17rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 21px; }
.service-card { min-height: 205px; padding: 27px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
.service-icon { display: grid; width: 52px; height: 52px; place-items: center; margin-block-end: 16px; color: #486245; background: #eaf0e1; border-radius: 13px; }
.service-card:nth-child(2) .service-icon { background: #f8e9e0; color: #84533e; }
.service-card:nth-child(3) .service-icon { background: #f1edd9; color: #685628; }
.service-card h3 { margin-block-end: 7px; font-size: 1.14rem; font-weight: 710; }
.service-card p { color: var(--muted); }

.video-section { padding-block: clamp(55px, 7vw, 90px); background: #203d33; color: #fffaf1; }
.video-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(34px, 7vw, 94px); align-items: center; }
.video-copy .eyebrow { color: #e0e4ba; }
.video-copy .eyebrow > span { background: #e79d80; }
.video-copy h2 { margin-block: 13px 16px; }
.video-copy p { color: #d8e2d5; font-size: 1.17rem; max-width: 360px; }
.video-action { margin-block-start: 24px; color: #fffaf1; border-color: #729084; }
.video-action:hover { background: #315647; }
.video-cover { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 19px; background: #2d4c38; box-shadow: 0 16px 36px #0e211b68; aspect-ratio: 16 / 9; isolation: isolate; }
.video-cover img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.video-cover::before { position: absolute; content: ""; z-index: 1; inset: 0; background: linear-gradient(0deg, #14261bb3, transparent 58%); }
.video-cover:hover img { transform: scale(1.035); }
.video-play { z-index: 2; display: grid; width: 74px; height: 74px; place-items: center; color: #193528; border: 5px solid #ffffff72; background: #fff9ef; background-clip: padding-box; border-radius: 50%; }
.video-play svg { transform: translateX(-2px); }
.video-label { position: absolute; z-index: 2; inset: auto 19px 14px auto; font-weight: 700; }
.video-library { display: grid; gap: 12px; }
.video-item { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 9px 8px 15px; border: 1px solid #537064; border-radius: 12px; background: #29483b; }
.video-item:hover { background: #315647; }
.video-item img { border-radius: 6px; }
.video-item strong, .video-item small { display: block; line-height: 1.4; }
.video-item small { color: #d8e2d5; font-size: .9rem; }
.video-item-icon { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid #819a8f; border-radius: 50%; }
.video-dialog { width: min(890px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto; color: #fffaf1; border: 1px solid #5d776e; border-radius: 15px; background: #172e25; padding: 0; box-shadow: 0 12px 50px #0d1f18a0; }
.video-dialog::backdrop { background: #0e221cbd; }
.video-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 17px; }
.video-top h2 { font-size: 1.05rem; }
.video-close { display: grid; width: 41px; height: 41px; place-items: center; border: 1px solid #749089; border-radius: 9px; background: transparent; }
.video-dialog video { display: block; width: 100%; max-height: 75vh; aspect-ratio: 16 / 9; background: #0f1b16; }

.member-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 184px; padding: 36px; border: 1px solid #dce3d1; border-radius: 18px; background: #eaf0e2; }
.member-mark { display: grid; place-items: center; width: 72px; height: 72px; background: #d9e5d3; color: #3d5e49; border-radius: 16px; }
.member-banner h2 { font-size: clamp(1.37rem, 2.45vw, 2.1rem); margin-block: 4px 7px; }
.member-banner p { font-size: 1.05rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 99px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .95rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.footer-inner a:hover { color: #102e22; text-decoration: underline; }

.form-field { display: grid; gap: 6px; }
.form-field label { font-weight: 700; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    border: 1px solid #d5d9ca;
    border-radius: 9px;
    background: #fffefa;
}
.form-field small { color: var(--muted); }
.field-stack { display: grid; gap: 16px; }
.notice { padding: 10px 14px; border: 1px solid #c9d9c4; border-radius: 9px; background: #eef5e9; color: #284c37; font-weight: 700; }
.notice-error { border-color: #f1c7b9; background: #fff1e9; color: #783b2b; }
.login-body { min-height: 100svh; display: grid; place-items: center; padding: 35px 22px; }
.login-page {
    display: grid;
    grid-template-columns: 1fr .88fr;
    width: min(930px, 100%);
    overflow: hidden;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 22px 55px #2b382c15;
}
.login-page::before {
    grid-column: 2;
    grid-row: 1;
    content: "";
    background: #bcc3ac url("hero-meal.jpg") center 54% / cover no-repeat;
}
.login-card { grid-column: 1; grid-row: 1; display: grid; gap: 21px; align-content: center; padding: clamp(25px, 5vw, 56px); }
.login-heading h1 { font-size: clamp(1.85rem, 3.5vw, 2.4rem); margin-block-end: 6px; }
.login-heading p, .login-support { color: var(--muted); }
.login-card form .button { margin-block-start: 5px; }
.login-support { font-size: .95rem; }
.login-back { justify-self: start; color: #3e5b44; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.error-page { display: grid; min-height: 100svh; place-items: center; padding: 24px; }
.error-card { display: grid; justify-items: start; width: min(490px, 100%); gap: 18px; background: var(--cream); padding: clamp(26px, 6vw, 40px); border: 1px solid var(--line); border-radius: 21px; }
.error-card h1 { font-size: 1.68rem; }
.error-card p { color: var(--muted); }

@media (max-width: 980px) {
    .container { width: calc(100% - 64px); }
    .hero { gap: 36px; }
    .hero h1 { font-size: clamp(2.65rem, 6vw, 4.1rem); }
    .hero-photo { height: clamp(340px, 49vw, 480px); }
    .figure-stamp { inset-inline-start: -15px; }
    .feature-inner div { font-size: 1.02rem; }
    .service-card { padding: 21px; }
}

@media (max-width: 730px) {
    .container { width: calc(100% - 38px); }
    .header-inner { position: relative; min-height: 68px; grid-template-columns: 1fr auto auto; gap: 10px; }
    .header-inner .brand { gap: 7px; }
    .header-inner .brand-mark { width: 37px; height: 37px; border-radius: 11px; }
    .header-inner .brand-mark svg { width: 24px; }
    .header-inner .brand-word { font-size: 1.23rem; }
    .header-inner .brand-word small { font-size: .59rem; }
    .header-portal { grid-column: 2; grid-row: 1; min-height: 39px; padding-inline: 8px; gap: 5px; font-size: .83rem; }
    .header-portal svg { width: 15px; }
    .menu-toggle { grid-column: 3; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; background: transparent; border: 1px solid #d5dbc9; border-radius: 9px; }
    .site-nav { display: none; position: absolute; z-index: 3; inset: 61px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px #18352b20; }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding-inline: 13px; }
    .site-nav a[aria-current]::after { display: none; }
    .site-nav a:hover { background: #edf0e5; border-radius: 7px; }
    .hero { grid-template-columns: 1fr; padding-block: 41px 58px; gap: 32px; }
    .hero-copy { padding-block: 0; }
    .hero h1 { font-size: clamp(2.35rem, 12.3vw, 4.35rem); margin-block-start: 15px; }
    .hero-copy > p { margin-block-start: 25px; }
    .hero-actions { margin-block-start: 21px; gap: 8px; }
    .hero-actions .button { min-height: 46px; padding-inline: 12px; font-size: .93rem; }
    .hero-note { margin-block-start: 18px; }
    .hero-figure { margin-inline: 8px 6px; }
    .hero-photo { height: clamp(300px, 84vw, 475px); border-start-end-radius: 100px; }
    .hero-figure::before { border-start-end-radius: 100px; }
    .figure-stamp { bottom: 29px; }
    .feature-inner { grid-template-columns: 1fr; padding-block: 10px; }
    .feature-inner div { padding: 10px 0; justify-content: start; }
    .feature-inner div + div { border-inline-start: 0; border-block-start: 1px solid #ffffff31; }
    .service-grid, .video-grid { grid-template-columns: 1fr; }
    .service-grid { gap: 12px; }
    .service-card { min-height: auto; }
    .video-grid { gap: 22px; }
    .video-copy h2 br { display: none; }
    .video-play { width: 62px; height: 62px; }
    .video-play svg { width: 28px; }
    .member-banner { grid-template-columns: 1fr; padding: 23px; gap: 12px; }
    .member-mark { width: 53px; height: 53px; }
    .member-mark svg { width: 26px; }
    .member-banner .button { justify-self: start; }
    .footer-inner { flex-wrap: wrap; padding-block: 20px; }
    .footer-inner nav { justify-content: start; }
    .login-page { width: min(485px, 100%); display: block; }
    .login-page::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
