:root {
  --graphite: #262523;
  --graphite-deep: #171615;
  --graphite-soft: #34312d;
  --off-white: #f2ebdf;
  --cream: #f2e1ac;
  --gold: #d9b752;
  --gold-burnt: #d9aa55;
  --ink: #1b1a18;
  --muted-dark: #6e665b;
  --muted-light: #d7cdbd;
  --white: #fffaf0;
  --border-dark: rgba(242, 235, 223, 0.16);
  --border-light: rgba(38, 37, 35, 0.14);
  --radius: 8px;
  --container: 1160px;
  --ease: 180ms ease;
  --hero-image: url("../public/images/hero-devocional.webp");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--graphite);
  color: var(--off-white);
  font-family: Inter, Manrope, "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand-name, .footer-brand { font-family: "Arial Narrow", Oswald, "Roboto Condensed", Impact, system-ui, sans-serif; letter-spacing: 0; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-150%); background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); font-weight: 800; transition: transform var(--ease); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid rgba(242, 235, 223, 0.1); background: rgba(23, 22, 21, 0.78); backdrop-filter: blur(16px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: fit-content; font-weight: 800; }
.brand-logo { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(217, 183, 82, 0.38); border-radius: 999px; background: var(--off-white); }
.brand-logo img { width: 100%; height: 100%; padding: 3px; object-fit: contain; object-position: center; }
.brand-name { font-size: 1.15rem; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; color: rgba(242, 235, 223, 0.84); font-weight: 700; font-size: 0.95rem; border-radius: var(--radius); transition: color var(--ease), background var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); background: rgba(217, 183, 82, 0.08); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border-dark); border-radius: var(--radius); background: rgba(242, 235, 223, 0.06); color: var(--off-white); padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 999px; transition: transform var(--ease), opacity var(--ease); }
.menu-toggle span:not(.sr-only) + span:not(.sr-only) { margin-top: 6px; }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }
.hero { position: relative; min-height: 86svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; padding: 132px 0 72px; background: var(--graphite-deep); }
.hero-background, .hero-overlay { position: absolute; inset: 0; }
.hero-background { z-index: -3; background-image: var(--hero-image); background-size: cover; background-position: center; opacity: 0.95; transform: scale(1.02); }
.hero-overlay { z-index: -2; background: linear-gradient(90deg, rgba(18, 17, 16, 0.94) 0%, rgba(18, 17, 16, 0.78) 43%, rgba(18, 17, 16, 0.34) 78%, rgba(18, 17, 16, 0.68) 100%), linear-gradient(180deg, rgba(18, 17, 16, 0.1) 0%, rgba(18, 17, 16, 0.68) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(217, 183, 82, 0.72), transparent); z-index: -1; }
.hero-content { max-width: 740px; margin-inline: max(calc((100% - var(--container)) / 2), 20px) auto; }
.eyebrow { color: var(--gold); font-size: 0.82rem; line-height: 1.2; font-weight: 850; text-transform: uppercase; }
.hero h1 { margin-top: 14px; color: var(--white); font-size: 5.7rem; line-height: 0.9; font-weight: 900; }
.hero-subtitle { margin-top: 22px; color: var(--cream); font-size: 1.65rem; line-height: 1.25; font-weight: 800; }
.hero-text { max-width: 610px; margin-top: 18px; color: rgba(242, 235, 223, 0.9); font-size: 1.1rem; }
.hero-actions, .hero-links, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions { margin-top: 34px; }
.hero-links { margin-top: 18px; }
.hero-links a { color: rgba(242, 235, 223, 0.86); font-weight: 800; border-bottom: 1px solid rgba(217, 183, 82, 0.55); padding-bottom: 3px; transition: color var(--ease), border-color var(--ease); }
.hero-links a:hover { color: var(--gold); border-color: var(--gold); }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: var(--radius); padding: 0 18px; font-weight: 850; line-height: 1.1; transition: transform var(--ease), background var(--ease), border-color var(--ease), color var(--ease); }
.button:hover { transform: translateY(-2px); }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.button svg path:first-child { fill: currentColor; stroke: none; }
.button-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.button-primary:hover { background: var(--cream); border-color: var(--cream); }
.button-secondary { background: rgba(242, 235, 223, 0.07); color: var(--off-white); border-color: rgba(242, 235, 223, 0.24); }
.button-secondary:hover { color: var(--gold); border-color: rgba(217, 183, 82, 0.72); background: rgba(217, 183, 82, 0.09); }
.button-small { min-height: 40px; padding: 0 14px; color: var(--ink); background: transparent; border-color: rgba(38, 37, 35, 0.24); width: fit-content; }
.button-small:hover { border-color: var(--gold-burnt); background: rgba(217, 183, 82, 0.18); }
.section { padding: 96px 0; }
.section-light { background: var(--off-white); color: var(--ink); }
.section-cream { background: #f7eedb; color: var(--ink); }
.section-dark { background: linear-gradient(180deg, rgba(217, 183, 82, 0.05), transparent 240px), var(--graphite); color: var(--off-white); }
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading h2, .contact-section h2 { margin-top: 10px; font-size: 3rem; line-height: 1; font-weight: 900; }
.section-heading h2::after, .contact-section h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 16px; background: var(--gold); }
.section-heading p:not(.eyebrow), .contact-section p { margin-top: 18px; color: var(--muted-dark); font-size: 1.05rem; }
.section-heading-dark p:not(.eyebrow), .contact-section p { color: rgba(242, 235, 223, 0.78); }
.start-grid, .content-grid, .resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.path-card, .content-card, .project-card, .resource-card { border-radius: var(--radius); transition: transform var(--ease), border-color var(--ease), background var(--ease); }
.path-card { min-height: 315px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px; background: rgba(255, 250, 240, 0.58); border: 1px solid var(--border-light); }
.path-card:hover, .content-card:hover, .project-card:hover, .resource-card:hover { transform: translateY(-4px); }
.path-card:hover { border-color: rgba(217, 170, 85, 0.6); background: rgba(255, 250, 240, 0.86); }
.icon-box { width: 48px; height: 48px; display: grid; place-items: center; color: var(--gold-burnt); border: 1px solid rgba(217, 170, 85, 0.48); border-radius: var(--radius); background: rgba(217, 183, 82, 0.12); }
.icon-box svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.path-card h3, .project-card h3, .content-card h3, .resource-card h3 { color: inherit; font-size: 1.45rem; line-height: 1.12; }
.path-card p, .content-card p, .project-card p, .resource-card p { color: var(--muted-dark); }
.text-link { margin-top: auto; color: var(--ink); font-weight: 850; border-bottom: 2px solid var(--gold-burnt); padding-bottom: 2px; }
.text-link:hover { color: #8b651f; }
.projects-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.project-card { min-height: 220px; grid-column: span 2; display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--border-dark); background: rgba(242, 235, 223, 0.045); }
.project-card-featured { min-height: 275px; background: rgba(242, 235, 223, 0.075); border-color: rgba(217, 183, 82, 0.38); }
.project-card:hover { background: rgba(242, 235, 223, 0.08); border-color: rgba(217, 183, 82, 0.54); }
.project-type, .content-category, .resource-type { color: var(--gold); font-weight: 850; font-size: 0.82rem; text-transform: uppercase; }
.project-card p:not(.project-type) { color: rgba(242, 235, 223, 0.76); }
.about-section { border-top: 1px solid rgba(38, 37, 35, 0.08); }
.about-layout { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr); gap: 56px; align-items: start; }
.about-heading { position: sticky; top: 112px; margin-bottom: 0; }
.about-copy { display: grid; gap: 24px; color: var(--muted-dark); font-size: 1.12rem; }
.presence-line { color: var(--ink); font-family: "Arial Narrow", Oswald, "Roboto Condensed", Impact, system-ui, sans-serif; font-size: 2.35rem; line-height: 1.05; font-weight: 900; padding: 26px 0 26px 24px; border-left: 4px solid var(--gold); }
.content-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.content-card { min-height: 295px; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: rgba(255, 250, 240, 0.64); border: 1px solid var(--border-light); }
.content-card:hover { background: rgba(255, 250, 240, 0.9); border-color: rgba(217, 170, 85, 0.56); }
.content-card .button { margin-top: auto; }
.resource-section { border-top: 1px solid rgba(38, 37, 35, 0.08); }
.resource-card { min-height: 260px; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: rgba(255, 250, 240, 0.58); border: 1px solid var(--border-light); }
.resource-card:hover { background: rgba(255, 250, 240, 0.9); border-color: rgba(217, 170, 85, 0.56); }
.resource-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.resource-type { color: var(--gold-burnt); }
.resource-status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border: 1px solid rgba(217, 170, 85, 0.42); border-radius: 999px; color: #6f511c; background: rgba(217, 183, 82, 0.12); font-size: 0.78rem; font-weight: 850; }
.resource-card .button { margin-top: auto; }
.contact-section { border-top: 1px solid var(--border-dark); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 48px; align-items: center; }
.contact-email { display: inline-flex; margin-top: 22px; color: var(--cream); font-size: 1.2rem; font-weight: 850; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--gold); }
.contact-actions { justify-content: flex-end; }
.site-footer { background: var(--graphite-deep); color: rgba(242, 235, 223, 0.78); padding: 44px 0 26px; border-top: 1px solid rgba(217, 183, 82, 0.16); }
.footer-layout { display: flex; justify-content: space-between; gap: 28px; }
.footer-brand-block { display: flex; align-items: center; gap: 18px; max-width: 560px; }
.footer-logo { width: 72px; height: 72px; flex: 0 0 auto; object-fit: contain; padding: 5px; border-radius: 999px; background: var(--off-white); border: 1px solid rgba(217, 183, 82, 0.36); }
.footer-brand { color: var(--white); font-weight: 900; font-size: 1.35rem; line-height: 1; margin-bottom: 8px; }
.footer-small { margin-top: 8px; color: rgba(242, 235, 223, 0.58); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; }
.site-footer a { color: rgba(242, 235, 223, 0.82); font-weight: 750; }
.site-footer a:hover { color: var(--gold); }
.copyright { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(242, 235, 223, 0.1); font-size: 0.92rem; color: rgba(242, 235, 223, 0.54); }
@media (max-width: 980px) {
  .hero { min-height: 84svh; }
  .hero-overlay { background: linear-gradient(90deg, rgba(18, 17, 16, 0.95) 0%, rgba(18, 17, 16, 0.78) 62%, rgba(18, 17, 16, 0.46) 100%), linear-gradient(180deg, rgba(18, 17, 16, 0.1) 0%, rgba(18, 17, 16, 0.74) 100%); }
  .hero h1 { font-size: 4.5rem; }
  .section { padding: 78px 0; }
  .start-grid, .content-grid, .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card { grid-column: span 1; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .about-heading { position: static; }
  .contact-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .nav { min-height: 66px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-logo img { width: 100%; height: 100%; padding: 3px; }
  .menu-toggle { display: block; }
  .nav-links { position: fixed; top: 66px; left: 14px; right: 14px; display: grid; gap: 6px; padding: 12px; border: 1px solid var(--border-dark); border-radius: var(--radius); background: rgba(23, 22, 21, 0.96); box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28); transform: translateY(-16px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--ease), transform var(--ease), visibility var(--ease); }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a { min-height: 48px; justify-content: center; }
  .hero { min-height: 82svh; padding: 112px 0 46px; align-items: end; }
  .hero-background { background-position: 58% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(18, 17, 16, 0.66) 0%, rgba(18, 17, 16, 0.9) 40%, rgba(18, 17, 16, 0.96) 100%), linear-gradient(90deg, rgba(18, 17, 16, 0.88), rgba(18, 17, 16, 0.42)); }
  .hero h1 { font-size: 3.35rem; line-height: 0.95; }
  .hero-subtitle { font-size: 1.32rem; }
  .hero-text { font-size: 1rem; }
  .hero-actions, .hero-links, .contact-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; padding-inline: 14px; }
  .hero-links a { width: fit-content; }
  .section { padding: 64px 0; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2, .contact-section h2 { font-size: 2.35rem; }
  .start-grid, .content-grid, .projects-grid, .resource-grid { grid-template-columns: 1fr; }
  .path-card, .content-card, .project-card, .project-card-featured, .resource-card { min-height: auto; }
  .presence-line { font-size: 1.85rem; padding-left: 18px; }
  .footer-layout { display: grid; }
  .footer-brand-block { align-items: flex-start; }
  .footer-logo { width: 60px; height: 60px; }
  .site-footer nav { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .brand { gap: 10px; }
  .brand-name { font-size: 0.98rem; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 0.9rem; }
  .hero h1 { font-size: 2.85rem; }
  .section-heading h2, .contact-section h2 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
