/* Believer Renovation Singapore
   "Corporate Trust" design system (docs/prompt-design.md), recoloured to the logo:
   navy #03235C (house + BELIEVER), red #CC0A15 (R + RENOVATION). */

:root {
  /* brand */
  --navy-950: #021640;
  --navy-900: #03235C;
  --navy-700: #0B3A8C;
  --navy-100: #E3EAF6;
  --navy-50: #F1F5FB;
  --red-600: #CC0A15;
  --red-700: #A8080F;
  --red-50: #FDECEE;

  /* semantic */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --primary: var(--navy-900);
  --secondary: var(--red-600);
  --text: #0F172A;
  --text-muted: #526075; /* 6.1:1 on --bg */
  --border: #E2E8F0;
  --success: #047857;
  --danger: #B91C1C;

  --grad-primary: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  --grad-text: linear-gradient(100deg, var(--navy-700) 0%, var(--red-600) 100%);
  --grad-dark: linear-gradient(135deg, var(--navy-900), var(--navy-950));

  /* coloured shadows */
  --shadow-soft: 0 4px 20px -2px rgba(3, 35, 92, .10);
  --shadow-hover: 0 10px 25px -5px rgba(3, 35, 92, .16), 0 8px 10px -6px rgba(3, 35, 92, .10);
  --shadow-btn: 0 4px 14px 0 rgba(3, 35, 92, .30);
  --shadow-btn-red: 0 4px 14px 0 rgba(204, 10, 21, .30);

  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 20px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; color: var(--text); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

.sprite { position: absolute; }
.icon {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-lg);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-600);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-600); box-shadow: 0 0 0 4px var(--red-50); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red-600); color: #fff; box-shadow: var(--shadow-btn-red); }
.btn-primary:hover { background: var(--red-700); box-shadow: 0 8px 20px 0 rgba(204, 10, 21, .35); }
.btn-secondary { background: var(--surface); color: var(--navy-900); border-color: var(--border); }
.btn-secondary:hover { background: var(--navy-50); border-color: #CBD5E1; }
.btn-white { background: #fff; color: var(--navy-900); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { min-height: 44px; padding: .5rem 1.1rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-arrow { transition: transform .2s var(--ease); }
.btn:hover .icon-arrow, .service-link:hover .icon-arrow { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand img { height: 74px; width: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; color: var(--navy-900); cursor: pointer;
}
.site-nav {
  position: absolute; inset: 88px 0 auto 0;
  display: none; flex-direction: column; gap: .25rem;
  padding: 1rem; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-soft);
}
.site-nav.is-open { display: flex; }
.site-nav a:not(.btn) {
  padding: .75rem .5rem; font-weight: 500; color: var(--text); text-decoration: none; border-radius: var(--radius-lg);
}
.site-nav a:not(.btn):hover { color: var(--red-600); }
.site-nav .btn { margin-top: .5rem; }
@media (min-width: 900px) {
  .header-inner { height: 100px; }
  .brand img { height: 86px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 1.75rem;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .site-nav a:not(.btn) { padding: .5rem 0; }
  .site-nav .btn { margin: 0 0 0 .5rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0 4rem; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.blob-navy { width: 520px; height: 520px; top: -180px; right: -120px; background: #9DB4E3; opacity: .45; }
.blob-red { width: 380px; height: 380px; bottom: -160px; left: -140px; background: #F5A3A8; opacity: .35; }
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero h1 { margin: 1rem 0 1.25rem; font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 800; }
.lead { max-width: 36rem; font-size: 1.125rem; color: var(--text-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; font-size: .9375rem; font-weight: 600; color: var(--navy-900); }
.hero-proof li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-proof .icon { width: 1.1rem; height: 1.1rem; color: var(--red-600); }

.hero-visual { position: relative; perspective: 2000px; }
.hero-card {
  border-radius: var(--radius-2xl); overflow: hidden; background: #fff; padding: .5rem;
  box-shadow: 0 30px 60px -20px rgba(3, 35, 92, .35), var(--shadow-soft);
  transform: rotateX(5deg) rotateY(-12deg);
  transition: transform .5s var(--ease);
}
.hero-card:hover { transform: rotateX(2deg) rotateY(-8deg); }
.hero-card img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; background: #fff; border: 1px solid #EEF2F7; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover); animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .9375rem; color: var(--navy-900); line-height: 1.2; }
.float-card small { display: block; font-size: .8125rem; color: var(--text-muted); }
.float-card-top { top: 1.25rem; left: -.5rem; }
.float-card-bottom { bottom: -1rem; right: .5rem; animation-delay: -3s; }
.badge-icon, .badge-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-xl);
}
.badge-icon { background: var(--red-50); color: var(--red-600); }
.badge-num {
  background: var(--grad-primary); color: #fff; font-weight: 800; font-size: 1.25rem;
  box-shadow: 0 0 20px rgba(3, 35, 92, .45);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (min-width: 1024px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .float-card-top { left: -2rem; }
  .float-card-bottom { right: -1rem; }
}

/* Certifications */
.certs { padding: 2.5rem 0; background: var(--surface); border-block: 1px solid var(--border); }
.certs-title {
  text-align: center; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.75rem;
}
.cert-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; align-items: center; justify-items: center;
}
.cert-list li { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.cert-list img { height: 64px; width: auto; }
.cert-list span { font-size: .8125rem; font-weight: 600; color: var(--navy-900); }
.cert-list li:last-child { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .cert-list { grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .cert-list li:last-child { grid-column: auto; }
  .cert-list img { height: 72px; }
}

/* Sections */
.section { padding: 4rem 0; }
.section-tint { background: linear-gradient(180deg, var(--navy-50), #fff); }
@media (min-width: 640px) { .section { padding: 5rem 0; } }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }
.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { margin-top: .75rem; font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 700; }
.section-sub { margin-top: 1rem; color: var(--text-muted); font-size: 1.0625rem; }

/* Services */
.service-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid #EEF2F7; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-100); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 2.25rem 1.5rem 1.5rem; }
.service-icon {
  position: absolute; top: -26px; left: 1.5rem;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-xl);
  background: var(--grad-primary); color: #fff; border: 3px solid #fff; box-shadow: var(--shadow-btn);
}
.service-card:nth-child(even) .service-icon { background: var(--red-600); box-shadow: var(--shadow-btn-red); }
.service-body h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.service-body p { margin-top: .5rem; font-size: .9375rem; color: var(--text-muted); flex: 1; }
.service-link {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.25rem; min-height: 44px; align-self: flex-start;
  font-weight: 600; font-size: .9375rem; color: var(--red-600); text-decoration: none;
}
.service-link .icon { width: 1rem; height: 1rem; }

/* Why us */
.why-grid { display: grid; gap: 3rem; align-items: center; }
.why-visual { position: relative; perspective: 2000px; }
.why-visual img {
  border-radius: var(--radius-2xl); aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  box-shadow: 0 30px 60px -20px rgba(3, 35, 92, .35);
  transform: rotateY(6deg); transition: transform .5s var(--ease);
}
.why-visual:hover img { transform: rotateY(2deg); }
.why-stamp {
  position: absolute; right: 1rem; bottom: -1.25rem;
  display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem;
  background: var(--grad-dark); color: #fff; border-radius: var(--radius-xl);
  font-weight: 700; line-height: 1.25; box-shadow: var(--shadow-hover);
}
.why-stamp .icon { width: 1.75rem; height: 1.75rem; color: #FF8A91; }
.why-copy h2 { margin: .75rem 0 2rem; font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 700; }
.why-list { display: grid; gap: 1.5rem; }
.why-list li { display: flex; gap: 1rem; }
.why-check {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-100); color: var(--navy-900);
}
.why-check .icon { width: 1.1rem; height: 1.1rem; stroke-width: 3; }
.why-list h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.why-list p { margin-top: .25rem; color: var(--text-muted); max-width: 34rem; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* Contact */
.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; gap: 2rem; } }
.contact-info {
  position: relative; overflow: hidden;
  padding: 2rem 1.5rem; border-radius: var(--radius-2xl);
  background: var(--grad-dark); color: #fff;
}
.contact-info::after {
  content: ""; position: absolute; width: 280px; height: 280px; right: -100px; bottom: -100px;
  border-radius: 50%; background: var(--red-600); opacity: .35; filter: blur(60px);
}
.contact-info h3 { color: #fff; font-size: 1.375rem; font-weight: 700; margin-bottom: 1.75rem; }
.contact-info ul { position: relative; z-index: 1; display: grid; gap: 1.5rem; }
.contact-info li { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .12); color: #fff;
}
.contact-info small { display: block; font-size: .8125rem; color: #C7D2E6; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-info a { color: #fff; font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-info a:hover { text-decoration: underline; }
@media (min-width: 640px) { .contact-info { padding: 2.5rem; } }

.contact-form {
  padding: 1.5rem; background: var(--surface); border: 1px solid #EEF2F7;
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) { .contact-form { padding: 2.5rem; } }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .4rem; font-size: .875rem; font-weight: 600; color: #334155; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem 1rem;
  font: 400 1rem/1.5 var(--font); color: var(--text);
  background: #fff; border: 1px solid #CBD5E1; border-radius: var(--radius-lg);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #8391A6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(11, 58, 140, .2);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin-top: .3rem; font-size: .8125rem; font-weight: 500; color: var(--danger); }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-weight: 600; font-size: .9375rem; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }

/* Final CTA */
.cta { position: relative; overflow: hidden; padding: 4rem 0; background: var(--grad-dark); color: #fff; }
.cta::before {
  content: ""; position: absolute; width: 480px; height: 480px; top: -240px; right: 10%;
  border-radius: 50%; background: var(--red-600); opacity: .25; filter: blur(90px);
}
.cta-inner { position: relative; display: flex; flex-direction: column; gap: 1.75rem; }
.cta h2 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
.cta p { margin-top: .5rem; color: #C7D2E6; font-size: 1.0625rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) { .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Footer */
.site-footer { padding: 3.5rem 0 1.5rem; background: var(--surface); border-top: 1px solid var(--border); font-size: .9375rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-logo { height: 72px; width: auto; margin-bottom: 1rem; }
.site-footer p, .site-footer li { color: var(--text-muted); }
.footer-title { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-900); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .5rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; word-break: break-word; }
.site-footer a:hover { color: var(--red-600); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer-bottom {
  display: flex; flex-direction: column; gap: .25rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .875rem;
}
.credit a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--navy-900); text-decoration: underline; text-underline-offset: 3px; }
.credit a:hover { color: var(--red-600); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
/* keep the footer bottom line clear of the floating action stack (it sits ~68px from the right edge) */
@media (max-width: 1399px) { .footer-bottom { padding-right: 4.75rem; } }

/* Top bar */
.topbar { background: var(--navy-950); color: #DCE4F2; font-size: .8125rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar-info { display: flex; align-items: center; gap: .25rem 1.5rem; flex-wrap: wrap; }
.topbar-info li, .topbar-badge { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { color: #FF9AA0; }
.topbar .icon { width: .95rem; height: .95rem; color: #FF8A91; }
.topbar-info li:nth-child(n+2), .topbar .topbar-badge { display: none; }
@media (min-width: 640px) { .topbar-info li:nth-child(2) { display: inline-flex; } }
@media (min-width: 1024px) { .topbar-info li:nth-child(3) { display: inline-flex; } }
@media (min-width: 1280px) { .topbar .topbar-badge { display: inline-flex; font-weight: 600; } }

/* Floating actions: back to top, call, WhatsApp */
.fab-stack {
  position: fixed; z-index: 40;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.fab {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 0; color: #fff; cursor: pointer;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab .icon { width: 1.4rem; height: 1.4rem; }
.fab-call { background: var(--red-600); box-shadow: var(--shadow-btn-red); }
.fab-wa { background: #128C4A; box-shadow: 0 8px 24px -4px rgba(18, 140, 74, .5); }
.fab-top { width: 44px; height: 44px; background: #fff; color: var(--navy-900); border: 1px solid var(--border); box-shadow: var(--shadow-hover); }
.fab-top[hidden] { display: none; }
.fab-call { animation: ring 4s ease-in-out infinite; }
@keyframes ring { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-12deg); } 94% { transform: rotate(12deg); } 97% { transform: rotate(-6deg); } }

/* Scroll reveal (enabled by JS only) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hero-card, .why-visual img { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}
