/* ==========================================================================
   Trustin Homes Real Estate LLC — Design System
   ========================================================================== */

:root {
  /* Brand palette (from brand guideline PDF) */
  --navy: #002254;
  --navy-800: #012c68;
  --navy-700: #05336f;
  --white: #ffffff;
  --blue-light: #2684ff;
  --blue: #1a74ed;
  --blue-mid: #0c61db;
  --blue-deep: #0357d1;

  /* Neutrals */
  --ink: #0b1a30;
  --ink-soft: #4a5568;
  --paper: #f6f8fb;
  --paper-alt: #eef2f8;
  --line: #e2e8f2;

  /* Gradients */
  --grad-blue: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-deep) 100%);
  --grad-navy: linear-gradient(180deg, rgba(0,34,84,0.15) 0%, rgba(0,34,84,0.92) 70%, #001430 100%);

  /* Type */
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 20px 50px -20px rgba(0, 34, 84, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(0, 34, 84, 0.18);
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--grad-blue);
  display: inline-block;
}

.section {
  padding: 100px 0;
}
.section-tight { padding: 70px 0; }
.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 17px; max-width: 620px; }
.section-head.center p { margin: 0 auto; }

.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: rgba(255,255,255,0.85); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-blue);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(26, 116, 237, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(26, 116, 237, 0.65); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-700); transform: translateY(-3px); }
.btn-sm { padding: 11px 22px; font-size: 12px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-solid {
  background: rgba(0, 34, 84, 0.96);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.4);
}
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; transition: height .4s var(--ease); }
.site-header.is-solid .brand img { height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad-blue);
  transition: width .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--blue-light); }

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-cta { display: none; }
@media (min-width: 981px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 1100;
}
.nav-toggle span {
  height: 2px; width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    transform: translateY(-100%);
    transition: transform .5s var(--ease), visibility 0s linear .5s, opacity .3s var(--ease);
    visibility: hidden;
    opacity: 0;
  }
  .nav-links.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    transition: transform .5s var(--ease), visibility 0s, opacity .3s var(--ease);
  }
  .nav-links a { font-size: 20px; }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   Hero (Home)
   ========================================================================== */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  max-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-media { position: absolute; inset: 0; z-index: 1; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-navy);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 780px;
}
.hero-content .eyebrow { color: var(--blue-light); }
.hero-content h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-content h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--blue-light), #8fc0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-strip { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08); }
.hero-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 28px;
}
.hero-strip-inner > div {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-strip-inner > div:last-child { border-right: none; }
.hero-strip-inner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  margin-bottom: 4px;
}
.hero-strip-inner span {
  font-size: 11.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
@media (max-width: 700px) {
  .hero-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 22px 0; padding: 26px 20px; }
  .hero-strip-inner > div { border-right: none; }
  .hero-strip-inner > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
}

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue .line { width: 1px; height: 34px; background: rgba(255,255,255,0.5); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; top: -34px; left: 0; width: 100%; height: 34px;
  background: var(--white);
  animation: scrollcue 2s infinite ease-in-out;
}
@keyframes scrollcue { to { top: 34px; } }

@media (max-width: 700px) {
  .hero { align-items: flex-start; padding-top: 130px; padding-bottom: 40px; height: auto; min-height: 100vh; max-height: none; }
  .scroll-cue { display: none; }
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: 210px 0 100px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(26,116,237,0.35), rgba(0,20,48,0.95) 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--blue-light); }
.page-hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 54px); max-width: 760px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 620px; margin-top: 16px; font-size: 17px; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-top: 26px;
}
.breadcrumb a:hover { color: var(--white); }
.page-hero-shape {
  position: absolute; right: -80px; top: -80px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(38,132,255,0.35), transparent 70%);
  z-index: 1;
}

/* ==========================================================================
   Intro / About blurb
   ========================================================================== */
.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.intro-media { position: relative; }
.intro-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.intro-media .badge-card {
  position: absolute;
  bottom: -30px; left: -30px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 26px;
  display: flex; align-items: center; gap: 16px;
}
.intro-media .badge-card strong { font-family: var(--font-display); font-size: 26px; color: var(--blue-deep); display:block; }
.intro-media .badge-card span { font-size: 12px; color: var(--ink-soft); letter-spacing: .5px; }
.intro-body p { color: var(--ink-soft); margin-bottom: 18px; font-size: 16.5px; }
.intro-body h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 20px; }
.check-list { display: grid; gap: 14px; margin: 26px 0 32px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.check-list li .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-blue);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 12px; margin-top: 2px;
}

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 50px; }
  .intro-media .badge-card { position: static; margin-top: -50px; margin-left: 20px; width: fit-content; }
}

/* ==========================================================================
   Developers strip
   ========================================================================== */
.developers-strip { padding: 60px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.developers-strip .strip-label {
  text-align: center; font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 34px;
}
.developer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  align-items: center;
}
.developer-grid a, .developer-grid .dev-logo {
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  filter: grayscale(1) opacity(0.55);
  transition: filter .35s var(--ease), transform .35s var(--ease);
}
.developer-grid a:hover, .developer-grid .dev-logo:hover { filter: grayscale(0) opacity(1); transform: translateY(-3px); }
.developer-grid img { max-height: 52px; width: auto; margin: 0 auto; }

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

/* ==========================================================================
   Project cards
   ========================================================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 1080px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -18px rgba(0,34,84,0.3); }
.project-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.08); }
.project-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--grad-blue); color: var(--white);
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}
.project-dev-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.92);
  border-radius: 10px; padding: 6px 10px;
  display: flex; align-items: center;
}
.project-dev-badge img { height: 18px; width: auto; }
.project-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-body .location {
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue-deep); font-weight: 600;
}
.project-body h3 { font-size: 21px; }
.project-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); padding-top: 12px; border-top: 1px dashed var(--line); margin-top: 6px; }
.project-meta strong { color: var(--navy); display: block; font-size: 14.5px; }
.project-body .btn { margin-top: 10px; }
.project-tag.is-ready { background: linear-gradient(135deg, #1fb579, #0c8f5d); }
.project-blurb { color: var(--ink-soft); font-size: 14px; line-height: 1.55; flex: 1; }
.project-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .4px; color: var(--blue-deep);
  margin-top: 4px;
}
.project-link span { transition: transform .3s var(--ease); }
.project-card:hover .project-link span { transform: translateX(4px); }
.data-note { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: 40px; max-width: 640px; margin-left: auto; margin-right: auto; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--navy);
  transition: all .3s var(--ease);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--grad-blue); border-color: transparent; color: var(--white);
}

.amenity-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 20px; margin-bottom: 26px; }
.amenity-grid li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--ink); }
.amenity-grid li::before { content: "✓"; color: var(--blue-deep); font-weight: 700; }

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

/* ==========================================================================
   Why Dubai / Why RAK
   ========================================================================== */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.split-feature .media { position: relative; min-height: 460px; }
.split-feature .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-feature .body { display: flex; align-items: center; padding: 70px; }
.split-feature .body-inner { max-width: 520px; }
.split-feature.reverse .media { order: 2; }
.split-feature.reverse .body { order: 1; }

.reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.reason-item { display: flex; gap: 14px; }
.reason-item .num {
  font-family: var(--font-display); font-size: 20px; color: var(--blue-deep);
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.reason-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.reason-item p { font-size: 14px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .split-feature { grid-template-columns: 1fr; }
  .split-feature .media { min-height: 320px; order: 1 !important; }
  .split-feature .body { padding: 50px 28px; order: 2 !important; }
  .reason-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Communities
   ========================================================================== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1080px) { .community-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .community-grid { grid-template-columns: 1fr; } }

.community-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-card);
}
.community-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.community-card:hover img { transform: scale(1.09); }
.community-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,20,48,0) 40%, rgba(0,20,48,0.92) 100%);
}
.community-card .info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px;
  z-index: 2; color: var(--white);
}
.community-card .info span { font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-light); }
.community-card .info h3 { color: var(--white); font-size: 22px; margin: 6px 0 8px; }
.community-card .info p { font-size: 13.5px; color: rgba(255,255,255,0.78); }
.community-card.tall { grid-row: span 2; aspect-ratio: auto; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  position: relative;
  padding: 90px 0;
  background: var(--navy);
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(38,132,255,0.35), transparent 60%);
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: var(--white); font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
.cta-banner p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 36px; font-size: 16.5px; }
.cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #001430; color: rgba(255,255,255,0.7); padding: 80px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 42px; margin-bottom: 20px; }
.footer-brand p { font-size: 14.5px; line-height: 1.7; max-width: 320px; margin-bottom: 22px; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease);
}
.social-row a:hover { background: var(--grad-blue); border-color: transparent; transform: translateY(-3px); }
.footer-col h4 {
  color: var(--white); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 22px; font-family: var(--font-body); font-weight: 600;
}
.footer-col ul { display: grid; gap: 13px; }
.footer-col a { font-size: 14.5px; transition: color .3s; }
.footer-col a:hover { color: var(--blue-light); }
.footer-contact li { display: flex; gap: 12px; font-size: 14.5px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact li strong { color: var(--white); display:block; font-weight: 600; margin-bottom: 2px;}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0; font-size: 13px; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a:hover { color: var(--white); }

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

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-card ul { display: grid; gap: 26px; margin-top: 26px; }
.contact-card li { display: flex; gap: 16px; }
.contact-card .icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--grad-blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.contact-card li strong { display: block; color: var(--navy); font-size: 15.5px; margin-bottom: 3px; }
.contact-card li span, .contact-card li a { font-size: 14.5px; color: var(--ink-soft); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: .3px; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); margin-top: 40px; }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

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

/* ==========================================================================
   About page extras
   ========================================================================== */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.value-card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--paper-alt); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  font-size: 22px;
}
.value-card h3 { font-size: 18px; margin-bottom: 10px; }
.value-card p { font-size: 14.5px; color: var(--ink-soft); }

@media (max-width: 1000px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

.timeline { display: grid; gap: 0; margin-top: 20px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-card { position: relative; padding: 30px 24px; border-radius: var(--radius-md); background: var(--paper); }
.process-card::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 40px; color: rgba(26,116,237,0.25);
  display: block; margin-bottom: 14px;
}
.process-card h4 { font-size: 16px; margin-bottom: 8px; }
.process-card p { font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 1000px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Project detail page
   ========================================================================== */
.project-hero { position: relative; height: 64vh; min-height: 540px; overflow: hidden; }
.project-hero-media { position: absolute; inset: 0; z-index: 0; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,17,40,0.95) 0%, rgba(0,17,40,0.35) 45%, rgba(0,17,40,0.82) 100%);
}
.project-hero .container {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column;
}
.project-hero .breadcrumb {
  color: rgba(255,255,255,0.75);
  padding-top: 132px;
}
.project-hero .breadcrumb a:hover { color: var(--white); }
.project-hero-body {
  margin-top: auto;
  padding: 0 0 44px;
}
.project-hero-dev {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.95); border-radius: 999px; padding: 8px 16px 8px 8px;
  margin-bottom: 18px;
}
.project-hero-dev img { height: 22px; width: auto; }
.project-hero-dev span { font-size: 13px; font-weight: 600; color: var(--navy); }
.project-hero h1 { color: var(--white); font-size: clamp(32px, 5vw, 52px); margin-bottom: 10px; }
.project-hero-loc { color: rgba(255,255,255,0.82); font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.project-hero-loc .pin { color: var(--blue-light); font-size: 12px; }
.project-hero-tags { display: flex; gap: 10px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  background: var(--grad-blue); color: var(--white);
}
.chip.is-ready { background: linear-gradient(135deg, #1fb579, #0c8f5d); }
.chip.ghost { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35); color: var(--white); }

.fact-bar { background: var(--navy); padding: 0 0 34px; }
.fact-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact-bar .fact {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: 18px 20px;
}
.fact-bar .fact span { display: block; font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.fact-bar .fact strong { color: var(--white); font-size: 16px; font-family: var(--font-display); }

.project-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 60px; align-items: start; }
.project-main .block { margin-bottom: 54px; }
.project-main .block:last-child { margin-bottom: 0; }
.project-main .block h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; line-height: 1.3; }
.project-main .block p { color: var(--ink-soft); font-size: 16px; margin-bottom: 16px; }
.block-title { font-size: 20px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.highlight-list { display: grid; gap: 14px; }
.highlight-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.highlight-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--grad-blue);
  color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 1px;
}

.spec-table { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.spec-table > div {
  display: flex; justify-content: space-between; gap: 20px; padding: 14px 20px;
  border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.spec-table > div:last-child { border-bottom: none; }
.spec-table > div:nth-child(odd) { background: var(--paper); }
.spec-table span { color: var(--ink-soft); }
.spec-table strong { color: var(--navy); text-align: right; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }

.developer-note { background: var(--paper); border-radius: var(--radius-md); padding: 32px; }
.developer-note-inner { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.developer-note-inner img { height: 34px; width: auto; flex: none; }
.developer-note-inner p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

.project-aside { position: sticky; top: 110px; display: grid; gap: 24px; }
.enquiry-card { background: var(--navy); border-radius: var(--radius-lg); padding: 32px; color: rgba(255,255,255,0.85); }
.enquiry-head h3 { color: var(--white); font-size: 22px; margin-bottom: 8px; }
.enquiry-head p { font-size: 14px; color: rgba(255,255,255,0.68); margin-bottom: 22px; }
.enquiry-head p strong { color: var(--white); }
.enquiry-form { display: grid; gap: 16px; }
.enquiry-form .field label { color: rgba(255,255,255,0.8); }
.enquiry-form .field input, .enquiry-form .field textarea {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: var(--white);
}
.enquiry-form .field input::placeholder, .enquiry-form .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.enquiry-form .field input:focus, .enquiry-form .field textarea:focus { border-color: var(--blue-light); }
.form-note { font-size: 12.5px; color: rgba(255,255,255,0.55); text-align: center; margin-top: 4px; }
.form-note a { color: var(--blue-light); font-weight: 600; }

.aside-contact { background: var(--paper); border-radius: var(--radius-lg); padding: 26px 28px; }
.aside-contact h4 { font-size: 14px; letter-spacing: .5px; margin-bottom: 16px; color: var(--navy); }
.aside-line { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--navy); font-weight: 600; }
.aside-line:first-of-type { border-top: none; }
.aside-line span { color: var(--ink-soft); font-weight: 500; font-size: 13px; }

@media (max-width: 980px) {
  .project-layout { grid-template-columns: 1fr; }
  .project-aside { position: static; }
  .fact-bar .container { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .project-hero { height: 74vh; min-height: 560px; }
  .project-hero .breadcrumb { padding-top: 112px; font-size: 11px; }
  .fact-bar .container { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* Lightbox for project gallery */
.lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(0,10,26,0.94);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   Forms — shared enquiry/contact form behaviour
   ========================================================================== */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input.has-error, .field textarea.has-error, .field select.has-error { border-color: #e0455a; }
.form-status {
  margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; line-height: 1.5;
}
.form-status.is-error { background: rgba(224,69,90,0.12); color: #b32e40; border: 1px solid rgba(224,69,90,0.3); }
.form-status.is-success { background: rgba(31,181,121,0.12); color: #0c8f5d; border: 1px solid rgba(31,181,121,0.3); }
.btn.is-loading { opacity: .75; cursor: progress; }
.form-success {
  text-align: center; padding: 30px 10px;
}
.form-success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #1fb579, #0c8f5d);
  color: var(--white); font-size: 26px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.form-success h3 { font-size: 20px; margin-bottom: 10px; }
.form-success p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }
.enquiry-card .form-success h3, .enquiry-card .form-success p { color: rgba(255,255,255,0.9); }
.enquiry-card .form-success-icon { margin-left: auto; margin-right: auto; }

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 60px; }
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fade-up.in-view { opacity: 1; transform: translateY(0); }
