/* ================================================
   SapaAudit-AM — Landing Page
   Design: Dark Navy + Steel Blue Premium
   ================================================ */

/* --- Reset & Variables -------------------------------------------------- */

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

:root {
  /* Backgrounds */
  --bg-base:   #07111E;
  --bg-0:      #091628;
  --bg-1:      #0D1E35;
  --bg-card:   #112238;
  --bg-card-h: #172C48;

  /* Accent — steel blue, matches logo */
  --accent:       #7AAFC8;
  --accent-soft:  rgba(122, 175, 200, 0.10);
  --accent-glow:  rgba(122, 175, 200, 0.18);
  --accent-grad:  linear-gradient(135deg, #7AAFC8 0%, #9DCCE0 100%);

  /* Text */
  --text:   #ECF2F8;
  --text-2: #A8BFCF;
  --text-3: #5E7D95;

  /* WhatsApp */
  --wa:      #22C55E;
  --wa-dark: #16A34A;
  --wa-glow: rgba(34, 197, 94, 0.25);

  /* Borders */
  --border:   rgba(255, 255, 255, 0.055);
  --border-a: rgba(122, 175, 200, 0.14);

  /* Misc */
  --r:    16px;
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.28);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 64px;
  --container-max: 1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'cv01', 'cv02', 'cv05', 'ss01';
}

/* --- Utility ------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* --- Navigation --------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s;
}

.nav.is-scrolled {
  background: rgba(7, 17, 30, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.nav__logo {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(122, 175, 200, 0.22));
}

.nav__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav__name em {
  font-style: normal;
  color: var(--accent);
}

/* Ghost CTA in nav — harmonious with dark palette */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(122, 175, 200, 0.28);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav__cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.nav__cta:hover {
  background: rgba(122, 175, 200, 0.08);
  border-color: rgba(122, 175, 200, 0.55);
  color: var(--text);
}

/* --- WhatsApp CTA Button (hero + cta section) --------------------------- */

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--wa);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-wa:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--wa-glow);
}

.btn-wa:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-wa--hero {
  font-size: 17px;
  padding: 16px 34px;
  box-shadow: 0 4px 20px var(--wa-glow);
}

.wa-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 72px) 0 110px;
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 50% 5%, rgba(17, 42, 80, 0.85) 0%, transparent 65%),
    var(--bg-base);
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 175, 200, 0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 175, 200, 0.036) 1px, transparent 1px);
  background-size: 68px 68px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 20%, transparent 72%);
}

.hero__radial {
  position: absolute;
  width: 720px;
  height: 520px;
  background: radial-gradient(ellipse, rgba(122, 175, 200, 0.055) 0%, transparent 65%);
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 660px;
  margin: 0 auto;
}

/* Full logotype — inline SVG, width-controlled so it never overflows */
.hero__logo {
  width: 192px;
  max-width: 75vw;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 22px rgba(122, 175, 200, 0.22))
    drop-shadow(0 0 6px rgba(122, 175, 200, 0.10));
  margin-bottom: 24px;
}

/* Three-dot separator — premium jeweller pause */
.hero__sep {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 24px;
}

.hero__sep span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
}

.hero__title {
  font-size: clamp(34px, 6.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 14px;
}

.hero__spec {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0.6;
}

.hero__spec::before,
.hero__spec::after {
  content: '';
  flex: 0 0 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  opacity: 0.45;
}

.hero__spec::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--text-2);
  line-height: 1.72;
  max-width: 490px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__hint {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-3);
  display: flex;
  animation: bounce 2.2s ease-in-out infinite;
  transition: color 0.2s;
  text-decoration: none;
}

.hero__scroll svg { width: 22px; height: 22px; }
.hero__scroll:hover { color: var(--accent); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* --- Section Title ------------------------------------------------------ */

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 36px;
  color: var(--text);
}

/* --- Services ----------------------------------------------------------- */

.services {
  padding: 80px 0;
  background: var(--bg-0);
  border-top: 1px solid var(--border);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* --- Card --------------------------------------------------------------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-a);
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 40px rgba(122, 175, 200, 0.06);
}

.card__icon {
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
  transition: background 0.25s;
}

.card:hover .card__icon { background: rgba(122, 175, 200, 0.16); }

.card__icon svg { width: 19px; height: 19px; }

.card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.card p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* --- CTA Section -------------------------------------------------------- */

.cta-section {
  padding: 96px 0;
  background:
    radial-gradient(ellipse 85% 70% at 50% 110%, rgba(17, 44, 84, 0.65) 0%, transparent 65%),
    var(--bg-0);
  border-top: 1px solid var(--border);
}

.cta-section__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.cta-section__inner h2 {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.cta-section__inner p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 0 36px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__logo {
  height: 38px;
  width: auto;
  display: block;
  opacity: 0.68;
}

.footer__company {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.footer__tagline {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
  letter-spacing: 0.01em;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

.footer__link:hover { color: var(--text); }

.footer__bottom {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.footer__copy {
  font-size: 12px;
  color: var(--text-3);
}

.footer__legal {
  padding: 6px 0 14px;
  text-align: center;
}

.footer__legal p {
  font-size: 11px;
  color: var(--text-3);
  font-style: italic;
  opacity: 0.7;
}

/* --- Floating WhatsApp -------------------------------------------------- */

.float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: var(--wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 24px var(--wa-glow);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.float-wa svg {
  width: 27px;
  height: 27px;
  position: relative;
  z-index: 1;
}

.float-wa:hover {
  background: var(--wa-dark);
  transform: scale(1.1);
  box-shadow: 0 8px 32px var(--wa-glow);
}

.float-wa__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: ring-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

@keyframes ring-pulse {
  0%   { transform: scale(1);   opacity: 0.65; }
  70%  { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* --- Scroll Animations -------------------------------------------------- */

[data-anim] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-anim].is-visible {
  opacity: 1;
  transform: none;
}

/* --- Desktop layout ----------------------------------------------------- */

@media (min-width: 1024px) {
  :root { --container-max: 1320px; }

  .hero {
    text-align: left;
    align-items: stretch;
  }

  .hero__content {
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    column-gap: clamp(48px, 6vw, 96px);
    row-gap: 0;
    align-items: center;
  }

  .hero__logo {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 248px;
    max-width: none;
    margin-bottom: 0;
    justify-self: center;
  }

  .hero__sep { display: none; }

  .hero__title,
  .hero__spec,
  .hero__sub,
  .hero__actions {
    grid-column: 2;
    text-align: left;
    justify-self: start;
  }

  .hero__title {
    font-size: clamp(38px, 3.8vw, 54px);
  }

  .hero__spec {
    justify-content: flex-start;
  }

  .hero__spec::before { display: none; }

  .hero__spec::after {
    flex: 1;
    max-width: 120px;
  }

  .hero__sub {
    max-width: 640px;
    margin-left: 0;
  }

  .hero__actions {
    align-items: flex-start;
  }

  #why-us .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  #services .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .hero__grid {
    mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 15%, transparent 78%);
  }

  .hero__radial {
    width: 960px;
    height: 640px;
  }
}

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

@media (max-width: 768px) {
  :root { --nav-h: 58px; }

  .hero {
    padding: calc(var(--nav-h) + 48px) 0 100px;
  }

  .hero__logo {
    width: 162px;
  }

  .hero__title br { display: none; }

  .services { padding: 64px 0; }

  .why { padding: 48px 0; }

  .why__grid { gap: 12px; }

  .why__item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .cta-section { padding: 72px 0; }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 36px 0 28px;
  }

  .footer__contacts {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 24px;
  }

  .float-wa {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .float-wa svg { width: 23px; height: 23px; }
}

@media (max-width: 480px) {
  .btn-wa--hero {
    font-size: 15px;
    padding: 14px 28px;
    width: 100%;
    justify-content: center;
  }

  .nav__name { font-size: 14px; }

  .nav__cta span { display: none; }
  .nav__cta { padding: 7px 12px; }

  .hero__logo { width: 138px; }
}
