/* =====================================================================
   Padbangers — Site styles
   Shared styles for the home page, contact and imprint.
   Uses the same light palette as the converter landing page
   (dark display header/footer, cream body, cyan + orange accents).
   ===================================================================== */

/* ---- Design tokens (override framework.css) ------------------------- */
:root {
  --bg: #ecebe6;
  --bg-2: #e3e1da;
  --panel: #f4f3ef;
  --edge: #c4c2ba;
  --edge-dark: #a6a49c;
  --display: #161616;
  --display-2: #232323;
  --text: #2a2a28;
  --text-dim: #5f6061;
  --cyan: #1ec8e6;
  --cyan-dim: #15a6c0;
  --orange: #ff7a00;
  --orange-dim: #e86a00;
  --red: #e30613;

  --container: 1080px;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  /* sticky footer: body fills the viewport, footer pushed to the bottom */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan-dim); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; }

main { flex: 1 0 auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

/* ---- Header / brand + nav ------------------------------------------ */
.topstrip {
  display: flex; align-items: center; justify-content: center;
  background: #0c0c0c; padding: 5px 0; border-bottom: 1px solid #000;
}
.topstrip img { height: 26px; width: auto; display: block; }

.site-header {
  background: linear-gradient(var(--display-2), var(--display));
  border-bottom: 2px solid #000;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px;
  max-width: var(--container); margin: 0 auto; padding: 18px 28px;
}
.site-header__brand { display: inline-flex; min-width: 0; }
/* logo is a wide 1200x180 banner — size it by width, keep height auto
   so the aspect ratio is preserved and it never distorts/clips */
.site-header__logo {
  width: clamp(200px, 30vw, 300px);
  height: auto; max-width: 100%;
}
.site-header__brand:hover { text-decoration: none; }

.site-nav {
  display: flex; align-items: center; gap: 26px;
}
.site-nav a { color: #d8dde3; font-size: 16px; font-weight: 600; }
.site-nav a:hover { color: #fff; text-decoration: none; }

/* social icon links */
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; color: #d8dde3;
  transition: color 0.18s ease, transform 0.18s ease;
}
.social:hover { color: #fff; transform: translateY(-1px); }
.social svg { width: 28px; height: 28px; display: block; }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius-sm); padding: 13px 28px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: filter 0.18s ease,
    background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--primary { background: linear-gradient(var(--cyan), var(--cyan-dim)); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); text-decoration: none; color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--edge-dark); }
.btn--ghost:hover { background: var(--bg-2); text-decoration: none; color: var(--text); }

/* ---- Hero (home) --------------------------------------------------- */
.hero {
  text-align: center;
  padding: 56px 28px 40px;
  max-width: var(--container); margin-inline: auto;
}
.hero h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 12px; }
.hero p  { color: var(--text-dim); font-size: 18px; max-width: 46ch; margin: 0 auto; }

/* ---- Showcase cards (the 2 columns) -------------------------------- */
.showcase { padding: 24px 28px 72px; max-width: var(--container); margin-inline: auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--edge);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  color: var(--text);
}
.card:hover {
  border-color: var(--cyan); transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12); text-decoration: none;
}

.showcase-card__media {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border-bottom: 1px solid var(--edge);
  padding: 28px;
  /* fixed, equal height for both cards' media areas */
  height: 320px;
}
.showcase-card__media img {
  max-height: 100%; max-width: 100%; width: auto; object-fit: contain;
}

.yt-icon {
  width: 120px; height: 120px; border-radius: 28px; background: #ff0000;
  display: grid; place-items: center; transition: transform 0.18s ease;
}
.card:hover .yt-icon { transform: scale(1.05); }
.yt-icon svg { width: 58px; height: 58px; }

.showcase-card__body { padding: 24px 24px 32px; text-align: center; }
.showcase-card__body h2 { font-size: 24px; margin: 0 0 8px; }
.showcase-card__body p { color: var(--text-dim); margin: 0 0 24px; }

/* ---- Footer --------------------------------------------------------- */
.site-footer {
  flex-shrink: 0;
  background: linear-gradient(var(--display-2), var(--display)); color: #cfcec9;
  text-align: center; padding: 28px; font-size: 13px;
}
.site-footer__links {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 14px;
}
.site-footer__links a { color: var(--cyan); }
.site-footer__social {
  display: flex; gap: 14px; justify-content: center; margin-bottom: 14px;
}
.site-footer small { color: #8b8c8d; }

/* ---- Generic content page (contact, imprint) ----------------------- */
.page {
  max-width: 820px; margin-inline: auto;
  padding: 40px 28px 72px;
}
.page h1 { font-size: clamp(28px, 5vw, 36px); margin: 0 0 8px; }
.page__lead { color: var(--text-dim); font-size: 18px; margin: 0 0 32px; }
.page h2 {
  font-size: 22px; margin: 40px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--edge);
}
.page p { color: var(--text-dim); }
.page a { color: var(--cyan-dim); }

.back-link { display: inline-block; margin-bottom: 24px; font-size: 14px; color: var(--text-dim); }

/* ---- Contact form --------------------------------------------------- */
.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field input,
.field textarea {
  font: inherit; color: var(--text);
  background: var(--panel); border: 1px solid var(--edge-dark);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.field input:focus,
.field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(30,200,230,0.18);
}
.field textarea { min-height: 150px; resize: vertical; }
.form .btn { justify-self: start; }
/* honeypot — visually & semantically hidden, still in the DOM for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* inline AJAX status message */
.form-status {
  margin: 4px 0 0; padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
}
.form-status.is-success {
  color: #155724; background: #d7f0dd; border: 1px solid #a8d8b6;
}
.form-status.is-error {
  color: #7a1620; background: #f7d9dc; border: 1px solid #e3a5ac;
}

/* Imprint */
.imprint address { font-style: normal; color: var(--text-dim); line-height: 1.6; }

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  /* stack the header: logo centered on top, nav centered below */
  .site-header__inner {
    flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  }
  .site-header__logo { width: 220px; height: auto; }
  .site-nav { justify-content: center; gap: 20px; }
}
