/* ============================================================
   LABPAC — Stylesheet
   Identidade visual fiel ao www2.labpac.com.br
   ============================================================ */

:root {
  --primary:      #2d3765;
  --primary-alt:  #2d3765;
  --primary-dark: #212b5b;
  --nav-active:   #44518b;
  --secondary:    #3a7cba;
  --secondary-dk: #2b6199;
  --link:         #337ab7;
  --link-hover:   #3071a9;
  --bg:           #ffffff;
  --text:         #333333;
  --muted:        #888888;
  --muted-light:  #aaaaaa;
  --border:       #d5d5d5;
  --hover-bg:     #F0F0EE;
  --white:        #ffffff;
  --radius:       4px;
  --transition:   .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-alt);
}
a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; display: block; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === Utilities === */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-white  { color: var(--white); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--primary-alt);
  margin-bottom: .5rem;
}
.section-title span { color: var(--secondary); }
.section-sub {
  font-size: .95rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto .25rem;
}
.divider {
  width: 50px; height: 3px;
  background: var(--secondary);
  margin: .75rem 0 1.75rem;
  border-radius: 2px;
}
.divider-center { margin-left: auto; margin-right: auto; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: .9rem;
  padding: .6rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-dk);
  border-color: var(--secondary-dk);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  color: var(--white);
}
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1db954;
  border-color: #1db954;
  color: var(--white);
}
.btn-lg { padding: .75rem 2rem; font-size: 1rem; }
.btn-sm { padding: .35rem 1rem; font-size: .82rem; }

/* === Navbar === */
.navbar {
  background: #fff;
  border-bottom: 2px solid var(--primary);
  padding: 0;
  position: relative;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  flex: 1;
  justify-content: flex-end;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 500;
  font-size: .85rem;
  color: var(--primary);
  padding: .55rem .8rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover { background: var(--primary); color: var(--white); }
.nav-link.active { background: var(--primary); color: var(--white); }

.nav-portal-wrap { margin-left: .75rem; }
.nav-portal {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: .85rem;
  padding: .45rem 1.1rem;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-portal:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .35rem;
}
.nav-toggle span {
  display: block;
  width: 25px; height: 2px;
  background: var(--primary);
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero {
  background: var(--primary);
  padding: 5rem 0 4.5rem;
  color: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}
.hero-label {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}
.hero-title span { color: #a0c8f0; }
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.7;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.stat-num {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
}
.stat-lbl {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Hero card */
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  padding: 2rem;
  color: var(--white);
}
.hero-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.exam-list { list-style: none; }
.exam-list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 0;
  font-size: .88rem;
  color: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.exam-list li:last-child { border-bottom: none; }
.exam-list li i { color: var(--secondary); font-size: .8rem; flex-shrink: 0; }

/* === Page Hero (páginas internas) === */
.page-hero {
  background: var(--primary);
  padding: 3.5rem 0;
  color: var(--white);
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .5rem; }
.page-hero p  { color: rgba(255,255,255,.78); font-size: .95rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  list-style: none;
  font-size: .83rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .75rem;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: '/'; margin-right: .4rem; }

/* === Cards === */
.cards-grid { display: grid; gap: 1.25rem; }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.card:hover { background: var(--hover-bg); box-shadow: 0 2px 10px rgba(0,0,0,.07); }

.card-icon {
  width: 50px; height: 50px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.card h5 { font-size: .98rem; color: var(--primary-alt); margin-bottom: .4rem; }
.card p  { font-size: .875rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* Team card */
.card-team {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.card-team:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10); }
.team-photo-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--hover-bg);
}
.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  font-size: 3.5rem;
  color: var(--white);
}
.team-body { padding: 1.25rem 1.25rem 1.5rem; }
.card-team h5 { font-size: .98rem; color: var(--primary-alt); margin-bottom: .3rem; }
.team-role { font-size: .82rem; font-weight: 700; color: var(--secondary); margin-bottom: .15rem; text-transform: uppercase; letter-spacing: .04em; }
.team-crm { font-size: .78rem; color: var(--muted); margin-bottom: .75rem; }
.team-specialty-list { list-style: none; text-align: left; }
.team-specialty-list li {
  font-size: .8rem;
  color: var(--text);
  padding: .25rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  line-height: 1.4;
}
.team-specialty-list li:last-child { border-bottom: none; }
.team-specialty-list li i { color: var(--secondary); margin-top: .15rem; flex-shrink: 0; font-size: .7rem; }
.team-formation { font-size: .78rem; color: var(--muted); margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); text-align: left; line-height: 1.5; }

/* Exam accordion */
.exam-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .6rem;
  overflow: hidden;
}
.exam-card.open { border-color: var(--secondary); }
.exam-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.exam-btn:hover { background: var(--hover-bg); }
.exam-card.open .exam-btn { background: var(--hover-bg); }
.exam-btn-icon {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}
.exam-btn-title {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary-alt);
  font-size: .95rem;
  flex: 1;
}
.exam-btn-arrow {
  color: var(--muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.exam-card.open .exam-btn-arrow { transform: rotate(180deg); }
.exam-body {
  display: none;
  padding: .75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}
.exam-body.show { display: block; }
.exam-body p { font-size: .875rem; color: var(--muted); line-height: 1.7; }
.exam-section { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.exam-section-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin-bottom: .5rem; }

/* === Info list === */
.info-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: none; }
.info-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: .95rem;
  flex-shrink: 0;
}
.info-label { font-size: .73rem; color: var(--muted); display: block; margin-bottom: .1rem; text-transform: uppercase; letter-spacing: .04em; }
.info-value { font-size: .9rem; color: var(--text); }
.info-value a { color: var(--link); }
.info-value a:hover { color: var(--link-hover); }

/* === Contact card === */
.contact-card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 2.25rem;
  color: var(--white);
  height: 100%;
}
.contact-card h3 { color: var(--white); margin-bottom: .4rem; }
.contact-card .sub { color: rgba(255,255,255,.7); font-size: .88rem; margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.contact-item:last-child { border-bottom: none; }
.contact-item-icon {
  width: 35px; height: 35px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
  color: var(--white);
}
.contact-item-label { font-size: .72rem; color: rgba(255,255,255,.55); display: block; margin-bottom: .1rem; text-transform: uppercase; letter-spacing: .04em; }
.contact-item-value { font-size: .875rem; color: rgba(255,255,255,.9); }
.contact-item-value a { color: rgba(255,255,255,.9); }
.contact-item-value a:hover { color: var(--white); }

/* === Form === */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.form-label { font-weight: 600; font-size: .875rem; color: var(--text); }
.form-control {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem .9rem;
  font-size: .9rem;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  width: 100%;
  outline: none;
}
.form-control:focus { border-color: var(--secondary); }
.form-control::placeholder { color: #bbb; }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-error { font-size: .78rem; color: #c0392b; display: none; }
.form-control.invalid { border-color: #c0392b; }
.form-control.invalid + .form-error { display: block; }

.form-alert {
  display: none;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-bottom: .9rem;
  align-items: center;
  gap: .5rem;
}
.form-alert.success { display: flex; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-alert.error   { display: flex; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* === Map === */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { display: block; width: 100%; height: 400px; border: none; }

/* === CTA Section === */
.cta-section {
  background: var(--primary);
  padding: 4rem 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.cta-section p  { color: rgba(255,255,255,.8); font-size: .98rem; margin-bottom: 1.75rem; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: .85rem; }

/* === Two-col === */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* === Stats row === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}
.stat-box {
  padding: 1.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stat-box .num {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.stat-box .lbl { font-size: .82rem; color: var(--muted); margin-top: .3rem; }

/* === Partner grid === */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: .82rem;
  color: var(--muted);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 100px;
}
.partner-card:hover { background: var(--hover-bg); color: var(--primary); border-color: var(--secondary); }
.partner-card img {
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

/* === Feature grid === */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.feature-item {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .9rem;
  background: var(--hover-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-item-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}
.feature-item h6 { font-size: .875rem; color: var(--primary-alt); margin-bottom: .15rem; }
.feature-item p  { font-size: .8rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* === Notice box === */
.notice {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.notice-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--white);
}
.notice p { font-size: .875rem; color: var(--muted); margin: .15rem 0 0; }
.notice strong { color: var(--primary-alt); font-size: .9rem; }

/* === Photo Gallery === */
.gallery-section { margin-bottom: 3.5rem; }
.gallery-section:last-child { margin-bottom: 0; }
.gallery-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: .85rem;
  border-bottom: 2px solid var(--primary);
}
.gallery-header-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.gallery-header h3 { font-size: 1.2rem; color: var(--primary-alt); margin: 0; }
.gallery-header p  { font-size: .83rem; color: var(--muted); margin: .1rem 0 0; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.photo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--hover-bg);
}
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.photo-item:hover img { transform: scale(1.04); }
.photo-item-overlay {
  position: absolute; inset: 0;
  background: rgba(45,55,101,.0);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}
.photo-item:hover .photo-item-overlay { background: rgba(45,55,101,.35); }
.photo-item-overlay i { color: var(--white); font-size: 1.6rem; opacity: 0; transition: opacity .25s ease; }
.photo-item:hover .photo-item-overlay i { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: .8;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  border: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.22); }
.lightbox-caption {
  position: absolute;
  bottom: 1.25rem; left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
}
@media (max-width: 768px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid.cols-2 { grid-template-columns: 1fr; }
}

/* === Footer === */
footer {
  background: #fff;
  color: var(--muted);
  border-top: 2px solid var(--border);
}
.footer-top { padding: 3.5rem 0 2.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 2fr;
  gap: 2.5rem;
}
.footer-logo-img { height: 50px; width: auto; margin-bottom: .85rem; display: inline-block; }
.footer-desc { font-size: .85rem; color: var(--muted); line-height: 1.7; }
.footer-social { display: flex; gap: .45rem; margin-top: 1rem; }
.social-btn {
  width: 34px; height: 34px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: .83rem;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--primary); color: var(--white); }
.footer-heading {
  font-family: 'Inter', Arial, sans-serif;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .9rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: var(--muted); font-size: .85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact-list { list-style: none; }
.footer-contact-list li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-bottom: .65rem;
  font-size: .85rem;
  color: var(--muted);
}
.footer-contact-list i { color: var(--primary); margin-top: .2rem; flex-shrink: 0; }
.footer-contact-list a { color: var(--muted); }
.footer-contact-list a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--primary); }

/* === Floating WhatsApp + Back-to-top === */
.whatsapp-fab {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  width: 54px; height: 54px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  z-index: 900;
  box-shadow: 0 3px 16px rgba(37,211,102,.4);
  transition: all var(--transition);
}
.whatsapp-fab:hover { background: #1db954; color: var(--white); transform: scale(1.08); }
.back-top {
  position: fixed;
  bottom: 5rem; right: 1.75rem;
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .83rem;
  z-index: 900;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary-dark); }

/* === Responsive === */
@media (max-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-menu, .nav-portal-wrap { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--primary);
    align-items: center;
    justify-content: center;
    gap: .4rem;
    z-index: 999;
  }
  .nav-menu.open .nav-link { font-size: 1.05rem; padding: .7rem 1.5rem; color: var(--white); }
  .nav-menu.open .nav-portal-wrap { display: flex; margin-top: .85rem; }
  .hero-grid    { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-btns, .hero-stats { justify-content: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-card { max-width: 420px; margin: 0 auto; }
  .cards-grid-3 { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; gap: 1.75rem; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 3rem 0; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse { direction: ltr; }
}
@media (max-width: 480px) {
  .hero-stats   { flex-direction: column; gap: 1.1rem; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row    { grid-template-columns: 1fr 1fr; }
}

/* === Portal Modal === */
.portal-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.portal-modal.open { display: flex; }
.portal-modal-inner {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 980px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.portal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1.25rem;
  background: var(--primary);
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: .95rem;
  flex-shrink: 0;
}
.portal-modal-header i { margin-right: .45rem; }
.portal-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .2rem;
  opacity: .75;
  transition: opacity var(--transition);
}
.portal-modal-close:hover { opacity: 1; }
.portal-modal-frame {
  flex: 1;
  border: none;
  width: 100%;
}
