/* ===== Theme B: Blueprint (Logo Palette) — drafting table / engineering diagram feel =====
   Palette sourced directly from the ArbCatioLogo.png artwork:
     pitch-black      #151500  (near-black, olive-tinted) --changed to Deep Forest Green: #0F2F0F - body text, text-on-light (background)
     palm-leaf        #728A50  (muted sage green)
     red-ochre        #C93E0C  (burnt orange-red) - changed to --cherry-rose #9F0643 for ada contrast
     dark-spruce      #1A4F1A  (deep forest green) --alt background
     olive-wood       #8B774F  (warm tan/khaki) - changed to --tan  #DFC596 for ada contrast --light background
     bitter-chocolate #6D4040  (muted brown-red)
   The palette colors define structural surfaces and accents. Olive-wood text
   is used on alternate surfaces; photo backgrounds use white text and black shadows. */
:root {
  --deep-forest-green: #0F2F0F;
  --palm-leaf: #728A50;
  --cherry-rose: #9F0643;
  --dark-spruce: #1A4F1A;
  --tan: #DFC596;
  --champagne-mist: #F0E4D0;
  --bitter-chocolate: #6D4040;

  --bg: var(--tan);
  --bg-alt: var(--dark-spruce);
  --text: var(--deep-forest-green);
  --text-on-dark: #F0E4D0;
  --text-on-light: #0F2F0F;
  --text-on-photo: #F0E4D0;
  --photo-text-shadow: 0 2px 6px rgba(15, 47, 15, 0.75);
  --photo-heading-shadow: 0 3px 8px rgba(15, 47, 15, 0.85);
  --heading-font: "Lucida Console", monospace;
  --blockquote-font: "Courier New", monospace, "Poppins", sans-serif;
  --body-font: "Poppins", sans-serif;
  --body-size: 1.5rem;
  --h1-size: 3.25rem;
  --h2-size: 2.5rem;
  --h3-size: 2rem;
  --h4-size: 1.5rem;
  --body-weight: 300;
  --h1-weight: 700;
  --h2-weight: 600;
  --heading-weight: 600;
  --accent: var(--palm-leaf);
  --accent-2: var(--cherry-rose);
  --cta: var(--cherry-rose);
  --card-bg: var(--dark-spruce);
  --card-border: var(--tan);
  --radius: 4px;
  --shadow: 0 6px 18px rgba(15, 47, 15, 0.35);

  --btn-primary-bg: var(--bitter-chocolate);
  --btn-primary-text: #F0E4D0;
  --btn-primary-border: var(--champagne-mist);
  --btn-secondary-bg: var(--dark-spruce);
  --btn-secondary-text: #F0E4D0;
  --btn-secondary-border: var(--champagne-mist);
  --btn-tertiary-bg: #808080;
  --btn-tertiary-text: var(--text-on-dark);
  --btn-tertiary-border: var(--deep-forest-green);

  --press-overlay: rgba(21, 21, 0, 0.39);

  --header-bg: var(--tan);
  --header-text: var(--text);
}

/* Reusable surface classes carry the correct 24px grid texture everywhere. */
.surface-light {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  color: var(--text);
}

.surface-dark {
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(rgba(114, 138, 80, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 138, 80, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-on-dark);
}

.surface-photo {
  position: relative;
  background-image: url('Dave_Thom-optimized.avif');
  background-size: cover;
  background-position: center;
  color: var(--text-on-photo);
}

.surface-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--press-overlay, rgba(21, 21, 0, 0.78));
  z-index: 0;
}

.surface-photo>* {
  position: relative;
  z-index: 1;
}

/* Default page surface matches .surface-light. */
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

h1,
h2,
h3 {
  letter-spacing: 0.005em;
}

.eyebrow {
  color: var(--cta);
}

.services-note a {
  color: var(--accent-2);
}

.service-card,
.press-card,
.contact-form {
  border-style: dashed;
}

/* Blueprint illustration cards retired in favor of the real-photo carousel below */
.gallery-grid {
  display: none;
}

.site-header {
  background-color: var(--header-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  border-bottom: 1px solid #000000;
  backdrop-filter: none;
}

/* Cards and controls on dark surfaces use the alternate foreground color. */
.surface-dark .service-card,
.surface-dark .press-card,
.surface-dark .contact-form,
.surface-dark .carousel-slide,
.surface-dark .carousel-btn,
.surface-photo .press-card,
.surface-photo .service-card,
.surface-photo .contact-form,
.surface-photo .carousel-slide,
.surface-photo .carousel-btn {
  color: var(--text-on-dark);
}

.surface-dark .btn-tertiary,
.surface-photo .btn-tertiary {
  --btn-tertiary-bg: #808080;
  --btn-tertiary-text: var(--text-on-dark);
  --btn-tertiary-border: var(--deep-forest-green);
}

.hero {
  position: relative;
  overflow: visible;
}

.hero-text,
.hero-art {
  position: relative;
  z-index: 1;
}

.about-blueprint-img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

/* Placeholder sections for future content. */
.placeholder-section .content-wrap,
.contact-cta .content-wrap,
.parts-of-catio .content-wrap {
  width: var(--content-width);
  margin: 0 auto;
  text-align: center;
}

.catio-infographic {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.catio-quote {
  margin: 1rem 2rem;
  text-align: center;
}

.catio-quote blockquote {
  margin: 0;
  padding: 1rem;
  background: #277727;
  filter: brightness(1.3);
  border-left: 10px solid #0F2F0F;
  border-radius: var(--radius);
}

.catio-quote blockquote::before,
.catio-quote blockquote::after {
  color: #9F0643;
  font-family: var(--heading-font);
  font-size: 6rem;
  font-weight: 700;
  line-height: 0;
  vertical-align: -0.4em;
}

.catio-quote blockquote::before {
  content: "\201C";
}

.catio-quote blockquote::after {
  content: "\201D";
}

.catio-quote blockquote p {
  display: inline;
  margin: 0;
  font-family: var(--blockquote-font);
  font-size: 2rem;
  font-weight: 100;
  line-height: 1.5;
}

.catio-quote figcaption {
  margin-top: 0.5rem;
  font-family: var(--blockquote-font);
  font-size: 1.1rem;
  font-weight: var(--body-weight);
  line-height: 2;
}

.catio-quote figcaption cite {
  font-style: normal;
}

.placeholder-box {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 2rem;
  border: 2px dashed var(--card-border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.15);
}

.surface-light .placeholder-box {
  background: rgba(255, 255, 255, 0.15);
}

.placeholder-box p {
  margin-bottom: 0;
}

/* Benefits of a Catio */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  margin: 2rem auto 0;
  text-align: left;
}

.benefit-card {
  background: #8B774F;
  border: 1px solid var(--text-on-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  color: var(--text-on-dark);
}

.benefit-card h3 {
  font-family: var(--body-font);
  font-weight: 100;
  color: var(--text-on-dark);
  text-align: center;
  margin-bottom: 1rem;
}

.benefit-card ul {
  margin: 0;
  padding-left: 1.5em;
}

.benefit-card li {
  font-weight: 100;
  line-height: 1.8;
}

.benefit-card li+li {
  margin-top: 0.75rem;
}

@media (max-width: 800px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* Build Process */
.build-process-copy ol {
  margin: 1.5rem 0 0;
  padding-left: 1.5em;
}

.build-process-copy li+li {
  margin-top: 0.75rem;
}

.build-process a {
  color: var(--accent-2);
}

.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.contact-form legend {
  font-weight: 400;
  padding: 0;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form .checkbox-group label,
.contact-form .radio-group label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: var(--body-weight);
  cursor: pointer;
}

.contact-form .checkbox-group input[type="checkbox"],
.contact-form .radio-group input[type="radio"] {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin: 0;
  accent-color: currentColor;
}

.contact-form .hint {
  font-size: 1.375rem;
  font-weight: var(--body-weight);
  opacity: 0.85;
  margin: 0;
}

.contact-form .conditional-group {
  display: none;
  padding-left: 0;
  border-left: 2px dashed var(--card-border);
}

.contact-form .conditional-group.visible {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form .checkbox-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1rem;
  align-items: center;
}

.contact-form .checkbox-row legend {
  grid-column: 1 / -1;
}

.contact-form .checkbox-row label {
  display: inline-flex;
  justify-content: flex-start;
}

.contact-form input[type="file"] {
  padding: 0.75rem 0;
  border: none;
  background: transparent;
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  color: inherit;
}

.contact-form input[type="file"]::file-selector-button {
  background: var(--btn-tertiary-bg);
  color: var(--btn-tertiary-text);
  border: 1px solid var(--deep-forest-green);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-right: 1rem;
}

.contact-form input[type="file"]::file-selector-button:hover {
  filter: brightness(1.08);
}

.contact-form[aria-busy="true"] {
  opacity: 0.85;
}

.contact-form[aria-busy="true"] button[type="submit"] {
  cursor: wait;
}

@media (max-width: 450px) {
  .contact-form .checkbox-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .contact-form .checkbox-row legend {
    grid-column: 1;
  }
}