/* CYH main landing page — shared by / (ar, RTL) and /en/ (en, LTR).
   Logical properties only (inline/block), so one stylesheet serves both directions. Workbook §11, §18. */

/* Self-hosted fonts (Workbook §12): Cairo for Arabic, Montserrat for Latin. */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/cairo-arabic-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/montserrat-latin-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/montserrat-latin-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #121E2A;
  --navy-2: #1B2B3A;
  --teal: #16323D;
  --yellow: #FBEE21;
  --white: #FFFFFF;
  --ink: #121E2A;
  --muted: #5B6670;
  --line: #E3E6EA;
  --bg-soft: #F4F6F8;
  --danger: #C62828;
  --ok: #1B7F3B;
  --wa: #25D366;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 30, 42, .12);
  --max: 1180px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
:lang(ar) { --font: "Cairo", "Montserrat", system-ui, Tahoma, Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--white); text-rendering: optimizeLegibility;
}
:lang(ar) body { line-height: 1.8; }
img, svg { max-width: 100%; height: auto; display: block; }   /* keep aspect ratio — never stretch */
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { line-height: 1.35; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
section { scroll-margin-top: 72px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: #fff35a; }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: rgba(18, 30, 42, .96); color: var(--white);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: flex-end; gap: 8px; text-decoration: none; color: var(--white); }
.brand img { width: 64px; height: auto; }
.brand-text { display: none; font-family: "Montserrat", sans-serif; line-height: 1.1; padding-block-end: 2px; }
.brand-text b { display: block; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.brand-text i { display: block; font-size: 9px; font-weight: 600; letter-spacing: .32em; }
.main-nav { display: none; margin-inline-start: auto; gap: 24px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .9; }
.main-nav a:hover { color: var(--yellow); opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang-switch { font-weight: 700; text-decoration: none; padding: 6px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; font-size: 14px; }
.lang-switch:hover { border-color: var(--yellow); color: var(--yellow); }
.header-cta { display: none; min-height: 40px; padding: .4em 1em; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background-color: var(--navy);
  /* Photos: Gemini images from docs/brand/image-prompts-cyh.md (Q-042). Text side is darkest. */
  --hero-img: url("../img/photos/hero-mobile.webp");
  background-image:
    linear-gradient(180deg, rgba(18,30,42,.88) 0%, rgba(18,30,42,.62) 45%, rgba(18,30,42,.9) 100%),
    var(--hero-img);
  background-size: cover; background-position: center bottom;
}
@media (min-width: 768px) {
  .hero {
    --hero-img: url("../img/photos/hero-desktop.webp");   /* villa on the left, Arabic text on the right */
    background-position: center;
    background-image: linear-gradient(270deg, rgba(18,30,42,.94) 0%, rgba(18,30,42,.78) 45%, rgba(18,30,42,.3) 100%), var(--hero-img);
  }
  :lang(en) .hero {
    --hero-img: url("../img/photos/hero-desktop-ltr.webp"); /* mirrored: villa on the right, English text on the left */
    background-image: linear-gradient(90deg, rgba(18,30,42,.94) 0%, rgba(18,30,42,.78) 45%, rgba(18,30,42,.3) 100%), var(--hero-img);
  }
}
.hero .container { display: grid; gap: 32px; padding-block: 40px 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); margin-block-end: 12px; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; margin-block-end: .2em; }
.hero .tagline { font-size: clamp(1.15rem, 3.5vw, 1.5rem); color: var(--yellow); font-weight: 600; margin-block-end: 1em; }
.hero .lead { font-size: 1.05rem; max-width: 34em; opacity: .92; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; list-style: none; }
.hero-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: 14px; font-weight: 600; }
.hero-chips svg { width: 16px; height: 16px; color: var(--yellow); }
.hero-bar { width: 120px; height: 8px; background: var(--white); margin-block: 22px 0; }

/* ---------- Form card ---------- */
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.form-card h2 { font-size: 1.35rem; margin-block-end: .2em; }
.form-card .form-sub { color: var(--muted); margin-block-end: 16px; }
.field { margin-block-end: 14px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 14px; margin-block-end: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid #CBD2D9; border-radius: 10px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid rgba(251,238,33,.9); outline-offset: 0; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field .error { display: none; color: var(--danger); font-size: 13px; margin-block-start: 4px; }
.field.has-error .error { display: block; }
.phone-row { display: grid; grid-template-columns: 112px 1fr; gap: 8px; direction: ltr; }
.phone-row select { padding-inline: 8px; }
.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; min-height: 44px; }
.radio-row input { width: 18px; height: 18px; min-height: 0; accent-color: var(--navy); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.form-note a { color: var(--ink); }
.form-status { display: none; margin-block-start: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.form-status.is-error { display: block; background: #FDECEA; color: var(--danger); }
.form-status a { font-weight: 700; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: var(--white); }
.section-head { max-width: 720px; margin-block-end: 32px; }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 6px; background: var(--yellow); margin-block-start: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(255,255,255,.8); }

/* Partners strip */
.partners { padding-block: 28px; border-block-end: 1px solid var(--line); }
.partners h2 { font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; margin-block-end: 18px; letter-spacing: .02em; }
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 40px; list-style: none; margin: 0; padding: 0; }
.partner-logos img { width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partner-logos li:hover img { filter: none; opacity: 1; }

/* About */
.about-grid { display: grid; gap: 32px; }
.about-text p { font-size: 1.05rem; }
.why-list { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; align-content: start; }
.why-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.why-list .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; }
.why-list .ico svg { width: 22px; height: 22px; }
.why-list h3 { font-size: 1.05rem; margin-block-end: .25em; }
.why-list p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Projects */
.projects-grid { display: grid; gap: 20px; }
.project-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(18,30,42,.08); border: 1px solid var(--line); }
.project-top { background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%); color: var(--white); padding: 18px 18px 16px; }
.project-dev { display: inline-flex; align-items: center; background: var(--white); border-radius: 8px; padding: 6px 10px; margin-block-end: 14px; }
.project-dev img { height: 28px; width: auto; }
.project-top h3 { font-size: 1.25rem; margin: 0 0 .2em; }
.project-loc { display: flex; align-items: center; gap: 6px; font-size: 14px; opacity: .85; margin: 0; }
.project-loc svg { width: 15px; height: 15px; color: var(--yellow); }
.project-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project-types { font-size: 14px; color: var(--muted); margin: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.stats div { background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 0; font-weight: 800; font-size: 1.15rem; line-height: 1.3; }
.stats dd small { font-size: .7em; font-weight: 700; }
.project-soon { background: var(--yellow); color: var(--navy); font-weight: 800; border-radius: 10px; padding: 10px 12px; margin: 0; }
.project-actions { display: flex; gap: 10px; margin-block-start: auto; }
.project-actions .btn { flex: 1; min-height: 44px; padding-inline: .8em; font-size: 15px; }
.project-actions .btn-wa { flex: 0 0 48px; padding: 0; }
.projects-note { font-size: 13px; color: var(--muted); margin-block-start: 20px; }

/* Photo sections (partnership band, contact) */
.section-band { background: linear-gradient(rgba(18,30,42,.86), rgba(18,30,42,.93)), url("../img/photos/band-aerial.webp") center / cover; }
.section-contact { background: linear-gradient(rgba(18,30,42,.9), rgba(18,30,42,.94)), url("../img/photos/contact-bg.webp") center / cover; color: var(--white); }
.section-contact .section-head p, .section-contact .contact-list small { color: rgba(255,255,255,.78); }
.section-contact .contact-list .ico { background: rgba(255,255,255,.1); }
.section-contact .contact-list a, .section-contact .contact-list a:visited { color: var(--white); }
.section-contact .social a { border-color: rgba(255,255,255,.3); color: var(--white); }

/* About photo with the circular interior inset (FB cover motif) */
.about-media { position: relative; margin: 28px 0 0; padding-block-end: 40px; }
.about-media > img:first-child { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-circle { position: absolute; inset-inline-end: -8px; inset-block-end: 0; width: 34%; max-width: 180px; height: auto;
  aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--white); box-shadow: var(--shadow); }

/* Partnership (Nawy) */
.partnership { display: grid; gap: 28px; align-items: center; }
.pair { display: flex; align-items: center; justify-content: center; gap: 18px; }
.pair-chip { background: var(--white); border-radius: 16px; padding: 18px 22px; display: grid; place-items: center; min-height: 92px; }
.pair-chip img { height: 44px; width: auto; }
.pair-chip.dark { background: var(--navy-2); border: 1px solid rgba(255,255,255,.15); }
.pair-plus { font-size: 2rem; font-weight: 800; color: var(--yellow); }
.fit-line { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; margin: 0 0 .3em; }
.fit-line em { font-style: normal; color: var(--yellow); }

/* Contact */
.contact-grid { display: grid; gap: 28px; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.contact-list .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; }
.social svg { width: 20px; height: 20px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding-block: 36px 96px; font-size: 14px; }
.site-footer .container { display: grid; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }

/* Floating WhatsApp + mobile sticky bar */
.wa-float {
  position: fixed; z-index: 60; inset-inline-end: 16px; inset-block-end: 84px;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; }
.sticky-bar {
  position: fixed; z-index: 55; inset-inline: 0; inset-block-end: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--navy); box-shadow: 0 -6px 18px rgba(0,0,0,.18);
}
.sticky-bar .btn { min-height: 46px; font-size: 15px; }
.sticky-bar .btn-outline { color: var(--white); }

/* Simple pages (thank-you / privacy) */
.page-simple { min-height: 70vh; padding-block: 56px; }
.page-simple .container { max-width: 780px; }
.page-simple h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.thanks-box { text-align: center; }
.thanks-box .check { width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; margin: 0 auto 18px; }
.thanks-box .check svg { width: 36px; height: 36px; }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block-start: 24px; }
.prose h2 { font-size: 1.25rem; margin-block-start: 1.6em; }
.prose ul { padding-inline-start: 1.2em; }

/* ---------- Breakpoints ---------- */
@media (max-width: 599px) {
  .partner-logos { gap: 18px 28px; }
  .partner-logos img { max-height: 40px; }
}
@media (min-width: 600px) {
  .brand-text { display: block; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .why-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .main-nav { display: flex; }
  .header-actions { margin-inline-start: 0; }
  .header-cta { display: inline-flex; }
  .hero .container { grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: 72px 88px; gap: 56px; }
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .partnership { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .sticky-bar { display: none; }
  .wa-float { inset-block-end: 24px; }
  .site-footer { padding-block-end: 36px; }
  .section { padding-block: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .partner-logos img { transition: none; }
}

/* Featured campaign card (Tatweer Misr, TM-017): full-width, image + offer, links to the campaign page */
.feature-card { grid-column: 1 / -1; background: var(--navy); color: var(--white); border: 0; }
.feature-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feature-card:hover .feature-media img { transform: scale(1.03); }
.feature-badge { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.feature-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.feature-logo { width: 150px; height: auto; }
.feature-body h3 { font-size: 1.5rem; margin: 0; }
.feature-body .project-loc { color: rgba(255,255,255,.8); }
.feature-body .stats div { background: rgba(255,255,255,.08); }
.feature-body .stats dt { color: rgba(255,255,255,.7); }
.feature-body .stats dd { color: var(--white); }
.feature-body .project-actions .btn-wa { flex: 0 0 52px; padding: 0; }
@media (min-width: 960px) {
  .feature-card { display: grid; grid-template-columns: 1.1fr 1fr; }
  .feature-media { aspect-ratio: auto; min-height: 100%; }
  .feature-body { padding: 32px; justify-content: center; }
  .feature-body .stats { grid-template-columns: repeat(4, 1fr); }
}
.feature-body .project-actions { margin-block-start: 8px; }
