/* =========================================================
   Prangan Projects — Design System & Site Styles
   ========================================================= */

:root {
  --navy-900: #0a1f38;
  --navy-800: #0e2c4d;
  --navy-700: #143a63;
  --navy-600: #1c4a7a;
  --gold-500: #c99a46;
  --gold-600: #b3823a;
  --gold-100: #f4e8d3;
  --bg: #f8f6f2;
  --surface: #ffffff;
  --surface-alt: #f1ede4;
  --text: #1d2430;
  --text-muted: #5c6470;
  --text-inverse: #f5f3ee;
  --border: #e6e1d3;
  --success: #2f7d5a;

  --font-head: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1240px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(10, 31, 56, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 31, 56, 0.10);
  --shadow-lg: 0 20px 60px rgba(10, 31, 56, 0.16);

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--text-muted); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-600);
  display: inline-block;
}
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--surface-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,.5); color: inherit; }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn-dark { background: var(--navy-900); color: var(--text-inverse); }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--navy-900); }
.brand-mark {
  width: 40px; height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand span.sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--navy-800); position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--gold-500);
  transition: right .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--gold-600); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .phone { font-weight: 600; font-size: .9rem; display: none; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--surface);
    flex-direction: column; justify-content: flex-start; padding: 32px 24px; gap: 24px;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
  color: var(--text-inverse);
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,154,70,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,154,70,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-bottom: 22px; }
.hero p.lead { color: rgba(245,243,238,.78); font-size: 1.1rem; max-width: 520px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(201,154,70,.14);
  border: 1px solid rgba(201,154,70,.35); color: var(--gold-100);
  padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 24px;
}
.hero-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, var(--navy-600), var(--gold-600));
  aspect-ratio: 4/5; box-shadow: var(--shadow-lg);
}
.hero-visual .blueprint {
  position: absolute; inset: 0; opacity: .5;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 32px);
}
.hero-visual .icon-stack { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-visual svg { width: 46%; opacity: .9; }
.hero-float-card {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  background: rgba(10,31,56,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius);
  padding: 18px 20px; display: flex; gap: 16px; align-items: center;
}
.hero-float-card strong { display: block; font-size: 1.4rem; color: #fff; }
.hero-float-card span { font-size: .8rem; color: rgba(245,243,238,.7); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
}

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--navy-900); color: #fff; margin-top: -1px;
}
.stats-bar .grid-4 { padding: 40px 0; gap: 24px; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--gold-500); }
.stat span { font-size: .85rem; color: rgba(245,243,238,.7); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.service-card { padding: 32px 28px; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--gold-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--gold-600);
}
.service-card h3 { font-size: 1.15rem; }
.service-card p { margin-bottom: 0; font-size: .92rem; }

.feature-list { display: grid; gap: 18px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item .dot {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy-900); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feature-item h4 { margin-bottom: 2px; font-size: 1rem; }
.feature-item p { margin: 0; font-size: .9rem; }

/* ---------- Project cards ---------- */
.project-card { overflow: hidden; }
.project-thumb {
  aspect-ratio: 4/3; position: relative; background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.project-thumb svg { width: 40%; opacity: .55; }
.project-thumb .badge {
  position: absolute; top: 14px; left: 14px; background: var(--gold-500); color: var(--navy-900);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px;
}
.project-thumb .badge.status-ongoing { background: #fff; color: var(--navy-900); }
.project-body { padding: 22px 24px; }
.project-body .loc { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.project-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.project-body .meta { display: flex; gap: 16px; font-size: .82rem; color: var(--text-muted); margin: 14px 0; padding-top: 14px; border-top: 1px dashed var(--border); }
.project-link { font-weight: 700; color: var(--navy-800); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.project-link:hover { color: var(--gold-600); }

/* ---------- Filter tabs ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 20px; font-weight: 600; font-size: .88rem; color: var(--text-muted);
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--gold-500); color: var(--navy-900); }
.filter-btn.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ---------- Property (flats) cards ---------- */
.property-card { padding: 0; }
.property-thumb {
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--gold-100), var(--surface-alt));
  display: flex; align-items: center; justify-content: center; position: relative;
}
.property-thumb svg { width: 34%; color: var(--gold-600); opacity: .8; }
.property-thumb .price-tag {
  position: absolute; bottom: 14px; left: 14px; background: var(--navy-900); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem;
}
.property-body { padding: 22px 24px; }
.property-specs { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.spec-chip { background: var(--surface-alt); border-radius: 999px; padding: 6px 14px; font-size: .78rem; font-weight: 600; color: var(--navy-800); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -32px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold-500); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--gold-500);
}
.timeline-item h4 { margin-bottom: 4px; }
.timeline-item .year { font-family: var(--font-head); font-weight: 700; color: var(--gold-600); font-size: .85rem; }

/* ---------- Testimonials ---------- */
.testimonial-card { padding: 28px; position: relative; }
.testimonial-card .quote-mark { font-family: var(--font-head); font-size: 3rem; color: var(--gold-100); position: absolute; top: 12px; right: 20px; line-height: 1; }
.testimonial-card p { font-style: italic; color: var(--text); }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy-900); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head);
}
.testimonial-person strong { display: block; font-size: .92rem; color: var(--navy-900); }
.testimonial-person span { font-size: .78rem; color: var(--text-muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg); padding: 56px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,154,70,.35), transparent 70%);
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(245,243,238,.75); margin-bottom: 0; max-width: 460px; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,154,70,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(201,154,70,.08) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at 20% 20%, black 0%, transparent 70%);
}
.page-header h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 12px; position: relative; }
.breadcrumb { display: flex; gap: 8px; font-size: .88rem; color: rgba(245,243,238,.7); position: relative; }
.breadcrumb a:hover { color: var(--gold-500); }
.page-header p { color: rgba(245,243,238,.75); max-width: 560px; position: relative; margin-top: 10px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--navy-900); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,154,70,.18);
}
.form-field .error { font-size: .78rem; color: #b3413a; display: none; }
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea { border-color: #b3413a; }
.form-field.invalid .error { display: block; }
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: 10px; }
.form-success {
  display: none; align-items: center; gap: 12px; background: #eaf5ef; border: 1px solid #bfe3cf;
  color: var(--success); padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 20px;
}
.form-success.show { display: flex; }

/* ---------- Contact info cards ---------- */
.info-card { padding: 26px; display: flex; gap: 16px; align-items: flex-start; }
.info-card .service-icon { margin-bottom: 0; flex-shrink: 0; }
.info-card h4 { margin-bottom: 4px; font-size: 1rem; }
.info-card p { margin: 0; font-size: .9rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(245,243,238,.8); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(245,243,238,.6); font-size: .9rem; margin-top: 16px; max-width: 320px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.social-row a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: .9rem; color: rgba(245,243,238,.7); }
.footer-col a:hover { color: var(--gold-500); }
.footer-col .contact-line { display: flex; gap: 10px; font-size: .88rem; color: rgba(245,243,238,.7); align-items: flex-start; }
.newsletter-form { display: flex; gap: 8px; margin-top: 6px; }
.newsletter-form input {
  flex: 1; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff;
}
.newsletter-form input::placeholder { color: rgba(245,243,238,.4); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: .82rem; color: rgba(245,243,238,.5); flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--gold-500); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-500); border: none; display: flex; align-items: center;
  justify-content: center; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: all .25s ease; z-index: 90;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- 404 ---------- */
.not-found { padding: 140px 0; text-align: center; }
.not-found .code { font-family: var(--font-head); font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--gold-100); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 24px; flex-direction: column; align-items: flex-start; }
  .stats-bar .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
