/* ===================================================
   Instituto Maria de Fátima — design tokens
=================================================== */
:root {
  --blue-900: #0b3a57;
  --blue-700: #11679e;
  --blue-600: #157bb8;
  --blue-50: #eaf4fa;

  --green: #2fae4a;
  --gold: #f2b705;

  --ink: #16242e;
  --ink-soft: #4a5a66;
  --paper: #ffffff;
  --paper-alt: #f4f8fa;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(11, 58, 87, 0.08);
  --shadow-md: 0 14px 34px rgba(11, 58, 87, 0.14);

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --header-h: 84px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--blue-900);
}

p { margin: 0 0 1em; color: var(--ink-soft); line-height: 1.7; }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 20px; height: 20px; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: 0 18px 40px rgba(11,58,87,.28); }

.btn-outline-light {
  border-color: rgba(255,255,255,.75);
  color: #fff;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: rgba(255,255,255,.18); }

.btn-ghost {
  color: var(--blue-900);
  border-color: rgba(11,58,87,.18);
}
.btn-ghost:hover { background: var(--blue-50); }

.btn-small { padding: 9px 18px; font-size: .85rem; }
.btn-small .icon { width: 16px; height: 16px; }

/* ===================== Header ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: 68px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark { height: 42px; width: auto; transition: height .3s ease; }
.site-header.is-scrolled .brand-mark { height: 36px; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
  transition: color .35s ease;
}
.brand-text strong { font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.site-header.is-scrolled .brand-text { color: var(--blue-900); }

.main-nav {
  display: flex;
  gap: 32px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
}
.main-nav a {
  color: #fff;
  position: relative;
  padding: 6px 0;
  transition: color .3s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right .3s ease;
}
.main-nav a:hover::after { right: 0; }
.site-header.is-scrolled .main-nav a { color: var(--blue-900); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.site-header:not(.is-scrolled) .header-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.site-header:not(.is-scrolled) .header-actions .btn-ghost:hover { background: rgba(255,255,255,.12); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all .3s ease;
}
.site-header.is-scrolled .nav-toggle span { background: var(--blue-900); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--blue-900);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,32,48,.38) 0%, rgba(8,32,48,.05) 22%, rgba(8,32,48,.05) 48%, rgba(6,24,38,.55) 68%);
  z-index: 1;
}
.hero-panel {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 0%, var(--blue-900) 22%, var(--blue-900) 100%);
}
.hero-content {
  position: relative;
  width: 100%;
  padding-bottom: 6.5vh;
  padding-top: 110px;
  color: #fff;
  max-width: 760px;
}
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero-title {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 0 6px 30px rgba(0,0,0,.25);
}
.hero-sub {
  color: rgba(255,255,255,.88);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.sound-toggle {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.55);
  background: rgba(8,32,48,.35);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s ease, transform .25s ease;
}
.sound-toggle:hover { background: rgba(8,32,48,.55); transform: translateY(-2px); }
.sound-toggle .icon { width: 22px; height: 22px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 14px;
  display: none;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: cue 1.8s infinite;
}
@keyframes cue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ===================== Sections ===================== */
.section { padding: 110px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark {
  background: linear-gradient(160deg, var(--blue-900), #08202f);
}
.text-light { color: #fff; }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow-dark { color: var(--blue-700); }
.eyebrow-light { color: var(--gold); }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-dark .section-head h2 { color: #fff; }
.section-lead { font-size: 1.08rem; margin-top: 14px; }
.section-dark .section-lead { color: rgba(255,255,255,.78); }

/* ===================== Sobre ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: start;
}
.mission-card {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-700);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  margin: 26px 0 30px;
}
.mission-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.mission-card p { margin: 0; }

.values-title { font-size: 1.05rem; margin-bottom: 14px; }
.values-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.values-list li {
  position: relative;
  padding-left: 26px;
  font-weight: 500;
  color: var(--ink);
  font-size: .97rem;
}
.values-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.about-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 22px 20px;
  background: linear-gradient(0deg, rgba(8,24,38,.88), transparent);
  color: #fff;
  font-style: italic;
  font-size: .95rem;
}

/* ===================== Serviços ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { font-size: .93rem; margin: 0; }

.highlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.highlight-item {
  padding: 28px 30px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1.5px dashed rgba(17,103,158,.3);
}
.highlight-item h4 { color: var(--blue-700); margin-bottom: 8px; font-size: 1.02rem; }
.highlight-item p { margin: 0; font-size: .94rem; }

/* ===================== Projetos ===================== */
.projects-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.projects-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.projects-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
}
.projects-list p { margin: 0; font-size: .95rem; }
.project-tag {
  flex-shrink: 0;
  min-width: 118px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pull-quote {
  margin: 0;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--blue-700), var(--blue-900));
  color: #fff;
  position: relative;
}
.pull-quote p {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 16px;
}
.pull-quote cite {
  font-style: normal;
  font-size: .85rem;
  color: var(--gold);
  letter-spacing: .02em;
}

/* ===================== Como ajudar ===================== */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}
.help-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}
.help-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.help-card p { color: rgba(255,255,255,.75); margin: 0; font-size: .94rem; }
.help-cta { text-align: center; }

/* ===================== Contato ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
  align-items: stretch;
}
.contact-info { display: flex; flex-direction: column; gap: 26px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item .icon {
  width: 24px; height: 24px;
  color: var(--blue-700);
  flex-shrink: 0;
  margin-top: 4px;
}
.contact-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p { margin: 0; font-size: .95rem; }
.contact-item a:hover { color: var(--blue-700); }

.contact-map {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--paper-alt);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; position: relative; z-index: 1; }
.map-fallback {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue-700);
  background: var(--paper-alt);
}

/* ===================== Footer ===================== */
.site-footer { background: #081b29; color: rgba(255,255,255,.7); padding-top: 56px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark { height: 46px; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1rem; }
.footer-brand p { margin: 2px 0 0; font-size: .85rem; }
.footer-nav { display: flex; gap: 24px; font-size: .9rem; flex-wrap: wrap; }
.footer-nav a:hover { color: #fff; }
.footer-social {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease;
}
.footer-social:hover { background: rgba(255,255,255,.12); }
.footer-social .icon { width: 20px; height: 20px; }
.footer-bottom { padding: 20px 0 28px; font-size: .82rem; text-align: center; }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .about-grid, .projects-layout, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr; }
  .highlight-row { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-small span { display: none; }

  .site-header.nav-open { background: var(--blue-900); height: auto; padding-bottom: 20px; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 10px 24px 4px;
  }
  .site-header.nav-open .main-nav a {
    color: #fff;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .site-header.nav-open .header-inner { flex-wrap: wrap; }
  .site-header.nav-open .nav-toggle span { background: #fff; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; }
  .hero-content { padding-bottom: 10vh; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .sound-toggle { right: 16px; bottom: 16px; width: 40px; height: 40px; }
  .pull-quote p { font-size: 1.15rem; }
}
