/* ============================================================
   Hab Strategy Inc. — website styles
   Palette: deep navy + warm gold, minimalist financial look
   ============================================================ */

:root {
  --navy:        #0C1F38;
  --navy-2:      #122944;
  --navy-3:      #1a3550;
  --gold:        #C6A15B;
  --gold-dark:   #a98641;
  --bg:          #FBFBF9;
  --surface:     #FFFFFF;
  --text:        #182231;
  --muted:       #5b6a7c;
  --line:        #e4e8ee;
  --line-strong: #d3dae3;

  --font-head:   Georgia, "Times New Roman", Cambria, serif;
  --font-body:   -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius:      14px;
  --radius-sm:   9px;
  --container:   1120px;
  --shadow-sm:   0 1px 2px rgba(12,31,56,.06), 0 2px 8px rgba(12,31,56,.05);
  --shadow-md:   0 4px 16px rgba(12,31,56,.10);
  --shadow-lg:   0 18px 44px rgba(12,31,56,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1.1em; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-small { padding: 11px 20px; font-size: 14px; }

/* ---------- Eyebrow / section headers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 17px; margin-bottom: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,251,249,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.brand-sub { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.lang-toggle:hover { border-color: var(--gold); }
.lang-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 85% -10%, var(--navy-3) 0%, var(--navy) 45%, #08162a 100%);
  color: #eaf0f7;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(198,161,91,.25);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 110px 0 120px;
  max-width: 780px;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 6vw, 60px);
  margin-bottom: 22px;
}
.hero p.lead { font-size: 20px; color: #c6d2e0; max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 44px;
  font-size: 14px;
  color: #aebccd;
}
.hero-meta strong { display: block; color: #fff; font-weight: 600; font-size: 16px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card .icon { margin-bottom: 18px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }

.icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: rgba(12,31,56,.06); }
.icon svg { width: 24px; height: 24px; stroke: var(--navy); }

/* ---------- Service rows ---------- */
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 0; }
.service-num {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--gold-dark);
  font-weight: 700;
}
.service-row h3 { font-size: 22px; margin-bottom: 8px; }
.service-row p { color: var(--muted); margin: 0; max-width: 680px; }

/* ---------- About page ---------- */
.about-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.facts { background: var(--navy); color: #eaf0f7; border-radius: var(--radius); padding: 34px; }
.facts h3 { color: #fff; }
.fact { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.fact:last-child { border-bottom: 0; }
.fact .label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.fact .value { font-size: 16px; font-weight: 500; color: #fff; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-block { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-block:last-child { border-bottom: 0; }
.contact-block .label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-block a { font-weight: 600; font-size: 17px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198,161,91,.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #eaf0f7;
  border-radius: var(--radius);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.cta-band p { color: #c6d2e0; max-width: 560px; margin: 0 auto 30px; }
.cta-band .btn { margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #08162a; color: #aebccd; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #8899ad; font-size: 14px; margin-top: 16px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: .02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: #aebccd; font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: #7d8da0;
}
.footer-bottom a { color: #7d8da0; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  color: #eaf0f7;
  padding: 72px 0;
}
.page-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); margin-bottom: 14px; }
.page-hero p { color: #c6d2e0; font-size: 18px; max-width: 660px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero-inner { padding: 72px 0 80px; }
  .header-actions .btn-primary { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { padding: 40px 26px; }
  .form { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
