/* =========================================================
   Bricks adjustments
   site.css was written for plain HTML. Inside Bricks a few things differ:
   icons are Font Awesome <i> elements instead of inline SVGs, rich-text
   elements add a wrapper, and Bricks adds its own wrappers around the page.
   ========================================================= */

/* Bricks sets the root font size to 62.5% (1rem = 10px). This site's sizes are written for the
   browser default (1rem = 16px), so restore it; otherwise every text size shrinks to 62.5%. */
html { font-size: 100%; }

/* Bricks page wrappers */
#brx-content { overflow-x: clip; }

/* Logo: the orange dot */
.logo span { color: inherit; }
.logo .logo__dot { color: var(--c-orange); }
.logo > * { margin: 0; }

/* Font Awesome icons that replace the inline SVG arrows */
.btn i, .link-arrow i { font-size: 13px; line-height: 1; }
.carousel__btn i { font-size: 15px; line-height: 1; }
.project-card__go i { font-size: 13px; line-height: 1; }
.link-arrow i { transition: transform .15s ease; }
.link-arrow:hover i { transform: translateX(3px); }
.social i { color: #fff; font-size: 17px; line-height: 1; }
.social a:hover i { color: var(--c-lime); }

/* Rich-text wrappers */
.hero__list ul { list-style: none; margin: 0; padding: 0; }

/* Buttons rendered as <button> by Bricks: reset browser defaults */
button.menu-toggle, button.carousel__btn, button.menu-overlay__close { font-family: inherit; }

/* Text elements Bricks wraps in spans/divs */
.btn > span, .link-arrow > span { line-height: 1; }
.site-footer__sign > span, .hero__aside > span, .services__intro > span,
.about__aside-note > span, .cta__aside-note > span { display: block; }

/* Mobile menu overlay
   When you're logged in, the WordPress admin bar sits on top of everything and was covering
   the overlay's top row (logo + close button). Push that row below the bar, respect phone
   notches, and give the close button a proper tap target. */
.menu-overlay { padding-top: max(20px, env(safe-area-inset-top)); overflow-y: auto; }
.admin-bar .menu-overlay { padding-top: 52px; }
@media (max-width: 782px) { .admin-bar .menu-overlay { padding-top: 66px; } }
.menu-overlay__close {
  display: grid; place-items: center; width: 48px; height: 48px; margin-right: -10px;
  font-size: 2.6rem; line-height: 1; color: var(--c-ink); background: none; border: 0; cursor: pointer;
}
.menu-overlay__close:hover { color: var(--c-orange); }

/* =========================================================
   Inner pages (round 2)
   ========================================================= */

/* Sections that hide themselves when their content is empty.
   Bricks fills data-requires="x{field}": an empty field leaves just "x". */
[data-requires="x"] { display: none !important; }
[data-unless]:not([data-unless="x"]) { display: none !important; }

/* Project page */
.project-hero__cta { margin-top: 26px; }
.overview__text p { max-width: 62ch; margin: 16px 0 0; }
.press-list i { font-size: 14px; }
.back-link i { font-size: 13px; }
.back-link:hover i { transform: translateX(-3px); }

/* Stills gallery (Bricks Image Gallery element) shown as a sliding row */
.stills-track, .stills-track > ul {
  display: grid !important; grid-template-columns: none !important; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px !important;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  list-style: none; margin: 0; padding: 0;
}
.stills-track::-webkit-scrollbar, .stills-track > ul::-webkit-scrollbar { display: none; }
.stills-track li { scroll-snap-align: start; margin: 0; padding: 0 !important; width: auto !important; }
.stills-track figure { margin: 0; }
.stills-track img { width: 100%; height: auto !important; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
@media (max-width: 900px) { .stills-track, .stills-track > ul { grid-auto-columns: 78%; } }

/* About page */
.about-hero__note ul { list-style: none; margin: 0; padding: 0; font-size: 1.15rem; line-height: 1.15; }
.short-version__hand > span { display: block; }
.longer-version__text p { margin: 0 0 16px; }

/* Notes page */
.load-more button.btn { font-family: var(--f-ui); }
.closing__note > span { display: inline; }

/* Contact page: style the Bricks Form element like the design */
.reach-list i { font-size: 24px; width: 26px; text-align: center; color: var(--c-ink); }
.reach-list strong { display: block; font-family: var(--f-ui); font-size: .9375rem; font-weight: 800; }
.reach-list span { display: block; }
.reach__sticky > span { display: block; }
.form-card { display: flex; flex-direction: column; }
.form-card .form-group { display: flex; flex-direction: column; gap: 8px; width: 100% !important; margin: 0 0 20px; padding: 0; }
.form-card label { font-family: var(--f-ui); font-size: .875rem; font-weight: 700; color: var(--c-ink); }
.form-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.form-card select, .form-card textarea {
  font-family: var(--f-ui); font-size: 1rem; line-height: 1.4; color: var(--c-ink);
  background: #f1ece4; border: 1.5px solid #e2d9cb; border-radius: 8px; padding: 13px 14px; width: 100%; box-shadow: none;
}
.form-card textarea { min-height: 150px; resize: vertical; }
.form-card select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151314' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--c-ink); background-color: #fff; }
.form-card .submit-button-wrapper { margin-top: 4px; }
.form-card button[type="submit"], .form-card .bricks-button {
  display: inline-flex; align-items: center; gap: 12px; width: auto;
  font-family: var(--f-ui); font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: var(--c-lime); color: var(--c-ink); border: 0; border-radius: 999px; padding: 15px 42px; cursor: pointer;
  transition: transform .15s ease;
}
.form-card button[type="submit"]:hover { transform: translateY(-2px); }
.form-card .message, .form-card .form-message { font-family: var(--f-ui); font-size: .9375rem; margin-top: 16px; padding: 12px 14px; border-radius: 8px; }
.form-card .message.success { background: #eef8c9; }
.form-card .message.error { background: #fde3db; }
