/* ============================================================
   MIXCOM Design System — brand.css
   Luxury Corporate Blue · Refined Minimalist
   ============================================================ */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --ink:          #09182a;
  --ink-soft:     #1c2f45;
  --ink-muted:    #4a6078;
  --sky:          #2563eb;
  --sky-light:    #3b82f6;
  --sky-deep:     #1d4ed8;
  --ice:          #f0f5fc;
  --ice-mid:      #dbe8f8;
  --white:        #ffffff;
  --border:       rgba(37,99,235,.14);
  --border-soft:  rgba(37,99,235,.07);
  --gold:         #f59e0b;

  --radius:       16px;
  --radius-sm:    10px;
  --radius-xs:    6px;
  --radius-pill:  999px;

  --shadow-xs:    0 1px 3px rgba(9,24,42,.06);
  --shadow-sm:    0 4px 12px rgba(9,24,42,.08);
  --shadow-md:    0 8px 28px rgba(9,24,42,.12);
  --shadow-lg:    0 20px 56px rgba(9,24,42,.18);
  --shadow-sky:   0 12px 40px rgba(37,99,235,.28);

  --nav-h:        72px;
  --max-w:        1180px;
  --pad:          clamp(1rem, 5vw, 2rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ─── Layout ─────────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ─── Noise Texture Overlay ──────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ─── Typography ─────────────────────────────────────────── */
.display {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.18; }
h1 { font-size: clamp(2.4rem,5vw,4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem,3.2vw,2.6rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem,2vw,1.3rem); letter-spacing: -0.01em; }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--sky);
  border-radius: 1px;
}

.lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: var(--ink-muted);
  max-width: 56ch;
  line-height: 1.75;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 var(--border), var(--shadow-xs);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-logo img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-xs);
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  width: 0; height: 2px;
  background: var(--sky);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.25s var(--ease-out-expo);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--sky);
  background: rgba(37,99,235,.06);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 60%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--radius-xs);
  transition: background 0.2s;
}
.nav-toggle:hover { background: var(--ice); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-spring), opacity 0.2s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-xs);
  border: none;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,0.1); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--sky);
  color: var(--white);
  box-shadow: var(--shadow-sky);
}
.btn-primary:hover { background: var(--sky-deep); box-shadow: 0 16px 48px rgba(37,99,235,.38); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); background: rgba(37,99,235,.05); }

.btn-white {
  background: var(--white);
  color: var(--sky-deep);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { box-shadow: var(--shadow-lg); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }

.btn-lg {
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
}

/* ─── Tag/Badge ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(37,99,235,.1);
  color: var(--sky-deep);
}
.badge-green { background: rgba(16,185,129,.1); color: #065f46; }
.badge-gold  { background: rgba(245,158,11,.12); color: #92400e; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}
.card:hover .card-img { transform: scale(1.04); }

.card-body { padding: 1.4rem; }
.card-body h3 { margin-bottom: 0.4rem; color: var(--ink); }
.card-body p { color: var(--ink-muted); font-size: 0.93rem; line-height: 1.6; margin-bottom: 0.8rem; }

/* ─── Sections ───────────────────────────────────────────── */
.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { margin-bottom: 0.75rem; }

/* ─── Grids ──────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  border: none;
  margin-block: 0;
}

/* ─── Page Hero ──────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 80% 50%, rgba(37,99,235,.08), transparent),
    linear-gradient(180deg, #f3f7fe 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { margin-bottom: 1rem; max-width: 18ch; }
.page-hero .lead { max-width: 58ch; }

/* ─── Highlight Box ──────────────────────────────────────── */
.highlight-box {
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(37,99,235,.02));
  border: 1px solid rgba(37,99,235,.18);
  border-left: 4px solid var(--sky);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}

/* ─── Stats ──────────────────────────────────────────────── */
.stat-block {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--sky);
  display: block;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding-block: 1.25rem;
}
.faq-item:first-child { border-top: 1px solid var(--border-soft); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  font-size: 1.02rem;
  color: var(--ink);
  transition: color 0.2s;
  user-select: none;
}
.faq-q:hover { color: var(--sky); }
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--ink-muted);
  transition: transform 0.3s var(--ease-spring), background 0.2s, border-color 0.2s, color 0.2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--sky);
  border-color: var(--sky);
  color: var(--white);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo), padding 0.3s ease;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 0.75rem;
}

/* ─── Contact ────────────────────────────────────────────── */
.contact-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink);
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
}
.contact-row:last-of-type { border-bottom: none; }
.contact-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(37,99,235,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--sky);
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.contact-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.1rem; }
.contact-value { color: var(--ink-soft); font-weight: 500; }
.contact-value a { color: var(--sky); transition: opacity 0.2s; }
.contact-value a:hover { opacity: 0.75; }

/* ─── Testimonial ────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testimonial-quote {
  font-size: 1.5rem;
  color: var(--sky);
  opacity: 0.4;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-text {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.testimonial-role { font-size: 0.78rem; color: var(--ink-muted); }
.stars { color: var(--gold); font-size: 0.75rem; letter-spacing: 1px; }

/* ─── Service Card ───────────────────────────────────────── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sky-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-expo);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.2); }

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(37,99,235,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--sky);
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--ink); }
.service-card p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.65; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding-top: 5rem;
  padding-bottom: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 2rem;
}
.footer-brand p { font-size: 0.9rem; margin-top: 0.75rem; max-width: 28ch; line-height: 1.7; }
.footer-logo { filter: brightness(10); height: 32px; }

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,.35);
}

/* ─── Floating Actions ───────────────────────────────────── */
.floating-actions {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 800;
}
.float-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, opacity 0.25s;
  text-decoration: none;
}
.float-btn:hover { transform: translateY(-3px) scale(1.08); }

.float-wpp { background: #25D366; box-shadow: 0 8px 24px rgba(37,211,102,.4); }
.float-wpp:hover { box-shadow: 0 12px 32px rgba(37,211,102,.55); }

.float-top {
  background: var(--sky);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.float-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.float-top:hover { box-shadow: 0 10px 28px rgba(37,99,235,.5); }

/* ─── Reveal Animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Cursor Glow (subtle) ───────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.1s, top 0.1s;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    padding: 1rem var(--pad) 1.5rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
    gap: 0.1rem;
    animation: slideDown 0.3s var(--ease-out-expo);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-cta.open { display: flex; padding: 0 var(--pad) 1rem; gap: 0.5rem; }
}
@media (max-width: 576px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
