/*
Theme Name: NordicFrame Theme
Author: M365 Copilot
Description: Modern and stylish theme matching NordicFrame's logo colors.
Version: 1.0
*/

:root {
  --bg: #020914;
  --surface: rgba(8, 27, 59, 0.72);
  --surface-strong: rgba(11, 33, 69, 0.92);
  --panel: #06162f;
  --panel-soft: #0b2347;
  --text: #edf4ff;
  --muted: #9db7de;
  --line: rgba(132, 177, 255, 0.18);
  --accent: #16a0ff;
  --accent-strong: #0779c7;
  --highlight: #7cc8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 16% 14%, rgba(35, 137, 255, 0.24), transparent 20%),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #030b18 0%, #041127 44%, #020813 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 20px auto;
  border: 1px solid rgba(139, 184, 255, 0.12);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(4, 16, 34, 0.9), rgba(2, 10, 23, 0.95));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.site-header,
.section,
.site-footer {
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  background: linear-gradient(180deg, rgba(6, 21, 45, 0.92), rgba(6, 21, 45, 0.7));
  border-bottom: 1px solid rgba(124, 200, 255, 0.08);
}

.brand-block {
  display: grid;
  gap: 4px;
}

.eyebrow,
.section-tag,
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
}

.eyebrow,
.section-tag {
  color: var(--muted);
}

.brand-mark {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-mark img {
  display: block;
  width: clamp(180px, 24vw, 260px);
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  opacity: 0.96;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(44px, 7vw, 88px) clamp(20px, 4vw, 48px);
  background:
    radial-gradient(circle at right center, rgba(22, 160, 255, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(3, 12, 28, 0.98), rgba(7, 26, 54, 0.94)),
    linear-gradient(90deg, rgba(22, 160, 255, 0.14), transparent);
  color: #f4f8ff;
  position: relative;
  isolation: isolate;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(22, 160, 255, 0.22), transparent 72%);
  z-index: -1;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 12ch;
  margin-top: 10px;
  font-size: clamp(2.8rem, 8vw, 6rem);
}

.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(237, 244, 255, 0.78);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.point-card,
.stat-card,
.hero-note,
.service-card,
.reason-card,
.testimonial-card,
.contact-panel,
.feature-item {
  border-radius: 22px;
}

.point-card {
  min-height: 150px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(12, 39, 79, 0.72), rgba(8, 24, 50, 0.8));
  border: 1px solid rgba(124, 200, 255, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.point-card p {
  margin: 0;
  line-height: 1.5;
}

.point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 160, 255, 0.18);
  color: #9edcff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #f3fbff;
  box-shadow: 0 12px 28px rgba(22, 160, 255, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-strong);
}

.btn-secondary {
  border: 1px solid rgba(124, 200, 255, 0.24);
  color: #f4f8ff;
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.hero-logo-card,
.stat-card,
.hero-note {
  padding: 24px;
  background: linear-gradient(180deg, rgba(241, 247, 255, 0.96), rgba(219, 232, 247, 0.92));
  color: #0b1c35;
}

.hero-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.hero-logo-card img {
  display: block;
  width: min(100%, 320px);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.22));
  opacity: 0.97;
}

.stat-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #081f3c;
}

.stat-label,
.hero-note p,
.section-note,
.coverage-copy,
.contact-copy {
  color: var(--muted);
  line-height: 1.7;
}

.stat-card .stat-label,
.hero-note p {
  color: #27496f;
}

.hero-note p,
.contact-copy,
.coverage-copy,
.section-note {
  margin: 0;
}

.section {
  padding-top: clamp(52px, 8vw, 88px);
  padding-bottom: clamp(52px, 8vw, 88px);
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: #f0f6ff;
}

.intro-grid,
.services-grid,
.reasons-grid,
.testimonials-grid {
  display: grid;
  gap: 20px;
}

.intro-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}

.intro-copy {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(237, 244, 255, 0.86);
}

.intro-copy p {
  margin: 0 0 18px;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(9, 31, 64, 0.72), rgba(8, 24, 50, 0.82));
  border: 1px solid rgba(124, 200, 255, 0.12);
  font-weight: 600;
  color: #edf4ff;
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  padding: 26px;
  background: linear-gradient(180deg, rgba(10, 34, 71, 0.82), rgba(8, 24, 50, 0.92));
  border: 1px solid rgba(124, 200, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.service-card h3,
.testimonial-card cite {
  font-family: "Space Grotesk", sans-serif;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.32rem;
  color: #f1f7ff;
}

.service-card p,
.testimonial-card p,
.contact-details p {
  margin: 0;
  line-height: 1.7;
  color: rgba(219, 233, 249, 0.78);
}

.section-note {
  max-width: 70ch;
  margin-top: 24px;
  font-weight: 600;
}

.reasons-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reason-card {
  min-height: 170px;
  padding: 22px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(8, 39, 82, 0.9), rgba(5, 19, 41, 0.98)),
    linear-gradient(135deg, rgba(22, 160, 255, 0.12), transparent);
  border: 1px solid rgba(124, 200, 255, 0.12);
  color: #eef7ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  line-height: 1.4;
}

.coverage-section {
  background: linear-gradient(180deg, rgba(6, 21, 45, 0.82), rgba(3, 14, 30, 0.92));
}

.coverage-copy {
  max-width: 70ch;
  font-size: 1.08rem;
}

.testimonials-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-card {
  padding: 28px;
  margin: 0;
  background: linear-gradient(180deg, rgba(9, 31, 64, 0.72), rgba(7, 23, 47, 0.88));
  border: 1px solid rgba(124, 200, 255, 0.12);
}

.testimonial-card p {
  font-size: 1.05rem;
}

.testimonial-card cite {
  display: block;
  margin-top: 18px;
  color: #7cc8ff;
  font-style: normal;
  font-weight: 700;
}

.contact-panel {
  padding: clamp(28px, 5vw, 44px);
  background:
    radial-gradient(circle at 86% 14%, rgba(124, 200, 255, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(3, 12, 28, 0.98), rgba(7, 26, 54, 0.94)),
    linear-gradient(90deg, rgba(22, 160, 255, 0.18), transparent);
  color: #f4f8ff;
}

.contact-panel .section-heading h2,
.contact-panel .section-tag {
  color: #f4f8ff;
}

.contact-panel .contact-copy,
.contact-panel .contact-details p {
  color: rgba(237, 244, 255, 0.8);
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.contact-panel .btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  background: rgba(2, 10, 23, 0.98);
  color: rgba(206, 225, 248, 0.72);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1100px) {
  .hero-section,
  .intro-grid,
  .services-grid,
  .testimonials-grid,
  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .section-heading h2 {
    max-width: unset;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .reason-card {
    min-height: 120px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 16px, 100%);
    margin: 8px auto;
    border-radius: 22px;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 12px 16px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .btn {
    width: 100%;
  }
}
