/* Trans Eng. Consultant: colours and fonts follow the brand guidelines */
:root {
  --navy: #102447;
  --navy-2: #0b1a35;
  --sand: #d5c6af;
  --sand-deep: #bda88b;
  --tan: #c7965b;
  --ivory: #f4f1e9;
  --sage: #c8dcbc;
  --ink: #1b2740;
  --muted: #55607a;
  --radius: 18px;
  --head: "Baloo Bhaijaan 2", "Tajawal", system-ui, sans-serif;
  --body: "Blinker", "Tajawal", system-ui, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.7; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-family: "Tajawal", var(--body); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3 { font-family: var(--head); color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: 12px; top: 8px; transform: translateY(-300%); background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { transform: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid #e8e3d7; }
.bar { display: flex; align-items: center; gap: 24px; padding: 8px 0; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; gap: 28px; margin-inline: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--navy); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--tan); }
.bar-actions { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; display: inline-flex; align-items: center; color: var(--navy); }
.lang svg { position: absolute; inset-inline-start: 12px; width: 20px; height: 20px; fill: currentColor; pointer-events: none; }
.lang select { font: inherit; font-weight: 600; color: var(--navy); appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23102447' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat; background-size: 20px; background-position: right 10px center; border: 2px solid var(--sand); border-radius: 999px; padding: 7px 38px 7px 40px; cursor: pointer; }
[dir="rtl"] .lang select { background-position: left 10px center; padding: 7px 40px 7px 38px; }
.lang select:hover { background-color: var(--ivory); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; border-radius: 999px; padding: 13px 26px; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #1a366b; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sand { background: var(--sand); color: var(--navy); }
.btn-sand:hover { background: #e4d8c4; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-small { padding: 8px 18px; font-size: 1rem; }
.btn-block { width: 100%; }

/* hero */
.hero { background: linear-gradient(180deg, var(--ivory), #fff); padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--tan); font-weight: 600; letter-spacing: .08em; margin-bottom: .6em; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
.lead.dark { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; background: var(--sand); border-radius: calc(var(--radius) + 6px); z-index: 0; }
[dir="rtl"] .hero-photo::before { inset: 22px 22px -18px -18px; }
.hero-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/4.6; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(16,36,71,.5); }

/* sections */
.section { padding: 88px 0; }
.section-alt { background: var(--ivory); }
.section-sub { color: var(--muted); font-size: 1.15rem; margin-bottom: 2.2em; max-width: 40em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid #e8e3d7; border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 18px 40px -22px rgba(16,36,71,.35); transform: translateY(-3px); }
.card svg { width: 46px; height: 46px; fill: var(--navy); background: var(--ivory); padding: 10px; border-radius: 14px; margin-bottom: 14px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; }

/* gallery: even tiles; the full photo opens in the viewer */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; display: block; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(16,36,71,.35)); opacity: 0; transition: opacity .3s; }
.tile:hover img { transform: scale(1.06); }
.tile:hover::after { opacity: 1; }
.tile:nth-child(1) img { object-position: 50% 62%; }
.tile:nth-child(3) img { object-position: 50% 70%; }
.tile:nth-child(4) img { object-position: 50% 60%; }

/* about */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.since { background: var(--navy); color: var(--sand); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-content: center; text-align: center; }
.since span { font-size: 1.3rem; letter-spacing: .2em; }
.since strong { font-family: var(--head); font-size: 5rem; line-height: 1; color: #fff; }
.ticks { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 40px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23102447' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/18px no-repeat; }

/* contact */
.contact-card { display: grid; grid-template-columns: 5fr 7fr; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px -34px rgba(16,36,71,.45); }
.contact-info { background: var(--navy); color: #fff; padding: 48px 40px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.contact-info::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(213,198,175,.1); inset-block-end: -110px; inset-inline-end: -90px; }
.contact-info h2 { color: #fff; }
.contact-info > p { color: #cfd7e8; margin-bottom: 1.6em; }
.info-row { position: relative; display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 14px 16px; margin-inline: -16px; border-radius: 16px; transition: background .2s; }
.info-row:hover { background: rgba(255,255,255,.08); }
.info-row .icon { width: 50px; height: 50px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; flex: none; }
.info-row svg { width: 24px; height: 24px; fill: var(--navy); }
.info-row small { display: block; color: var(--sand); font-size: .95rem; line-height: 1.3; }
.info-row strong { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.form { padding: 44px 44px 40px; display: grid; gap: 18px; align-content: center; }
.form h3 { margin: 0 0 2px; font-size: 1.5rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .98rem; color: var(--navy); }
.field input, .field textarea { font: inherit; width: 100%; padding: 14px 16px; border: 1.5px solid transparent; border-radius: 14px; background: var(--ivory); color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: #e0d9c9; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(16,36,71,.1); }
.field .invalid { border-color: #b3261e; background: #fdf3f2; }
.form .btn-block { padding: 15px 26px; font-size: 1.1rem; margin-top: 4px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.form-status { margin: 0; min-height: 1.6em; font-weight: 600; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: #b3261e; }

/* footer */
.site-footer { background: var(--navy); color: #cfd7e8; padding: 64px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 48px; padding-bottom: 48px; }
.foot-brand img { height: 84px; width: auto; }
.foot-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.foot-col h4 { font-family: var(--head); font-size: 1.1rem; font-weight: 600; color: #fff; margin: 0 0 6px; }
.foot-col a { color: #cfd7e8; text-decoration: none; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-col .line { display: inline-flex; align-items: flex-start; gap: 12px; }
.foot-col svg { width: 20px; height: 20px; fill: var(--sand); flex: none; margin-top: 4px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0 24px; }
.foot-bottom p { margin: 0; font-size: .95rem; color: #9fb0cf; }

/* quick call/location bar (phones) */
.quickbar { display: none; }

/* photo viewer */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
.lightbox::backdrop { background: rgba(8,16,32,.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 88vh; border-radius: 10px; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 18px; inset-inline-end: 18px; }
.lb-prev { inset-inline-start: 18px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 18px; top: 50%; translate: 0 -50%; }
[dir="rtl"] .lb-nav { scale: -1 1; }

/* tablets & phones */
@media (max-width: 960px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-brand { grid-column: 1 / -1; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-info { padding: 36px 28px; }
  .form { padding: 32px 28px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid .since { max-width: 220px; }
  .nav { display: none; }
  .bar-actions { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; padding-bottom: 76px; }
  .section { padding: 60px 0; }
  .hero { padding: 32px 0 48px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { border-radius: 14px; }
  .form .row { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
  .contact-info { padding: 30px 20px; }
  .brand img { height: 54px; }
  .foot-grid { grid-template-columns: 1fr; }
  .site-footer { padding-top: 44px; }
  .bar-actions .btn { display: none; }
  .actions .btn { width: 100%; }
  .quickbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid #e8e3d7; box-shadow: 0 -8px 24px -16px rgba(16,36,71,.4); }
  .quickbar .btn { padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
