/* ============================================================
   style.css — Site Vereador Michael
   Mobile-First | CSS Custom Properties | BEM-like naming
   ============================================================ */

/* ── 1. Variáveis (Design Tokens) ───────────────────────────────────────── */
:root {
  --primary:       #1a3a6b;
  --primary-d:     #0f2347;
  --primary-l:     #2855a0;
  --accent:        #c9a227;
  --accent-l:      #e8c252;
  --text:          #2c3e50;
  --text-m:        #5a6a7e;
  --text-l:        #94a3b8;
  --bg:            #ffffff;
  --bg-alt:        #f4f7fb;
  --border:        #dde3ec;
  --success:       #16a34a;
  --error:         #dc2626;
  --white:         #ffffff;

  --shadow-sm:     0 1px 6px rgba(0,0,0,.08);
  --shadow:        0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.15);

  --radius:        10px;
  --radius-lg:     20px;
  --radius-pill:   999px;

  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-head:     'Playfair Display', Georgia, serif;

  --transition:    0.3s ease;
  --nav-h:         72px;
}

/* ── 2. Reset & Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img    { max-width: 100%; height: auto; display: block; }
a      { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
address { font-style: normal; }

/* ── 3. Utilitários ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 5rem;
}

.bg-alt { background: var(--bg-alt); }

.c-accent { color: var(--accent); }

.divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  margin-block: 1.25rem;
}

/* Section header */
.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__tag {
  display: inline-block;
  background: rgba(201,162,39,.12);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35em .9em;
  border-radius: var(--radius-pill);
  margin-bottom: .75rem;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.section__desc {
  margin-top: .75rem;
  color: var(--text-m);
  max-width: 560px;
  margin-inline: auto;
}

/* ── 4. Botões ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75em 1.75em;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--primary-d);
  box-shadow: 0 4px 15px rgba(201,162,39,.35);
}
.btn--primary:hover {
  background: var(--accent-l);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,.45);
}

.btn--outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn--ghost:hover {
  background: var(--primary);
  color: #fff;
}

.btn--full { width: 100%; justify-content: center; }
.btn--lg   { padding: .9em 2.2em; font-size: 1.05rem; }

/* ── 5. Navbar ──────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  /* backdrop-filter removido: criava stacking context que prendia o menu mobile */
  background: rgba(255,255,255,.98);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow); }

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.navbar__logo img { height: 48px; width: auto; object-fit: contain; }

.navbar__logo-fallback {
  display: none;
  flex-direction: column;
  line-height: 1.1;
}
.navbar__logo-fallback strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .06em;
}
.navbar__logo-fallback small {
  font-size: .65rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Nav links */
.navbar__list {
  display: none;
  align-items: center;
  gap: .25rem;
}

.navbar__link {
  padding: .45em .85em;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.navbar__link:hover,
.navbar__link.active { color: var(--primary); background: rgba(26,58,107,.07); }

.navbar__link--cta {
  background: var(--primary);
  color: #fff !important;
  padding: .45em 1.1em;
}
.navbar__link--cta:hover { background: var(--primary-d); }

/* Hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .35rem;
  width: 40px;
}
.navbar__hamburger span {
  display: block;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Nav Desktop ──────────────────────────────────────────────────────── */
.navbar__desktop { display: none; }
.navbar__desktop .navbar__list { display: flex; align-items: center; gap: .25rem; }

/* ── Overlay mobile ───────────────────────────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(15, 35, 71, .55);
}
.nav-overlay.open { display: block; }

/* ── Painel lateral mobile ────────────────────────────────────────────── */
.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 320px);
  z-index: 1002;
  background: #fff;
  box-shadow: -4px 0 30px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
  /* IMPORTANTE: painel independente do navbar — sem herança de pointer-events */
  pointer-events: auto;
}
.mobile-panel.open {
  transform: translateX(0);
}

.mobile-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1.5px solid var(--border);
}

.mobile-panel__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-m);
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.mobile-panel__close:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.mobile-panel__list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem .75rem;
  flex: 1;
}

.mobile-panel__link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85em 1em;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  /* Garantir que o link seja clicável */
  pointer-events: auto;
  cursor: pointer;
}
.mobile-panel__link i {
  width: 18px;
  text-align: center;
  color: var(--primary);
  font-size: .95rem;
}
.mobile-panel__link:hover,
.mobile-panel__link:focus {
  background: rgba(26,58,107,.07);
  color: var(--primary);
}
.mobile-panel__link--cta {
  background: var(--primary);
  color: #fff !important;
  margin-top: .75rem;
  justify-content: center;
  border-radius: var(--radius-pill);
}
.mobile-panel__link--cta i { color: #fff; }
.mobile-panel__link--cta:hover { background: var(--primary-d) !important; }

/* ── Desktop: esconde mobile elements ────────────────────────────────── */
@media (min-width: 768px) {
  .navbar__desktop  { display: block; }
  .navbar__hamburger { display: none; }
  .nav-overlay      { display: none !important; }
  .mobile-panel     { display: none !important; }
}

/* ── 6. Hero / Carrossel ────────────────────────────────────────────────── */
.hero {
  padding-top: var(--nav-h);
  height: 100vh;
  min-height: 560px;
}

.carousel {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.carousel__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Slide backgrounds */
.slide--1 { background: linear-gradient(135deg, #0f2347 0%, #1a3a6b 55%, #2855a0 100%); }
.slide--2 { background: linear-gradient(135deg, #1a3a6b 0%, #1a4a80 50%, #c9a227 130%); }
.slide--3 { background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6b 60%, #0f2347 100%); }

/* Decorative pattern overlay */
.carousel__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(201,162,39,.08) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
  pointer-events: none;
}

.carousel__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding-inline: 1.25rem;
  max-width: 800px;
  animation: fadeSlideUp .7s ease both;
}

.carousel__tag {
  display: inline-block;
  background: rgba(201,162,39,.25);
  border: 1px solid rgba(201,162,39,.5);
  color: var(--accent-l);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .35em 1em;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.carousel__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.carousel__title em {
  font-style: normal;
  color: var(--accent-l);
}

.carousel__sub {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.carousel__btns {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

/* Arrows */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.carousel__arrow:hover   { background: rgba(255,255,255,.3); }
.carousel__arrow--prev   { left: 1rem; }
.carousel__arrow--next   { right: 1rem; }

/* Dots */
.carousel__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 10;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 1.5px solid rgba(255,255,255,.6);
  transition: all var(--transition);
}
.carousel__dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
}

/* ── 7. Sobre ───────────────────────────────────────────────────────────── */
.sobre__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .sobre__grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
}

/* Image frame */
.sobre__img-frame {
  position: relative;
  max-width: 440px;
  margin-inline: auto;
}
.sobre__img-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: 0;
  opacity: .45;
}

.sobre__img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.sobre__img-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.sobre__img-placeholder i { font-size: 5rem; opacity: .5; }

.sobre__badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  z-index: 2;
  background: var(--accent);
  color: var(--primary-d);
  font-size: .78rem;
  font-weight: 700;
  padding: .55em 1.1em;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* Texto */
.sobre__texto > p {
  color: var(--text-m);
  margin-bottom: 1rem;
}

/* Stats */
.sobre__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-block: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat__num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat__label {
  font-size: .78rem;
  color: var(--text-m);
  font-weight: 500;
  margin-top: .25rem;
}

.sobre__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── 8. Projetos ────────────────────────────────────────────────────────── */
.projetos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 540px) { .projetos__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .projetos__grid { grid-template-columns: repeat(4, 1fr); } }

.proj-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: all var(--transition);
}
.proj-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(26,58,107,.15);
}

.proj-card__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: .25rem;
}

/* Icon color variants */
.icon--edu   { background: rgba(37,99,235,.1);  color: #2563eb; }
.icon--saude { background: rgba(220,38,38,.1);  color: #dc2626; }
.icon--infra { background: rgba(234,88,12,.1);  color: #ea580c; }
.icon--seg   { background: rgba(124,58,237,.1); color: #7c3aed; }
.icon--hab   { background: rgba(5,150,105,.1);  color: #059669; }
.icon--meio  { background: rgba(22,163,74,.1);  color: #16a34a; }
.icon--esp   { background: rgba(2,132,199,.1);  color: #0284c7; }
.icon--soc   { background: rgba(217,119,6,.1);  color: #d97706; }

.proj-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.proj-card p  { font-size: .88rem; color: var(--text-m); flex: 1; }

/* Status badges */
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3em .8em;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}
.badge--ok   { background: rgba(22,163,74,.12);  color: #16a34a; }
.badge--prog { background: rgba(201,162,39,.15);  color: #a37c10; }

/* ── 9. Blog Preview ────────────────────────────────────────────────────── */
.blog-prev__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 540px) { .blog-prev__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .blog-prev__grid { grid-template-columns: repeat(3, 1fr); } }

.blog-prev__loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem;
  color: var(--text-m);
}

.blog-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.blog-card__img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card__img img  { width: 100%; height: 100%; object-fit: cover; }
.blog-card__img-icon { font-size: 2.5rem; color: rgba(255,255,255,.35); }

.blog-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }

.blog-card__date {
  font-size: .78rem;
  color: var(--text-l);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  flex: 1;
}
.blog-card__excerpt { font-size: .85rem; color: var(--text-m); }
.blog-card__read {
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: .5rem;
}

.blog-prev__footer { text-align: center; }

/* ── 10. Apoiadores ─────────────────────────────────────────────────────── */
.apoiadores__intro {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3rem;
  color: var(--text-m);
  font-size: 1.05rem;
}

.apoiadores__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 600px) { .apoiadores__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .apoiadores__grid { grid-template-columns: repeat(6, 1fr); } }

.apoiador-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  transition: all var(--transition);
}
.apoiador-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(26,58,107,.15);
}

.apoiador-card__nome {
  font-weight: 700;
  color: var(--primary);
  font-size: .9rem;
  line-height: 1.3;
}

.apoiador-card__foto {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  position: relative;
}
.apoiador-card__foto img { width: 100%; height: 100%; object-fit: cover; }
.apoiador-card__placeholder {
  display: none;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 1.8rem;
}

.apoiador-card__cargo {
  font-size: .75rem;
  color: var(--text-m);
  line-height: 1.4;
}

/* ── 11. Contato ────────────────────────────────────────────────────────── */
.contato__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .contato__grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; } }

/* Info */
.contato__info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.contato__lista {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 2rem;
}
.contato__lista li {
  display: flex;
  gap: .75rem;
  color: var(--text-m);
  font-size: .95rem;
  line-height: 1.5;
}
.contato__lista i { color: var(--accent); margin-top: .2rem; flex-shrink: 0; }

/* Social buttons */
.contato__social { display: flex; gap: .65rem; flex-wrap: wrap; }

.soc-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  color: #fff;
}
.soc-btn--fb { background: #1877f2; }
.soc-btn--ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.soc-btn--yt { background: #ff0000; }
.soc-btn--wa { background: #25d366; }
.soc-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }

/* Form */
.contato__form-wrap {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.req { color: var(--error); }

.form-group input,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .75em 1em;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-l);
  box-shadow: 0 0 0 3px rgba(26,58,107,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-err {
  font-size: .78rem;
  color: var(--error);
  min-height: 1.2em;
}
.form-group.has-error input,
.form-group.has-error textarea { border-color: var(--error); }

.form-feedback {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  display: none;
}
.form-feedback.success {
  display: block;
  background: rgba(22,163,74,.1);
  color: var(--success);
  border: 1.5px solid rgba(22,163,74,.2);
}
.form-feedback.error {
  display: block;
  background: rgba(220,38,38,.08);
  color: var(--error);
  border: 1.5px solid rgba(220,38,38,.15);
}

/* ── 12. Footer ─────────────────────────────────────────────────────────── */
.footer { background: var(--primary-d); color: rgba(255,255,255,.8); }

.footer__main { padding-block: 4rem; }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

.footer__brand img { height: 52px; margin-bottom: 1.25rem; }
.footer__brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .06em;
  margin-bottom: 1.25rem;
}

.footer__heading {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__address p {
  display: flex;
  gap: .6rem;
  margin-bottom: .65rem;
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(255,255,255,.7);
}
.footer__address i { color: var(--accent); flex-shrink: 0; margin-top: .2rem; }

.footer__map {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}

.footer__social-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.5rem;
}

.footer__social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 2rem;
}

.fs-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .85rem .5rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  font-size: .75rem;
  font-weight: 600;
  transition: all var(--transition);
}
.fs-card i     { font-size: 1.2rem; }
.fs-card:hover { transform: translateY(-3px); }

.fs-card--fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.fs-card--ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; color: #fff; }
.fs-card--yt:hover { background: #ff0000; border-color: #ff0000; color: #fff; }
.fs-card--wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.fs-card--tg:hover { background: #0088cc; border-color: #0088cc; color: #fff; }
.fs-card--tw:hover { background: #000; border-color: #000; color: #fff; }

.footer__links h4 {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}
.footer__links ul { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer__links a::before { content: '→'; color: var(--accent); }
.footer__links a:hover   { color: #fff; }

.footer__bottom {
  background: rgba(0,0,0,.25);
  padding-block: 1.25rem;
}
.footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

/* ── 13. Back-to-Top ────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 1000;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .38);
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(37, 211, 102, .44);
}

.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover { background: var(--primary-d); transform: translateY(-3px); }

/* ── 14. Spinner ────────────────────────────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border: 3.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ── 15. Scroll Animations ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal--right  { transform: translateX(30px); }
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal--right.visible { transform: none; }

/* Staggered delay helper */
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

/* ── 16. Keyframes ──────────────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

