/* ============================
   Nur Collector Kazakhstan
   Main Stylesheet
   ============================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #1a1a1a; background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* --- Topbar --- */
.topbar { background: #0a1628; color: #b8cfe0; padding: 7px 48px; display: flex; justify-content: flex-end; gap: 28px; font-size: 13px; }
.topbar span { display: flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; fill: #0080C6; flex-shrink: 0; }
.topbar a { color: #b8cfe0; }
.topbar a:hover { color: #fff; }

/* --- Navigation --- */
nav { background: #fff; border-bottom: 3px solid #0080C6; position: sticky; top: 0; z-index: 170; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: 66px; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.logo-img,
nav .custom-logo { height: 48px !important; width: auto !important; max-height: 48px !important; display: block; }
.custom-logo-link { display: flex; align-items: center; line-height: 0; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; font-weight: 500; color: #1a1a1a; padding: 6px 0; border-bottom: 2px solid transparent; transition: all .2s; }
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links a.active { color: #0080C6; border-color: #0080C6; }

/* --- Hero (Home) --- */
.hero { background: linear-gradient(135deg, #0a1628 0%, #0d2545 60%, #0080C6 100%); color: #fff; padding: 90px 48px 80px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 420px; height: 420px; background: rgba(0,128,198,.15); border-radius: 50%; }
.hero-content { max-width: 650px; position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: rgba(0,128,198,.3); border: 1px solid rgba(0,128,198,.6); color: #7dd3f9; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-size: 42px; font-weight: 700; line-height: 1.2; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #0080C6; }
.hero p { font-size: 16px; line-height: 1.7; color: #b8cfe0; max-width: 540px; margin-bottom: 32px; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 13px 32px; border-radius: 4px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s; border: none; text-decoration: none; }
.btn-primary { background: #0080C6; color: #fff !important; border: 2px solid #0080C6; }
.btn-primary:hover { background: #006aaa; border-color: #006aaa; }
.btn-outline { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.4); margin-left: 12px; }
.btn-outline:hover { border-color: #fff; }

/* --- Page Hero (inner pages) --- */
.page-hero { background: #0a1628; color: #fff; padding: 52px 48px 44px; border-bottom: 3px solid #0080C6; }
.page-hero h1 { font-size: 32px; font-weight: 700; }
.page-hero p { color: #b8cfe0; margin-top: 8px; font-size: 15px; }

/* --- Sections --- */
section { padding: 72px 48px; }
.section-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #0080C6; font-weight: 600; margin-bottom: 10px; }
h2.section-title { font-size: 32px; font-weight: 700; color: #0d1f3c; margin-bottom: 16px; }
.divider { width: 48px; height: 3px; background: #0080C6; margin-bottom: 32px; }
.bg-light { background: #f7f9fb; }

/* --- About Row (Home) --- */
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text p { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 16px; }

/* --- Stats --- */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: #f4f8fc; border-left: 4px solid #0080C6; padding: 20px 20px 16px; border-radius: 4px; }
.stat-card .num { font-size: 36px; font-weight: 700; color: #0080C6; line-height: 1; }
.stat-card .lbl { font-size: 13px; color: #555; margin-top: 6px; }

/* --- Advantages --- */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.adv-card { background: #fff; border: 1px solid #e0ecf7; border-top: 3px solid #0080C6; padding: 24px; border-radius: 4px; }
.adv-icon { width: 40px; height: 40px; background: #e6f2fb; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.adv-icon svg { width: 20px; height: 20px; fill: none; stroke: #0080C6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adv-card h3 { font-size: 15px; font-weight: 600; color: #0d1f3c; margin-bottom: 8px; }
.adv-card p { font-size: 13.5px; line-height: 1.7; color: #555; }

/* --- Services --- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { border: 1px solid #e0ecf7; border-radius: 4px; padding: 28px 24px; transition: box-shadow .2s; }
.svc-card:hover { box-shadow: 0 4px 20px rgba(0,128,198,.12); }
.svc-num { font-size: 40px; font-weight: 800; color: #e6f2fb; line-height: 1; margin-bottom: 8px; }
.svc-card h3 { font-size: 15px; font-weight: 600; color: #0d1f3c; margin-bottom: 8px; }
.svc-card p { font-size: 13.5px; line-height: 1.7; color: #555; }

/* --- Contact Block --- */
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-item { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.info-icon { width: 38px; height: 38px; background: #e6f2fb; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.info-icon svg { width: 18px; height: 18px; fill: none; stroke: #0080C6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-text .lbl { font-size: 12px; color: #888; margin-bottom: 2px; }
.info-text .val { font-size: 14px; color: #1a1a1a; font-weight: 500; }

/* --- Map --- */
.map-wide { width: 100%; height: 400px; border: 0; display: block; }

/* --- License Boxes (About) --- */
.license-box { background: #f4f8fc; border: 1px solid #c8e0f0; border-radius: 4px; padding: 24px 28px; display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.license-icon { font-size: 32px; flex-shrink: 0; }
.license-box h3 { font-size: 15px; font-weight: 600; color: #0d1f3c; margin-bottom: 6px; }
.license-box p { font-size: 14px; color: #555; line-height: 1.7; }

/* --- Team --- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { border: 1px solid #e0ecf7; border-radius: 4px; padding: 24px; text-align: center; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: #0080C6; color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.team-card h3 { font-size: 15px; font-weight: 600; color: #0d1f3c; margin-bottom: 4px; }
.team-card p { font-size: 13px; color: #777; }

/* --- Footer --- */
footer { background: #0a1628; color: #b8cfe0; padding: 40px 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo img,
.footer-logo .custom-logo { height: 40px; width: auto; }
.footer-copy { font-size: 13px; }
.footer-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a { font-size: 13px; color: #b8cfe0; transition: color .2s; }
.footer-links a:hover { color: #0080C6; }

/* --- Contact Form 7 Overrides --- */
.wpcf7-form p { margin-bottom: 16px; }
.wpcf7-form label { display: block; font-size: 13px; font-weight: 500; color: #333; margin-bottom: 6px; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border .2s;
  box-sizing: border-box;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus { border-color: #0080C6; }
.wpcf7-form textarea { resize: vertical; min-height: 110px; }
.wpcf7-form .wpcf7-submit {
  background: #0080C6;
  color: #fff;
  border: 2px solid #0080C6;
  padding: 13px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
  font-family: inherit;
}
.wpcf7-form .wpcf7-submit:hover { background: #006aaa; }
.wpcf7-not-valid-tip { font-size: 12px; color: #c00; margin-top: 4px; display: block; }
.wpcf7-response-output { margin-top: 12px !important; padding: 10px 14px !important; border-radius: 4px !important; font-size: 14px !important; border: none !important; }
.wpcf7-mail-sent-ok { background: #e6f5ea; color: #2d6a4f; }
.wpcf7-validation-errors { background: #fff3cd; color: #856404; }
.wpcf7-spam-blocked { background: #f8d7da; color: #721c24; }

/* --- Burger button (hidden on desktop) --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  z-index: 200;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0d1f3c;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile overlay --- */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 150;
  opacity: 0;
  transition: opacity .3s;
}
.mobile-overlay.active { opacity: 1; }

/* --- Tablet --- */
@media (max-width: 900px) {
  .topbar { padding: 7px 20px; font-size: 12px; gap: 16px; }
  nav { padding: 0 20px; }
  section { padding: 48px 20px; }
  .hero { padding: 60px 20px 50px; }
  .hero h1 { font-size: 30px; }
  .page-hero { padding: 36px 20px 28px; }
  .about-row { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 28px 20px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .btn-outline { margin-left: 0; margin-top: 10px; }
}

/* --- Mobile --- */
@media (max-width: 640px) {
  /* Topbar */
  .topbar { padding: 6px 16px; gap: 12px; }

  /* Nav: show burger, hide links by default */
  nav { padding: 0 16px; height: 60px; }
  .burger { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 160;
    padding: 100px 32px 40px;
    gap: 0;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    transition: right .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }

  .nav-links li { border-bottom: 1px solid #eef3f8; }
  .nav-links a {
    display: block;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 0;
    border-bottom: none;
    color: #1a1a1a;
  }
  .nav-links a:hover,
  .nav-links .current-menu-item > a,
  .nav-links a.active { color: #0080C6; border-bottom: none; }

  /* Hero */
  .hero { padding: 50px 16px 44px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; }
  .hero-badge { font-size: 11px; }
  .btn { padding: 11px 24px; font-size: 14px; }
  .btn-outline { margin-left: 0; margin-top: 10px; display: inline-block; }

  /* Page hero */
  .page-hero { padding: 32px 16px 24px; }
  .page-hero h1 { font-size: 26px; }

  /* Sections */
  section { padding: 40px 16px; }
  h2.section-title { font-size: 24px; }

  /* Grids → single column */
  .about-row,
  .contact-row,
  .svc-grid,
  .adv-grid,
  .team-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card .num { font-size: 28px; }

  /* Footer */
  footer { padding: 24px 16px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
