/* ══════════════════════════════════════════════════════════════
   LogoForge.art — site.css
   Editorial · bold · red/black/off-white
   Onest 800 display · DM Sans body
   ══════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Design tokens ── */
:root {
  --c-bg:        #e2edf5;   /* warm off-white */
  --c-bg-light:  #f0f3f5;   /* warm off-white */
  --c-ink:       #111111;   /* near-black */
  --c-white:     #fff;   /* white */
  --c-red:       #ee451b;   /* editorial red */
  --c-green:     #54b1a4;   /* editorial red */
  --c-blue:      #56566d;
  --c-dark:      #47515c;   /* editorial red */
  --c-mid:       #888888;   /* secondary text */
  --c-rule:      #3E444B;   /* divider */
  --c-rule-lgh:  #d2dde2;   /* divider */
  --c-inverse:   #F0EEE8;   /* text on dark */

  --f-display: 'Onest', 'Arial Black', sans-serif;
  --f-body:    'DM Sans', system-ui, sans-serif;

  --fw-display: 800;
  --fw-body:    400;
  --fw-medium:  500;

  /* Type scale */
  --t-hero:   clamp(3.5rem, 10vw, 9rem);
  --t-h1:     clamp(2.4rem, 5vw,  4.5rem);
  --t-h2:     clamp(1.6rem, 3vw,  2.5rem);
  --t-h3:     clamp(1.1rem, 2vw,  1.4rem);
  --t-body:   1rem;
  --t-small:  0.8125rem;
  --t-label:  0.65rem;

  /* Layout */
  --max-w:    1200px;
  --gutter:   clamp(1.25rem, 4vw, 3rem);
  --section-gap: clamp(4rem, 8vw, 8rem);

  --radius: 3px;
  --radius-large: 999px;
  --tr: 0.15s ease;
}

/* ── Base ── */
html {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body { min-height: 100vh; }

/* ── Container ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Typography ── */
.display {
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: var(--t-hero);
  line-height: 1;
  letter-spacing: -0.06em;
}
.display--span { color: var(--c-green); }
.display--inverse { color: var(--c-inverse); }

h1, .h1 {
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: var(--t-h1);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
h2, .h2 {
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h3, .h3 {
  font-family: var(--f-body);
  font-weight: var(--fw-medium);
  font-size: var(--t-h3);
  line-height: 1.3;
}

p { max-width: 62ch; }
p + p { margin-top: 1em; }

.label {
  font-family: var(--f-body);
  font-size: var(--t-label);
  font-weight: var(--fw-display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.label--red { color: var(--c-red); }

.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: #444;
  max-width: 52ch;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--f-body);
  font-size: var(--t-label);
  font-weight: var(--fw-display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  border-radius: var(--radius-large);
  cursor: pointer;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
  white-space: nowrap;
  background: transparent;
}
.btn--red {
  background: var(--c-red);
  border-color: var(--c-red);
  color: #fff;
}
.btn--dark {
  background: var(--c-dark);
  border-color: var(--c-dark);
  color: #fff;
}
.btn--red:hover,
.btn--dark:hover { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-bg);}
.btn--outline {
  border-color: var(--c-ink);
  color: var(--c-ink);
}
.btn--outline:hover { background: var(--c-green); border-color: var(--c-green); color: var(--c-bg); }
.btn--outline-inv {
  border-color: var(--c-inverse);
  color: var(--c-inverse);
}
.btn--outline-inv:hover { background: var(--c-inverse); color: var(--c-ink); }
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--t-label);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 76px;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

header .site-logo{
    position: absolute;
}

.site-logo__carousel {
    position: relative;
    width: 180px;
    height: 80px;
}

.site-logo__carousel img {
    position: absolute;
    left: 0;
    top: 20px;
    max-height: 90px;
    opacity: 0;
    transition: opacity .8s ease;
}

.site-logo__carousel img:first-child {
    opacity: 1;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  margin-right: auto;
  margin-left: 200px;
}
.site-nav__link {
  font-size: var(--t-small);
  font-weight: var(--fw-display);
  color: var(--c-ink);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--tr);
  text-decoration: none;
}
.site-nav__link:hover,
.site-nav__link--active { color:var(--c-green); }
.site-nav__link--active { font-weight: 600; }

.site-header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.site-header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  transition: transform var(--tr);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1.5rem var(--gutter);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-rule);
}
.mobile-nav--open { display: flex; }
.mobile-nav__link {
  font-size: 1.1rem;
  font-weight: var(--fw-medium);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--c-rule);
  color: var(--c-ink);
  text-decoration: none;
}
.mobile-nav__link--active { color: var(--c-red); }

/* ── Footer ── */
.site-footer {
  background: var(--c-white);
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.site-logo--footer{
  display: block;
  text-align:left;
}

.site-logo--footer img{max-width: 220px;}

.site-footer__tagline {
  font-size: var(--t-small);
  margin-top: 0.75rem;
  line-height: 1.5;
  max-width: 24ch;
}
.site-footer__col-title {
  font-size: var(--t-label);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  max-width: none;
}
.site-footer__link {
  display: block;
  font-size: var(--t-small);
  color: #000;
  margin-bottom: 0.5rem;
  transition: color var(--tr);
  text-decoration: none;
}
.site-footer__link:hover { color: var(--c-green); }
.site-footer__bottom {
  border-top: 1px solid #eee;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  font-size: var(--t-label);
  color: #666;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
}

.site-footer__bottom p{
  margin: 0 0;
}

/* ── Hero ── */
.hero {
  padding: clamp(5rem, 6vw, 6rem) 0 !important;
  overflow: hidden;
  background-image: url(../img/bg.png);
  background-position: calc(100% + 150px) calc(100% - 50px);
  background-size: contain;
  background-repeat: no-repeat;
}
.hero__eyebrow {
  display: flex;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  margin-bottom: 1.5rem;
}
.hero__headline {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 calc(var(--gutter) - 9px);
}
.hero__headline .display {
  display: block;
}
.hero__body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-top: clamp(2rem, 4vw, 3.5rem);
}
.hero__desc { max-width: 44ch; }
.hero__actions { display: flex; gap: 0.75rem; justify-content: flex-start; align-items: center; }

/* ── Section ── */
.section {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--c-rule-lgh);
}

.section_bg_light{
  background-color: var(--c-bg-light);
}

.section:last-of-type { border-bottom: none; }
.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
  gap: 2rem;
}
.section__header--stacked { flex-direction: column; align-items: flex-start; }
.section__lead { max-width: 44ch; }

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-color: var(--c-rule);
  border-style: solid;
  border-width: 1px 1px 0 1px;
  background-color: rgba(255,255,255,.8);
}
.feature {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
}
.feature:nth-child(3n) { border-right: none; }
.feature__num {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-display);
  color: var(--c-rule);
  line-height: 1;
  margin-bottom: 1.6rem;
}
.feature__title {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 0.3rem;
}
.feature__body {
  font-size: var(--t-small);
  color: #555;
  line-height: 1.6;
  max-width: 32ch;
}

/* ── How-it-works steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: steps;
  background-color: rgba(255,255,255,.8);
}
.step {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-style: solid;
  border-width:1px 0 1px 1px ;
  border-color: var(--c-rule);
  counter-increment: steps;
  position: relative;
}
.step:last-child { border-right-width: 1px; }

.step::before {
  content: counter(steps, decimal-leading-zero);
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--c-rule);
  line-height: 1;
  display: block;
  margin-bottom: 1.6rem;
}
.step__title {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 0.3rem;
}
.step__body {
  font-size: var(--t-small);
  color: #555;
  line-height: 1.6;
  max-width: 32ch;
}

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; }
.faq__item {
  border-bottom: 1px solid var(--c-rule-lgh);
}
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: var(--c-ink);
  cursor: pointer;
  text-align: left;
}
.faq__q svg {
  flex-shrink: 0;
  transition: transform var(--tr);
  color: var(--c-mid);
}
.faq__item--open .faq__q svg { transform: rotate(45deg); }
.faq__a {
  display: none;
  padding-bottom: 1.25rem;
  font-size: var(--t-small);
  color: #555;
  line-height: 1.7;
  max-width: 62ch;
}
.faq__item--open .faq__a { display: block; }

/* ── CTA band ── */
.cta-band {
  background: var(--c-ink);
  color: var(--c-inverse);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  text-align: center;
}
.cta-band .h1 { color: var(--c-inverse); margin-bottom: 1.5rem; }
.cta-band .lead { color: #aaa; margin: 0 auto 2.5rem; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Guide page ── */
.guide-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
}
.guide-toc {
  position: sticky;
  top: 80px;
}
.guide-toc__title {
  font-size: var(--t-label);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-mid);
  margin-bottom: 1rem;
}
.guide-toc__link {
  display: block;
  font-size: var(--t-small);
  color: var(--c-mid);
  padding: 0.35rem 0;
  border-left: 2px solid var(--c-rule);
  padding-left: 0.75rem;
  text-decoration: none;
  transition: color var(--tr), border-color var(--tr);
}
.guide-toc__link:hover { color: var(--c-ink); border-color: var(--c-ink); }
.guide-toc__link--active { color: var(--c-red); border-color: var(--c-red); }

.guide-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 3rem;
  border-top: 1px solid var(--c-rule);
}
.guide-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.guide-content h3 {
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.guide-content p { margin-bottom: 1rem; color: #444; }
.guide-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: #444;
}
.guide-content li { margin-bottom: 0.4rem; font-size: var(--t-small); }

/* ── About / prose page ── */
.prose-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
}
.prose-page h1 { margin-bottom: 2rem; }
.prose-page h2 { font-size: clamp(1.2rem, 2vw, 1.6rem); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose-page p { color: #111; margin-bottom: 1rem; }
.prose-page ul { padding-left: 1.25rem; margin-bottom: 1rem; color: #444; }
.prose-page li { margin-bottom: 0.4rem; }

/* ── Generator iframe page ── */
.generator-page {
  height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}
.generator-page iframe {
  flex: 1;
  width: 100%;
  border: none;
}

/* ─── Themnific bridge section ─── */
.section--themnific {
  background: var(--c-ink);
  color: var(--c-inverse);
  border-bottom: none;
}
.section--themnific .section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
}
.section--themnific .label--muted { color: #666; }
.section--themnific .h2 { color: var(--c-inverse); }
.section--themnific .lead { color: #aaa; max-width: 46ch; }

.themnific-bridge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.themnific-bridge__link {
  color: var(--c-red);
  text-decoration: underline;
  text-decoration-color: rgba(224,32,32,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--tr);
}
.themnific-bridge__link:hover { text-decoration-color: var(--c-red); }

.themnific-bridge__btn {
  margin-top: 1.75rem;
  border-color: #444;
  color: #ccc;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.themnific-bridge__btn:hover {
  border-color: var(--c-inverse);
  color: var(--c-inverse);
  background: transparent;
}

.themnific-bridge__card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.themnific-bridge__card-label {
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-inverse);
  margin-bottom: 0.75rem;
}
.themnific-bridge__card-body {
  font-size: var(--t-small);
  color: #777;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: none;
}
.themnific-bridge__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.themnific-bridge__list li {
  font-size: var(--t-small);
  color: #555;
  padding-left: 1rem;
  position: relative;
}
.themnific-bridge__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #333;
}

@media (max-width: 640px) {
  .themnific-bridge { grid-template-columns: 1fr; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3n) { border-right: 1px solid var(--c-rule); }
  .feature:nth-child(2n) { border-right: none; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--c-rule); }
  .step:last-child { border-bottom: none; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { display: none; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-header__burger { display: flex; }
  .hero__body { grid-template-columns: 1fr; }
  .hero__actions { justify-content: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature:nth-child(n) { border-right: none; }
  .section__header { flex-direction: column; align-items: flex-start; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band__actions { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
