/* =====================================================
   BRIDGEMEN — QTEN WHITE THEME (STABLE RESET)
   Fully Commented & Organized Version
===================================================== */


/* =====================================================
   ROOT VARIABLES (COLORS, SHADOWS, GLOBAL TOKENS)
===================================================== */
:root {
  --blue-primary: #2f78c9;
  --blue-light: #9ec9f4;
  --blue-dark: #0b3a66;

  --accent-1: #ff6b6b;
  --accent-2: #ffd166;
  --accent-3: #6bcb77;

  --bg: #ffffff;
  --muted: #f6fbff;
  --text: #0f1724;
  --card-border: #eaf2ff;

  --mobile-bar-height: 62px;

  --elev-1: 0 8px 22px rgba(8,22,48,.08);
  --elev-2: 0 12px 32px rgba(8,22,48,.10);
  --elev-3: 0 16px 40px rgba(0,0,0,.22);
}


/* =====================================================
   GLOBAL RESET
===================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}


/* =====================================================
   GLOBAL CONTAINER
===================================================== */
.container {
  max-width: 1140px;
  margin: auto;
  padding: 0 20px;
}


/* =====================================================
   HEADER (DESKTOP)
===================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #eef3fb;
  transition: box-shadow .3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand img {
  height: 46px;
  display: block;
}


/* =====================================================
   NAVIGATION (DESKTOP)
===================================================== */
.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  position: relative;
}

.nav a.active {
  color: var(--blue-primary);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,var(--blue-primary),var(--blue-light));
}

@media (min-width: 769px) {
  .nav { transform: none !important; }
}


/* =====================================================
   SUBTITLE COMPONENT
===================================================== */
.subtitle {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 22px;
  color: var(--blue-dark);
  opacity: 0.92;
  transition: color .25s ease, letter-spacing .25s ease;
}

.subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
  border-radius: 3px;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .35s ease, background .35s ease;
}

.subtitle:hover {
  color: var(--blue-primary);
  letter-spacing: 1.8px;
}

.subtitle:hover::before {
  transform: translateY(-50%) rotate(45deg);
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
}


/* =====================================================
   HAMBURGER (MOBILE) — A3 GRADIENT BORDER + ANIMATION
===================================================== */
.hamburger {
  display: none;
}

@media (max-width: 768px) {

  .hamburger {
    width: 38px;
    height: 32px;
    padding: 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2f78c9, #9ec9f4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 2000;
	    grid-column: 3;
    justify-self: end;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all .35s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}


/* =====================================================
   HERO SECTION
===================================================== */
.hero {
  padding: 64px 0;
  background: linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}

.hero-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.hero h3 {
  font-size: 24px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 800;
  color: #083b6f;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  margin: 0 0 14px;
  font-weight: 900;
  background: linear-gradient(90deg,#383e43,var(--blue-primary),var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 520px;
  color: #334155;
}


/* =====================================================
   BUTTONS
===================================================== */
.btn, .btn-outline {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.btn {
  background: linear-gradient(90deg,var(--blue-dark),var(--blue-primary));
  color: #fff;
}

.btn-outline {
  border: 2px solid var(--blue-primary);
  color: var(--blue-primary);
  margin-left: 10px;
}


/* =====================================================
   CARDS
===================================================== */
.section { padding: 42px 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--card-border);
  box-shadow: var(--elev-2);
  transition: .3s;
}

.card:hover {
  transform: translateY(-8px);
}

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 14px;
}

.grad-a { background: linear-gradient(135deg,var(--accent-1),var(--accent-2)); }
.grad-b { background: linear-gradient(135deg,var(--blue-primary),var(--blue-light)); }
.grad-c { background: linear-gradient(135deg,var(--accent-3),var(--blue-primary)); }


/* =====================================================
   FOOTER (DESKTOP — Option B Compressed Flat)
===================================================== */
@media (min-width: 769px) {

  .footer {
    background: #ffffff;
    color: #0f1724;
    padding: 32px 0 18px;
    border-top: 1px solid #e2e8f0;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .footer-grid > div {
    background: transparent;
    padding: 0;
    border-radius: 0;
  }

  .footer strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--blue-primary);
    margin-bottom: 6px;
    display: block;
  }

  .footer p {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    margin: 3px 0;
  }

  .footer a {
    font-size: 14px;
    color: #334155;
    text-decoration: none;
    transition: color .25s ease;
  }

  .footer a:hover {
    color: var(--blue-primary);
  }

  .pages-inline {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
  }

  .footer-bottom {
    background: transparent;
    color: #64748b;
    text-align: center;
    padding: 10px 0 0;
    font-size: 13px;
    margin-top: 10px;
  }
}


/* =====================================================
   FLOATING WHATSAPP BUTTON (DESKTOP ONLY)
===================================================== */
.whatsapp {
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
}


/* =====================================================
   MOBILE RULES (HEADER, NAV, HERO, FOOTER)
===================================================== */
@media (max-width: 768px) {
	
  .contact-page .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-page .form-grid {
    grid-template-columns: 1fr;
  }
  
  body {
    padding-top: 80px;
    padding-bottom: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom));
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid #eef3fb;
    display: flex;
    align-items: center;
    z-index: 1200;
  }

  .header-inner {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    text-align: center;
  }

  .brand img {
    height: 36px;
    display: block;
    margin: 0 auto;
  }

  .brand span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #334155;
    margin-top: 2px;
    letter-spacing: 0.4px;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 24px 20px;
    transform: translateY(-20px);
    opacity: 0;
    transition: opacity .35s ease, transform .35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1100;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
  }

  .nav a {
    font-size: 16px;
    font-weight: 600;
    color: var(--blue-dark);
    text-decoration: none;
    padding: 8px 0;
    transition: color .25s ease;
  }

  .nav a:hover {
    color: var(--blue-primary);
  }

  .nav a.active {
    color: var(--blue-primary);
    position: relative;
  }

  .nav a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: var(--blue-primary);
    border-radius: 1px;
  }

  .hero-grid {
    flex-direction: column;
    text-align: center;
  }

  .hero h3 { font-size: 18px; }
  .hero h1 { font-size: 40px; }

  .mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--blue-primary);
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1600;
    height: var(--mobile-bar-height);
  }

  .mobile-bar a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

/* Wrap entire footer into one card */
.footer {
  background: #f8fafc;
  padding: 24px 0 20px;
}

.footer-grid {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: var(--elev-1);
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 0 16px;
}


  .footer-grid > div {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: var(--elev-1);
  }

  .footer strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--blue-primary);
    margin-bottom: 8px;
    display: block;
  }

  .footer p {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    margin: 6px 0;
  }

  .footer a {
    color: var(--blue-dark);
    font-weight: 600;
  }

  .footer-bottom {
    background: transparent;
    color: #64748b;
    font-size: 13px;
    padding: 14px 0 6px;
    text-align: center;
  }
  .footer-grid-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: var(--elev-1);
  margin: 0 16px 20px;
}

}


/* =====================================================
   FLOATING ACTION BUTTON (FAB)
===================================================== */
.fab {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 3000;
}

.fab a {
  text-decoration: none;
}

.fab-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  border: 4px solid #fff;
  cursor: pointer;
  box-shadow: var(--elev-3);
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: fab-pulse 2.6s infinite;
}

.fab-main svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.fab-label {
  font-size: 14px;
  letter-spacing: .3px;
}

.fab-main:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 46px rgba(0,0,0,.3);
}

@keyframes fab-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.fab.open .fab-main {
  animation: none;
}

.fab-menu {
  position: absolute;
  bottom: 72px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: .3s ease;
}

.fab.open .fab-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-item {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: var(--elev-3);
  transition: transform .2s ease, box-shadow .2s ease;
}

.fab-item:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

.fab-item.whatsapp {
  background: #25D366;
}

.fab-item.phone {
  background: linear-gradient(135deg,#2563eb,#1e40af);
}

.fab-item.email {
  background: linear-gradient(135deg,#ef4444,#b91c1c);
}


/* CONTACT PAGE IMPROVEMENTS */
/* CONTACT SECTION REFINEMENT */

/* === CONTACT SECTION ENHANCEMENTS === */

/* Gradient border for cards */
.contact-form,
.contact-info {
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 8px 22px rgba(8,22,48,0.08);
  position: relative;
}

.contact-form::before,
.contact-info::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, #2f78c9, #9ec9f4);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

/* Floating labels */
.contact-form .form-group {
  position: relative;
  margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #e6eef9;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form label {
  position: absolute;
  top: 14px;
  left: 12px;
  font-size: 13px;
  color: #64748b;
  pointer-events: none;
  transition: 0.2s ease;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 11px;
  background: #fff;
  padding: 0 4px;
  color: var(--blue-primary);
}

/* Micro-animations */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(47,120,201,0.15);
  outline: none;
}

.contact-form button {
  margin-top: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(47,120,201,0.2);
}

/* Contact info icons */
.contact-info p {
  margin: 16px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: var(--blue-primary);
  font-size: 16px;
}

/* Success message */
.contact-form .success-message {
  margin-top: 14px;
  padding: 12px;
  background: #ecfdf5;
  color: #047857;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}


/* ================= LOADING SPINNER ================= */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #dbeafe;
  border-top-color: #2F78C9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================= TOAST NOTIFICATIONS ================= */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
}

.toast {
  background: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.4s ease;
}

.toast.success {
  border-left: 4px solid #2F78C9;
}

.toast.error {
  border-left: 4px solid #e11d48;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ================= APPLE‑STYLE POPUP ================= */
#success-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.popup-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  width: 320px;
  animation: popupIn 0.35s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.popup-icon svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
