/* ==========================================================================
   Redwing Messaging Inc. — redwingmessaging.com
   Hand-written static rebuild of the GeneratePress/GenerateBlocks design.
   ========================================================================== */

:root {
  --contrast: #000000;
  --contrast-2: #666666;
  --contrast-3: #464747;
  --base: #f5f3f2;
  --base-2: #f7f8f9;
  --base-3: #ffffff;
  --accent: #E8112D;
  --accent-2: #667780;
  --highlight: #ffdd00;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: #efefef;
  color: var(--contrast);
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--accent); text-decoration: underline; }
a:hover { color: var(--contrast-3); }

h1 {
  font-family: "DM Serif Display", serif;
  font-weight: bold;
  font-size: 3.7rem;
  line-height: 1.25;
  color: var(--contrast);
  margin: 0 0 20px;
}

h2 {
  font-family: "DM Serif Display", serif;
  font-weight: bold;
  font-size: 28px;
  letter-spacing: 1px;
  line-height: 1.4;
  color: var(--contrast);
  margin: 1.5em 0 0.6em;
}

h3 {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  color: var(--contrast-3);
  margin: 1.5em 0 0.5em;
}

.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  background-color: #000000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 0 auto;
  padding: 15px 20px;
}

.site-logo img { width: 185px; }

.site-nav a {
  position: relative;
  display: inline-block;
  color: var(--base-3);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 38px;
  padding: 0 20px;
}

.site-nav a:hover { color: var(--accent-2); background-color: var(--base); }

@media (min-width: 1024px) {
  .site-nav a::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 0;
    background-color: var(--accent-2);
    left: 50%;
    top: -50px;
    transform: translateX(-50%);
    transition: all .3s ease-out 0s;
  }
  .site-nav a:hover::before { height: 50px; }
}

@media (max-width: 480px) {
  .site-nav a { font-size: 12px; padding: 0 10px; }
  .site-logo img { width: 150px; }
}

/* --------------------------------------------------------------------------
   Home — hero
   -------------------------------------------------------------------------- */

.site-main {
  background-color: var(--base-3);
}

.hero {
  background-image: linear-gradient(180deg, var(--base) 20%, var(--base-3) 40%);
}

.hero-inner {
  display: flex;
  column-gap: 120px;
  row-gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 50px 20px 70px;
}

.hero-copy { width: 62%; margin-top: 35px; }

.hero h1 {
  border-left: 3px solid var(--contrast);
  padding-left: 30px;
}

.hero-highlight { position: relative; z-index: 1; }
.hero-highlight::before {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  bottom: 0.05em;
  height: 1.2em;
  border-radius: 3px;
  background: var(--highlight);
  z-index: -1;
}

.hero h1 mark { background: transparent; color: var(--accent); }

.hero-more { padding: 5px 30px 0 35px; }
.hero-more p { font-size: 16px; }

.hero-more details summary {
  cursor: pointer;
  color: var(--contrast-2);
}
.hero-more details[open] > summary { display: none; }

.hero-signature { display: inline-block; }
.hero-signature img { width: 150px; margin-top: 30px; }
.sig-name { font-size: 14px; margin-top: -15px; }

.hero-photo { width: 38%; }
.hero-photo img { border: 3px solid var(--contrast); }

@media (max-width: 1024px) {
  .hero-inner { flex-wrap: wrap; }
  .hero-copy, .hero-photo { width: 100%; }
}

@media (max-width: 767px) {
  .hero-copy { margin-top: 0; }
  .hero h1 { font-size: 32px; }
  .hero-more { padding: 5px 0 0; }
}

/* --------------------------------------------------------------------------
   Home — brands
   -------------------------------------------------------------------------- */

.brands {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.brands-label {
  color: var(--contrast-2);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.2em;
  margin-bottom: 30px;
  text-align: center;
  text-transform: uppercase;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  column-gap: 70px;
  row-gap: 55px;
}

.brands-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
}

/* Cap the height so logos of different aspect ratios read as one row. The SVGs
   carry no intrinsic size, so each img needs width/height attributes too.
   Brands sit at full colour and fade back on hover. */
.brands-grid img {
  width: auto;
  height: auto;
  max-height: 54px;
  max-width: 100%;
  opacity: 1;
  transition: opacity 0.3s ease-in-out 0s;
}
.brands-grid a:hover img,
.brands-grid a:focus img {
  opacity: 0.45;
}

/* EIM.fm ships no logo file — its brand is the wordmark itself. */
.brand-wordmark {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--contrast);
  opacity: 1;
  transition: opacity 0.3s ease-in-out 0s;
}
.brand-wordmark span { font-weight: 400; color: var(--contrast-2); }
.brand-wordmark:hover,
.brand-wordmark:focus { opacity: 0.45; }

/* Reads as a cancellation stamp: BAOB red, angled bottom-left → top-right. */
.sunset-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--base-3);
  background-color: var(--accent);
  border-radius: 2px;
  padding: 3px 8px;
}

@media (max-width: 767px) {
  .brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; row-gap: 45px; }
  .brand-wordmark { font-size: 1.6rem; }
}

/* --------------------------------------------------------------------------
   Subpages (Human Rights, Privacy, 404)
   -------------------------------------------------------------------------- */

.page-hero {
  background-color: #efefef;
  text-align: center;
}

.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 20px 40px;
}

.headline-rule h1 { position: relative; padding-bottom: .5rem; }
.headline-rule h1::before {
  content: '';
  position: absolute;
  display: block;
  height: 60px;
  border-left: 1px solid var(--contrast);
  left: 50%;
  transform: translateX(-50%);
  top: -66px;
}

.page-tagline {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--contrast-2);
  margin-top: 0;
}

.page-wrap {
  max-width: var(--container);
  margin: 0 auto;
  background-color: var(--base-3);
}

.page-content {
  padding: 80px calc(20px + 4rem);
}

.page-content .last-updated { font-size: 13px; }

@media (max-width: 767px) {
  h1 { font-size: 2.2rem; }
  .headline-rule h1::before { display: none; }
  .page-content { padding: 60px 20px; }
}

/* --------------------------------------------------------------------------
   Footer CTA (black band)
   -------------------------------------------------------------------------- */

.cta {
  background-color: #000000;
  color: var(--base-3);
  overflow: hidden;
  position: relative;
}

.cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 65px 20px 75px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cta h2 {
  color: var(--base-3);
  font-size: 2.2rem;
  margin: 0 0 10px;
}

.cta-copy p { font-size: 17px; }

.btn-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: var(--base-3);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: .1em;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease-in-out 0s;
  border-radius: 2px;
  padding: 10px 20px;
}
.btn-email:hover, .btn-email:focus {
  background-color: var(--highlight);
  color: #000000;
  transform: scale(1.05);
}

.cta-connect {
  justify-self: end;
  margin-left: 140px;
  text-align: left;
}
.cta-connect a { color: var(--base-3); }
.cta-connect a:hover { color: var(--base); }

.connect-label {
  color: #bbbbbb;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: .2em;
  margin: 0 0 0.8em;
}
.connect-label strong { font-weight: normal; }

.social-row { padding-bottom: 2rem; }

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 20px;
  padding-top: 1px;
  text-decoration: none;
}
/* No blanket fill — each icon carries its own fill/stroke attribute, and the
   cal.com icon is stroke-based (fill="none"). */
.icon-link svg {
  width: 1em;
  height: 1em;
  transition: all 0.3s ease-in-out 0s;
}
.icon-link:hover svg, .icon-link:focus svg {
  color: var(--highlight);
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .cta-inner { padding: 120px 60px; row-gap: 60px; }
}
@media (max-width: 767px) {
  .cta-inner { grid-template-columns: 1fr; padding: 100px 40px; }
  .cta h2 { font-size: 1.6rem; }
  .cta-connect { justify-self: start; margin-left: 0; }
}

/* --------------------------------------------------------------------------
   Sub-footer (white band)
   -------------------------------------------------------------------------- */

.sub-footer { background-color: var(--base-3); }

.sub-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}
.footer-brand img { width: 95px; }

.copyright {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.copyright a { color: var(--contrast); }
.copyright a:hover { color: var(--contrast-3); }

.footer-links { font-size: 13px; }
.footer-links a {
  color: var(--contrast);
  text-decoration: underline;
  font-weight: 500;
  margin-right: 20px;
}
.footer-links a:last-child { margin-right: 0; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 767px) {
  .sub-footer-inner { flex-direction: column; row-gap: 20px; padding: 30px 40px; }
  .footer-brand { flex-direction: column; }
  .copyright { text-align: center; line-height: 1.4; }
  .footer-links { text-align: center; width: 100%; }
}

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */

.back-to-top {
  font-size: 20px;
  border-radius: 3px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  line-height: 40px;
  width: 40px;
  text-align: center;
  z-index: 10;
  background-color: var(--accent);
  color: #ffffff;
  text-decoration: none;
  transition: opacity 300ms ease-in-out;
  opacity: 0;
  transform: translateY(1000px);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover, .back-to-top:focus {
  background-color: var(--accent-2);
  color: var(--base-3);
}
.back-to-top svg { width: 1em; height: 1em; fill: currentColor; vertical-align: -2px; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-page { text-align: center; }
.error-page .page-content { padding: 100px 20px 120px; }
.error-page .btn-email { margin-top: 20px; }
