/*!
 * Mosteiro das Irmãs Concepcionistas da Amoreira
 * Folha de estilo global do site.
 *
 * Índice:
 *   1. Tokens (variáveis de cor, tipografia, espaçamento)
 *   2. Reset e base
 *   3. Tipografia utilitária
 *   4. Layout (container, secções)
 *   5. Botões
 *   6. Cabeçalho e navegação (incl. menu móvel)
 *   7. Hero
 *   8. Cartões (cards)
 *   9. Componentes partilhados (split, timeline/steps, cta, faq, listas)
 *  10. Componentes específicos de página
 *  11. Rodapé
 *  12. Utilitários
 *  13. Media queries
 */

/* ============ 1. TOKENS ============ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');

:root{
  /* Cores principais (esquema de cores original preservado) */
  --color-brand:        #4c678a;   /* azul principal - títulos, texto de botão */
  --color-brand-light:  #5f7fa6;   /* azul médio - secções de destaque */
  --color-brand-dark:   #3f5675;   /* azul escuro - rodapé */
  --color-accent-tint:  #ddeaf7;   /* hover de botões */
  --color-section-tint: #eef4fb;   /* fundo de secções alternadas */
  --color-bg:           #f8fbff;   /* fundo geral do site */
  --color-surface:      #ffffff;
  --color-text:         #2c3a4d;
  --color-text-soft:    rgba(44,58,77,0.72);
  --color-white:        #ffffff;

  /* Sobreposição usada em heros com imagem de fundo */
  --hero-overlay: linear-gradient(rgba(37,56,92,0.55), rgba(37,56,92,0.6));

  /* Tipografia */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaçamento e forma */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px rgba(31,45,66,0.08);
  --shadow-btn: 0 6px 16px rgba(31,45,66,0.10);
  --container-max: 1200px;
  --header-height: 92px;
}

/* ============ 2. RESET & BASE ============ */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1, h2, h3, h4{ font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
p{ margin: 0 0 1em; }
p:last-child{ margin-bottom: 0; }
ul{ margin: 0; padding: 0; }

/* Liga de acessibilidade: salta para o conteúdo */
.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-brand);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 2000;
  text-decoration: none;
}
.skip-link:focus{
  left: 20px;
  top: 20px;
}

:focus-visible{
  outline: 3px solid var(--color-brand-light);
  outline-offset: 3px;
}

/* ============ 3. TIPOGRAFIA ============ */
.section-title{
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--color-brand);
  margin: 0 0 46px;
}
.section-title--left{ text-align: left; }
.section-title--white{ color: var(--color-white); }
.eyebrow{
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-brand-light);
  margin-bottom: 10px;
}
.section-lede{
  max-width: 760px;
  margin: -20px auto 46px;
  text-align: center;
  color: var(--color-text-soft);
}

/* ============ 4. LAYOUT ============ */
.container{ max-width: var(--container-max); margin: 0 auto; }
main{ display: block; }
section, .band{ padding: 90px 8%; }
.band--tint{ background: var(--color-section-tint); }
.band--brand{ background: var(--color-brand-light); color: var(--color-white); }
.band--brand .section-title{ color: var(--color-white); }
.band--flush{ padding: 0; }

/* ============ 5. BOTÕES ============ */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  color: var(--color-brand);
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(76,103,138,0.12);
  box-shadow: var(--shadow-btn);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover, .btn:focus-visible{
  background: var(--color-accent-tint);
  transform: translateY(-2px);
}
.btn--outline{
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: none;
}
.btn--outline:hover, .btn--outline:focus-visible{
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
}
.btn-row{ display: flex; gap: 18px; flex-wrap: wrap; }

/* ============ 6. CABEÇALHO / NAVEGAÇÃO ============ */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  background: rgba(95,127,166,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled{ box-shadow: 0 6px 24px rgba(20,30,46,0.18); }

.navbar{
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
}
.brand{
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.01em;
}
.brand__mark{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span{
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav-menu{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-menu a{
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-menu a:hover,
.nav-menu a:focus-visible{ color: var(--color-white); }
.nav-menu a[aria-current="page"]{
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

/* ============ 7. HERO ============ */
.hero{
  min-height: 62vh;
  margin-top: 0;
  padding-top: calc(var(--header-height) + 40px);
  background-color: var(--color-brand-dark);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
}
.hero--tall{ min-height: 88vh; }
.hero-content{ max-width: 860px; padding: 20px; }
.hero-content h1{ font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 0 18px; }
.hero-content p{ font-size: clamp(1.05rem, 2vw, 1.2rem); opacity: 0.95; }
.hero-content .btn-row{ justify-content: center; margin-top: 30px; }

.hero--home{ background-image: var(--hero-overlay), url('../img/01.png'); }
.hero--mosteiro{ background-image: var(--hero-overlay), url('../img/image18.jpeg'); background-position: center 30%; }
.hero--ordem{ background-image: var(--hero-overlay), url('../img/Captura%20de%20ecr%C3%A3%202026-06-13%20211832.png'); background-position: center 29%; }
.hero--beatriz{ background-image: var(--hero-overlay), url('../files/Santa%20Beatriz.jpeg'); background-position: center 18%; }
.hero--vida{ background-image: var(--hero-overlay), url('../img/voca%C3%A7%C3%A3o%20religiosa.png'); }
.hero--vocacoes{ background-image: var(--hero-overlay), url('../img/VOCA%C3%87%C3%95ES.png'); background-position: center 30%; }
.hero--loja{ background-image: var(--hero-overlay), url('../img/Captura%20de%20ecr%C3%A3%202026-06-13%20211703.png'); }
.hero--apoiar{ background-image: var(--hero-overlay), url('../files/Vida_de_Ora%C3%A7%C3%A3o.png'); }
.hero--contactos{ background-image: var(--hero-overlay), url('../img/image18.jpeg'); background-position: center 35%; }

/* ============ 8. CARTÕES ============ */
.grid{
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid--narrow{ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--wide{ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card{
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover{ transform: translateY(-6px); box-shadow: 0 16px 36px rgba(31,45,66,0.13); }
.card img{ width: 100%; height: 220px; object-fit: cover; }
.card__body{ padding: 26px; flex: 1; }
.card__body h3{ color: var(--color-brand); font-size: 1.3rem; margin: 0 0 10px; }
.card--plain{ padding: 30px; text-align: left; }
.card--plain h3{ color: var(--color-brand); font-size: 1.25rem; margin: 0 0 10px; }
.card--center{ text-align: center; }

/* ============ 9. COMPONENTES PARTILHADOS ============ */

/* Secção dividida imagem + texto, usada em várias páginas */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img{ border-radius: var(--radius-lg); width: 100%; height: 100%; object-fit: cover; max-height: 480px; }
.split--reverse{ direction: rtl; }
.split--reverse > *{ direction: ltr; }
.split h2, .split h3{ color: var(--color-brand); }

/* Faixa de horários / etapas / passos numerados */
.steps{
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.step{
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}
.step h3{ margin: 0 0 10px; font-size: 1.15rem; }
.step p{ margin: 0; opacity: 0.92; }
.band:not(.band--brand) .step{
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.band:not(.band--brand) .step h3{ color: var(--color-brand); }
.band:not(.band--brand) .step p{ color: var(--color-text-soft); opacity: 1; }

/* Faixa CTA (chamada para ação) */
.cta{
  background: var(--color-brand-light);
  color: var(--color-white);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 64px 8%;
}
.cta h2{ font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 16px; }
.cta p{ max-width: 640px; margin: 0 auto 26px; opacity: 0.95; }

/* FAQ */
.faq{
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.faq-item{
  background: var(--color-surface);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.faq-item h3{ color: var(--color-brand); margin: 0 0 10px; font-size: 1.15rem; }

/* Lista simples com marcador circular (usada no hábito) */
.trait-list{
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.trait{
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
}
.trait img{
  width: 74px;
  height: 74px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-section-tint);
}
.trait strong{ display: block; color: var(--color-brand); margin-bottom: 4px; }
.trait p{ margin: 0; font-size: 0.95rem; color: var(--color-text-soft); }

/* Caixa de informação (dados de apoio / contactos) */
.info-box{
  background: var(--color-surface);
  max-width: 900px;
  margin: 0 auto;
  border-radius: 25px;
  padding: 50px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.info-box h3{ color: var(--color-brand); margin: 0 0 20px; }
.info-line{ margin: 16px 0; font-size: 1.05rem; }
.info-line strong{ color: var(--color-brand); }
.note{ margin-top: 22px; font-size: 0.88rem; color: var(--color-text-soft); font-style: italic; }

/* Bloco de citação */
.quote-band{
  background: var(--color-brand-light);
  color: var(--color-white);
  text-align: center;
}
.quote-band h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 26px; }
.quote-band p{ max-width: 880px; margin: 0 auto; font-size: 1.2rem; font-style: italic; }

/* ============ 10. COMPONENTES ESPECÍFICOS ============ */

/* Homepage: destaque de Santa Beatriz */
.spotlight{
  display: grid;
  grid-template-columns: 380px 1fr;
  background: var(--color-brand-dark);
  overflow: hidden;
  min-height: 480px;
}
.spotlight img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.spotlight__text{
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  color: var(--color-white);
}
.spotlight__text p{ font-size: 1.08rem; opacity: 0.95; }

/* Timeline vertical (biografia Santa Beatriz) — sem fotografias inventadas */
.bio-timeline{
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 40px;
  border-left: 2px solid var(--color-section-tint);
}
.bio-entry{ position: relative; padding: 0 0 46px 30px; }
.bio-entry:last-child{ padding-bottom: 0; }
.bio-entry::before{
  content: '';
  position: absolute;
  left: -46px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-brand-light);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-brand-light);
}
.bio-entry__year{
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-brand-light);
  margin-bottom: 6px;
}
.bio-entry h3{ color: var(--color-brand); margin: 0 0 10px; font-size: 1.5rem; }

/* Ordem: escudo */
.crest-panel{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 46px;
}
.crest-panel img{ border-radius: var(--radius-md); }
.crest-list{ display: grid; gap: 18px; }
.crest-list dt{ font-family: var(--font-display); color: var(--color-brand); font-size: 1.15rem; font-weight: 600; }
.crest-list dd{ margin: 4px 0 0; color: var(--color-text-soft); }

/* Galeria simples (mosteiro.html) */
.gallery{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery img{ width: 100%; height: 230px; object-fit: cover; border-radius: var(--radius-md); }

/* Loja: cartão de produto reaproveita .card */
.contact-links{ display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }
.contact-links a{
  text-decoration: none;
  color: var(--color-brand);
  background: var(--color-section-tint);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
}
.contact-links a:hover{ background: var(--color-accent-tint); }

.map-frame{
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ============ 11. RODAPÉ ============ */
.site-footer{
  background: var(--color-brand-dark);
  color: rgba(255,255,255,0.9);
  padding: 64px 8% 28px;
}
.footer-grid{
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand{ font-family: var(--font-display); font-size: 1.4rem; color: var(--color-white); margin: 0 0 14px; }
.footer-grid p{ margin: 0 0 8px; opacity: 0.85; font-size: 0.95rem; }
.footer-heading{
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 16px;
}
.footer-links{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a{ color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover{ color: var(--color-white); text-decoration: underline; }
.footer-bottom{
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.75;
}
.footer-bottom a{ color: inherit; text-decoration: underline; }

/* ============ 12. UTILITÁRIOS ============ */
.text-left{ text-align: left; }
.mt-0{ margin-top: 0; }
.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============ 13. RESPONSIVO ============ */
@media (max-width: 980px){
  .navbar{ padding: 14px 22px; }
  .nav-toggle{ display: inline-flex; }
  .nav-menu{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-brand-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-menu.is-open{ max-height: 560px; }
  .nav-menu li{ border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-menu a{ display: block; padding: 16px 26px; border-bottom: 0; }
  .nav-menu a[aria-current="page"]{ background: rgba(255,255,255,0.08); border-bottom: 0; }

  .split, .spotlight, .crest-panel{ grid-template-columns: 1fr; }
  .spotlight{ min-height: auto; }
  .spotlight img{ max-height: 320px; }
  .crest-panel{ padding: 30px; }
  .crest-panel img{ max-width: 240px; margin: 0 auto; }
  .footer-grid{ grid-template-columns: 1fr; }
  section, .band{ padding: 64px 6%; }
}

@media (max-width: 560px){
  .hero-content h1{ font-size: 2.2rem; }
  .cta{ padding: 46px 6%; }
  .spotlight__text, .info-box{ padding: 30px; }
}
