/* Lusoclima Advisory palette (matches proposals and memos) */
:root {
  --navy: #1f3864;
  --navy-deep: #14264a;
  --amber: #e8a020;
  --amber-dark: #b97a0c;
  --tint: #eef1f8;
  --amber-light: #fdf4e3;
  --ink: #1c2333;
  --muted: #5a6478;
  --line: #d9deea;
  --white: #ffffff;
  --green: #2f7d4f;
  --radius: 10px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-block; background: var(--amber); color: var(--navy-deep); font-weight: 600; text-decoration: none; padding: .75em 1.3em; border-radius: 999px; border: 2px solid var(--amber); cursor: pointer; font: inherit; font-weight: 600; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-small { padding: .45em 1em; font-size: .9rem; white-space: nowrap; }
.brand-text { white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--navy); color: var(--amber); display: grid; place-items: center; font: 600 .9rem var(--serif); }
.brand-text { font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--navy); text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy-deep), var(--navy) 70%); color: var(--white); padding: 64px 0 40px; }
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.12rem; color: #dbe2f1; max-width: 38em; }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.availability { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; background: rgba(232,160,32,.16); border: 1px solid rgba(232,160,32,.5); color: var(--white); padding: .35em .9em; border-radius: 999px; font-size: .9rem; font-weight: 500; margin-bottom: 20px; }
.availability { margin-bottom: 6px; }
.availability-detail { color: #c9d2e6; font-size: .88rem; margin: 0 0 20px 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74,222,128,.05); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } html { scroll-behavior: auto; } }
.hero-card { background: var(--white); color: var(--ink); border-radius: 14px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--amber-light); color: var(--navy); display: grid; place-items: center; font: 600 1.5rem var(--serif); border: 3px solid var(--amber); margin-bottom: 14px; }
.hero-name { font: 600 1.2rem var(--serif); color: var(--navy); margin: 0 0 4px; }
.hero-role { color: var(--muted); font-size: .92rem; }
.facts { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.facts li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; display: flex; justify-content: space-between; gap: 12px; }
.facts span { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.15); border-radius: var(--radius); overflow: hidden; margin: 48px 0 0; }
.stat { background: rgba(255,255,255,.05); padding: 20px; }
.stat dt { font: 600 1.8rem var(--serif); color: var(--amber); }
.stat dd { margin: 4px 0 0; color: #c9d2e6; font-size: .9rem; line-height: 1.45; }

/* Mandates */
.mandates-band { background: var(--amber-light); border-bottom: 1px solid #f1e1bd; padding: 24px 0; }
.eyebrow { font: 600 .8rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--amber-dark); margin-bottom: 10px; }
.mandates { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mandates li { background: var(--white); border: 1px solid #f1e1bd; padding: .35em .8em; border-radius: 6px; font-size: .9rem; }

/* Sections */
.section { padding: 72px 0; }
.section-tint { background: var(--tint); }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 40em; margin-bottom: 32px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 24px; background: var(--white); }
.service p { color: var(--muted); font-size: .95rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--tint); color: var(--navy); font-size: .8rem; padding: .25em .65em; border-radius: 4px; }

/* Track record */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter { font: 500 .9rem var(--sans); padding: .45em 1em; border-radius: 999px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.records { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.record { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); position: relative; display: flex; flex-direction: column; }
.record-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.pill { font-size: .75rem; font-weight: 600; padding: .15em .6em; border-radius: 999px; }
.pill-ongoing { background: #e3f3e9; color: var(--green); }
.pill-completed { background: var(--tint); color: var(--navy); }
.record-who { font-size: .92rem; color: var(--muted); }
.record-who strong { color: var(--ink); }
.record ul { margin: 0 0 16px; padding-left: 1.1em; font-size: .93rem; }
.record li { margin-bottom: 4px; }
.record-cat { margin-top: auto; align-self: flex-start; font-size: .75rem; font-weight: 600; color: var(--amber-dark); text-transform: uppercase; letter-spacing: .06em; }

/* Lists */
.pubs { list-style: none; padding: 0; margin: 0; }
.pubs li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--navy); color: var(--navy); padding: .3em .8em; border-radius: 999px; font-size: .9rem; }
.plain { list-style: none; padding: 0; margin: 0 0 24px; }
.plain li { padding: 6px 0; }
.steps { padding-left: 1.2em; margin: 0; }
.steps li { margin-bottom: 10px; }

/* Contact */
.contact { background: var(--navy); color: var(--white); }
.contact h2 { color: var(--white); }
.contact p { color: #dbe2f1; }
.contact a { color: var(--amber); }
.inquiry { background: var(--white); color: var(--ink); border-radius: 14px; padding: 28px; display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inquiry label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--navy); }
.inquiry input, .inquiry select, .inquiry textarea { font: inherit; font-weight: 400; color: var(--ink); padding: .65em .75em; border: 1px solid var(--line); border-radius: 8px; background: var(--white); width: 100%; }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.inquiry .btn { justify-self: start; }
.form-status { margin: 0; color: var(--muted) !important; font-size: .9rem; min-height: 1.4em; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #aab6d0; font-size: .88rem; }
.site-footer a { color: #aab6d0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; }
.footer-inner p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .services { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .records { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding-top: 40px; }
  .services, .field-row { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}

/* Print: a clean capability statement */
@media print {
  .site-header, .hero-actions, .filters, .inquiry, .site-footer, #print-link, .btn { display: none !important; }
  body { font-size: 11pt; }
  .hero, .contact { background: none !important; color: var(--ink); padding: 0; }
  .hero h1, .contact h2, .hero .lead, .contact p { color: var(--ink) !important; }
  .stat dt { color: var(--navy); }
  .stat dd, .availability, .availability-detail { color: var(--ink); }
  .stats { background: none; }
  .section { padding: 16pt 0; }
  .record, .service { break-inside: avoid; }
  .hero-card { box-shadow: none; border: 1px solid var(--line); }
}
