/* =====================================================================
   ByteBlaze IT Solutions — Global theme & layout
   Brand colors: #3dbcec (primary)  |  #f58020 (accent / CTA)
   No gradients. Solid fills, thin borders, soft shadows, whitespace.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-primary:        #3dbcec;
  --color-primary-dark:   #2aa3d0;
  --color-primary-tint:   #eaf7fc; /* very light blue surface */
  --color-accent:         #f58020;
  --color-accent-dark:    #db6c12;
  --color-navy:           #15263b; /* footer + headings */
  --color-navy-soft:      #1f3553;
  --color-heading:        #15263b;
  --color-text:           #4a5568;
  --color-muted:          #6b7a90;
  --color-surface:        #ffffff;
  --color-surface-alt:    #f6f9fc;
  --color-border:         #e3e9f0;

  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container:    1200px;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow-sm:    0 1px 3px rgba(21, 38, 59, 0.06), 0 1px 2px rgba(21, 38, 59, 0.04);
  --shadow-md:    0 6px 18px rgba(21, 38, 59, 0.08);
  --transition:   0.2s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }

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

.section { padding: 72px 0; }
.section--alt { background: var(--color-surface-alt); }

.section__head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}
.section__head p { color: var(--color-muted); margin-bottom: 0; }

/* short accent rule under headings */
.rule { width: 56px; height: 3px; background: var(--color-accent); border: 0; border-radius: 3px; margin: 14px auto 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn--outline:hover { background: #fff; color: var(--color-navy); border-color: #fff; }
.btn--ghost { background: var(--color-primary); color: #fff; }
.btn--ghost:hover { background: var(--color-primary-dark); color: #fff; }

/* =====================================================================
   HERO CAROUSEL
   The slide backgrounds below are DUMMY placeholders (solid brand tints).
   To use real banners, replace each .slide background with:
       background-image: url("../img/carousel/slide-1.webp");
   ---------------------------------------------------------------------
   REQUIRED IMAGE SIZE : 1920 x 720 px
   ASPECT RATIO        : 8 / 3  (≈ 2.66 : 1)
   FORMAT              : optimized WebP (or JPG fallback)
   SAFE ZONE           : keep key subjects/text near the centre so the
                         image crops cleanly on mobile.
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
}
/* The viewport owns ONE fixed size — every slide fills it, so the hero
   never changes height between slides (this is the "same size" fix). */
.hero__viewport {
  position: relative;
  aspect-ratio: 8 / 3;   /* matches the 1920 x 720 banner spec */
  min-height: 460px;     /* keeps slides tall enough on small screens */
}

/* ALL slides are absolutely positioned and stacked — they crossfade */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.7s ease;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* slide background fills the whole viewport */
.slide__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
/* DUMMY placeholder fills — replace with real images later */
.slide:nth-child(1) .slide__media { background-color: var(--color-navy); }
.slide:nth-child(2) .slide__media { background-color: #123a52; }
.slide:nth-child(3) .slide__media { background-color: #103043; }

/* subtle solid overlay (NOT a gradient) for text legibility */
.slide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 25, 40, 0.55);
}

.slide__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 90px 20px;
}
.slide__content {
  max-width: 620px;
  /* gentle rise + fade-in once the slide becomes active */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.slide.is-active .slide__content { opacity: 1; transform: translateY(0); }
.slide__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.2;
  color: #fff;
  margin: 0 0 16px;
}
.slide__title span { color: var(--color-primary); }
.slide__sub { color: #d6e2ef; font-size: 1.05rem; margin-bottom: 28px; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* carousel controls */
.hero__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}
.hero__btn:hover { background: var(--color-accent); }
.hero__btn--prev { left: 18px; }
.hero__btn--next { right: 18px; }

.hero__dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.hero__dot.is-active { background: var(--color-accent); transform: scale(1.2); }

/* ---------- Intro strip (holds the single H1) ---------- */
.intro { padding: 64px 0 8px; text-align: center; }
.intro .container { max-width: 880px; }
.intro h1 { margin-bottom: 18px; }
.intro__lead { font-size: 1.12rem; color: var(--color-muted); }

/* ---------- Card grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-muted); margin-bottom: 0; font-size: 0.96rem; }

/* two-column section: text + sub-service list (digital marketing, ecommerce...) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split--reverse .split__text { order: 2; }
.split__text h2 { margin-bottom: 14px; }
.split__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
}
.split__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--color-heading);
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.split--alt .split__list li { background: var(--color-surface-alt); }
.split__list .tick {
  flex: none;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
}

/* image-side placeholder block (replace with real photo) */
/* RECOMMENDED IMAGE SIZE: 720 x 560 px (≈ 9:7) — optimized WebP */
.split__media {
  aspect-ratio: 9 / 7;
  border-radius: var(--radius);
  background: var(--color-primary-tint);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  padding: 16px;
}

/* ---------- Hire developers chips ---------- */
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}
.chip {
  text-align: center;
  padding: 26px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}
.chip:hover { transform: translateY(-3px); border-color: var(--color-accent); }
.chip__icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
}
/* official brand logos are self-coloured, so the circle stays neutral */
.chip__icon img { width: 36px; height: 36px; object-fit: contain; }
.chip h3 { font-size: 1rem; margin: 0; }

/* ---------- Stats / Why choose us ---------- */
.stats { background: var(--color-navy); color: #fff; padding: 60px 0; }
.stats h2 { color: #fff; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--color-primary);
  line-height: 1;
}
.stat__label { color: #c4d2e2; font-size: 0.95rem; margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #eaf7fc; max-width: 640px; margin: 0 auto 24px; }
.cta-band .btn--primary { background: var(--color-navy); }
.cta-band .btn--primary:hover { background: #0d1929; }

/* ---------- Inner-page banner (e.g. Blog) ---------- */
.page-hero { background: var(--color-navy); color: #fff; text-align: center; padding: 60px 0; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #c9d6e6; max-width: 640px; margin: 0 auto; }

/* ---------- Blog "coming soon" ---------- */
.blog-empty { max-width: 640px; margin: 0 auto; text-align: center; }
.blog-empty__icon {
  width: 84px; height: 84px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
}
.blog-empty__icon svg { width: 40px; height: 40px; }
.blog-empty p { color: var(--color-muted); margin-bottom: 26px; }
.blog-empty__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   CONTACT PAGE — form (left) + office info (right)
   ===================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: stretch;
}

/* form card */
.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 34px;
}
.contact-card > h2 { margin-bottom: 6px; }
.contact-card__sub { color: var(--color-muted); margin-bottom: 26px; }
.req { color: var(--color-accent); }

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-heading);
  margin-bottom: 7px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-heading);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), background var(--transition);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: #9aa7b6; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.contact-form .btn { width: 100%; border: 0; margin-top: 4px; }

/* office info panel */
.contact-info {
  background: var(--color-navy);
  color: #cdd9e7;
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info h2 { color: #fff; margin-bottom: 6px; }
.contact-info__sub { color: #aab8c9; margin-bottom: 28px; }
.contact-info__list { display: grid; gap: 20px; margin-bottom: 28px; }
.contact-info__list li { display: flex; gap: 14px; line-height: 1.55; font-size: 0.95rem; }
.contact-info__icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-primary);
}
.contact-info__icon svg { width: 20px; height: 20px; }
.contact-info__list strong {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.contact-info__list a { color: #cdd9e7; }
.contact-info__list a:hover { color: var(--color-primary); }
.contact-info__social { display: flex; gap: 12px; }
.contact-info__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background var(--transition);
}
.contact-info__social a:hover { background: var(--color-accent); }
.contact-info__social svg { width: 18px; height: 18px; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-card, .contact-info { padding: 24px; }
}

/* =====================================================================
   WHATSAPP FLOATING BUTTON  (fixed, bottom-right, all pages)
   ===================================================================== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;          /* WhatsApp brand green */
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), background var(--transition);
}
.whatsapp-float:hover { background: #1fb855; color: #fff; transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* radar pulse behind the button */
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::after { animation: none; }
}
@media (max-width: 540px) {
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--reverse .split__text { order: 0; }
  .hero__viewport { min-height: 440px; }
}
@media (max-width: 540px) {
  .section { padding: 52px 0; }
  .split__list { grid-template-columns: 1fr; }
  .slide__inner { padding: 56px 20px; }
  .hero__viewport { min-height: 480px; } /* room for wrapped title + stacked buttons */
  .hero__btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .slide__content { transition: none; opacity: 1; transform: none; }
}
