/* ==========================================================================
   Call One Group - Unified Stylesheet
   Rebuilt so every class here actually matches the HTML markup.
   ========================================================================== */

:root {
  --ink: #17181c;             /* near-black charcoal */
  --panel: #ffffff;
  --panel-raised: #f5f5f6;
  --line: #e2e2e5;
  --line-soft: #eeeeef;
  --paper: #1c1d21;           /* body heading text */
  --paper-dim: #55565d;
  --steel: #6b6c74;
  --steel-dim: #9a9ba3;
  --accent: #52535a;          /* elegant slate gray */
  --accent-bright: #83848c;
  --accent-light: #eef0f2;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --max: 1180px;
  --nav-h: 100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

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

a { color: inherit; }

ul { list-style: none; }

/* ---------------------------------------------------------------------- */
/* Layout helpers                                                        */
/* ---------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw + 0.8rem, 2.3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--paper);
  letter-spacing: -0.02em;
  text-align: center;
}

.section-subtitle {
  color: var(--paper-dim);
  font-size: clamp(0.92rem, 1vw + 0.7rem, 1.05rem);
  margin-top: 14px;
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow.centered {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ---------------------------------------------------------------------- */
/* Navbar (shared markup on every page)                                  */
/* ---------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(23, 24, 28, 0.04);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar.is-scrolled {
  background: #ffffff;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(23, 24, 28, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.logo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(23, 24, 28, 0.08);
  flex-shrink: 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.logo:hover .logo-img {
  box-shadow: 0 6px 18px rgba(23, 24, 28, 0.14);
  transform: translateY(-1px);
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--steel);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
  display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--paper);
  background: var(--panel-raised);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.nav-cta {
  background: var(--ink);
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
  margin-left: 10px;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(23, 24, 28, 0.18);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover,
.btn-glow:hover {
  background: #2c2d33;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(23, 24, 28, 0.25);
}

.btn-secondary {
  background: #ffffff;
  color: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
  background: var(--panel-raised);
  border-color: #c7c7cc;
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------- */
/* Hero (index.html)                                                      */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  background: #ffffff;
  padding: 110px 24px 100px 24px;
  text-align: center;
  overflow: hidden;
}

.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.5vw + 0.6rem, 3.1rem);
  font-weight: 700;
  line-height: 1.16;
  color: var(--paper);
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.hero-content > p {
  font-size: clamp(0.95rem, 1.4vw + 0.7rem, 1.12rem);
  color: var(--paper-dim);
  max-width: 620px;
  margin: 0 auto 36px auto;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 56px auto 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(20, 20, 25, 0.25);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .hero-image {
    margin-top: 36px;
    border-radius: 12px;
  }
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  width: 100%;
  max-width: 760px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
}

.stat-item {
  text-align: center;
  padding: 26px 16px;
  border-right: 1px solid var(--line);
}

.stat-item:last-child { border-right: none; }

.stat-item h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--paper);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.84rem;
  color: var(--steel);
  font-weight: 500;
}

/* ---------------------------------------------------------------------- */
/* Services overview (index.html) + Services grid                        */
/* ---------------------------------------------------------------------- */
.services-overview {
  padding: 90px 0;
  background: var(--panel-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border-radius: 16px;
  padding: 34px 34px 30px 34px;
  border-top: 2px solid var(--line);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07);
  border-top-color: var(--accent);
}

.service-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--paper);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--paper-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------------------- */
/* About teaser (index.html)                                             */
/* ---------------------------------------------------------------------- */
.about-teaser {
  padding: 100px 0;
}

.about-teaser .container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-teaser-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw + 0.8rem, 2.1rem);
  color: var(--paper);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.about-teaser-content p {
  color: var(--paper-dim);
  font-size: clamp(0.92rem, 1vw + 0.7rem, 1.05rem);
  margin-bottom: 32px;
}

/* ---------------------------------------------------------------------- */
/* Credentials strip (index.html) — placed right before the footer        */
/* ---------------------------------------------------------------------- */
.credentials-strip {
  padding: 70px 0 90px 0;
  background: var(--panel-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credentials-strip .section-title {
  margin-bottom: 44px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.credential-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.credential-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-bright);
  box-shadow: 0 14px 28px rgba(23, 24, 28, 0.08);
}

.credential-card .credential-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

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

.credential-card .credential-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.credential-card .credential-label {
  font-size: 0.8rem;
  color: var(--steel);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------------- */
/* Inner page banner (about / services / support)                        */
/* ---------------------------------------------------------------------- */
.page-banner {
  position: relative;
  background: var(--ink);
  padding: 76px 0;
  text-align: center;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 75%);
}

.page-banner .container { position: relative; }

.page-banner .eyebrow { color: var(--accent-bright); }

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw + 0.8rem, 2.4rem);
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.page-banner p {
  color: var(--steel-dim);
  font-size: clamp(0.92rem, 1vw + 0.7rem, 1.05rem);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------- */
/* About page                                                             */
/* ---------------------------------------------------------------------- */
.about-section {
  padding: 90px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 50px;
  align-items: start;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--paper);
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}

.about-text p {
  color: var(--paper-dim);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-highlights {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
}

.about-highlights h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--paper);
  margin-bottom: 18px;
}

.about-highlights ul { display: grid; gap: 14px; }

.about-highlights li {
  font-size: 0.92rem;
  color: var(--paper-dim);
  padding-left: 20px;
  position: relative;
}

.about-highlights li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.values-section {
  padding: 90px 0;
  background: var(--panel-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.value-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--paper);
  margin-bottom: 12px;
}

.value-card p {
  color: var(--paper-dim);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------------- */
/* Services page (detailed)                                              */
/* ---------------------------------------------------------------------- */
.services-detail {
  padding: 90px 0;
}

.services-detail .service-block:not(:last-child) {
  margin-bottom: 28px;
}

.service-block {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.service-block:hover {
  border-color: var(--accent-bright);
  box-shadow: 0 12px 30px rgba(23, 24, 28, 0.08);
}

.service-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--paper);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.service-block > p {
  color: var(--paper-dim);
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.service-block ul { display: grid; gap: 10px; margin-top: 10px; }

.service-block li {
  font-size: 0.92rem;
  color: var(--paper-dim);
  padding-left: 22px;
  position: relative;
}

.service-block li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ---------------------------------------------------------------------- */
/* Support page                                                          */
/* ---------------------------------------------------------------------- */
.support-content {
  padding: 90px 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.support-card {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
}

.support-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--paper);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.support-card p {
  color: var(--paper-dim);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* ---------------------------------------------------------------------- */
/* Contact page                                                          */
/* ---------------------------------------------------------------------- */
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border-radius: 20px;
  padding: 38px;
}

.card input,
.card textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}

.card input:focus,
.card textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .fade-in:nth-child(1),
.values-grid .fade-in:nth-child(1),
.credentials-grid .fade-in:nth-child(1),
.support-grid .fade-in:nth-child(1),
.services-detail .fade-in:nth-child(1) { transition-delay: 0s; }

.services-grid .fade-in:nth-child(2),
.values-grid .fade-in:nth-child(2),
.credentials-grid .fade-in:nth-child(2),
.support-grid .fade-in:nth-child(2),
.services-detail .fade-in:nth-child(2) { transition-delay: 0.08s; }

.services-grid .fade-in:nth-child(3),
.values-grid .fade-in:nth-child(3),
.credentials-grid .fade-in:nth-child(3),
.support-grid .fade-in:nth-child(3),
.services-detail .fade-in:nth-child(3) { transition-delay: 0.16s; }

.services-grid .fade-in:nth-child(4),
.credentials-grid .fade-in:nth-child(4),
.services-detail .fade-in:nth-child(4) { transition-delay: 0.24s; }

.services-grid .fade-in:nth-child(5),
.services-detail .fade-in:nth-child(5) { transition-delay: 0.32s; }

.services-grid .fade-in:nth-child(6),
.services-detail .fade-in:nth-child(6) { transition-delay: 0.4s; }

/* ---------------------------------------------------------------------- */
/* Footer (shared on every page)                                         */
/* ---------------------------------------------------------------------- */
.footer {
  background: var(--panel-raised);
  border-top: 1px solid var(--line);
  padding: 70px 0 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
}

.footer-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(23, 24, 28, 0.06);
  flex-shrink: 0;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--paper);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.footer-col p {
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-col ul { display: grid; gap: 12px; }

.footer-col a {
  color: var(--steel);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
}

.footer-bottom p,
.copyright {
  color: var(--steel);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------------------------------------------------------------------- */
/* Preloader (index.html entry animation)                                */
/* ---------------------------------------------------------------------- */
body.is-loading {
  overflow: hidden;
  height: 100vh;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.preloader-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: #000000;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader-panel.left { left: 0; }
.preloader-panel.right { right: 0; }

.preloader-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: opacity 0.4s ease;
}

.preloader-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 34px rgba(0, 0, 0, 0.55);
}

.preloader-mark em { color: var(--accent-bright); font-style: normal; }

.preloader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  border-radius: 2px;
}

.preloader-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent-bright);
  transform: translateX(-100%);
  animation: preloader-fill 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes preloader-fill {
  to { transform: translateX(0); }
}

.preloader.is-open .preloader-panel.left { transform: translateX(-100%); }
.preloader.is-open .preloader-panel.right { transform: translateX(100%); }
.preloader.is-open .preloader-mark { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
  body.is-loading { overflow: auto; height: auto; }
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */

/* Large tablets / small laptops: keep the desktop nav but give it room */
@media (max-width: 1140px) {
  .nav-container { gap: 14px; }
  .nav-links a { padding: 10px 12px; font-size: 0.88rem; }
  .nav-cta { padding: 11px 18px; font-size: 0.85rem; }
}

/* Tablets and below: switch to the mobile hamburger nav */
@media (max-width: 1024px) {
  :root { --nav-h: 84px; }

  .hero-stats { grid-template-columns: 1fr; max-width: 340px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: none; }
  .hero-network { display: none; }

  .about-grid,
  .footer-content { grid-template-columns: 1fr; }

  .credentials-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: flex; }

  .navbar nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    background: #ffffff;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .navbar nav.is-open { transform: translateX(0); }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-cta {
    margin: 16px 0 0 0;
    text-align: center;
    padding: 14px 18px;
    font-size: 0.95rem;
  }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .section,
  .services-overview,
  .about-teaser,
  .credentials-strip,
  .about-section,
  .values-section,
  .services-detail,
  .support-content { padding: 64px 0; }

  .hero { padding: 90px 20px 70px 20px; }
  .hero-image { margin-top: 40px; }

  .footer-content { gap: 36px; padding-bottom: 32px; }

  .services-grid,
  .values-grid,
  .support-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* Phones */
@media (max-width: 640px) {
  .hero { padding: 70px 16px 56px 16px; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero-buttons .btn { width: 100%; }
  .hero-image { margin-top: 32px; border-radius: 12px; }

  .credentials-grid { grid-template-columns: 1fr; }

  .services-grid,
  .values-grid,
  .support-grid { grid-template-columns: 1fr; }

  .about-highlights,
  .support-card,
  .service-card,
  .value-card,
  .service-block,
  .card { padding: 24px; }

  .footer-bottom p,
  .copyright { font-size: 0.78rem; }
}

@media (max-width: 560px) {
  :root { --nav-h: 74px; }
  .logo-img { width: 58px; height: 58px; }
  .credential-card { padding: 26px 20px; }
}

/* Small phones */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  :root { --nav-h: 68px; }
  .logo-img { width: 48px; height: 48px; }
  .preloader-logo { width: 120px; height: 120px; }
  .preloader-mark { font-size: 0.95rem; }

  .btn { padding: 13px 22px; font-size: 0.9rem; }
  .eyebrow { font-size: 0.74rem; letter-spacing: 0.08em; }

  .card { padding: 20px; }
  .card input,
  .card textarea { padding: 12px; font-size: 0.9rem; }

  .footer-content { grid-template-columns: 1fr; }
  .footer-logo { width: 76px; height: 76px; }
}

/* Belt-and-braces: never allow any element to force horizontal scroll */
@media (max-width: 1024px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  img, svg, video, table { max-width: 100%; height: auto; }
}
