/* ============================================================
   ARMANDO WEALTH MANAGEMENT — Design System
   Deep navy + muted gold + warm cream. Playfair / Libre Franklin.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Libre+Franklin:wght@300;400;500;600;700&display=swap');

:root {
  /* Base */
  --navy:        #15263d;
  --navy-900:    #0e1b2d;
  --navy-800:    #1c3151;
  --navy-700:    #284164;

  /* Neutrals */
  --cream:       #f7f3ea;
  --cream-deep:  #efe9da;
  --card:        #fdfbf5;
  --paper:       #ffffff;

  /* Accent */
  --gold:        #b08d4f;
  --gold-dark:   #94733a;
  --gold-soft:   #d8c49b;

  /* Ink / text */
  --ink:         #18202c;
  --body:        #434b59;
  --muted:       #7c7568;
  --muted-light: #a7a190;

  /* Lines */
  --line:        #e4ddcd;
  --line-soft:   #ede7da;
  --line-dark:   rgba(216,196,155,0.16);

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 880px;
  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(20,30,45,0.05), 0 4px 16px rgba(20,30,45,0.05);
  --shadow-md: 0 10px 40px rgba(20,30,45,0.10);
  --shadow-lg: 0 24px 70px rgba(14,27,45,0.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold-soft); color: var(--navy-900); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.2rem; }
p { text-wrap: pretty; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center::before { display: none; }
.eyebrow.on-dark { color: var(--gold-soft); }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--body); font-weight: 400; }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: clamp(72px, 9vw, 130px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.bg-cream { background: var(--cream); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: #d4d8df; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.center { text-align: center; }
.center.measure, .center.measure-sm { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 15px 28px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  line-height: 1; white-space: nowrap;
}
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-800); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.32); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn-lg { padding: 18px 34px; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: 0.9rem; color: var(--gold-dark);
  letter-spacing: 0.02em;
}
.link-arrow .arr { transition: transform .25s ease; }
.link-arrow:hover .arr { transform: translateX(4px); }
.on-dark .link-arrow, .bg-navy .link-arrow { color: var(--gold-soft); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,234,0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand .mark {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0.02em;
}
.brand .mark b { color: var(--gold-dark); font-weight: 600; }
.brand .sub {
  font-family: var(--sans); font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted);
}
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  position: relative; padding: 4px 0; transition: color .2s ease; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav-links a:hover { color: var(--gold-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-dark); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-tel { font-size: 0.9rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 78px 0 auto 0; z-index: 99;
  background: var(--cream); border-bottom: 1px solid var(--line);
  transform: translateY(-120%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  padding: 18px 28px 30px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { display: block; font-size: 1.15rem; font-family: var(--serif); padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.mobile-menu .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #97a1b0; padding-block: 72px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.site-footer .brand .mark { color: #fff; }
.site-footer .brand .mark b { color: var(--gold-soft); }
.site-footer .brand .sub { color: var(--muted-light); }
.footer-about { margin-top: 22px; font-size: 0.92rem; line-height: 1.7; color: #8794a4; max-width: 34ch; }
.footer-col h5 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col p { font-size: 0.92rem; color: #97a1b0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-nap { display: flex; flex-direction: column; gap: 4px; }
.footer-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.09);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 0.78rem; color: #6b7686; line-height: 1.6;
}
.footer-disclaimer { max-width: 70ch; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative; overflow: hidden; background: var(--navy);
  display: flex; align-items: flex-end; isolation: isolate;
}
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(176,141,79,0.28), transparent 55%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
}
.ph::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 6px 6px;
}
.ph-label {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(216,196,155,0.85);
  padding: 14px 16px; display: flex; align-items: center; gap: 8px;
}
.ph-label::before { content: ""; width: 18px; height: 1px; background: var(--gold-soft); }
.ph-cream { background: var(--cream-deep); }
.ph-cream::before { background: radial-gradient(120% 90% at 70% 10%, rgba(176,141,79,0.14), transparent 60%), linear-gradient(160deg, #efe9da, #e6dec9); }
.ph-cream::after { opacity: 0.4; background-image: radial-gradient(rgba(21,38,61,0.05) 1px, transparent 1px); }
.ph-cream .ph-label { color: var(--muted); }
.ph-cream .ph-label::before { background: var(--gold); }

/* portrait monogram placeholder */
.portrait {
  position: relative; aspect-ratio: 4/5; background: linear-gradient(165deg, var(--navy-800), var(--navy-900));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.portrait::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 5px 5px;
}
.portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%; z-index: 1;
}
.portrait .mono {
  font-family: var(--serif); font-size: 3rem; color: var(--gold-soft);
  font-weight: 500; opacity: 0.9; z-index: 1;
  width: 96px; height: 96px; border: 1px solid rgba(216,196,155,0.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Reveal animation ---------- */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.reveal { opacity: 0; }
.reveal.in { animation: reveal-in .8s cubic-bezier(.22,1,.36,1) both; }
.reveal.in.d1 { animation-delay: .08s; }
.reveal.in.d2 { animation-delay: .16s; }
.reveal.in.d3 { animation-delay: .24s; }
.reveal.in.d4 { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  .reveal.in { animation: none; }
  html { scroll-behavior: auto; }
}
/* Frozen-timeline environments (some preview iframes never paint animations).
   Detected at runtime by site.js — show content with no entrance animation. */
.no-anim .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }

/* ---------- Generic cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.divider-rule { height: 1px; background: var(--line); border: 0; }

.stat-num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--ink); line-height: 1; font-weight: 500; }
.bg-navy .stat-num { color: #fff; }
.stat-num .unit { color: var(--gold); font-size: 0.6em; }

/* tag / pill */
.pill {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-dark); background: rgba(176,141,79,0.1);
  padding: 6px 12px; border-radius: 100px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links, .nav-tel { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-about { max-width: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .nav-cta .btn { padding: 12px 18px; font-size: 0.85rem; }
}
