/* =========================================
   PALETTE STUDIO — STYLESHEET
   File: css-files/palette.css

   Works alongside the main styles.css file.
   ========================================= */


/* =========================================
   1. PALETTE STUDIO COLOURS
   ========================================= */

.theme-palette {
  --palette-brown: #3e2a1b;
  --palette-sage: #817a64;
  --palette-terracotta: #c88172;
  --palette-gold: #d2a371;
  --palette-cream: #fef5ec;
  --palette-blush: #f6e6d6;
  --palette-border: #eadfd5;

  --accent: #c88172;
  --accent-light: #f6e6d6;
}


/* =========================================
   2. PALETTE STUDIO HERO
   ========================================= */

.palette-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;

  padding-top: 110px;
  padding-bottom: 115px;
}

.palette-hero-content {
  max-width: 670px;
}

.palette-brand-logo {
  display: block;

  width: 110px;
  max-width: 100%;
  height: auto;

  object-fit: contain;

  margin: 25px 0 20px;
}

.palette-hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(3.3rem, 6vw, 5.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.055em;

  margin: 0 0 24px;
}

.palette-hero h1 em {
  color: var(--palette-terracotta);
  font-style: normal;
}

.palette-hero-lead {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.65;

  max-width: 580px;
  margin-bottom: 20px;
}

.palette-hero-content > p:not(.palette-hero-lead) {
  max-width: 590px;
  color: var(--muted);
  line-height: 1.9;
}

.palette-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 34px;
}


/* =========================================
   3. HERO LOGO CONTAINER
   ========================================= */

.palette-hero-art {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 400px;

  padding: 55px;

  color: var(--palette-terracotta);
  background: transparent;

  border: 4px solid var(--palette-terracotta);
  border-radius: 38px;

  position: relative;
  overflow: hidden;
}

/* Decorative background bubbles removed */

.palette-hero-art::before,
.palette-hero-art::after {
  display: none;
}

.palette-hero-art img {
  width: min(100%, 300px);
  height: auto;

  display: block;
  object-fit: contain;

  position: relative;
  z-index: 1;

  filter: drop-shadow(
    0 15px 20px rgba(62, 42, 27, 0.05)
  );
}


/* =========================================
   4. POTTERY SECTION
   ========================================= */

.palette-pottery-section {
  background: var(--palette-cream);
  overflow: hidden;
}

.palette-pottery-section .section-heading {
  margin-bottom: 30px;
}

.palette-pottery-section .section-heading h2 em {
  color: var(--palette-terracotta);
}

.palette-intro {
  max-width: 950px;
  margin: 0 auto 55px;
  text-align: center;
}

.palette-intro p {
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 18px;
}

.palette-intro p:last-child {
  margin-bottom: 0;
}


/* =========================================
   5. CENTRED SECTION HEADINGS
   ========================================= */

/*
  These more specific selectors override
  conflicting section-heading layouts
  from the main styles.css file.
*/

.theme-palette .palette-pottery-section .section-heading,
.theme-palette .palette-workshops-section .section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  text-align: center;

  margin-left: auto;
  margin-right: auto;
}

.theme-palette .palette-pottery-section .section-heading > div,
.theme-palette .palette-workshops-section .section-heading > div {
  width: 100%;
  max-width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
  margin: 0 auto;
}

.theme-palette .palette-pottery-section .section-heading h2,
.theme-palette .palette-workshops-section .section-heading h2 {
  width: 100%;
  text-align: center;

  margin-left: auto;
  margin-right: auto;
}

.theme-palette .palette-pottery-section .section-heading .eyebrow,
.theme-palette .palette-workshops-section .section-heading .eyebrow {
  text-align: center;
  align-self: center;
}

.theme-palette .palette-intro {
  max-width: 950px;
  margin: 0 auto 55px;
  text-align: center;
}

.theme-palette .palette-coming-soon {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================
   6. CONTINUOUS POTTERY CAROUSEL
   ========================================= */

.pottery-marquee {
  width: 100%;
  overflow: hidden;

  padding: 12px 0 30px;

  position: relative;
}

.pottery-marquee-track {
  display: flex;
  align-items: stretch;

  gap: 24px;
  width: max-content;

  animation: pottery-scroll 45s linear infinite;
  will-change: transform;
}

/*
  The JavaScript duplicates the pottery cards
  to create a seamless continuous carousel.

  The animation moves the track by half
  of its total width.
*/

@keyframes pottery-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 12px));
  }
}

/* Pause when hovered or focused */

.pottery-marquee:hover .pottery-marquee-track,
.pottery-marquee:focus-within .pottery-marquee-track,
.pottery-marquee:focus .pottery-marquee-track {
  animation-play-state: paused;
}


/* =========================================
   7. POTTERY PRODUCT CARDS
   ========================================= */

.pottery-card {
  flex: 0 0 290px;

  width: 290px;
  min-height: 395px;

  display: flex;
  flex-direction: column;

  padding: 18px;

  background: var(--white);
  border: 1px solid var(--palette-border);
  border-radius: 22px;

  box-shadow: 0 12px 32px rgba(62, 42, 27, 0.045);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.pottery-card:hover {
  transform: translateY(-5px);

  border-color: rgba(200, 129, 114, 0.5);

  box-shadow: 0 18px 40px rgba(62, 42, 27, 0.09);
}

.pottery-card h3,
.pottery-card-title {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 600;

  margin: 2px 0 15px;
  line-height: 1.5;
}

.pottery-card-image {
  width: 100%;
  height: 245px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: #f8f4ef;
  border-radius: 15px;

  margin-bottom: 20px;
}

.pottery-card-image img,
.pottery-card > img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  display: block;

  transition: transform 0.4s ease;
}

.pottery-card:hover .pottery-card-image img {
  transform: scale(1.045);
}

.pottery-card .btn,
.pottery-card button {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
}

.pottery-card .btn {
  justify-content: center;
}


/* =========================================
   8. LOCAL PICKUP NOTE
   ========================================= */

.palette-small-note {
  max-width: 800px;

  margin: 18px auto 0;

  font-size: 0.82rem;
  line-height: 1.8;

  text-align: center;
  color: var(--muted);

  opacity: 0.82;
}


/* =========================================
   9. ART WORKSHOPS SECTION
   ========================================= */

.palette-workshops-section {
  background: var(--white);
}

.palette-workshops-section .section-heading h2 em {
  color: var(--palette-terracotta);
}

.palette-coming-soon {
  display: inline-flex;
  align-items: center;

  margin-top: 18px;
  padding: 7px 16px;

  border-radius: 100px;

  background: var(--palette-blush);
  color: var(--palette-brown);

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}


/* =========================================
   10. WORKSHOP LIST
   Similar to homepage travel section
   ========================================= */

.palette-workshop-list {
  display: flex;
  flex-direction: column;
  gap: 28px;

  margin-top: 48px;
}

.palette-workshop-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);

  background: var(--palette-cream);

  border: 1px solid var(--palette-border);
  border-radius: 25px;

  overflow: hidden;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.palette-workshop-card:hover {
  transform: translateY(-3px);

  box-shadow: 0 18px 45px rgba(62, 42, 27, 0.075);
}

.palette-workshop-image {
  width: 100%;
  min-height: 310px;

  background: var(--palette-blush);
  overflow: hidden;
}

.palette-workshop-image img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;

  transition: transform 0.45s ease;
}

.palette-workshop-card:hover .palette-workshop-image img {
  transform: scale(1.035);
}

.palette-workshop-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  padding: clamp(25px, 4vw, 55px);
}

.palette-workshop-copy .eyebrow {
  color: var(--palette-terracotta);
}

.palette-workshop-copy h3 {
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;

  line-height: 1.35;
  margin: 12px 0 15px;
}

.palette-workshop-copy p {
  color: var(--muted);
  line-height: 1.8;

  margin-bottom: 12px;
}

.palette-workshop-copy .btn {
  margin-top: 20px;
}

.palette-workshop-date,
.palette-workshop-location {
  font-size: 0.92rem;
  color: var(--muted);
}

.palette-workshop-date {
  font-weight: 600;
}


/* =========================================
   11. PALETTE CONTACT SECTION
   ========================================= */

.palette-contact-section {
  background: var(--palette-blush);
}

.palette-contact-section h2 em {
  color: var(--palette-terracotta);
}

.palette-contact-section .contact-card {
  background: var(--white);
  border-color: var(--palette-border);
}


/* =========================================
   12. SHARED PALETTE MODAL WINDOWS
   ========================================= */

.palette-dialog {
  width: min(92vw, 760px);
  max-width: 760px;

  max-height: min(88vh, 900px);

  padding: 0;
  margin: auto;

  background: var(--white);
  color: var(--ink);

  border: 1px solid var(--palette-border);
  border-radius: 25px;

  box-shadow: 0 25px 90px rgba(30, 25, 20, 0.18);

  overflow-y: auto;
  overscroll-behavior: contain;
}

.palette-dialog::backdrop {
  background: rgba(29, 26, 24, 0.58);
  backdrop-filter: blur(4px);
}

.palette-dialog-inner {
  padding: 0 34px 36px;
}

.palette-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 15px;

  position: sticky;
  top: 0;
  z-index: 5;

  padding: 24px 0 18px;

  background: var(--white);
  border-bottom: 1px solid var(--palette-border);

  margin-bottom: 25px;
}

.palette-dialog-header .eyebrow {
  color: var(--palette-terracotta);
}

.palette-dialog-close {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid var(--palette-border);
  border-radius: 50%;

  background: var(--palette-cream);
  color: var(--palette-brown);

  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.palette-dialog-close:hover {
  background: var(--palette-blush);
  transform: rotate(90deg);
}

.palette-dialog-close:focus-visible {
  outline: 3px solid var(--palette-terracotta);
  outline-offset: 3px;
}


/* =========================================
   13. MODAL TYPOGRAPHY
   ========================================= */

#pottery-modal-content h2,
#workshop-modal-content h2 {
  font-family: var(--heading-font);

  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 650;

  line-height: 1.3;
  margin: 0 0 18px;
}

#pottery-modal-content h3,
#workshop-modal-content h3 {
  font-family: var(--heading-font);

  font-size: 1.15rem;
  font-weight: 600;

  line-height: 1.6;
  margin: 26px 0 12px;
}

#pottery-modal-content p,
#workshop-modal-content p {
  line-height: 1.85;
  color: var(--muted);

  margin-bottom: 16px;
}

#pottery-modal-content .btn,
#workshop-modal-content .btn {
  margin-top: 20px;
}


/* =========================================
   14. POTTERY MODAL DETAILS
   ========================================= */

.pottery-details-list {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 12px 24px;

  padding: 22px;
  margin: 22px 0;

  background: var(--palette-cream);
  border: 1px solid var(--palette-border);
  border-radius: 16px;

  list-style: none;
}

.pottery-details-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;

  font-size: 0.92rem;
  line-height: 1.6;
}

.pottery-details-list strong {
  color: var(--palette-brown);
  font-weight: 600;
}

.pottery-details-list span {
  color: var(--muted);
}

.pottery-modal-image {
  width: 100%;
  max-height: 450px;

  display: block;
  object-fit: contain;

  background: #faf8f5;

  border-radius: 16px;
  margin: 24px 0;
}

.pottery-modal-price {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  font-weight: 700;

  color: var(--palette-brown);

  margin-top: 20px;
}

.pottery-purchase-note {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.75;

  margin-top: 12px;
}


/* =========================================
   15. WORKSHOP MODAL DETAILS
   ========================================= */

.workshop-modal-image {
  width: 100%;
  max-height: 390px;

  display: block;
  object-fit: cover;

  border-radius: 16px;

  margin: 20px 0 26px;
}

.workshop-details-list {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 15px 25px;

  padding: 22px;

  margin: 22px 0;

  background: var(--palette-cream);
  border: 1px solid var(--palette-border);
  border-radius: 16px;

  list-style: none;
}

.workshop-details-list li {
  display: flex;
  flex-direction: column;
  gap: 5px;

  line-height: 1.6;
  font-size: 0.92rem;
}

.workshop-details-list strong {
  color: var(--palette-brown);
}

.workshop-details-list span {
  color: var(--muted);
}

.workshop-modal-description {
  line-height: 1.9;
  margin: 22px 0;
}

.workshop-poster-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;
  margin-top: 22px;
}


/* =========================================
   16. BUTTON COLOURS
   ========================================= */

.theme-palette .btn-primary {
  background: var(--palette-terracotta);
  border-color: var(--palette-terracotta);
  color: #ffffff;
}

.theme-palette .btn-primary:hover {
  background: var(--palette-brown);
  border-color: var(--palette-brown);
  color: #ffffff;
}

.theme-palette .btn-outline {
  border-color: var(--palette-terracotta);
  color: var(--palette-brown);
}

.theme-palette .btn-outline:hover {
  background: var(--palette-terracotta);
  border-color: var(--palette-terracotta);
  color: #ffffff;
}

.theme-palette .text-link:hover {
  color: var(--palette-terracotta);
}


/* =========================================
   17. ACCESSIBILITY
   ========================================= */

.pottery-card button:focus-visible,
.palette-workshop-card button:focus-visible,
.palette-hero-actions a:focus-visible,
.palette-contact-section a:focus-visible {
  outline: 3px solid var(--palette-terracotta);
  outline-offset: 4px;
}


/* =========================================
   18. TABLET RESPONSIVENESS
   ========================================= */

@media (max-width: 1050px) {

  .palette-hero {
    gap: 40px;
  }

  .palette-hero-art {
    min-height: 350px;
    padding: 35px;
  }

  .palette-workshop-copy {
    padding: 32px;
  }

}


/* =========================================
   19. MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 850px) {

  .palette-hero {
    grid-template-columns: 1fr;
    gap: 35px;

    padding-top: 75px;
    padding-bottom: 80px;
  }

  .palette-hero-content {
    max-width: 100%;
  }

  .palette-hero-art {
    min-height: 300px;
    max-width: 520px;

    margin: 0 auto;
  }

  .theme-palette .palette-intro {
    margin-bottom: 40px;
  }

  .palette-workshop-card {
    grid-template-columns: 1fr;
  }

  .palette-workshop-image {
    min-height: 260px;
    max-height: 330px;
  }

  .palette-workshop-copy {
    padding: 30px;
  }

  .pottery-marquee-track {
    animation-duration: 38s;
  }

}


/* =========================================
   20. SMALL MOBILE SCREENS
   ========================================= */

@media (max-width: 650px) {

  .palette-hero {
    padding-top: 55px;
    padding-bottom: 65px;
  }

  .palette-hero h1 {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }

  .palette-brand-logo {
    width: 90px;
  }

  .palette-hero-lead {
    font-size: 1.15rem;
  }

  .palette-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .palette-hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .palette-hero-art {
    min-height: 240px;
    padding: 30px;
    border-radius: 25px;
  }

  .palette-hero-art img {
    max-width: 200px;
  }

  .palette-intro p {
    font-size: 0.95rem;
  }

  .pottery-card {
    flex-basis: 250px;
    width: 250px;
    min-height: 355px;
    padding: 14px;
  }

  .pottery-card-image {
    height: 210px;
  }

  .pottery-marquee-track {
    gap: 18px;
    animation-duration: 34s;
  }

  /*
    Mobile cards use an 18px gap,
    so the seamless scroll offset
    must use half of that gap.
  */

  @keyframes pottery-scroll {
    from {
      transform: translateX(0);
    }

    to {
      transform: translateX(calc(-50% - 9px));
    }
  }

  .palette-small-note {
    font-size: 0.78rem;
    margin-top: 10px;
  }

  .palette-workshop-list {
    gap: 22px;
    margin-top: 35px;
  }

  .palette-workshop-image {
    min-height: 215px;
  }

  .palette-workshop-copy {
    padding: 25px 22px;
  }

  .palette-workshop-copy h3 {
    font-size: 1.4rem;
  }

  .palette-dialog {
    width: 94vw;
    max-height: 90vh;
    border-radius: 19px;
  }

  .palette-dialog-inner {
    padding: 0 20px 25px;
  }

  .palette-dialog-header {
    padding: 18px 0 15px;
  }

  .pottery-details-list,
  .workshop-details-list {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 18px;
  }

  .pottery-modal-image {
    max-height: 320px;
  }

  .workshop-modal-image {
    max-height: 270px;
  }

}


/* =========================================
   21. EXTRA SMALL SCREENS
   ========================================= */

@media (max-width: 380px) {

  .palette-hero h1 {
    font-size: 2.55rem;
  }

  .pottery-card {
    flex-basis: 230px;
    width: 230px;
  }

  .pottery-card-image {
    height: 195px;
  }

  .palette-workshop-copy {
    padding: 22px 18px;
  }

  .palette-dialog-inner {
    padding: 0 16px 22px;
  }

}


/* =========================================
   22. REDUCED MOTION SUPPORT
   ========================================= */

@media (prefers-reduced-motion: reduce) {

  .pottery-marquee-track {
    animation: none;
  }

  .pottery-marquee {
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .pottery-card {
    scroll-snap-align: start;
  }

  .pottery-card,
  .palette-workshop-card,
  .palette-workshop-image img,
  .pottery-card-image img,
  .palette-dialog-close {
    transition: none;
  }

}


/* =========================================
   END OF PALETTE STUDIO CSS
   ========================================= */

/* =========================================
   PALETTE STUDIO SOCIAL BUTTON COLOURS
   ========================================= */

.theme-palette .social-button {
  background: var(--palette-terracotta);
  color: #ffffff;
}

.theme-palette .social-button:hover,
.theme-palette .social-button:focus-visible {
  background: var(--palette-brown);
  color: #ffffff;
}

/* =========================================
   23. MANUAL AND AUTOMATIC POTTERY SLIDER
   ========================================= */
.pottery-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: auto;
  scrollbar-color: var(--palette-terracotta) var(--palette-blush);
}
.pottery-marquee .pottery-marquee-track {
  animation: none;
  transform: none;
  will-change: auto;
}
.pottery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.pottery-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--palette-terracotta);
  border-radius: 24px;
  background: var(--white);
  color: var(--palette-brown);
  font: inherit;
  cursor: pointer;
}
.pottery-controls button:hover,
.pottery-controls button:focus-visible {
  background: var(--palette-brown);
  color: white;
}
.pottery-controls button:focus-visible {
  outline: 2px solid var(--palette-terracotta);
  outline-offset: 3px;
}