/* base.css - shared by EVERY page: variables, reset, buttons, header/nav, footer, shared cards & sections.
   (Font sizes are NOT here - see typography.css) */

/* ---------- Design tokens & document defaults ---------- */
:root {
  --red: #c42020;
  --red2: #a21818;
  --ink: #000;
  --mut: #555;
  --bg: #fff;
  --soft: #e0e0e0;
  --dark: #262626;
  --line: #d8d8d8;
  --dot: #d4d4d4;
  --card: #fff;
  --pill: #ececee;
  --hf: "Archivo","Arial Narrow",Arial,sans-serif;
  --bf: "IBM Plex Sans",system-ui,Arial,sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top,0px);
  padding-bottom: env(safe-area-inset-bottom,0px);
}
:root {
  color-scheme: light;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  font-family: var(--bf);
  line-height: 1.6;
  background-image: radial-gradient(var(--dot) 1px,transparent 1px);
  background-size: 22px 22px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Layout container & headings ---------- */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px,3.5vw,48px);
}
h1,
.hero-title,
h2,
h3,
h3.h2s {
  /* font-family: var(--hf); */
  margin: 0;
  line-height: 1.05;
  letter-spacing: -.01em;
}
h2,
h3.h2s {
  font-weight: 800;
  font-stretch: 100%;
}
h2 i,
h1 i,
.hero-title i,
h3.h2s i {
  font-style: normal;
  color: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-family: var(--bf);
  line-height: normal;
  padding: 12px 14px 12px 26px;
  border-radius: 99px;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover {
  background: var(--red2);
}
.btn .ar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
}

/* ---------- Header & navigation ---------- */
header {
  position: sticky;
  top: env(safe-area-inset-top,0px);
  z-index: 50;
  background: color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter: blur(8px);
}
.hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img {
  width: 76px;
  height: 76px;
  border-radius: 6px;
  object-fit: cover;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 14px;
  display: flex;
  gap: 6px;
  background: var(--pill);
  border-radius: 99px;
}
nav a {
  display: block;
  padding: 9px 16px;
  border-radius: 99px;
  font-weight: 500;
}
nav a:hover,
nav a.on {
  color: var(--red);
}
.pd {
  position: relative;
}
.pd>a:after {
  content: "▾";
  margin-left: 6px;
}
.pd ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  min-width: 260px;
  border-radius: 18px;
  padding: 8px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  gap: 0;
}
.pd:hover ul,
.pd:focus-within ul {
  display: flex;
}
.pd ul a {
  border-radius: 10px;
}
.menu {
  display: none;
  background: var(--pill);
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Shared page sections ---------- */
.sec {
  padding: clamp(56px,8vw,110px) 0;
}
.grey {
  background: var(--soft);
  background-image: none;
  clip-path: polygon(0 0,calc(100% - 36px) 0,100% 36px,100% 100%,36px 100%,0 calc(100% - 36px));
}
.dk {
  background: var(--dark);
  color: #f1f1f1;
  background-image: none;
}
.dk h2,
.dk h3.h2s {
  color: #fff;
}
.hd2 {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 44px;
}
.hd2 p {
  max-width: 34em;
  margin: 0;
  color: var(--mut);
}
.dk .hd2 {
  border-color: #444;
}
.dk .hd2 p {
  color: #bbb;
}
.pc {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .2s,border-color .2s;
}
.pc:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}
.pc img {
  aspect-ratio: 16/10;
  width: 100%;
  object-fit: cover;
}
.pc div {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pc p {
  margin: 0;
  color: var(--mut);
  flex: 1;
}
.pc a {
  color: var(--red);
  font-weight: 600;
}
.ac {
  margin: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #000;
}
.ac img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.ac:hover img {
  transform: scale(1.05);
}
.ac:after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent,rgba(0,0,0,.85));
}
.ac figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  z-index: 1;
}
.ac h3 {
  color: #fff;
}
.ac p {
  margin: 6px 0 0;
  color: #ddd;
}
.tq {
  background: var(--card);
  border-radius: 22px;
  padding: clamp(24px,4vw,48px);
  border: 1px solid var(--line);
}
.tq h3 {
  margin-bottom: 14px;
}
.tq blockquote {
  margin: 0 0 18px;
  color: var(--mut);
}
.tq cite {
  font-style: normal;
  font-weight: 600;
}

/* ---------- Footer ---------- */
footer {
  background: #202020 radial-gradient(#3b3b3b 2px,transparent 2px) 0 0/52px 52px;
  color: #cfcfcf;
  padding: 56px 0 24px;
}
footer h3 {
  color: #fff;
  margin: 0 0 16px;
}
footer ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.fb img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.fb p {
  max-width: 28em;
  margin: 0;
}
footer address {
  font-style: normal;
  display: grid;
  gap: 18px;
}
footer address p {
  display: flex;
  gap: 14px;
  margin: 0;
  align-items: flex-start;
}
footer address svg {
  flex: none;
  margin-top: 2px;
}
.fw {
  grid-column: 1/-1;
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-top: 12px;
  text-align: center;
}

/* ---------- Floating buttons & skip link ---------- */
.wa,
.up {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom,0px));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.wa {
  left: 18px;
  background: #25d366;
}
.up {
  right: 18px;
  background: var(--red);
  color: #fff;
  width: 48px;
  height: 48px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 8px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  z-index: 99;
}

@media (max-width:1000px) {
  .menu {
    display: block;
  }
  .hd>.btn {
    display: none;
  }
  nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0 16px;
    display: none;
  }
  nav.open {
    display: block;
  }
  nav ul {
    flex-direction: column;
    border-radius: 22px;
    padding: 10px;
    background: var(--card);
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
  }
  .pd ul,
  .pd:hover ul,
  .pd:focus-within ul {
    display: none;
    position: static;
    box-shadow: none;
    padding: 0 0 0 14px;
    background: none;
  }
  .pd.open ul {
    display: flex;
  }
  .pd.open>a:after {
    content: "▴";
  }
  nav.open {
    max-height: calc(100svh - 110px);
    overflow-y: auto;
  }
  .wa,
  .up {
    z-index: 40;
  }
}

@media (max-width:640px) {
  .ac {
    aspect-ratio: 3/4;
  }
  .ac figcaption {
    padding: 12px;
  }
  .ac p {
    display: none;
  }
  .logo img {
    width: 60px;
    height: 60px;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.ac a {
  display: block;
  height: 100%;
}
footer a,
footer address span {
  overflow-wrap: anywhere;
}

@media (max-width:640px) {
  .fg>* {
    min-width: 0;
  }
}


.laser-float {
    position: fixed;
    left: 15px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    width: 90px;
    height: 90px;
    display: block;
    z-index: 60;
    text-decoration: none;
}

.laser-icon {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35));
}

.laser-ring,
.laser-beam,
.laser-sparks {
    transform-box: view-box;
}

.laser-ring {
    transform-origin: 50px 50px;
    animation: ringRotate 8s linear infinite;
}

.laser-beam {
    transform-origin: 50px 33px;
    animation: beamPulse .7s ease-in-out infinite alternate;
}

.laser-sparks {
    transform-origin: 50px 60px;
    animation: sparksFlash .35s steps(2, end) infinite;
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

@keyframes beamPulse {
    from { opacity: .45; }
    to { opacity: 1; }
}

@keyframes sparksFlash {
    from { opacity: .35; }
    to { opacity: 1; }
}

@media (max-width: 1000px) {
    .laser-float { z-index: 40; }
}

@media (max-width: 576px) {
    .laser-float {
        width: 72px;
        height: 72px;
        left: 10px;
        bottom: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .laser-ring,
    .laser-beam,
    .laser-sparks {
        animation: none;
    }
}
