/* SolarMex — landing profesional */

:root {
  --navy: #0b1f3a;
  --navy-deep: #061428;
  --navy-mid: #14325c;
  --paper: #ffffff;
  --paper-soft: #f4f6f9;
  --ink: #1a2b42;
  --ink-muted: #5a6b7d;
  --sun: #f5c518;
  --sun-dark: #d4a812;
  --green: #2d8a4e;
  --red: #c0392b;
  --shadow: 0 4px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 31, 58, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1120px;
  --font: 'Outfit', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

main {
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-mid);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--sun-dark); }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.wrap--narrow { max-width: 720px; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun-dark);
  margin: 0 0 0.75rem;
}

.eyebrow--light { color: var(--sun); }

.lede {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

.lede--light { color: rgba(255, 255, 255, 0.85); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.25rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--sun);
  color: var(--navy);
  border-color: var(--sun);
}

.btn--primary:hover {
  background: var(--sun-dark);
  border-color: var(--sun-dark);
  color: var(--navy);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(11, 31, 58, 0.06);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled .nav__menu a { color: var(--ink); }
.site-header.is-scrolled .nav__toggle span { background: var(--navy); }

/* Blog / posts: menú siempre legible (no depende del JS) */
.site-header[data-nav-solid] {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(11, 31, 58, 0.06);
}

.site-header[data-nav-solid] .nav__menu a {
  color: var(--ink) !important;
}

.site-header[data-nav-solid] .nav__menu a:hover {
  color: var(--sun-dark) !important;
}

.site-header[data-nav-solid] .nav__toggle span {
  background: var(--navy) !important;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.nav__brand img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.nav__menu {
  display: flex;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  gap: 2rem;
}

.nav__menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s;
}

.site-header.is-scrolled .nav__menu a { color: var(--ink); }
.nav__menu a:hover { color: var(--sun); }

.nav__cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--sun);
  color: var(--navy);
  border-radius: 999px;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--sun-dark);
  color: var(--navy);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: background 0.2s;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  --p: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 20, 40, 0.92) 0%,
    rgba(11, 31, 58, 0.75) 42%,
    rgba(11, 31, 58, 0.25) 70%,
    transparent 100%
  );
}

.hero__sun {
  position: absolute;
  top: 10%;
  right: 14%;
  width: clamp(140px, 20vw, 240px);
  height: clamp(140px, 20vw, 240px);
  pointer-events: none;
  opacity: calc(0.9 + var(--p) * 0.1);
  z-index: 1;
}

.hero__sun-rays {
  position: absolute;
  inset: -55%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 230, 120, 0.35) 8deg,
    transparent 16deg,
    transparent 40deg,
    rgba(255, 220, 100, 0.28) 48deg,
    transparent 56deg,
    transparent 80deg,
    rgba(255, 230, 120, 0.32) 88deg,
    transparent 96deg,
    transparent 120deg,
    rgba(255, 220, 100, 0.25) 128deg,
    transparent 136deg,
    transparent 160deg,
    rgba(255, 230, 120, 0.3) 168deg,
    transparent 176deg,
    transparent 200deg,
    rgba(255, 220, 100, 0.28) 208deg,
    transparent 216deg,
    transparent 240deg,
    rgba(255, 230, 120, 0.32) 248deg,
    transparent 256deg,
    transparent 280deg,
    rgba(255, 220, 100, 0.26) 288deg,
    transparent 296deg,
    transparent 320deg,
    rgba(255, 230, 120, 0.3) 328deg,
    transparent 336deg,
    transparent 360deg
  );
  filter: blur(6px);
  animation: sun-rays-spin 28s linear infinite, sun-rays-pulse 4.5s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero__sun-core {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffef5, #ffe566 40%, var(--sun) 70%, #e8b010 100%);
  box-shadow:
    0 0 30px rgba(245, 197, 24, 0.7),
    0 0 60px rgba(245, 197, 24, 0.45),
    0 0 100px rgba(255, 200, 40, 0.25);
  animation: sun-core-pulse 3.2s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.hero__sun-halo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__sun-halo--outer {
  inset: -45%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.4) 0%, transparent 68%);
  filter: blur(22px);
  animation: sun-halo-breathe 4s ease-in-out infinite;
}

.hero__sun-halo--mid {
  inset: -18%;
  background: radial-gradient(circle, rgba(255, 236, 160, 0.65) 0%, transparent 65%);
  filter: blur(10px);
  animation: sun-halo-breathe 3.4s ease-in-out infinite reverse;
}

@keyframes sun-core-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 28px rgba(245, 197, 24, 0.65),
      0 0 55px rgba(245, 197, 24, 0.4),
      0 0 90px rgba(255, 200, 40, 0.2);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 0 40px rgba(245, 197, 24, 0.9),
      0 0 80px rgba(245, 197, 24, 0.55),
      0 0 130px rgba(255, 220, 80, 0.35);
  }
}

@keyframes sun-halo-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.12); }
}

@keyframes sun-rays-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sun-rays-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
}

.hero__content {
  max-width: 560px;
}

.hero__tag {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
  margin: 0 0 1rem;
}

.hero__content h1 { color: #fff; }

.hero__lede {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 2rem;
  max-width: 42ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Services */
.section--services {
  background: var(--paper-soft);
  position: relative;
  overflow: hidden;
}

.section--services h2 { margin-bottom: 0.5rem; }

.service-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--sun-dark);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.callout {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.callout__logo {
  flex-shrink: 0;
  width: 96px;
  height: auto;
  border-radius: 8px;
  background: #fff;
}

.callout h3 {
  color: #fff;
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.callout p {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.9;
}

/* Stat block */
.section--stat {
  background: var(--navy-deep);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section--stat h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.stat-number {
  color: var(--sun);
  font-size: 1.15em;
}

.stat-note {
  font-size: 0.8125rem;
  opacity: 0.65;
  margin: 1.5rem 0 0;
}

.stat-block .lede { margin-inline: auto; }

/* Products */
.section--products {
  background: var(--paper-soft);
  position: relative;
  overflow: hidden;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.product-card {
  padding: 2rem;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(11, 31, 58, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(11, 31, 58, 0.14);
}

.product-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* Adapt split */
.section--adapt {
  padding: 0;
}

.adapt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.adapt__media {
  position: relative;
  min-height: 320px;
}

.adapt__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adapt__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
}

.adapt__copy h2 { color: #fff; }

.adapt__copy p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Future editorial */
.section--future {
  background: var(--paper-soft);
  position: relative;
  overflow: hidden;
}

.section--future .scene-content {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.section--future p {
  color: var(--ink-muted);
  font-size: 1.0625rem;
  margin: 0 0 1.25rem;
}

.section--future p:last-child { margin-bottom: 0; }

/* Contact */
.section--contact {
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.section--contact .contact__form {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.section--contact .contact__info {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__details {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.contact__details li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.contact__details li span:first-child {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.contact__details a {
  font-weight: 600;
  color: var(--navy);
}

.contact__form {
  padding: 2rem;
  background: var(--paper-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 31, 58, 0.06);
}

.contact__form h3 {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
}

.contact__form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--ink);
}

.contact__form input,
.contact__form textarea {
  display: block;
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid rgba(11, 31, 58, 0.15);
  border-radius: 8px;
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--sun);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.25);
}

.contact__form textarea { resize: vertical; min-height: 100px; }

.contact__form .btn { width: 100%; margin-top: 0.5rem; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  padding: 3rem 0 2rem;
}

.footer__brand img {
  height: 56px;
  width: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.footer__brand p {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.8;
  max-width: 28ch;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__cols h4 {
  color: #fff;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.footer__cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__cols li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.footer__cols a {
  color: rgba(255, 255, 255, 0.75);
}

.footer__cols a:hover { color: var(--sun); }

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  font-size: 0.8125rem;
  opacity: 0.7;
}

.footer__bar p { margin: 0; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--i, 0) * 0.1s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger .reveal {
  transform: translateY(36px) scale(0.98);
}

.stagger .reveal.is-visible {
  transform: translateY(0) scale(1);
}

/* Brand strip + fixed backgrounds (parallax real) */
.brand-strip {
  background: var(--navy);
  color: #fff;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 3px solid var(--sun);
}

.brand-strip__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.brand-strip img {
  height: 56px;
  width: auto;
  border-radius: 8px;
  background: #fff;
}

.brand-strip p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.adapt__logo,
.contact__logo {
  display: block;
  width: 120px;
  height: auto;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 1rem;
}

.adapt__logo {
  background: #fff;
}

.has-fixed-bg {
  position: relative;
  isolation: isolate;
  background-color: var(--paper-soft);
  background-image: var(--section-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.fixed-bg-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scene-content {
  position: relative;
  z-index: 1;
}

.fixed-bg-veil--light {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.78) 50%, rgba(244, 246, 249, 0.9) 100%),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(245, 197, 24, 0.2), transparent 60%);
}

.fixed-bg-veil--soft {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.86) 0%, rgba(244, 246, 249, 0.8) 55%, rgba(255, 255, 255, 0.9) 100%),
    radial-gradient(ellipse 55% 45% at 8% 85%, rgba(20, 50, 92, 0.1), transparent 65%);
}

.fixed-bg-veil--navy {
  background:
    linear-gradient(160deg, rgba(6, 20, 40, 0.82) 0%, rgba(11, 31, 58, 0.78) 55%, rgba(20, 50, 92, 0.86) 100%),
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(245, 197, 24, 0.25), transparent 55%);
}

.fixed-bg-veil--mint {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(244, 246, 249, 0.78) 45%, rgba(232, 242, 236, 0.88) 100%);
}

.fixed-bg-veil--contact {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.8) 45%, rgba(244, 246, 249, 0.88) 100%),
    radial-gradient(ellipse 50% 60% at 92% 35%, rgba(245, 197, 24, 0.18), transparent 60%);
}

.section--stat .stat-block {
  position: relative;
  z-index: 1;
}

.service-card,
.product-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  .has-fixed-bg {
    background-attachment: scroll;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .service-card:hover,
  .product-card:hover {
    transform: none;
  }
  .hero__sun-rays,
  .hero__sun-core,
  .hero__sun-halo--outer,
  .hero__sun-halo--mid {
    animation: none !important;
  }
  .has-fixed-bg {
    background-attachment: scroll;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .service-cards { grid-template-columns: 1fr; }
  .product-cards { grid-template-columns: 1fr; }
  .adapt { grid-template-columns: 1fr; }
  .adapt__media { min-height: 280px; }
  .contact { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 1.5rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__menu li {
    border-bottom: 1px solid rgba(11, 31, 58, 0.06);
  }
  .nav__menu a {
    display: block;
    padding: 1rem 0;
    color: var(--ink) !important;
  }
  .nav__cta { display: none; }

  .hero__sun {
    top: 8%;
    right: 10%;
    opacity: 0.7;
  }

  .hero__inner {
    width: calc(100% - 2rem);
    text-align: center;
  }

  .hero__content {
    max-width: none;
    margin-inline: auto;
  }

  .hero__lede { margin-inline: auto; }
  .hero__actions { justify-content: center; }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(6, 20, 40, 0.88) 0%,
      rgba(11, 31, 58, 0.7) 50%,
      rgba(11, 31, 58, 0.4) 100%
    );
  }

  .footer__cols { grid-template-columns: 1fr; }
  .footer__bar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Blog & carousel */
.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: rgba(11, 31, 58, 0.25);
}

.btn--outline-navy:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.section--blog-carousel {
  background: var(--paper-soft);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.blog-carousel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.blog-carousel__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-carousel__controls { display: none; }

.post-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(11, 31, 58, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(11, 31, 58, 0.14);
}

.post-card__link {
  display: block;
  color: inherit;
  height: 100%;
}

.post-card__link:hover { color: inherit; }

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-deep);
}

.post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card__img { transform: scale(1.04); }

.post-card__body { padding: 1.25rem 1.5rem 1.5rem; }

.post-card__date {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.post-card__title {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.post-card__excerpt {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.section--blog-hero {
  padding-top: calc(var(--header-h) + 3rem);
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
}

.section--blog-hero h1 { color: #fff; }
.section--blog-hero .lede { color: rgba(255, 255, 255, 0.85); }

.section--blog-list { background: var(--paper-soft); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-empty {
  text-align: center;
  color: var(--ink-muted);
  padding: 3rem 0;
}

.blog-list-meta {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  text-align: center;
}

.blog-pagination {
  width: 100%;
  clear: both;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(11, 31, 58, 0.08);
  display: block;
  text-align: center;
}

.blog-pagination__inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  max-width: 100%;
  margin: 0 auto;
}

.blog-pagination__pages {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.blog-pagination__btn,
.blog-pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.875rem;
  min-height: 2.875rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid rgba(11, 31, 58, 0.14);
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.06);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.blog-pagination__num {
  min-width: 2.875rem;
  padding-inline: 0.75rem;
}

.blog-pagination__btn:hover,
.blog-pagination__num:hover {
  background: var(--paper-soft);
  border-color: rgba(11, 31, 58, 0.22);
  color: var(--navy);
  transform: translateY(-1px);
}

.blog-pagination__num.is-current {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(245, 197, 24, 0.35);
}

.blog-pagination__btn--disabled {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

.blog-pagination__dots {
  display: inline-flex;
  align-items: center;
  min-width: 1.5rem;
  padding: 0 0.15rem;
  color: var(--ink-muted);
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .blog-pagination__inner {
    flex-direction: column;
    gap: 1rem;
  }

  .blog-pagination__pages {
    order: -1;
  }

  .blog-pagination__btn {
    width: min(100%, 280px);
  }
}

.section--single { padding-top: calc(var(--header-h) + 2rem); }

.single-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.single-meta__back {
  font-weight: 600;
  color: var(--navy-mid);
}

.single-header h1 { margin-bottom: 1.5rem; }

.single-featured {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.single-featured__img {
  width: 100%;
  height: auto;
  display: block;
}

.single-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
}

.single-content p { margin: 0 0 1.25rem; }

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.single-content iframe {
  max-width: 100%;
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
}

.contact-notice {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.contact-notice--success {
  background: rgba(45, 138, 78, 0.12);
  color: var(--green);
  border: 1px solid rgba(45, 138, 78, 0.25);
}

.contact-notice--error {
  background: rgba(192, 57, 43, 0.1);
  color: var(--red);
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.contact-captcha-hint {
  margin: -0.35rem 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .blog-carousel__track,
  .blog-grid { grid-template-columns: 1fr; }

  .blog-carousel__controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .blog-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .blog-carousel__track::-webkit-scrollbar { display: none; }

  .blog-carousel__slide {
    flex: 0 0 min(85%, 320px);
    scroll-snap-align: start;
  }

  .blog-carousel__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(11, 31, 58, 0.15);
    background: var(--paper);
    color: var(--navy);
    font-size: 1.125rem;
    cursor: pointer;
  }
}
