/* =========================================
   GLOBAL BASE
   ========================================= */

body {
  margin: 0;
  font-family: "bc-alphapipe", sans-serif;
  background: #fafafa;
  color: #222;
  line-height: 1.5;
}

/* Basic elements */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* =========================================
   HEADER / NAV
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title a {
  font-weight: 300;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #111;
  white-space: nowrap;
}

/* Desktop navigation */
.nav-menu {
  display: flex;
  flex-direction: row;
  gap: 2.2rem;
  background: none;
  position: static;
  padding: 0;
  box-shadow: none;
}

.nav-menu a {
  text-decoration: none;
  color: #111;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
  font-weight: 300;
}

.nav-menu a:hover {
  opacity: 0.6;
}

.nav-menu a.active {
  opacity: 0.85;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

/* =========================================
   HERO – HOMEPAGE
   ========================================= */

.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: #111;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.8rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #fff;
}

/* Background slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: 1;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  border: 1px solid #111;
  background: none;
  color: #111;
}

.btn-secondary:hover {
  background: #111;
  color: #fff;
}

/* =========================================
   INTRO
   ========================================= */

.intro {
  padding: 4rem 1.5rem;
  text-align: center;
}

.intro-label {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.intro-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* =========================================
   HOMEPAGE – COLLECTIONS
   ========================================= */

.collections-section {
  padding: 4rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.section-header p {
  opacity: 0.8;
}

.collections-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.collection-card a {
  text-decoration: none;
  color: #111;
  display: block;
}

.collection-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.collection-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  font-weight: 300;
}

.collection-description {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.collection-link {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* =========================================
   PRINTS CTA – HOMEPAGE
   ========================================= */

.prints-cta {
  background: #f4f4f4;
  padding: 4rem 1.5rem;
  text-align: center;
}

.prints-cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

/* =========================================
   SESSIONS – HOMEPAGE
   ========================================= */

.sessions-section {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.sessions-inner {
  max-width: 700px;
  margin: 0 auto;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  padding: 3rem 1.5rem;
  background: #111;
  color: #fff;
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-logo-top img {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

.footer-email a,
.footer-social a,
.back-home-link {
  text-decoration: none;
  color: #fff;
}

.footer-social a {
  margin: 0 0.5rem;
}

.footer-copy {
  opacity: 0.9;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.back-home-link {
  display: inline-block;
  margin-top: 1rem;
  opacity: 0.9;
}

/* =========================================
   COLLECTIONS LANDING PAGE
   ========================================= */

.page-hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.75;
}

.collections-page .collections-grid {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  gap: 2rem;
}

.collections-page .collection-card h2 {
  font-size: 1.4rem;
  font-weight: 300;
  margin: 0.5rem 0 0.25rem;
}

.collections-page .collection-card p {
  font-size: 1rem;
  opacity: 0.85;
}

/* =========================================
   COLLECTION DETAIL PAGES
   ========================================= */

.collection-heading {
  text-align: center;
  max-width: 900px;
  margin: 3rem auto 1rem;
  padding: 0 1rem;
}

.collection-heading h1 {
  font-weight: 300;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  margin: 0;
}

/* Back to collections link */
.back-collections {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.back-collections a {
  font-size: 0.95rem;
  text-decoration: none;
  color: #555;
}

.back-collections a:hover {
  opacity: 0.7;
}

/* Aspect-ratio gallery cards */
.gallery {
  max-width: 1100px;
  margin: 2.5rem auto 3rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery a {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
}

/* 3:2-ish card */
.gallery a::before {
  content: "";
  display: block;
  padding-bottom: 66.6667%;
}

.gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
  cursor: pointer;
}

.gallery a:hover img {
  transform: scale(1.03);
  opacity: 0.95;
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  object-fit: contain;
}

/* =========================================
   PRINTS PAGE – HERO & GRID
   ========================================= */

.prints-hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  background-image: url('https://pub-9350e7cd567d44f5b7e5391abc141068.r2.dev/Print%20Page/nocturne/nocturne-1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem 3rem;
  box-sizing: border-box;
  overflow: hidden;
}

.prints-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.prints-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: #fff;
}

.prints-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
  font-weight: 300;
}

.prints-hero p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto 1.5rem;
}

.prints-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Filter buttons */
.hero-btn {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: transparent;
  transition: background 0.25s ease, transform 0.2s ease, color 0.25s ease;
}

.hero-btn.primary {
  background: #fff;
  color: #000;
  font-weight: 500;
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-btn.primary:hover {
  background: #eee;
}

/* Prints grid */
.prints-grid-section {
  padding: 40px 20px 80px;
}

.prints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.print-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.print-card.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
}

.print-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.print-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.print-thumb img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.print-title {
  font-size: 20px;
  margin-top: 10px;
  font-weight: 200;
}

.print-collection {
  font-size: 14px;
  color: #888;
}

.print-link {
  font-size: 14px;
  color: #333;
  margin-top: 5px;
  display: inline-block;
}

/* =========================================
   PRINT DETAIL PAGE
   ========================================= */

.print-detail {
  padding: 80px 20px;
}

.print-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.print-image-wrapper {
  width: 100%;
}

.print-detail-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.print-info {
  padding-top: 20px;
}

.print-title {
  font-family: "bc-alphapipe", sans-serif;
  font-weight: 200;
  font-size: 42px;
  margin-bottom: 10px;
}

.print-collection-label {
  color: #777;
  font-size: 16px;
  margin-bottom: 20px;
}

.print-description {
  line-height: 1.6;
  margin-bottom: 30px;
}

.print-sizes h2 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 300;
}

.print-sizes ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.print-sizes li {
  margin-bottom: 8px;
  font-size: 16px;
}

.purchase-btn {
  margin-top: 20px;
  display: inline-block;
}

.back-prints-link {
  display: inline-block;
  margin-top: 20px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

/* Next / Previous nav */
.print-nav {
  display: flex;
  gap: 12px;
  margin-top: 35px;
}

.print-nav-btn {
  padding: 8px 16px;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  background: #fff;
  transition: background 0.2s ease;
}

.print-nav-btn:hover {
  background: #f0f0f0;
}

.nav-back {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

/* Desktop two-column collections */
@media (min-width: 800px) {
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collections-page .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet & down */
@media (max-width: 880px) {
  .print-detail-inner {
    grid-template-columns: 1fr;
  }

  .print-image-wrapper {
    order: 1;
  }

  .print-info {
    order: 2;
  }
}

/* Mobile (nav, hero, grids) */
@media (max-width: 800px) {
  .site-header {
    padding: 0.75rem 1.25rem;
  }

  .site-header-inner {
    max-width: 100%;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 60px;
    right: 1.25rem;
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  .nav-menu.nav-menu-open {
    display: flex;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero {
    padding: 4rem 1.25rem 3.5rem;
  }
}

/* Small mobile refinements */
@media (max-width: 600px) {
  .intro,
  .collections-section,
  .prints-cta,
  .sessions-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .gallery {
    margin: 2rem auto 2.5rem;
    gap: 1.25rem;
  }

  .prints-hero {
    min-height: 360px;
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }

  .prints-hero h1 {
    font-size: 1.9rem;
  }

  .prints-hero p {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .prints-hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
  }

  /* Fix button overflow in Prints Hero on mobile */
@media (max-width: 600px) {
  .prints-hero-buttons {
    width: 100%;
    max-width: 350px;     /* keeps buttons from stretching edge to edge */
    margin: 0 auto;       /* center horizontally */
  }

  .prints-hero-buttons a {
    width: 100%;          /* full width within the container */
    border-radius: 12px;  /* optional: keeps them looking polished */
  }
}

  .prints-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 4px;
  }

  .print-title {
    font-size: 1.1rem;
    margin-top: 10px;
  }

  .print-collection {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .print-link {
    font-size: 0.85rem;
  }
}

/* --- MOBILE FIX FOR PRINTS HERO BUTTONS --- */
@media (max-width: 600px) {

  /* Prevent background from visually “stretching” wider than viewport */
  .prints-hero {
    overflow: hidden;
  }

  /* Button container should not stretch full width */
  .prints-hero-buttons {
    width: 100%;
    max-width: 340px;     /* controls clean centering */
    margin: 1.2rem auto 0;
    padding: 0 10px;      /* breathing room inside the viewport */
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Each button stays within the container, not full screen width */
  .prints-hero-buttons a {
    width: 100%;
    max-width: 100%;
    border-radius: 28px;
    padding: 12px 16px;
    box-sizing: border-box;
  }
}


/* =========================================
   FORM ENHANCEMENTS — FLOATING LABELS + STEPS + VALIDATION
   ========================================= */

/* Floating label container */
.float-label {
  position: relative;
  display: block;
  margin-bottom: 1.5rem;
}

/* Inputs & textareas & selects */
.float-label input,
.float-label textarea,
.float-label select {
  width: 100%;
  padding: 0.9rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: #111;
  outline: none;
  transition:
    border 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

/* Label text */
.float-label span {
  position: absolute;
  left: 0.75rem;
  top: 0.95rem;
  color: #666;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.25s ease;
  background: #fff;
  padding: 0 0.25rem;
}

/* Multi-step form transitions */
.form-step {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.form-step.active-step {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Dynamic field fade-in */
.dynamic-field {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.dynamic-field.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Progress indicator (minimal text style) */
.form-progress {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
}

/* Next/Back buttons spacing */
.next-step,
.prev-step {
  margin-top: 1rem;
}

/* Mobile: buttons full-width */
@media (max-width: 600px) {
  .next-step,
  .prev-step {
    width: 100%;
    text-align: center;
  }
}

/* ==========================
   Luxe Validation States
   ========================== */

/* Error + success wrapper states */
.float-label.field-error input,
.float-label.field-error textarea,
.float-label.field-error select {
  border-color: #c76363 !important;
  box-shadow: 0 0 0 1px rgba(199, 99, 99, 0.25);
}

.float-label.field-success input,
.float-label.field-success textarea,
.float-label.field-success select {
  border-color: #d4c18a !important; /* Antique gold */
  box-shadow: 0 0 0 1px rgba(212, 193, 138, 0.22);
}

/* Luxe checkmark for success */
.float-label.field-success::after {
  content: "✓";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #d4c18a;
}

/* Error messages */
.error-message {
  font-size: 0.85rem;
  color: #c76363;
  margin-top: 0.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.error-message.visible {
  opacity: 1;
}

/* Gentle shake for blocked steps */
@keyframes field-shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-4px); }
  40%  { transform: translateX(4px); }
  60%  { transform: translateX(-3px); }
  80%  { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.float-label.shake {
  animation: field-shake 0.25s ease;
}

/* Larger date picker styling */
.float-label input[type="date"] {
  padding: 1rem 0.75rem;
  font-size: 1rem;
  height: 52px;
}

.float-label input[type="date"]::-webkit-calendar-picker-indicator {
  transform: scale(1.3);
  margin-right: 4px;
}

.addon {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.addon:not(.visible) {
  opacity: 0;
  transform: translateY(6px);
}

/* =========================
   FLOATING LABEL SYSTEM
========================= */


.float-label span {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #777;
  pointer-events: none;
  transition: all 0.2s ease;
  background: #fff;
  padding: 0 0.25rem;
}

/* FLOAT when focused OR has value */
.float-label input:focus + span,
.float-label input:not(:placeholder-shown) + span,
.float-label textarea:focus + span,
.float-label textarea:not(:placeholder-shown) + span,
.float-label select:focus + span,
.float-label select:not([value=""]) + span {
  top: 0.35rem;
  font-size: 0.7rem;
  color: #000;
}

.form-step.addons-step {
  opacity: 1 !important;
  pointer-events: auto;
}

input[type="date"] {
  font-size: 1rem;
  padding: 1rem 0.75rem;
  min-height: 3.25rem;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  transform: scale(1.25);
  cursor: pointer;
}

/* Add-on checkbox layout */
.addon-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.addon-option:hover {
  border-color: #000;
}

.addon-option input {
  margin-top: 0.25rem;
  transform: scale(1.2);
}

.addon-option span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.addon-option em {
  font-size: 0.85rem;
  color: #666;
}

/* Selected state */
.addon-option input:checked + span {
  font-weight: 500;
}
