/* ============================================================
   Coservices — coservices.ee
   Light mode. Poppins headings, Inter body.
   Palette: Blue #2563EB | Light Blue #60A5FA | Navy #1E293B
            Grey #64748B | Light BG #F2F4F7 | White #FFFFFF
   ============================================================ */

:root {
  --blue: #2563EB;
  --blue-light: #60A5FA;
  --navy: #1E293B;
  --grey: #64748B;
  --bg: #F2F4F7;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(30, 41, 59, 0.07);
  --shadow-hover: 0 8px 28px rgba(30, 41, 59, 0.12);
  --font-head: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', 'Poppins', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; }

h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { color: var(--grey); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(100, 116, 139, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand img { display: block; height: 28px; width: auto; }

.site-nav {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--blue); text-decoration: none; }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
}

.nav-cta:hover { background: #1d4fd7; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  background-color: var(--white);
  /* subtle connected-nodes / data-wave pattern */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='300' viewBox='0 0 420 300'%3E%3Cg fill='none' stroke='%232563EB' stroke-opacity='0.07' stroke-width='1.5'%3E%3Cpath d='M0 220 Q 105 160 210 220 T 420 220'/%3E%3Cpath d='M0 250 Q 105 190 210 250 T 420 250'/%3E%3Cline x1='60' y1='70' x2='150' y2='40'/%3E%3Cline x1='150' y1='40' x2='250' y2='90'/%3E%3Cline x1='250' y1='90' x2='350' y2='55'/%3E%3C/g%3E%3Cg fill='%232563EB' fill-opacity='0.10'%3E%3Ccircle cx='60' cy='70' r='4'/%3E%3Ccircle cx='150' cy='40' r='3'/%3E%3Ccircle cx='250' cy='90' r='4'/%3E%3Ccircle cx='350' cy='55' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 420px 300px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.12);
}

.hero-inner {
  padding: 5rem 20px 5.5rem;
  text-align: center;
}

.hero-tagline {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.6rem;
  letter-spacing: 0.12em;
  color: var(--navy);
  margin-bottom: 1rem;
}

.hero-copy {
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: var(--grey);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.30);
}

.btn-primary:hover { background: #1d4fd7; text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue-light);
}

.btn-ghost:hover { background: rgba(96, 165, 250, 0.10); text-decoration: none; }

/* ---------- Sections ---------- */

.section { padding: 4rem 0; }

.section-alt { background: var(--white); }

.section h2 { text-align: center; }

.section-intro,
.lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.lead { font-size: 1.08rem; margin-bottom: 0; }

/* ---------- Grid & cards ---------- */

.grid { display: grid; gap: 1.25rem; }

.card {
  background: var(--white);
  border: 1px solid rgba(100, 116, 139, 0.12);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.section-alt .card { background: var(--bg); box-shadow: none; }

.section-alt .card:hover { box-shadow: var(--shadow); }

.card p { font-size: 0.95rem; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg { width: 24px; height: 24px; }

/* ---------- Industries pills ---------- */

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.pill-list li {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  box-shadow: var(--shadow);
}

/* ---------- Facts ---------- */

.facts { margin-top: 2rem; }

.fact {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(100, 116, 139, 0.12);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
}

.fact-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: var(--blue);
}

.fact-label { color: var(--grey); font-size: 0.92rem; }

/* ---------- Contact form ---------- */

.contact-form {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row { display: grid; gap: 1rem; }

.form-field { margin-bottom: 1rem; }

.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(100, 116, 139, 0.30);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--blue-light);
  border-color: var(--blue);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #CBD5E1;
  padding: 3rem 0 1.5rem;
}

.site-footer p, .site-footer address { color: #CBD5E1; font-style: normal; font-size: 0.92rem; }

.site-footer a { color: var(--blue-light); }

.footer-grid { display: grid; gap: 2rem; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.footer-logo {
  background: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 0.8rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(203, 213, 225, 0.15);
}

.footer-bottom p { font-size: 0.85rem; color: #94A3B8; }

/* ---------- Responsive (mobile-first upgrades) ---------- */

@media (min-width: 640px) {
  h2 { font-size: 2rem; }
  .hero h1 { font-size: 3.4rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1.5fr 1fr; }
}

@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .hero-inner { padding: 6.5rem 20px 7rem; }
}

/* mobile nav open state */
@media (max-width: 959px) {
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.25rem 20px 1.5rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.15);
    box-shadow: var(--shadow);
    gap: 1rem;
  }
  .nav-cta { text-align: center; }
}

/* Text wordmark (temporary until final icon) */
.wordmark{font-family:'Poppins',sans-serif;font-weight:700;font-size:1.3rem;letter-spacing:.14em;color:#1E293B;text-decoration:none;line-height:1}
.wordmark .wm-co{color:#2563EB}
.wordmark-footer{font-size:1.05rem;color:#F2F4F7}
.brand{display:inline-flex;align-items:center;gap:.55rem}
.brand-icon{height:26px;width:auto;display:block}
.brand-icon-footer{height:22px}
.lang-select{margin-left:1rem;padding:.35rem .5rem;border:1px solid #dbe2ea;border-radius:8px;background:#fff;color:#1E293B;font-family:'Poppins',sans-serif;font-size:.85rem;font-weight:500;cursor:pointer}
.lang-list{list-style:none;padding:0;margin:0}
.lang-list li{margin-bottom:.4rem}
.lang-soon{color:#64748B;opacity:.7}