/* ============================================================
   SEO Freelancer — Design System
   Mobile-first, lightweight, no dependencies
   ============================================================ */

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-soft: #EFF6FF;
  --navy: #0F172A;
  --navy-80: #1E293B;
  --green: #22C55E;
  --green-dark: #16A34A;
  --green-soft: #F0FDF4;
  --text: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .07);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .12);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul[class], ol[class] { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--blue); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }

.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-muted); }
.muted { color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--subtle { background: var(--bg-subtle); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #CBD5E1; }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: .85rem; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2-lg { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, .35);
}
.btn--primary:hover { background: var(--green-dark); box-shadow: 0 8px 24px rgba(34, 197, 94, .4); }

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn--secondary:hover { border-color: var(--navy); background: var(--bg-subtle); }
.section--navy .btn--secondary { color: #fff; border-color: rgba(255,255,255,.3); }
.section--navy .btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn--sm { padding: .55rem 1.2rem; font-size: .9rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--blue);
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--blue);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}

.nav-links {
  display: none;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  padding: .5rem .9rem;
  border-radius: 999px;
  color: var(--navy-80);
  font-weight: 500;
  font-size: .95rem;
  transition: background-color .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--bg-subtle); color: var(--navy); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--blue); font-weight: 600; }

.nav-cta { display: none; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--navy);
}
.nav-toggle .bars { display: grid; gap: 5px; }
.nav-toggle .bars span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem 1.5rem;
  display: grid;
  gap: .25rem;
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform .25s ease, opacity .25s ease, visibility .25s;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 600;
}
.mobile-menu a:hover { background: var(--bg-subtle); text-decoration: none; }
.mobile-menu a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.mobile-menu .btn { margin-top: .5rem; }
@media (min-width: 900px) {
  .mobile-menu { display: none; }
  .nav-toggle { display: none; }
}

/* Header on pages without hero image gets solid bg from start via .site-header--solid */
.site-header--solid {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 9vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(37, 99, 235, .08), transparent 60%),
    radial-gradient(800px 400px at 10% 10%, rgba(34, 197, 94, .06), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { max-width: 34rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.25rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  color: var(--text-light);
  font-size: .9rem;
}
.hero-trust li { display: flex; align-items: center; gap: .5rem; }
.hero-trust svg { color: var(--green); flex: none; }

.hero-visual { position: relative; }
.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}
.hero-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: var(--text-light);
  font-weight: 600;
}
.hero-badge {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: .65rem .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  animation: float 5s ease-in-out infinite;
}
.hero-badge--tl { top: -18px; left: -14px; animation-delay: 0s; }
.hero-badge--br { bottom: -18px; right: -8px; animation-delay: 2.5s; }
.hero-badge .dot {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex: none;
}
.hero-badge .dot--green { background: var(--green-soft); color: var(--green-dark); }
.hero-badge .dot--blue { background: var(--blue-soft); color: var(--blue); }
.hero-badge small { display: block; font-weight: 500; color: var(--text-light); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 979px) {
  .hero-badge--tl { top: -14px; left: 4px; }
  .hero-badge--br { bottom: -14px; right: 4px; }
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--text-muted); font-size: .96rem; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}
.card-icon--green { background: var(--green-soft); color: var(--green-dark); }
.card-icon--navy { background: #F1F5F9; color: var(--navy); }

.card .link-arrow { margin-top: 1rem; font-size: .95rem; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.step p { font-size: .93rem; color: var(--text-muted); }

/* ---------- Stats / counters ---------- */
.stats {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
}
.stat-value {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-value .suffix { color: var(--green); }
.stat-label { color: #94A3B8; font-size: .9rem; margin-top: .35rem; }

/* Light variant used on portfolio cards */
.stat--light {
  background: var(--bg-subtle);
  border-color: var(--border);
}
.stat--light .stat-value { color: var(--navy); }
.stat--light .stat-value .suffix { color: var(--green-dark); }
.stat--light .stat-label { color: var(--text-light); }

/* ---------- Testimonials ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testimonial blockquote p {
  font-size: 1rem;
  color: var(--text-muted);
}
.testimonial blockquote p::before { content: "\201E"; }
.testimonial blockquote p::after { content: "\201C"; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: auto;
}
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  flex: none;
}
.avatar--1 { background: var(--blue); }
.avatar--2 { background: var(--green-dark); }
.avatar--3 { background: var(--navy-80); }
.testimonial-author strong { display: block; color: var(--navy); font-size: .95rem; }
.testimonial-author span { color: var(--text-light); font-size: .85rem; }
.testimonial-stars { display: flex; gap: 2px; color: #F59E0B; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: .85rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg {
  flex: none;
  color: var(--text-light);
  transition: transform .25s ease;
}
.faq-item[open] summary svg { transform: rotate(45deg); color: var(--blue); }
.faq-item .faq-body { padding: 0 1.4rem 1.25rem; color: var(--text-muted); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 85% 120%, rgba(37, 99, 235, .35), transparent 60%),
    radial-gradient(600px 300px at 10% -40%, rgba(34, 197, 94, .18), transparent 60%),
    var(--navy);
  border-radius: clamp(16px, 3vw, 28px);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: .85rem; }
.cta-band p { color: #CBD5E1; max-width: 34rem; margin: 0 auto 2rem; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- Service sections ---------- */
.service {
  scroll-margin-top: calc(var(--nav-h) + 20px);
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) {
  .service { grid-template-columns: 1.15fr .85fr; align-items: start; }
}
.service + .service { margin-top: 2rem; }
.service-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.service-head .card-icon { margin-bottom: 0; }
.service h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.service p { color: var(--text-muted); }
.service .btn { margin-top: 1.5rem; }

.service-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}
.service-panel h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-light);
  margin-bottom: .85rem;
}
.service-panel + .service-panel { margin-top: 1rem; }

.check-list { display: grid; gap: .6rem; }
.check-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--text-muted);
}
.check-list svg { flex: none; color: var(--green-dark); margin-top: .2rem; }

/* ---------- Portfolio / case studies ---------- */
.case {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.case:hover { box-shadow: var(--shadow-md); }
.case + .case { margin-top: 2.5rem; }

.case-head {
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.75rem, 4vw, 2.75rem) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.case-head h2 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
.case-meta { display: flex; flex-wrap: wrap; gap: .5rem; }

.tag {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: .8rem;
  font-weight: 600;
}
.tag--green { background: var(--green-soft); color: var(--green-dark); }
.tag--gray { background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border); }

.case-body {
  padding: 1.5rem clamp(1.75rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) { .case-body { grid-template-columns: 1.1fr .9fr; } }

.case-section + .case-section { margin-top: 1.35rem; }
.case-section h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-light);
  margin-bottom: .4rem;
}
.case-section p, .case-section li { color: var(--text-muted); font-size: .96rem; }

.case-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-content: start;
}
.case-tech { grid-column: 1 / -1; }

/* ---------- About page ---------- */
.skill-bars { display: grid; gap: 1.1rem; }
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .4rem;
}
.skill-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  width: 0;
  transition: width 1.2s cubic-bezier(.22, 1, .36, 1);
}
.is-revealed .skill-bar-fill { width: var(--w); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 700px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .tools-grid { grid-template-columns: repeat(6, 1fr); } }

.tool-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: 1.4rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tool-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tool-logo svg { width: 38px; height: 38px; }

/* Timeline */
.timeline {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: 1.75rem;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: .45rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--blue);
  transform: translateX(-50%);
  margin-left: 8px;
}
.timeline-year {
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .06em;
}
.timeline-item h3 { font-size: 1.08rem; margin: .2rem 0 .3rem; }
.timeline-item p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }

.contact-list { display: grid; gap: 1rem; margin-top: 1.75rem; }
.contact-list a { color: inherit; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.contact-item .card-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.contact-item strong { display: block; color: var(--navy); font-size: .95rem; }
.contact-item span { color: var(--text-muted); font-size: .9rem; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .form-field--full { grid-column: 1 / -1; }
}
.form-field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy);
  margin-bottom: .45rem;
}
.form-field label .req { color: var(--blue); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field .error-msg {
  display: none;
  color: #DC2626;
  font-size: .85rem;
  margin-top: .35rem;
}
.form-field.has-error input,
.form-field.has-error textarea { border-color: #DC2626; }
.form-field.has-error .error-msg { display: block; }

.form-note { font-size: .85rem; color: var(--text-light); }
.form-success {
  display: none;
  background: var(--green-soft);
  border: 1px solid #BBF7D0;
  color: #166534;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-weight: 600;
}
.form-success.is-visible { display: flex; align-items: center; gap: .6rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding-top: calc(var(--nav-h) + 1.5rem);
  font-size: .85rem;
  color: var(--text-light);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li { display: flex; align-items: center; gap: .35rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--border); }
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 2rem 0 clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { max-width: 40rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #94A3B8;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: var(--blue); }
.footer-about { max-width: 20rem; margin-top: 1rem; }
.footer-col h3 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: .55rem; list-style: none; }
.footer-col a { color: #94A3B8; transition: color .2s ease; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #CBD5E1;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: #94A3B8; }
.footer-legal a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.35rem; margin: 2.25rem 0 .75rem; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-content ul { padding-left: 1.25rem; margin: .75rem 0; }
.legal-content li + li { margin-top: .35rem; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: var(--nav-h);
}
.error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
