/*
  Archivo: assets/css/styles.css
  Resumen: Estilos visuales, responsivos y accesibles para la landing page de Bomberos.
*/

:root {
  --red: #c3262d;
  --red-dark: #941a20;
  --cream: #f6f0e7;
  --ink: #171717;
  --muted: #68615b;
  --line: rgba(23, 23, 23, 0.14);
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 15%, rgba(195, 38, 45, 0.1), transparent 24rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 42px;
  place-items: center;
}

.brand-mark svg {
  width: 100%;
  fill: var(--red);
}

.brand-mark .flame {
  fill: var(--cream);
}

.header-tag {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  min-height: 570px;
  padding-block: 72px;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 36px;
  height: 3px;
  background: var(--red);
  content: "";
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero-copy {
  max-width: 570px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 4px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 28px rgba(148, 26, 32, 0.2);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.button:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.hero-emblem {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  max-width: 410px;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 28px 30px 0 rgba(23, 23, 23, 0.08);
}

.hero-emblem::before,
.hero-emblem::after,
.emblem-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  content: "";
  inset: 9%;
}

.hero-emblem::after {
  border-color: rgba(255, 255, 255, 0.18);
  inset: 17%;
}

.emblem-ring {
  border-color: rgba(255, 255, 255, 0.1);
  inset: 25%;
}

.hero-emblem svg {
  z-index: 1;
  width: 57%;
  overflow: visible;
}

.helmet {
  fill: var(--cream);
}

.helmet-line {
  fill: none;
  stroke: var(--red-dark);
  stroke-linejoin: round;
  stroke-width: 5;
}

.spark {
  fill: none;
  stroke: var(--cream);
  stroke-linecap: round;
  stroke-width: 4;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.values article {
  padding: 34px clamp(20px, 3vw, 38px) 38px;
}

.values article + article {
  border-left: 1px solid var(--line);
}

.values span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.values h2 {
  margin: 14px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.values p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 38px;
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 620px);
  }

  .header-tag {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 56px 64px;
  }

  .hero-emblem {
    width: min(78vw, 340px);
    grid-row: 1;
  }

  .values {
    grid-template-columns: 1fr;
  }

  .values article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
