/* ==========================================================================
   Primavera Planner — Design system
   ========================================================================== */

:root {
  --color-navy-950: #0a1e33;
  --color-navy-900: #0f2a47;
  --color-navy-800: #163c61;
  --color-navy-700: #1c4d7c;
  --color-sand-500: #c9a46a;
  --color-sand-400: #d8bb8a;
  --color-sand-100: #f6efe2;
  --color-slate-700: #46505c;
  --color-slate-500: #6b7684;
  --color-slate-300: #a9b1ba;
  --color-line: #e3e7eb;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1180px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 71, 0.06), 0 1px 3px rgba(15, 42, 71, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 42, 71, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-navy-900);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--color-slate-700); }
.lede { font-size: 1.15rem; color: var(--color-slate-700); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sand-500);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--color-sand-500);
  color: var(--color-navy-950);
}
.btn-primary:hover { background: var(--color-sand-400); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: inherit;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-navy-900);
  color: var(--color-navy-900);
}
.btn-outline-dark:hover { background: var(--color-navy-900); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy-900);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-700));
  display: flex; align-items: center; justify-content: center;
  color: var(--color-sand-400);
  font-weight: 800;
  font-size: 1rem;
}
.logo .brand-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-slate-500);
  text-transform: uppercase;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-main a:not(.btn) {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--color-slate-700);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-main a:not(.btn):hover,
.nav-main a.active {
  color: var(--color-navy-900);
  border-bottom-color: var(--color-sand-500);
}
.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-slate-500);
}
.lang-switch a { padding: 4px 6px; border-radius: 4px; }
.lang-switch a.active { color: var(--color-navy-900); background: var(--color-sand-100); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-navy-900);
  margin: 5px 0;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-main {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    display: none;
  }
  .nav-main.open { display: flex; }
  .nav-main a:not(.btn) { width: 100%; padding: 10px 0; }
  .nav-actions { flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--color-navy-950) 0%, var(--color-navy-900) 45%, var(--color-navy-800) 100%);
  color: #fff;
  padding: 96px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,106,0.18), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 780px; }
.hero p.lede { color: rgba(255,255,255,0.82); max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 14px;
  border-radius: 999px;
}

.page-hero {
  background: var(--color-navy-900);
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 640px; margin-bottom: 0; }
.breadcrumb { font-size: 0.82rem; color: var(--color-sand-400); margin-bottom: 14px; }
.breadcrumb a { color: var(--color-sand-400); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--color-sand-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-navy-900);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.stat-row { display: flex; gap: 48px; flex-wrap: wrap; }
.stat b { display: block; font-size: 2.1rem; color: var(--color-navy-900); font-weight: 800; }
.stat span { font-size: 0.88rem; color: var(--color-slate-500); }

.process-list { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.process-list li {
  counter-increment: step;
  position: relative;
  padding: 6px 0 32px 56px;
  border-left: 1px solid var(--color-line);
  margin-left: 20px;
}
.process-list li:last-child { border-color: transparent; padding-bottom: 0; }
.process-list li::before {
  content: counter(step);
  position: absolute;
  left: -20px; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-navy-900);
  color: var(--color-sand-400);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.process-list h3 { margin-bottom: 6px; }
.process-list p { margin-bottom: 0; }

.quote-card {
  background: var(--color-navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
}
.quote-card p { color: rgba(255,255,255,0.9); font-size: 1.05rem; }
.quote-card footer { color: var(--color-sand-400); font-size: 0.85rem; font-weight: 600; }

.case-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.case-card .case-tag {
  background: var(--color-navy-900);
  color: var(--color-sand-400);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 30px;
}
.case-card .case-body { padding: 28px 30px; }
.case-card dl { margin: 18px 0 0; }
.case-card dt { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-slate-500); margin-top: 14px; }
.case-card dd { margin: 4px 0 0; color: var(--color-slate-700); }

.tool-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.tool-badges span {
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy-900);
  background: var(--color-bg-alt);
}

.map-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 30px; }
.map-list li { padding: 10px 0; border-bottom: 1px solid var(--color-line); font-weight: 500; }
@media (max-width: 620px) { .map-list { grid-template-columns: 1fr; } }

.cta-band {
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-700));
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.8); }

/* ---------- Blog ---------- */
.post-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 28px;
}
.post-card .post-meta {
  font-size: 0.78rem;
  color: var(--color-slate-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.post-card h3 a:hover { color: var(--color-navy-700); }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { margin-top: 40px; }
.article-body ul { color: var(--color-slate-700); padding-left: 20px; }
.article-body li { margin-bottom: 8px; }

/* ---------- Form ---------- */
form.contact-form { display: grid; gap: 18px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label { font-size: 0.85rem; font-weight: 600; color: var(--color-navy-900); display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-navy-900);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-sand-500);
  box-shadow: 0 0 0 3px rgba(201,164,106,0.2);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--color-slate-500); }

.contact-info-card {
  background: var(--color-navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card p { color: rgba(255,255,255,0.78); }
.contact-info-card a { color: var(--color-sand-400); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-950);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.82rem;
}
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 320px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
