/* ==============================================
   KAZJOL — Custom Design Layer
   Brand: #00afde (blue) + #0a1f2c (dark) + #ff8a00 (accent)
   ============================================== */

/* ===== Lucide icons: defaults + sizing per context ===== */
svg.lucide,
.i-wa > svg {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  flex-shrink: 0;
  vertical-align: middle;
  display: inline-block;
}

/* Hero trust badges */
.hero-trust span svg { width: 18px; height: 18px; }

/* Hero CTA buttons */
.btn-cta svg { width: 20px; height: 20px; }

/* Tabs section icons — flex column, perfectly centered */
.tabs .nav-link {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 130px;
}
.tabs .nav-link svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.6;
  display: block;
  margin: 0 0 14px 0;
  padding: 0;
  color: var(--brand);
}
.tabs .nav-link h3 {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.3;
}

/* Service card icon — already in gradient circle */
.service-icon svg { width: 30px; height: 30px; stroke-width: 1.8; color: #fff; }

/* Service "link" arrow */
.service-link svg { width: 16px; height: 16px; }

/* About button arrow */
.about .about-btn svg { width: 18px; height: 18px; vertical-align: middle; }

/* Counts numbers: icon sits in circle above box */
.counts .count-box i,
.counts .count-box svg {
  position: absolute;
  top: -27px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  width: 56px;
  height: 56px;
  padding: 14px;
  color: var(--brand);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 25px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  display: block;
  stroke-width: 2;
}

/* Portfolio overlay zoom icon */
.portfolio-overlay .zoom-icon svg { width: 18px; height: 18px; color: #fff; }

/* Calculator submit button — inline WhatsApp brand SVG */
.calc-submit svg { width: 22px; height: 22px; color: currentColor; }

/* FAQ — '+' uses text, no svg */

/* Contact info-box icons: 56px circle with 26px icon inside */
.contact .info-box > i,
.contact .info-box > svg {
  background: rgba(0, 175, 222, 0.1);
  color: var(--brand);
  width: 56px;
  height: 56px;
  padding: 15px;
  border-radius: 50%;
  box-sizing: border-box;
  display: block;
  margin: 0 auto 14px;
}
.contact .info-box > i > svg {
  width: 100%;
  height: 100%;
  color: var(--brand);
  display: block;
}

/* Floating call/WhatsApp buttons — absolutely centered icon */
.back-to-top > svg,
.back-to-top1 > svg,
.back-to-top > i,
.back-to-top1 > i {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 26px;
  height: 26px;
  color: #fff;
  margin: 0;
  padding: 0;
}
.back-to-top > i > svg,
.back-to-top1 > i > svg,
.back-to-top .i-wa > svg,
.back-to-top1 .i-wa > svg {
  position: static !important;
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
  color: #fff !important;
  display: block;
}

/* Footer link chevrons */
.footer-links ul li svg { width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; color: var(--brand); }



:root {
  --brand: #00afde;            /* bright brand — use on dark bgs only */
  --brand-dark: #008cb3;       /* used for hover + large text on white (3.69:1) */
  --brand-text: #006e91;       /* WCAG AA-compliant brand colour for text/buttons on white (5.0:1) */
  --ink: #0a1f2c;
  --ink-soft: #2c3e50;
  --muted: #6b7785;
  --line: #e5eaf0;
  --bg-soft: #f5f9fc;
  --accent: #ff8a00;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(10, 31, 44, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 31, 44, 0.10);
  --shadow-lg: 0 16px 40px rgba(10, 31, 44, 0.14);
}

/* ===== Accessibility / WCAG contrast overrides ===== */
/* Logo "Асфальт" — large bold text on white → use --brand-dark for AA-large compliance */
#header .logo a span { color: var(--brand-dark) !important; }
/* Desktop nav active/hover text → darker brand for AA-normal compliance */
.nav-menu a:hover,
.nav-menu .active > a,
.nav-menu li:hover > a { color: var(--brand-text) !important; }
/* Header phone CTA (desktop) — bg darker so white text has 5:1 contrast */
.get-started-btn { background: var(--brand-text) !important; color: #fff !important; }
.get-started-btn:hover { background: var(--ink) !important; color: #fff !important; }

/* ===== Hero overlay + trust badges ===== */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 31, 44, 0.78) 0%, rgba(10, 31, 44, 0.55) 50%, rgba(0, 140, 179, 0.45) 100%);
  z-index: 1;
}
#hero .container { position: relative; z-index: 2; }

#hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 18px;
}
#hero .hero-sub {
  color: #e9f5fb;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  margin: 0 auto 32px;
  max-width: 900px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  white-space: nowrap;
}
.hero-trust i,
.hero-trust svg { color: var(--brand); width: 16px; height: 16px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 2px solid transparent;
}
.btn-cta-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 175, 222, 0.4);
}
.btn-cta-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 175, 222, 0.5);
}
.btn-cta-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-cta-secondary:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  #hero h1 { font-size: 32px; }
  #hero .hero-sub { font-size: 17px; }
  .hero-trust span { font-size: 13px; padding: 5px 11px; }
  .btn-cta { padding: 12px 22px; font-size: 15px; }
}

/* ===== Section titles uniform ===== */
.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
}
.section-title p { color: var(--muted); font-size: 17px; max-width: 700px; margin: 0 auto; }

/* ===== Service cards ===== */
.services .service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  height: 100%;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.services .service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.services .service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.services .service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0, 175, 222, 0.3);
}
.services .service-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.services .service-card h3 a { color: inherit; text-decoration: none; }
.services .service-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.service-price {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-dark);
  background: rgba(0, 175, 222, 0.12);
  padding: 7px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

/* Featured service card with "Хит" badge */
.services .service-card-featured {
  border-color: var(--brand);
  /* Inset shadow draws a top stripe that follows the border-radius perfectly */
  box-shadow: inset 0 4px 0 0 var(--brand), 0 14px 32px rgba(0, 175, 222, 0.18);
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbfd 100%);
  overflow: visible !important;   /* let the badge stick out */
  padding-top: 36px;
}
.services .service-card-featured::before { display: none !important; }
.service-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #ff8a00, #ff5e00);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(255, 94, 0, 0.4);
  line-height: 1;
  white-space: nowrap;
  z-index: 2;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: gap .2s ease;
}
.service-link:hover { gap: 10px; color: var(--brand-dark); }

/* ===== Portfolio: overlay on hover ===== */
.portfolio .portfolio-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: #fff;
}
.portfolio .portfolio-wrap picture { display: block; line-height: 0; }
.portfolio .portfolio-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.portfolio .portfolio-wrap:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 31, 44, 0.92) 0%, rgba(10, 31, 44, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s ease;
}
.portfolio .portfolio-wrap:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}
.portfolio-overlay span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}
.portfolio-overlay .zoom-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Portfolio always-visible caption on mobile */
@media (max-width: 768px) {
  .portfolio-overlay { opacity: 1; background: linear-gradient(to top, rgba(10,31,44,0.85) 0%, transparent 60%); }
  .portfolio-overlay .zoom-icon { display: none; }
}

/* ===== Lightbox (vanilla, no library) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 44, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

/* ===== Reviews ===== */
.reviews {
  padding: 80px 0;
  background: var(--bg-soft);
}
.review-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  height: 100%;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-card::before {
  content: """;
  position: absolute;
  top: -8px;
  left: 20px;
  font-size: 80px;
  color: var(--brand);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.review-stars {
  color: #ffb800;
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.review-text {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 18px;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}
.review-author-name { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.2; }
.review-author-meta { color: var(--muted); font-size: 13px; }

/* ===== Service areas (local SEO) ===== */
.areas {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.areas-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.areas-col:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.areas-col h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}
.areas-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.areas-col ul li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 7px 0 7px 22px;
  position: relative;
  line-height: 1.45;
}
.areas-col ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.areas-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.areas-note a {
  color: var(--brand-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--brand);
}
.areas-note a:hover { color: var(--brand-dark); }

@media (max-width: 992px) {
  .areas-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .areas-grid { grid-template-columns: 1fr; gap: 16px; }
  .areas { padding: 60px 0; }
  .areas-col { padding: 22px 20px; }
}

/* ===== Blog section on home page ===== */
.blog-section {
  padding: 80px 0;
  background: var(--bg-soft);
}
.home-article {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home-article:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.home-article-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}
.home-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.home-article:hover .home-article-img img { transform: scale(1.06); }

.home-article-body {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  flex: 1;
}
.home-article-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-text);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 10px;
}
.home-article-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
}
.home-article-excerpt {
  display: block;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.home-article-readmore {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-text);
  margin-top: auto;
}
.blog-section-cta {
  text-align: center;
  margin-top: 36px;
}
.blog-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s ease, transform .2s ease;
}
.blog-section-link:hover {
  background: var(--brand);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .blog-section { padding: 60px 0; }
  .home-article-body { padding: 20px 18px 18px; }
  .home-article-title { font-size: 16px; }
}

/* ===== Calculator form ===== */
.calculator {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--ink) 0%, #1a3548 100%);
  color: #fff;
}
.calculator .section-title h2 { color: #fff; }
.calculator .section-title h2::after { background: var(--brand); }
.calculator .section-title p { color: rgba(255, 255, 255, 0.8); }

.calc-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 600px) { .calc-row { grid-template-columns: 1fr; } }
.calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.calc-field select,
.calc-field input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
}
.calc-field select option { background: var(--ink); color: #fff; }
.calc-field input::placeholder { color: rgba(255, 255, 255, 0.5); }
.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.15);
}

.calc-result {
  background: rgba(0, 175, 222, 0.15);
  border: 1px solid rgba(0, 175, 222, 0.4);
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
  text-align: center;
}
.calc-result-label { font-size: 13px; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 0.5px; }
.calc-result-value { font-size: 28px; font-weight: 700; color: #fff; margin-top: 4px; }
.calc-result-hint { font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }

.calc-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.calc-submit:hover { background: #1ebe57; transform: translateY(-2px); }
.calc-submit i { font-size: 20px; }

/* ===== FAQ accordion ===== */
.faq { padding: 80px 0; background: #fff; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item:hover { border-color: var(--brand); }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--brand); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}
.faq-question:hover { color: var(--brand); }
.faq-toggle {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.faq-item.open .faq-toggle {
  background: var(--brand);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Tabs section — kill default <li> bullets (we no longer ship Bootstrap reset) ===== */
.tabs ul.nav { list-style: none; padding-left: 0; margin: 0; }
.tabs ul.nav li.nav-item { list-style: none; }

/* ===== Counts numbers — darker brand for WCAG AA contrast ===== */
.counts .count-box span[data-toggle="counter-up"],
.counts .count-box span { color: var(--brand-text) !important; }

/* ===== Calc submit (WhatsApp button) — darker green for WCAG AA contrast ===== */
.calc-submit { background: #168c3d !important; }
.calc-submit:hover { background: #0f6b2d !important; }

/* ===== Tabs section refinement ===== */
.tabs .nav-item .nav-link,
.tabs .nav-item .nav-link.active {
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  background: #fff !important;
  color: var(--ink) !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  padding: 22px 18px !important;
}
.tabs .nav-item .nav-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand) !important;
}
.tabs .nav-item .nav-link h3 {
  color: var(--ink) !important;
  font-size: 16px;
  margin-top: 6px;
}
.tabs .nav-item i,
.tabs .nav-item svg { color: var(--brand); }

/* ===== Override the dark navy "section-bg" slash from the template ===== */
section.section-bg {
  color: var(--ink) !important;
  padding: 80px 0 !important;
  background: transparent;
}
section.section-bg::before { display: none !important; }
section#services.section-bg { background: var(--bg-soft); }
section#about.section-bg { background: #fff; }

/* ===== About section ===== */
section#about.about {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f9fc 0%, #eaf4fa 100%) !important;
  padding: 90px 0 !important;
}
.about-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(0, 175, 222, 0.10) 0, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(0, 140, 179, 0.12) 0, transparent 40%),
    radial-gradient(rgba(10, 31, 44, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  opacity: 1;
}
.about .container { position: relative; z-index: 1; }

.about-content { margin-top: 30px; }

.about-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 18px;
}
.about-dropcap {
  float: left;
  font-size: 56px;
  line-height: 1;
  padding: 6px 12px 0 0;
  color: var(--brand);
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}
.about-body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.about-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 26px !important;
  background: var(--brand) !important;
  border: none !important;
  border-radius: 50px !important;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 175, 222, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.about-btn:hover {
  background: var(--brand-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 175, 222, 0.45);
  color: #fff !important;
}
.about-btn svg { width: 18px; height: 18px; }

/* About features list */
.about-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-features li {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.about-features li:hover {
  transform: translateX(4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.af-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.af-icon svg { width: 22px; height: 22px; color: #fff; }
.about-features li strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 3px;
}
.about-features li p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .about-features { margin-top: 30px; }
}

/* About mobile typography polish */
@media (max-width: 768px) {
  section#about.about { padding: 60px 0 !important; }
  .about-content { margin-top: 20px; }
  .about-lead {
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
    color: var(--ink-soft);
  }
  .about-body {
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
    color: var(--ink-soft);
  }
  .about-dropcap {
    font-size: 40px;
    padding: 2px 10px 0 0;
  }
  .about-features li {
    padding: 14px 16px;
    gap: 12px;
  }
  .af-icon {
    width: 40px;
    height: 40px;
  }
  .af-icon svg { width: 20px; height: 20px; }
  .about-features li strong { font-size: 15px; }
  .about-features li p { font-size: 13.5px; line-height: 1.5; }
  .about-btn {
    width: 100%;
    justify-content: center;
    margin-top: 14px !important;
  }
}

/* ===== Contact section — bold equal-size cards ===== */
.contact { padding: 80px 0; background: var(--bg-soft); }
.contact-grid { margin-top: 10px; }
.contact .contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 36px 24px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none !important;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: var(--shadow-sm);
}
.contact .contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.contact .contact-card-static { cursor: default; }
.contact .contact-card-static:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow-sm); }

.contact-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0, 175, 222, 0.3);
}
.contact-card-icon svg { width: 28px; height: 28px; color: #fff; }
.contact-card-wa .contact-card-icon { background: linear-gradient(135deg, #25D366, #1ebe57); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }

.contact-card-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.contact-card-value {
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-card-hint {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
}

@media (max-width: 768px) {
  .contact .contact-card { padding: 28px 20px 22px; }
  .contact-card-value { font-size: 18px; }
}

/* ===== Footer link readability ===== */
#footer { background: #0a1f2c !important; }
#footer .footer-top { background: #0a1f2c !important; }
#footer .footer-top .footer-contact h3,
#footer .footer-top h3 { color: #fff !important; }
#footer .footer-top .footer-contact p { color: rgba(255, 255, 255, 0.85); }
#footer .footer-top .footer-contact a { color: var(--brand); font-weight: 600; }
#footer .footer-top .footer-links ul li { padding: 8px 0 !important; }
#footer .footer-top .footer-links ul a {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease, padding-left .2s ease;
}
#footer .footer-top .footer-links ul a:hover {
  color: var(--brand) !important;
  padding-left: 4px;
}
#footer .footer-newsletter p { color: rgba(255, 255, 255, 0.85); }
#footer .copyright { color: rgba(255, 255, 255, 0.9); }
#footer .credits { color: rgba(255, 255, 255, 0.75); margin-top: 6px; }

/* ===== Counts numbers ===== */
.counts .count-box span { color: var(--brand); }
.counts .count-box i { color: var(--brand); }

/* ===== Contact info boxes ===== */
.contact .info-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.contact .info-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}
.contact .info-box i {
  color: var(--brand);
  background: rgba(0, 175, 222, 0.1);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}

/* ===== Header logo accent ===== */
#header .logo span { color: var(--brand); font-weight: 700; }

/* ===== Mobile menu toggle (hamburger) ===== */
.mobile-nav-toggle {
  position: fixed !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 10000 !important;
  width: 44px;
  height: 44px;
  background: var(--brand) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(0, 175, 222, 0.4);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.mobile-nav-toggle:hover { background: var(--brand-dark) !important; transform: scale(1.05); }
.mobile-nav-toggle svg { color: #fff; width: 24px; height: 24px; display: block; }
.mobile-nav-active .mobile-nav-toggle { background: var(--ink) !important; }
.mobile-nav-active .mobile-nav-toggle svg { color: #fff; }
@media (min-width: 992px) {
  .mobile-nav-toggle,
  .mobile-nav,
  .mobile-nav-overly { display: none !important; }
}

/* ===== Mobile nav panel ===== */
.mobile-nav {
  position: fixed;
  top: 70px;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 9999;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(10, 31, 44, 0.4);
  padding: 14px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 6px 0 0 0;
}
.mobile-nav li { padding: 0; }
.mobile-nav a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  padding: 14px 22px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mobile-nav a:hover,
.mobile-nav li.active > a {
  color: var(--brand);
  background: rgba(0, 175, 222, 0.07);
  border-left-color: var(--brand);
}
.mobile-nav .mnav-cta {
  margin: 10px 18px 4px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.mobile-nav .mnav-cta a {
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  border-left: none;
  padding: 12px 16px;
}
.mobile-nav .mnav-cta a:hover {
  background: var(--brand-dark);
  color: #fff;
  border-left: none;
}

.mobile-nav-overly {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(10, 31, 44, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

/* Active state — body class toggles panel + overlay */
body.mobile-nav-active { overflow: hidden; }
body.mobile-nav-active .mobile-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
body.mobile-nav-active .mobile-nav-overly {
  opacity: 1;
  visibility: visible;
}

/* ===== Hide phone CTA on small screens to free top-right for hamburger ===== */
@media (max-width: 991.98px) {
  #header .get-started-btn { display: none !important; }
  #header .container { padding-right: 70px; padding-left: 18px; }
  /* Bigger white header bar on mobile — more breathing room */
  #header {
    padding: 22px 0 !important;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(10, 31, 44, 0.06);
    min-height: 80px;
  }
  #header.header-scrolled {
    padding: 16px 0 !important;
  }
  #header .logo {
    font-size: 32px !important;
  }
  #header .logo a span {
    color: var(--brand);
    font-weight: 700;
  }
  /* Push hero down to clear taller header */
  #hero { padding-top: 120px !important; }
  /* Hamburger inside the header bar (header is ~80px tall, button 48px) */
  .mobile-nav-toggle {
    top: 16px !important;
    right: 16px !important;
    width: 48px;
    height: 48px;
  }
  .mobile-nav-toggle:hover { transform: scale(1.05) !important; }
  /* Open panel sits below the taller header */
  .mobile-nav { top: 96px !important; }
}

/* ===== Scroll-to-top button — same size & column as phone/WhatsApp ===== */
.scroll-top {
  position: fixed;
  right: 15px;
  bottom: 155px;             /* phone (60px) + 70px gap + 15px = stacks above phone */
  width: 60px;
  height: 60px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, background .2s ease, visibility .25s, transform .2s ease;
  z-index: 12;
  box-shadow: 0 8px 24px rgba(10, 31, 44, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top svg {
  color: #fff;
  width: 22px;
  height: 22px;
  display: block;
  margin: 0;
  padding: 0;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--brand);
  transform: translateY(-3px);
}

/* ===== Smooth-scroll for the whole page (fallback when JS not used) ===== */
html { scroll-behavior: smooth; }

/* ===== CSS-only fade-in animations (no JS lib, no CLS — opacity/transform are composited) =====
   Elements that need animation get class="reveal". When they enter viewport, an
   IntersectionObserver in the inline script adds .visible. Without JS they remain visible. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
    will-change: opacity, transform;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Stagger children */
  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal-stagger.visible > *:nth-child(1) { transition-delay: .05s; opacity: 1; transform: none; }
  .reveal-stagger.visible > *:nth-child(2) { transition-delay: .15s; opacity: 1; transform: none; }
  .reveal-stagger.visible > *:nth-child(3) { transition-delay: .25s; opacity: 1; transform: none; }
  .reveal-stagger.visible > *:nth-child(4) { transition-delay: .35s; opacity: 1; transform: none; }
  .reveal-stagger.visible > *:nth-child(5) { transition-delay: .45s; opacity: 1; transform: none; }
  .reveal-stagger.visible > *:nth-child(6) { transition-delay: .55s; opacity: 1; transform: none; }
  .reveal-stagger.visible > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: .6s; }
}

/* ===== Mobile responsive polish ===== */
@media (max-width: 768px) {
  /* Section spacing tighter on mobile */
  section { padding: 60px 0 !important; }
  .section-title h2 { font-size: 28px; }
  .section-title p { font-size: 15px; }

  /* Hero: use min-height so content is always visible (100vh broke on short viewports) */
  #hero {
    height: auto !important;
    min-height: 100vh;
    min-height: 100svh;
    padding: 130px 0 60px !important;
  }
  #hero .container { width: 100%; padding-left: 20px; padding-right: 20px; }

  /* Hero CTA full-width stack */
  .hero-ctas { flex-direction: column; align-items: stretch; padding: 0 10px; }
  .btn-cta { justify-content: center; width: 100%; }

  /* Service card padding */
  .services .service-card { padding: 24px 20px; }

  /* Portfolio: tighter spacing + slightly shorter images on mobile */
  .portfolio .portfolio-wrap img { height: 220px; }
  .portfolio .portfolio-container.gy-4 > * { padding-top: 0.75rem !important; }
  .portfolio .portfolio-container { row-gap: 0; }

  /* About 2-col stacks naturally; reduce gaps */
  .about-features li { padding: 14px 16px; gap: 12px; }
  .about-dropcap { font-size: 44px; padding: 4px 10px 0 0; }

  /* Calculator form single col is already handled */
  .calc-card { padding: 24px 18px; }
  .calc-result-value { font-size: 24px; }

  /* FAQ tighter */
  .faq-question { font-size: 15px; padding: 16px 18px; }
  .faq-answer-inner { padding: 0 18px 16px; font-size: 14px; }

  /* Contact card center text */
  .contact .info-box { padding: 24px 18px; }

  /* Floating buttons slightly smaller, repositioned */
  .back-to-top, .back-to-top1 {
    width: 52px !important;
    height: 52px !important;
  }
  /* Scroll-top moves to LEFT side on mobile — right side already has phone + WhatsApp */
  .scroll-top {
    width: 52px;
    height: 52px;
    line-height: 52px;
    right: auto;
    left: 15px;
    bottom: 15px;
  }
  .scroll-top svg { width: 22px; height: 22px; }

  /* Footer 1-column gaps */
  #footer .footer-top > .container > .row > div { margin-bottom: 26px; }
  #footer .footer-top h3 { font-size: 17px; }
}

@media (max-width: 575px) {
  /* Counts boxes need bottom margin since they stack */
  .counts .count-box { padding-top: 40px; }
  .counts .col-md-6 { margin-top: 50px !important; }
  .counts .col-md-6:first-child { margin-top: 30px !important; }

  /* Reviews padding */
  .review-card { padding: 22px 20px; }
  .review-text { font-size: 14px; }

  /* Hero heading smaller */
  #hero h1 { font-size: 26px; }
  #hero .hero-sub { font-size: 15px; }

  /* Trust badges smaller */
  .hero-trust { gap: 8px 10px; }
  .hero-trust span { font-size: 12px; padding: 4px 10px; }
  .hero-trust svg, .hero-trust i { width: 14px; height: 14px; }
}

/* ===== Floating action buttons (call + whatsapp) ===== */
.back-to-top,
.back-to-top1 {
  background: var(--brand) !important;
  box-shadow: 0 8px 24px rgba(0, 175, 222, 0.4) !important;
  transition: transform .2s ease, background .2s ease !important;
}
.back-to-top1 { background: #25D366 !important; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4) !important; }
.back-to-top:hover { transform: scale(1.08); background: var(--brand-dark) !important; }
.back-to-top1:hover { transform: scale(1.08); background: #1ebe57 !important; }

/* ===== Portfolio "Show all works" CTA button ===== */
.portfolio-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 175, 222, 0.35);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.portfolio-more-btn:hover {
  background: var(--brand-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 175, 222, 0.45);
  text-decoration: none;
}
.portfolio-more-btn svg { transition: transform .2s ease; }
.portfolio-more-btn:hover svg { transform: translateX(4px); }
