/* ===================================================================
   BASE STYLESHEET — Reset + Typography + Layout
   =================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-en);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--brand-text);
  background: var(--brand-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--brand-primary-dark); }

ul, ol { list-style: none; }

button { cursor: pointer; font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-gray-900);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===================================================================
   LAYOUT
   =================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===================================================================
   SECTIONS
   =================================================================== */
.section {
  padding: 5rem 0;
}

.section--sm { padding: 3.5rem 0; }

.section--alt {
  background: var(--brand-surface-soft);
}

/* Section header block */
.section__header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section__header--left { text-align: left; }

/* ===================================================================
   PAGE HERO (inner pages)
   =================================================================== */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0070aa 100%);
  padding: calc(var(--header-height) + 38px + 2.5rem) 0 2.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.page-hero__inner { position: relative; z-index: 1; }

.page-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.page-hero__breadcrumb a:hover { color: #fff; }
.page-hero__breadcrumb .sep { color: rgba(255,255,255,0.25); }

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-transform: none;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.page-hero__sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .page-hero { padding: calc(var(--header-height) + 2rem) 0 2rem; }
}

/* ===================================================================
   BREADCRUMB
   =================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--brand-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--brand-primary); }
.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb__sep { color: var(--brand-gray-400); }

/* ===================================================================
   PAGE CONTENT
   =================================================================== */
.page-content { padding: 4rem 0 5rem; }

/* ===================================================================
   PROSE
   =================================================================== */
.prose { line-height: 1.75; color: var(--brand-text); }
.prose h2, .prose h3, .prose h4 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose p  { margin-bottom: 1rem; }

.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li { margin-bottom: 0.5rem; line-height: 1.65; }

.prose a { color: var(--brand-primary); text-decoration: underline; }
.prose a:hover { color: var(--brand-primary-dark); }

.prose img { border-radius: 10px; box-shadow: var(--brand-shadow-md); margin: 1.5rem 0; }

/* ===================================================================
   UTILITIES
   =================================================================== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
}

.text-center { text-align: center; }
.text-muted  { color: var(--brand-text-muted); }
