/* ==========================================================================
   Maria Godoy — Editorial quiet luxury
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-muted: #7a7a7a;
  --ink-faint: #b8b5af;
  --paper: #f6f3ed;
  --paper-warm: #efeae0;
  --paper-deep: #e8e2d4;
  --accent: #5a4633;
  --accent-soft: #8a7256;
  --highlight: #8b1e2e;
  --highlight-soft: #a83847;
  --rule: rgba(26, 26, 26, 0.12);
  --rule-soft: rgba(26, 26, 26, 0.06);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;

  --max-w: 1280px;
  --gutter: clamp(1.5rem, 5vw, 4rem);

  --transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

/* ==========================================================================
   Typography system
   ========================================================================== */

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

h1.display { font-size: clamp(3rem, 7vw, 6rem); }
h2.display { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h3.display { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 400; }

.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
}

.lede em { color: var(--highlight); font-style: italic; }

p { color: var(--ink-soft); }

p + p { margin-top: 1rem; }

em { font-style: italic; }

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(5rem, 10vw, 9rem) 0; }

.divider {
  height: 1px;
  background: var(--rule);
  margin: 0;
  width: 100%;
}

.divider-narrow {
  height: 1px;
  background: var(--rule);
  width: 60px;
  margin: 2rem 0;
}

.divider-narrow.center { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand .ampersand { font-style: italic; color: var(--highlight); margin: 0 0.15em; }

.nav {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}

.nav a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.nav a:hover { color: var(--ink); }

.nav a.active {
  color: var(--ink);
}

.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(5rem, 10vw, 9rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-text .eyebrow {
  margin-bottom: 1.8rem;
  color: var(--highlight);
  opacity: 0;
  animation: fadeUp 0.9s 0.1s forwards;
}

.hero-text h1 {
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 1s 0.25s forwards;
}

.hero-text h1 .italic {
  font-style: italic;
  color: var(--highlight);
}

.hero-text .lede {
  max-width: 36ch;
  margin-bottom: 2.6rem;
  opacity: 0;
  animation: fadeUp 1s 0.4s forwards;
}

.hero-text .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
  opacity: 0;
  animation: fadeUp 1s 0.55s forwards;
}

.hero-text .meta div { display: flex; flex-direction: column; gap: 0.3rem; }

.hero-text .meta .label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-text .meta .value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.hero-portrait {
  position: relative;
  opacity: 0;
  animation: fadeIn 1.2s 0.4s forwards;
}

.hero-portrait .frame {
  aspect-ratio: 4 / 5;
  background: var(--paper-warm);
  overflow: hidden;
  position: relative;
}

.hero-portrait .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(15%) contrast(0.97);
  transition: transform 1.2s ease;
}

.hero-portrait:hover .frame img { transform: scale(1.02); }

.hero-portrait .caption {
  position: absolute;
  bottom: -2.2rem;
  right: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}

.page-hero .eyebrow { margin-bottom: 1.5rem; color: var(--highlight); }
.page-hero h1.display { max-width: 18ch; margin-bottom: 1.5rem; }
.page-hero h1.display em { color: var(--highlight); }
.page-hero .lede { max-width: 52ch; }

/* ==========================================================================
   Section headers
   ========================================================================== */

.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.section-header .eyebrow { padding-top: 0.5rem; color: var(--highlight); }

.section-header h2 { max-width: 18ch; }

/* ==========================================================================
   Practice areas (homepage)
   ========================================================================== */

.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.practice-card {
  background: var(--paper);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: background 0.5s ease, box-shadow 0.5s ease;
  position: relative;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--highlight);
  transition: height 0.5s ease;
}

.practice-card:hover { background: var(--paper-warm); }
.practice-card:hover::before { height: 100%; }

.practice-card .number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--highlight);
  margin-bottom: 1.5rem;
}

.practice-card h3 {
  margin-bottom: 1rem;
}

.practice-card p {
  font-size: 14.5px;
  margin-bottom: 2rem;
  flex: 1;
}

.practice-card .more {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease, color 0.3s ease;
}

.practice-card .more::after {
  content: '→';
  transition: transform 0.3s ease;
}

.practice-card:hover .more { color: var(--highlight); }
.practice-card:hover .more::after { transform: translateX(4px); }

/* ==========================================================================
   Practice area detail pages
   ========================================================================== */

.practice-detail {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.practice-detail .sidebar { position: sticky; top: 7rem; }
.practice-detail .sidebar .eyebrow { margin-bottom: 1rem; display: block; color: var(--highlight); font-weight: 500; }
.practice-detail .sidebar h2 { margin-bottom: 1.5rem; }

.practice-detail .content > * + * { margin-top: 1.5rem; }

.practice-detail .content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.practice-detail .content ul {
  list-style: none;
  margin-top: 1rem;
}

.practice-detail .content li {
  position: relative;
  padding-left: 1.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
  font-size: 15px;
}

.practice-detail .content li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--highlight);
}

/* ==========================================================================
   Credentials
   ========================================================================== */

.credentials {
  background: var(--paper-warm);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.cred-block .eyebrow { margin-bottom: 1.2rem; display: block; color: var(--highlight); }
.cred-block h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.cred-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cred-block li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding-left: 1.2rem;
  position: relative;
}
.cred-block li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   Insights (publications/Substack)
   ========================================================================== */

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.insight {
  border-top: 1px solid var(--ink);
  padding-top: 1.5rem;
  transition: opacity 0.3s ease;
}

.insight:hover { opacity: 0.65; }

.insight .meta {
  display: flex;
  gap: 1.5rem;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.insight h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.insight p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-section {
  background: var(--ink);
  color: var(--paper);
}

.contact-section .eyebrow { color: var(--ink-faint); }
.contact-section h2 { color: var(--paper); margin-bottom: 1.8rem; }
.contact-section p { color: var(--paper-deep); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 2.2rem; padding-top: 0.5rem; }

.contact-info .item .label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.contact-info .item .value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--paper);
}

.contact-info .item a {
  color: var(--paper);
  border-bottom: 1px solid rgba(246, 243, 237, 0.3);
  transition: border-color 0.3s ease;
}

.contact-info .item a:hover { border-color: var(--paper); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  padding: 1rem 1.8rem;
  border: 1px solid var(--paper);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.4s ease;
}

.btn-whatsapp:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-whatsapp svg { width: 16px; height: 16px; }

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */

.fab-whatsapp {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.fab-whatsapp:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.fab-whatsapp svg { width: 22px; height: 22px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--paper-warm);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 13.5px;
  max-width: 36ch;
  color: var(--ink-muted);
}

.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  font-weight: 400;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 14px; color: var(--ink-soft); transition: color 0.3s ease; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.footer-bottom .oab {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Insights page list (full)
   ========================================================================== */

.insights-list {
  display: flex;
  flex-direction: column;
}

.insights-list .insight {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.insights-list .insight:last-child { border-bottom: 1px solid var(--rule); }

.insights-list .insight .meta { flex-direction: column; gap: 0.4rem; margin-bottom: 0; }

.insights-list .insight h3 { font-size: 1.7rem; }

/* ==========================================================================
   Quote block
   ========================================================================== */

.quote {
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
  max-width: 32ch;
  margin: 0 auto;
}

.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 300;
}

.quote .attribution {
  margin-top: 2rem;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--highlight);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-portrait { max-width: 380px; }
  .section-header { grid-template-columns: 1fr; gap: 1rem; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-detail { grid-template-columns: 1fr; }
  .practice-detail .sidebar { position: static; }
  .credentials-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .insights-list .insight { grid-template-columns: 1fr; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--gutter);
    gap: 1rem;
    border-bottom: 1px solid var(--rule);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .hero-text .meta { gap: 1.5rem; }
  .fab-whatsapp { bottom: 1.2rem; right: 1.2rem; width: 48px; height: 48px; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
