/* ==========================================================================
   Zimaar — canonical design tokens and base layer
   Single source of truth. Replaces the orphaned style.css and the palette
   drift that had accumulated across the 13 page templates.
   ========================================================================== */

:root {
    /* --- Brand ------------------------------------------------------- */
    --z-green:        #1B5E3A;   /* canonical brand green  */
    --z-green-deep:   #123F27;   /* headers, footers       */
    --z-green-hover:  #26794B;   /* interactive state      */
    --z-gold:         #C6A15B;   /* canonical brand gold   */
    --z-gold-hover:   #AD8845;
    --z-gold-tint:    rgba(198, 161, 91, 0.10);

    /* --- Café secondary ---------------------------------------------- */
    --z-pine:         #22402F;   /* café cups, interiors   */
    --z-cream:        #F4EFE6;   /* light ground           */
    --z-sand:         #D9CBB3;   /* warm mid-neutral       */
    --z-clay:         #A8845C;   /* food/pastry surfaces   */

    /* --- Neutrals ---------------------------------------------------- */
    --z-surface:      #FBF9F5;   /* page background        */
    --z-surface-alt:  #FFFFFF;   /* cards, raised panels   */
    --z-surface-sunk: #F4EFE6;   /* wells, modal bodies    */
    --z-ink:          #1A1A1A;   /* headings               */
    --z-ink-body:     #4A4A4A;   /* body copy              */
    --z-ink-muted:    #8C8C8C;   /* captions, meta         */
    --z-line:         #E3DED4;   /* hairline rules         */
    --z-on-dark:      #F4F4F4;
    --z-on-dark-mute: #C9CFCB;

    /* --- Status ------------------------------------------------------ */
    --z-danger:       #C0392B;
    --z-whatsapp:     #25D366;

    /* --- Type -------------------------------------------------------- */
    --z-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
    --z-sans:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --z-display: 'Cinzel', var(--z-serif);

    /* Fluid type scale — clamp(min, preferred, max) */
    --z-step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.85rem);
    --z-step-0:  clamp(0.95rem, 0.91rem + 0.20vw, 1.05rem);
    --z-step-1:  clamp(1.20rem, 1.10rem + 0.50vw, 1.50rem);
    --z-step-2:  clamp(1.55rem, 1.35rem + 1.00vw, 2.25rem);
    --z-step-3:  clamp(2.00rem, 1.60rem + 2.00vw, 3.25rem);
    --z-step-4:  clamp(2.60rem, 1.80rem + 3.60vw, 4.75rem);

    --z-tracking-wide:  0.10em;
    --z-tracking-eyebrow: 0.24em;

    /* --- Layout ------------------------------------------------------ */
    --z-header-h: 79px;
    --z-radius:   4px;
    --z-radius-lg: 10px;
    --z-ease:     cubic-bezier(0.4, 0, 0.2, 1);
    --z-ease-out: cubic-bezier(0.5, 0, 0, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background-color: var(--z-surface);
    color: var(--z-ink-body);
    font-family: var(--z-sans);
    font-size: var(--z-step-0);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--z-serif);
    color: var(--z-ink);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 { font-size: var(--z-step-4); }
h2 { font-size: var(--z-step-3); }
h3 { font-size: var(--z-step-2); }
h4 { font-size: var(--z-step-1); }

p { text-wrap: pretty; }

img, video { max-width: 100%; height: auto; display: block; }

/* Accessibility: the site previously had no visible focus indicator at all. */
:focus-visible {
    outline: 2px solid var(--z-gold);
    outline-offset: 3px;
    border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.z-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 4000;
    background: var(--z-green);
    color: #fff;
    padding: 0.85rem 1.5rem;
    font-size: var(--z-step--1);
    letter-spacing: var(--z-tracking-wide);
    text-transform: uppercase;
    text-decoration: none;
}
.z-skip-link:focus { left: 1rem; top: 1rem; }

.z-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Editorial helpers
   ========================================================================== */

.z-eyebrow {
    font-size: var(--z-step--1);
    text-transform: uppercase;
    letter-spacing: var(--z-tracking-eyebrow);
    font-weight: 600;
    color: var(--z-gold);
}

.gold-border-left,
.z-rule-gold {
    border-left: 2px solid var(--z-gold);
    border-radius: 0;
    padding-left: 1.5rem;
}

/* ==========================================================================
   Buttons — one system, three variants
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: var(--z-sans);
    font-size: var(--z-step--1);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--z-tracking-wide);
    padding: 0.9rem 2.5rem;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s var(--z-ease),
                color 0.3s var(--z-ease),
                border-color 0.3s var(--z-ease);
}
.btn:active { transform: translateY(1px); }

.btn-solid-green  { background-color: var(--z-green); color: #fff; }
.btn-solid-green:hover  { background-color: var(--z-green-hover); }

.btn-solid-dark   { background-color: var(--z-ink); color: #fff; }
.btn-solid-dark:hover   { background-color: #333; }

.btn-outline-gold { background-color: transparent; color: var(--z-gold); border-color: var(--z-gold); }
.btn-outline-gold:hover { background-color: var(--z-gold); color: #fff; }

.btn-outline-green { background-color: transparent; color: var(--z-green); border-color: var(--z-green); }
.btn-outline-green:hover { background-color: var(--z-green); color: #fff; }

/* Alias kept so existing markup using .btn-primary keeps working. */
.btn-primary { background-color: var(--z-ink); color: #fff; }
.btn-primary:hover { background-color: #333; }

/* ==========================================================================
   Cards
   ========================================================================== */

.z-card {
    background: var(--z-surface-alt);
    border-radius: var(--z-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s var(--z-ease), box-shadow 0.3s var(--z-ease);
}
.z-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
}

.blog-card, .product-card {
    background: var(--z-surface-alt);
    border-radius: var(--z-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s var(--z-ease), box-shadow 0.3s var(--z-ease);
}
.blog-card:hover, .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
}
.content-card { transition: transform 0.4s var(--z-ease), box-shadow 0.4s var(--z-ease); }
.content-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--z-sans);
    font-size: var(--z-step-0);
    font-weight: 300;
    color: var(--z-ink);
    background: var(--z-surface-sunk);
    border: 1px solid var(--z-line);
    border-radius: var(--z-radius);
    transition: border-color 0.3s var(--z-ease), box-shadow 0.3s var(--z-ease);
}
.form-input:focus {
    border-color: var(--z-gold);
    box-shadow: 0 0 0 1px var(--z-gold);
    outline: none;
}

.zimaar-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #D1D5DB;
    border-radius: 0;
    padding: 0.75rem 0;
    font-family: var(--z-sans);
    font-weight: 300;
    color: var(--z-ink);
    transition: border-color 0.3s var(--z-ease);
}
.zimaar-input:focus { outline: none; border-bottom-color: var(--z-gold); box-shadow: none; }

.res-input {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-bottom: 15px;
    font-family: var(--z-sans);
    font-size: 0.95rem;
    color: var(--z-ink);
    background: var(--z-surface-alt);
    border: 1px solid #DDD;
    border-radius: 8px;
}
.res-input:focus { outline: none; border-color: var(--z-gold); box-shadow: 0 0 0 1px var(--z-gold); }

/* ==========================================================================
   Motion — reveal on scroll, skeletons
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s var(--z-ease-out), transform 1s var(--z-ease-out);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

.fade-in-up { animation: zFadeInUp 0.8s var(--z-ease-out) both; }
@keyframes zFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.skeleton-loader {
    background: linear-gradient(110deg, #ECECEC 8%, #F5F5F5 18%, #ECECEC 33%);
    background-size: 200% 100%;
    animation: zShine 1.5s linear infinite;
}
@keyframes zShine { to { background-position-x: -200%; } }

/* Respect the OS-level reduced-motion setting. Nothing on the site did this
   before, so parallax and reveals ran regardless of user preference. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .skeleton-loader { animation: none; }
}

/* ==========================================================================
   Parallax heroes
   background-attachment: fixed is ignored or janky on iOS Safari and most
   mobile browsers. Scope it to devices that can actually hover.
   ========================================================================== */

.hero-parallax {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero-craft, .hero-sustain, .hero-visit { background-attachment: scroll; }
@media (hover: hover) and (pointer: fine) {
    .hero-parallax,
    .hero-craft, .hero-sustain, .hero-visit { background-attachment: fixed; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 61, 43, 0.80));
}

/* ==========================================================================
   Cart, modals, toast
   ========================================================================== */

.floating-cart {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 65px; height: 65px;
    background: var(--z-gold);
    color: #fff;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.30);
    z-index: 1000;
    transition: transform 0.3s var(--z-ease);
}
.floating-cart:hover { transform: scale(1.05); }
.floating-cart .badge {
    position: absolute; top: -2px; right: -2px;
    width: 22px; height: 22px;
    background: var(--z-danger);
    color: #fff;
    font-size: 0.8rem; font-weight: 700;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}

.modal {
    display: none;
    position: fixed; inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}
.modal.show { display: flex; }
.modal-content {
    background: var(--z-surface-alt);
    width: 100%; max-width: 500px;
    height: 90vh; max-height: 800px;
    border-radius: 15px;
    display: flex; flex-direction: column;
    overflow: hidden;
    font-family: var(--z-sans);
}
.m-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--z-line);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--z-surface-alt);
    flex-shrink: 0;
}
.m-title {
    font-family: var(--z-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--z-green);
}
.m-close { font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--z-ink-muted); background: none; border: none; }
.m-body   { flex: 1; overflow-y: auto; padding: 20px; background: var(--z-surface-sunk); }
.m-footer { padding: 20px; background: var(--z-surface-alt); border-top: 1px solid var(--z-line); flex-shrink: 0; }

#cart-view, #checkout-view { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
#checkout-view { display: none; }

.cart-row {
    display: flex; align-items: center;
    background: var(--z-surface-alt);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
.cart-img { width: 50px; height: 50px; border-radius: 5px; object-fit: cover; margin-right: 15px; }

#toast-notification {
    position: fixed;
    bottom: -100px; left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    background: var(--z-green);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.20);
    transition: bottom 0.5s var(--z-ease);
    z-index: 3000;
}
#toast-notification.show { bottom: 30px; }

/* ==========================================================================
   Cafe strip banner
   ========================================================================== */

.cafe-strip-banner {
    display: block;
    width: 100%;
    background-color: var(--z-green);
    color: #fff;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
    letter-spacing: var(--z-tracking-wide);
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s var(--z-ease);
}
.cafe-strip-banner:hover { background-color: var(--z-green-hover); }
.cafe-strip-banner span {
    color: var(--z-gold);
    margin-left: 10px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==========================================================================
   Legal / long-form pages
   ========================================================================== */

.post-body p {
    margin-bottom: 2rem;
    line-height: 1.9;
    font-size: 1.15rem;
    color: #333;
    font-weight: 300;
}
.post-body strong { font-weight: 500; color: var(--z-ink); }
.post-body h3 {
    font-family: var(--z-serif);
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--z-green);
}
.post-body blockquote {
    font-family: var(--z-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--z-gold);
    text-align: center;
    margin: 3rem 0;
    padding: 0 2rem;
    border: none;
}
.post-body iframe { width: 100%; aspect-ratio: 16 / 9; margin: 2rem 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    font-size: var(--z-step--1);
    color: var(--z-ink-muted);
}

/* Print: strip the furniture, keep the content readable. */
@media print {
    header, footer, .floating-cart, .modal, #toast-notification,
    .cafe-strip-banner, .z-skip-link { display: none !important; }
    body { background: #fff; color: #000; }
    .reveal { opacity: 1; transform: none; }
}

/* ===================================================================
   ARABIC / NAME MARK
   Arabic must never inherit Latin tracking — letter-spacing breaks the
   joins between letters and reads as broken to anyone who reads Arabic.
   Every rule below explicitly resets it.
   =================================================================== */

[lang="ar"] {
    font-family: 'Amiri', 'Noto Naskh Arabic', serif;
    letter-spacing: normal !important;   /* never track Arabic */
    text-transform: none !important;     /* uppercase does nothing but risks fallback */
    font-stretch: normal;
    direction: rtl;
    unicode-bidi: isolate;
}

/* Hero mark ------------------------------------------------------ */
.z-arabic-hero {
    font-size: clamp(3.25rem, 11vw, 6rem);
    line-height: 1.5;
    color: var(--z-gold);
    font-weight: 400;
    text-shadow: 0 2px 24px rgba(0,0,0,.45);   /* holds over video */
}

/* Header + footer marks ------------------------------------------ */
.z-arabic-header { line-height: 1.7; }
.z-arabic-footer { line-height: 1.7; }

/* "Our Name" block ----------------------------------------------- */
.z-name-block {
    background: var(--z-surface-sunk);
    padding: clamp(4rem, 10vw, 7rem) 0;
    color: var(--z-ink);
}

.z-arabic-display {
    font-size: clamp(3rem, 9vw, 5rem);
    line-height: 1.5;
    color: var(--z-gold);
}

.z-arabic-inline {
    font-size: 1.15em;   /* Arabic reads small next to Latin at equal size */
    line-height: 1;
}


