/* ============================================
   GRANDE ORIENTE FRATERN0 DA EUROPA (G.O.F.E.)
   stylesheet
   ============================================ */

/*
   Paleta
   Azul navy   : #0D1B3E
   Dourado     : #C9A84C
   Branco      : #FFFFFF
   Azul claro  : #1A2E5A
   Cinza claro : #F5F5F5
   Texto       : #1A1A1A
*/

/* ---- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #1A1A1A;
  background: #FFFFFF;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: #0D1B3E;
  line-height: 1.25;
}
a { color: #C9A84C; text-decoration: none; transition: color .25s ease; }
a:hover { color: #0D1B3E; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---- Typography helpers ------------------------------------ */
.text-gold { color: #C9A84C; }
.text-navy { color: #0D1B3E; }
.text-white { color: #FFFFFF; }
.bg-navy { background-color: #0D1B3E; }
.bg-gold { background-color: #C9A84C; }
.bg-light { background-color: #F5F5F5; }
.section-label {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: .6rem;
}

/* ---- Layout containers -------------------------------------- */
.container {
  width: 92%;
  max-width: 1320px;
  margin-inline: auto;
}
.py-5 { padding-top: 4rem; padding-bottom: 4rem; }
.py-6 { padding-top: 5.5rem; padding-bottom: 5.5rem; }

/* ---- Top bar ------------------------------------------------ */
.top-bar {
  background: #0D1B3E;
  color: #FFFFFF;
  font-size: .8rem;
  padding: .35rem 0;
  border-bottom: 1px solid rgba(201,168,76,.25);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: rgba(255,255,255,.75); font-size: .8rem; }
.top-bar a:hover { color: #C9A84C; }
.lang-switch { display: flex; gap: .6rem; }
.lang-switch button {
  background: none; border: none; color: rgba(255,255,255,.6);
  cursor: pointer; font-family: 'Cinzel', serif; font-size: .7rem;
  letter-spacing: .05em;
}
.lang-switch button.active, .lang-switch button:hover { color: #C9A84C; }

/* ---- Header & Nav ------------------------------------------- */
.site-header {
  background: #FFFFFF;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(13,27,62,.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex; align-items: center; gap: .9rem; flex-shrink: 0;
  text-decoration: none;
}
.brand img {
  width: 46px; height: 46px; object-fit: contain;
  flex-shrink: 0;
}
.brand-text h1 {
  font-size: .82rem; letter-spacing: .06em; line-height: 1.15;
  margin-bottom: .08rem; white-space: nowrap;
}
.brand-text span {
  font-family: 'Cinzel', serif; font-size: .65rem;
  letter-spacing: .12em; color: #C9A84C; text-transform: uppercase;
}

/* Nav */
.main-nav ul {
  display: flex; gap: 2rem; align-items: center;
  flex-wrap: nowrap; white-space: nowrap;
}
.main-nav a {
  font-family: 'Cinzel', serif; font-size: .73rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: #0D1B3E; font-weight: 500; position: relative; padding-bottom: .2rem;
  white-space: nowrap;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: #C9A84C;
  transition: width .3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav .nav-cta {
  background: #0D1B3E; color: #C9A84C;
  padding: .4rem .9rem; border-radius: 2px;
  font-size: .65rem; border: 1px solid #C9A84C;
}
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { background: #C9A84C; color: #0D1B3E; }

/* Mobile menu */
.menu-toggle {
  display: none; background: none; border: none;
  font-size: 1.4rem; color: #0D1B3E; cursor: pointer;
}
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto;
    width: 280px; background: #FFFFFF;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(110%);
    transition: transform .35s ease;
    z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.2rem; white-space: normal; }
  .main-nav a { font-size: .85rem; white-space: normal; }
}
.overlay {
  position: fixed; inset: 0; background: rgba(13,27,62,.45);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 98;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ---- Hero --------------------------------------------------- */
.hero {
  position: relative;
  background: #FFFFFF;
  color: #0D1B3E;
  min-height: 82vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 3rem 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,168,76,.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 10%, rgba(13,27,62,.04) 0%, transparent 55%);
  pointer-events: none;
}
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; position: relative; z-index: 2;
}
.hero-text {
  padding-right: 1rem;
}
.hero-text h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  color: #0D1B3E; margin-bottom: 1.2rem;
  line-height: 1.2;
  position: relative;
  padding-left: 1.4rem;
}
.hero-text h2::before {
  content: '';
  position: absolute; left: 0; top: .25em; bottom: .25em;
  width: 4px; background: #C9A84C; border-radius: 2px;
}
.hero-text p {
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  max-width: 520px; margin-bottom: 2rem;
  color: #3a3a3a;
  line-height: 1.7;
}
.hero-crest {
  display: flex; justify-content: center; align-items: center;
}
.hero-crest-inner {
  background: linear-gradient(160deg, #f7f5ef 0%, #FFFFFF 60%);
  padding: 3rem;
  border-radius: 50%;
  border: 2.5px solid #C9A84C;
  box-shadow:
    0 24px 64px rgba(13,27,62,.16),
    inset 0 0 60px rgba(201,168,76,.06),
    0 0 0 12px rgba(201,168,76,.08);
  display: flex; justify-content: center; align-items: center;
  animation: crestReveal 1.2s ease-out forwards;
}
.hero-crest img {
  width: 340px; height: 340px; object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 40px rgba(13,27,62,.25));
}
@keyframes crestReveal {
  from { opacity: 0; transform: scale(.82) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-text { padding-right: 0; }
  .hero-text h2 { padding-left: 0; }
  .hero-text h2::before { display: none; }
  .hero-text p { margin-inline: auto; }
  .hero-crest-inner { padding: 2rem; }
  .hero-crest img { width: 180px; height: 180px; }
}
.btn-gold {
  display: inline-block;
  background: #C9A84C; color: #0D1B3E;
  font-family: 'Cinzel', serif; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .75rem 1.8rem; border-radius: 2px;
  border: 1px solid #C9A84C; cursor: pointer;
  transition: all .3s ease;
}
.btn-gold:hover { background: transparent; color: #C9A84C; }
.btn-outline {
  display: inline-block;
  background: transparent; color: #C9A84C;
  font-family: 'Cinzel', serif; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .75rem 1.8rem; border-radius: 2px;
  border: 1px solid #C9A84C; cursor: pointer;
  transition: all .3s ease;
}
.btn-outline:hover { background: #C9A84C; color: #0D1B3E; }

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-inline: auto; }
  .hero-crest img { width: 180px; height: 180px; }
}

/* ---- Stats -------------------------------------------------- */
.stats-strip {
  background: linear-gradient(90deg, #0D1B3E, #1A2E5A);
  color: #FFFFFF; padding: 2.2rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  text-align: center;
}
.stat-item .number {
  font-family: 'Cinzel', serif; font-size: 2rem;
  color: #C9A84C; line-height: 1;
}
.stat-item .label {
  font-size: .78rem; opacity: .75; margin-top: .25rem;
  letter-spacing: .05em;
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Section header ----------------------------------------- */
.section-header {
  text-align: center; max-width: 640px; margin: 0 auto 2.5rem;
}
.section-header h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: .6rem;
}
.section-header p {
  color: #555; font-size: 1.05rem;
}

/* ---- Cards -------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #FFFFFF;
  border: 1px solid rgba(13,27,62,.08);
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(13,27,62,.04);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13,27,62,.1);
}
.card-body { padding: 1.4rem; }
.card-body h3 {
  font-size: 1rem; margin-bottom: .4rem; color: #0D1B3E;
}
.card-body p { font-size: .95rem; color: #444; }
.card-date {
  font-size: .7rem; color: #C9A84C;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .3rem; font-family: 'Cinzel', serif;
}

/* ---- News & Events ------------------------------------------ */
.news-list { display: grid; gap: 1rem; }
.news-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #FFFFFF; padding: 1.2rem;
  border: 1px solid rgba(13,27,62,.08); border-radius: 4px;
  transition: box-shadow .25s ease;
}
.news-item:hover { box-shadow: 0 6px 20px rgba(13,27,62,.08); }
.news-thumb {
  width: 100px; height: 80px; object-fit: cover; border-radius: 2px;
  background: #eee; flex-shrink: 0;
}
.news-content h4 { font-size: 1rem; margin-bottom: .25rem; }
.news-content p { font-size: .9rem; color: #555; }

/* ---- Dignitary card ----------------------------------------- */
.dignitary {
  text-align: center; padding: 1.5rem;
}
.dignitary img {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 1rem;
  border: 3px solid #C9A84C; background: #eee;
}
.dignitary h4 { font-size: 1rem; margin-bottom: .15rem; }
.dignitary span {
  font-size: .8rem; color: #C9A84C;
  font-family: 'Cinzel', serif; letter-spacing: .05em;
}

/* ---- Message box -------------------------------------------- */
.message-box {
  background: linear-gradient(135deg, #0D1B3E, #1A2E5A);
  color: #FFFFFF; padding: 3rem;
  border-radius: 4px;
  position: relative; overflow: hidden;
}
.message-box::before {
  content: '"';
  position: absolute; top: 1rem; left: 1.5rem;
  font-family: 'Cinzel', serif; font-size: 6rem;
  color: rgba(201,168,76,.12); line-height: 1;
}
.message-box p {
  font-style: italic; font-size: 1.1rem;
  line-height: 1.9; opacity: .92;
}
.message-box .author {
  margin-top: 1.2rem; font-style: normal;
  color: #C9A84C; font-family: 'Cinzel', serif;
}

/* ---- Masonic symbol divider --------------------------------- */
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin: 2.5rem 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; max-width: 80px; height: 1px;
  background: rgba(201,168,76,.4);
}
.divider span {
  font-size: 1.2rem; color: #C9A84C;
}

/* ---- Timeline ----------------------------------------------- */
.timeline {
  position: relative; padding-left: 2rem;
}
.timeline::before {
  content: ''; position: absolute; left: .5rem; top: 0; bottom: 0;
  width: 2px; background: #C9A84C;
}
.timeline-item {
  position: relative; margin-bottom: 1.5rem;
}
.timeline-item::before {
  content: ''; position: absolute; left: -1.65rem; top: .35rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: #C9A84C; border: 2px solid #FFFFFF;
}
.timeline-item h4 { font-size: 1rem; margin-bottom: .2rem; }
.timeline-item p { font-size: .92rem; color: #444; }

/* ---- FAQ ---------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid rgba(13,27,62,.1);
  padding: 1.2rem 0;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: 'Cinzel', serif;
  font-size: .95rem; color: #0D1B3E;
}
.faq-question span { font-size: 1.2rem; transition: transform .25s; }
.faq-item.open .faq-question span { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px; padding-top: .6rem;
}
.faq-answer p { font-size: .95rem; color: #444; }

/* ---- Map placeholder ---------------------------------------- */
.map-container {
  background: #0D1B3E; border-radius: 4px; overflow: hidden;
  min-height: 420px; position: relative;
}
.map-overlay {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  color: #FFFFFF; text-align: center; padding: 2rem;
}
.map-overlay h3 { color: #FFFFFF; margin-bottom: .6rem; }
.map-overlay p { opacity: .8; max-width: 480px; }

/* ---- Table -------------------------------------------------- */
table {
  width: 100%; border-collapse: collapse; font-size: .95rem;
}
th, td {
  padding: .8rem 1rem; text-align: left;
  border-bottom: 1px solid rgba(13,27,62,.1);
}
th {
  background: #0D1B3E; color: #C9A84C;
  font-family: 'Cinzel', serif; font-size: .75rem;
  letter-spacing: .06em; text-transform: uppercase;
}
tr:hover { background: rgba(201,168,76,.04); }

/* ---- Forms -------------------------------------------------- */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-family: 'Cinzel', serif;
  font-size: .75rem; letter-spacing: .06em;
  text-transform: uppercase; color: #0D1B3E;
  margin-bottom: .35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .7rem .9rem;
  border: 1px solid rgba(13,27,62,.2); border-radius: 2px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem; color: #1A1A1A;
  background: #FFFFFF;
  transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ---- Contact ----------------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.contact-info h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.contact-info p { font-size: .95rem; color: #444; margin-bottom: .5rem; }
.contact-info .icon { color: #C9A84C; margin-right: .4rem; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- Footer ------------------------------------------------- */
.site-footer {
  background: #0D1B3E; color: rgba(255,255,255,.75);
  font-size: .88rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem; padding: 3.5rem 0;
}
.footer-brand img { width: 56px; height: 56px; margin-bottom: .8rem; }
.footer-brand h4 { color: #FFFFFF; font-size: 1rem; margin-bottom: .4rem; }
.footer-brand p { font-size: .85rem; line-height: 1.6; }
.footer-col h5 {
  color: #C9A84C; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .85rem; }
.footer-col a:hover { color: #C9A84C; }
.footer-bottom {
  border-top: 1px solid rgba(201,168,76,.15);
  padding: 1.2rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: .8rem;
}
.social-links { display: flex; gap: .8rem; }
.social-links a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,.35);
  display: grid; place-items: center;
  color: #C9A84C; font-size: .85rem;
  transition: all .25s;
}
.social-links a:hover {
  background: #C9A84C; color: #0D1B3E; border-color: #C9A84C;
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---- Cookie consent ----------------------------------------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #0D1B3E; color: #FFFFFF;
  padding: 1rem 0; z-index: 200;
  border-top: 1px solid #C9A84C;
  transform: translateY(110%);
  transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.cookie-banner p { font-size: .85rem; max-width: 700px; }
.cookie-banner a { color: #C9A84C; text-decoration: underline; }
.cookie-banner button {
  background: #C9A84C; color: #0D1B3E;
  border: none; padding: .5rem 1.2rem;
  font-family: 'Cinzel', serif; font-size: .7rem;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; border-radius: 2px; transition: opacity .25s;
}
.cookie-banner button:hover { opacity: .85; }

/* ---- 404 Page ----------------------------------------------- */
.page-404 {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  text-align: center; background: #0D1B3E; color: #FFFFFF;
}
.page-404 h1 { font-size: 5rem; color: #C9A84C; line-height: 1; }
.page-404 h2 { color: #FFFFFF; font-size: 1.5rem; margin: 1rem 0 .6rem; }
.page-404 p { opacity: .8; max-width: 420px; margin-inline: auto; margin-bottom: 1.5rem; }
.page-404 .compass {
  width: 80px; height: 80px; margin: 0 auto 1.5rem;
  opacity: .6;
}

/* ---- Utility animations ------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Misc --------------------------------------------------- */
.embed-video {
  position: relative; padding-top: 56.25%;
  background: #0D1B3E; border-radius: 4px; overflow: hidden;
}
.embed-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.badge-row {
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
}
.badge {
  width: 64px; height: 64px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(201,168,76,.25); border-radius: 4px;
  display: grid; place-items: center; font-size: .65rem;
  color: rgba(255,255,255,.7); text-align: center;
  padding: .35rem;
}
