/* ==========================================================
   شركة البيوت الخليجية — Landing page styles
   ========================================================== */
:root {
  --navy: #142B45;
  --navy-700: #1C3A5C;
  --navy-900: #0E1F33;
  --gold: #C49A55;
  --gold-600: #A87D40;
  --gold-100: #F3EADB;
  --bg: #F8F9FA;
  --text: #252B32;
  --muted: #5A6470;
  --line: #E3E7EC;
  --white: #FFFFFF;
  --wa: #1FA855;

  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h2, h3 { color: var(--navy); line-height: 1.4; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .6rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-lg { min-height: 54px; padding: .8rem 1.75rem; font-size: 1.05rem; }
.btn .ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: #D2AB6A; }

.btn-outline-light { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-weight: 700; font-size: 1.15rem; color: var(--navy); }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav ul a {
  display: block;
  padding: .5rem .85rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: color .2s ease;
}
.main-nav ul a:hover { color: var(--gold-600); }
.nav-cta-mobile { display: none; }

.header-cta { padding-inline: 1.1rem; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  margin-inline-start: auto;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  width: 20px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Photo frames (with graceful fallback) ---------- */
.photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  background-color: var(--navy-700);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 56px);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-missing img { display: none; }
.photo.is-missing::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px; height: 72px;
  opacity: .55;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C49A55' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M3 7.5 12 3l9 4.5v9L12 21l-9-4.5z'/%3E%3Cpath d='M3 7.5 12 12l9-4.5M12 12v9'/%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* faint floor-plan grid — rooms, homes, space */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to left, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--white);
}
.hero h1::after {
  content: "";
  display: block;
  width: 88px;
  height: 5px;
  margin-top: 1.1rem;
  background: var(--gold);
  border-radius: 3px;
}
.hero-headline {
  margin-top: 1.4rem;
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--gold-100);
}
.hero-text {
  margin-top: 1rem;
  max-width: 34em;
  color: rgba(255,255,255,.8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-phone { margin-top: 1.25rem; font-size: .95rem; color: rgba(255,255,255,.7); }
.hero-phone a { color: var(--white); font-weight: 600; border-bottom: 1px solid var(--gold); }

.hero-media { position: relative; }
.photo-hero {
  aspect-ratio: 6 / 7;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
/* gold "packing strap" running across the photo */
.hero-media::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -6%;
  bottom: -6%;
  inset-inline-end: 18%;
  width: 14px;
  background: var(--gold);
  border-radius: 3px;
  box-shadow: 0 0 0 4px rgba(20,43,69,.3);
  pointer-events: none;
}
.hero-tags {
  position: absolute;
  z-index: 3;
  inset-inline-start: -1.25rem;
  bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  max-width: 85%;
  padding: .75rem;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.4);
}
.hero-tags li {
  padding: .2rem .8rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg);
  border-radius: 999px;
  line-height: 1.7;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 40rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head p { margin-top: .8rem; color: var(--muted); font-size: 1.1rem; }

/* ---------- Services ---------- */
.service-grid > * { min-width: 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.75rem;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 34px -22px rgba(20,43,69,.45);
  transform: translateY(-3px);
}
.service-card h3 { margin-top: 1.1rem; }
.service-card p { margin-top: .5rem; color: var(--muted); font-size: 1rem; line-height: 1.8; }

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--gold-100);
  transition: background-color .25s ease;
}
.service-icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .25s ease;
}
.service-card:hover .service-icon { background: var(--navy); }
.service-card:hover .service-icon svg { stroke: var(--gold); }

/* Storage leads the service list — give it a wider, photo-led card */
.service-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  padding: 0;
  overflow: hidden;
  background: var(--navy);
  border-color: var(--navy);
}
.service-featured .photo-service { min-height: 260px; height: 100%; }
.service-featured .service-body { padding: 2rem; align-self: center; }
.service-featured h3 { color: var(--white); font-size: 1.45rem; }
.service-featured p { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 34em; }
.service-featured .service-icon { background: var(--gold); }
.service-featured:hover .service-icon { background: var(--gold); }
.service-featured:hover .service-icon svg { stroke: var(--navy); }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.photo-about { aspect-ratio: 6 / 7; border-radius: var(--r-lg); }
.about-copy .lead { margin-top: 1.1rem; font-size: 1.2rem; font-weight: 500; color: var(--navy); line-height: 1.8; }
.about-copy p + p { margin-top: 1rem; color: var(--muted); }

/* the service journey is a real sequence */
.journey {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.25rem;
  position: relative;
}
.journey::before {
  content: "";
  position: absolute;
  top: 17px;
  inset-inline: 12.5%;
  height: 2px;
  background: var(--line);
}
.journey li {
  counter-increment: step;
  position: relative;
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}
.journey li::before {
  content: counter(step, arabic-indic);
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin: 0 auto .6rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  position: relative;
  box-shadow: 0 0 0 5px var(--white);
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--navy);
}
.why-item {
  padding: 2rem 1.5rem 0;
  border-inline-start: 1px solid var(--line);
}
.why-item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.why-ico {
  width: 36px; height: 36px;
  fill: none;
  stroke: var(--gold-600);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-item h3 { margin-top: 1rem; }
.why-item p { margin-top: .4rem; color: var(--muted); font-size: 1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 10px;
  background: var(--gold);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.15rem); }
.cta-band p { margin-top: .6rem; color: rgba(255,255,255,.78); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; flex: none; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-copy > p { margin-top: .8rem; color: var(--muted); max-width: 30em; }
.contact-list { margin: 2rem 0 0; }
.contact-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; color: var(--navy); }
.contact-list dd a { border-bottom: 1px solid var(--gold); }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: .9rem;
}
.contact-card-title { font-weight: 600; color: var(--navy); margin-bottom: .25rem; }
.contact-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s ease, background-color .2s ease;
}
.contact-option:hover { border-color: var(--gold); background: #FCFAF6; }
.contact-option-ico {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  flex: none;
}
.contact-option-ico svg { width: 22px; height: 22px; fill: var(--white); }
.contact-option-ico.call { background: var(--navy); }
.contact-option-ico.wa { background: var(--wa); }
.contact-option-text { display: grid; line-height: 1.5; }
.contact-option-text strong { color: var(--navy); font-size: 1.05rem; }
.contact-option-text span { color: var(--muted); font-size: .95rem; text-align: start; }
.map-embed { margin-top: .5rem; border-radius: var(--r-md); overflow: hidden; }
.map-embed iframe { display: block; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); font-size: .98rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 2rem;
  padding-block: 3.5rem 2.5rem;
}
.footer-name { color: var(--white); font-weight: 700; font-size: 1.25rem; }
.footer-brand p + p { margin-top: .6rem; max-width: 28em; }
.footer-title { color: var(--gold); font-weight: 600; margin-bottom: .75rem; }
.site-footer li + li { margin-top: .35rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.25rem;
  font-size: .9rem;
}

/* ---------- Floating WhatsApp & mobile bar ---------- */
.wa-float {
  position: fixed;
  z-index: 90;
  inset-inline-end: 1.5rem;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .brand-name { font-size: 1.05rem; }
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    inset-inline: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 1.25rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; width: 100%; margin-inline: auto; }
  .photo-hero { aspect-ratio: 4 / 3; }
  .hero-tags { inset-inline-start: .75rem; bottom: .75rem; }

  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-featured { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .service-featured .photo-service { min-height: 0; aspect-ratio: 16 / 9; }
  .service-featured .service-body { padding: 0 1.75rem 1.75rem; }
  .service-featured .service-icon { margin-top: -27px; position: relative; box-shadow: 0 0 0 6px var(--navy); }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .photo-about { aspect-ratio: 16 / 10; }

  .why-grid { grid-template-columns: 1fr 1fr; border-top: 0; }
  .why-item,
  .why-item:first-child { border-inline-start: 0; border-top: 2px solid var(--navy); padding: 1.5rem 0 2rem; }
  .why-item:nth-child(odd) { padding-inline-end: 1.25rem; }
  .why-item:nth-child(even) { padding-inline-start: 1.25rem; }

  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .wa-float { display: none; }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    position: fixed;
    z-index: 95;
    inset-inline: 0;
    bottom: 0;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(0,0,0,.2);
  }
  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--white);
  }
  .mobile-bar svg { width: 20px; height: 20px; fill: currentColor; }
  .mobile-bar-call { background: var(--navy); }
  .mobile-bar-wa { background: var(--wa); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero-actions .btn,
  .cta-actions,
  .cta-actions .btn { width: 100%; }
  .hero-media::before { width: 10px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-featured .service-body { padding: 0 1.5rem 1.5rem; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item:nth-child(odd),
  .why-item:nth-child(even) { padding-inline: 0; }
  .journey { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .journey::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-list > div { flex-direction: column; gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 420px) {
  .hero-tags { gap: .3rem; padding: .55rem; }
  .hero-tags li { padding: .1rem .6rem; font-size: .82rem; }
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 42px;
  padding: .35rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: 600 .92rem/1 "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  cursor: pointer;
  flex: none;
  transition: border-color .2s ease;
}
.lang-toggle[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
.lang-toggle:hover { border-color: var(--gold); }
.lang-toggle svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--gold-600);
  stroke-width: 1.6;
}
@media (max-width: 900px) {
  .lang-toggle { margin-inline-start: auto; }
  .lang-toggle + .menu-toggle { margin-inline-start: 0; }
  .header-inner { gap: .6rem; }
  .brand { margin-inline-end: auto; }
}
@media (max-width: 420px) {
  .lang-toggle { padding-inline: .65rem; }
  .lang-toggle svg { display: none; }
  .brand-name { font-size: .98rem; }
}

/* ---------- English (LTR) adjustments ---------- */
html.i18n-pending body { visibility: hidden; }
html[lang="en"] { --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; }
html[lang="en"] body { line-height: 1.7; }
html[lang="en"] .hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.12; letter-spacing: -.015em; }
html[lang="en"] h2 { letter-spacing: -.01em; }
html[lang="en"] .hero::before {
  mask-image: linear-gradient(to right, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 70%);
}
html[lang="en"] .journey li::before { content: counter(step); }

/* header fit on small screens */
.brand { min-width: 0; flex: 0 1 auto; }
.brand-name { min-width: 0; line-height: 1.3; }
.lang-toggle-short { display: none; }
@media (max-width: 560px) {
  .lang-toggle-label { display: none; }
  .lang-toggle-short { display: inline; }
  html[lang="en"] .brand-name { font-size: .92rem; }
}
.main-nav ul a { white-space: nowrap; }
html[lang="en"] .header-inner { gap: 1.25rem; }
html[lang="en"] .main-nav ul a { padding-inline: .6rem; }
html[lang="en"] .hero-tags { max-width: 96%; }
@media (min-width: 901px) and (max-width: 1180px) {
  html[lang="en"] .brand-name { font-size: 1rem; }
}

/* ==========================================================
   Villas & palaces + northern Riyadh districts
   ========================================================== */
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: .3rem .9rem;
  border: 1px solid rgba(196,154,85,.55);
  border-radius: 999px;
  color: var(--gold);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.6;
}
.hero-villa-link {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid rgba(196,154,85,.5);
}
.hero-villa-link:hover { color: #D9B57A; }
.hero-villa-link + .hero-phone { margin-top: .6rem; }
.hero-tags li.tag-gold { background: var(--gold); color: var(--navy-900); }

.eyebrow {
  color: var(--gold-600);
  font-weight: 600;
  font-size: .98rem;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--gold); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #1B964C; }

.villas {
  background: #F6F1E8;
  border-bottom: 1px solid #EADFCB;
}
.villas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.villas-copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); }
.villas-lead { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; max-width: 36em; }
.villas-points { margin-top: 1.6rem; display: grid; gap: .75rem; }
.villas-points li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
}
.villas-points svg {
  flex: none;
  width: 26px; height: 26px;
  margin-top: .1rem;
  padding: 4px;
  border-radius: 50%;
  background: var(--navy);
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.villas-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.villas-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: .9rem;
  min-height: 520px;
}
.villas-gallery .photo { border-radius: var(--r-md); }
.photo-v1 { grid-row: 1 / span 2; }
.villas-badge {
  position: absolute;
  bottom: -1.1rem;
  inset-inline-start: 50%;
  translate: 50% 0;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 1.3rem;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 12px 26px -12px rgba(0,0,0,.45);
  white-space: nowrap;
}
html[dir="ltr"] .villas-badge { translate: -50% 0; }
.villas-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }

.districts { background: var(--navy-900); color: var(--white); }
.districts-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.25rem, 6vw, 4.75rem);
}
.districts h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.districts-head p:last-child { margin-top: .6rem; color: rgba(255,255,255,.75); }
.district-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.district-chips li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .95rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  font-weight: 500;
  line-height: 1.5;
}
.district-chips li:nth-child(-n+4) { border-color: var(--gold); background: rgba(196,154,85,.12); }
.district-chips svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.8; }
.districts-note { grid-column: 1 / -1; font-size: .95rem; color: rgba(255,255,255,.7); }
.districts-note a { color: var(--gold); font-weight: 600; border-bottom: 1px solid rgba(196,154,85,.5); }

.footer-areas-title { margin-top: 1.25rem; }

@media (max-width: 1180px) {
  html[lang="en"] .main-nav ul a { padding-inline: .45rem; font-size: .95rem; }
}
@media (max-width: 900px) {
  .villas-grid, .districts-inner { grid-template-columns: 1fr; }
  .villas-gallery { order: -1; min-height: 0; grid-template-rows: auto auto; margin-bottom: 1rem; }
  .photo-v1 { aspect-ratio: 4 / 5; }
  .photo-v2, .photo-v3 { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .villas-actions .btn { width: 100%; white-space: normal; }
  .villas-gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .photo-v1 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 11; }
}

/* ---- real-photo refinements ---- */
.hero-media::before { inset-inline-end: -7px; top: 10%; bottom: 10%; }
.hero-tags { bottom: -1.4rem; flex-wrap: nowrap; max-width: none; }
.photo-hero img { object-position: center 60%; }
@media (min-width: 901px) {
  .brand-name { white-space: nowrap; }
  .main-nav ul a { padding-inline: .6rem; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .main-nav ul a { padding-inline: .4rem; font-size: .95rem; }
  .header-inner { gap: 1rem; }
}
@media (max-width: 900px) {
  .hero-tags { bottom: -1.1rem; flex-wrap: wrap; max-width: calc(100% - 1.5rem); }
  .hero-media { margin-bottom: 1.25rem; }
}
.hero-tags { flex-wrap: wrap; max-width: calc(100% + .5rem); }

/* ---- header: brand never shrinks under the nav ---- */
@media (min-width: 1060px) { .brand { flex: none; } }
@media (max-width: 1059px) { .brand { flex: 0 1 auto; min-width: 0; } .brand-name { white-space: normal; } }
@media (min-width: 901px) {
  html[lang="en"] .brand-name { white-space: normal; max-width: 13.5em; line-height: 1.25; font-size: 1.02rem; }
}

/* English labels are wider: collapse to the menu button sooner */
@media (max-width: 1059px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    inset-inline: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 1.25rem; }
  .lang-toggle { margin-inline-start: auto; }
  .lang-toggle + .menu-toggle { margin-inline-start: 0; }
  .header-inner { gap: .6rem; }
}
@media (max-width: 1460px) {
  html[lang="en"] .header-cta { display: none; }
}
