/*
Theme Name: CBO Theme
Author: Big T
Version: 1.0
*/

/* =========================
   Fonts
   ========================= */
@font-face {
  font-family: "CBO Title";
  src: url("/wp-content/themes/CBO-Theme/assets/fonts/CBO-Block-Title-Heavy.woff2") format("woff2");
  font-weight: 750;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Museo";
  src: url("/wp-content/themes/CBO-Theme/assets/fonts/Museo-Slab.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mallia";
  src: url("/wp-content/themes/CBO-Theme/assets/fonts/Mallia.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================
   VARIABLES
   ========================= */
   
:root {
  --ink: #1d1d1d;
  --ink-soft: #333;
  --text: #353535;
  --cream: #e8e7de;
  --light: #f5f6f7;
  --navy: #061932;
  --royal: #143a60;
  --teal: #148a8c;
  --teal-light: #6fb6c1;
  --coral: #f05c6a;
  --button-shadow: #0b2b4a;
  --button-bg: #143a60;
  --gray-line: #d6d6d6;
  --footer-gray: #dcdcdc;
  --border-gray: #bfbfbf;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-gutter: stable;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--light);
  font-family: "polymath-text", sans-serif;
  overflow-x: hidden;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

h1,
h2 {
  font-family: "polymath-display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h3,
h4,
h5 {
  font-family: "polymath", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1 {
  font-weight: 800;
  font-size: clamp(2rem, 3.75vw, 3.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.25vw, 2.25rem);
  line-height: 1.1;
  margin: 3rem 0 1rem;
  text-transform: uppercase;
}

h3 {
  font-weight: 700;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.2;
  text-transform: uppercase;
}

h4 {
  font-weight: 700;
  font-size: clamp(1.2rem, 1.2vw, 1.2rem);
  line-height: 1.3;
  margin: 1.5rem 0 0.5rem;
}

h5 {
  font-weight: 500;
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
}

p {
  font-family: "polymath-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

ul,
ol {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li {
  font-size: inherit;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--teal);
}

.site-content {
  padding: 0.1px 10%;
  background: linear-gradient(
    to right,
    var(--ink) 0,
    var(--ink) 7%,
    var(--light) 7%,
    var(--light) calc(100% - 7%),
    var(--ink) calc(100% - 7%),
    var(--ink) 100%
  );
}

/* =========================
   Shared page container
   ========================= */
.global-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.content-block,
.page-intro {
  margin-bottom: 2rem;
}

.designed-openers-image {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================
   Shared inner-page spacing
   ========================= */


body:not(.home) .site-content {
  padding-top: 2.5%;
}

/* =========================
   Navigation
   ========================= */

.store-header ng-tns-c3264502368-0 ng-star-inserted {
    display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.admin-bar .site-header {
  top: 32px;
}

.nav-toggle {
  display: none;
}

.header-nav {
  background: var(--light);
}

.header-nav::before,
.header-nav::after {
  content: "";
  display: block;
  height: 0.375rem;
  background: var(--ink);
}

.nav-inner {
  display: flex;
  height: 3rem;
  background: var(--cream);
  align-items: center;
}

.nav-home-wrap {
  display: flex;
  flex: 0 0 32%;
  padding: 0.3% 0.7%;
  background: var(--light);
}

.nav-home {
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-home .home-link {
  padding-left: 5%;
  font-family: "polymath-display", sans-serif;
  font-weight: 800;
  font-size: clamp(0.95rem, 1.05rem, 1.2rem);
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-home .home-link {
  display: block;
  width: 100%;                 /* 🔥 fills the whole box */
  padding: 2% 0 2% 1.5%;      /* 🔥 consistent size ALWAYS */

  font-size: clamp(0.95rem, 1.05rem, 1.2rem); 
  font-family: 'polymath-display', sans-serif; 
  letter-spacing: 0.06em; 
  color: var(--ink); 
  text-decoration: none; 
  text-transform: uppercase;
  line-height: 1; 
}

/* ACTIVE STATE = ONLY COLORS */
.home-link.active { 
  background: #111; 
  color: var(--cream); 
}

.nav-main {
  display: flex;
  flex: 1;
  padding-left: 0.8%;
}

.nav-main .menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0.7% 4% 0 0;
  padding: 0;
  list-style: none;
}

.nav-main li {
  position: relative;
  flex: 0 0 auto;
}

.nav-main .menu a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: "polymath-display", sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 1.1rem, 1.25rem);
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--ink-soft);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-main .menu li.current-menu-item > a {
  color: var(--cream);
  background: var(--ink);
}

.nav-main .menu a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-main .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 260px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--cream);
}

.nav-main li:hover > .sub-menu {
  display: block;
}

.nav-main .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

.top-page-band,
.designer-lab-banner,
.why-title-bar,
.footer-bottom {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* =========================
   Hero Section
   ========================= */
   
.hero-panel {
  display: flex;
  width: 100%;
}

.hero-left {
  position: relative;
  flex: 0 0 60.15625%;
  aspect-ratio: 1155 / 765;
}

.hero-right {
  flex: 0 0 39.84375%;
  aspect-ratio: 765 / 765;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-panel-text {
  position: absolute;
  top: -9%;
  left: 7%;
  margin: 0.67em 0 0;
  font-family: "CBO Title", sans-serif;
  font-size: clamp(8rem, 12vw, 15rem);
  line-height: 0.88;
  color: var(--ink-soft);
  text-transform: none !important;
}

/* =========================
   Homepage
   ========================= */
   
.homepage {
  margin: 0;
}

.top-page-band {
  margin-top: 2.5%;
  padding: 1% 0 0.5%;
  background: var(--ink);
}

.top-page-title {
  margin: 0;
  padding: 0.7%;
  font-size: clamp(3.65rem, 3.5rem + 0.6vw, 4.4rem);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.top-page-title .made-easy {
  position: relative;
  top: -0.36em;
  margin-left: -0.02em;
  font-family: "Mallia", cursive !important;
  font-size: 0.73em;
  letter-spacing: 0;
  text-transform: capitalize;
}

.top-main {
  position: relative;
  overflow: visible;
  margin-left: -2.9%;
  padding: 3% 3% 0 0;
}

.top-page-inner {
  display: grid;
  grid-template-columns: 35% 65%;
  align-items: start;
}

.opener-tip-image {
  position: relative;
  aspect-ratio: 730 / 550;
}

.opener-tip-image img {
  display: block;
  width: 100%;
  height: 100%;
  margin-top: -4.5%;
  padding-right: 10%;
  object-fit: contain;
}

.top-main-description p {
  margin-top: 5%;
  margin-bottom: 1%;
  font-family: "Museo", sans-serif;
  font-size: clamp(2.2rem, 2vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text);
  transform: translateY(-16%);
}

.bold-paragraph {
  font-weight: bold;
}

.cta-container {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  margin: 2rem 0;
  margin-top: -1.2rem;
}

.mobile-break {
  display: none;
}

.word-space {
  display: inline;
}

/* =========================
   Designer Lab banner
   ========================= */
   
.designer-lab-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9% 0;
  background: var(--ink);
}

.designer-lab-title {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: clamp(5rem, 7rem, 10rem);
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-transform: capitalize;
  transform: translateY(2%);
}

.lab-solid {
  padding-top: 0.75%;
  color: var(--cream);
  font-family: "CBO Title", sans-serif;
  transform-origin: center;
}

.lab-solid::before,
.lab-solid::after {
  content: "///";
  display: inline-block;
  margin-right: 0.5rem;
  font-family: "CBO Title", sans-serif;
  color: var(--teal);
}

/* =========================
   Process section
   ========================= */
   
.process-section {
  position: relative;
  margin: 0 -1% 0;
  padding: 0 0 2% 1%;
  background-color: var(--light);
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(0, 0, 0, 0.22) 0,
      rgba(0, 0, 0, 0.22) 2px,
      transparent 2px,
      transparent 40px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.14) 0,
      rgba(0, 0, 0, 0.14) 2px,
      transparent 2px,
      transparent 40px
    );
  background-size: 40px 40px;
  background-position: center -1px;
}

.process-inner {
  margin: 0 auto;
  padding: 2.7% 0 0 1.29%;
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list .step {
  counter-increment: step;
}

.step {
  display: flex;
  align-items: center;
  gap: 2.9%;
  margin-bottom: 2%;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(11.5rem, 9vw, 16rem);
  height: clamp(11.5rem, 9vw, 16rem);
  flex-shrink: 0;
  font-family: "CBO Title", sans-serif;
  font-size: clamp(5rem, 8vw, 13rem);
  color: var(--teal);
  background: var(--ink);
}

.step-number::before {
  content: counter(step);
}

.step-title {
  margin: 0;
  font-family: "polymath-display", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 4vw, 5rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.step-2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.step-2 .step-number {
  flex: 0 0 auto;
}

.step-2 .step-title {
  flex: 1;
}

.step-2 .step-images {
  flex: 0 0 100%;
  display: flex;
  justify-content: flex-start;
  margin-left: 0;
}

.step-2 .step-images img {
  display: block;
  width: clamp(11.5rem, 9vw, 16rem);
  height: auto;
}

.opener-images-hp {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 3.5% 2.3% 2.5% 0;
}

.opener-images {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 3.5% 0 2.5% 0;
}

.opener-images img,
.opener-images-hp img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.opener-images a,
.opener-images-hp a {
  display: block;
  min-width: 0;
}

.opener-images a:hover,
.opener-images-hp a:hover {
  transform: translateY(2px);
}

/* =========================
   Why shop section
   ========================= */
   
.why-section {
  position: relative;
  margin: 0;
  padding: 0;
  background: var(--cream);
}

.why-title-bar {
  padding: clamp(1rem, 2vw, 2rem) 0;
  background: var(--ink);
}

.why-title-bar h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(3rem, 4vw, 8rem);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.03em;
  color: var(--cream);
}

.why-content {
  display: grid;
  grid-template-columns: 72% 28%;
  align-items: center;
  gap: 1rem;
  padding: 2.5% 0 3%;
}

.why-text {
  margin: 0;
  padding-left: 4%;
  list-style: none;
}

.why-text li {
  margin: 1% 0;
  font-size: clamp(2.2rem, 2vw, 3rem);
  line-height: 1.25;
  color: #0d1f35;
}

.why-image {
  aspect-ratio: 800 / 500;
}

.why-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(15%);
}

/* =========================
   FAQ
   ========================= */
   
.faq-section {
  padding: 0 0 5rem;
  background: var(--light);
}

.faq-title {
  margin-bottom: 2rem;
}

.faq-heading {
  margin: 0;
  padding: 0;
  font: inherit;
}

.faq-item {
  margin: 0 0 0.1rem;
  padding: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 5.75rem;
  margin: 0;
  padding: 1.35rem 1.5rem;
  background: var(--ink);
  border: 0;
  cursor: pointer;
  text-align: left;
}

.faq-question-text {
  display: block;
  font-family: "polymath", sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  letter-spacing: 0.03em;
  text-align: left;
  text-transform: uppercase;
  color: var(--cream);
}

.faq-toggle {
  flex-shrink: 0;
  margin-left: 1rem;
  font-family: "polymath-display", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--cream);
  transition: transform 0.18s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: #0d1f35;
  transition: max-height 0.18s ease, padding-top 0.18s ease, padding-bottom 0.18s ease;
}

.faq-answer p {
  margin: 0 0 1rem;
}

.faq-item.active .faq-answer {
  max-height: 700px;
  padding-top: 1rem;
  padding-bottom: 0.35rem;
}

.faq-followup-title {
  margin: 3rem 0 0.75rem;
  padding: 0 1.5rem;
}

.faq-paragraph {
  margin: 0;
  padding: 0 1.5rem 2rem;
}

/* =========================
   ABOUT PAGE
   ========================= */

.about-title {
  font-size: clamp(7rem, 8.5rem, 10rem);
  line-height: 0.7;
  margin-bottom: 5%;
}

.about-card {
  float: right;
  width: clamp(260px, 28vw, 380px);
  margin: 0 0 1.5rem 2rem;
}

.opener-wrapper {
  width: 100%;
}

.opener-base {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================
   CUSTOM OPENERS PAGE
   ========================= */

.opener-group h2 {
  margin-top: -5px;
  margin-bottom: 30px;
}

.opener-section {
  clear: both;
  margin-bottom: 40px;
}

.opener-section:last-child {
  margin-bottom: 0;
}

.opener-section h3 {
  margin: 0 0 20px;
}

.opener-section h3 a {
  color: inherit;
  text-decoration: none;
}

.opener-section h3 a:hover,
.opener-section h3 a:focus {
  text-decoration: underline;
}

.opener-body {
  overflow: hidden;
}

.opener-thumb {
  float: left;
  width: 90px;
  height: 90px;
  margin: 0 15px 8px 0;
  display: block;
}

.opener-section p {
  margin: 0;
}

.designed-openers-image {
  padding-top: 10px;
}
  
.cta-below-image {
  margin-top: 5px;
}

/* =========================
   CONTACT PAGE
   ========================= */
   
body.page-id-18 .site-content {
  padding: 0;
  background: var(--ink);
}

.contact-page,
.contact-section {
  background: var(--ink);
}

.contact-section .global-inner {
  max-width: none;
  padding: 2.5% 7% 4%;
}

.contact-body {
  color: var(--cream);
}

.contact-body h1 {
  margin: 0;
}

.contact-h1 {
  margin: 0;
  padding: 0 0 1.5rem;
  letter-spacing: 0.03em;
  color: var(--cream);
}

.contact-text {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.8vw, 3rem);
  color: var(--cream);
}

.contact-text p {
  margin: 0;
  color: var(--cream);
}

.cbo-contact-form {
  margin: 0;
}

.cbo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cbo-field input,
.cbo-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font: inherit;
  background: #fff;
  border: 0;
  outline: none;
}

.cbo-field textarea {
  min-height: 180px;
  resize: vertical;
}

.cbo-full {
  grid-column: 1 / -1;
}

.cbo-actions {
  display: flex;
  justify-content: flex-start;
}

.cbo-submit {
  padding: 1rem 1.25rem;
  font-size: clamp(1rem, 1vw, 2rem);
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  cursor: pointer;
}

.cbo-form-status {
  margin-top: 1rem;
  color: var(--cream);
}

.cbo-success {
  color: var(--teal-light);
}

.cbo-error {
  color: #ff6b6b;
}

.cbo-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  padding: 4% 7%;
  background: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  margin: 0 auto;
  padding: 0 4% 4%;
  background: var(--cream);
}

.footer-inner h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 5%;
  font-size: clamp(0.7rem, 3vw, 4rem);
  line-height: 1;
}

.footer-text,
.footer-first-column ul,
.footer-second-column ul,
.footer-third-column ul {
  font-size: 1.2rem;
}

.footer-text ul,
.footer-second-column ul,
.footer-third-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-second-column li,
.footer-third-column li,
.footer-first-column .footer-text a {
  margin-bottom: 0.5rem;
}

.footer-inner a {
  color: var(--ink);
  text-decoration: none;
}

.footer-inner a:hover {
  font-weight: bold;
}

.inline-readmore a,
.footer-first-column .footer-text .inline-readmore a {
  display: inline;
  margin: 0;
  white-space: nowrap;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.social-icons {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.social-icons img {
  width: 100%;
  height: auto;
  background: var(--cream);
}

.footer-bottom {
  padding: 2rem 1rem;
  background: var(--footer-gray);
  border-top: 1px solid var(--border-gray);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-bottom p {
  margin: 0 0 0.5rem;
  font-size: clamp(1rem, 1.3vw, 2rem);
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: clamp(1rem, 1.2vw, 2rem);
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links span {
  color: #888;
}

/* =========================
   Designer Lab
   ========================= */
.designer-text {
  padding: 0 2%;
}

.designer-wrapper {
  margin: 0 auto;
}

#inksoftEmbed {
  width: 100%;
}

.designer-full #inksoftEmbed {
  height: 1500px;
}

.designer-compact #inksoftEmbed {
  height: 750px;
}

/* =========================
   Shared buttons
   ========================= */
.cbo-button {
  --offset: 6px;
  --line: 5px;
  position: relative;
  display: block;
  width: fit-content;
  margin: 2rem auto;
  text-decoration: none;
}

.cbo-button::after {
  content: "";
  position: absolute;
  left: var(--offset);
  bottom: calc(var(--offset) * -1);
  width: 100%;
  height: calc(var(--line) + 1px);
  background: var(--teal);
  z-index: 1;
}

.cbo-button::before {
  content: "";
  position: absolute;
  top: var(--offset);
  right: calc(var(--offset) * -1);
  width: calc(var(--line) + 1px);
  height: 100%;
  background: var(--teal);
  z-index: 1;
}

.cbo-button .btn-inner {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 0.5em 1em;
  background: #bfc0c0;
  color: var(--ink);
  font-family: "polymath-display", sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.2vw, 2.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cbo-button:hover .btn-inner {
  transform: translate(var(--offset), var(--offset));
  background: var(--ink);
  color: var(--cream);
}

.process-inner > .cbo-button {
  margin-top: 2rem;
}

/* =========================
   Example Gallery
   ========================= */
.gallery-header {
  margin-bottom: 2rem;
}

.gallery-header h1,
.gallery-header h2 {
  color: var(--ink);
}

.gallery-header h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.gallery-header h2 {
  font-size: clamp(2rem, 2vw, 3rem);
}

.gallery-header p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 5% 0;
  align-items: start;
}

.gallery-item {
  position: relative;
  aspect-ratio: var(--gallery-w) / var(--gallery-h);
  overflow: hidden;
  display: block;
}

.gallery-grid--mini {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.gallery-grid--card-vertical {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gallery-grid--card-horizontal {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid--gun {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gallery-item .front,
.gallery-item .back {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-item .front {
  opacity: 1;
  z-index: 1;
}

.gallery-item .back {
  opacity: 0;
  z-index: 2;
}

.gallery-item:hover .front {
  opacity: 0;
}

.gallery-item:hover .back {
  opacity: 1;
}

/* =========================
   Artwork Guidelines
   ========================= */

.artwork-inner {
  margin: 0 auto;
  padding: 0 0 4%;
}

.artwork-inner img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 4% 0;
}

.artwork-inner > ol > li > img.artwork-image {
  width: calc(100% - 2rem);
  max-width: calc(100% - 2rem);
}

.artwork-inner > ol > li > img.artwork-image-small {
  width: calc((100% - 2rem) * 0.5);
  max-width: calc((100% - 2rem) * 0.5);
}

.artwork-inner ol li h3 {
  margin: 0 0 0.5rem;
}

.artwork-inner > ol {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}

.artwork-inner > ol > li {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
  counter-increment: step;
}

.artwork-inner > ol > li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  color: var(--ink);
}

/* Use same bullet system as rest of site */
.artwork-inner ul {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
  list-style: disc;
}

.artwork-inner ul li {
  margin-bottom: 0.4rem;
  padding-left: 0;
}

.artwork-inner ul li::before {
  content: none;
}

/* Nested lists inside ordered steps */
.artwork-inner > ol > li ul {
  margin-top: 0.5rem;
}

.artwork-inner > ol > li ul li {
  margin-bottom: 0.4rem;
  padding-left: 0;
}

.artwork-inner > ol > li p {
  margin: 0.5rem 0 1rem;
}

/* =========================
   Bulk Pricing page
   ========================= */
.bulk-pricing-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2.5rem;
}

.bulk-pricing-page th,
.bulk-pricing-page td {
  border: 1px solid #000;
  padding: 12px;
  text-align: left;
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .site-content,
  .site-footer {
    padding-left: 4%;
    padding-right: 4%;
  }

  .site-content {
    background: var(--light);
  }

  /* ---------- Nav ---------- */
  .site-header {
    position: relative;
  }

  .nav-inner {
    display: flex;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-main {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--cream);
    display: none;
  }

  .nav-main.active {
    display: block;
  }

  .nav-main .menu {
    flex-direction: column;
  }

  .nav-main li {
    width: 100%;
  }

  .nav-main .menu a {
    display: block;
    padding: 1rem;
    text-align: center;
  }

  /* ---------- Header Hero ---------- */
  .hero-panel-text {
    top: -7%;
    left: 8%;
    font-size: clamp(3rem, 12vw, 5.5rem);
    line-height: 0.9;
  }

  /* ---------- Homepage ---------- */
  .homepage {
    padding: 1.25rem 0 2rem;
  }

  .top-page-band,
  .designer-lab-banner,
  .why-title-bar,
  .footer-bottom {
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .top-page-band {
    margin-top: 1rem;
    padding: 1.5rem 0.5rem;
  }

  .top-page-title {
    padding: 0;
    font-size: clamp(1.5rem, 7vw, 2.3rem);
    line-height: 1.05;
    white-space: normal;
  }

  .top-page-title .made-easy {
    top: -0.1em;
  }

  .top-main {
    margin-left: 0;
    padding: 1.5rem 0 0;
  }

  .top-page-inner {
    display: block;
  }

  .opener-tip-image {
    float: left;
    width: 42%;
    max-width: 180px;
    margin: 0 1rem 0.75rem -5%;
    aspect-ratio: auto;
  }

  .opener-tip-image img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 0;
    padding-right: 0;
  }

  .top-main-description p {
    margin-top: -3%;
    font-size: clamp(1rem, 1vw, 1rem);
    line-height: 1.5;
    transform: none;
  }

  .cta-container {
    margin: 2rem 0;
    margin-top: 2rem;
  }

  .mobile-break {
    display: inline;
  }

  .word-space {
    display: none;
  }

  /* ---------- Designer lab banner ---------- */
  .designer-lab-banner {
    padding: 0.9rem 0.5rem;
    margin-top: 1.5rem;
  }

  .designer-lab-title {
    font-size: clamp(2.4rem, 10vw, 4rem);
    white-space: normal;
    text-align: center;
    transform: none;
  }

  .lab-solid {
    padding-top: 0;
  }

  .lab-solid::before,
  .lab-solid::after {
    display: none;
  }

  /* ---------- Process section ---------- */
  .process-section {
    margin: 0;
    padding: 0 0 2rem;
    background-size: 24px 24px;
  }

  .process-section::before,
  .process-section::after {
    display: none;
  }

  .process-inner {
    padding: 1.25rem 0 0;
  }

  .steps-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .step-number {
    flex: 0 0 5.5rem;
    width: 5.5rem;
    height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
  }

  .step-title {
    flex: 1;
    margin: 0;
    margin-top: 0.05rem;
    font-family: "polymath-display";
    font-weight: 700;
    font-size: 1.5rem !important;
    line-height: 0.95;
  }

  .step-2 {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
  }

  .step-2 .step-number {
    flex: 0 0 5.5rem;
  }

  .step-2 .step-title {
    flex: 1;
    font-family: "polymath-display";
    font-weight: 700;
    margin-left: 1rem;
  }

  .step-2 .step-images {
    display: none;
  }

  .opener-images {
    display: grid;
    margin-top: 8%;
    grid-template-columns: repeat(7, 1fr) !important;
  }

  .opener-images a {
    display: flex;
    justify-content: center;
  }

  .opener-images img {
    width: 180%;
  }

  .process-inner > .cbo-button {
    margin-top: 2rem;
  }

  /* ---------- Why shop ---------- */
  .why-title-bar {
    padding: 0.9rem 0.75rem;
  }

  .why-title-bar h2 {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
    line-height: 1.05;
    white-space: normal;
  }

  .why-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem 0;
  }

  .why-text {
    padding-left: 1rem;
  }

  .why-text li {
    margin: 0.5rem 0;
    font-size: clamp(1.2rem, 4.8vw, 1.7rem);
  }

  .why-image {
    display: none;
  }

  /* ---------- FAQ ---------- */
  .faq-title {
    margin-bottom: 1.5rem;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .faq-question {
    padding: 0.9rem 1rem;
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    text-transform: uppercase;
  }

  .faq-question h3 {
    margin: 0;
    font-size: inherit;
    line-height: 1.2;
  }

  .faq-answer {
    padding: 0 1rem;
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .faq-paragraph {
    font-size: clamp(1rem, 1.5vw, 2rem);
  }

  /* ---------- About ---------- */
  .about-section::before {
    top: 22%;
    height: 58%;
  }

  .about-title,
  .contact-h1 {
    font-size: clamp(2.5rem, 2vw, 5rem);
    line-height: 0.95;
  }

  .about-card {
    float: right;
    width: 35%;
    max-width: 220px;
    margin: 0;
    padding: 0;
    transform: none;
  }

  .about-text-panel p {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin-top: 1rem;
  }

  .about-body-text,
  .faq-pad {
    padding: 0;
  }

  /* ---------- Contact ---------- */
  .contact-h1 {
    padding: 0;
  }

  .contact-text {
    margin: 0;
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  }

  .cbo-contact-form {
    margin: 1.5rem 0 0;
  }

  .cbo-grid {
    grid-template-columns: 1fr;
  }

  .cbo-submit {
    transform: none;
    width: 100%;
  }

  /* ---------- Footer ---------- */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1.5rem 1rem;
  }

  .footer-inner > div {
    margin-bottom: 0;
  }

  .footer-inner h2 {
    font-size: clamp(1.2rem, 6vw, 2rem);
    margin-bottom: 0.5rem;
  }

  .footer-text,
  .footer-second-column ul,
  .footer-third-column ul,
  .footer-bottom p,
  .footer-links {
    font-size: 1rem;
  }

  .footer-inner li,
  .footer-text {
    line-height: 1.4;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: nowrap;
  }

  .social-icons img {
    width: 60px;
    height: auto;
  }

  .footer-links {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .footer-bar {
    display: none;
  }

.footer-inner h2 {
  font-size: clamp(1.2rem, 6vw, 2rem);
  margin: 0 0 0.6rem;
}

/* first heading in each column should not get top spacing */
.footer-inner > div > h2:first-child {
  margin-top: 1.2rem;
}

/* add space before headings that come after text/lists in the SAME column */
.footer-first-column .footer-text + h2,
.footer-inner ul + h2,
.footer-inner .footer-text + h2 {
  margin-top: 1.2rem;
}

  /* ---------- Shared buttons ---------- */
  .cbo-button {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .cbo-button .btn-inner {
    display: block;
    width: 100%;
    text-align: center;
    white-space: normal;
    font-size: clamp(1.1rem, 5vw, 1.8rem);
    line-height: 1;
    padding: 0.85rem 1rem;
  }

  /* ---------- Example gallery ---------- */
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 2rem 0;
  }

  .gallery-header {
    margin-bottom: 1.25rem;
  }

  .gallery-header h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .gallery-header h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
    margin: 2rem 0 0.75rem;
  }

  .gallery-header p {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* ---------- Designer lab embed ---------- */
  #inksoftEmbed {
    height: 70vh;
    min-height: 500px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}