/*
 * Typography aligned with palmhillsdevelopments.com rhythm: Gill Sans–style humanist sans
 * (here: Source Sans 3 — free substitute; official site uses licensed Gill / Gill Bold).
 * Site palette: charcoal body + magenta accent (two-tone brand).
 */
:root {
  --brand-charcoal: #212121;
  --brand-magenta: #d81b60;
  --brand-magenta-deep: #ad1457;

  --ink: #0c1117;
  --slate: #141c28;
  --slate-mid: #1c2736;
  --surface: #243044;
  --cream: #fafafa;
  --cream-dark: #f0f0f0;
  --text: var(--brand-charcoal);
  --text-soft: #5a5a5a;
  /* Legacy names — map to magenta so dark-band UI stays one accent system */
  --gold: var(--brand-magenta);
  --gold-dim: rgba(216, 27, 96, 0.22);
  --ph-red: var(--brand-magenta);
  --ph-red-soft: rgba(216, 27, 96, 0.14);
  --ph-red-border: rgba(216, 27, 96, 0.42);
  --line: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(33, 33, 33, 0.12);
  --whatsapp: #25d366;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font-sans: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Arabic UI — same family as palmhillsdevelopments.com (GE SS Two Medium) */
  --font-ar: "GE SS Two", "GE SS Two Medium", "Segoe UI", Tahoma, Arial, sans-serif;
  --container: 1160px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

@font-face {
  font-family: "GE SS Two";
  src: url("../fonts/GE_SS_Two_Medium.otf") format("opentype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Home layout: top stripe white, middle black, bottom white */
.page-band--light {
  background: #ffffff;
  color: var(--text);
}

.page-band--dark {
  background: #050505;
  color: rgba(255, 255, 255, 0.92);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* —— Header: airy bar; scroll → cool slate (not green tint of saved ref) —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, padding 0.35s;
  overflow: visible;
}

/* backdrop-filter creates a containing block for position:fixed children — breaks mobile drawer */
@media (max-width: 1024px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }
}

body.nav-drawer-open .site-header {
  z-index: 10060;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 0.65rem 0;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.35rem;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1.35;
}
.brand:hover {
  color: var(--ph-red);
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nav-desktop > a,
.nav-desktop .has-sub > a {
  padding: 0.45rem 0.85rem;
  color: rgba(44, 42, 38, 0.82);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-radius: var(--radius-pill);
}
.nav-desktop > a:hover,
.nav-desktop .has-sub > a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

/* Project links: only inside mobile drawer (hidden on desktop) */
.nav-drawer-projects {
  display: none;
}

.has-sub {
  position: relative;
}
.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  max-height: 72vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow);
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 0.65rem 1.15rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.submenu a:hover {
  background: var(--cream);
  color: var(--ph-red);
}

.header-cta {
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, var(--ph-red), var(--brand-magenta-deep));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px var(--ph-red-soft);
}
.header-cta:hover {
  filter: brightness(1.06);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  position: relative;
  z-index: 10050;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }
  .nav-desktop {
    display: none !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: var(--mobile-nav-offset, 112px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--slate);
    padding: 1rem 1.25rem 2rem;
    overflow-y: auto;
    z-index: 10040;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  }
  .nav-desktop.is-open {
    display: flex !important;
  }
  .nav-desktop > a,
  .nav-desktop .has-sub > a {
    padding: 0.85rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    color: rgba(255, 255, 255, 0.92);
  }
  .nav-desktop > a:hover,
  .nav-desktop .has-sub > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-drawer-projects {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .nav-drawer-projects-label {
    margin: 0 0 0.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.45);
  }

  .nav-drawer-projects a {
    display: block;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    border-radius: 0;
  }

  .nav-drawer-projects a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-drawer-projects a[aria-current="page"] {
    color: var(--gold);
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-bottom: 0.5rem;
    box-shadow: none;
    border-radius: var(--radius);
    max-height: none;
  }
  .header-cta {
    display: none;
  }
}

body.nav-drawer-open {
  overflow: hidden;
}

/* —— Hero: split layout (differs from centred full-bleed of saved ref) —— */
.hero--split {
  min-height: 0;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(1.5rem, 2.8vw, 2rem);
  background: #ffffff;
  color: var(--text);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: center;
  min-height: 0;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-visual {
    order: -1;
    min-height: 220px;
  }
}

.hero-copy {
  max-width: 34rem;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero--split h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  font-style: normal;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}

.hero-lead {
  color: var(--text-soft);
  font-size: 0.98rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ph-red), var(--brand-magenta-deep));
  color: #fff;
  box-shadow: 0 8px 28px var(--ph-red-soft);
}
.btn-primary:hover {
  filter: brightness(1.05);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero--split .btn-ghost {
  color: var(--text);
  border-color: var(--line-dark);
}
.hero--split .btn-ghost:hover {
  border-color: var(--ph-red);
  color: var(--ph-red);
}

.btn-wa {
  background: var(--whatsapp);
  color: #fff;
}
.btn-wa:hover {
  filter: brightness(1.06);
  color: #fff;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.btn-ink:hover {
  filter: brightness(1.12);
  color: #fff;
}

/* Decorative panel — not a photo clone of PH hero */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: min(280px, 52vw);
  border: 1px solid var(--line-dark);
}

.hero-visual-inner {
  position: absolute;
  inset: 0;
  background-color: #e8eaef;
  background-image: url("../img/PX_E-Brochure_-_Palm_Hills_Page_26_Image_0001.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-visual-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 14px,
    rgba(44, 42, 38, 0.04) 14px,
    rgba(44, 42, 38, 0.04) 15px
  );
}

/* —— Tagline: cream panel + serif headline (differs from flat white band) —— */
.tagline-band {
  background: #ffffff;
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.tagline-inner {
  border-left: 5px solid var(--gold);
  padding-left: 1.75rem;
  max-width: 52rem;
}

.tagline-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.tagline-band h2 strong {
  color: var(--ph-red);
  font-weight: 700;
}

.tagline-band p {
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* —— Projects: dark slab + bento (not uniform tall portrait grid) —— */
.projects {
  background: transparent;
  padding: 4rem 0 4.5rem;
  color: #fff;
}

.page-band--dark .projects {
  padding-top: 4.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 2.25rem;
  color: #fff;
}

.project-grid--bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .project-grid--bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .project-grid--bento {
    grid-template-columns: 1fr;
  }
}

.project-card {
  position: relative;
  grid-column: span 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--line);
  background: var(--slate-mid);
}

.project-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}

.project-card-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  z-index: 2;
}

.project-card--feature {
  grid-column: span 4;
  min-height: 300px;
}

@media (max-width: 900px) {
  .project-card,
  .project-card--feature {
    grid-column: span 2;
    min-height: 240px;
  }
}

@media (max-width: 520px) {
  .project-card,
  .project-card--feature {
    grid-column: span 1;
  }
}

.project-card-link figure {
  margin: 0;
  position: absolute;
  inset: 0;
  height: 100%;
}

.project-card-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.35s;
  opacity: 0.92;
}

.project-card:hover .project-card-link img {
  transform: scale(1.06);
  opacity: 1;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(165deg, transparent 0%, rgba(12, 17, 23, 0.15) 35%, rgba(12, 17, 23, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.2rem 1.35rem;
  pointer-events: none;
}

.project-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  color: #fff;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  padding: 0.08rem 0.3rem;
  border-radius: 6px;
  background: rgba(8, 12, 18, 0.66);
  backdrop-filter: blur(1px);
}

.project-loc {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.45rem;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  padding: 0.06rem 0.28rem;
  border-radius: 6px;
  background: rgba(8, 12, 18, 0.56);
}

.project-card p.desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  display: inline-block;
  width: fit-content;
  max-width: min(100%, 62ch);
  align-self: flex-start;
  padding: 0.08rem 0.3rem;
  border-radius: 6px;
  background: rgba(8, 12, 18, 0.62);
}

.project-link {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.project-card:hover .project-link {
  filter: brightness(1.08);
}

/* Promo */
.promo {
  padding: 3rem 0;
}

.promo-dark {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-magenta {
  background: linear-gradient(120deg, var(--ph-red) 0%, var(--brand-magenta-deep) 100%);
  color: #fff;
}

.promo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.promo h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.promo p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
}

.promo-magenta p {
  color: rgba(255, 255, 255, 0.9);
}

/* About */
.about {
  background: var(--cream-dark);
  padding: 4rem 0;
  border-top: 1px solid var(--line-dark);
}

.page-band--dark .about {
  background: transparent;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.page-band--dark .about-eyebrow {
  color: var(--gold);
}

.page-band--dark .about h2 {
  color: #fff;
}

.page-band--dark .about .official-line {
  color: rgba(255, 255, 255, 0.9);
}

.page-band--dark .about-tagline {
  color: var(--ph-red);
}

.page-band--dark .about-text p {
  color: rgba(255, 255, 255, 0.68);
}

.page-band--dark .stat {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.page-band--dark .stat span {
  color: rgba(255, 255, 255, 0.55);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ph-red);
  margin-bottom: 0.5rem;
}

.about h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.about .official-line {
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 0.65rem;
  line-height: 1.65;
  font-weight: 500;
}

.about-tagline {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  font-style: normal;
  color: var(--ph-red);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-soft);
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.stat {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.stat span {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

/* Pills */
.pills-section {
  background: transparent;
  padding: 2.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pills-section .section-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pills a {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.pills a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Project shortcuts on white — same wrap + pill look as dark .pills, under fixed header */
.pills-section--on-light {
  background: #ffffff;
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--line-dark);
}

.pills-section--on-light.pills-section--below-header {
  padding-top: clamp(5.1rem, 11vw, 6.35rem);
}

.pills-section--on-light .section-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ph-red);
  margin-bottom: 1.25rem;
}

.pills-section--on-light .pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pills-section--on-light .pills a {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ph-red-border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ph-red);
  background: #ffffff;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

.pills-section--on-light .pills a:hover {
  border-color: var(--ph-red);
  color: var(--ph-red);
  background: var(--ph-red-soft);
}

.pills-section--on-light .pills a[aria-current="page"] {
  color: var(--ph-red);
  border-color: var(--ph-red);
  background: var(--ph-red-soft);
}

.pills-section--below-header + .hero--split {
  padding-top: clamp(0.75rem, 1.8vw, 1.25rem);
}

.pills-section--below-header + .project-detail-hero {
  padding-top: clamp(3rem, 8vw, 4.5rem);
}

/* Contact */
.contact {
  background: transparent;
  padding: 4rem 0;
}

.page-band--light:last-of-type .contact {
  padding-top: 4.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.25rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact h2 {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact .lead {
  color: var(--text-soft);
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}

.contact-details {
  list-style: none;
}
.contact-details li {
  margin-bottom: 0.5rem;
  color: var(--text-soft);
}
.contact-details a {
  font-weight: 700;
  color: var(--slate);
  font-size: 1.15rem;
}
.contact-details a:hover {
  color: var(--ph-red);
}

.note-form {
  background: var(--cream);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
}

.client-form-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line-dark);
}

.note-form label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.note-form input,
.note-form textarea {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: #fff;
}

.note-form textarea {
  min-height: 100px;
  resize: vertical;
}

.form-msg {
  display: none;
  margin-top: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.form-msg.ok {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}
.form-msg.err {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

/* Footer */
.site-footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.footer-links {
  list-style: none;
}

.footer-grid > div:nth-child(2) .footer-links {
  columns: 2;
  column-gap: 1.5rem;
}
.footer-grid > div:nth-child(2) .footer-links li {
  break-inside: avoid;
}

.footer-links li {
  margin-bottom: 0.45rem;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-links a:hover {
  color: var(--gold);
}

/* Spotlight "New Launch" links across nav/pills/footer */

.pills a[href$="new-launch.html"],
.nav-drawer-projects a[href$="new-launch.html"],
.footer-links a[href$="new-launch.html"] {
  background: linear-gradient(135deg, rgba(216, 27, 96, 0.2), rgba(173, 20, 87, 0.32));
  border-color: rgba(216, 27, 96, 0.75);
  color: #fff;
  box-shadow: 0 0 0 rgba(216, 27, 96, 0.45);
  animation: new-launch-pulse 1.45s ease-in-out infinite;
}

.pills-section--on-light .pills a[href$="new-launch.html"] {
  color: var(--ph-red);
  background: linear-gradient(135deg, rgba(216, 27, 96, 0.1), rgba(173, 20, 87, 0.18));
  border-color: rgba(216, 27, 96, 0.8);
}

/* Home card hard-fix: keep image visible and overlay content pinned at bottom */
#p-new-launch {
  background-image: url("../photos/New%20Launch/61114e8f6b4e8943931440.webp");
  background-size: cover;
  background-position: center;
}

#p-new-launch .project-card-overlay {
  justify-content: flex-end;
  align-items: flex-start;
}

#p-new-launch .project-link {
  margin-top: 0.35rem;
}

@keyframes new-launch-pulse {
  0% {
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(216, 27, 96, 0.5);
  }
  50% {
    filter: brightness(1.15);
    box-shadow: 0 0 0 10px rgba(216, 27, 96, 0);
  }
  100% {
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(216, 27, 96, 0);
  }
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: var(--gold);
  font-weight: 700;
}
.footer-bottom a:hover {
  color: #fff;
}

/* Light footer on home (third white band) */
.page-band--light .site-footer {
  background: #ffffff;
  color: var(--text-soft);
  border-top: 1px solid var(--line-dark);
  padding: 3rem 0 1.75rem;
}

.page-band--light .footer-brand {
  color: var(--ph-red);
}

.page-band--light .footer-about p {
  color: var(--text-soft);
}

.page-band--light .footer-tagline {
  color: var(--text-soft);
}

.page-band--light .footer-title {
  color: var(--text);
}

.page-band--light .footer-links a {
  color: var(--text-soft);
}

.page-band--light .footer-links a:hover {
  color: var(--ph-red);
}

.page-band--light .footer-bottom {
  border-top-color: var(--line-dark);
  color: var(--text-soft);
}

.page-band--light .footer-bottom a {
  color: var(--ph-red);
}

.page-band--light .footer-bottom a:hover {
  color: var(--text);
}

.page-band--light:last-of-type {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.floating-wa {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 800;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.floating-wa:hover {
  transform: scale(1.05);
}
.floating-wa svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* —— Standalone project pages (/projects/*.html) —— */
.project-detail-hero {
  background: linear-gradient(180deg, var(--slate) 0%, var(--ink) 100%);
  color: #fff;
  padding: clamp(7.5rem, 16vw, 9rem) 0 3.25rem;
  border-bottom: 1px solid var(--line);
}

.project-detail-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .project-detail-hero-inner {
    grid-template-columns: 1fr;
  }
  .project-detail-figure {
    order: -1;
  }
}

.project-crumb a {
  color: var(--gold);
  text-decoration: none;
}
.project-crumb a:hover {
  text-decoration: underline;
}

.project-detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0.35rem 0 0.5rem;
  color: #fff;
}

.project-detail-loc {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.project-detail-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1rem;
}

.project-detail-extra {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 1.5rem;
}

.project-detail-extra strong {
  color: #fff;
  font-weight: 700;
}

.project-detail-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.project-detail-figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-page-contact {
  border-top: none;
}

.submenu a[aria-current="page"] {
  color: var(--ph-red);
  font-weight: 700;
}

/* —— Unit inventory (home + project pages) —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.units-section {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  background: var(--cream);
  border-top: 1px solid var(--line-dark);
}

.units-section .section-title {
  color: var(--text);
}

.project-page .units-section {
  border-top: 1px solid var(--line);
}

.page-band--dark .units-section--all {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.units-lead {
  max-width: 62ch;
  color: var(--text-soft);
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

/* —— Unit filters (sidebar) —— */
.units-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

.units-layout__main {
  min-width: 0;
}

.units-filters {
  --filter-navy: #0f2847;
  --filter-navy-soft: #1a3d66;
  --filter-line: rgba(15, 40, 71, 0.12);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1rem 1.25rem;
  box-shadow: 0 8px 28px rgba(12, 17, 23, 0.06);
  position: sticky;
  top: 5.25rem;
}

.units-filter-block {
  margin: 0;
  padding: 0 0 1rem;
  border: none;
  border-bottom: 1px solid var(--filter-line);
}

.units-filter-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.units-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.units-filter-head--solo {
  margin-bottom: 0.55rem;
}

.units-filter-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--filter-navy);
  letter-spacing: -0.02em;
}

.units-filter-reset {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.units-filter-reset:hover {
  color: #1d4ed8;
}

.units-filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.units-filter-list .units-filter-line--collapsible {
  display: none;
}

.units-filter-list.units-filter-list--expanded .units-filter-line--collapsible {
  display: flex;
}

.units-filter-check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1.35;
}

.units-filter-check input {
  margin: 0.2rem 0 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--filter-navy-soft);
  flex-shrink: 0;
}

.units-filter-more {
  margin-top: 0.35rem;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.units-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.units-pill {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid rgba(15, 40, 71, 0.28);
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--filter-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.units-pill:hover {
  border-color: rgba(15, 40, 71, 0.45);
  background: rgba(15, 40, 71, 0.04);
}

.units-pill[aria-pressed="true"] {
  background: var(--filter-navy);
  border-color: var(--filter-navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 40, 71, 0.25);
}

.units-pill:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
}

.units-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.35rem;
}

.units-price-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 6.5rem;
  flex: 1 1 45%;
}

.units-price-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--filter-navy);
}

.units-price-field input {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(15, 40, 71, 0.22);
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  background: #fff;
}

.units-price-field input:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 1px;
}

html[dir="rtl"] .units-price-row {
  flex-direction: row-reverse;
}

.units-filter-summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--filter-line);
}

.units-filter-summary-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--filter-navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

html[dir="rtl"] .units-filter-summary-title {
  text-transform: none;
  letter-spacing: 0;
}

.units-filter-summary-body {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.units-filter-summary-body strong {
  color: var(--text);
  font-weight: 700;
}

.units-filters-reset-all {
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--filter-navy);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.units-filters-reset-all:hover {
  filter: brightness(1.08);
}

.units-filters-reset-all:active {
  transform: translateY(1px);
}

@media (max-width: 960px) {
  .units-layout {
    grid-template-columns: 1fr;
  }

  .units-filters {
    position: static;
  }
}

.units-count {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0 0 1.25rem;
  min-height: 1.35em;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.unit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: 0 12px 36px rgba(12, 17, 23, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.unit-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--cream-dark);
}

.unit-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.unit-card__delivery {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  color: #fff;
  /* Very thin black edge — legible on bright photos without a heavy ring */
  text-shadow:
    -0.5px -0.5px 0 #000,
    0.5px -0.5px 0 #000,
    -0.5px 0.5px 0 #000,
    0.5px 0.5px 0 #000,
    0 -0.5px 0 #000,
    0 0.5px 0 #000,
    -0.5px 0 0 #000,
    0.5px 0 0 #000,
    0 1px 3px rgba(0, 0, 0, 0.3);
}

.unit-card__delivery-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.95;
}

.unit-card__delivery-year {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
}

.unit-card__body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.unit-card__head {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.unit-card__logo {
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
}

.unit-card__titles {
  min-width: 0;
}

.unit-card__loc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  font-weight: 600;
}

.unit-card__type {
  margin: 0.1rem 0 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.unit-card__proj {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.unit-card__specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.unit-card__spec {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.35rem 0.15rem 0;
}

.unit-card__spec-ic {
  display: inline-flex;
  color: var(--text-soft);
  opacity: 0.85;
}

.unit-card__spec-sep {
  width: 1px;
  height: 1rem;
  background: var(--line-dark);
  margin: 0 0.25rem;
}

.unit-card__foot {
  margin-top: auto;
  padding-top: 0.35rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.unit-card__price {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.unit-card__actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.unit-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(12, 17, 23, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.unit-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(12, 17, 23, 0.22);
}

.unit-fab--call {
  background: #2563eb;
}

.unit-fab--wa {
  background: var(--whatsapp);
}

@media (max-width: 380px) {
  .unit-fab {
    width: 40px;
    height: 40px;
  }

  .unit-card__foot {
    gap: 0.4rem;
  }
}

/* —— Arabic (RTL) — same Arabic typeface as palmhillsdevelopments.com —— */
.lang-switch {
  flex-shrink: 0;
  padding: 0.42rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-dark);
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}
.lang-switch:hover {
  border-color: var(--ph-red);
  color: var(--ph-red);
}

html[dir="rtl"] {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .hero--split h1,
html[dir="rtl"] .section-title,
html[dir="rtl"] .project-detail-hero h1 {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .brand,
html[dir="rtl"] .nav-desktop > a,
html[dir="rtl"] .nav-desktop .has-sub > a {
  letter-spacing: 0.04em;
  text-transform: none;
}

html[dir="rtl"] .header-shell {
  flex-direction: row-reverse;
}

html[dir="rtl"] .header-end {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-split {
  direction: rtl;
}

html[dir="rtl"] .hero-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .promo-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .contact-grid {
  direction: rtl;
}

html[dir="rtl"] .footer-grid {
  direction: rtl;
}

html[dir="rtl"] .about-grid {
  direction: rtl;
}

html[dir="rtl"] .stats {
  direction: rtl;
}

html[dir="rtl"] .floating-wa {
  right: auto;
  left: 1.25rem;
}

html[dir="rtl"] .project-card-overlay {
  align-items: flex-end;
  text-align: right;
}

html[dir="rtl"] .project-card h3,
html[dir="rtl"] .project-loc,
html[dir="rtl"] .project-card p.desc {
  align-self: flex-end;
}

html[dir="rtl"] .project-link {
  align-self: flex-end;
}

html[dir="rtl"] .tagline-inner {
  border-left: none;
  border-right: 5px solid var(--gold);
  padding-left: 0;
  padding-right: 1.75rem;
}
