/* Second Digit — brand: red, blue, black, white. Punchy, irreverent. */

:root {
  --red: #c8102e;
  --red-hot: #e8182f;
  --blue: #1a4f9c;
  --blue-bright: #2a7fd4;
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --paper: #f7f5f2;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(20, 20, 20, 0.12);
  --radius: 4px;
  --font-display: "Archivo Black", Impact, sans-serif;
  --font-body: "DM Sans", "Trebuchet MS", sans-serif;
  --max: 1100px;
  --header-h: 7.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(42, 127, 212, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(200, 16, 46, 0.06), transparent),
    var(--paper);
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.brand {
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover {
  transform: scale(1.03) rotate(-1deg);
}

.brand img {
  width: min(280px, 72vw);
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.35rem;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue-bright);
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--ink);
  background: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

/* Hero slider */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero-slider .slides {
  position: relative;
  width: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  pointer-events: none;
}

.slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.slide-link {
  display: block;
  cursor: pointer;
}

.slide-link:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -3px;
}

.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dot.is-active,
.slider-dot:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.15);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: rgba(20, 20, 20, 0.55);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.slider-arrow:hover {
  background: var(--red);
}

.slider-arrow.prev {
  left: 0.75rem;
}

.slider-arrow.next {
  right: 0.75rem;
}

@keyframes ctaPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 8px 0 #8b0a1c;
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 12px 0 #8b0a1c;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeUp 0.7s ease both;
}

.reveal-delay-1 {
  animation-delay: 0.12s;
}

.reveal-delay-2 {
  animation-delay: 0.24s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.95rem 1.75rem;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 0 #8b0a1c;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: var(--red-hot);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 0 #8b0a1c;
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #8b0a1c;
}

.btn-blue {
  background: var(--blue);
  box-shadow: 0 8px 0 #0f2f5c;
}

.btn-blue:hover {
  background: #235db0;
  box-shadow: 0 10px 0 #0f2f5c;
}

.btn-block {
  width: 100%;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3.5rem;
}

.page-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--ink);
  line-height: 1.1;
}

.page-lead {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Home intro */
.home-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.25rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.home-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.home-intro p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hand-diagram {
  justify-self: center;
  max-width: 320px;
  filter: drop-shadow(0 12px 24px rgba(20, 20, 20, 0.1));
  animation: floatHand 4s ease-in-out infinite;
}

@keyframes floatHand {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

/* Gallery / send form */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border: 3px solid transparent;
  background: var(--white);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.gallery-item.is-selected {
  border-color: #2e9d4c;
  box-shadow: 0 0 0 2px #2e9d4c;
}

.gallery-item.is-selected::after {
  content: "✓";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 1.5rem;
  height: 1.5rem;
  background: #2e9d4c;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.send-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.form-panel {
  max-width: 32rem;
  margin: 0 auto;
  width: 100%;
  background: var(--white);
  padding: 1.75rem 1.5rem 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-align: center;
}

.required {
  color: var(--red);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #cfcfcf;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 79, 156, 0.15);
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-hint {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.selected-preview {
  text-align: center;
  margin-bottom: 1.25rem;
}

.selected-preview img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 220px;
  margin: 0.5rem auto 0;
  border: 2px solid var(--line);
  object-fit: contain;
}

/* Alerts */
.alert {
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
  font-weight: 500;
}

.alert-success {
  background: #eef8f0;
  border-color: #2e9d4c;
  color: #1a5c2c;
}

.alert-error {
  background: #fdf0f1;
  border-color: var(--red);
  color: #8b0a1c;
}

/* Content pages */
.prose {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.testimonial {
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.testimonial:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.testimonial blockquote {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  quotes: "“" "”";
}

.testimonial blockquote::before {
  content: open-quote;
}

.testimonial blockquote::after {
  content: close-quote;
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.privacy-content {
  max-width: 44rem;
  margin: 0 auto;
  text-align: left;
}

.privacy-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}

.privacy-content h2:first-of-type {
  margin-top: 0;
}

.privacy-content p,
.privacy-content li {
  color: var(--ink-soft);
}

.privacy-content ul {
  padding-left: 1.25rem;
}

.privacy-meta {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-link {
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-link:hover {
  color: var(--red);
}

/* Mobile */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0 0.25rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .home-intro {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }

  .home-intro p {
    margin-left: auto;
    margin-right: auto;
  }

  .slider-arrow {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
