:root {
  --bg: #060a14;
  --bg2: #040712;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.12);

  --text: #eef3ff;
  --muted: #b9c4da;

  --accent: #5b7cff;
  --teal: #35d0c2;
  --wa: #25d366;

  --shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  --r: 18px;
  --btnH: 48px;
}

html,
body {
  height: 100%;
}
body {
  background:
    radial-gradient(
      900px 600px at 10% 10%,
      rgba(91, 124, 255, 0.22),
      transparent 58%
    ),
    radial-gradient(
      850px 650px at 90% 18%,
      rgba(53, 208, 194, 0.18),
      transparent 58%
    ),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
}

a {
  color: #c6d6ff;
}
a:hover {
  color: #fff;
}
.muted {
  color: var(--muted);
}
.container {
  max-width: 1120px;
}

/* ===== MOBILE FIRST SPACING ===== */
.hero {
  padding: 18px 0 8px;
}
.section {
  padding: 28px 0;
}
.section + .section {
  padding-top: 22px;
}
.block-gap {
  margin-top: 14px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(5, 8, 18, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .container {
  padding: 10px 14px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.brand__mark {
  width: 24px;
  height: 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  box-shadow: 0 12px 28px rgba(91, 124, 255, 0.25);
}
.brand__text b {
  display: block;
  line-height: 1.1;
  font-size: 0.98rem;
}
.brand__text span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

/* hide large nav links on mobile */
.nav-pill {
  display: none;
}

.lang-toggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.lang-toggle a {
  text-decoration: none;
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
  font-size: 0.82rem;
}
.lang-toggle a.active {
  background: linear-gradient(
    135deg,
    rgba(91, 124, 255, 0.25),
    rgba(53, 208, 194, 0.18)
  );
  border: 1px solid rgba(91, 124, 255, 0.28);
  color: var(--text);
}

/* ===== CARDS ===== */
.pac-card,
.loc-card,
.footer-card {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.pac-card {
  border-radius: 22px;
}
.loc-card {
  padding: 14px;
}
.loc-card h3 {
  letter-spacing: 0.2px;
}

/* ===== HERO TYPO ===== */
.hero-title {
  font-size: 30px;
  line-height: 1.06;
  margin: 0;
}
.hero-lead {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* chips */
.badge-soft {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

/* ===== BUTTONS ===== */
.btn-pac {
  height: var(--btnH);
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 1000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
}

.btn-pac-primary {
  background: linear-gradient(
    135deg,
    rgba(91, 124, 255, 0.98),
    rgba(53, 208, 194, 0.88)
  );
  color: #071020;
  border: none;
  box-shadow: 0 12px 24px rgba(91, 124, 255, 0.18);
}
.btn-pac-primary:hover {
  filter: brightness(1.06);
}

.btn-pac-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.btn-pac-ghost:hover {
  background: rgba(255, 255, 255, 0.085);
}

.btn-pac-call {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.btn-pac-call:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-pac-wa {
  background: linear-gradient(
    135deg,
    rgba(37, 211, 102, 0.94),
    rgba(53, 208, 194, 0.7)
  );
  color: #04130b;
  border: none;
}
.btn-pac-wa:hover {
  filter: brightness(1.05);
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.btn-row .btn-pac {
  width: 100%;
}

/* ===== FORMS ===== */
.form-label {
  color: var(--text);
  font-size: 0.88rem;
}
.form-control,
.form-select,
textarea {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: var(--text) !important;
  border-radius: 14px !important;
  min-height: 48px;
}
textarea {
  min-height: 120px;
}
.form-control::placeholder {
  color: rgba(238, 243, 255, 0.45);
}
.form-select option {
  color: #081024;
}
.note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ===== LOCATIONS ===== */
.meta {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}
.meta a {
  color: #d6e2ff;
  font-weight: 1000;
}

.loc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

/* ===== FAQ ===== */
.pac-acc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  margin-top: 10px;
  overflow: hidden;
}
.pac-acc-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text) !important;
  font-weight: 1000;
  padding: 16px 14px !important;
  min-height: 56px;
}
.accordion-button:focus {
  box-shadow: none !important;
}
.accordion-button::after {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.accordion-body {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

/* =========================================================
   ✅ MODAL — HARD FIX (TEXT ALWAYS VISIBLE)
   Works even if modal background becomes white
   ========================================================= */

/* Ensure modal content is readable */
.modal-content,
.pac-modal {
  border-radius: 18px !important;
  overflow: hidden;
}

/* If our pac-modal is applied, keep it dark */
.pac-modal {
  background: linear-gradient(
    180deg,
    rgba(15, 20, 40, 0.96),
    rgba(10, 14, 28, 0.96)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: var(--text) !important;
}

/* But if Bootstrap default white modal shows, force strong readable text */
.modal-content {
  color: #0f172a;
}

/* Header title visibility */
.modal-header .modal-title {
  font-weight: 1000;
}

/* If dark modal header is used */
.pac-modal .modal-title {
  color: var(--text) !important;
}
.pac-modal .btn-close {
  filter: invert(1) grayscale(1);
}

/* Branch list rows: strong contrast on white or dark */
#branchModalList .branch-row {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#branchModalList .branch-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
#branchModalList .branch-left .branch-name {
  font-weight: 1000;
  color: #0f172a;
  line-height: 1.1;
}
#branchModalList .branch-left .branch-phone {
  font-weight: 800;
  color: #334155;
  font-size: 0.95rem;
}

/* Buttons inside modal */
#branchModalList .branch-action {
  height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 1000;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
#branchModalList .branch-action.wa {
  background: linear-gradient(
    135deg,
    rgba(37, 211, 102, 0.94),
    rgba(53, 208, 194, 0.7)
  );
  color: #04130b;
}
#branchModalList .branch-action.call {
  background: linear-gradient(
    135deg,
    rgba(91, 124, 255, 0.98),
    rgba(53, 208, 194, 0.78)
  );
  color: #071020;
}

/* spacing between rows */
#branchModalList .branch-row + .branch-row {
  margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 9, 18, 0.82);
}
.footer-card {
  padding: 16px;
  border-radius: 22px;
}
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: var(--text);
  font-weight: 1000;
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}
.social-ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(91, 124, 255, 0.28),
    rgba(53, 208, 194, 0.18)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 1100;
}
.footer-links a {
  color: #cfe0ff;
  font-weight: 1000;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
  color: #fff;
}

/* ===== FAB ===== */
.fab {
  position: fixed;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1080;
}
.fab button {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 1100;
  box-shadow: var(--shadow);
}
.fab button.primary {
  background: linear-gradient(
    135deg,
    rgba(37, 211, 102, 0.94),
    rgba(53, 208, 194, 0.72)
  );
  color: #04130b;
  border: none;
}

/* ===== DESKTOP ENHANCEMENTS ===== */
@media (min-width: 992px) {
  .hero {
    padding: 58px 0 10px;
  }
  .section {
    padding: 72px 0;
  }

  .hero-title {
    font-size: clamp(36px, 4.2vw, 56px);
  }
  .hero-lead {
    font-size: 1.06rem;
  }

  .nav-pill {
    display: inline-flex;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    transition:
      transform 0.12s ease,
      background 0.12s ease;
  }
  .nav-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
  }

  .social-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
