/* =========================================================
   Etihad Town Phase 5 — Shared Stylesheet
   Modern real-estate UI · Light mode · Sharp corners (no radius)
   Brand palette: royal blue + fresh green (from logo)
   ========================================================= */

:root {
  --blue:        #14458c;
  --blue-dark:   #0e2f63;
  --blue-deep:   #0a2247;
  --green:       #57b947;
  --green-dark:  #3f9e33;
  --ink:         #16202e;
  --body:        #3c4759;
  --muted:       #6a7688;
  --bg:          #ffffff;
  --bg-alt:      #f3f6fb;
  --bg-blue:     #eef3fb;
  --line:        #e0e6f0;
  --line-strong: #c9d3e2;
  --white:       #ffffff;
  --shadow-sm:   0 1px 2px rgba(14,47,99,.06), 0 2px 8px rgba(14,47,99,.05);
  --shadow-md:   0 4px 24px rgba(14,47,99,.09);
  --shadow-lg:   0 18px 50px rgba(10,34,71,.16);
  --maxw:        1200px;
  --gutter:      clamp(18px, 4vw, 40px);
  --ff-head: "Sora", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
* , *::before, *::after { border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { margin: 0 0 1.05rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.15rem; }
li { margin-bottom: .5rem; }
strong { color: var(--ink); font-weight: 700; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ff-head); font-weight: 600; font-size: .98rem;
  padding: .92rem 1.7rem; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  line-height: 1; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-green { background: var(--green); color: #08320a; }
.btn-green:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: #fff; color: var(--blue-dark); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { height: 42px; width: auto; }
.brand .brand-tag { font-family: var(--ff-head); font-weight: 700; color: var(--blue-dark); font-size: 1.02rem; letter-spacing: -.01em; line-height: 1; }
.brand .brand-tag span { display: block; font-size: .68rem; font-weight: 600; color: var(--green-dark); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--ff-head); font-weight: 600; font-size: .95rem; color: var(--ink); padding: .35rem 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--green); transition: width .2s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--blue-dark); }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(10,34,71,.93) 0%, rgba(14,47,99,.82) 45%, rgba(10,34,71,.55) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-narrow { max-width: 760px; }
.hero .kicker { color: #bfe6b3; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero p.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: #e6ecf6; max-width: 640px; margin-bottom: 1.9rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-page { padding: clamp(3.2rem, 7vw, 5.2rem) 0 clamp(2.6rem, 5vw, 3.6rem); }
.hero-page h1 { max-width: 900px; }
.hero-page p.hero-sub { margin-bottom: .4rem; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.16); margin-top: 3rem; border: 1px solid rgba(255,255,255,.16); }
.hero-stats .hs { background: rgba(10,34,71,.35); padding: 1.35rem 1.25rem; }
.hero-stats .hs b { display: block; font-family: var(--ff-head); font-size: 1.6rem; color: #fff; line-height: 1; margin-bottom: .35rem; }
.hero-stats .hs span { font-size: .82rem; color: #cdd8ea; letter-spacing: .02em; }

/* breadcrumb */
.breadcrumb { position: relative; z-index: 2; font-size: .85rem; color: #c7d3e6; margin-bottom: 1.1rem; }
.breadcrumb a { color: #c7d3e6; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #9fb0cb; }

/* ---------- sections ---------- */
.section { padding: clamp(3.4rem, 7vw, 5.8rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--blue { background: var(--bg-blue); }
.section-head { max-width: 760px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--ff-head); font-weight: 700; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-dark); margin-bottom: .9rem; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--green); display: inline-block; }
.section-head.center .kicker::before { display: none; }
.lead { font-size: 1.14rem; color: var(--body); }

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

.card { background: #fff; border: 1px solid var(--line); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card .icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-blue); color: var(--blue); margin-bottom: 1.05rem; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; font-size: .98rem; color: var(--muted); }
.card--green .icon { background: #e9f6e4; color: var(--green-dark); }

/* feature list with checks */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--body); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--green-dark); border-bottom: 2.5px solid var(--green-dark);
  transform: rotate(-45deg);
}
.cols-2 { columns: 2; column-gap: 2.4rem; }
.cols-2 li { break-inside: avoid; }

/* split media + text */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 3.6rem); align-items: center; }
.split.reverse .media { order: 2; }
.split .media img { width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.media-frame { position: relative; }
.media-badge {
  position: absolute; left: 0; bottom: 0; background: var(--blue-dark); color: #fff;
  padding: 1rem 1.3rem; font-family: var(--ff-head); box-shadow: var(--shadow-md);
}
.media-badge b { display: block; font-size: 1.5rem; line-height: 1; }
.media-badge span { font-size: .78rem; color: #bcd0f0; letter-spacing: .04em; }

/* ---------- stats band ---------- */
.stats-band { background: var(--blue-deep); color: #fff; }
.stats-band .grid-4 { gap: 0; }
.stats-band .stat { padding: 2.4rem 1.2rem; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stats-band .stat:last-child { border-right: 0; }
.stats-band .stat b { font-family: var(--ff-head); font-size: 2.3rem; display: block; line-height: 1; color: #fff; }
.stats-band .stat b em { font-style: normal; color: var(--green); }
.stats-band .stat span { display: block; margin-top: .5rem; color: #b9c6dd; font-size: .9rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.data-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.data-table caption { text-align: left; font-size: .85rem; color: var(--muted); padding: .7rem .9rem; }
.data-table th, .data-table td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .97rem; }
.data-table thead th { background: var(--blue-dark); color: #fff; font-family: var(--ff-head); font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
.data-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.data-table tbody tr:hover { background: var(--bg-blue); }
.data-table td strong { color: var(--blue-dark); }
.tag-res { color: var(--blue-dark); font-weight: 700; }
.tag-com { color: var(--green-dark); font-weight: 700; }

/* ---------- callouts ---------- */
.callout { border-left: 4px solid var(--green); background: var(--bg-alt); padding: 1.3rem 1.5rem; margin: 1.6rem 0; }
.callout.blue { border-left-color: var(--blue); background: var(--bg-blue); }
.callout p:last-child { margin-bottom: 0; }
.callout .callout-label { font-family: var(--ff-head); font-weight: 700; color: var(--ink); }

.tldr { border: 1px solid var(--line-strong); background: #fff; padding: 1.7rem 1.8rem; box-shadow: var(--shadow-sm); margin-bottom: 2.6rem; }
.tldr h2 { font-size: 1.15rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .55rem; }
.tldr h2 svg { width: 20px; height: 20px; color: var(--green-dark); }
.tldr ul { margin: 0; }
.tldr li { color: var(--body); }

.takeaways { background: var(--blue-deep); color: #eaf1fb; padding: 1.8rem; box-shadow: var(--shadow-md); }
.takeaways h3 { color: #fff; margin-bottom: .8rem; }
.takeaways .checklist li { color: #dbe6f6; }
.takeaways .checklist li::before { border-color: var(--green); }

/* ---------- amenities ---------- */
.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.amenity { background: #fff; padding: 1.6rem 1.3rem; transition: background .18s; }
.amenity:hover { background: var(--bg-alt); }
.amenity .icon { color: var(--blue); margin-bottom: .7rem; }
.amenity .icon svg { width: 26px; height: 26px; }
.amenity h4 { margin: 0 0 .3rem; font-size: 1.02rem; }
.amenity p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-bottom: 0; background: #fff; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq details[open] { background: var(--bg-alt); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 1.5rem; font-family: var(--ff-head); font-weight: 600; color: var(--ink); font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green-dark); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-body { padding: 0 1.5rem 1.4rem; color: var(--body); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- timeline (developer legacy) ---------- */
.timeline { border-left: 2px solid var(--line-strong); padding-left: 1.8rem; margin-left: .5rem; }
.tl-item { position: relative; padding-bottom: 1.8rem; }
.tl-item::before { content: ""; position: absolute; left: -2.35rem; top: .2em; width: 14px; height: 14px; background: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); }
.tl-item h4 { margin: 0 0 .25rem; color: var(--blue-dark); }
.tl-item p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; overflow: hidden; }
.cta-band .cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-band .cta-ov { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,34,71,.95), rgba(20,69,140,.82)); }
.cta-band .cta-inner { position: relative; z-index: 2; text-align: center; padding: clamp(3rem, 6vw, 4.6rem) 0; }
.cta-band h2 { color: #fff; max-width: 720px; margin: 0 auto .8rem; }
.cta-band p { color: #d6e0f1; max-width: 620px; margin: 0 auto 1.8rem; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 3.4rem); align-items: start; }
.contact-card { border: 1px solid var(--line); background: #fff; padding: 1.4rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; box-shadow: var(--shadow-sm); margin-bottom: 1.1rem; }
.contact-card .icon { width: 44px; height: 44px; flex: none; background: var(--bg-blue); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card h4 { margin: 0 0 .2rem; }
.contact-card p, .contact-card a { margin: 0; font-size: .98rem; color: var(--body); }
.form { border: 1px solid var(--line); background: #fff; padding: 1.9rem; box-shadow: var(--shadow-md); }
.form h3 { margin-bottom: 1.2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--ff-head); font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line-strong); background: #fff;
  font-family: var(--ff-body); font-size: .98rem; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; justify-content: center; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .8rem; text-align: center; }

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

/* pills */
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.pill { border: 1px solid var(--line-strong); padding: .5rem 1rem; font-size: .9rem; font-family: var(--ff-head); font-weight: 600; color: var(--blue-dark); background: #fff; }
.pill svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; color: var(--green-dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-deep); color: #b9c6dd; padding: 3.4rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.2rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .f-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.site-footer .f-brand img { height: 40px; background: #fff; padding: 5px 8px; }
.site-footer p { color: #a9b8d1; font-size: .94rem; }
.site-footer h5 { font-family: var(--ff-head); color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: #b9c6dd; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .8rem; color: #b9c6dd; font-size: .94rem; list-style: none; }
.footer-contact { padding: 0; margin: 0; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 3px; }
.footer-bottom { padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8fa1bf; }
.footer-bottom a { color: #b9c6dd; }
.disclaimer { font-size: .8rem; color: #7d8fac; margin-top: 1.4rem; line-height: 1.6; }

/* ---------- prose (article body) ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; color: var(--blue-dark); }
.prose > p, .prose > ul, .prose > ol { font-size: 1.04rem; }

/* utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.4rem; } .mt-3 { margin-top: 2.2rem; }
.hide-mobile { display: initial; }
.narrow { max-width: 820px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.2rem;
  }
  .site-header.open .nav-links li { width: 100%; }
  .site-header.open .nav-links a { display: block; padding: .85rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-band .stat:nth-child(2) { border-right: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .cols-2 { columns: 1; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-band .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- overflow safety (grid/flex children must be allowed to shrink) ---------- */
.split > *, .grid > *, .contact-grid > *, .prose, .tldr { min-width: 0; }
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
@media (max-width: 620px) {
  table.data-table { min-width: 480px; }
}
