/* =============================================================
   Kitty Ritig — static rebuild of the WordPress (Phlox Pro +
   Elementor) site. Layout values come from the original
   Elementor page data; breakpoints match Elementor's:
   desktop ≥1025px, tablet 768–1024px, phone ≤767px.
   ============================================================= */

:root {
  --ink: #000000;
  --text: #3d3d3d;
  --line: #eaeaea;
  --footer-text: #a0a0a0;
  --footer-icon: #c6c6c6;
  --accent: linear-gradient(90deg, rgb(213, 88, 200) 0%, rgb(36, 210, 146) 100%);
  --font: "VT323", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--font); margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 8px 16px; z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------------------------------------------------------------
   Home — sketch board (page "Home")
   Each .row is one Elementor section. Per-row CSS variables:
     --cols / --cols-t / --cols-m   column widths (desktop/tablet/phone)
     --mt, --mb (+ -t / -m)         section margins
     --pad-m                        section padding on phones
   Per-column:  --cm-m / --cp-m  column margin / padding on phones
   Per-sketch:  --mg-m  widget margin on phones
   --------------------------------------------------------------- */
.board { padding-bottom: 40px; }

.row {
  display: grid;
  grid-template-columns: var(--cols);
  align-items: start;
  max-width: 1210px;           /* 1140px boxed container + 2 × 35px padding */
  margin: var(--mt, 0) auto var(--mb, 0);
  padding: 0 35px;
}

.col {
  min-width: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sketch {
  display: block;
  width: 100%;
  line-height: 0;
}
.sketch img { width: 100%; }
button.sketch {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* spacer columns that only exist in the tablet/phone layouts */
.narrow-only { display: none; }

@media (max-width: 1024px) {
  .row {
    grid-template-columns: var(--cols-t, var(--cols));
    margin-top: var(--mt-t, var(--mt, 0));
    margin-bottom: var(--mb-t, var(--mb, 0));
  }
  .narrow-only { display: flex; }
}

@media (max-width: 767px) {
  .row {
    grid-template-columns: var(--cols-m, var(--cols-t, var(--cols)));
    margin-top: var(--mt-m, var(--mt-t, var(--mt, 0)));
    margin-bottom: var(--mb-m, var(--mb-t, var(--mb, 0)));
    padding: var(--pad-m, 0 35px);
  }
  .col { margin: var(--cm-m, 0); padding: var(--cp-m, 10px); }
  .sketch { margin: var(--mg-m, 0); width: auto; }
}

/* Entrance animation: first row fades in from the left on desktop
   (Phlox "fade in left", 3000ms, easeOutQuart) */
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  .js .reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 3000ms var(--ease-out), transform 3000ms var(--ease-out);
  }
  .js .reveal-left.is-visible { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   About page
   --------------------------------------------------------------- */
.about {
  max-width: 1300px;
  min-height: 728px;
  margin: -55px auto 0;
  padding: 50px 100px 100px;
  display: flex;
  align-items: center;
}
.about__inner { width: 100%; }

.modern-heading {
  position: relative;
  text-align: center;
}
.about__title {
  font-size: 50px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: .3px;
  color: var(--ink);
  margin: 0 0 20px;
}
.about__desc {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}
.about__desc p { margin: 0 0 1em; }
.about__desc p:last-child { margin-bottom: 0; }

.divider {
  display: block;
  width: 97px;
  height: 5px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
  position: absolute;
  top: 25px;
  left: -120px;
  z-index: 1;
}

.about__seal {
  width: 150px;
  margin: 20px auto 0;
}

@media (max-width: 1024px) {
  /* overflow-x: the heading slides in from the right; don't let it widen the page */
  .about { min-height: 0; margin-top: 25px; padding: 0; overflow-x: clip; }
  .about__inner { padding: 0 70px; }
  .modern-heading { margin-top: 45px; }
  .divider { position: relative; top: 0; left: 0; margin: 0 auto; }
  .about__title { margin-top: 45px; }
  .about__desc { margin-top: 50px; }
}
@media (max-width: 767px) {
  .about { padding: 0 25px 40px; }
  .about__inner { padding: 0; }
  .about__title { font-size: 40px; line-height: 48px; }
}

/* Heading fades in from the right (Phlox "fade in right", 3000ms) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 3000ms var(--ease-out), transform 3000ms var(--ease-out);
  }
  .js .reveal-right.is-visible { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   Request popup (Popup Maker "Light Box" theme + WPForms form)
   --------------------------------------------------------------- */
.popup {
  width: min(90vw, 440px);
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 30px #020202;
  overflow: visible;
}
.popup::backdrop { background: rgba(10, 10, 10, .67); }
.popup[open] { animation: popup-in 350ms var(--ease-out); }
.popup[open]::backdrop { animation: fade-in 350ms ease-out; }
@keyframes popup-in {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .popup[open], .popup[open]::backdrop { animation: none; }
}

.popup__body {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px 35px 35px;
  border-radius: 20px;
}

.popup__close {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #000;
  color: #fff;
  font: 700 22px/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(2, 2, 2, .6);
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  z-index: 2;
}

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 19px; font-weight: 700; color: var(--ink); }
.req { color: #ff0000; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 19px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .98);
  border-radius: 0;
  padding: 8px 2px;
  transition: all ease-out .3s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-width: 2px;
  padding-bottom: 7px;
}
.field [aria-invalid="true"] { border-bottom-color: #d63637; }
.field__error { color: #d63637; font-size: 17px; }
.field__error:empty { display: none; }

.btn {
  appearance: none;
  justify-self: start;
  width: 200px;
  max-width: 100%;
  font: inherit;
  font-size: 20px;
  color: #fff;
  background: #000;
  border: 0;
  border-radius: 0;
  padding: 10px 15px;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 442px) {
  .btn { width: 100%; }
}

/* spam trap: hidden from people, bots fill it in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin: 0; font-size: 18px; }
.form__status a { color: inherit; }
.form__status:empty { display: none; }
.form__status.is-error { color: #d63637; }

.popup__thanks {
  font-size: 22px;
  color: var(--ink);
  padding: 20px 0 5px;
}
.popup__thanks p { margin: 0; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  max-width: 1210px;
  margin: 0 auto;
  padding: 15px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer__brand { display: flex; align-items: center; gap: 20px; }
.footer-logo img { height: 50px; width: auto; }
.copyright { margin: 0; font-size: 15px; color: var(--footer-text); }
.footer-social {
  color: var(--footer-icon);
  display: inline-flex;
  padding: 6px;
  transition: color .2s;
}
.footer-social:hover { color: var(--ink); }
.footer-social svg { width: 18px; height: 18px; }

@media (max-width: 767px) {
  .footer-logo, .footer-social { display: none; }
  .site-footer__inner { justify-content: center; padding: 15px; text-align: center; }
}
