/* ================================================================
   BV ALCANEDE — Main Stylesheet
   Paleta: Vermelho #C8102E | Negro #1A1A1A | Dourado #C9A84C
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,400&display=swap');

:root {
  --red:    #C8102E;
  --red-d:  #9B0B21;
  --red-l:  #E8192E;
  --gold:   #C9A84C;
  --gold-l: #E8C46A;
  --black:  #1A1A1A;
  --dark:   #222222;
  --gray:   #6B7280;
  --light:  #F5F5F5;
  --white:  #FFFFFF;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-l: 0 2px 8px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

a { color: var(--red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--red-d); }

img { max-width: 100%; height: auto; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── TOP BAR ── */
.top-bar {
  background: var(--black);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  padding: 7px 0;
}
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--gold); }
.top-bar .top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar-item { display: flex; align-items: center; gap: 6px; }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { width: 64px; height: 64px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: 0.04em;
}
.logo-sub {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── NAV ── */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.main-nav a:hover,
.main-nav a.active { background: var(--red); color: var(--white); }

.nav-emergency {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  animation: pulse-red 2s infinite;
}
.nav-emergency:hover { background: var(--red-d) !important; }

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(200,16,46,0); }
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 580px;
  background: linear-gradient(135deg, var(--black) 0%, #3D0010 50%, var(--red) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="0,100 100,0 100,100" fill="rgba(201,168,76,0.06)"/></svg>') no-repeat center;
  background-size: cover;
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 680px;
  padding: 60px 0;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-radius: 3px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 18px;
  opacity: 0.88;
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.65;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-d); border-color: var(--red-d); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,16,46,0.4); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-l); transform: translateY(-2px); color: var(--black); }
.btn-sm { padding: 9px 20px; font-size: 13px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 480px;
}
.hero-stat {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}
.hero-stat span { font-size: 12px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── SECTIONS ── */
.section { padding: 72px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--dark); color: var(--white); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-label {
  display: inline-block;
  color: var(--red);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-sub { font-size: 17px; color: var(--gray); max-width: 560px; margin: 0 auto; }
.section-dark .section-sub { color: rgba(255,255,255,0.65); }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-cat {
  font-size: 12px;
  color: var(--red);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card-title { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.card-title a { color: var(--black); }
.card-title a:hover { color: var(--red); }
.card-text { color: var(--gray); font-size: 15px; margin-bottom: 16px; }
.card-meta { font-size: 13px; color: var(--gray); display: flex; align-items: center; gap: 8px; }

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-l);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 72px; height: 72px;
  background: rgba(200,16,46,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--red); }
.service-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service-desc { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ── STATS BAR ── */
.stats-bar { background: var(--red); color: var(--white); padding: 40px 0; }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
}
.stat-item { text-align: center; padding: 20px; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.stat-label { font-size: 14px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ── MEMBER CARDS ── */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.member-card { text-align: center; }
.member-photo {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--red);
  margin: 0 auto 16px;
  display: block;
}
.member-photo-placeholder {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 40px;
  color: var(--white);
  font-weight: 700;
  margin: 0 auto 16px;
  border: 4px solid var(--red-d);
}
.member-name { font-family: var(--font-head); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.member-role { font-size: 14px; color: var(--red); font-weight: 600; }
.member-num { font-size: 13px; color: var(--gray); }

/* ── TRANSPORT FORM ── */
.transport-form-wrap {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.transport-form-header {
  background: var(--red);
  color: var(--white);
  padding: 28px 32px;
}
.transport-form-header h2 {
  font-size: 26px;
  margin-bottom: 4px;
}
.transport-form-header p { opacity: 0.85; font-size: 15px; }
.transport-form-body { padding: 32px; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-label .required { color: var(--red); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
  color: var(--black);
  background: var(--white);
}
.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}
.form-control::placeholder { color: #9CA3AF; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; cursor: pointer; }
.form-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); cursor: pointer; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-info-item {
  display: flex; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #E5E7EB;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 48px; height: 48px; min-width: 48px;
  background: rgba(200,16,46,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.contact-info-text strong { display: block; font-weight: 600; margin-bottom: 2px; }
.contact-info-text span { color: var(--gray); font-size: 15px; }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  font-size: 28px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── MAP EMBED ── */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; border: none; }

/* ── ALERT BANNER ── */
.emergency-banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 14px;
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 0.04em;
  animation: blink-bg 3s infinite;
}
@keyframes blink-bg {
  0%, 100% { background: var(--red); }
  50% { background: var(--red-d); }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo-main { font-size: 22px; margin-bottom: 10px; display: block; }
.footer-brand p { font-size: 14px; opacity: 0.7; line-height: 1.7; margin-top: 12px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 14px; opacity: 0.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 10px;
}
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: var(--transition);
}
.social-link:hover { background: var(--red); color: var(--white); }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--black) 0%, #3D0010 100%);
  color: var(--white);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  right: -100px; top: -50px;
  width: 400px; height: 400px;
  background: rgba(200,16,46,0.15);
  border-radius: 50%;
}
.page-header-inner { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; opacity: 0.75; list-style: none;
}
.breadcrumb a { color: var(--gold); }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  color: var(--white); font-size: 36px;
  cursor: pointer; background: none; border: none;
  transition: var(--transition);
}
.lightbox-close:hover { color: var(--gold); }

/* ── STATUS BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-warning  { background: #FEF3C7; color: #92400E; }
.badge-info     { background: #DBEAFE; color: #1E40AF; }
.badge-primary  { background: #EDE9FE; color: #5B21B6; }
.badge-success  { background: #D1FAE5; color: #065F46; }
.badge-danger   { background: #FEE2E2; color: #991B1B; }
.badge-secondary { background: #F3F4F6; color: #374151; }

/* ── ALERT ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 15px;
  border: 1px solid transparent;
}
.alert-success { background: #D1FAE5; color: #065F46; border-color: #A7F3D0; }
.alert-danger   { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }
.alert-warning  { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.alert-info     { background: #DBEAFE; color: #1E40AF; border-color: #BFDBFE; }

/* ── DIVIDER ── */
.divider { height: 3px; background: linear-gradient(to right, var(--red), var(--gold), transparent); margin: 0; }

/* ── SCROLL TO TOP ── */
#scrollTop {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--red);
  color: var(--white);
  border: none; border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(200,16,46,0.4);
  transition: var(--transition);
  z-index: 999;
}
#scrollTop:hover { background: var(--red-d); transform: translateY(-3px); }
#scrollTop.visible { display: flex; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .top-bar-right { display: none; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); flex-direction: column; padding: 16px; gap: 4px; }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; }
  .hamburger { display: flex; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .hero { min-height: 480px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .hero-btns { flex-direction: column; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-number { font-size: 36px; }
}
