/* McSween Telecom — ip-transit.co.uk-style corporate theme */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --pink:       #ff3366;
  --pink-dark:  #e61e57;
  --ink:        #1a1a1a;
  --ink-soft:   #333;
  --muted:      #54595f;
  --line:       #e8e8e8;
  --bg:         #f5f5f5;
  --card:       #ffffff;
  --footer:     #1a1a1a;

  --font: "Inter", -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.10);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
a { color: var(--pink); }

/* ---------- Icons ---------- */
.ic {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--pink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ic--lg { width: 34px; height: 34px; margin-bottom: 14px; }

/* ---------- Flags ---------- */
.flag {
  width: 24px;
  height: auto;
  display: inline-block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  vertical-align: middle;
}
.flag--lg { width: 36px; }

/* ---------- Header ---------- */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 74px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--pink); font-weight: 400; }
.logo__mark { width: 26px; height: 26px; fill: var(--pink); }
.logo--footer { color: #fff; }
.logo--footer span { color: var(--pink); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 6px;
}
.nav-link:hover { color: var(--pink); }
.nav-lang { display: flex; gap: 5px; align-items: center; margin: 0 14px; }
.nav-lang .flag { width: 20px; }
.nav-mail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-mail .ic { width: 18px; height: 18px; stroke: var(--ink); }
.nav-mail:hover { color: var(--pink); }
.nav-mail:hover .ic { stroke: var(--pink); }
.nav-cta { margin-left: 14px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .18s, opacity .18s; }
.burger.burger--open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.burger--open span:nth-child(2) { opacity: 0; }
.burger.burger--open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 32px;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn--pink { background: var(--pink); color: #fff; }
.btn--pink:hover { background: var(--pink-dark); }
.btn--lg { padding: 14px 40px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 130px 0;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.72)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.06' fill='none' stroke-width='1'%3E%3Cpath d='M30 60 L160 120 L280 40 M160 120 L80 250 L260 270 M280 40 L260 270 M30 60 L80 250 M160 120 L160 300'/%3E%3C/g%3E%3Cg fill='%23ff3366' fill-opacity='0.55'%3E%3Ccircle cx='30' cy='60' r='3'/%3E%3Ccircle cx='160' cy='120' r='4'/%3E%3Ccircle cx='280' cy='40' r='3'/%3E%3Ccircle cx='80' cy='250' r='3'/%3E%3Ccircle cx='260' cy='270' r='3'/%3E%3Ccircle cx='160' cy='300' r='3'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(150deg, #23272f 0%, #12151b 100%);
  background-size: auto, 320px 320px, auto;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 24ch;
  margin: 0 auto 22px;
}
.hero__sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,.82);
  max-width: 62ch;
  margin: 0 auto 34px;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--white { background: #fff; }
.stitle {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pink);
  text-align: center;
  margin-bottom: 18px;
}
.lead {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 64ch;
  margin: 0 auto 46px;
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; margin-top: 40px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.feature h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature p { font-size: .93rem; color: var(--muted); }

.blend { text-align: center; padding: 26px 18px; }
.blend h4 { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.blend p { font-size: .82rem; color: var(--muted); }

/* ---------- Steps ---------- */
.step { position: relative; padding-top: 46px; }
.step__num {
  position: absolute;
  top: -20px; left: 30px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(255,51,102,.4);
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: .93rem; color: var(--muted); }

/* ---------- Map ---------- */
.map-wrap {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
#leafletMap { width: 100%; height: 400px; }
.leaflet-container { font-family: var(--font); }
.pop-marker {
  width: 14px !important;
  height: 14px !important;
  margin-left: -7px !important;
  margin-top: -7px !important;
  background: var(--pink);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,51,102,.3), 0 2px 6px rgba(0,0,0,.35);
  font-size: 0;
  color: transparent;
}

/* Map legend */
.map-legend {
  background: rgba(10,14,20,.82);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: .78rem;
  color: #e2e8f0;
  line-height: 1.9;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.map-legend strong {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #94a3b8;
  margin-bottom: 4px;
}
.map-legend span { display: flex; align-items: center; gap: 8px; }
.map-legend i {
  display: inline-block;
  width: 18px; height: 3px;
  border-radius: 2px;
}
.map-legend i.dash {
  background: repeating-linear-gradient(90deg, #fff 0 4px, transparent 4px 7px);
  height: 2px;
}
.map-legend i.dot {
  width: 10px; height: 10px;
  background: var(--pink);
  border: 2px solid #fff;
  border-radius: 50%;
  margin-left: 4px;
}

/* ---------- PoP cards ---------- */
.pop__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.pop__head h3 { font-size: 1.12rem; font-weight: 700; }
.pop__tag { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.pop ul { list-style: none; }
.pop li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  color: var(--ink-soft);
  padding: 5px 0;
}
.pop li .ic { width: 17px; height: 17px; }
.pop__sites { margin-bottom: 18px; }
.pop__sites li { font-style: italic; color: var(--muted); }
.pop__svc-title { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }

/* ---------- Pricing ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 40px;
}
.pricing {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  background: #fff;
}
.pricing th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  padding: 16px 18px;
}
.pricing td {
  text-align: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.pricing tbody tr:last-child td { border-bottom: none; }
.pricing tbody tr:hover { background: #fafafa; }
.pricing td a { font-weight: 600; }
.table-note { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 40px auto 0; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-weight: 600;
  font-size: .98rem;
  list-style: none;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--pink);
  transition: transform .15s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 22px 20px; font-size: .92rem; color: var(--muted); }

/* ---------- Contact ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 44px auto 0;
  padding: 34px;
}
.form-card label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-input {
  display: block;
  width: 100%;
  font-family: var(--font);
  font-size: .95rem;
  padding: 11px 14px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: none;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,51,102,.12); }
.form-textarea { min-height: 130px; resize: vertical; }
.form-status { margin-top: 14px; font-size: .88rem; color: var(--muted); min-height: 1.2em; text-align: center; }
.form-status--ok { color: #16a34a; }
.form-status--err { color: #dc2626; }
.form-card .btn:disabled { opacity: .6; cursor: wait; }

/* Honeypot — hidden from humans, bots fill it */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Powered band ---------- */
.band {
  background: linear-gradient(120deg, var(--pink) 0%, #b01e46 60%, #3d0f22 100%);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}
.band h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.band p { color: rgba(255,255,255,.85); font-size: .95rem; margin-bottom: 16px; }
.band__flags { display: flex; gap: 10px; justify-content: center; }
.band__flags .flag { width: 34px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: #9aa0a6; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 34px 24px;
}
.footer__addr { font-size: .85rem; line-height: 1.7; }
.footer__addr strong { color: #d4d7da; }
.footer__addr a { color: #9aa0a6; }
.footer__addr a:hover { color: var(--pink); }
.footer__copy { font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .nav-mail { display: none; }
}
@media (max-width: 720px) {
  .burger { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .nav.nav--open { display: flex; }
  .nav-link { padding: 12px; }
  .nav-lang { margin: 6px 12px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .header { position: relative; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero { padding: 84px 0; }
  .section { padding: 56px 0; }
  .footer__inner { flex-direction: column; text-align: center; }
}
