:root{
  --bg-0:#050b17;
  --bg-1:#07122b;
  --bg-2:#0a1d46;

  --line:rgba(255,255,255,.10);

  --text:#eaf2ff;
  --muted:rgba(234,242,255,.78);

  --blue:#0b63d6;
  --blue-2:#0a57c0;

  --cyan:#16a9ff;
  --yellow:#f6d238;

  --cta-red:#c91818;
  --cta-red-2:#b31414;

  --cta-blue:#0a61c9;
  --cta-blue-2:#0856b4;

  --radius:16px;
  --shadow:0 14px 40px rgba(0,0,0,.38);
  --shadow-soft:0 10px 22px rgba(0,0,0,.28);

  --max:1180px;
  --nav-break:900px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 520px at 50% 0%, rgba(23,80,190,.35), transparent 55%),
    radial-gradient(980px 520px at 50% 38%, rgba(10,80,200,.22), transparent 62%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 45%, #060d1f 100%);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

/* Global containers */
.wrap{
  width:min(var(--max), calc(100% - 40px));
  margin-inline:auto;
}
@media (max-width:520px){
  .wrap{ width:calc(100% - 26px); }
}

/* If some pages use .container, keep it global + consistent */
.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

/* Shared buttons (moved from pages.css) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:10px;
  font-weight:900;
  text-decoration:none;
  border:1px solid transparent;
  white-space:nowrap;
}
.btn-red{ background:#e0312c; color:#fff; }
.btn-dark{ background:#0b1324; color:#fff; }
.btn-outline{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.22);
}

/* =========================
   LOCKED NAV MODULE (DO NOT DUPLICATE)
   Mobile menu is IN-FLOW (no overlay)
   ========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:9999;
  backdrop-filter:saturate(140%) blur(8px);
  background:linear-gradient(180deg, rgba(5,11,23,.92), rgba(7,18,43,.88));
  border-bottom:1px solid var(--line);
}

.nav-inner{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brand-name{
  font-weight:900;
  font-size:18px;
  letter-spacing:.2px;
}

.brand-tag{
  font-size:13px;
  font-weight:600;
  color:rgba(234,242,255,.70);
  margin-top:2px;
}

/* Desktop nav centered */
.nav-links{
  flex:1 1 auto;
  display:flex;
  justify-content:center;
  gap:34px;
  align-items:center;
  min-width:0;
}
.nav-links a{
  font-weight:800;
  color:rgba(234,242,255,.92);
  padding:10px 8px;
  border-radius:10px;
  white-space:nowrap;
}
.nav-links a:hover{ background:rgba(255,255,255,.06); }

.phone-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding:8px 14px;
  border-radius:14px;
  font-weight:800;
  letter-spacing:.2px;

  background:linear-gradient(180deg, var(--cta-blue), var(--cta-blue-2));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow-soft);
  color:#fff;
}
.phone-btn:hover{ filter:brightness(1.05); }
.phone-icon{ width:18px;height:16px; flex:0 0 16px; }

/* Hamburger (kept, even if hidden) */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  box-shadow:0 10px 18px rgba(0,0,0,.18);
  cursor:pointer;
  padding:10px;
  flex:0 0 44px;
}
.nav-toggle span{
  display:block;
  height:2px;
  background:rgba(234,242,255,.92);
  border-radius:999px;
}
.nav-toggle span + span{ margin-top:6px; }

/* MOBILE: Brand | Phone row, menu drops UNDER (pushes content down) */
@media (max-width:900px){
  .nav-inner{
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
  }

  .brand{ order:1; }

  .phone-btn{
    order:2;
    margin-left:auto;
    padding:8px 14px;
    border-radius:14px;
    font-size:15px;
  }

  .nav-links{
    order:3;
    width:100%;

    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;

    margin:8px 0 4px;
    padding:8px 10px;

    background:rgba(7,18,43,.55);
    border:1px solid rgba(255,255,255,.10);
    border-radius:16px;
  }

  .nav-links a{
    padding:9px 14px;
    border-radius:12px;
    background:rgba(255,255,255,.06);
    font-weight:800;
  }

  .nav-links a:hover{ background:rgba(255,255,255,.12); }
}

/* ===== Shared Contact Component (all pages) ===== */
.section--white{ background:#f3f6fb; color:#0f1a2b; }

.contact.section--white{
  padding:56px 0;
}

/* Contact typography */
.contact .contact-heading{
  font-size:44px;
  line-height:1.05;
  margin:0 0 14px;
  color:#0f1a2b;
}
.contact .contact-sub{
  margin:0 0 18px;
  color:#0f1a2b;
  font-weight:600;
}

/* Contact layout */
.contact .contact-box{
  display:grid;
  grid-template-columns: 1.15fr .95fr;
  gap:22px;
  align-items:start;
}

.contact .panel-white{
  background:#fff;
  border:1px solid rgba(15,26,43,.10);
  border-radius:18px;
  padding:22px;
  box-shadow:0 18px 44px rgba(0,0,0,.08);
}

.contact .panel-title{
  margin:0 0 10px;
  font-size:22px;
  color:#0f1a2b;
}

.contact .fine{
  font-size:14px;
  color:rgba(15,26,43,.70);
  line-height:1.4;
}
.contact .fine-top{ margin-top:14px; }

.contact .form{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.contact .input,
.contact .textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(15,26,43,.18);
  background:#f6f8fc;
  padding:14px 14px;
  font:inherit;
  color:#0f1a2b;
  outline:none;
}

.contact .textarea{ min-height:160px; resize:vertical; }

.contact .input:focus,
.contact .textarea:focus{
  border-color:rgba(11,99,214,.55);
  box-shadow:0 0 0 4px rgba(11,99,214,.12);
}

.btn-secondary{
  width:100%;
  border-radius:14px;
  padding:14px 16px;
  font-weight:800;
}

.phone-btn--full{ width:100%; }

@media (max-width:900px){
  .contact .contact-heading{ font-size:34px; }
  .contact .contact-box{ grid-template-columns:1fr; }
}

/* ===== Footer (global + consistent) ===== */
.site-footer,
footer{
  border-top:1px solid var(--line);
  background:rgba(5,11,23,.65);
}
.site-footer .wrap,
footer .wrap{
  padding:22px 0;
}
/* ==========================================================
   CONTACT + FOOTER STRUCTURAL FIXES
   (replaces inline style="" helpers seen in index/emergency)
   Paste at VERY END of base.css
   ========================================================== */

/* Replace inline margin-top on .fine blocks */
.fine-top{ margin-top:14px; }
.fine-top-sm{ margin-top:12px; }

/* Replace inline flex layout used in footers */
.footer-row{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:center;
  justify-content:space-between;
}

/* Replace inline flex layout used inside contact/footer rows when needed */
.row{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:center;
  justify-content:space-between;
}

/* Replace inline "color + font-weight" used for contact links/text */
.strong-link{
  color:#0f1a2b;
  font-weight:800;
}
.footer-row{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:center;
  justify-content:space-between;
}

