/* ============================================================
   Konekta Telecommunications — site stylesheet
   Palette drawn from the Konekta logo:
   violet #5B2EBE / deep ink #16121F / light grey #EFEFF2
   ============================================================ */

:root {
  --violet: #5b2ebe;
  --violet-dark: #44219c;
  --violet-light: #ede7fb;
  --ink: #16121f;
  --ink-soft: #423d4f;
  --grey: #efeff2;
  --grey-line: #e0dfe6;
  --white: #ffffff;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(22, 18, 31, 0.08);
}

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

html { scroll-behavior: smooth; }

/* Anchored sections shouldn't hide under the sticky header */
[id] { scroll-margin-top: 92px; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--grey-line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 52px; width: auto; border-radius: 6px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--ink); font-weight: 500; font-size: 15.5px;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--violet); }
.nav a.active { color: var(--violet); border-bottom-color: var(--violet); }
.nav .btn { border-bottom: none; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 26px; color: var(--ink); line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em;
  transition: all 0.18s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--violet); color: var(--white) !important; }
.btn-primary:hover { background: var(--violet-dark); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.55); color: var(--white) !important;
  background: transparent;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  border: 1.5px solid var(--violet); color: var(--violet) !important; background: transparent;
}
.btn-outline-dark:hover { background: var(--violet-light); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 90% 120% at 85% -10%, rgba(91, 46, 190, 0.55), transparent 60%),
    radial-gradient(ellipse 70% 100% at 10% 110%, rgba(91, 46, 190, 0.35), transparent 60%),
    var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .wrap { padding: 110px 24px; position: relative; z-index: 2; }
.hero .kicker {
  color: #b9a2ee; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 13px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.12;
  font-weight: 800; letter-spacing: -0.02em; max-width: 720px;
}
.hero p.lead {
  margin: 24px 0 36px; font-size: 19px; color: #cdc8da; max-width: 620px;
}
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-globe {
  position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 560px; height: 560px; opacity: 0.35; z-index: 1; pointer-events: none;
}

/* Page hero (interior pages) */
.page-hero {
  background:
    radial-gradient(ellipse 80% 140% at 90% -20%, rgba(91, 46, 190, 0.5), transparent 60%),
    var(--ink);
  color: var(--white);
}
.page-hero .wrap { padding: 72px 24px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.page-hero p { margin-top: 14px; font-size: 18px; color: #cdc8da; max-width: 640px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.tint { background: var(--grey); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .kicker {
  color: var(--violet); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.13em; font-size: 13px; margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.18;
}
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.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(--white); border: 1px solid var(--grey-line);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--violet-light); color: var(--violet);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card .more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 15px; }

/* ---------- Feature rows (services page) ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 72px 0; border-bottom: 1px solid var(--grey-line);
}
.feature:last-of-type { border-bottom: none; }
.feature h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.feature p { color: var(--ink-soft); margin-bottom: 18px; }
.feature ul { list-style: none; }
.feature ul li {
  padding: 9px 0 9px 34px; position: relative; color: var(--ink-soft); font-size: 15.5px;
}
.feature ul li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--violet-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b2ebe' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.feature .visual {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--ink); min-height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.feature .visual svg { width: 70%; height: auto; max-height: 260px; }

/* ---------- Stat / pill strips ---------- */
.pill-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  background: var(--white); border: 1px solid var(--grey-line);
  border-radius: 999px; padding: 10px 22px; font-weight: 600; font-size: 15px;
}
.pill span { color: var(--violet); margin-right: 8px; }

/* ---------- Event cards ---------- */
.event-card {
  background: var(--white); border: 1px solid var(--grey-line);
  border-radius: var(--radius); padding: 26px 26px 24px;
}
.event-card .loc {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--violet); margin-bottom: 8px;
}
.event-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.event-card p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 70% 130% at 80% -20%, rgba(91, 46, 190, 0.6), transparent 60%),
    var(--ink);
  color: var(--white); border-radius: 20px;
  padding: 64px 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 36px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; max-width: 540px; }
.cta-band p { margin-top: 10px; color: #cdc8da; max-width: 520px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--grey-line); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  background: var(--violet-light); color: var(--violet);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item .icon svg { width: 21px; height: 21px; }
.contact-info-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.contact-info-item p, .contact-info-item a { font-size: 15.5px; color: var(--ink-soft); }
.contact-info-item a { color: var(--violet); font-weight: 600; }

.form-card {
  background: var(--white); border: 1px solid var(--grey-line);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.form-card label { display: block; font-weight: 600; font-size: 14.5px; margin: 18px 0 7px; }
.form-card label:first-of-type { margin-top: 0; }
.form-card input, .form-card textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--grey-line);
  border-radius: 10px; font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--white); transition: border-color 0.15s ease;
}
.form-card input:focus, .form-card textarea:focus {
  outline: none; border-color: var(--violet);
}
.form-card .btn { width: 100%; margin-top: 26px; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b8b3c4; margin-top: 88px; }
.site-footer .wrap { padding: 64px 24px 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .wordmark {
  font-size: 22px; font-weight: 800; letter-spacing: 0.06em; color: var(--white);
}
.footer-brand .wordmark span { color: #9d79ec; }
.footer-brand .tag { display: block; font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase; color: #8d87a0; margin-top: 2px; }
.footer-brand p { margin-top: 16px; font-size: 14.5px; max-width: 280px; }
.site-footer h4 {
  color: var(--white); font-size: 13.5px; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #b8b3c4; font-size: 14.5px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; color: #8d87a0;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-globe { display: none; }

  /* Collapse nav to hamburger before the horizontal menu can overflow */
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--grey-line);
    box-shadow: 0 12px 24px rgba(22, 18, 31, 0.08);
    flex-direction: column; align-items: stretch; padding: 18px 24px 24px; gap: 4px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--grey); }
  .nav a.active { border-bottom-color: var(--grey); }
  .nav a:last-child { border-bottom: none; }
  .nav .btn { margin-top: 14px; text-align: center; padding: 14px 28px; }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero .wrap { padding: 72px 24px; }
  .hero p.lead { font-size: 17px; }
  .cta-band { padding: 44px 28px; }
  .cta-band .btn { width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .logo img { height: 44px; }
  .feature .visual { min-height: 220px; }
  .form-card { padding: 26px 22px; }
  .contact-grid { gap: 28px; }
}
