/* ==========================================================================
   Singabakho Property Solutions - Main Stylesheet
   Brand: Royal blue + gold, derived from the company logo.
   ========================================================================== */

:root {
  --blue-900: #0b2350;
  --blue-800: #10306b;
  --blue-700: #14418f;
  --blue-600: #1a52b4;
  --blue-050: #eef3fb;
  --gold-600: #b7862a;
  --gold-500: #d4a017;
  --gold-400: #e8bb4c;
  --ink: #17202f;
  --body: #4a5568;
  --line: #e3e8f0;
  --soft: #f6f8fc;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(11, 35, 80, .07);
  --shadow: 0 10px 30px rgba(11, 35, 80, .10);
  --shadow-lg: 0 24px 60px rgba(11, 35, 80, .18);
  --grad-brand: linear-gradient(135deg, #0b2350 0%, #14418f 55%, #1a52b4 100%);
  --grad-gold: linear-gradient(135deg, #b7862a 0%, #d4a017 50%, #e8bb4c 100%);
  --font-head: "Outfit", "Segoe UI", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; height: auto; }

a { color: var(--blue-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

ul { margin: 0 0 1rem; padding-left: 1.1rem; }

.lead { font-size: 1.125rem; color: var(--body); }
.center { text-align: center; max-width: 780px; margin: 0 auto; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--soft); }

.icon {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--lg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--grad-gold); color: #241a00; box-shadow: var(--shadow-sm); }
.btn--primary:hover { color: #241a00; box-shadow: var(--shadow); }

.btn--solid { background: var(--blue-800); color: var(--white); }
.btn--solid:hover { background: var(--blue-700); color: var(--white); }

.btn--outline { background: transparent; color: var(--blue-800); border-color: var(--blue-800); }
.btn--outline:hover { background: var(--blue-800); color: var(--white); }

.btn--ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: var(--white); color: var(--blue-800); }

/* ---------------------------------------------------------------- Top bar */
.topbar {
  background: var(--blue-900);
  color: rgba(255,255,255,.85);
  font-size: .875rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.topbar-list {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.topbar-list li { display: flex; align-items: center; gap: .4rem; }
.topbar a { color: inherit; display: flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--gold-400); }
.topbar .icon { width: 16px; height: 16px; }
.topbar-social { display: flex; gap: .75rem; }
.topbar-social a { color: inherit; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, padding .25s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.nav-brand { display: flex; align-items: center; }
.nav-brand .logo { height: 58px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  padding: .35rem 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  height: 3px; width: 0;
  border-radius: 3px;
  background: var(--grad-gold);
  transition: width .25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--blue-700); }

.header-cta { padding: .7rem 1.4rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  margin-left: auto;
  background: var(--blue-050);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px; width: 22px;
  margin-inline: auto;
  background: var(--blue-800);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------ Mobile nav */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 35, 80, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 70;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(330px, 86vw);
  background: var(--white);
  padding: 5rem 1.75rem 2rem;
  transform: translateX(105%);
  transition: transform .3s ease;
  z-index: 80;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav a {
  display: block;
  padding: .9rem 0;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
}
.mobile-nav a[aria-current="page"] { color: var(--blue-700); }
.mobile-nav .btn { width: 100%; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 78vh, 760px);
  background: var(--grad-brand);
  color: var(--white);
  overflow: hidden;
  padding: 5rem 0 6rem;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 6s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,35,80,.94) 0%, rgba(16,48,107,.86) 45%, rgba(20,65,143,.62) 100%);
}
.hero .container { position: relative; z-index: 2; max-width: 860px; }
.hero h1 { color: var(--white); }
.hero h2 {
  color: rgba(255,255,255,.92);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 400;
  font-family: var(--font-body);
  max-width: 44rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 0;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  color: rgba(255,255,255,.9);
  font-size: .95rem;
}
.hero-trust li { display: flex; align-items: center; gap: .5rem; }
.hero-trust .icon { color: var(--gold-400); }

.hero-controls {
  position: absolute;
  left: 0; right: 0; bottom: 1.75rem;
  z-index: 3;
}
.hero-controls .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hero-dots { display: flex; gap: .5rem; }
.hero-dots button {
  width: 30px; height: 5px;
  border: 0; padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .25s ease, width .25s ease;
}
.hero-dots button[aria-selected="true"] { background: var(--gold-500); width: 48px; }
.hero-arrows { display: flex; gap: .6rem; }
.hero-arrows button {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.1);
  color: var(--white);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.hero-arrows button:hover { background: var(--white); color: var(--blue-800); }

/* --------------------------------------------------------- Page banners */
.page-banner {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--grad-brand);
  color: var(--white);
  overflow: hidden;
}
.page-banner > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .28;
}
.page-banner .container { position: relative; z-index: 2; max-width: 820px; }
.page-banner h1 { color: var(--white); margin-bottom: .4rem; }
.page-banner p { color: rgba(255,255,255,.9); font-size: 1.1rem; }
.breadcrumb {
  display: flex;
  gap: .5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}
.breadcrumb a { color: var(--gold-400); }

/* ---------------------------------------------------------------- Grids */
.grid { display: grid; gap: 1.75rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* --------------------------------------------------------- Media blocks */
.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grad-brand);
  box-shadow: var(--shadow);
}
.media::before { content: ""; display: block; }
.media--16x9::before { padding-top: 56.25%; }
.media--4x3::before { padding-top: 75%; }
.media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------- Cards */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .media { border-radius: 0; box-shadow: none; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .35rem; }
.card-body .btn { align-self: flex-start; margin-top: .75rem; }
.card-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.card-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .4rem;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--grad-gold);
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.icon-badge {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: var(--blue-050);
  color: var(--blue-700);
}

.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: -18px; left: 1.5rem;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
}

.stat-band { background: var(--grad-brand); color: var(--white); }
.stat {
  text-align: center;
  padding: 1rem;
  color: rgba(255,255,255,.88);
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold-400);
}

.quote {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.quote cite { font-style: normal; font-weight: 600; color: var(--blue-800); }

/* ------------------------------------------------------------- CTA band */
.cta-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grad-brand);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  text-align: center;
}
.cta-band > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .25;
}
.cta-inner { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); }

/* ------------------------------------------------------------ Accordion */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin-bottom: .75rem; }
.accordion > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
}
.accordion > button .icon { transition: transform .25s ease; color: var(--blue-700); }
.accordion > button[aria-expanded="true"] .icon { transform: rotate(45deg); }
.accordion .panel { display: none; padding: 0 1.25rem 1.25rem; }
.accordion .panel p { margin: 0; }
.accordion.is-open .panel { display: block; }

/* ---------------------------------------------------------------- Forms */
form { background: var(--white); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
label { font-weight: 600; color: var(--ink); font-size: .95rem; }
input, select, textarea {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(26, 82, 180, .15);
}
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--body); }
.form-status { margin: .75rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.is-ok { color: #1a7f4b; }
.form-status.is-error { color: #b3261e; }

.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.newsletter { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.newsletter input[type="email"] { flex: 1 1 200px; }
.newsletter .form-status { flex: 1 1 100%; margin: 0; }

.info-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.info-card ul { list-style: none; padding: 0; margin: 0; }
.info-card li {
  display: flex;
  gap: .85rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.info-card li:last-child { border-bottom: 0; }
.info-card .icon { color: var(--blue-700); margin-top: .3rem; }

.map-frame {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}

.legal h2 { margin-top: 2rem; }
.legal h2:first-child { margin-top: 0; }

/* --------------------------------------------------------------- Footer */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.78);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
}
.footer-grid h3 { color: var(--white); font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .3rem 0; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--gold-400); }
.footer-brand .logo {
  height: 74px; width: auto;
  background: var(--white);
  border-radius: 12px;
  padding: .5rem .75rem;
  margin-bottom: 1rem;
}
.footer-brand strong { color: var(--gold-400); }
.footer-social { display: flex; gap: .75rem; }
.site-footer .newsletter input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: var(--white); }
.site-footer .newsletter input::placeholder { color: rgba(255,255,255,.6); }
.site-footer .form-status { color: var(--gold-400); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .9rem;
}
.footer-bottom ul { display: flex; gap: 1.25rem; }
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------ Floating widgets */
.float-wa, .float-top {
  position: fixed;
  right: 18px;
  z-index: 55;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .2s ease, opacity .25s ease, visibility .25s ease;
}
.float-wa { bottom: 18px; background: #25d366; color: #073b21; }
.float-wa:hover { transform: translateY(-3px); color: #073b21; }
.float-top {
  bottom: 84px;
  background: var(--blue-800);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
}
.float-top.is-visible { opacity: 1; visibility: visible; }
.float-top:hover { transform: translateY(-3px); }

/* --------------------------------------------------------- Cookie banner */
.cookie-banner {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 90;
  width: min(420px, calc(100% - 36px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
}
.cookie-banner p { margin: 0 0 .75rem; font-size: .92rem; }
.cookie-banner .btn { padding: .6rem 1.2rem; font-size: .95rem; }

/* ------------------------------------------------------------- Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-list { gap: .25rem .9rem; font-size: .8rem; }
  .nav-brand .logo { height: 46px; }
  .hero { min-height: 560px; padding: 3.5rem 0 5rem; }
  .hero-arrows { display: none; }
  .map-frame { height: 320px; }
  .float-wa, .float-top { width: 48px; height: 48px; }
  .float-top { bottom: 76px; }
}

@media print {
  .site-header, .mobile-nav, .topbar, .float-wa, .float-top, .cookie-banner, .hero-controls { display: none !important; }
  body { color: #000; }
}
