/* ===== MOMAZ — Website launch additions (contact, forms, language, menu states) =====
 * Loaded after style.css on the public pages. Uses style.css tokens only.
 */

/* Anything marked hidden stays hidden whatever its own display rule (the sent box, an empty contact
 * card, the sections of a feature that is off in site-features.js). */
[hidden] { display: none !important; }

/* ── Navigation end group: language switch, Contact, hamburger ── */
.nav__end { display: flex; align-items: center; gap: 1.25rem; }
.lang-toggle {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  background: none; border: none; cursor: pointer; padding: 0.35rem 0.2rem;
  color: var(--text-muted); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--border-med);
}
.lang-toggle:hover, .lang-toggle:focus-visible { color: var(--brand-primary); }
.lang-toggle--mobile { font-family: var(--sans); font-size: 1.05rem; color: var(--brand-dark); padding: 0.5rem 1rem; }
.nav__link[aria-current="page"], .mobile-menu__link[aria-current="page"] { color: var(--brand-primary); }
.nav a:focus-visible, .nav button:focus-visible, .mobile-menu a:focus-visible, .mobile-menu button:focus-visible,
.footer a:focus-visible, .btn:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
.nav__hamburger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

@media (max-width: 1100px) and (min-width: 901px) {
  .nav__links { gap: 1.5rem; }
  .nav { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (max-width: 900px) {
  .nav__end .lang-toggle { display: none; }
  .mobile-menu ul { gap: 1.5rem; }
  .mobile-menu__link { font-size: 1.9rem; }
}

/* ── Contact section (home) ── */
.contact-section { padding: 7rem 2rem; position: relative; z-index: 1; border-top: 1px solid var(--border-light); scroll-margin-top: 70px; }
.contact-inner { max-width: 1100px; margin: 0 auto; }
.contact-header { text-align: center; margin-bottom: 3.5rem; }
.contact-title { font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 300; color: var(--headline-color); line-height: 1.15; margin-bottom: 0.75rem; }
.contact-lead { color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.contact-card { border: 1px solid var(--border-light); background: rgba(255, 255, 255, 0.35); padding: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-card__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; color: var(--brand-dark); }
.contact-card__text { font-size: 0.92rem; color: var(--text-muted); flex: 1; }
.contact-card .btn { align-self: flex-start; }
.contact-channels { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-channel { display: flex; flex-direction: column; gap: 0.1rem; }
.contact-channel__label { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-primary); font-weight: 500; }
.contact-channel__value { color: var(--brand-dark); font-size: 1rem; white-space: pre-line; overflow-wrap: anywhere; }
a.contact-channel__value { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-med); }
a.contact-channel__value:hover { color: var(--brand-primary); }

/* ── Catering and franchise pages ── */
.request-page { position: relative; z-index: 1; }
.request-hero { padding: 9rem 2rem 3rem; text-align: center; border-bottom: 1px solid var(--border-light); background: linear-gradient(to bottom, rgba(159, 102, 45, 0.06), transparent); }
.request-hero__title { font-family: var(--serif); font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 300; color: var(--brand-dark); line-height: 1.1; margin-bottom: 1rem; }
.request-hero__lead { max-width: 620px; margin: 0 auto; color: var(--text-muted); }
.request-body { max-width: 1100px; margin: 0 auto; padding: 3.5rem 2rem 6rem; display: grid; grid-template-columns: 300px 1fr; gap: 3.5rem; align-items: start; }
.request-aside { position: sticky; top: 100px; border: 1px solid var(--border-light); padding: 1.75rem; background: rgba(255, 255, 255, 0.35); }
.request-aside__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--brand-dark); margin-bottom: 1rem; }
.request-aside__list { padding-inline-start: 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; color: var(--brand-dark); font-size: 0.92rem; margin-bottom: 1.25rem; }
.request-aside__note { font-size: 0.85rem; color: var(--text-muted); }

.request-form { display: flex; flex-direction: column; gap: 2.25rem; min-width: 0; }
.form-section { border: none; display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.form-section__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--brand-dark); margin-bottom: 0.4rem; padding: 0; }
.field { display: flex; flex-direction: column; gap: 0.45rem; border: none; min-width: 0; }
.field > label, .field > legend { font-size: 0.9rem; font-weight: 500; color: var(--brand-dark); padding: 0; }
.field__req { color: #a14a2a; }
.field__opt { font-weight: 400; color: var(--text-dim); font-size: 0.82rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"],
.field input[type="time"], .field input[type="number"], .field textarea {
  font: inherit; font-size: 1rem; color: var(--brand-dark); background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-med); border-radius: var(--radius); padding: 0.75rem 0.9rem; width: 100%;
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand-primary); outline-offset: 1px; border-color: var(--brand-primary); }
.field--invalid input, .field--invalid textarea { border-color: #a14a2a; }
.field__error { color: #a14a2a; font-size: 0.85rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field--choices { gap: 0.5rem; }
.choices-inline { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.choice { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; color: var(--brand-dark); cursor: pointer; min-height: 32px; }
.choice input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--brand-primary); flex: none; }
.field--consent { border-top: 1px solid var(--border-light); padding-top: 1.5rem; }
.form-privacy { font-size: 0.85rem; color: var(--text-muted); }
.form-status { padding: 0.9rem 1rem; border: 1px solid var(--border-med); background: rgba(255, 255, 255, 0.6); font-size: 0.92rem; color: var(--brand-dark); }
.form-status[data-kind="error"] { border-color: #a14a2a; color: #7d3315; background: rgba(161, 74, 42, 0.06); }
.request-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-sent { border: 1px solid var(--border-med); padding: 2.5rem; background: rgba(255, 255, 255, 0.5); display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.form-sent h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; color: var(--brand-dark); }
.form-sent h2:focus { outline: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .request-body { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.25rem 4rem; }
  .request-aside { position: static; }
  .request-hero { padding: 7.5rem 1.25rem 2.5rem; }
  .contact-section { padding: 5rem 1.25rem; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .form-sent { padding: 1.75rem 1.25rem; }
}

/* ── Our Story page: an accessible reading layout ── */
.story-article { max-width: 680px; margin: 0 auto; padding: 3.5rem 1.5rem 6rem; display: flex; flex-direction: column; gap: 1.4rem; }
.story-article p { font-size: 1.08rem; line-height: 1.9; color: var(--brand-dark); }
.story-article[lang="ar"] p { font-family: Tahoma, 'Segoe UI', system-ui, sans-serif; font-size: 1.12rem; line-height: 2; }
.story-article__date { font-family: var(--serif); font-size: 1.4rem !important; color: var(--brand-primary) !important; }
.story-article__signature { font-style: italic; color: var(--text-muted) !important; margin-top: 1rem; }
.story-text [data-lang-only] { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (max-width: 560px) { .story-article { padding: 2.5rem 1.25rem 4rem; } .story-article p { font-size: 1.02rem; } }

/* Privacy policy (privacy-policy.html): the owner's existing text, in the story page's reading layout. */
.policy-article { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 6rem; color: var(--brand-dark); line-height: 1.8; overflow-wrap: anywhere; }
.policy-article h2 { font-family: var(--serif); font-size: 1.6rem; color: var(--brand-primary); margin: 2.4rem 0 0.8rem; }
.policy-article h3 { font-size: 1.2rem; margin: 1.8rem 0 0.6rem; }
.policy-article h4 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.policy-article p, .policy-article li { font-size: 1.02rem; }
.policy-article p { margin: 0 0 1rem; }
.policy-article ul { margin: 0 0 1.2rem; padding-inline-start: 1.4rem; }
.policy-article li { margin-bottom: 0.5rem; }
.policy-article a { color: var(--brand-primary); }
@media (max-width: 560px) { .policy-article { padding: 2.5rem 1.25rem 4rem; } }

/* ── Menu page states ── */
.menu-item-img--placeholder { object-fit: contain; background: var(--brand-bg-dim); }
.menu-error { text-align: center; padding: 4rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; color: var(--text-muted); }
.menu-item-price--unavailable { color: var(--text-dim); font-style: italic; }

/* ── Right-to-left (Arabic) ── */
[dir="rtl"] body { font-family: 'DM Sans', Tahoma, 'Segoe UI', system-ui, sans-serif; }
[dir="rtl"] .nav__link, [dir="rtl"] .nav__cta, [dir="rtl"] .footer-link, [dir="rtl"] .btn,
[dir="rtl"] .section-eyebrow, [dir="rtl"] .contact-channel__label, [dir="rtl"] .filter-btn,
[dir="rtl"] .menu-page-hero__eyebrow, [dir="rtl"] .menu-page-hero__back { letter-spacing: 0; text-transform: none; }
/* Arabic has no small capitals: the tiny spaced-out label sizes become normal readable sizes. */
[dir="rtl"] .nav__link, [dir="rtl"] .footer-link { font-size: 1rem; }
[dir="rtl"] .nav__cta, [dir="rtl"] .filter-btn, [dir="rtl"] .menu-page-hero__back { font-size: 0.95rem; }
[dir="rtl"] .btn, [dir="rtl"] .btn--sm, [dir="rtl"] .btn--large { font-size: 1rem; }
[dir="rtl"] .section-eyebrow, [dir="rtl"] .menu-page-hero__eyebrow, [dir="rtl"] .contact-channel__label { font-size: 0.88rem; }
[dir="rtl"] .footer-bottom p { font-size: 0.82rem; letter-spacing: 0; }
[dir="rtl"] .btn-icon { transform: scaleX(-1); }
[dir="rtl"] .menu-page-hero__back svg { transform: scaleX(-1); }
[dir="rtl"] .hp-field { left: auto; right: -10000px; }
