:root {
  --bg: #ffffff;
  --bg-alt: #f7fafd;
  --ink: #33475c;
  --ink-soft: #5a7186;
  --accent: #5b8fb4;
  --accent-ink: #38617d;
  --line: rgba(91, 143, 180, 0.18);
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Inter", system-ui, sans-serif;
  --radius: 12px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent-ink); }

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

.container {
  width: min(960px, 90%);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.hero-eyebrow { display: block; font-family: var(--font-body); line-height: 1.6; }

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 38rem; margin-bottom: 2.2rem; }
.intro { color: var(--ink-soft); font-size: 1.05rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent-ink); color: #fff; }
.btn-primary:hover { background: #2d5369; }
.btn-outline {
  background: transparent;
  color: var(--accent-ink);
  border-color: var(--accent-ink);
}
.btn-outline:hover { background: rgba(91, 143, 180, 0.08); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 14px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.brand-text span { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
}
.nav-link:hover { background: var(--bg-alt); }
.nav-cta { border: 1px solid var(--accent-ink); color: var(--accent-ink); }
.nav-cta:hover { background: rgba(91, 143, 180, 0.08); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle-box { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.nav-toggle-box span { height: 2px; border-radius: 2px; background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); text-align: center; }
.hero-inner { max-width: 40rem; }
.hero-sub { color: var(--ink-soft); font-size: 1.15rem; font-weight: 300; margin-bottom: 2rem; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }
.hero-link { font-size: 0.98rem; }

.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

.approche-outro {
  margin-top: 1.8rem;
  max-width: 44rem;
}

.prose {
  max-width: 68ch;
  margin-inline: auto;
}
.prose h2 { margin-bottom: 1.8rem; }
.prose h3 { margin: 2.4rem 0 1rem; }
.prose p { margin-bottom: 1.05rem; }

.muted { color: var(--ink-soft); }

#contact .section-head {
  margin-inline: auto;
  text-align: center;
}
.contact-block {
  text-align: center;
  margin-top: 0.5rem;
}
.contact-mail {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
}
.footer-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 0.5rem; }
.footer-brand p { margin-bottom: 0.3rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.35rem; }
.footer-nav a { text-decoration: none; }
.footer-legal summary { cursor: pointer; }
.footer-legal p { font-size: 0.85rem; margin-top: 0.6rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.2rem; text-align: center; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

.reveal { opacity: 0; transition: opacity 0.5s ease; }
.reveal.is-visible { opacity: 1; }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 200px 1fr; gap: 1.8rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem 5% 1.2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  body.nav-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-link { display: block; padding: 0.75rem 0.5rem; }
  .cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transition: none; }
}
