/* TB Art Studio: shared base styles. Page layout is written inline in each HTML file. */
@font-face {
  font-family: 'Beezle';
  src: url('/assets/fonts/Beezle.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a { color: #1F2757; }
a:hover { color: #5165AF; }
:focus-visible { outline: 3px solid #E96F3C; outline-offset: 2px; }
[id] { scroll-margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Header menu ---------- */
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .site-header { flex-wrap: nowrap !important; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
    min-height: 48px; padding: 0 16px;
    border: 2px solid #1F2757; border-radius: 999px; background: #FFFFFF; color: #1F2757;
    font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  }
  .nav-toggle-close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

  /* Without JavaScript the links stay visible and simply wrap under the logo. */
  .js .site-nav { display: none !important; }
  .js .site-nav.is-open {
    display: flex !important; flex-direction: column; flex-wrap: nowrap !important;
    align-items: stretch !important; gap: 0 !important;
    position: absolute; left: 16px; right: 16px; top: calc(100% - 4px); z-index: 20;
    padding: 10px; background: #FFFFFF;
    border: 1.5px solid #1F2757; border-radius: 18px;
    box-shadow: 0 22px 40px -18px rgba(31, 39, 87, 0.55);
  }
  .js .site-nav.is-open a {
    min-height: 52px !important; padding: 0 14px; border-radius: 10px;
    font-size: 18px; justify-content: flex-start;
  }
  .js .site-nav.is-open a:last-child { margin-top: 8px; justify-content: center; }
  html:not(.js) .site-header { flex-wrap: wrap !important; }
  html:not(.js) .nav-toggle { display: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .site-header img { width: 56px !important; height: 56px !important; }
  footer a { display: inline-flex; align-items: center; min-height: 44px !important; }
  footer img { width: 80px !important; height: 80px !important; }

  /* Paint sweeps beside the request headings land on the text in one column: tuck them into the corner. */
  :is(#request, #order, #book, #plan, #inquire) > img[src*="/sweep-"] {
    width: 260px !important; right: -150px !important; top: -70px !important;
  }
  /* The homepage hero sweep hangs below the hero; on a phone that lands on the "For all levels" list. */
  section:first-of-type > img[src*="/sweep-"] { display: none; }
  /* "Meet Tetiana": keep the sweep behind the photo instead of under the heading. */
  #about > img[src*="/sweep-"] { width: 520px !important; left: -150px !important; top: 0 !important; }

  /* Form dropdowns: price goes under the name instead of squeezing both into narrow columns. */
  :is([data-dd-button], [data-dd-list] [role="option"]) {
    display: grid !important; grid-template-columns: auto 1fr auto; column-gap: 12px; row-gap: 2px;
    flex-shrink: 0;
  }
  :is([data-dd-button], [data-dd-list] [role="option"]) > :nth-child(1),
  :is([data-dd-button], [data-dd-list] [role="option"]) > :nth-child(4) { grid-row: 1 / 3; align-self: center; }
  :is([data-dd-button], [data-dd-list] [role="option"]) > :nth-child(2) { grid-column: 2; grid-row: 1; }
  :is([data-dd-button], [data-dd-list] [role="option"]) > :nth-child(3) { grid-column: 2; grid-row: 2; font-size: 14px; }
  :is([data-dd-button], [data-dd-list] [role="option"]) > :nth-child(4) { grid-column: 3; }
}
