/* ==========================================================================
   Avaxsoft — custom styles on top of Bootstrap 5.3 (grid + utilities)
   ========================================================================== */

:root {
  /* Brand red sampled directly from the Avaxsoft logo (assets/logo.jpg) */
  --avax-primary: #d81020;
  --avax-primary-dark: #a80d19;
  --avax-primary-rgb: 216, 16, 32;
  --avax-dark: #1c1c1e;
  --avax-accent: #a80d19;
  --avax-primary-light: #ff4d5e;
  --avax-bg: #ffffff;
  --avax-section: #f8f9fa;
  --avax-text: #212529;
  --avax-muted: #6c757d;
  --avax-border: #e9ecef;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-sm: 0 2px 10px rgba(28, 28, 30, 0.06);
  --shadow-md: 0 10px 28px rgba(28, 28, 30, 0.12);
}

html { scroll-behavior: smooth; }
body {
  color: var(--avax-text);
  background: var(--avax-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
section { scroll-margin-top: 76px; }

a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--avax-primary); outline-offset: 2px; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--avax-primary);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Section rhythm ---- */
.section-pad { padding: 5rem 0; }
.bg-section { background: var(--avax-section); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--avax-primary);
  margin-bottom: .6rem;
}
.section-lead { max-width: 640px; }

/* ---- Navbar ---- */
.navbar-brand-stack { line-height: 1.1; }
.navbar-brand-stack .brand-name { font-weight: 800; font-size: 1.25rem; color: var(--avax-dark); }
.navbar-brand-stack .brand-sub {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--avax-muted);
}
.navbar { box-shadow: var(--shadow-sm); }
.nav-link { font-weight: 600; color: var(--avax-dark); }
.nav-link:hover, .nav-link:focus, .nav-link.active { color: var(--avax-primary); }

/* ---- Hero ---- */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--avax-section) 100%);
}
.hero-section h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hero-stats .stat-num { font-weight: 800; font-size: 1.4rem; color: var(--avax-dark); display: block; }
.hero-stats .stat-label { font-size: .8rem; color: var(--avax-muted); }

.hero-illustration {
  background: var(--avax-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.hero-illustration svg { width: 100%; height: auto; display: block; }

/* ---- Service cards ---- */
.service-card {
  border: 1px solid var(--avax-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--avax-primary-rgb), .1);
  color: var(--avax-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--avax-muted); font-size: .95rem; margin-bottom: 0; }
.services-more { font-size: .92rem; color: var(--avax-muted); }

/* ---- About ---- */
.about-check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .7rem; }
.about-check-list li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
.about-check-list i { color: var(--avax-accent); margin-top: .2rem; }
.about-figure {
  background: var(--avax-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.about-figure svg { width: 100%; height: auto; display: block; }

/* ---- Process timeline ---- */
.process-list { list-style: none; padding: 0; margin: 0; }
.process-item {
  display: flex;
  gap: 1.1rem;
  position: relative;
  padding-bottom: 2rem;
}
.process-item:last-child { padding-bottom: 0; }
.process-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 0;
  width: 2px;
  background: var(--avax-border);
}
.process-item:last-child::before { display: none; }
.process-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--avax-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.process-item h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.process-item p { color: var(--avax-muted); font-size: .92rem; margin: 0; }

/* ---- Why choose us ---- */
.why-card {
  text-align: center;
  padding: 1.75rem 1.1rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--avax-border);
  height: 100%;
}
.why-card .service-icon { margin: 0 auto 1rem; background: rgba(var(--avax-primary-rgb), .1); color: var(--avax-primary); }
.why-card h3 { font-size: 1rem; }
.why-card p { font-size: .88rem; color: var(--avax-muted); margin: 0; }

/* ---- Contact ---- */
.contact-info-card {
  background: var(--avax-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-info-card h3 { color: #fff; font-size: 1.05rem; }
.contact-info-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1.1rem; }
.contact-info-list li { display: flex; gap: .7rem; align-items: flex-start; }
.contact-info-list i { color: var(--avax-primary-light); margin-top: .2rem; }
.contact-info-list a { color: #fff; }
.contact-info-list a:hover { color: var(--avax-primary-light); }

.contact-form-card {
  background: #fff;
  border: 1px solid var(--avax-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  margin: 0;
}
.form-label { font-weight: 600; font-size: .9rem; }
.form-control, .form-select { padding: .7rem .9rem; border-radius: var(--radius-md); }
.form-control:focus, .form-select:focus {
  border-color: var(--avax-primary);
  box-shadow: 0 0 0 .2rem rgba(var(--avax-primary-rgb), .15);
}

/* ---- Buttons ---- */
.btn-avax-primary {
  background: var(--avax-primary);
  border-color: var(--avax-primary);
  color: #fff;
  font-weight: 600;
  padding: .75rem 1.6rem;
  border-radius: 999px;
}
.btn-avax-primary:hover { background: var(--avax-primary-dark); border-color: var(--avax-primary-dark); color: #fff; }
.btn-avax-outline {
  background: transparent;
  border: 2px solid var(--avax-border);
  color: var(--avax-dark);
  font-weight: 600;
  padding: .7rem 1.6rem;
  border-radius: 999px;
}
.btn-avax-outline:hover { border-color: var(--avax-primary); color: var(--avax-primary); }

/* ---- Footer ---- */
.site-footer { background: var(--avax-dark); color: rgba(255,255,255,.7); padding: 3rem 0 1.5rem; }
.site-footer .footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; }
.site-footer .footer-sub { font-size: .78rem; color: rgba(255,255,255,.5); }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--avax-primary-light); }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 2rem 0 1.25rem; }
