/* ============================================================
   Stuckomatic.com — Wix-matching Stylesheet
   Pixel-perfect redesign matching the original Wix visual design.
   Plain HTML/CSS/JS. No frameworks, no build step.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --color-black: rgb(0, 0, 0);
  --color-white: rgb(255, 255, 255);
  --color-light-blue: rgb(128, 164, 240);
  --color-header-border: rgb(22, 106, 234);
  --color-nav-border: rgb(72, 138, 245);
  --color-link: rgb(0, 0, 238);
  --color-focus: rgb(22, 106, 234);

  /* Fonts */
  --font-droid: 'Droid Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-helvetica: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-helvetica-light: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  --font-nav: 'Droid Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Layout */
  --site-width: 1265px;
  --content-width: 980px;
  --header-height: 150px;
  --intro-height: 289px;
  --content-height: 274px;
  --footer-height: 116px;
  --content-gap: 57px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-helvetica);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-black);
  background: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-droid);
  font-weight: 700;
  color: var(--color-black);
  line-height: normal;
}

p {
  margin: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-link);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

/* ============================================================
   HEADER (y=50, h=150px)
   Semi-transparent white overlay on white.
   Logo left, X/Twitter icon right, nav below.
   ============================================================ */
.site-header {
  position: relative;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--color-header-border);
  z-index: 100;
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  height: 100%;
  position: relative;
}

/* Logo: left edge of content column, 11px from header top */
.header-logo {
  position: absolute;
  left: 0;
  top: 11px;
  display: inline-block;
}

.header-logo img {
  width: 293px;
  height: 53px;
}

/* X/Twitter icon: right side, 48px from content column right edge */
.header-social {
  position: absolute;
  right: 48px;
  top: 25px;
  display: inline-block;
  line-height: 0;
}

.header-social img {
  width: 39px;
  height: 39px;
}

/* ============================================================
   NAVIGATION (y=139, below logo)
   Horizontal, 9 items. 14px bold Droid Sans.
   Non-current: black text. Current: white on black.
   ============================================================ */
.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 15px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: var(--color-white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-black);
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: rotate(-45deg); top: 0; }

.site-nav {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: auto;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.site-nav__link {
  display: block;
  padding: 21px 15px;
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav__link:hover {
  text-decoration: none;
  color: var(--color-black);
}

/* Current page: white text on black background */
.site-nav__link[aria-current="page"],
.site-nav__link.is-active {
  background: var(--color-black);
  color: var(--color-white);
}

/* ============================================================
   INTRO SPLIT (y=200, h=289px)
   Left cell: white (633px). Right cell: black (633px).
   Right cell contains white text + email capture form.
   ============================================================ */
.intro-split {
  display: flex;
  width: 100%;
  min-height: var(--intro-height);
}

.intro-split__left {
  flex: 0 0 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.intro-split__left img {
  width: 100%;
  height: auto;
  max-height: calc(var(--intro-height) - 20px);
  object-fit: contain;
}

.intro-split__right {
  flex: 0 0 50%;
  background: var(--color-black);
  padding: 31px 92px 0 105px;
  display: flex;
  flex-direction: column;
}

/* "What we are foremost:" — 20px, Helvetica light, white */
.intro-foremost {
  font-family: var(--font-helvetica-light);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-white);
  margin: 0 0 10px 0;
}

/* "A FRUGAL INCUBATOR" — 38px, Helvetica bold, white */
.intro-tagline {
  font-family: var(--font-helvetica);
  font-size: 38px;
  font-weight: 700;
  line-height: 53.2px;
  color: var(--color-white);
  margin: 0 0 25px 0;
  letter-spacing: 0;
}

/* Email capture form */
.intro-email-form {
  width: 436px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.intro-email-input {
  width: 100%;
  height: 39px;
  padding: 3px 3px 3px 22px;
  border: none;
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-helvetica);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  box-sizing: border-box;
}

.intro-email-input::placeholder {
  color: #999;
}

.intro-email-send {
  width: 100px;
  height: 39px;
  margin-top: 16px;
  align-self: flex-end;
  border: none;
  border-radius: 3px;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-helvetica);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.intro-email-send:hover {
  opacity: 0.85;
}

.intro-email-feedback {
  margin-top: 10px;
  font-family: var(--font-helvetica);
  font-size: 13px;
  color: var(--color-white);
  min-height: 0;
}

.intro-email-feedback.is-visible {
  min-height: 1em;
}

/* ============================================================
   CONTENT STRIP (y=489, h=274px)
   Full-width LIGHT BLUE background.
   Left: page H1. Right: body paragraph + See button.
   ============================================================ */
.content-strip {
  width: 100%;
  background: var(--color-light-blue);
  margin-bottom: var(--content-gap);
}

.content-strip__inner {
  max-width: var(--site-width);
  margin: 0 auto;
  display: flex;
  min-height: var(--content-height);
}

.content-strip__left {
  flex: 0 0 50%;
  padding: 64px 20px 45px 71px;
}

.content-strip__right {
  flex: 0 0 50%;
  padding: 56px 72px 45px 84px;
  display: flex;
  flex-direction: column;
}

/* H1 page heading — 35px, Droid Sans bold, black */
.page-h1 {
  font-family: var(--font-droid);
  font-size: 35px;
  font-weight: 700;
  color: var(--color-black);
  line-height: normal;
}

/* Body paragraph — 16px, Helvetica, black, line-height 22.4px */
.page-body {
  font-family: var(--font-helvetica);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  color: var(--color-black);
  flex: 1 1 auto;
}

.page-body p {
  margin: 0 0 1em 0;
}

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

/* "See [NEXT]" button — black bg, white text, 15px Helvetica bold */
.see-button {
  display: inline-block;
  align-self: flex-end;
  margin-top: 20px;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-helvetica);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 30px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.see-button:hover {
  text-decoration: none;
  color: var(--color-white);
  opacity: 0.88;
}

/* ---------- WHO page portrait ---------- */
.portrait {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 4px;
}

/* ============================================================
   CONTACT PAGE — content strip variant
   ============================================================ */
.content-strip--contact .content-strip__inner {
  display: block;
  min-height: var(--content-height);
  padding: 40px 0;
}

.contact-layout {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-info__heading {
  font-family: var(--font-droid);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 12px;
}

.contact-info__item {
  font-family: var(--font-helvetica);
  font-size: 16px;
  line-height: 22.4px;
  color: var(--color-black);
  margin-bottom: 8px;
}

.contact-info__label {
  font-weight: 700;
}

.contact-form {
  background: var(--color-white);
  padding: 24px;
  margin-bottom: 30px;
  max-width: 600px;
}

.contact-form__heading {
  font-family: var(--font-droid);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-helvetica);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-black);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgb(145, 145, 145);
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-helvetica);
  font-size: 14px;
  font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: -1px;
  border-color: var(--color-focus);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group__error {
  display: none;
  color: #c0392b;
  font-size: 13px;
  margin-top: 4px;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #c0392b;
}

.form-group.has-error .form-group__error {
  display: block;
}

.btn-submit {
  display: inline-block;
  padding: 10px 30px;
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: 0;
  font-family: var(--font-helvetica);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-submit:hover {
  opacity: 0.88;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-feedback {
  display: none;
  padding: 12px;
  margin-bottom: 16px;
  font-family: var(--font-helvetica);
  font-size: 14px;
}

.form-feedback.is-success {
  display: block;
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.form-feedback.is-error {
  display: block;
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

.map-embed {
  margin-top: 20px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* ============================================================
   NEWS PAGE — content strip variant
   ============================================================ */
.content-strip--news .content-strip__inner {
  display: block;
  min-height: var(--content-height);
  padding: 40px 0;
}

.news-layout {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

.news-list {
  margin-top: 24px;
}

/* Article card */
.news-card {
  background: var(--color-white);
  border: 1px solid rgb(145, 145, 145);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.news-card__title {
  font-family: var(--font-droid);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 6px 0;
}

.news-card__date {
  font-family: var(--font-helvetica);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-black);
  margin: 0 0 12px 0;
}

.news-card__body {
  font-family: var(--font-helvetica);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  color: var(--color-black);
  white-space: pre-wrap;
}

/* Empty / error state */
.news-empty {
  font-family: var(--font-helvetica);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px dashed rgb(145, 145, 145);
  padding: 24px;
  text-align: center;
}

.news-empty--error {
  color: #b71c1c;
  border-color: #ef9a9a;
}

/* ============================================================
   FOOTER NEWS SECTION (injected above the site footer on
   every page except the dedicated NEWS page)
   Light blue strip matching the content-strip design.
   ============================================================ */
.footer-news {
  width: 100%;
  background: var(--color-light-blue);
  padding: 34px 0;
}

.footer-news__inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 71px;
}

.footer-news__heading {
  font-family: var(--font-droid);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 18px 0;
}

.footer-news__list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.footer-news__card {
  background: var(--color-white);
  border: 1px solid rgb(145, 145, 145);
  padding: 16px 20px;
}

.footer-news__card-title {
  display: block;
  font-family: var(--font-droid);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-link);
  text-decoration: none;
  margin: 0 0 6px 0;
}

.footer-news__card-title:hover {
  text-decoration: underline;
}

.footer-news__card-date {
  font-family: var(--font-helvetica);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-black);
  margin: 0;
}

/* ============================================================
   FOOTER (y=820, h=116px)
   Full-width BLACK. Centered white text, 12px Helvetica.
   ============================================================ */
.site-footer {
  width: 100%;
  background: var(--color-black);
  padding: 25px 0;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.footer-line {
  font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--color-white);
  margin: 0;
  padding: 0;
}

.footer-line a {
  color: var(--color-white);
  text-decoration: none;
}

.footer-line a:hover {
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE — Mobile (max-width: 767px)
   ============================================================ */
@media (max-width: 1264px) {
  .content-strip__inner {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 90px;
  }

  /* Header */
  .header-logo {
    top: 8px;
  }

  .header-logo img {
    width: 200px;
    height: auto;
  }

  .header-social {
    display: none;
  }

  /* Nav toggle visible on mobile */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-header-border);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 99;
  }

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

  .site-nav__list {
    flex-direction: column;
  }

  .site-nav__link {
    padding: 14px 20px;
    border-bottom: 1px solid #e0e0e0;
  }

  .site-nav__link[aria-current="page"],
  .site-nav__link.is-active {
    background: var(--color-black);
    color: var(--color-white);
  }

  /* Intro split — stack vertically */
  .intro-split {
    flex-direction: column;
  }

  .intro-split__left {
    flex: 0 0 auto;
    width: 100%;
    min-height: 120px;
    padding: 15px;
  }

  .intro-split__right {
    flex: 0 0 auto;
    width: 100%;
    padding: 25px 20px 30px 20px;
  }

  .intro-tagline {
    font-size: 30px;
    line-height: 1.3;
  }

  /* Content strip — stack vertically */
  .content-strip__inner {
    flex-direction: column;
  }

  .content-strip__left,
  .content-strip__right {
    flex: 0 0 auto;
    width: 100%;
    padding: 24px 20px;
  }

  .content-strip__right {
    padding-top: 0;
  }

  .see-button {
    align-self: flex-start;
  }

  /* Contact */
  .contact-form {
    padding: 16px;
  }

  /* Footer news section */
  .footer-news__inner {
    padding: 0 20px;
  }

  .footer-news__list {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    padding: 0 15px;
  }
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
