/* ── AlignIQ Advisory — Shared Styles ── */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --navy-900: #071B34;
  --navy-700: #0D2240;
  --navy-600: #1A2B3C;
  --teal:     #18B7DB;
  --teal-dim: #0f8fa8;
  --gray-100: #F2F4F7;
  --gray-400: #94A3B8;
  --white:    #FFFFFF;
  --border:   rgba(24,183,219,0.15);
  --radius:   6px;
  --max-w:    1152px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--navy-900);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(24,183,219,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(24,183,219,0.45); }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Satoshi', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--gray-400); line-height: 1.75; }
a  { color: var(--teal); text-decoration: none; }
a:hover { color: var(--white); }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--navy-700); }
.section-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,27,52,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; position: relative;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 36px; }
.nav-logo-text {
  font-family: 'Satoshi', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.02em;
}
.nav-logo-text span { color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--gray-400);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lang-toggle {
  display: flex; border: 1px solid rgba(24,183,219,0.25); border-radius: 4px; overflow: hidden;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}
.lang-btn {
  background: none; border: none; padding: 4px 10px;
  font-size: 0.75rem; font-weight: 600; color: var(--gray-400);
  cursor: pointer; transition: all 0.2s; font-family: 'IBM Plex Sans', sans-serif;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { background: rgba(24,183,219,0.2); color: var(--teal); }
.nav-cta {
  background: rgba(24,183,219,0.15); color: var(--white) !important;
  padding: 8px 20px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; transition: all 0.25s;
  width: 210px; text-align: center; white-space: nowrap;
  border: 1px solid rgba(24,183,219,0.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset, 0 4px 16px rgba(0,0,0,0.2);
}
.nav-cta:hover { background: rgba(24,183,219,0.28) !important; color: var(--white) !important; border-color: rgba(24,183,219,0.7); }

/* ── Hamburger (mobile) ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--navy-700); border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu button {
  padding: 12px 0; font-size: 1rem; color: var(--gray-400);
  border: none; background: none; text-align: left; cursor: pointer;
  border-bottom: 1px solid var(--border); font-family: 'IBM Plex Sans', sans-serif;
  transition: color 0.2s;
}
.mobile-menu a:last-child, .mobile-menu button:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--radius);
  font-family: 'IBM Plex Sans', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-primary {
  background: rgba(24,183,219,0.15);
  color: var(--white);
  border: 1px solid rgba(24,183,219,0.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 4px 16px rgba(24,183,219,0.1);
}
.btn-primary:hover {
  background: rgba(24,183,219,0.28);
  border-color: rgba(24,183,219,0.7);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 4px 20px rgba(24,183,219,0.2);
}
.btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(24,183,219,0.45); color: var(--teal); }

/* ── Cards ── */
.card {
  position: relative;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 32px;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.12) inset,
    0 -1px 0 0 rgba(0,0,0,0.3) inset,
    0 8px 32px rgba(0,0,0,0.35),
    0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.35) 30%,
    rgba(24,183,219,0.4) 50%,
    rgba(255,255,255,0.35) 70%,
    transparent 100%);
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 60%;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.25) 0%,
    transparent 100%);
}
.card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(24,183,219,0.35);
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.2) inset,
    0 -1px 0 0 rgba(0,0,0,0.3) inset,
    0 16px 48px rgba(0,0,0,0.4),
    0 4px 16px rgba(24,183,219,0.12),
    0 0 0 1px rgba(24,183,219,0.15);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(24,183,219,0.1); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--teal); fill: none; stroke-width: 1.5; }
.card h3 { color: var(--white); margin-bottom: 10px; }
.card p { font-size: 0.9rem; }

/* ── Grid ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 64px 0; }

/* ── Teal accent text ── */
.accent { color: var(--teal); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-inner .copy { font-size: 0.8rem; color: var(--gray-400); }
.footer-inner .copy a { color: var(--gray-400); }
.footer-inner .copy a:hover { color: var(--teal); }
.footer-right { display: flex; align-items: center; gap: 16px; }
.footer-right a { font-size: 0.8rem; color: var(--gray-400); transition: color 0.2s; }
.footer-right a:hover { color: var(--teal); }
.footer-sep { color: var(--border); }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 64px; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(24,183,219,0.08) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { margin-bottom: 24px; }
.hero p { font-size: 1.1rem; margin-bottom: 36px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Page hero (sub-pages) ── */
.page-hero {
  padding: 140px 0 80px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(24,183,219,0.07) 0%, transparent 70%);
  text-align: center;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── Centered small icon cards ── */
.card-center { text-align: center; }
.card-center .card-icon { margin-left: auto; margin-right: auto; }
.card-center p { text-align: center !important; hyphens: none; -webkit-hyphens: none; }
.card-center h3 { text-align: center !important; }

/* ── Justified text on desktop only ── */
@media (min-width: 769px) {
  .section p, .page-hero p, .hero p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  /* hero subtitle: justify but no hyphenation (text is short) */
  .hero p { hyphens: none; -webkit-hyphens: none; }
  /* keep short card text left-aligned */
  .card p, .card h3, li span { text-align: left; hyphens: none; -webkit-hyphens: none; }
  /* centered sections: keep paragraphs centered */
  section[style*="text-align:center"] p { text-align: center !important; hyphens: none; -webkit-hyphens: none; }
  .page-hero p { text-align: center !important; hyphens: none; -webkit-hyphens: none; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 120px 0 80px; }
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }

  /* Force all inline-style grids to single column */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Mobile lang toggle inside mobile-menu */
  .mobile-menu .lang-toggle {
    display: flex;
    margin: 4px 0 8px;
    align-self: flex-start;
    border-bottom: none !important;
  }
  .mobile-menu .lang-toggle .lang-btn {
    padding: 6px 16px;
    font-size: 0.82rem;
    border-bottom: none !important;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }
  .card { padding: 24px; }
}
