/* ==========================================================================
   SOLUSI — Perunding Kewangan Peribadi (Ditadbir urus oleh Sretno Solution)
   Design System based on Brand Color Guide:
   - Navy:  #10243A (Headings, primary text, footer)
   - Teal:  #126A62 (Primary CTA buttons & icons)
   - Gold:  #C8A568 (Logo accents & hairline dividers)
   - Ivory: #F7F4EE (Main content canvas)
   - White: #FFFFFF (Service cards & button text)
   ========================================================================== */

:root {
  --navy: #10243A;
  --navy-deep: #0B1929;
  --navy-soft: #1B334E;
  --navy-muted: #46586C;
  --teal: #126A62;
  --teal-hover: #0D534D;
  --teal-soft: rgba(18, 106, 98, 0.09);
  --gold: #C8A568;
  --gold-light: #DFC38D;
  --gold-soft: rgba(200, 165, 104, 0.16);
  --ivory: #F7F4EE;
  --ivory-deep: #EFE9DC;
  --white: #FFFFFF;
  --border: #E4DEC9;
  --border-strong: #D3C9AF;
  --success: #126A62;
  --warning: #B7791F;
  --danger: #B83232;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 10px rgba(16, 36, 58, 0.04);
  --shadow-md: 0 12px 32px rgba(16, 36, 58, 0.07);
  --shadow-lg: 0 22px 48px rgba(16, 36, 58, 0.11);
  --container: 1220px;
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--ivory);
  color: var(--navy);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 76px 0;
}

.section-compact {
  padding: 52px 0;
}

.section-white {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-navy {
  background-color: var(--navy);
  color: var(--white);
}

/* Eyebrow & Section Headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2.5px;
  background-color: var(--gold);
  border-radius: 2px;
}

.section-navy .eyebrow {
  color: var(--gold-light);
}

h1, h2, h3, h4 {
  margin: 0 0 14px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.38rem);
}

p {
  margin: 0 0 16px;
  color: var(--navy-muted);
}

.section-navy p {
  color: rgba(255, 255, 255, 0.8);
}

.lead {
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(18, 106, 98, 0.22);
}

.btn-primary:hover {
  background-color: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(18, 106, 98, 0.28);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--navy);
  background-color: var(--ivory);
  transform: translateY(-1px);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

/* Top Utility Strip */
.top-strip {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(200, 165, 104, 0.28);
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.top-strip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-strip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, #163250, #0B1929);
  border: 1px solid rgba(200, 165, 104, 0.45);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(16, 36, 58, 0.16);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy);
  line-height: 1.05;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--teal);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 7px 9px;
  font-size: 0.855rem;
  font-weight: 600;
  color: var(--navy-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background-color: rgba(16, 36, 58, 0.06);
}

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background-color: var(--gold);
  border-radius: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  color: var(--navy);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.mobile-nav-list a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--navy);
}

.mobile-nav-list a.active {
  background-color: var(--ivory);
  border-left: 3px solid var(--gold);
}

/* Hero Section (Landing Page with Three.js Canvas) */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 76px;
  background: radial-gradient(circle at 85% 20%, rgba(200, 165, 104, 0.14), transparent 52%),
              radial-gradient(circle at 12% 85%, rgba(18, 106, 98, 0.08), transparent 48%),
              var(--ivory);
  border-bottom: 1px solid var(--border);
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#hero-three-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--white);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.hero-kicker span.gold-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  margin-bottom: 24px;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--navy-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-media {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--navy);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(200, 165, 104, 0.35);
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-quote-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(16, 36, 58, 0.92);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
}

.hero-quote-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Sub-page Header Banner */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #16314F 100%);
  color: var(--white);
  padding: 58px 0 54px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 165, 104, 0.16), transparent 70%);
  pointer-events: none;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-weight: 600;
}

/* Cards & Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-accent-bar {
  width: 32px;
  height: 3px;
  background-color: var(--gold);
  border-radius: 2px;
  margin-bottom: 16px;
}

.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal);
  margin-top: 8px;
}

.card-link:hover {
  text-decoration: underline;
}

/* Target Audience Band */
.audience-band {
  background-color: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 38px 36px;
  border: 1px solid rgba(200, 165, 104, 0.25);
}

.audience-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.audience-pill {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.audience-pill strong {
  display: block;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 4px;
}

.audience-pill span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.74);
}

/* Split Editorial Feature */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.photo-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Steps Timeline */
.steps-list {
  display: grid;
  gap: 20px;
  position: relative;
}

.step-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--navy);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 165, 104, 0.35);
}

.step-item h3 {
  margin-bottom: 6px;
}

.step-item p:last-child {
  margin-bottom: 0;
}

/* Checklist & Lists */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--navy);
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Comparison / Guide Tables */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background-color: var(--navy);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

tr:last-child td {
  border-bottom: none;
}

/* Interactive DSR Calculator & Forms */
.calc-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background-color: var(--ivory);
  color: var(--navy);
  font-size: 0.96rem;
  transition: border-color var(--transition), background-color var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background-color: var(--white);
}

.dsr-meter-card {
  background-color: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 30px;
  border: 1px solid rgba(200, 165, 104, 0.35);
  position: sticky;
  top: 96px;
}

.dsr-meter-card p {
  color: rgba(255, 255, 255, 0.78);
}

.dsr-score {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin: 8px 0;
}

.dsr-bar-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0;
}

.dsr-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background-color: var(--teal);
  transition: width 320ms ease, background-color 320ms ease;
}

.dsr-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.dsr-metrics {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.dsr-metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.dsr-metric-row span {
  color: rgba(255, 255, 255, 0.72);
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--teal);
  font-weight: 600;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--gold);
}

.faq-body {
  padding: 0 24px 20px;
  color: var(--navy-muted);
  border-top: 1px solid var(--ivory-deep);
  padding-top: 14px;
}

/* Callout / Notice Box */
.notice-box {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #15304D 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 46px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid rgba(200, 165, 104, 0.35);
  box-shadow: var(--shadow-lg);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.84);
  padding: 64px 0 32px;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  line-height: 1.55;
}

/* Reveal Animation */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

/* Responsive Breakpoints */
@media (max-width: 1140px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-feature,
  .calc-layout {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section {
    padding: 54px 0;
  }

  .header-cta .btn {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .audience-pills,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .audience-band {
    padding: 28px 22px;
  }

  .step-item {
    grid-template-columns: 44px 1fr;
    padding: 18px;
  }

  .step-num {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .card {
    transition: none;
  }
}
