/* =========================================================
   Ultimate Ledger — style.css
   Source of truth: ultimate-ledger-design-spec.md
   ========================================================= */

:root {
  /* Primary */
  --slate:         #1E3A5F;   /* primary dark blue — headings, nav bg, buttons */
  --slate-2:       #2A4F7C;   /* hover state for slate */

  /* Accent */
  --accent:        #2E8B73;   /* teal green — tags, icons, highlights, borders */
  --accent-light:  #E8F5F1;   /* teal tint — badge backgrounds, note bars */
  --teal:          #1A6B5A;   /* deeper teal — badge text */

  /* Neutrals */
  --white:         #FFFFFF;
  --warm:          #F9FAFB;   /* form field backgrounds */
  --light:         #F4F7FA;   /* alternating section backgrounds */
  --border:        #DDE5ED;   /* all borders */

  /* Text */
  --text:          #1A2E42;   /* primary body text */
  --muted:         #5A7184;   /* secondary text, labels, captions */
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--slate); }
a { color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; }

/* =========================================================
   NAV
   ========================================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  padding: 0 48px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.2s ease;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--slate);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 16px; color: var(--slate); }
.brand-sub {
  font-size: 9px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted);
}

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-size: 13.5px; font-weight: 400;
  color: var(--muted); text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--slate); }

.btn-login {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--slate);
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-login:hover { border-color: var(--accent); color: var(--accent); }
.btn-login i { font-size: 15px; }

.btn-cta {
  background: var(--slate);
  color: var(--white);
  border-radius: 5px;
  padding: 9px 20px;
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-cta:hover { background: var(--slate-2); }

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; height: 17px;
  background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--slate); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   SHARED SECTION BITS
   ========================================================= */
.section { padding: 72px 48px; }
.section-white { background: var(--white); }
.section-light { background: var(--light); }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin: 0 auto 36px; text-align: center; max-width: 480px; }

.tag {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
h2 { font-size: 32px; font-weight: 700; line-height: 1.25; }
.section-sub { margin-top: 14px; font-size: 15px; color: var(--muted); line-height: 1.7; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--white);
  padding: 80px 48px 72px;
  border-bottom: 1px solid var(--border);
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-light);
  color: var(--teal);
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.8px; text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.badge i { font-size: 14px; }

.hero h1 {
  font-size: 46px; font-weight: 700; line-height: 1.15;
  max-width: 720px;
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
  border-bottom: 2px solid var(--accent-light);
}
.hero-sub {
  margin-top: 22px;
  font-size: 16px; font-weight: 300;
  color: var(--muted); line-height: 1.8;
  max-width: 560px;
}

.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn-primary {
  background: var(--slate); color: var(--white);
  padding: 12px 24px; border-radius: 5px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--slate-2); }
.btn-outline {
  background: transparent; color: var(--slate);
  border: 1.5px solid var(--border);
  padding: 12px 24px; border-radius: 5px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex;
  margin-top: 60px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--warm);
  max-width: 820px;
}
.stat {
  flex: 1;
  padding: 20px 28px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: var(--slate);
}
.stat-label { font-size: 11.5px; color: var(--muted); }

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  transition: border-color 0.2s ease;
}
.service-card:hover { border-color: var(--accent); }
.svc-icon {
  width: 38px; height: 38px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.svc-icon i { font-size: 19px; }
.service-card h3 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; color: var(--slate); }
.service-card > p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.65; }

.dot-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.dot-list li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px; color: var(--muted);
  line-height: 1.5;
}
.dot-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.note-bar {
  margin-top: 20px;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 13px; color: var(--text); line-height: 1.6;
}
.note-bar strong { color: var(--slate); }

/* =========================================================
   WHY US
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}
.why-num {
  display: block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 2px; color: var(--accent);
  margin-bottom: 10px;
}
.why-card h3 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; color: var(--slate); }
.why-card p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.65; }

/* =========================================================
   TIERS
   ========================================================= */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tier-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}
.tier-card.featured { border: 2px solid var(--slate); }
.tier-badge {
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--slate); color: var(--white);
  font-size: 10px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 0 0 6px 6px;
}
.tier-name {
  display: block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted);
}
.tier-card.featured .tier-name { margin-top: 8px; }
.tier-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--slate); margin-top: 4px; }
.tier-desc {
  font-size: 13px; color: var(--muted); line-height: 1.55;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px; margin: 10px 0 20px;
}
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--muted); line-height: 1.4;
}
.check-list li i { color: var(--accent); font-size: 14px; flex-shrink: 0; margin-top: 1px; }

/* =========================================================
   WHO WE SERVE
   ========================================================= */
.who-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.who-intro { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.75; }
.serve-list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.serve-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--muted); line-height: 1.5;
}
.serve-check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.serve-check i { font-size: 11px; color: var(--accent); }

.who-panel {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}
.panel-label {
  display: block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px; color: var(--muted);
}
.quote {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
}
.quote + .quote { margin-top: 14px; }
.quote p { font-size: 14px; color: var(--slate); line-height: 1.7; font-style: italic; }
.quote cite { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); font-style: normal; }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.form-wrap {
  max-width: 620px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-row .field { margin-bottom: 16px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--slate); margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--text);
  width: 100%;
  transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 80px; resize: vertical; }
.btn-submit {
  width: 100%;
  background: var(--slate); color: var(--white);
  border: none;
  padding: 14px; border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 4px;
}
.btn-submit:hover { background: var(--slate-2); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--light);
  border-top: 1px solid var(--border);
  padding: 36px 48px;
}
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 20px;
}
.footer-tagline { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 420px; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.footer-contact a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-contact a:hover { color: var(--slate); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 24px; padding-top: 20px;
  text-align: center;
  font-size: 12px; color: var(--muted);
}

/* =========================================================
   404
   ========================================================= */
.notfound {
  min-height: calc(100vh - 68px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 48px 20px;
}
.notfound h1 { font-size: 72px; color: var(--slate); }
.notfound h2 { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 20px; color: var(--slate); margin-top: 8px; }
.notfound p { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 420px; }
.notfound .btn-primary { margin-top: 26px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero h1 { font-size: 38px; }
  .tiers-grid { grid-template-columns: 1fr; }
  .tier-card.featured { order: -1; }
  .who-wrap { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-right { gap: 12px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  /* keep the CTA prominent; login can drop on very narrow screens if needed */
  .brand-sub { display: none; }

  .hero { padding: 48px 20px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { flex-direction: column; max-width: none; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }

  .section { padding: 48px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 24px 20px; }

  h2 { font-size: 26px; }
  .footer-top { flex-direction: column; }
  .footer-contact { text-align: left; }
}

@media (max-width: 420px) {
  .btn-login span,
  .btn-login { font-size: 12px; padding: 7px 12px; }
}
