/* ============================================================
   45 NORD SEC — Styles
   Palette: Nordic Tech / Cybersecurity
   ============================================================ */

:root {
  --bg: #0b0f14;
  --bg-elev: #11161d;
  --bg-soft: #161c25;
  --border: #1f2730;
  --border-hi: #2a3441;
  --text: #e6edf3;
  --text-dim: #9aa6b2;
  --text-muted: #6c7785;
  --accent: #4a9eff;
  --accent-soft: #2563eb;
  --accent-glow: rgba(74, 158, 255, 0.15);
  --red: #ef4444;
  --green: #10b981;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --container: 1280px;
  --radius: 8px;
  --radius-lg: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--accent);
}

p { color: var(--text-dim); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-dim);
  max-width: 62ch;
  margin-top: 1.5rem;
}

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 0.5rem;
  box-shadow: 0 0 8px var(--green);
}
.lang a { color: var(--text-muted); }
.lang a.active { color: var(--text); }
.hide-sm { display: inline; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 20, 0.85);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.brand:hover .brand-logo { opacity: 0.85; }
@media (max-width: 640px) {
  .brand-logo { height: 38px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn .btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-solid {
  background: linear-gradient(180deg, #5badff 0%, #2a7fdb 100%);
  border-color: #4a9eff;
  color: white !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px -8px rgba(74, 158, 255, 0.5);
}
.btn-solid:hover {
  background: linear-gradient(180deg, #6cb6ff 0%, #3a8be8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 32px -8px rgba(74, 158, 255, 0.6);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-solid:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.2),
    0 4px 12px -4px rgba(74, 158, 255, 0.4);
}

.btn-ghost {
  border-color: var(--border-hi);
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 0.5rem;
  color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.25rem;
    align-items: flex-start;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 5rem 0 6rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-glow), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.hero-panel-title {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.hero-panel-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
}
.hero-panel-row:last-child { border-bottom: none; }
.hero-panel-row span:first-child { color: var(--text-muted); }
.hero-panel-row span:last-child { color: var(--text); }

/* ============================================================
   Sections
   ============================================================ */
section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p { margin-top: 1rem; font-size: 1.0625rem; }

/* ============================================================
   Services Grid
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.2s;
}
.card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}
.card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.card p { font-size: 0.9375rem; }

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

/* ============================================================
   Microsoft 365 section
   ============================================================ */
.m365 {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
}
.m365 .grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .m365 .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .m365 .grid { grid-template-columns: 1fr; } }

.m365 .card {
  background: var(--bg-soft);
  padding: 1.5rem;
}
.m365 .card h3 { font-size: 1.0625rem; }
.m365 .card p { font-size: 0.875rem; }

/* ============================================================
   Tools section
   ============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 700px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--accent-glow);
  transform: translateY(-3px);
  text-decoration: none;
}
.tool-card:hover .tool-thumb { transform: scale(1.02); }
.tool-thumb {
  width: 100%;
  aspect-ratio: 5 / 3;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  display: block;
  transition: transform 0.25s ease;
}
.tool-thumb img,
.tool-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tool-card h3 { margin-bottom: 0.75rem; }
.tool-card p { font-size: 0.9375rem; }
.tool-card .tool-cta {
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   Partners section
   ============================================================ */
.partners {
  background: var(--bg);
  padding: 5rem 0;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1100px) { .partners-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }

.partner-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 110px;
  transition: all 0.2s;
}
.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}
.partner-logo {
  max-width: 100%;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-cert {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.25rem;
}

/* ============================================================
   Approach / About
   ============================================================ */
.approach-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr; } }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-item summary {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 1rem; font-size: 0.9375rem; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}
.contact-block { font-size: 0.9375rem; }
.contact-block .k {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.contact-block strong { color: var(--text); }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--bg-elev);
  padding: 4rem 0 2rem;
  font-size: 0.875rem;
}
.foot {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot { grid-template-columns: 1fr; } }

footer h5 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
footer ul { list-style: none; }
footer li { padding: 0.375rem 0; color: var(--text-dim); }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }

.foot-meta {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (max-width: 600px) {
  .foot-meta { flex-direction: column; gap: 0.5rem; }
}
