/* =========================================================
   LACG — Liga Acadêmica de Cirurgia Geral
   Paleta extraída diretamente das artes oficiais enviadas:
   navy  #02132D (fundo da logo escura / brasão escuro)
   red   #B4141E (fio de sutura / arco crescente)
   paper #F5F5F3 (fundo claro do brasão / logo clara)
   ========================================================= */

:root{
  --navy-950: #050d1c;
  --navy-900: #02132d;   /* cor exata do fundo da arte oficial */
  --navy-800: #0d2242;
  --navy-700: #1c3459;
  --navy-line: rgba(255,255,255,.14);

  --red-600: #b4141e;    /* vermelho do fio de sutura */
  --red-500: #d0182a;
  --red-400: #e2495a;

  --paper: #f5f5f3;      /* fundo claro das artes (brasão claro / logo clara) */
  --paper-deep: #eceae4;
  --white: #ffffff;

  --ink: #10182b;
  --ink-soft: #4d5566;
  --ink-faint: #8a90a0;

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

  --radius: 4px;
  --wrap: 1160px;
}

*,*::before,*::after{ 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;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.12;
  margin:0 0 .5em;
  color:var(--ink);
}
p{ margin:0 0 1em; color:var(--ink-soft); }
.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 28px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family:var(--font-display);
  font-style:italic;
  font-weight:600;
  font-size:1.05rem;
  letter-spacing:.06em;
  color:var(--red-400);
  margin:0 0 .6em;
}
.eyebrow-dark{ color:var(--red-600); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  padding:.85em 1.7em;
  border-radius:var(--radius);
  font-family:var(--font-body);
  font-weight:600;
  font-size:.95rem;
  letter-spacing:.01em;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-red{ background:var(--red-600); color:var(--white); }
.btn-red:hover{ background:var(--red-500); transform:translateY(-2px); }
.btn-ghost{ border-color:var(--navy-line); color:var(--white); }
.btn-ghost:hover{ border-color:var(--white); transform:translateY(-2px); }
.btn-small{ padding:.6em 1.3em; font-size:.85rem; }
.btn-full{ width:100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--navy-900);
  border-bottom:1px solid var(--navy-line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.brand-mark{
  height:52px; width:auto;
  mix-blend-mode:normal;
}
.main-nav{ display:flex; align-items:center; gap:2.1rem; }
.main-nav a{
  font-size:.92rem; font-weight:500; color:#dfe3ec;
  position:relative; padding:.3em 0;
  transition:color .18s ease;
}
.main-nav a:not(.nav-cta):after{
  content:''; position:absolute; left:0; right:0; bottom:-4px; height:2px;
  background:var(--red-600); transform:scaleX(0); transform-origin:left;
  transition:transform .25s ease;
}
.main-nav a:not(.nav-cta):hover{ color:var(--white); }
.main-nav a:not(.nav-cta):hover:after{ transform:scaleX(1); }
.main-nav a[aria-current="page"]{ color:var(--white); }
.main-nav a[aria-current="page"]:after{ transform:scaleX(1); background:var(--red-500); }
.nav-login{ margin-left:.4rem; }
.member-email{ font-size:.82rem; color:#9aa1b3; }
.nav-toggle{
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:8px;
}
.nav-toggle span{ width:24px; height:2px; background:var(--white); display:block; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  background:var(--navy-900);
  color:var(--white);
  padding:6.5rem 0 0;
  overflow:hidden;
}
.hero-arc{
  position:absolute; top:-10%; right:-8%;
  width:60vw; height:130%;
  border:2px solid var(--red-600);
  border-radius:50%;
  opacity:.35;
  clip-path:inset(0 0 0 55%);
  pointer-events:none;
}
.hero-inner{ position:relative; max-width:760px; padding-bottom:5.5rem; }
.hero-kicker{ display:flex; align-items:center; gap:.9rem; margin-bottom:1.4rem; }
.hero-kicker-line{ width:46px; height:1px; background:var(--red-500); flex:none; }
.hero-kicker-text{
  margin:0; font-family:var(--font-body); font-weight:700;
  font-size:.82rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--red-400);
}
.hero-title{
  font-size:clamp(2.4rem, 5.4vw, 4.1rem);
  color:var(--white);
  margin-bottom:.45em;
}
.hero-lede{
  font-size:1.15rem;
  color:#c3c9d6;
  max-width:560px;
}
.hero-lede strong{ color:var(--white); }
.hero-actions{ display:flex; gap:1rem; margin-top:1.8rem; flex-wrap:wrap; }

.suture-divider{
  display:block; width:100%; height:20px; color:var(--red-600);
}
.suture-divider-light{ color:var(--red-400); }

/* =========================================================
   SECTIONS — shared
   ========================================================= */
.section{ padding:5.5rem 0; }
.section h2{ font-size:clamp(1.9rem, 3.4vw, 2.6rem); max-width:640px; }
.section-title-light{ color:var(--white); }
.section-lede{ max-width:620px; font-size:1.05rem; }
.section-navy{ background:var(--navy-900); position:relative; }
.section-navy p{ color:#c3c9d6; }
.section-navy h3{ color:var(--white); }

/* ---------- SOBRE ---------- */
.sobre-grid{
  display:grid; grid-template-columns:1.15fr .85fr; gap:4rem; align-items:center;
}
.sobre-text h2{ max-width:520px; }
.sobre-seal{
  background:var(--white);
  border-radius:var(--radius);
  padding:2.2rem;
  box-shadow:0 24px 48px -24px rgba(2,19,45,.25);
  justify-self:center;
  max-width:340px;
}
.stat-row{ display:flex; gap:2.4rem; margin-top:2.2rem; flex-wrap:wrap; }
.stat{ display:flex; flex-direction:column; }
.stat-num{
  font-family:var(--font-display); font-weight:700; font-size:2.1rem;
  color:var(--navy-900);
}
.stat-label{ font-size:.82rem; color:var(--ink-faint); letter-spacing:.02em; }

/* ---------- PILARES ---------- */
.pilares-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; margin-top:2.8rem;
}
.pilar-card{
  background:var(--navy-800);
  border:1px solid var(--navy-line);
  border-radius:var(--radius);
  padding:2.2rem 1.9rem;
}
.pilar-icon{
  display:inline-flex; width:48px; height:48px; color:var(--red-500); margin-bottom:1.1rem;
}
.pilar-icon svg{ width:100%; height:100%; }
.pilar-card h3{ font-size:1.5rem; margin-bottom:.4em; }
.pilar-card p{ font-size:.94rem; margin:0; color:#b7bdcc; }

/* ---------- ATIVIDADES ---------- */
.stitched-list{
  list-style:none; margin:2.6rem 0 0; padding:0;
  border-top:1px solid #dedad2;
}
.stitched-list li{
  padding:1.7rem 0;
  border-bottom:1px solid #dedad2;
  display:grid; grid-template-columns:32px 1fr; gap:1.1rem;
  align-items:start;
}
.stitched-list li:before{
  content:'';
  width:10px; height:10px; margin-top:.5em;
  background:var(--red-600);
  transform:rotate(45deg);
}
.stitched-content h4{ font-size:1.2rem; margin:0 0 .3em; }
.stitched-content p{ margin:0; max-width:560px; }

/* ---------- QUOTE ---------- */
.quote-band{ background:var(--navy-800); color:var(--white); text-align:center; }
.quote-band .wrap{ padding-top:3.4rem; padding-bottom:3.4rem; }
.quote-band blockquote{
  font-family:var(--font-display); font-style:italic; font-weight:500;
  font-size:clamp(1.35rem,2.6vw,1.9rem);
  max-width:760px; margin:0 auto .9rem;
  color:var(--white);
}
.quote-attr{ color:var(--red-400); font-size:.85rem; letter-spacing:.05em; text-transform:uppercase; margin:0; }

/* ---------- EQUIPE (teaser na home) ---------- */
.equipe-teaser-inner{
  display:grid; grid-template-columns:1.15fr .85fr; gap:4rem; align-items:center;
}
.equipe-teaser-text h2{ max-width:520px; }
.equipe-teaser-seal{
  background:var(--white);
  border-radius:var(--radius);
  padding:2.2rem;
  box-shadow:0 24px 48px -24px rgba(2,19,45,.25);
  justify-self:center;
  max-width:300px;
}

/* ---------- CONTATO (simplificado — Instagram) ---------- */
.contato-simple{ max-width:560px; text-align:center; margin:0 auto; }
.contato-simple h2{ margin-bottom:.4em; }
.contato-simple > p{ margin:0 auto 2rem; }
.instagram-card{
  display:inline-flex; align-items:center; gap:.7em;
  background:var(--white);
  color:var(--navy-900);
  padding:1em 1.8em;
  border-radius:999px;
  font-weight:700;
  font-size:1.05rem;
  transition:transform .18s ease, box-shadow .18s ease;
}
.instagram-card:hover{ transform:translateY(-2px); box-shadow:0 16px 32px -16px rgba(0,0,0,.4); }
.instagram-icon{ display:inline-flex; width:24px; height:24px; color:var(--red-600); }
.instagram-icon svg{ width:100%; height:100%; }

/* ---------- DIRETORIA / EQUIPE (usado em equipe.html) ---------- */
.diretoria-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1.1rem; margin-top:2.6rem;
}
.diretoria-card{
  background:var(--white);
  border:1px solid #e3e0d8;
  border-radius:var(--radius);
  padding:1.8rem 1.3rem 1.5rem;
  text-align:center;
  display:flex; flex-direction:column; align-items:center;
  gap:.9rem;
}
.avatar{
  width:76px; height:76px; border-radius:50%;
  background:var(--paper-deep);
  border:1.5px dashed #c7c2b6;
  display:flex; align-items:center; justify-content:center;
  color:#a49f92;
}
.avatar svg{ width:34px; height:34px; }
.team-name{
  font-family:var(--font-display); font-weight:600; font-size:1.15rem;
  color:var(--navy-900);
}
.diretoria-role{
  font-size:.78rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--red-600);
}

/* ---------- PRECEPTORES ---------- */
.preceptores-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1.3rem; margin-top:2.6rem;
}
.preceptor-card{
  background:var(--navy-800);
  border:1px solid var(--navy-line);
  border-radius:var(--radius);
  padding:1.8rem 1.5rem;
  display:flex; gap:1.1rem; align-items:flex-start;
}
.preceptor-card .avatar{
  flex:none; width:58px; height:58px;
  background:var(--navy-700);
  border-color:rgba(255,255,255,.25);
  color:#9aa4bd;
}
.preceptor-card .avatar svg{ width:26px; height:26px; }
.preceptor-name{
  font-family:var(--font-display); font-weight:600; font-size:1.15rem;
  color:var(--white); margin-bottom:.15em;
}
.preceptor-specialty{
  font-size:.78rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--red-400); margin-bottom:.5em;
}
.preceptor-place{
  font-size:.9rem; color:#b7bdcc; margin:0;
  display:flex; align-items:flex-start; gap:.4em;
}
.preceptor-place svg{ width:15px; height:15px; flex:none; margin-top:.2em; color:var(--red-400); }

/* ---------- página de equipe: hero curto ---------- */
.page-hero{
  background:var(--navy-900); color:var(--white);
  padding:5.5rem 0 3.5rem; text-align:center;
}
.page-hero h1{ color:var(--white); font-size:clamp(2.1rem,4.2vw,3rem); max-width:640px; margin:0 auto .4em; }
.page-hero p{ color:#c3c9d6; max-width:560px; margin:0 auto; }

.team-note{
  max-width:640px; margin:.6rem 0 0; font-size:.88rem; color:var(--ink-faint); font-style:italic;
}

/* =========================================================
   PRODUTOS
   ========================================================= */
.produtos-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; margin-top:2.6rem;
}
.produto-card{
  background:var(--white);
  border:1px solid #e3e0d8;
  border-radius:var(--radius);
  overflow:hidden;
  display:flex; flex-direction:column;
}
.produto-img{
  aspect-ratio:4/3;
  background:var(--navy-900);
  color:var(--red-500);
  display:flex; align-items:center; justify-content:center;
}
.produto-img svg{ width:44%; height:44%; }
.produto-body{ padding:1.4rem 1.4rem 1.6rem; display:flex; flex-direction:column; gap:.4rem; flex:1; }
.produto-body h3{ font-size:1.2rem; margin:0; }
.produto-body p{ font-size:.9rem; margin:0; flex:1; }
.produto-footer{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:.8rem; padding-top:.8rem; border-top:1px solid #efece5;
}
.produto-preco{ font-family:var(--font-display); font-weight:700; font-size:1.25rem; color:var(--navy-900); }

/* =========================================================
   AUTENTICAÇÃO (login / área de membros)
   ========================================================= */
.back-link{ font-size:.88rem; color:#c3c9d6; }
.back-link:hover{ color:var(--white); }
.auth-main{
  min-height:calc(100vh - 76px - 90px);
  display:flex; align-items:center; justify-content:center;
  padding:3.5rem 28px;
  background:var(--paper);
}
.auth-card{
  width:100%; max-width:420px;
  background:var(--white);
  border:1px solid #e3e0d8;
  border-radius:var(--radius);
  padding:2.6rem 2.4rem;
  text-align:center;
}
.auth-card h1{ font-size:2.1rem; margin-bottom:.25em; }
.auth-lede{ font-size:.95rem; margin-bottom:1.8rem; }
.auth-form{ display:flex; flex-direction:column; gap:1rem; text-align:left; }
.auth-form label{
  display:flex; flex-direction:column; gap:.4em;
  font-size:.85rem; font-weight:600; color:var(--navy-900);
}
.auth-form input{
  font-family:var(--font-body);
  border:1.5px solid #dcd8cf;
  border-radius:var(--radius);
  padding:.75em .9em;
  font-size:.95rem;
  color:var(--ink);
  background:var(--paper);
}
.auth-form input:focus{
  outline:2px solid var(--red-600); outline-offset:1px; border-color:var(--red-600);
}
.auth-message{ font-size:.85rem; min-height:1.2em; color:var(--ink-faint); margin:0; }
.auth-message.is-warning{ color:var(--red-600); }
.auth-note{
  margin:1.6rem 0 0; font-size:.82rem; color:var(--ink-faint); line-height:1.5;
}
.auth-loading{ padding:3rem 28px; text-align:center; color:var(--ink-faint); }
.auth-loading p{ margin:0; }

/* ---------- MATERIAIS (arquivos clicáveis: pdf / planilha / imagem) ---------- */
.materiais-list{
  display:flex; flex-direction:column; gap:.7rem; margin-top:2.2rem;
}
.material-item{
  display:flex; align-items:center; gap:1rem;
  background:var(--white);
  border:1px solid #e3e0d8;
  border-radius:var(--radius);
  padding:1rem 1.2rem;
  transition:border-color .18s ease, transform .18s ease;
}
.material-item:hover{ border-color:var(--red-600); transform:translateX(3px); }
.material-icon{
  flex:none; width:38px; height:38px; border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center;
  background:var(--paper-deep); color:var(--navy-900);
}
.material-icon svg{ width:20px; height:20px; }
.material-icon-pdf{ color:#b4141e; }
.material-icon-sheet{ color:#1a7a4c; }
.material-icon-image{ color:#1c3459; }
.material-info{ flex:1; display:flex; flex-direction:column; }
.material-title{ font-weight:600; color:var(--navy-900); font-size:.98rem; }
.material-type{ font-size:.76rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-faint); }
.material-go{ flex:none; color:var(--red-600); font-size:1.1rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background:var(--navy-900); color:#c3c9d6; }
.footer-inner{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:2.5rem;
  padding:4rem 0 2.5rem;
  border-bottom:1px solid var(--navy-line);
}
.footer-mark{ height:38px; width:auto; margin-bottom:1rem; }
.footer-brand p{ color:#9aa1b3; font-size:.9rem; margin:0; }
.footer-links, .footer-social{ display:flex; flex-direction:column; gap:.75rem; font-size:.92rem; }
.footer-links a:hover, .footer-social a:hover{ color:var(--white); }
.footer-bottom{ padding:1.6rem 0; }
.footer-bottom p{ margin:0; font-size:.8rem; color:#7d8399; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px){
  .sobre-grid, .equipe-teaser-inner{ grid-template-columns:1fr; gap:2.6rem; }
  .sobre-seal, .equipe-teaser-seal{ order:-1; max-width:260px; }
  .pilares-grid{ grid-template-columns:1fr; }
  .diretoria-grid{ grid-template-columns:repeat(2,1fr); }
  .preceptores-grid{ grid-template-columns:1fr; }
  .produtos-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-inner{ grid-template-columns:1fr; gap:2rem; }
}

@media (max-width: 760px){
  .main-nav{
    position:fixed; inset:76px 0 0 0; height:calc(100vh - 76px);
    background:var(--navy-900);
    flex-direction:column; align-items:flex-start;
    padding:2rem 28px; gap:1.4rem;
    transform:translateX(100%); transition:transform .3s ease;
  }
  .main-nav.open{ transform:translateX(0); }
  .nav-toggle{ display:flex; }
  .nav-cta{ margin-top:.5rem; }
  .hero{ padding-top:5rem; }
  .stitched-list li{ grid-template-columns:20px 1fr; }
}

@media (max-width: 520px){
  .diretoria-grid{ grid-template-columns:1fr; }
  .produtos-grid{ grid-template-columns:1fr; }
  .stat-row{ gap:1.6rem; }
  .auth-card{ padding:2rem 1.6rem; }
}

/* keyboard focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--red-600); outline-offset:2px;
}
