:root {
  --ink: #4e4545;
  --muted: #817a7a;
  --line: #eadfdd;
  --paper: #fffdfc;
  --soft: #fbf3f1;
  --accent: #ee7f6c;
  --accent-strong: #c96455;
  --shadow: 0 24px 80px rgba(78, 69, 69, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Avenir, "Montserrat", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 72px);
  background: rgba(255, 253, 252, 0.9);
  border-bottom: 1px solid rgba(234, 223, 221, 0.9);
  backdrop-filter: blur(18px);
}

.brand img {
  display: block;
  width: min(260px, 48vw);
  height: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(78, 69, 69, 0.08), rgba(78, 69, 69, 0.38)),
    url("assets/new-cairo-development.jpg") center / cover;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 7vw, 110px) clamp(28px, 6vw, 88px);
  background:
    radial-gradient(circle at 12% 84%, rgba(238, 127, 108, 0.24), transparent 34%),
    linear-gradient(180deg, #fffdfc 0%, #fbf0ee 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(54px, 8vw, 108px);
  line-height: 0.96;
  font-weight: 300;
  letter-spacing: 0.02em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 300;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 500;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 34px;
}

.hero-actions,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.contact-list a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.contact-list a:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.button.secondary.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.82);
}

.intro,
.vision-band,
.values,
.contact {
  padding: clamp(68px, 9vw, 130px) clamp(20px, 6vw, 92px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: start;
}

.intro p:last-child,
.vision-band p {
  max-width: 720px;
}

.vision-band {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(280px, 1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
  background: #f8eeee;
  border-block: 1px solid var(--line);
}

.vision-band img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.value-grid article {
  min-height: 245px;
  padding: 28px;
  background: var(--paper);
}

.value-grid span {
  display: block;
  margin-bottom: 44px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.value-grid p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.65;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 32px;
  align-items: end;
  background:
    linear-gradient(rgba(255, 253, 252, 0.78), rgba(255, 253, 252, 0.94)),
    url("assets/brand-wide.jpg") center / cover;
}

.contact h2 {
  margin-bottom: 18px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px clamp(20px, 6vw, 92px);
  color: #9c9393;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

footer img {
  width: min(220px, 54vw);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  min-height: 62vh;
  display: grid;
  align-items: end;
  padding: clamp(86px, 12vw, 160px) clamp(20px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 82%, rgba(238, 127, 108, 0.2), transparent 34%),
    linear-gradient(180deg, #fffdfc 0%, #fbf0ee 100%);
}

.page-hero-content,
.project-overview-copy,
.location-copy,
.project-cta > div {
  max-width: 780px;
}

.page-hero h1 {
  margin-bottom: 22px;
}

.project-list,
.project-overview,
.project-highlights,
.master-plan,
.amenities,
.residential-types,
.partners-section,
.gallery-section,
.location-section,
.project-cta {
  padding: clamp(68px, 9vw, 130px) clamp(20px, 6vw, 92px);
}

.project-list {
  background: var(--paper);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.project-card-media {
  min-height: 430px;
  overflow: hidden;
}

.project-card-media img,
.project-overview-image,
.amenity-card img,
.partners-image,
.gallery-item img,
.master-plan-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-media img,
.amenity-card img,
.gallery-item img {
  transition: transform 700ms ease;
}

.project-card:hover .project-card-media img,
.amenity-card:hover img,
.gallery-item:hover img {
  transform: scale(1.035);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 5vw, 68px);
}

.project-card-body h2 {
  margin-bottom: 20px;
}

.project-card-body p:not(.section-kicker) {
  margin-bottom: 30px;
}

.project-hero {
  position: relative;
  min-height: calc(100vh - 96px);
  display: grid;
  align-items: end;
  padding: clamp(90px, 13vw, 180px) clamp(20px, 6vw, 92px);
  overflow: hidden;
  color: #fff;
  background: var(--hero-image) center / cover;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(35, 31, 31, 0.72), rgba(35, 31, 31, 0.28) 58%, rgba(35, 31, 31, 0.1)),
    linear-gradient(0deg, rgba(35, 31, 31, 0.5), transparent 52%);
}

.project-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.project-hero .eyebrow,
.project-hero .hero-copy {
  color: rgba(255, 255, 255, 0.86);
}

.project-hero h1 {
  margin-bottom: 20px;
  color: #fff;
}

.project-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}

.project-overview-copy h2 {
  margin-bottom: 26px;
}

.project-overview-image {
  min-height: 520px;
  box-shadow: var(--shadow);
}

.project-highlights,
.amenities,
.partners-section,
.location-section {
  border-top: 1px solid var(--line);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.highlight-card {
  min-height: 168px;
  padding: 24px;
  background: var(--paper);
}

.highlight-card span,
.partner-list span {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.highlight-card h3 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.35;
}

.master-plan {
  background: #f8eeee;
  border-block: 1px solid var(--line);
}

.master-plan .section-heading {
  max-width: 900px;
}

.master-plan .section-heading p:last-child {
  max-width: 780px;
}

.master-plan-frame {
  position: relative;
  display: block;
  width: 100%;
  min-height: 420px;
  margin: 42px 0 0;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(234, 223, 221, 0.95);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.master-plan-frame img {
  aspect-ratio: 16 / 9;
}

.master-plan-frame span {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  background: rgba(78, 69, 69, 0.84);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.amenity-card {
  min-height: 440px;
  display: grid;
  grid-template-rows: 240px 1fr;
  overflow: hidden;
  background: var(--paper);
}

.amenity-card div {
  padding: 24px;
}

.amenity-card p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.65;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.type-card {
  min-height: 260px;
  padding: 28px;
  background: var(--paper);
}

.type-card ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  list-style: none;
}

.type-card li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--accent);
}

.partners-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
  background: var(--soft);
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  border: 1px solid var(--line);
  background: var(--line);
}

.partner-list article {
  padding: 22px;
  background: var(--paper);
}

.partner-list span {
  margin-bottom: 10px;
}

.partner-list strong {
  font-size: 20px;
  font-weight: 500;
}

.partners-image {
  min-height: 420px;
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.gallery-item {
  min-height: 420px;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  border: 0;
  background: var(--paper);
}

.location-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: stretch;
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.nearby-grid span {
  display: flex;
  min-height: 88px;
  align-items: center;
  padding: 18px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.map-frame {
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.project-cta {
  background:
    linear-gradient(rgba(255, 253, 252, 0.82), rgba(255, 253, 252, 0.96)),
    url("/assets/projects/peerage-residence/exterior-01.webp") center / cover;
}

.project-cta h2 {
  margin-bottom: 22px;
}

.contact-form-band {
  padding: clamp(68px, 9vw, 130px) clamp(20px, 6vw, 92px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 12%, rgba(238, 127, 108, 0.14), transparent 32%),
    linear-gradient(180deg, #fffdfc 0%, #fbf3f1 100%);
}

contact-form {
  display: block;
}

.contact-form-card {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-form-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.contact-form-heading h2 {
  margin-bottom: 20px;
}

.contact-form-heading p:last-child {
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.form-wide {
  grid-column: 1 / -1;
}

.field-group {
  display: grid;
  gap: 10px;
}

.field-group label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--paper);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field-group textarea {
  min-height: 180px;
  padding-top: 18px;
  resize: vertical;
  line-height: 1.7;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #aaa2a2;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--accent-strong);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(238, 127, 108, 0.12);
}

.field-group input[aria-invalid="true"],
.field-group textarea[aria-invalid="true"] {
  border-color: var(--accent-strong);
}

.phone-input {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  gap: 12px;
}

.phone-input select {
  cursor: pointer;
}

.field-error {
  min-height: 18px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.form-status {
  min-height: 26px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.form-status.is-success {
  color: #3f7259;
}

.form-status.is-error {
  color: var(--accent-strong);
}

.form-submit {
  margin-top: 28px;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.has-lightbox {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(35, 31, 31, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(78, 69, 69, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .vision-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 390px;
  }

  .hero-content {
    min-height: 520px;
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card,
  .project-overview,
  .partners-section,
  .location-section {
    grid-template-columns: 1fr;
  }

  .highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .amenity-grid,
  .type-grid,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 12px 18px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    min-height: 300px;
  }

  .hero-content {
    min-height: auto;
  }

  h1 {
    font-size: 52px;
  }

  p {
    font-size: 16px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-grid article {
    min-height: auto;
  }

  .page-hero,
  .project-hero {
    min-height: auto;
  }

  .project-hero {
    padding-top: 160px;
  }

  .project-card-media,
  .project-overview-image,
  .gallery-item,
  .master-plan-frame,
  .map-frame {
    min-height: 300px;
  }

  .highlight-grid,
  .amenity-grid,
  .type-grid,
  .partner-list,
  .gallery-grid,
  .nearby-grid,
  .form-grid,
  .phone-input {
    grid-template-columns: 1fr;
  }

  .amenity-card {
    min-height: auto;
    grid-template-rows: 220px auto;
  }

  .nearby-grid span {
    min-height: 72px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
