/* =============================================
   PRED Solutions — Resource Pages Style
   Covers: nav, topbar, footer, modal, mobile nav
   art-* classes are embedded per-page
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

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

:root {
  --navy:   #0c2340;
  --navy2:  #0f2d50;
  --green:  #1a7a4a;
  --green3: #2dc26b;
  --orange: #f97316;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Manrope', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── ACCENT ── */
.accent { color: var(--green3); }

/* ── TOP BAR ── */
.top-bar {
  background: var(--navy);
  padding: 8px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-bar-item {
  display: flex; align-items: center; gap: 7px;
  font-size: .76rem; color: rgba(160,179,204,.8);
}
.top-bar-item svg { width: 14px; height: 14px; fill: rgba(160,179,204,.5); flex-shrink: 0; }
.top-bar-item a { color: rgba(160,179,204,.8); text-decoration: none; transition: color .15s; }
.top-bar-item a:hover { color: white; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 5%;
  display: flex; align-items: center;
  height: 68px;
  box-shadow: 0 1px 8px rgba(12,35,64,.07);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0; margin-right: auto;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800;
  color: var(--navy); letter-spacing: -.5px; line-height: 1.1;
}
.logo-tagline {
  font-size: .62rem; font-weight: 600; letter-spacing: .5px;
  color: var(--gray-400); text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 500;
}
.nav-links > a {
  padding: 6px 12px; border-radius: 6px;
  color: var(--gray-700); text-decoration: none;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links > a:hover { color: var(--navy); background: var(--gray-50); }
.nav-links > a.active { color: white; background: var(--green); font-weight: 600; }
.nav-cta {
  background: var(--green) !important; color: white !important;
  padding: 8px 18px !important; border-radius: 8px !important;
  font-weight: 700 !important; font-size: .84rem !important;
  margin-left: 6px; transition: background .15s !important;
}
.nav-cta:hover { background: #155f39 !important; }

/* ── DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: flex; align-items: center; gap: 3px;
  padding: 6px 12px; border-radius: 6px;
  color: var(--gray-700); text-decoration: none;
  transition: color .15s, background .15s; cursor: pointer;
  white-space: nowrap; font-size: .88rem; font-weight: 500;
}
.nav-dropdown > a:hover { color: var(--navy); background: var(--gray-50); }
.nav-dropdown > a svg { width: 16px; height: 16px; fill: var(--gray-400); }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: white; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 8px;
  min-width: 210px;
  box-shadow: 0 8px 32px rgba(12,35,64,.13);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
  z-index: 300;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 7px;
  font-size: .84rem; font-weight: 500; color: var(--gray-700);
  text-decoration: none; transition: background .12s, color .12s;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--gray-50); color: var(--navy); }
.dropdown-menu a svg { width: 16px; height: 16px; fill: var(--green); flex-shrink: 0; }
.dm-divider { height: 1px; background: var(--gray-200); margin: 4px 0; }

/* ── NAV HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; border-radius: 6px;
  transition: background .15s; margin-left: 8px;
}
.nav-hamburger:hover { background: var(--gray-100); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── EYEBROW / SECTION TITLE ── */
.eyebrow {
  display: block; font-size: .72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.35);
  padding: 56px 5% 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800;
  color: white; display: block; margin-bottom: 4px;
}
.footer-brand-sub {
  font-size: .72rem; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: .8rem; line-height: 1.65;
  color: rgba(255,255,255,.45); max-width: 280px; margin-bottom: 20px;
}
.footer-contact-item { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-contact-item svg { width: 14px; height: 14px; fill: var(--green3); flex-shrink: 0; }
.footer-contact-item a { font-size: .8rem; color: rgba(255,255,255,.55); text-decoration: none; }
.footer-contact-item a:hover { color: white; }
.footer-col h5 {
  font-size: .78rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: .8rem; color: rgba(255,255,255,.4);
  text-decoration: none; transition: color .15s; line-height: 1.4;
  display: block;
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.3); }
.footer-badges { display: flex; gap: 8px; }
.footer-badge {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 5px 12px;
  font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.35);
}

/* ── WHATSAPP FAB ── */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  z-index: 500; transition: transform .2s, box-shadow .2s;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,.55); }
.wa-fab svg { width: 28px; height: 28px; }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 86px; right: 24px;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(12,35,64,.25);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 400;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; fill: white; }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 1000;
}
.mobile-nav.is-open { display: block; }
.mobile-nav-backdrop {
  position: absolute; inset: 0;
  background: rgba(12,35,64,.5); backdrop-filter: blur(2px);
}
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 90vw);
  background: white; overflow-y: auto;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 32px rgba(12,35,64,.2);
}
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-200);
  background: var(--navy);
}
.mobile-nav-logo {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  color: white; text-decoration: none; letter-spacing: -.3px;
}
.mobile-nav-close {
  background: rgba(255,255,255,.1); border: none; color: white;
  width: 32px; height: 32px; border-radius: 6px;
  font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mobile-nav-body {
  padding: 12px; display: flex; flex-direction: column; gap: 2px; flex: 1;
}
.mobile-nav-body a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--gray-700);
  text-decoration: none; transition: background .12s, color .12s;
}
.mobile-nav-body a:hover { background: var(--gray-50); color: var(--navy); }
.mobile-nav-body a svg { width: 18px; height: 18px; fill: var(--green); flex-shrink: 0; }
.mobile-nav-section {
  font-size: .68rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--gray-400);
  padding: 14px 14px 4px;
}
.mobile-nav-divider { height: 1px; background: var(--gray-200); margin: 8px 0; }
.mobile-nav-cta {
  background: var(--green) !important; color: white !important;
  font-weight: 700 !important; margin-top: 8px;
  justify-content: center !important;
}
.mobile-nav-wa {
  background: #dcfce7 !important; color: #15803d !important;
  font-weight: 600 !important; justify-content: center !important;
}
.mobile-nav-wa svg { fill: #15803d !important; }

/* ── QUOTE MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(12,35,64,.6); backdrop-filter: blur(4px);
  z-index: 2000; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: 18px; width: 100%;
  max-width: 640px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(12,35,64,.3);
}
.modal-head {
  padding: 28px 28px 20px; border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.modal-head h2 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  color: var(--navy); margin-bottom: 6px;
}
.modal-head p { font-size: .88rem; color: var(--gray-600); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--gray-100); border: none; width: 32px; height: 32px;
  border-radius: 8px; font-size: 1rem; cursor: pointer; color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 24px 28px; }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.form-row.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .76rem; font-weight: 700; color: var(--gray-800); letter-spacing: .3px; }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--gray-200); border-radius: 8px;
  padding: 11px 14px; font-size: .88rem; font-family: inherit;
  color: var(--gray-800); background: var(--gray-50);
  transition: border-color .16s, box-shadow .16s; outline: none; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green); background: white;
  box-shadow: 0 0 0 3px rgba(26,122,74,.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238f9db5'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  background-size: 20px; cursor: pointer;
}
.form-actions {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px; flex-wrap: wrap;
}
.btn-submit {
  background: var(--green); color: white;
  font-weight: 700; font-size: .9rem;
  padding: 13px 28px; border-radius: 10px;
  border: none; cursor: pointer; font-family: inherit;
  transition: background .18s;
  display: flex; align-items: center; gap: 8px;
}
.btn-submit:hover { background: #155f39; }
.btn-submit svg { width: 17px; height: 17px; fill: white; }
.form-note { font-size: .78rem; color: var(--gray-500); }
.modal-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 48px 28px;
}
.si {
  width: 60px; height: 60px; background: #dcfce7;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.si svg { width: 30px; height: 30px; fill: var(--green); }
.modal-success h4 {
  font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 8px;
}
.modal-success p { font-size: .88rem; color: var(--gray-600); line-height: 1.6; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modal-body { padding: 20px; }
}
