/* ==========================================================================
   Centenario de Vida Municipal | Homepage
   ========================================================================= */

/* 1. Design tokens and document defaults */
:root {
  color-scheme: light;
  --green: #075b3b;
  --green-dark: #06432f;
  --blue: #087fc3;
  --yellow: #f3bd18;
  --ink: #16382d;
  --paper: #fbfaf6;
  --muted: #61736a;
  --display: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --content-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: -60px;
  left: 12px;
  padding: 10px 14px;
  background: #fff;
  color: var(--green-dark);
}

.skip-link:focus {
  top: 10px;
}

.section-wrap {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

/* 2. Header */
.site-header {
  display: flex;
  height: 98px;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(22px, 7vw, 110px);
  background: #fff;
}

.identity {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--green-dark);
  text-decoration: none;
}

.identity img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.identity-copy {
  display: grid;
  line-height: 1.3;
}

.identity-copy strong {
  font-size: 16px;
  letter-spacing: .025em;
}

.identity-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.header-date {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-date b {
  padding-left: 5px;
  color: #5c655f;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

/* 3. Centennial hero */
.hero {
  position: relative;
  display: grid;
  min-height: 500px;
  height: min(62vw, 650px);
  max-height: 650px;
  place-items: center;
  overflow: hidden;
  background: #325f42;
  color: #fff;
  text-align: center;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  transform: scale(1.01);
  background: url("assets/valle-carvajal.jpg") center 54% / cover no-repeat;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgb(4 43 37 / 56%), rgb(5 38 36 / 40%) 50%, rgb(4 45 40 / 56%)),
    linear-gradient(0deg, rgb(3 30 28 / 34%), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 55px 22px 62px;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .19em;
}

.eyebrow span {
  width: 30px;
  height: 2px;
  background: var(--yellow);
}

.eyebrow i {
  color: var(--yellow);
  font-style: normal;
}

.years {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: .18em;
}

.years span {
  padding-inline: 7px;
  color: var(--yellow);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 8.5vw, 104px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .92;
  text-shadow: 0 2px 25px rgb(16 44 37 / 65%);
}

.hero h1 em {
  display: block;
  margin-top: 20px;
  font-size: .47em;
  font-weight: 400;
  letter-spacing: .005em;
}

.color-stroke {
  display: flex;
  width: min(190px, 45vw);
  height: 4px;
  overflow: hidden;
  margin: 28px auto 22px;
  border-radius: 3px;
}

.color-stroke i {
  flex: 1;
}

.color-stroke i:nth-child(1) { background: var(--yellow); }
.color-stroke i:nth-child(2) { background: #168146; }
.color-stroke i:nth-child(3) { background: var(--blue); }

.motto {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(16px, 2vw, 21px);
  letter-spacing: .02em;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 35px;
  padding: 11px 18px;
  border: 1px solid rgb(255 255 255 / 66%);
  border-radius: 2px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}

.hero-link:hover,
.hero-link:focus-visible {
  background: #fff;
  color: var(--green-dark);
}

.hero-link span { font-size: 17px; }

.image-caption {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 6vw, 80px);
  bottom: 15px;
  color: rgb(255 255 255 / 84%);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* 4. Coming-soon announcement */
.opening {
  position: relative;
  overflow: hidden;
  padding: 43px 22px 55px;
  background: var(--green-dark);
  color: #fff;
  text-align: center;
}

.opening::before,
.opening::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(28px, 9vw, 140px);
  background: repeating-linear-gradient(135deg, transparent 0 11px, var(--yellow) 11px 13px, transparent 13px 24px);
  content: "";
  opacity: .18;
}

.opening::before { left: 0; }
.opening::after { right: 0; }

.opening-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--yellow);
  font-size: 11px;
}

.opening-rule span {
  width: 42px;
  height: 1px;
  background: rgb(214 174 69 / 65%);
}

.opening-rule i { font-style: normal; }

.opening-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 13px 0 10px;
  color: #f1d988;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .19em;
}

.opening-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
}

.opening h2 {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.opening h2 em {
  color: #f1d988;
  font-weight: 400;
}

.opening > p:last-of-type {
  max-width: 510px;
  margin: 13px auto 0;
  color: #d0ded5;
  font-size: 13px;
  line-height: 1.7;
}

.opening-ribbon {
  display: block;
  width: min(440px, 88vw);
  height: auto;
  overflow: visible;
  margin: 20px auto -4px;
  filter: drop-shadow(0 5px 8px rgb(3 29 24 / 22%));
}

/* 5. Valle Guanape illustrations */
.illustrations {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(900px, calc(100% - 48px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: -24px auto 0;
}

.illustration-card {
  position: relative;
  display: flex;
  height: 200px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  border-radius: 5px;
  background: #f2f3ed;
}

.illustration-card::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgb(8 42 32 / 78%), transparent);
  content: "";
  pointer-events: none;
}

.illustration-card img {
  width: 100%;
  height: 100%;
  padding: 3px 12px 0;
  object-fit: contain;
  object-position: center 48%;
}

.illustration-card figcaption {
  position: absolute;
  z-index: 1;
  bottom: 15px;
  left: 20px;
  display: grid;
  color: #fff;
  text-shadow: 0 1px 5px #173427;
}

.illustration-card figcaption span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.illustration-card figcaption strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.welcome-art { background: #eaf2eb; }
.monument-art { background: #f1f0e8; }

/* 6. Welcome message */
.welcome {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  gap: clamp(38px, 8vw, 112px);
  padding-top: 76px;
  padding-bottom: 82px;
}

.welcome-mark {
  position: relative;
  display: flex;
  width: 198px;
  height: 198px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8ded5;
  border-radius: 50%;
  color: var(--green);
  font-family: var(--display);
  font-size: 79px;
  line-height: .9;
}

.welcome-mark::before,
.welcome-mark::after {
  position: absolute;
  border: 1px solid #e6e6da;
  border-radius: 50%;
  content: "";
  inset: 11px;
}

.welcome-mark::after {
  top: -9px;
  right: auto;
  bottom: auto;
  left: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border: 0;
  background: var(--yellow);
}

.welcome-mark span {
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.welcome h2,
.future h2 {
  color: var(--green-dark);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.035em;
}

.welcome h2 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.5vw, 55px);
  line-height: 1.12;
}

.welcome h2 em {
  color: var(--blue);
  font-weight: 400;
}

.welcome-text {
  max-width: 660px;
  margin: 0;
  color: #53665b;
  font-size: 16px;
  line-height: 1.85;
}

.welcome-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.welcome-note span {
  color: #a47b00;
  font-size: 19px;
}

/* 7. Centennial pillars */
.pillars {
  padding: 0 0 76px;
  background: var(--paper);
}

.pillars-heading,
.future-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.pillars-heading h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.pillars-heading > p,
.future-heading > p {
  max-width: 280px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
}

.pillar-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pillar {
  min-height: 205px;
  padding: 19px 18px;
  border-bottom: 3px solid var(--green);
  background: #fff;
  box-shadow: 0 7px 22px rgb(23 62 37 / 5%);
}

.pillar-raise { border-color: var(--blue); }
.pillar-transform { border-color: var(--yellow); }
.pillar-legacy { border-color: #07508a; }

.pillar-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 50%;
  background: #e8f2ec;
  color: var(--green);
  font-size: 17px;
}

.pillar-raise .pillar-icon { background: #e8f4fa; color: var(--blue); }
.pillar-transform .pillar-icon { background: #fff6d9; color: #8a6800; }
.pillar-legacy .pillar-icon { background: #e9eff5; color: #07508a; }

.pillar-label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
}

.pillar h3 {
  margin: 6px 0 8px;
  color: var(--green-dark);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

/* 8. Upcoming sections */
.future {
  padding: 68px 0 74px;
  background: #f1f3ed;
}

.future-heading h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  min-height: 250px;
  padding: 23px 21px 20px;
  border-top: 3px solid var(--green);
  background: #fff;
  box-shadow: 0 8px 24px rgb(23 56 36 / 6%);
}

.card-news { border-color: var(--blue); }
.card-projects { border-color: var(--yellow); }
.card-community { border-color: #07508a; }

.card-number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #66786d;
  font-size: 10px;
  letter-spacing: .12em;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 19px;
  border-radius: 50%;
  background: #e8f2ec;
  color: var(--green);
  font-size: 21px;
}

.card-news .card-icon { background: #e8f4fa; color: var(--blue); }
.card-projects .card-icon { background: #fff6d9; color: #8a6800; }
.card-community .card-icon { background: #e9eff5; color: #07508a; }

.card h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.coming {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid #d8e2db;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* 9. Footer */
.site-footer {
  padding: 32px clamp(24px, 7vw, 110px) 0;
  background: var(--green-dark);
  color: #fff;
}

.footer-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 17px;
}

.footer-inner img {
  width: 58px;
  height: 58px;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.footer-name,
.footer-domain {
  display: grid;
  gap: 6px;
}

.footer-name strong {
  font-size: 13px;
  letter-spacing: .015em;
  line-height: 1.45;
}

.footer-name span,
.footer-domain span {
  color: #c2d4c9;
  font-size: 10px;
}

.footer-domain {
  margin-left: auto;
  text-align: right;
}

.footer-domain strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding: 13px 0 17px;
  border-top: 1px solid rgb(255 255 255 / 17%);
  color: #c2d4c9;
  font-size: 10px;
  letter-spacing: .06em;
}

/* 10. Responsive layout */
@media (max-width: 760px) {
  .site-header {
    height: 82px;
    padding-inline: 20px;
  }

  .identity { gap: 9px; }
  .identity img { width: 54px; height: 54px; }
  .identity-copy strong { font-size: 13px; }
  .identity-copy span { font-size: 10px; }

  .header-date {
    gap: 6px;
    font-size: 9px;
    letter-spacing: .025em;
  }

  .header-date b { display: none; }

  .hero {
    min-height: 460px;
    height: 66svh;
    max-height: 580px;
  }

  .hero-image { background-position: 56% center; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgb(5 43 39 / 66%), rgb(6 43 40 / 63%)),
      linear-gradient(0deg, rgb(3 30 28 / 63%), transparent 67%);
  }

  .hero-inner { padding: 42px 18px 48px; }
  .eyebrow { gap: 8px; font-size: 9px; letter-spacing: .11em; }
  .eyebrow span { width: 16px; }
  .hero h1 { font-size: clamp(50px, 12vw, 82px); }
  .hero h1 em { margin-top: 15px; font-size: .48em; }
  .years { font-size: 21px; }
  .motto { max-width: 350px; margin-inline: auto; font-size: 16px; }

  .opening { padding: 35px 24px 44px; }
  .opening h2 { font-size: clamp(29px, 8vw, 40px); }
  .opening > p:last-of-type { font-size: 12px; }
  .opening-ribbon { width: min(390px, 92vw); margin-top: 16px; }

  .illustrations {
    width: calc(100% - 32px);
    gap: 10px;
    margin-top: -18px;
  }

  .illustration-card { height: 174px; border-radius: 4px; }
  .illustration-card img { padding-inline: 5px; }
  .illustration-card figcaption { bottom: 10px; left: 11px; }
  .illustration-card figcaption span { font-size: 7px; letter-spacing: .09em; }
  .illustration-card figcaption strong { font-size: 15px; }

  .welcome {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-top: 55px;
    padding-bottom: 60px;
  }

  .welcome-mark { width: 106px; height: 106px; font-size: 43px; }
  .welcome-mark::before { inset: 6px; }
  .welcome-mark::after { top: -6px; width: 10px; height: 10px; left: calc(50% - 5px); }
  .welcome-mark span { margin-top: 7px; font-size: 7px; }
  .welcome h2 { font-size: 39px; }
  .welcome-text { font-size: 14px; line-height: 1.8; }

  .pillars { padding-bottom: 55px; }
  .pillars-heading,
  .future-heading {
    display: block;
    margin-bottom: 18px;
  }

  .pillars-heading h2 { font-size: 38px; }
  .pillars-heading > p,
  .future-heading > p { margin-top: 10px; }
  .pillar-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pillar { min-height: 180px; padding: 15px 14px; }
  .pillar h3 { font-size: 18px; }

  .future { padding: 52px 0 58px; }
  .future-heading h2 { font-size: 42px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .card { min-height: 231px; padding: 19px 16px 17px; }
  .card h3 { font-size: 18px; }

  .site-footer { padding: 27px 22px 0; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
  .footer-inner img { width: 47px; height: 47px; }
  .footer-name strong { font-size: 11px; }
  .footer-name span { font-size: 9px; }
  .footer-domain {
    flex-basis: 100%;
    margin: 10px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgb(255 255 255 / 17%);
    text-align: left;
  }
  .footer-domain strong { font-size: 11px; }
}

@media (max-width: 400px) {
  .section-wrap { width: calc(100% - 32px); }
  .header-date { font-size: 0; }
  .header-date .status-dot { width: 9px; height: 9px; }
  .hero { min-height: 440px; }
  .eyebrow { font-size: 8px; }
  .opening { padding: 31px 20px 39px; }
  .opening-kicker { font-size: 8px; }
  .opening h2 { font-size: 29px; }
  .opening > p:last-of-type { max-width: 290px; font-size: 11px; }
  .illustrations { width: calc(100% - 24px); gap: 8px; }
  .illustration-card { height: 150px; }
  .illustration-card figcaption strong { font-size: 13px; }
  .illustration-card figcaption span { font-size: 6px; }
  .pillars-heading h2,
  .future-heading h2 { font-size: 36px; }
  .pillar-list { gap: 8px; }
  .pillar { min-height: 187px; padding: 13px 11px; }
  .pillar h3 { font-size: 16px; }
  .pillar p { font-size: 10px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .desktop-break { display: none; }
  .footer-name strong { max-width: 245px; }
  .footer-bottom { font-size: 9px; }
}

/* 11. Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
