@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* --- Palette: Financial Authority --- */
  --bg: #F8FAFC;          /* Slate-50 */
  --surface: #FFFFFF;
  --brand: #0F2C67;       /* Deep Navy (Trust) */
  --brand-light: #1E3A8A;
  --accent: #10B981;      /* Emerald (Growth/Profit) */
  --accent-hover: #059669;
  --text-main: #0F172A;   /* Slate-900 */
  --text-muted: #64748B;  /* Slate-500 */
  --border: #E2E8F0;      /* Slate-200 */

  /* --- Typography --- */
  --font-head: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* --- Spacing & UI --- */
  --max: 1200px;
  --pad: 24px;
  --radius: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(15, 44, 103, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(15, 44, 103, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- The Ledger Grid (Enhanced) --- */
.texture {
  background-color: #F8FAFC;
  background-image: 
    linear-gradient(rgba(15, 44, 103, 0.08) 1px, transparent 1px), 
    linear-gradient(90deg, rgba(15, 44, 103, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  position: relative;
}
.texture::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(248, 250, 252, 1) 100%);
  pointer-events: none;
}
.texture > * { position: relative; z-index: 1; }

/* --- Typography --- */
h1, h2, h3, .brand { font-family: var(--font-head); color: var(--brand); margin: 0; line-height: 1.1; }
h1 { font-size: clamp(42px, 5vw, 64px); letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(32px, 3vw, 42px); margin-bottom: 20px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
p { margin-top: 0; color: var(--text-muted); font-size: 16px; margin-bottom: 24px; }

.kicker {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: 50px;
}

/* --- Layout --- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 90px 0; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* --- Components --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 32px; border-radius: 8px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--accent); color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

.btn-secondary {
  background: white; border: 1px solid var(--border); color: var(--brand);
}
.btn-secondary:hover { border-color: var(--brand); background: #F8FAFC; }

.w-full { width: 100%; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm); transition: transform 0.2s;
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); }

/* --- Forms --- */
.input, .select, .textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 8px; font-family: var(--font-body); font-size: 15px;
  margin-bottom: 16px; outline: none; background: #fff; transition: border 0.2s;
  color: var(--text-main);
}
.input:focus, .select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 44, 103, 0.08);
}
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--brand); }

/* --- Deliverable Visual --- */
.doc-visual {
  background: white; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); border-radius: 12px; overflow: hidden;
}
.doc-header {
  background: var(--brand); padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
  color: white; font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
.doc-row {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px;
}

/* --- Audit Button (Special) --- */
.btn-audit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 13px;
  text-decoration: none; transition: all 0.3s ease; border: none; cursor: pointer;
  background-color: var(--accent); 
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.btn-audit:hover {
  background-color: var(--brand); 
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(15, 44, 103, 0.2);
}

/* =========================================
   NAVIGATION (Unified & Fixed)
   ========================================= */

.nav {
    padding: 20px 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Desktop Menu Container */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.links {
    display: flex;
    gap: 24px;
}

.links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.links a:hover { color: var(--brand); }

/* Hamburger Button (Hidden on Desktop) */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--brand);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- MOBILE BREAKPOINT (768px) --- */
@media (max-width: 768px) {
    
    /* 1. Show Hamburger */
    .mobile-toggle { display: flex; }

    /* 2. Hide Menu by default */
    .nav-menu {
        display: none; /* Crucial: Hides it until active */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 30px 20px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    /* 3. Show Menu when 'active' class is added by JS */
    .nav-menu.active { display: flex; }

    /* 4. Layout for Links inside Mobile Menu */
    .links {
        display: flex;          /* Ensure this is FLEX, not NONE */
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }

    .links a {
        font-size: 18px; /* Larger text for tapping */
        display: block;
        padding: 10px;
    }

    .btn-audit { width: 100%; text-align: center; }
    
    /* Adjust Layouts for Mobile */
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
    .section { padding: 60px 0; }
    h1 { font-size: 36px; }
}


/* =========================================
   FOOTER
   ========================================= */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 40px; 
  padding-bottom: 0;
  background: #fff;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
  padding-bottom: 40px;
}
.footer-bottom {
  background-color: var(--brand); 
  color: white;
  width: 100%;
  padding: 16px 0;
}
.footer-legal {
  display: flex; gap: 24px; flex-wrap: wrap; align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.footer-legal a { 
  color: rgba(255, 255, 255, 0.7); 
  text-decoration: none;
  transition: color 0.2s; 
}
.footer-legal a:hover { 
  color: #ffffff; 
  text-decoration: underline; 
}

/* --- Floating Actions --- */
.floating-container {
  position: fixed; z-index: 999; pointer-events: none;
  bottom: 24px; left: 24px; right: 24px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.scroll-top {
  pointer-events: auto;
  width: 44px; height: 44px;
  background: white; border: 1px solid var(--border);
  border-radius: 50%; box-shadow: var(--shadow-sm);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(10px); transition: all 0.3s;
  color: var(--brand);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--bg); border-color: var(--brand); }

.whatsapp-btn {
  pointer-events: auto;
  width: 54px; height: 54px;
  background: #25D366; 
  border-radius: 50%; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  display: grid; place-items: center; color: white;
  transition: transform 0.2s;
}
.whatsapp-btn:hover { transform: translateY(-4px); }
.whatsapp-btn svg { width: 30px; height: 30px; fill: white; }

@media (max-width: 768px) {
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-direction: column; gap: 12px; }
  .floating-container { bottom: 16px; left: 16px; right: 16px; }
}