/* =========================================================
   OLD PLACE COMPANY — Corporate Website
   Shared stylesheet (bilingual AR/EN, RTL/LTR aware)
   ========================================================= */

:root {
  --brand:       #1f5ca8;   /* logo blue        */
  --brand-2:     #2f7fd1;   /* lighter blue     */
  --brand-dark:  #0e2a4a;   /* deep navy        */
  --ink:         #14202e;   /* near-black text  */
  --muted:       #5c6b7a;   /* muted text       */
  --line:        #e5eaf0;   /* borders          */
  --bg:          #ffffff;
  --bg-soft:     #f4f7fb;   /* soft section bg  */
  --bg-navy:     #0e2a4a;
  --white:       #ffffff;
  --wa:          #25d366;   /* whatsapp green   */

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 10px 30px rgba(14, 42, 74, .10);
  --shadow-lg:   0 20px 50px rgba(14, 42, 74, .18);
  --container:   1180px;
  --header-h:    76px;

  --font: "Cairo", "Tajawal", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* language visibility is toggled by JS setting <html lang> */
html[lang="ar"] .en,
html[lang="en"] .ar { display: none !important; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: var(--bg-navy); color: #dbe7f4; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
  background: rgba(31,92,168,.09); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section.navy .eyebrow { color: #7fb3ec; background: rgba(127,179,236,.14); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); font-weight: 800; }
.section.navy h1, .section.navy h2, .section.navy h3 { color: #fff; }
h2.title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.lead { color: var(--muted); font-size: 1.08rem; }
.section.navy .lead { color: #b9cbe0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 2px solid transparent; transition: .22s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(31,92,168,.28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--brand-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand .brand-txt b { display: block; font-size: 1.02rem; color: var(--brand-dark); font-weight: 800; line-height: 1.1; }
.brand .brand-txt span { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 10px; font-weight: 700; color: var(--ink); font-size: .96rem;
  transition: .18s;
}
.nav-links a:hover { color: var(--brand); background: var(--bg-soft); }
.nav-links a.active { color: var(--brand); background: rgba(31,92,168,.10); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line);
  background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; cursor: pointer;
  color: var(--brand-dark); font-family: var(--font); font-size: .9rem; transition: .18s;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, rgba(9,25,45,.90), rgba(14,42,74,.78)), url("../img/hero.jpg") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1000px 400px at 85% -10%, rgba(47,127,209,.35), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 96px 0 104px; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; }
.hero .hero-sub { color: #cfe0f2; font-size: 1.15rem; margin: 20px 0 32px; }
.hero .cr { display: inline-block; margin-top: 26px; color: #9fbbdb; font-size: .9rem; letter-spacing: .05em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 14px; padding-bottom: 20px; }
.hero-stats .stat {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(4px); border-radius: 14px; padding: 16px 22px; min-width: 150px; flex: 1;
}
.hero-stats .stat b { display: block; font-size: 1.8rem; color: #fff; }
.hero-stats .stat span { color: #bcd2ea; font-size: .9rem; }

/* ---------- generic grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: .25s; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(31,92,168,.3); }
.card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(31,92,168,.10); color: var(--brand); margin-bottom: 16px;
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }

/* service card with image */
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.service-card:hover .thumb img { transform: scale(1.07); }
.service-card .body { padding: 20px 22px; }
.service-card .body h3 { font-size: 1.12rem; display: flex; align-items: center; gap: 8px; }
.service-card .body h3 svg { width: 20px; height: 20px; color: var(--brand); }
.service-card .body p { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ---------- feature (image + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature.reverse { direction: ltr; }
.feature .media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.feature .txt h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.feature .txt p { color: var(--muted); margin-bottom: 14px; }
.check-list { display: grid; gap: 12px; margin-top: 18px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-weight: 600; }
.check-list li svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.section.navy .check-list li { color: #dbe7f4; }

/* ---------- values / stats strip ---------- */
.value-item { text-align: center; padding: 26px 18px; }
.value-item .ico { margin: 0 auto 14px; }
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-strip .num { font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; color: var(--brand); }
.section.navy .stat-strip .num { color: #7fb3ec; }
.stat-strip .lbl { color: var(--muted); font-weight: 600; }
.section.navy .stat-strip .lbl { color: #b9cbe0; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, rgba(9,25,45,.92), rgba(14,42,74,.85)), url("../img/hero.jpg") center/cover;
  color: #fff; padding: 66px 0; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p { color: #cfe0f2; margin-top: 10px; }
.crumbs { margin-top: 14px; font-size: .9rem; color: #9fbbdb; }
.crumbs a:hover { color: #fff; }

/* ---------- chips / trade list ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-size: .9rem; font-weight: 600; color: var(--ink); transition: .18s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: rgba(31,92,168,.05); }

/* ---------- gallery ---------- */
.gallery-grid { columns: 3; column-gap: 18px; }
.gallery-grid .g-item {
  break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; position: relative; box-shadow: var(--shadow);
}
.gallery-grid .g-item img { width: 100%; transition: .4s; }
.gallery-grid .g-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(14,42,74,.55));
  opacity: 0; transition: .3s;
}
.gallery-grid .g-item:hover img { transform: scale(1.06); }
.gallery-grid .g-item:hover::after { opacity: 1; }
.g-item .g-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 14px 16px; color: #fff; font-weight: 700;
  z-index: 2; opacity: 0; transform: translateY(8px); transition: .3s;
}
.gallery-grid .g-item:hover .g-cap { opacity: 1; transform: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(6,16,30,.92); display: none; z-index: 2000;
  align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute; background: rgba(255,255,255,.14); border: none; color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; display: grid; place-items: center; transition: .2s;
}
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: var(--brand); }
.lightbox .lb-close { top: 22px; inset-inline-end: 22px; }
.lightbox .lb-nav.prev { inset-inline-start: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav.next { inset-inline-end: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.info-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; transition: .2s; margin-bottom: 16px;
}
.info-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.info-card .ico { width: 48px; height: 48px; border-radius: 12px; background: rgba(31,92,168,.10); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.info-card .ico svg { width: 24px; height: 24px; }
.info-card h4 { font-size: 1rem; margin-bottom: 3px; }
.info-card a, .info-card span { color: var(--muted); font-size: .96rem; word-break: break-word; }
.info-card a:hover { color: var(--brand); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; font-size: .93rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem; background: #fbfcfe; transition: .18s; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(31,92,168,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.form-status { margin-top: 14px; font-weight: 700; display: none; padding: 12px 16px; border-radius: 10px; }
.form-status.ok { display: block; background: #e7f7ee; color: #157347; }
.form-status.err { display: block; background: #fdecec; color: #c0392b; }

/* map */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer { background: #091a2e; color: #b9cbe0; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { color: #fff; margin-bottom: 18px; font-size: 1.05rem; }
.footer-brand img { height: 54px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { color: #91a7c0; font-size: .95rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b9cbe0; transition: .18s; }
.footer-links a:hover { color: #fff; padding-inline-start: 4px; }
.foot-contact li { display: flex; gap: 10px; margin-bottom: 12px; color: #b9cbe0; font-size: .93rem; align-items: flex-start; }
.foot-contact svg { width: 18px; height: 18px; color: #7fb3ec; flex-shrink: 0; margin-top: 4px; }
.social { display: flex; gap: 10px; margin-top: 8px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .2s; }
.social a:hover { background: var(--brand); }
.social svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); margin-top: 52px; padding: 22px 0; text-align: center; font-size: .88rem; color: #7f96b0; }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 500;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45); animation: wa-pulse 2.4s infinite;
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: 22px;
  padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem,3vw,2rem); }
.cta-band p { color: #d7e6f7; margin-top: 8px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2,1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2,1fr); }
  .feature, .contact-grid { grid-template-columns: 1fr; }
  .feature .media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { columns: 2; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset-block-start: var(--header-h); inset-inline: 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 14px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-140%); transition: .3s; z-index: 90;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 16px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .cta-band { padding: 32px 24px; text-align: center; justify-content: center; }
  .hero-inner { padding: 66px 0 74px; }
}
