/* ── Custom Properties ── */
:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-link: #0055cc;
  --color-header-bg: #ffffff;
  --color-card-bg: #ffffff;
  --color-card-border: #ddd;
  --color-footer-bg: #f5f5f5;
  --color-footer-text: #666;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121212;
    --color-text: #e5e5e5;
    --color-text-muted: #aaaaaa;
    --color-link: #6db3f2;
    --color-header-bg: #1a1a1a;
    --color-card-bg: #1e1e1e;
    --color-card-border: #333;
    --color-footer-bg: #1a1a1a;
    --color-footer-text: #999;
  }
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a[href^="mailto:"] {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-link);
}


p {
  font-size: 1.1em;
  margin-bottom: 1.5em;
}

/* ── Header ── */
.header {
  background-color: var(--color-header-bg);
  border-bottom: 1px solid var(--color-card-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 32px;
  font-weight: 600;
}

.nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  display: inline-block;
  transition: color 0.5s, transform 0.5s;
}

.nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background-color: #1281e3;
  transition: width 0.5s;
  margin: 0 auto;
}

.nav a:hover {
  color: #1281e3;
  transform: scale(1.1);
  text-decoration: none;
}

.nav a:hover::after {
  width: 100%;
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 400px;
  background: url("images/hero-background.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding: 0 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.4;
}

/* ── Service Cards ── */
.services {
  flex: 1;
  padding: 48px 24px;
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.card a {
  font-size: 0.9rem;
}

/* ── Highlight Banner ── */
.highlight-banner {
  background-color: #1a2744;
  color: #ffffff;
  padding: 70px 24px;
}

.highlight-banner-inner {
  max-width: 800px;
  margin: 0 auto;
}

.highlight-banner-text {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0;
}

/* ── Page Hero ── */
.page-hero {
  position: relative;
  background: center / cover no-repeat;
  padding: 80px 24px;
  overflow: hidden;
}

.page-hero--side-logos::before,
.page-hero--side-logos::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 150%;
  aspect-ratio: 1;
  background: url('../assets/images/n-logo-large.png') center / contain no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

.page-hero--side-logos::before {
  left: -200px;
}

.page-hero--side-logos::after {
  right: -200px;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.page-hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero-content .page-title {
  color: #ffffff;
}

.page-hero-content .page-subtitle {
  color: #ffffff;
  margin-bottom: 0;
}

.page-hero--light .page-hero-overlay {
  background: rgba(224, 255, 255, 0.6);
}

@media (prefers-color-scheme: dark) {
  .page-hero--light .page-hero-overlay {
    background: rgba(10, 50, 50, 0.7);
  }

  .page-hero--light .page-title,
  .page-hero--light .page-subtitle {
    color: #e5e5e5;
  }
}

.page-hero--light .page-title {
  color: var(--color-text);
}

.page-hero--light .page-subtitle {
  color: var(--color-text);
}

/* ── Secondary Page Content ── */
.page-content {
  flex: 1;
  padding: 48px 24px;
}

.page-content-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-content-inner h3 {
  font-size: 1.4em;
  font-weight: 600;
  margin: 60px 0 30px 0;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 64px;
}

.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.content-block--reverse {
  direction: rtl;
}

.content-block--reverse > * {
  direction: ltr;
}

.content-block-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.content-block-image img {
  width: 100%;
  height: auto;
  display: block;
  background-color: var(--color-card-border);
  min-height: 120px;
}

.content-block-text h2 {
  font-size: 3em;
  font-weight: 400;
}

/* ── Footer ── */
.footer {
  background-color: var(--color-footer-bg);
  border-top: 1px solid var(--color-card-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-footer-text);
}

.footer-inner a {
  color: var(--color-footer-text);
  font-size: 0.9rem;
}

.footer-inner a:hover {
  color: var(--color-text);
}

.footer-icon {
  height: 1.3em;
  vertical-align: middle;
}

@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-evenly;
  }

  .content-block {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
