/* ═══════════════════════════════════════════
   components.css — Nav, Footer, Buttons, shared UI
   Dochia Software · Design System v1.0
   ═══════════════════════════════════════════ */

/* ━━━━━━━━━━━━━━━━━━
   NAVIGATION
━━━━━━━━━━━━━━━━━━ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--nav-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(200,207,224,.4);
  transition: height .2s ease, box-shadow .2s;
  animation: slideDown .5s ease both;
}
nav.scrolled { height: 58px; box-shadow: 0 2px 20px rgba(15,17,23,.06); }

.nav-inner {
  height: 100%; max-width: 1280px; margin: 0 auto;
  padding: 0 5%;
  display: flex; align-items: center;
}
.nav-logo {
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em;
  color: var(--ink); text-decoration: none; flex-shrink: 0;
  display: flex; align-items: center; gap: .4rem;
}
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,102,255,.35);
  transition: box-shadow .2s;
}
.nav-logo:hover .nav-logo-mark { box-shadow: 0 4px 18px rgba(0,102,255,.45); }

.nav-links {
  display: flex; list-style: none;
  margin-left: 2rem; gap: 0;
}
.nav-links a {
  display: block; padding: .4rem .85rem;
  color: var(--s500); text-decoration: none;
  font-size: .875rem; font-weight: 500;
  border-radius: 8px; transition: color .15s, background .15s; white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); background: var(--s50); }
.nav-links a.active { font-weight: 600; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none;
  width: 40px; height: 40px; border-radius: 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background .15s; margin-left: auto;
}
.hamburger:hover { background: var(--s50); }
.ham-line { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .25s; }
.hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 250;
  background: rgba(255,255,255,.97); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--s100);
  padding: 1.25rem 5% 1.75rem;
  box-shadow: 0 8px 32px rgba(15,17,23,.1);
  transform: translateY(-10px); opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.mobile-menu.open {
  display: block; opacity: 1; transform: translateY(0); pointer-events: all;
}
.mob-links { list-style: none; display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1.25rem; }
.mob-links a {
  display: block; padding: .75rem 1rem;
  color: var(--ink-s); text-decoration: none;
  font-size: .95rem; font-weight: 600;
  border-radius: 12px; transition: background .15s;
}
.mob-links a:hover { background: var(--s50); }
.mob-links a.active { color: var(--accent); background: var(--accent-l); }
.mob-divider { height: 1px; background: var(--s100); margin: .75rem 0; }
.mob-actions { display: flex; flex-direction: column; gap: .65rem; }

/* ━━━━━━━━━━━━━━━━━━
   BUTTONS
━━━━━━━━━━━━━━━━━━ */

/* Nav buttons */
.btn-ghost {
  background: none; border: 1.5px solid var(--s200);
  color: var(--ink-s); padding: .42rem 1rem;
  border-radius: 10px; font-size: .84rem; font-weight: 600;
  transition: all .15s; white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--s400); background: var(--s50); }

.btn-nav-cta {
  background: var(--accent); color: #fff; border: none;
  padding: .48rem 1.15rem; border-radius: 10px;
  font-size: .84rem; font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,102,255,.3);
  transition: all .18s; display: flex; align-items: center; gap: .35rem; white-space: nowrap;
}
.btn-nav-cta:hover { background: #0052cc; box-shadow: 0 4px 20px rgba(0,102,255,.42); transform: translateY(-1px); }

/* Mobile buttons */
.btn-mob-ghost {
  width: 100%; padding: .75rem; border-radius: 12px;
  border: 1.5px solid var(--s200); background: none;
  color: var(--ink-s); font-size: .95rem; font-weight: 600; transition: all .15s;
}
.btn-mob-ghost:hover { border-color: var(--s400); background: var(--s50); }

.btn-mob-cta {
  width: 100%; padding: .8rem; border-radius: 12px;
  border: none; background: var(--accent); color: #fff;
  font-size: .95rem; font-weight: 700;
  box-shadow: 0 4px 18px rgba(0,102,255,.3);
}

/* Primary CTA */
.btn-primary {
  background: var(--accent); color: #fff; border: none;
  padding: .85rem 2rem; border-radius: 12px;
  font-size: .95rem; font-weight: 700;
  box-shadow: 0 4px 24px rgba(0,102,255,.38);
  transition: all .2s; display: inline-flex; align-items: center; gap: .5rem;
}
.btn-primary:hover { background: #0052cc; transform: translateY(-2px); box-shadow: 0 8px 36px rgba(0,102,255,.48); }

/* Secondary outline */
.btn-secondary {
  background: var(--white); color: var(--ink-s);
  border: 1.5px solid var(--s200); padding: .85rem 2rem;
  border-radius: 12px; font-size: .95rem; font-weight: 600;
  box-shadow: var(--sh-sm); transition: all .2s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-secondary:hover { border-color: var(--s300); transform: translateY(-1px); box-shadow: var(--sh-md); }

/* Dark section buttons */
.btn-dark-primary {
  background: var(--accent); color: #fff; border: none;
  padding: .9rem 2.25rem; border-radius: 12px;
  font-size: .95rem; font-weight: 700;
  box-shadow: 0 4px 26px rgba(0,102,255,.5); transition: all .2s;
}
.btn-dark-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(0,102,255,.62); }

.btn-dark-ghost {
  background: rgba(255,255,255,.08); color: #fff;
  border: 1.5px solid rgba(255,255,255,.2);
  padding: .9rem 2.25rem; border-radius: 12px;
  font-size: .95rem; font-weight: 600;
  backdrop-filter: blur(8px); transition: all .2s;
}
.btn-dark-ghost:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.35); }

/* ━━━━━━━━━━━━━━━━━━
   LOGOS BAND
━━━━━━━━━━━━━━━━━━ */
.logos-band {
  padding: 2.5rem 5%; background: var(--s50);
  border-top: 1px solid var(--s100); border-bottom: 1px solid var(--s100);
  position: relative; z-index: 1; overflow: hidden;
}
.logos-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.logos-kicker {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--s300); margin-bottom: 1.5rem;
}
.logos-row {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap;
}
.logo-co {
  font-weight: 800; font-size: clamp(.85rem, 2vw, 1.05rem); letter-spacing: -.02em;
  color: var(--s300); transition: color .2s; cursor: default; user-select: none;
}
.logo-co:hover { color: var(--s500); }

/* ━━━━━━━━━━━━━━━━━━
   CTA DARK SECTION
━━━━━━━━━━━━━━━━━━ */
.cta-section {
  padding: clamp(5rem, 10vw, 8rem) 5%;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-s) 60%, #0d1f3c 100%);
  text-align: center; position: relative; overflow: hidden; z-index: 1;
}
.cta-section::before {
  content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(circle, rgba(0,102,255,.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section .sec-label { color: rgba(255,255,255,.4); }
.cta-section h2 { color: #fff; max-width: 720px; margin: 0 auto; }
.cta-sub { color: rgba(255,255,255,.5); max-width: 500px; margin: 1rem auto 2.5rem; font-size: clamp(.9rem, 2vw, 1.05rem); }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━ */
footer {
  background: var(--dark); color: rgba(255,255,255,.88);
  padding: clamp(3rem, 6vw, 4.5rem) 5% 2.5rem;
  z-index: 1; position: relative;
}
.footer-wrap { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand .nav-logo { color: #fff; pointer-events: none; }
.footer-brand .nav-logo-mark { box-shadow: none; }
.footer-brand p { color: rgba(255,255,255,.38); font-size: .875rem; margin-top: .875rem; line-height: 1.8; max-width: 280px; }
.f-col-title { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 1.2rem; }
.f-links { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.f-links a { color: rgba(255,255,255,.48); text-decoration: none; font-size: .875rem; transition: color .15s; }
.f-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem;
  font-size: .76rem; color: rgba(255,255,255,.28);
}

/* ━━━━━━━━━━━━━━━━━━
   FAQ ACCORDION
━━━━━━━━━━━━━━━━━━ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: var(--white); border: 1px solid var(--s100); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); }
.faq-q {
  width: 100%; padding: 1.2rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; font-weight: 700; font-size: .9rem; color: var(--ink);
  text-align: left; transition: background .15s; gap: 1rem;
}
.faq-q:hover { background: var(--s50); }
.faq-chevron {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--s50); border: 1px solid var(--s100);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, background .2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--accent-l); }
.faq-a {
  max-height: 0; overflow: hidden; padding: 0 1.5rem;
  font-size: .875rem; color: var(--s500); line-height: 1.75;
  transition: max-height .35s ease, padding .25s;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 1.5rem 1.25rem; }

/* ━━━━━━━━━━━━━━━━━━
   RESPONSIVE COMPONENTS
━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .nav-links, .btn-ghost, .btn-nav-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .btn-dark-primary, .btn-dark-ghost { text-align: center; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand p { max-width: none; }
}
