/* ==========================================================================
   Aabha Financial Services — Design Tokens
   ========================================================================== */

:root {
  /* Color */
  --paper:        #F5F3ED;
  --paper-alt:    #ECE8DD;
  --ink:          #1B2A26;
  --ink-soft:     #4B5B56;
  --ink-faint:    #7C8A85;
  --brass:        #A9822F;
  --brass-soft:   #C9A968;
  --brass-pale:   #EFE3C8;
  --teal-deep:    #142722;
  --teal-deep-2:  #0F1F1B;
  --line:         #D9D3C3;
  --line-dark:    rgba(245, 243, 237, 0.16);

  /* Type */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }

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

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
  display: block;
}
.eyebrow.light { color: var(--brass-soft); }

/* ==========================================================================
   Top bar
   ========================================================================== */

.topbar {
  background: var(--teal-deep-2);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-item { color: rgba(245,243,237,0.82); }
.topbar-item:hover { color: var(--brass-soft); }
.topbar-sep { opacity: 0.35; margin: 0 8px; }
.topbar-left, .topbar-right { display: flex; align-items: center; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 237, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.scrolled { box-shadow: 0 8px 24px rgba(20, 39, 34, 0.06); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  transition: padding 0.3s var(--ease);
}
.nav.scrolled .nav-inner { padding: 14px var(--gutter); }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.97rem;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: clamp(72px, 12vw, 140px) var(--gutter) 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-content { max-width: 620px; }

.hero-portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
}
.hero-portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 32px 64px -24px rgba(20, 39, 34, 0.35);
}
.hero-portrait-frame::before {
  content: '';
  position: absolute;
  top: 18px; left: 18px;
  right: -18px; bottom: -18px;
  border: 1px solid var(--brass);
  border-radius: 4px;
  z-index: -1;
}
.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.92) contrast(1.03);
}
.hero-portrait-tag {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
  border-radius: 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  box-shadow: 0 12px 28px -10px rgba(20, 39, 34, 0.5);
}
.hero-tag-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--brass-soft);
  line-height: 1;
}
.hero-tag-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: rgba(245,243,237,0.75);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  overflow: hidden;
}
.hero-title .line {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  animation: line-up 0.9s var(--ease) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.05s; }
.hero-title .line:nth-child(2) { animation-delay: 0.18s; }
.hero-title .line:nth-child(3) { animation-delay: 0.31s; }
.hero-title .accent { color: var(--brass); font-style: italic; }

@keyframes line-up {
  to { transform: translateY(0); opacity: 1; }
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 560px;
  margin-top: 28px;
}
.hero-sub strong { color: var(--ink); }

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brass); }

.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-ghost-dark { border: 1px solid rgba(245,243,237,0.4); color: var(--paper); }
.btn-ghost-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.hero-stats {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  padding: 32px 0;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-figure {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.stat-plus {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--brass);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 8px;
  max-width: 170px;
}
.stat-link { transition: transform 0.25s var(--ease); }
.stat-link:hover { transform: translateY(-2px); }
.stat-link:hover .stat-num { color: var(--brass); }
.stat-arrow {
  display: inline-block;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.stat-link:hover .stat-arrow { opacity: 1; transform: translateX(0); }
.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--line);
}

/* ==========================================================================
   About
   ========================================================================== */

.about { padding: clamp(72px, 10vw, 120px) 0; }

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.about-visual { position: relative; }
.about-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(20, 39, 34, 0.35);
}
.about-photo::before {
  content: '';
  position: absolute;
  top: 16px; left: 16px;
  right: -16px; bottom: -16px;
  border: 1px solid var(--brass);
  border-radius: 4px;
  z-index: -1;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 0.6s var(--ease);
}
.about-visual:hover .about-photo img { transform: scale(1.03); }

.about-caption {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.about-caption-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.about-caption-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0;
}

.about-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 20px;
  max-width: 460px;
}
.about-copy p { max-width: 520px; }
.about-copy strong { color: var(--ink); }

.about-quote {
  margin: 32px 0;
  padding-left: 24px;
  border-left: 2px solid var(--brass);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
  max-width: 480px;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services { padding: clamp(72px, 10vw, 120px) 0; background: var(--paper-alt); }

.services h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  max-width: 560px;
  margin-bottom: 48px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--paper-alt);
  padding: 36px 30px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-card:hover {
  background: var(--paper);
  transform: translateY(-4px);
}
.service-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brass);
  display: block;
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.service-card p { font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   Planning Wheel
   ========================================================================== */

.wheel-section {
  background: var(--teal-deep-2);
  color: var(--paper);
  padding: clamp(72px, 10vw, 120px) 0;
}
.wheel-section h2 {
  color: var(--paper);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  max-width: 620px;
}
.wheel-intro {
  max-width: 560px;
  color: rgba(245,243,237,0.65);
  margin-top: 18px;
}

.wheel-wrap {
  position: relative;
  max-width: 640px;
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wheel-svg { width: 100%; height: auto; overflow: visible; }

.wheel-node {
  cursor: pointer;
}
.wheel-node circle {
  fill: var(--teal-deep);
  stroke: rgba(245,243,237,0.25);
  stroke-width: 1;
  transition: fill 0.25s var(--ease), stroke 0.25s var(--ease), r 0.25s var(--ease);
}
.wheel-node text {
  fill: rgba(245,243,237,0.75);
  font-family: var(--font-body);
  font-size: 12px;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  transition: fill 0.25s var(--ease);
}
.wheel-node:hover circle,
.wheel-node.active circle {
  fill: var(--brass);
  stroke: var(--brass-soft);
}
.wheel-node:hover text,
.wheel-node.active text { fill: var(--teal-deep-2); font-weight: 600; }

.wheel-ring {
  fill: none;
  stroke: rgba(245,243,237,0.14);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.wheel-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 128px; height: 128px;
  border-radius: 50%;
  border: 1px solid rgba(169, 130, 47, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.wheel-center-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--brass-soft);
  text-transform: uppercase;
  line-height: 1.5;
}

.wheel-detail {
  display: none;
}

@media (min-width: 860px) {
  .wheel-detail {
    display: block;
    position: absolute;
    right: -260px;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
  }
  .wheel-wrap { margin-right: 130px; }
}

.wheel-detail-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 8px;
}
.wheel-detail h4 {
  color: var(--paper);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.wheel-detail p {
  color: rgba(245,243,237,0.65);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   Why
   ========================================================================== */

.why { padding: clamp(72px, 10vw, 120px) 0; }
.why h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); max-width: 560px; margin-bottom: 48px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.why-item { border-top: 1px solid var(--line); padding-top: 20px; }
.why-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brass);
  display: block;
  margin-bottom: 14px;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-item p { font-size: 0.88rem; margin: 0; }

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 9vw, 100px) 0;
}
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: var(--paper); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 16px; }
.cta-inner p { color: rgba(245,243,237,0.65); font-size: 1.05rem; margin-bottom: 8px; }
.cta-inner .hero-actions { justify-content: center; margin-top: 28px; }

/* ==========================================================================
   Map / Visit Us
   ========================================================================== */

.map-section { padding: clamp(72px, 10vw, 120px) 0; background: var(--paper-alt); }

.map-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.map-copy h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  margin: 0 0 18px;
  max-width: 420px;
}
.map-copy p { max-width: 380px; }

.map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(15%) contrast(1.02);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--teal-deep-2);
  color: rgba(245,243,237,0.75);
  padding: clamp(56px, 8vw, 88px) 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand-mark {
  border-color: rgba(245,243,237,0.4);
  color: var(--paper);
  margin-bottom: 16px;
}
.footer-tagline { font-size: 0.88rem; max-width: 240px; color: rgba(245,243,237,0.55); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col p { font-size: 0.88rem; margin: 0 0 8px; color: rgba(245,243,237,0.65); }
.footer-col a:hover { color: var(--brass-soft); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--gutter) 0;
  font-size: 0.78rem;
  color: rgba(245,243,237,0.4);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; width: min(100%, 240px); margin-bottom: 24px; }
  .hero-content { max-width: 100%; }
}

@media (max-width: 720px) {
  .topbar-left { display: none; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -12px 0 32px rgba(0,0,0,0.08);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 24px; }
  .stat-divider { display: none; }
}
