/* ══════════════════════════════════════
   CONTMAX — Folha de Estilos Global
   ══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0a1628;
  --navy-mid:   #152243;
  --navy-light: #1e3060;
  --gold:       #c8922a;
  --gold-light: #e8b84b;
  --gold-pale:  #f5e9cc;
  --white:      #ffffff;
  --off-white:  #faf9f6;
  --gray-light: #f0ede6;
  --gray-mid:   #9a9590;
  --gray-dark:  #4a4642;
  --text:       #1a1714;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--off-white); color: var(--text); font-size: 16px; line-height: 1.7; overflow-x: hidden; }

/* ── HEADER ── */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--navy); border-bottom: 2px solid var(--gold); transition: box-shadow .3s; }
header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.4); }

.header-top { display: flex; align-items: center; justify-content: space-between; padding: .75rem 2rem; max-width: 1300px; margin: 0 auto; }
.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { height: 48px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .lt-name { font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 700; color: var(--gold-light); letter-spacing: .04em; }
.logo-text .lt-sub  { font-size: .7rem; color: rgba(255,255,255,.5); letter-spacing: .18em; text-transform: uppercase; }

.header-contact { display: flex; align-items: center; gap: 1.4rem; font-size: .82rem; color: rgba(255,255,255,.6); }
.header-contact .hc-addr { display: flex; align-items: center; gap: 6px; }
.header-contact a { color: var(--gold-light); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 6px; transition: color .2s; }
.header-contact a:hover { color: var(--white); }

nav { background: var(--navy-mid); border-top: 1px solid rgba(200,146,42,.2); }
.nav-inner { display: flex; align-items: center; max-width: 1300px; margin: 0 auto; padding: 0 2rem; overflow-x: auto; }
.nav-inner::-webkit-scrollbar { display: none; }
nav a { display: inline-block; padding: .7rem 1rem; font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.65); text-decoration: none; letter-spacing: .07em; text-transform: uppercase; transition: color .2s, border-bottom .2s; border-bottom: 2px solid transparent; white-space: nowrap; }
nav a:hover, nav a.active { color: var(--gold-light); border-bottom-color: var(--gold); }
.nav-webmail { margin-left: auto; background: rgba(200,146,42,.12); border: 1px solid rgba(200,146,42,.35); border-radius: 4px; padding: .35rem .9rem !important; border-bottom: none !important; }
.nav-webmail:hover { background: rgba(200,146,42,.28) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; margin-left: 1rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gold-light); transition: all .3s; }
.mobile-nav { display: none; flex-direction: column; background: var(--navy-mid); border-top: 1px solid rgba(200,146,42,.2); padding: .8rem 1.5rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: .65rem 0; color: rgba(255,255,255,.75); text-decoration: none; font-size: .88rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-nav a:hover { color: var(--gold-light); }

/* ── PAGE HERO BANNER (páginas internas) ── */
.page-banner {
  margin-top: 103px;
  height: 200px;
  background: var(--navy);
  background-image: linear-gradient(135deg, var(--navy) 60%, var(--navy-light) 100%);
  display: flex; align-items: center;
  padding: 0 2rem;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(200,146,42,.04) 0px, rgba(200,146,42,.04) 1px, transparent 1px, transparent 40px);
}
.page-banner-inner { max-width: 1200px; width: 100%; margin: 0 auto; position: relative; z-index: 1; }
.page-banner h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3vw,2.8rem); color: var(--white); font-weight: 700; }
.page-banner .breadcrumb { margin-top: .4rem; font-size: .8rem; color: rgba(255,255,255,.5); display: flex; gap: 8px; align-items: center; }
.page-banner .breadcrumb a { color: var(--gold-light); text-decoration: none; }
.page-banner .breadcrumb span { color: var(--gold); }

/* ── LINK SIDEBAR (páginas de links) ── */
.links-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.links-sidebar { position: sticky; top: 120px; align-self: start; }
.links-sidebar h3 { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(200,146,42,.25); }
.links-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.links-sidebar ul a { display: block; padding: .55rem .8rem; font-size: .84rem; color: var(--gray-dark); text-decoration: none; border-radius: 5px; transition: all .2s; border-left: 2px solid transparent; }
.links-sidebar ul a:hover { background: var(--gold-pale); color: var(--navy); border-left-color: var(--gold); }
.links-sidebar ul a.active { background: var(--gold-pale); color: var(--navy); border-left-color: var(--gold); font-weight: 600; }

/* ── LINK CARDS ── */
.link-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1rem; }
.link-card { background: var(--white); border: 1px solid rgba(200,146,42,.2); border-radius: 9px; padding: 1.3rem 1rem; text-align: center; text-decoration: none; color: var(--gray-dark); font-size: .84rem; font-weight: 500; transition: all .25s; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.link-card:hover { background: var(--navy); border-color: var(--navy); color: var(--gold-light); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(10,22,40,.15); }
.link-card .lc-icon { font-size: 1.9rem; }
.link-card span { font-size: .8rem; line-height: 1.3; }

.links-section-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--navy); font-weight: 700; margin-bottom: 1.2rem; padding-bottom: .6rem; border-bottom: 2px solid var(--gold); display: flex; align-items: center; gap: 10px; }
.links-section-title span { font-size: 1.5rem; }
.links-sub-section { margin-bottom: 2.5rem; }
.links-sub-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .8rem; display: block; }

/* ── PORTAIS ── */
.portais-bar { background: var(--navy-mid); padding: 2rem; border-bottom: 1px solid rgba(200,146,42,.2); }
.portais-inner { max-width: 1200px; margin: 0 auto; }
.portais-label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .9rem; display: block; }
.portais-grid { display: flex; gap: .8rem; flex-wrap: wrap; }
.portal-btn { display: flex; align-items: center; gap: 9px; padding: .7rem 1.2rem; background: rgba(255,255,255,.06); border: 1px solid rgba(200,146,42,.3); border-radius: 6px; text-decoration: none; color: rgba(255,255,255,.85); font-size: .83rem; font-weight: 500; transition: all .22s; }
.portal-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.portal-btn .pb-icon { font-size: 1.2rem; }

/* ── FOOTER ── */
footer { background: var(--navy); border-top: 2px solid var(--gold); padding: 3rem 2rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.45); margin-top: .5rem; max-width: 240px; line-height: 1.6; }
.footer-col h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: .9rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.footer-col ul a { font-size: .84rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-bottom { padding-top: 1.4rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .77rem; color: rgba(255,255,255,.3); }
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── SCROLL TOP ── */
#scrollTop { position: fixed; bottom: 2rem; right: 2rem; width: 42px; height: 42px; background: var(--gold); color: var(--navy); border: none; border-radius: 8px; cursor: pointer; font-size: 1.1rem; display: none; align-items: center; justify-content: center; z-index: 999; font-weight: 700; transition: background .2s, transform .2s; }
#scrollTop:hover { background: var(--gold-light); transform: translateY(-3px); }
#scrollTop.visible { display: flex; }

/* ── UTILITÁRIOS ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .4rem; display: block; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem,3vw,2.5rem); font-weight: 700; color: var(--navy); line-height: 1.25; }
.section-divider { width: 48px; height: 3px; background: var(--gold); margin: .9rem auto 0; border-radius: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .links-layout { grid-template-columns: 1fr; }
  .links-sidebar { position: static; }
  .links-sidebar ul { flex-direction: row; flex-wrap: wrap; }
  .links-sidebar ul a { border-left: none; border-bottom: 2px solid transparent; }
  .links-sidebar ul a:hover, .links-sidebar ul a.active { border-left: none; border-bottom-color: var(--gold); }
}
@media (max-width: 768px) {
  .nav-inner { display: none; }
  .hamburger { display: flex; }
  .page-banner { height: 150px; margin-top: 88px; }
  .header-contact .hc-addr { display: none; }
  .footer-top { flex-direction: column; }
}
