/* =========================================
   CRISINT — Modern Dark Theme v2
   ========================================= */

:root {
  --accent: #b91c1c;
  --accent-hover: #dc2626;
  --accent-glow: rgba(220, 38, 38, 0.25);
  --accent-glow-strong: rgba(220, 38, 38, 0.45);
  --accent-dim: rgba(185, 28, 28, 0.12);

  --bg-dark: #070b12;
  --bg-alt: #0b1120;
  --bg-surface: #101827;
  --bg-surface-hover: #14203a;
  --bg-card: #0f1724;

  --text-primary: #dde6f0;
  --text-secondary: #7d95b0;
  --text-heading: #f1f5f9;
  --text-muted: #3d4f63;

  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-mid: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(185, 28, 28, 0.5);

  --glass-bg: rgba(7, 11, 18, 0.92);
  --glass-border: rgba(255, 255, 255, 0.07);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --glow-red: 0 0 24px rgba(220, 38, 38, 0.35), 0 0 60px rgba(220, 38, 38, 0.12);
  --glow-card: 0 0 30px rgba(185, 28, 28, 0.15);

  --dot-pattern: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  --grid-pattern: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                  linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --radius-lg: 16px;
  --nav-height: 64px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Legacy compat */
  --cover-text-color: #f1f5f9;
  --highlight: #b91c1c;
  --highlight-contrast: #fff;
  --highlight-inverse: #dc2626;
  --highlight-inverse-contrast: #fff;
  --sticky-menu-text-color: #dc2626;
  --section-light-text-color: #dde6f0;
  --section-light-bg-color: #101827;
  --section-dark-text-color: #dde6f0;
  --section-dark-bg-color: #070b12;
  --section-uni-quote: #dc2626;
  --section-uni-code-bg-color: #1e293b;
  --footer-color-background: #030508;
  --footer-color: #4a5a6e;
  --bg-hero-overlay: linear-gradient(
    180deg,
    rgba(7, 11, 18, 0.25) 0%,
    rgba(7, 11, 18, 0.6) 55%,
    rgba(7, 11, 18, 1) 100%
  );
}

/* --- Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 2rem);
  font-size: 62.5%;
  overflow-x: hidden;
  max-height: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.7rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  height: auto;
  max-height: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: "Oswald", sans-serif;
  color: var(--text-heading);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem;
  text-indent: 0;
  letter-spacing: normal;
}

h1 { font-size: clamp(3rem, 5vw, 5rem); }
h2 { font-size: clamp(2.6rem, 4vw, 4rem); }
h3 { font-size: clamp(2.2rem, 3vw, 2.8rem); }
h4 { font-size: 2.2rem; }

p { margin: 1rem 0; }

a {
  color: var(--accent-hover);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #ef4444; }

::selection {
  background: rgba(220, 38, 38, 0.3);
  color: #fff;
}

hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 3rem 0;
  padding: 0;
  height: 0;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 100001;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* --- Container --- */
.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 10000;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}
.navbar.visible {
  transform: translateY(0);
  opacity: 1;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.4rem;
}

.navbar-brand {
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading) !important;
  text-decoration: none;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
}
.navbar-brand::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-hover);
  transition: width var(--transition);
}
.navbar-brand:hover::after { width: 100%; }
.navbar-brand:hover { color: var(--text-heading) !important; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.navbar-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.25rem;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.05);
}
.navbar-links a.active {
  color: var(--accent-hover);
}

/* Hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.navbar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
#site-head {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-dark);
  margin-bottom: 0;
  text-align: center;
  color: #fff;
  padding: 0;
  box-sizing: border-box;
}

#site-head video,
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-hero-overlay);
  z-index: 1;
}

/* subtle scan-line shimmer on hero */
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 820px;
  width: 100%;
  display: block;
}

.hero-logo {
  display: block;
  max-height: 96px;
  width: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 24px rgba(220, 38, 38, 0.5));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 1.6rem;
  background: rgba(185, 28, 28, 0.12);
  border: 1px solid rgba(185, 28, 28, 0.3);
  border-radius: 100px;
  font-size: 1.2rem;
  font-family: "Oswald", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-hover);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.8);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(4.5rem, 9vw, 8rem) !important;
  font-weight: 700;
  color: #fff;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
  text-indent: 0;
  line-height: 1;
}

.hero-subtitle {
  font-family: "Open Sans", sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem) !important;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 3.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: none;
  line-height: 1.5;
}
.hero-subtitle b {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-hover), transparent);
  margin: 0 auto 3rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0;
}

/* Override legacy #site-head a.btn */
#site-head .hero-cta .btn {
  margin-top: 0;
  padding: 1.1rem 2.6rem;
  border-radius: var(--radius-sm);
  font-size: 1.35rem;
  letter-spacing: 2px;
  font-weight: 400;
  overflow: visible;
  position: relative;
  display: inline-flex;
}
#site-head .hero-cta .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 16px rgba(185, 28, 28, 0.4);
}
#site-head .hero-cta .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #ef4444);
  color: #fff;
  box-shadow: var(--glow-red);
  transform: translateY(-2px);
}
#site-head .hero-cta .btn-outline {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
}
#site-head .hero-cta .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 2.6rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: visible;
  margin-top: 0;
  background-color: transparent;
  color: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 16px rgba(185, 28, 28, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #ef4444);
  color: #fff;
  box-shadow: var(--glow-red);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Scroll Arrow */
.scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 2.4rem;
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2.5s ease-in-out infinite;
  transition: color var(--transition);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  margin: 0;
}
.scroll-arrow:hover {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Sections --- */
.section {
  padding: 9rem 0;
  position: relative;
}
section[id] {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.section-dark {
  background-color: var(--bg-dark);
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dot-pattern);
  background-size: 28px 28px;
  opacity: 1;
  pointer-events: none;
}

.section-alt {
  background-color: var(--bg-alt);
}
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grid-pattern);
  background-size: 36px 36px;
  pointer-events: none;
}

/* Radial fade so pattern doesn't dominate edges */
.section-dark::before,
.section-alt::before {
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 50%, transparent 100%);
}

.section-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.8rem, 4vw, 3.8rem) !important;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1.8rem;
  line-height: 1.2;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-hover), rgba(220, 38, 38, 0.2));
  border-radius: 2px;
  transition: width var(--transition-slow);
}
.container.revealed .section-title::after {
  width: 80px;
}

.section-content {
  width: 100%;
}
.section-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.85;
}
.section-content a {
  color: var(--accent-hover);
}
.section-content a:hover {
  color: #ef4444;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2.8rem 2.4rem;
  transition: all var(--transition);
  scroll-margin-top: calc(var(--nav-height) + 2rem);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(185, 28, 28, 0.2));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.service-card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(185, 28, 28, 0.25);
  box-shadow: var(--glow-card), var(--shadow-md);
  transform: translateY(-4px);
}
.service-card:hover::before {
  opacity: 1;
}

.service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(185, 28, 28, 0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 1.6rem;
  position: relative;
  z-index: 1;
}
.service-card-icon .fa {
  color: var(--accent-hover);
  font-size: 1.8rem;
}

.service-card h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  color: var(--text-heading);
  position: relative;
  z-index: 1;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1.75;
  margin: 0.5rem 0 0;
  position: relative;
  z-index: 1;
}

/* --- About Stats --- */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.stat-item:hover {
  border-color: rgba(185, 28, 28, 0.2);
  background: var(--bg-surface);
}
.stat-value {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent-hover);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
}
.stat-label {
  display: block;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-family: "Oswald", sans-serif;
}

/* --- Blockquote --- */
blockquote {
  margin: 3rem 0;
  padding: 2.4rem 3rem;
  border-left: 2px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-sizing: border-box;
  position: relative;
}
blockquote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.06) 0%, transparent 50%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  pointer-events: none;
}
blockquote p {
  font-family: "Open Sans", sans-serif;
  font-style: italic;
  font-size: 1.8rem;
  color: var(--text-primary) !important;
  margin: 0;
  line-height: 1.7;
  position: relative;
}
.quo {
  color: var(--accent) !important;
  font-size: 1.4rem;
  margin: 0 0.8rem;
  font-style: normal;
  opacity: 0.7;
}

/* --- Lists --- */
.section-content ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}
.section-content ul li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.1rem;
  color: var(--text-secondary);
  margin-left: 0;
  line-height: 1.75;
}
.section-content ul li .fa-li {
  position: absolute;
  left: 0;
  top: 0.4em;
  color: var(--accent);
  font-size: 0.75rem;
  width: auto;
  text-align: left;
}

/* --- Contact --- */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.6rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 1.9rem;
  transition: all var(--transition);
  margin-top: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.contact-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-hover), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.contact-link:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-accent);
  box-shadow: var(--glow-card);
  color: var(--text-heading);
  transform: translateY(-3px);
}
.contact-link:hover::before { opacity: 1; }
.contact-link .fa {
  color: var(--accent-hover);
  font-size: 2.2rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--footer-color-background);
  color: var(--footer-color);
  text-align: center;
  padding: 2.5rem 0;
  font-size: 1.3rem;
  line-height: 1.5;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  margin: 0;
}
.site-footer .inner {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.site-footer a:hover { color: var(--accent-hover); }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children reveal */
.reveal .service-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.revealed .service-card { opacity: 1; transform: translateY(0); }
.reveal.revealed .service-card:nth-child(1) { transition-delay: 0.05s; }
.reveal.revealed .service-card:nth-child(2) { transition-delay: 0.1s; }
.reveal.revealed .service-card:nth-child(3) { transition-delay: 0.15s; }
.reveal.revealed .service-card:nth-child(4) { transition-delay: 0.2s; }
.reveal.revealed .service-card:nth-child(5) { transition-delay: 0.25s; }
.reveal.revealed .service-card:nth-child(6) { transition-delay: 0.3s; }

.reveal .stat-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.revealed .stat-item { opacity: 1; transform: translateY(0); }
.reveal.revealed .stat-item:nth-child(1) { transition-delay: 0.1s; }
.reveal.revealed .stat-item:nth-child(2) { transition-delay: 0.2s; }
.reveal.revealed .stat-item:nth-child(3) { transition-delay: 0.3s; }

/* Hide legacy elements */
.fixed-nav,
.post-after {
  display: none !important;
}

/* --- Page Template (404, Mentions Legales) --- */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
}
.page-wrap main { flex: 1; }

.page-template {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  min-height: calc(100vh - 60px);
}
.page-template.page-legal {
  align-items: flex-start;
  padding-top: 4rem;
}

.page-template .page {
  max-width: 820px;
  width: 100%;
}
.page-template .post-header { margin-bottom: 2rem; }
.page-template .post-header a {
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
  max-height: none;
  width: auto;
  margin: 0;
  line-height: 1.5;
}
.page-template .post-header a:hover { color: var(--accent-hover); }
.page-template .post-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(3rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: var(--text-heading);
}
.page-template .post-content {
  color: var(--text-secondary);
  line-height: 1.8;
}
.page-template .post-content h3 {
  margin-top: 3rem;
  font-size: 2.4rem;
  color: var(--text-heading);
}
.page-template .post-content h4 {
  margin-top: 2.5rem;
  font-size: 2rem;
  color: var(--text-heading);
}
.page-template .post-content hr { border-color: var(--border-subtle); }
.page-template .post-content a { color: var(--accent-hover); }
.page-template .post-content a:hover { color: #ef4444; }

/* 404 */
.page-404 { text-align: center; }
.page-404 .post-content { font-size: 1.8rem; }
.page-404 .post-content a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.5rem;
  margin-top: 1rem;
  transition: all var(--transition);
}
.page-404 .post-content a:hover {
  background: linear-gradient(135deg, var(--accent-hover), #ef4444);
  color: #fff;
  box-shadow: var(--glow-red);
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 56px; }

  .navbar-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }
  .navbar-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .navbar-links a {
    padding: 1.2rem 1.6rem;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
  }

  .navbar-toggle { display: flex; }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .section { padding: 6rem 0; }
  .section-title { letter-spacing: 2px; }
  .hero-title { letter-spacing: 4px; }

  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stat-value { font-size: 2.6rem; }
}

@media (max-width: 480px) {
  body { font-size: 1.5rem; }
  .section { padding: 4.5rem 0; }
  .service-card { padding: 2.2rem 1.8rem; }
  .container { width: 92%; }
  .scroll-arrow { bottom: 2.5rem; }
  .about-stats { grid-template-columns: 1fr; max-width: 200px; margin-left: auto; margin-right: auto; }
}
