/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --color-primary:      #B80135;
  --color-primary-dark: #96012b;
  --color-accent:       #b6b84c;
  --color-accent-light: #ced067;
  --color-bg:           #ffffff;
  --color-bg-alt:       #f2efe8;
  --color-text:         #3A4145;
  --color-text-muted:   #6b7280;
  --color-border:       #e0ddd6;
  --color-footer-bg:    #22343A;
  --color-footer-text:  #BBC7CC;

  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container-max:     860px;
  --container-wide:   1100px;
  --container-pad:    1.5rem;
  --section-pad:      5rem 0;
  --nav-height:       64px;
  --radius:           0.5rem;
  --radius-lg:        0.75rem;
  --shadow:           0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:        0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg:        0 8px 36px rgba(0,0,0,0.16);
  --transition:       0.2s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
li { margin-bottom: 0.3em; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem,   5vw,  3rem);   margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.5rem, 3vw,  2rem);   margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 2vw,  1.35rem); margin-bottom: 0.5rem;  }
h4 { font-size: 1.05rem;                       margin-bottom: 0.4rem;  }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em     { font-style: italic; }

blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 1.5rem 0;
}

/* Rich-text content container */
.prose h2 { color: var(--color-primary); margin-top: 2rem; }
.prose h3 { color: var(--color-text);    margin-top: 1.5rem; }
.prose h4 { margin-top: 1.25rem; }
.prose ul,
.prose ol  { margin-bottom: 1rem; }
.prose img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container--wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.text-center { text-align: center; }

/* ============================================================
   Navigation
   ============================================================ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

/* Transparent – sitting over hero */
#main-nav.nav--transparent {
  background: transparent;
}

/* Solid – after scrolling past hero */
#main-nav.nav--solid {
  background: white;
  box-shadow: 0 1px 10px rgba(0,0,0,0.08);
}

.nav__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand / logo */
.nav__brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  text-decoration: none;
  line-height: 1.25;
  transition: color var(--transition);
}
.nav__brand small {
  font-weight: 400;
  font-size: 0.73em;
  opacity: 0.85;
}
#main-nav.nav--solid .nav__brand {
  color: var(--color-primary);
}
#main-nav.nav--solid .nav__brand small {
  color: var(--color-text-muted);
  opacity: 1;
}

/* Desktop links */
.nav__links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  display: block;
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover {
  color: white;
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}
/* Blog link – slightly highlighted to stand out */
.nav__links .nav__blog {
  border: 1px solid rgba(255,255,255,0.35);
}
.nav__links .nav__blog:hover {
  background: rgba(255,255,255,0.2);
}

/* Solid-state overrides */
#main-nav.nav--solid .nav__links a {
  color: var(--color-text);
}
#main-nav.nav--solid .nav__links a:hover {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}
#main-nav.nav--solid .nav__links .nav__blog {
  border-color: var(--color-border);
  color: var(--color-primary);
}

/* Hamburger button (mobile only) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: background var(--transition);
}
#main-nav.nav--solid .nav__hamburger span {
  background: var(--color-text);
}

/* Mobile slide-down menu */
.nav__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: white;
  padding: 0.75rem 1.5rem 1.25rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  border-top: 1px solid var(--color-border);
}
.nav__mobile ul {
  list-style: none;
  margin: 0; padding: 0;
}
.nav__mobile a {
  display: block;
  padding: 0.7rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.nav__mobile li:last-child a { border-bottom: none; }
.nav__mobile a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

@media (max-width: 720px) {
  .nav__links    { display: none; }
  .nav__hamburger { display: flex; }
}

/* ============================================================
   Hero / Banner
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Gradient overlay – subtle red tint fading to deep dark */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(184, 1, 53, 0.10) 0%,
    rgba(34,  52, 58, 0.28) 100%
  );
}

.hero__text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: calc(var(--nav-height) + 3rem) var(--container-pad) 0;
  max-width: 780px;
  width: 100%;
}

.hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 var(--container-pad) 7rem;
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Scroll indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: nudge 2.5s ease-in-out infinite;
}
.hero__scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.4);
}
@keyframes nudge {
  0%, 100% { transform: translateX(-50%) translateY(0);   }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: white;
}
.btn--white {
  background: white;
  border-color: white;
  color: var(--color-primary);
}
.btn--white:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
  color: var(--color-primary-dark);
}
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: white;
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  color: white;
}

/* ============================================================
   Sections – narrative scroll
   ============================================================ */
.sections-wrap > .section:nth-child(odd)  { background: var(--color-bg);     }
.sections-wrap > .section:nth-child(even) { background: var(--color-bg-alt); }

.section {
  padding: var(--section-pad);
}

/* Contact override – always dark regardless of nth-child */
.section.section--contact,
.section.section--contact:nth-child(odd),
.section.section--contact:nth-child(even) {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section__title {
  display: inline-block;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--color-accent);
}

.section--contact .section__title {
  color: white;
  border-bottom-color: var(--color-accent);
}
.section--contact .section__body a  { color: var(--color-accent-light); }
.section--contact .section__body a:hover { color: white; }
.section--contact .section__body p,
.section--contact .section__body li { color: var(--color-footer-text); }

.section__body {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Float portrait image right on larger screens */
.section__body img {
  float: right;
  margin: 0 0 1.5rem 2.5rem;
  max-width: 260px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
  .section__body img {
    float: none;
    max-width: 100%;
    margin: 0 0 1.5rem;
  }
}

/* ============================================================
   Policy Topics – grouped homepage view
   ============================================================ */
.section--policies { background: var(--color-bg); }
.section--policies.section:nth-child(even) { background: var(--color-bg); }

.policy-topics {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.policy-topic {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
}

.policy-topic__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.policy-topic__intro {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.policy-topic__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.policy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 1rem;
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  text-align: left;
  line-height: 1.3;
}

.policy-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  text-decoration: none;
}

/* ============================================================
   Policy Cards – /policies/ list page
   ============================================================ */

.policies-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.policy-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: left;
  width: 100%;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.policy-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

.policy-card__icon     { font-size: 1.75rem; line-height: 1; margin-bottom: 0.25rem; }
.policy-card__category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}
.policy-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.policy-card__summary {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  flex-grow: 1;
  line-height: 1.55;
}
.policy-card__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 0.25rem;
}

/* ============================================================
   Modal
   ============================================================ */
[x-cloak] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(34, 52, 58, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal__panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 660px;
  width: 100%;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: var(--color-bg-alt);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.modal__close:hover { background: var(--color-border); }

.modal__category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.modal__panel h2 {
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
  font-size: 1.6rem;
  line-height: 1.2;
}

.modal__body {
  font-size: 1rem;
  line-height: 1.8;
}
.modal__body h3 { color: var(--color-primary); margin-top: 1.5rem; margin-bottom: 0.4rem; }
.modal__body h4 { margin-top: 1.25rem; margin-bottom: 0.3rem; }
.modal__body ul,
.modal__body ol { margin-bottom: 1rem; }

.modal__footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 600px) {
  .modal__panel {
    padding: 1.5rem;
    max-height: 92vh;
  }
}

/* ============================================================
   Blog preview strip (on homepage)
   ============================================================ */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}
.blog-card__date {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  flex-grow: 1;
}
.blog-card__excerpt {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}
.blog-card__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 0.25rem;
}

/* ============================================================
   Blog List page  (/blog/)
   ============================================================ */
.page-header {
  padding: calc(var(--nav-height) + 3.5rem) 0 2.5rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.page-header h1 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.page-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.blog-list {
  padding: 3rem 0 5rem;
}
.blog-list__posts {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.blog-post-card {
  display: block;
  padding: 2rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.blog-post-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
  text-decoration: none;
}
.blog-post-card__date {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.blog-post-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.blog-post-card:hover .blog-post-card__title {
  color: var(--color-primary);
}
.blog-post-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   Blog Single  (/blog/post-slug/)
   ============================================================ */
.post-layout {
  padding: calc(var(--nav-height) + 3.5rem) 0 5rem;
}
.post-layout .container { max-width: 720px; }

.post__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.post__back:hover {
  color: var(--color-primary);
  text-decoration: none;
}
.post__date {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}
.post__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.post__description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}
.post__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}
.post__body {
  font-size: 1.05rem;
  line-height: 1.85;
}
.post__body h2 { color: var(--color-primary); margin-top: 2.5rem; }
.post__body h3 { margin-top: 2rem; }
.post__body p  { margin-bottom: 1.15rem; }
.post__body ul,
.post__body ol  { margin-bottom: 1.15rem; }
.post__body blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 1.5rem 0;
}
.post__body img {
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.post__nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.post__nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 48%;
  text-decoration: none;
}
.post__nav-link:last-child { text-align: right; }
.post__nav-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.post__nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}
.post__nav-link:hover .post__nav-title { text-decoration: underline; }

/* ============================================================
   Policies page  (/policies/)
   ============================================================ */
.policies-page { padding-bottom: 5rem; }

.policy-category-group { margin-bottom: 3.5rem; }
.policy-category-group__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

/* ============================================================
   Policy single page  (/policies/slug/)
   ============================================================ */
.policy-single {
  padding: calc(var(--nav-height) + 3.5rem) 0 5rem;
}
.policy-single .container { max-width: 720px; }
.policy-single__category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  margin-bottom: 0.2rem;
}
.footer__copy {
  font-size: 0.82rem;
  color: var(--color-footer-text);
}
.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover { color: white; }

/* ============================================================
   404 page
   ============================================================ */
.not-found {
  padding: calc(var(--nav-height) + 6rem) 0 5rem;
  text-align: center;
}
.not-found__code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.not-found h2   { margin-bottom: 0.75rem; }
.not-found p    { color: var(--color-text-muted); margin-bottom: 2rem; }

/* ============================================================
   Section CTA row
   ============================================================ */
.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================================
   CV page  (/cv/)
   ============================================================ */
.cv-layout {
  padding: calc(var(--nav-height) + 3.5rem) 0 5rem;
}
.cv-layout .container { max-width: 760px; }

.cv__header h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.cv__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Section headings */
.cv__body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-top: 2.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-border);
}

/* Entry block: h3 = role title */
.cv__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 1.75rem;
  margin-bottom: 0.1rem;
}

/* Date line: bold immediately after h3 */
.cv__body h3 + p > strong:only-child,
.cv__body h3 + p strong:first-child {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.cv__body p  { margin-bottom: 1rem; line-height: 1.75; }
.cv__body ul,
.cv__body ol { margin-bottom: 1rem; padding-left: 1.4rem; }
.cv__body li { margin-bottom: 0.3em; }

/* Horizontal rules as section separators */
.cv__body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}
