/* Parabolic Arts — site styles.
   Page layouts use the same 24-column grid as the old Squarespace site: each page's <style>
   block positions its blocks (.fe-block-…) with grid-area. This file holds everything shared. */

:root {
  --sqs-site-gutter: 4vw;
  --sqs-mobile-site-gutter: 6vw;
  --sqs-site-max-width: 1920px;

  --black: #000;
  --white: #fff;
  --light: #f5f5f5;
  --line: rgba(0, 0, 0, 0.12);

  --font-body: "Poppins", system-ui, sans-serif;
  /* Squarespace used Proxima Nova (licensed to Squarespace only); Figtree is a close free match. */
  --font-heading: "Figtree", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--white);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2vw;
  min-height: 98px;
  padding: 0 var(--sqs-site-gutter);
  max-width: var(--sqs-site-max-width);
  margin: 0 auto;
}
.site-title {
  font-family: var(--font-heading);
  font-size: 24.6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: clamp(18px, 3.3vw, 64px);
  row-gap: 6px;
}
.site-nav a {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  padding: 0.1em 0;
}
.site-nav a:hover { opacity: 0.6; }
/* Tighter spacing once the Shop link is showing, so the menu stays on one line. */
.site-nav:has(.shop-link:not([hidden])) { column-gap: clamp(14px, 2.2vw, 48px); }
.site-nav a.is-active { font-weight: 700; }

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: none;
  padding: 6px;
  cursor: pointer;
  color: inherit;
}
.cart-button[hidden], .shop-link[hidden] { display: none; }
.cart-count {
  position: absolute; top: -2px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px;
  background: var(--black); color: var(--white);
  font-size: 11px; line-height: 18px; text-align: center;
}

.menu-toggle {
  display: none;
  width: 34px; height: 34px;
  border: 0; background: none; padding: 0;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 2px; right: 2px; height: 1px; background: var(--black);
  transition: transform 0.25s, top 0.25s, opacity 0.25s;
}
.menu-toggle span:nth-child(1) { top: 10px; }
.menu-toggle span:nth-child(2) { top: 17px; }
.menu-toggle span:nth-child(3) { top: 24px; }
body.nav-open .menu-toggle span:nth-child(1) { top: 17px; transform: rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .header-inner { min-height: 80px; }
  .site-title { font-size: 22px; }
}

@media (max-width: 767px) {
  .header-inner { min-height: 45px; padding: 6px var(--sqs-mobile-site-gutter); gap: 12px; }
  .site-title { font-size: 16px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 45px 0 0 0;
    z-index: 40;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 22px;
    padding: 12vh var(--sqs-mobile-site-gutter);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }
  .site-nav a { font-size: 22px; letter-spacing: 0.08em; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav { opacity: 1; visibility: visible; }
}

/* ---------- sections ---------- */

.page-section {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: var(--minh-d, 0);
}
.page-section > .content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--pad-d, 0) 0;
}
.page-section .content {
  display: grid;
  width: 100%;
}
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) { .hide-d { display: none !important; } }
@media (max-width: 767px) {
  .hide-m { display: none !important; }
  .page-section { min-height: var(--minh-m, 0); }
  .page-section > .content-wrapper { padding: var(--pad-m, 0) 0; }
}

/* ---------- fluid-engine blocks ---------- */

.fe-block { position: relative; min-width: 0; }
.fe-block .sqs-block {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sqs-html-content { width: 100%; overflow-wrap: break-word; }

.sqs-html-content > :first-child { margin-top: 0; }
.sqs-html-content > :last-child { margin-bottom: 0; }

.sqs-html-content p { margin: 1rem 0; line-height: 1.8; }
/* Squarespace's small text is slightly larger on phones: 14.27px at 1440px wide, 14.92px at 390px */
.sqs-html-content p.sqsrte-small { font-size: clamp(14.2px, calc(15.16px - 0.0619vw), 14.95px); line-height: 1.8; }
.sqs-html-content p.sqsrte-large { font-size: 1.25rem; }

.sqs-html-content h1,
.sqs-html-content h2,
.sqs-html-content h3,
.sqs-html-content h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1.99;
  margin: 1rem 0;
}
.sqs-html-content h1, .sqs-html-content h4 { font-size: clamp(17.08px, 16.9px + 0.06vw, 17.73px); }
.sqs-html-content h2 { font-size: 22px; }
.sqs-html-content h3 { font-size: clamp(18.16px, 17.8px + 0.12vw, 19.46px); }

.sqs-html-content a { text-decoration: none; }
.sqs-html-content a:hover { opacity: 0.6; }
.sqs-html-content ul, .sqs-html-content ol { padding-left: 1.2em; }

/* image blocks fill their grid cell, like Squarespace's "fill" images */
.image-block { min-height: 100%; }
.img-fill {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.img-fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
a.img-fill img { transition: opacity 0.3s; }
a.img-fill:hover img { opacity: 0.9; }

/* horizontal line */
.line-block { justify-content: center; }
.line-block hr { width: 100%; margin: 0; border: 0; height: 1px; background: var(--black); }

/* ---------- buttons ---------- */

.btn-wrap { display: flex; width: 100%; }
.btn-wrap--center { justify-content: center; }
.btn-wrap--right { justify-content: flex-end; }
/* "Fill" buttons stretch to their grid cell, so they line up with the text above them */
.btn-wrap--fill { height: 100%; }
.btn--fill { width: 100%; height: 100%; min-height: 48px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: inherit;
  font-size: 16px;
  line-height: normal;
  color: var(--black);
  background: transparent;
  border: 1px solid var(--black);
  border-radius: 0;
  padding: 1.5rem 2.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--black); color: var(--white); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:disabled:hover { background: transparent; color: var(--black); }
.btn-solid { background: var(--black); color: var(--white); }
.btn-solid:hover { background: #333; }
.btn-block { width: 100%; }
.btn.disabled { opacity: 0.4; pointer-events: none; }

@media (max-width: 767px) {
  .btn { padding: 1.4rem 2rem; }
}

/* ---------- gallery slideshow (page banners) ---------- */

.gallery-section { display: block; height: var(--gh-d); }
.slideshow { position: relative; width: 100%; height: 100%; overflow: hidden; background: #111; }
.slideshow .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.slideshow .slide.is-active { opacity: 1; }
.slideshow-dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.slideshow-dots button {
  width: 8px; height: 8px; padding: 0;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
  opacity: 0.9;
}
.slideshow-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 767px) { .gallery-section { height: var(--gh-m); } }

/* ---------- forms ---------- */

.newsletter { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; width: 100%; }
.newsletter-text { margin: 0; }
.newsletter input[type="email"] {
  width: 100%;
  max-width: 300px;
  font: inherit;
  font-size: 16px;
  padding: 1.4rem 2rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 0;
}
.newsletter .btn { padding: 1.1rem 1.5rem; }

.contact-form { width: 100%; display: flex; flex-direction: column; gap: 1.45rem; font-size: 15px; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.contact-form legend { padding: 0; margin-bottom: 0.3rem; font-size: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.phone-row { grid-template-columns: minmax(0, 40%) 1fr; }
.field { display: flex; flex-direction: column; font-size: 14px; }
.field > span { font-size: 13.5px; line-height: 1.6; }
.field small, .contact-form small { color: rgba(0, 0, 0, 0.55); font-size: 13px; margin-left: 4px; }
.contact-form > .field > span { font-size: 15px; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--black);
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
  background: transparent;
  padding: 12px 0 8px;
  border-radius: 0;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}
.field select:invalid { color: rgba(0, 0, 0, 0.5); }
.field-date input { max-width: 200px; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--black); }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.checkbox input { width: 12px; height: 12px; margin: 0; }
.contact-form .btn { align-self: flex-start; margin-top: 0.4rem; font-size: 15px; }
.was-validated :invalid { border-bottom-color: #c0392b; }
.form-status { margin: 0; font-size: 14px; min-height: 1.2em; }
.form-status.is-error { color: #c0392b; }
.form-done { font-size: 16px; padding: 2rem 0; }

/* ---------- cart drawer ---------- */

.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 90; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(420px, 100%);
  background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  font-size: 14px;
}
body.drawer-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase; }
.drawer-close { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.subtotal { display: flex; justify-content: space-between; font-size: 15px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 64px; height: 64px; object-fit: cover; background: var(--light); }
.line.busy { opacity: 0.5; pointer-events: none; }
.line-info a { text-decoration: none; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty button { border: 1px solid var(--line); background: none; width: 26px; height: 26px; cursor: pointer; }
.qty button.link { border: 0; width: auto; text-decoration: underline; font-size: 12px; }
.muted { color: rgba(0, 0, 0, 0.55); }
.small { font-size: 12px; }

/* ---------- shop ---------- */

.shop-head { min-height: 0; }
.shop-head .shop-wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.shop-body { display: block; min-height: 50vh; }
.shop-body .shop-wrap { padding-top: 60px; padding-bottom: 90px; }
.shop-wrap { width: 100%; max-width: var(--sqs-site-max-width); margin: 0 auto; padding-left: var(--sqs-site-gutter); padding-right: var(--sqs-site-gutter); }
.shop-title { margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: 17.7px; letter-spacing: 0.18em; text-transform: uppercase; }
.shop-cats { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.shop-cats a { font-family: var(--font-heading); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.shop-cats a.is-active { font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 48px 3vw; }
.product-card { text-decoration: none; display: block; }
.product-card .pc-img { aspect-ratio: 4 / 5; background: #eaeaea; overflow: hidden; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .pc-img img { transform: scale(1.03); }
.product-card h2 { margin: 14px 0 2px; font-family: var(--font-heading); font-weight: 400; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5; }
.product-card .pc-price { font-size: 14px; }
.shop-empty { text-align: center; max-width: 480px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 28px; font-size: 14px; text-decoration: none; }
.product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 5vw; align-items: start; }
.product-gallery .pg-main { aspect-ratio: 4 / 5; background: #eaeaea; }
.product-gallery .pg-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb { width: 64px; height: 64px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; }
.thumb.active { border-color: var(--black); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin: 0 0 8px; font-family: var(--font-heading); font-weight: 400; font-size: 22px; letter-spacing: 0.15em; text-transform: uppercase; line-height: 1.5; }
.product-price { margin: 0 0 24px; }
.option { margin-bottom: 18px; }
.option-name { font-size: 13px; margin-bottom: 6px; }
.option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.option-value { font: inherit; font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.option-value.active { border-color: var(--black); }
.option-value.unavailable { opacity: 0.4; text-decoration: line-through; }
.product-info .btn { width: 100%; margin-top: 8px; }
.product-info .description { margin-top: 28px; font-size: 15px; }
.status { min-height: 1.4em; }
@media (max-width: 767px) {
  .product { grid-template-columns: 1fr; }
  .shop-wrap { padding-left: var(--sqs-mobile-site-gutter); padding-right: var(--sqs-mobile-site-gutter); }
}

/* ---------- case study template (cs-*) ----------
   Same proportions as the Squarespace case studies: a 24-column grid inside the site gutters,
   grey/white alternating sections, narrow text column beside a large image. */

.cs { position: relative; }
.cs-grid {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  max-width: var(--sqs-site-max-width);
  margin: 0 auto;
  padding: 0 var(--sqs-site-gutter);
}
.cs-grey { background: var(--light); }
.cs-white { background: var(--white); }

.cs-h {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(17.08px, 16.9px + 0.06vw, 17.73px);
  letter-spacing: 0.18em;
  line-height: 1.99;
  text-transform: uppercase;
  margin: 0;
}

.cs-title { display: flex; align-items: center; min-height: 14vh; padding: 20px 0; background: var(--white); }
.cs-title h1 { grid-column: 1 / 13; }
.cs-tagline { grid-column: 13 / 25; text-align: right; }

.cs-intro, .cs-cta { display: flex; align-items: center; min-height: 42vh; padding: 4.2vw 0; }
.cs-intro-text { grid-column: 9 / 17; text-align: center; }
.cs-intro-text p { margin: 0 0 1rem; line-height: 1.8; }
.cs-intro-text p:last-child { margin-bottom: 0; }
.cs-cta .cs-intro-text { text-align: left; }
.cs-cta-btn { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 2.2rem; }

.cs-split { display: flex; align-items: center; min-height: 65vh; padding: 6.5vw 0; }
.cs-text p { font-size: clamp(14.2px, calc(15.16px - 0.0619vw), 14.95px); line-height: 1.8; margin: 0 0 1.6rem; }
.cs-text p:last-child { margin-bottom: 0; }
.cs-media { display: block; }
.cs-media img { width: 100%; height: auto; }
.cs-text-image .cs-text { grid-column: 5 / 8; grid-row: 1; }
.cs-text-image .cs-media { grid-column: 10 / 21; grid-row: 1; }
.cs-image-text .cs-media { grid-column: 5 / 16; grid-row: 1; }
.cs-image-text .cs-text { grid-column: 18 / 21; grid-row: 1; }

.cs-full { background: var(--white); padding: 0; }
.cs-full img { width: 100%; height: min(90vh, 56.25vw); object-fit: cover; }

.cs-strip { padding: 6.5vw 0; }
.cs-strip-imgs { grid-column: 5 / 21; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 1.2vw; }
.cs-strip-item { display: block; aspect-ratio: var(--ratio, 3 / 4); overflow: hidden; cursor: zoom-in; }
.cs-strip-label { grid-column: 5 / 21; margin-bottom: 1.6rem; }
.cs-strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cs-strip-item:hover img { transform: scale(1.03); }

.cs-related .cs-text .cs-label { font-size: 12px; text-transform: uppercase; margin-bottom: 1.4rem; }
.cs-related .cs-text h2 { margin-bottom: 1.6rem; }
.cs-related .cs-text p { margin-bottom: 2rem; }
.cs-related .cs-text .btn { padding: 0.6rem 1.6rem; min-height: 59px; }

@media (max-width: 767px) {
  .cs-grid { display: block; padding: 0 var(--sqs-mobile-site-gutter); }
  .cs-title { min-height: 14vh; }
  .cs-tagline { text-align: left; margin-top: 0.4rem; font-size: 13px; }
  .cs-intro, .cs-cta { min-height: 0; padding: 14vw 0; }
  .cs-intro-text { text-align: left; }
  .cs-split { min-height: 0; padding: 14vw 0; }
  .cs-split .cs-text { margin-bottom: 9vw; }
  .cs-split .cs-text p { font-size: 15px; }
  .cs-image-text .cs-grid { display: flex; flex-direction: column-reverse; }
  .cs-image-text .cs-text { margin-bottom: 0; margin-top: 9vw; }
  .cs-full img { height: 60vh; }
  .cs-strip { padding: 14vw 0; }
  .cs-strip-imgs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3vw; }
  .cs-strip-label { margin-bottom: 1rem; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lightbox button {
  position: absolute; border: 0; background: none; color: #fff; cursor: pointer;
  font-size: 34px; line-height: 1; padding: 14px 18px; opacity: 0.85;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 8px; right: 8px; }
.lightbox .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
