/* ══════════════════════════════════════════
   BUDGETWISE — GLOBAL STYLES
   ══════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ── */
:root {
  --ink:        #0f0e0c;
  --cream:      #f9f5ee;
  --warm:       #f0e8d8;
  --accent:     #c8502a;
  --accent2:    #2a6e4f;
  --gold:       #d4a847;
  --muted:      #8a8070;
  --card:       #ffffff;
  --income-c:   #2a6e4f;
  --expense-c:  #c8502a;
  --nav-h:      68px;
}

/* ── SCROLL BEHAVIOUR ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  padding-top: var(--nav-h); /* offset for sticky nav */
}


/*  NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--nav-h);
  background: var(--ink);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  border-bottom-color: var(--gold);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }

/* Nav links list */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: 1.5rem;
}

.nav-link {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(249,245,238,0.65);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cream);
  background: rgba(255,255,255,0.08);
}

.nav-link.active {
  color: var(--gold);
}

/* Right side */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.nav-date {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: #b04020;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ── */
@media (max-width: 820px) {
  .nav-hamburger { display: flex; }
  .nav-date { display: none; }
  .nav-right { gap: 0.8rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #1a1916;
    padding: 1rem;
    gap: 0.25rem;
    margin-left: 0;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.75rem 1rem; font-size: 0.9rem; }
}


/* HERO SECTION*/
.hero {
  background: var(--ink);
  color: var(--cream);
  padding: 6rem 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

/* Subtle background texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(212,168,71,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(200,80,42,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 540px;
  flex-shrink: 0;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(212,168,71,0.15);
  color: var(--gold);
  border: 1px solid rgba(212,168,71,0.3);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}
.hero-title em {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(249,245,238,0.65);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.hero-btn-primary:hover {
  background: #b04020;
  transform: translateY(-2px);
}

.hero-btn-ghost {
  border: 1.5px solid rgba(249,245,238,0.25);
  color: var(--cream);
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.hero-btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,168,71,0.06);
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hs-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}
.hs-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/* Hero visual card */
.hero-visual {
  flex-shrink: 0;
  position: relative;
}

.hv-card {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(212,168,71,0.25);
  border-radius: 8px;
  padding: 2rem 2.2rem;
  width: 300px;
  backdrop-filter: blur(10px);
}

.hv-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
}

.hv-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1.4rem;
}

.hv-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.hv-fill {
  width: 69%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--gold));
  border-radius: 2px;
}

.hv-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}
.hv-pos { color: var(--accent2); font-weight: 500; }
.hv-neg { color: var(--accent);  font-weight: 500; }

@media (max-width: 820px) {
  .hero { flex-direction: column; padding: 4rem 1.5rem 3rem; gap: 2.5rem; text-align: center; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 100%; }
  .hv-card { width: 100%; }
}


/* FEATURES STRIP*/
.features-strip {
  background: var(--warm);
  border-top: 1.5px solid rgba(0,0,0,0.06);
  border-bottom: 1.5px solid rgba(0,0,0,0.06);
  padding: 2rem 2rem;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-right: 1px solid rgba(0,0,0,0.08);
}
.feature-item:last-child { border-right: none; }

.fi-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.fi-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fi-text strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.fi-text span {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .features-inner { grid-template-columns: 1fr 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .feature-item:nth-child(odd) { border-right: 1px solid rgba(0,0,0,0.08); }
  .feature-item:last-child, .feature-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

@media (max-width: 500px) {
  .features-inner { grid-template-columns: 1fr; }
  .feature-item { border-right: none !important; }
}


/* APP SECTION LABEL */
.app-section-label {
  padding: 2.5rem 2rem 0;
}
.asl-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.asl-line {
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.1);
}
.asl-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}


/* PAGE GRID  */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: auto auto auto;
  gap: 1.8rem;
}

/* ── MAIN PANEL ── */
.main-panel {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* ── SIDEBAR ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* ── SHARED PANEL CARD ── */
.panel {
  background: var(--card);
  border-radius: 4px;
  border: 1.5px solid rgba(0,0,0,0.08);
  padding: 1.8rem;
}

.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1.5px solid var(--warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Export desc */
.export-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (max-width: 820px) {
  .page { grid-template-columns: 1fr; }
  .sidebar { grid-row: 2; }
}


/* ABOUT SECTION */
.about-section {
  background: var(--ink);
  color: var(--cream);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,71,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Heading */
.about-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.about-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.about-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.about-title em {
  color: var(--gold);
  font-style: italic;
}

/* Story + values grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;
}

.about-story h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.about-story p {
  font-size: 0.95rem;
  color: rgba(249,245,238,0.72);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-story strong { color: var(--cream); }

/* Value cards */
.about-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  transition: border-color 0.2s, background 0.2s;
}
.value-card:hover {
  border-color: rgba(212,168,71,0.3);
  background: rgba(212,168,71,0.04);
}

.vc-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.vc-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.vc-body p {
  font-size: 0.82rem;
  color: rgba(249,245,238,0.55);
  line-height: 1.6;
  margin: 0;
}

/* Team 
.about-team-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  text-align: center;
}

.team-card {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(212,168,71,0.2);
  border-radius: 8px;
  padding: 1.8rem 2rem;
}*/

.tc-avatar {
  font-size: 2.8rem;
  flex-shrink: 0;
}

.tc-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.tc-role {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.tc-school {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tc-tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  color: rgba(249,245,238,0.65);
  font-weight: 500;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-card { flex-direction: column; align-items: center; text-align: center; }
  .tc-tags { justify-content: center; }
}


/* FOOTER*/
.site-footer {
  background: #080807;
  color: rgba(249,245,238,0.55);
  padding: 4rem 2rem 2rem;
  border-top: 2px solid var(--gold);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Top row */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.footer-logo span { color: var(--gold); }

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(249,245,238,0.45);
  margin-bottom: 1.2rem;
  max-width: 300px;
}

.footer-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gold);
  border: 1px solid rgba(212,168,71,0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 1px;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cream);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links li,
.footer-links a {
  font-size: 0.84rem;
  color: rgba(249,245,238,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-links.plain li { cursor: default; }

/* Divider */
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 1.8rem;
}

/* Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.fb-left {
  font-size: 0.76rem;
  color: rgba(249,245,238,0.3);
}

.fb-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fb-disclaimer {
  font-size: 0.74rem;
  color: rgba(249,245,238,0.3);
}

.fb-dot { color: rgba(255,255,255,0.2); }

.fb-top {
  font-size: 0.74rem;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}
.fb-top:hover { opacity: 0.7; }

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .fb-right { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
}
