/* ==========================================================================
   Simple Moments Art — styles.css
   Matches: colours, spacing, radii, borders, states per style guide
   Breakpoints: 390 (small), 1024 (medium), 1440 (large)
   ========================================================================== */

/* -----------------------------
   Design tokens
------------------------------ */
:root {
  /* Brand colours */
  --color-resilient-purple: #2a2359;
  --color-strong-blue: #0634be;

  /* Supporting */
  --color-calm-peach-100: #FCF2F1;
  --color-gentle-lavender: #c8c7ee;
  --color-mindful-blue: #ceecf2;
  --color-serene-cream: #f8f6f5;

  --color-hopeful-yellow-100: #FFF6E1;
  --color-joyful-orange-100: #FFECDB;
  --color-mindful-blue-100: #E8F1FF;

  /* Neutrals */
  --color-white: #ffffff;
  --color-gray-1: #c7c7cc;
  --color-gray-2: #8e8e93;
  --color-tranquil-grey-100: #ECF0F5;

  /* Defaults */
  --page-bg: var(--color-white);
  --text-color: var(--color-resilient-purple);
  --link-color: var(--color-strong-blue);

  /* Layout */
  --container-max: 1344px; /* 1440 - (48*2) */
  --gutter: 32px;

  /* Spacing scale (4px grid) */
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;

  /* Radii */
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-20: 20px;
  --radius-28: 28px;
  --radius-pill: 32px; /* buttons + pill menu */

  /* Borders */
  --border-card: 1px solid var(--color-gentle-lavender);
  --border-input: 1px solid var(--color-strong-blue);
  --border-btn: 1px solid var(--color-strong-blue);

  /* Typography (Adobe Fonts: Degular) */
  --font-body: "degular-text", "degular", sans-serif;
  --font-display: "degular-display", "degular", sans-serif;

  /* Focus */
  --focus-ring: rgba(6, 52, 190, 0.25); /* strong blue @ 25% */
}

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

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

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-color);
  font-family: var(--font-body);
  font-weight: 400;            /* Degular Text Regular */
  font-style: normal;
  font-size: 19px;             /* Body text (base) */
  line-height: 28px;           /* Body text (base) */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-resilient-purple);
}

/* Accessible skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: var(--space-12) var(--space-16);
  background: var(--color-white);
  border: 1px solid var(--color-gentle-lavender);
  border-radius: var(--radius-8);
  z-index: 1000;
}

.skip-link:focus {
  left: var(--space-16);
  top: var(--space-16);
}

/* -----------------------------
   Container / page layout
------------------------------ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-24);
  padding-right: var(--space-24);
}

/* Small -> Medium container margin change per mockups */
@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-48);
    padding-right: var(--space-48);
  }
}

/* -----------------------------
   Typography (matches your type scale)
------------------------------ */
h1,
h2,
h3,
h4 {
  color: var(--text-color);
  margin: 0 0 var(--space-16);
  font-family: var(--font-display);
  font-style: normal;
}

/* H1: 45 / 52, Degular Regular */
h1 {
  font-size: 45px;
  line-height: 52px;
  font-weight: 400;
  margin-bottom: var(--space-24);
}

/* H2: 34 / 44, Degular Regular Medium */
h2 {
  font-size: 34px;
  line-height: 44px;
  font-weight: 500;
  margin-bottom: var(--space-16);
}

/* H3: 25 / 39, Degular Regular Medium */
h3 {
  font-size: 25px;
  line-height: 39px;
  font-weight: 500;
  margin-bottom: 0; /* useful for header brand */
}

/* H4: 22 / auto, Degular Regular Medium */
h4 {
  font-size: 22px;
  line-height: normal; /* "auto" */
  font-weight: 500;
}

p {
  margin: 0 0 var(--space-16);
  color: var(--text-color);
}

/* Small text: 16 / auto */
.small-text,
small {
  font-size: 16px;
  line-height: normal;
}

/* Display styles if you ever need them */
.display-1 {
  font-family: var(--font-display);
  font-weight: 500; /* Degular Display Medium */
  font-size: 80px;
  line-height: normal;
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 500; /* Degular Display Medium */
  font-size: 60px;
  line-height: normal;
}

/* Utility for muted/supporting copy (still purple, just less emphasis) */
.text-muted {
  opacity: 0.75;
}

/* -----------------------------
   Header (UPDATED to match your spec)
   - Background always Serene Cream
   - Medium/Large: nav sits BELOW brand
   - Nav link size = body (19px / 28px)
   - Brand should be an H3 in markup
   - Mobile pill bg matches header bg
   - Mobile pill border = strong blue
------------------------------ */
.site-header {
  background: var(--color-serene-cream);
  padding-top: var(--space-48);
  /* Spacing below the header is controlled by the first section (e.g., .page-hero) */
  padding-bottom: 0;
}

.site-header__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Brand ↔ nav spacing */
  gap: var(--space-16);
}

@media (min-width: 1024px) {
  .site-header__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-24);
  }

  /* pushes the nav to the right consistently */
  .site-nav--desktop {
    margin-left: auto;
  }
}

/* Brand link (inside your H3) */
.site-title {
  font-family: var(--font-display);
  font-weight: 500;        /* closer to "Regular Medium" look in header */
  font-size: 25px;         /* H3 size */
  line-height: 39px;       /* H3 line height */
  color: var(--link-color);
  text-decoration: none;
}

.site-title:hover {
  color: var(--color-resilient-purple);
}

/* Desktop nav: sits below brand on medium/large */
.site-nav--desktop {
  display: none;
  gap: var(--space-24);
  align-items: center;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .site-nav--desktop {
    display: flex;
  }
}

/* Nav links: body size */
.site-nav__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 19px;
  line-height: 28px;
  color: var(--link-color);
  text-decoration: none;
  padding-bottom: 6px; /* space for 4px bottom border */
  border-bottom: 4px solid transparent;
}

/* Active state: bottom border 4px strong blue */
.site-nav__link[aria-current="page"],
.site-nav__link.is-active {
  border-bottom-color: var(--color-strong-blue);
}

/* Hover + pressed: Resilient Purple + bottom border 4px Resilient Purple */
.site-nav__link:hover {
  color: var(--color-resilient-purple);
  border-bottom-color: var(--color-resilient-purple);
}

.site-nav__link:active {
  color: var(--color-resilient-purple);
  border-bottom-color: var(--color-resilient-purple);
}

/* Mobile nav (details/summary pill) */
.site-nav--mobile {
  display: inline-block;
  width: 100%;
}

@media (min-width: 1024px) {
  .site-nav--mobile {
    display: none;
  }
}

/* Pill: full width within container; bg matches header; border strong blue */
.menu-pill {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-strong-blue);
  color: var(--link-color);
  background: var(--color-serene-cream);
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 16px;   /* small text scale */
  line-height: normal;
  font-weight: 600;  /* button label semibold feel */
}

.menu-pill::-webkit-details-marker {
  display: none;
}

.menu-pill__arrow {
  position: relative;
  top: 1px;
}

.mobile-menu {
  margin-top: var(--space-12);
  display: grid;
  gap: var(--space-12);
}

.mobile-menu__link {
  color: var(--link-color);
  text-decoration: none;
  font-size: 19px;
  line-height: 28px;
  padding-bottom: 6px;
  border-bottom: 4px solid transparent;
}

.mobile-menu__link:hover {
  color: var(--color-resilient-purple);
  border-bottom-color: var(--color-resilient-purple);
}

.mobile-menu__link[aria-current="page"],
.mobile-menu__link.is-active {
  border-bottom-color: var(--color-strong-blue);
}

/* -----------------------------
   Main / page sections
------------------------------ */
main.container {
  padding-top: 0;
  padding-bottom: var(--space-64);
}

/* Each section/widget: 48px vertical padding */
.section {
  padding-top: var(--space-48);
  padding-bottom: var(--space-48);
}

/* Consistent spacing between common widget elements */
.section h2 + p,
.section h2 + .grid,
.section h2 + .feature-strip__row,
.section h2 + .form {
  margin-top: var(--space-24);
}

/* Process widget: match 48px spacing under the H2 */
.section h2 + .process-grid {
  margin-top: var(--space-32);
}
.section h3{
  margin-top: var(--space-24);
}

/* Add extra breathing room before logo/card grids */
.section p + .logo-grid {
  margin-top: var(--space-48);
}

.section--tight {
  padding-top: var(--space-48);
  padding-bottom: var(--space-48);
}

/* Background variants */
.section--serene {
  background: var(--color-serene-cream);
}

.section--mindful {
  background: var(--color-mindful-blue);
}

.section--peach {
  background: var(--color-calm-peach-100);
}

/* Ensure sections that should be white stay white */
.section--white {
  background: var(--color-white);
}

.section--hopeful-yellow-100{
  background: var(--color-hopeful-yellow-100);
}

.section--mindful-blue-100{
  background: var(--color-mindful-blue-100);
}

/* Page hero spacing */
.page-hero {
  background: var(--color-serene-cream);
  padding-top: var(--space-48);
  padding-bottom: var(--space-48);
}

@media (min-width: 1024px) {
  /* Nav → hero title spacing on medium/large breakpoints */
  .page-hero {
    padding-top: var(--space-48);
  }
}

.page-hero__inner {
  /*max-width: 740px;*/
}

/* Hero copy: control spacing locally (prevents button spacing changing with 1 vs 2 paragraphs) */
.page-hero__inner p {
  margin: 0; /* override global p margin inside hero only */
}

.page-hero__desc {
  margin-bottom: 0; /* no reserved space when there is no CTA */
}

/* Space between multiple paragraphs in hero */
.page-hero__inner p + p {
  margin-top: var(--space-16);
}

/* Keep your "no reserved space" rule */
.page-hero__desc {
  margin-bottom: 0;
}

/* Space above CTA (always consistent, regardless of how many paragraphs) */
.page-hero__inner p + .btn {
  margin-top: var(--space-24);
}

.section--flush-top {
  padding-top: var(--space-0, 0);
}

.section--center-text{
  text-align:center;

}
.section--center-text img{
  display: block;
  margin: 0 auto;
  padding-bottom: 1rem;
}

/* -----------------------------
   Grids
------------------------------ */
.grid {
  display: grid;
  gap: var(--gutter);
}

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

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

/* Tablet/medium layout */
@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Desktop/large layout (keep if you want future tweaks at 1024+) */
@media (min-width: 1024px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Feature strip layout */
/* Feature-strip is treated as a "widget/section" in your system */
.feature-strip {
  padding-top: var(--space-48);
  padding-bottom: var(--space-48);
}

.feature-strip__row {
  display: grid;
  row-gap: var(--space-24);     /* controls title → next row spacing */
  column-gap: 0;               /* no columns on small, so keep clean */
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "media"
    "content";
  align-items: start;
}

.feature-strip__title { grid-area: title; }
.feature-strip__content { grid-area: content; }
.feature-strip__media { grid-area: media; }

/* Medium and up: title full width, then 2 columns */
@media (min-width: 768px) {
  .feature-strip__row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "content media";
    column-gap: var(--gutter);  /* spacing between text and image */
    row-gap: var(--space-24);   /* spacing between title row and content/media row */
  }

  .feature-strip__row--reverse {
    grid-template-areas:
      "title title"
      "media content";
  }
}

.feature-strip__title {
  margin-bottom: 0;
}

.feature-strip__media {
  /* No borders or radii for widget images */
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.feature-strip__media img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-strip__cta{
  margin-top: var(--space-24);
}

/* -----------------------------
   Gallery masonry (Pinterest-like)
   - No cropping, no borders, no captions
   - Uses CSS columns for natural masonry stacking
------------------------------ */

.masonry {
  column-count: 1;
  column-gap: var(--space-24); /* was 32px; makes images feel bigger */
}

@media (min-width: 768px) {
  .masonry {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry {
    column-count: 2; /* max 3 */
  }
}

.masonry__item {
  break-inside: avoid;
  margin: 0 0 var(--space-24); /* match column-gap */
  display: inline-block;
  width: 100%;
}

.masonry__item img {
  width: 100%;
  height: auto;
  display: block;

  /* No borders/radii */
  border: 0;
  border-radius: 0;
}

/* -----------------------------
   Selected works
   - thumbnails should NOT be framed like feature-strip media
------------------------------ */
.selected-works__media {
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.selected-works__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* -----------------------------
   Cards (structured + modular)
   Matches mockup/spec:
   - Card radius: 8px
   - Internal padding: 24px
   - Image radius: 4px (optically correct)
   - Image ratio: 4:3 default (override with modifier)
------------------------------ */

/* Grid container for logo/publication cards */
.logo-grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card base (keep what you have, but add structure support) */
.card {
  border: var(--border-card);
  border-radius: var(--radius-8);
  background: var(--color-white);
  padding: var(--space-24);
  box-shadow: none;

  /* new */
  display: flex;
  flex-direction: column;
  height: 100%; /* helps equal-height cards in a grid */
}

/* Interactive states (your existing ones are fine) */
.card:focus-within {
  border-color: var(--color-strong-blue);
}

.card--interactive {
  cursor: pointer;
  transition: border-color 120ms ease;
}

.card--interactive:hover {
  border-color: var(--color-strong-blue);
}

.card--interactive:active {
  border-color: var(--color-resilient-purple);
}

/* If <a> wraps a .card, remove link styling */
a:has(.card--interactive) {
  display: block;
  text-decoration: none;
  color: inherit;
}

a:has(.card--interactive):hover,
a:has(.card--interactive):active,
a:has(.card--interactive):visited {
  text-decoration: none;
  color: inherit;
}

/* Media block: default 4:3 */
.card__media {
  border-radius: var(--radius-4);
  overflow: hidden;
  background: rgba(200, 199, 238, 0.18); /* subtle lavender wash */
  aspect-ratio: 4 / 3;
  margin-bottom: var(--space-24);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* prevents distortion; crops if needed */
  display: block;
}

/* Optional ratio modifiers */
.card__media--3x4 {
  aspect-ratio: 3 / 4;
}

.card__media--16x9 {
  aspect-ratio: 16 / 9;
}

/* Content */
.card__tag {
  font-size: 16px;
  line-height: normal;
  margin: 0 0 var(--space-8);
  opacity: 0.75;
}

.card__title {
  font-family: var(--font-display);
  font-size: 22px;  /* matches your H4 scale */
  font-weight: 500;
  line-height: normal;
  margin: 0 0 var(--space-16);
}

.card__desc {
  margin: 0 0 var(--space-16);
}

/* Optional footer/meta pinned to bottom */
.card__footer {
  margin-top: auto;
  padding-top: var(--space-16);
}

.card__price {
  font-weight: 500;
  margin: 0;
}

.card__note {
  font-size: 16px;
  line-height: normal;
  margin: var(--space-8) 0 0;
  opacity: 0.75;
}

/* If a card has no media, remove the empty gap cleanly */
.card__media:empty {
  display: none;
  margin-bottom: 0;
}

/* -----------------------------
   Process cards (step variation)
   - Uses base .card
   - Light fill (Serene Cream)
   - Big step number, then title, then small body copy
------------------------------ */

/* Process grid: stacked until 1024, flexible 2–4-up at 1024+ */
.process-grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr; /* default: stack */
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.card--step {
  background: transparent; /* lets the section background show through */
}

/* Step header */
.card__step-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 25px;
  line-height: normal;
  margin: 0 0 var(--space-8);
}

.card__step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 25px;     
  line-height: 28px;
  margin: 0 0 var(--space-16);
}

.card__step-desc {
  margin: 0;
  font-size: 19px;
  line-height: 24px;
  opacity: 0.85;
}

/* -----------------------------
   Tag (reusable component)
   - Use anywhere: cards, lists, widgets
------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: var(--radius-4);
  background: var(--color-resilient-purple);
  color: var(--color-white);
  font-size: 16px;
  line-height: normal;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.tag--secondary {
  background: rgba(42, 35, 89, 0.12); /* resilient purple tint */
  color: var(--color-resilient-purple);
}

/* -----------------------------
   Press list
   - Matches your mock: left meta, optional image on right (md+)
   - Mobile: image stacks under meta
------------------------------ */
.press-section-title {
  margin-top: var(--space-48);
}

/* overall list */
.press-list {
  margin-top: var(--space-4);
}

/* each entry */
.press-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
  padding: 0 0 var(--space-24) 0;
  margin-top: var(--space-24);
  border-bottom: 1px solid var(--color-gentle-lavender);
}

/* right image appears as a column at medium+ */
@media (min-width: 768px) {
  .press-item {
    grid-template-columns: 1fr 240px;
    align-items: start;
    column-gap: var(--gutter);
  }
}

/* date/tag/title/sub spacing */
.press-item__date {
  margin: 0 0 var(--space-8);
}

.press-item__tag {
  margin: 0 0 var(--space-12);
}

.press-item__title {
  margin: 0 0 var(--space-4);
}

.press-item__sub {
  margin: 0;
}

/* media (optional) */
.press-item__media {
  margin: 0;
  width: 100%;
  max-width: 240px; /* matches right column */
}

@media (max-width: 767px) {
  .press-item__media {
    max-width: 100%;
  }
}

.press-item__media img {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: var(--radius-8); /* matches the mock feel */
}

.press-list .press-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* -----------------------------
   Buttons (no shadows, type scale for button label)
------------------------------ */
.btn {
  appearance: none;
  border: var(--border-btn);
  background: var(--color-white);
  color: var(--link-color);
  font-family: var(--font-body);
  font-weight: 400;          /* button label semibold */
  font-size: 19px;           /* button label 16 */
  line-height: normal;       /* auto */
  letter-spacing: normal;
  text-transform: none;
  border-radius: var(--radius-pill);
  padding: 12px 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  width: auto;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

/* Wide primary CTA (used in newsletter) */
.btn--wide {
  width: 100%;
  max-width: 520px;
}


/* Primary button */
.btn--primary {
  background: var(--color-strong-blue);
  border-color: var(--color-strong-blue);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-resilient-purple);
  border-color: var(--color-resilient-purple);
  color: var(--color-white);
}

.btn--primary:active {
  background: var(--color-resilient-purple);
  border-color: var(--color-resilient-purple);
  color: var(--color-white);
}

/* Secondary button */
.btn--secondary {
  background: var(--color-white);
  border-color: var(--color-strong-blue);
  color: var(--color-strong-blue);
}

.btn--secondary:hover {
  border-color: var(--color-resilient-purple);
  color: var(--color-resilient-purple);
}

.btn--secondary:active {
  border-color: var(--color-resilient-purple);
  color: var(--color-resilient-purple);
}

/* Focus state */
.btn:focus,
.btn:focus-visible {
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 4px var(--focus-ring);
}

/* Disabled */
.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Small breakpoint: buttons expand to fill parent */
@media (max-width: 389px) {
  .btn {
    width: 100%;
  }
}

/* -----------------------------
   Forms (inputs: strong blue border, 8px radius, states)
------------------------------ */
.form {
  display: grid;
  gap: var(--space-24);
}

.field {
  display: grid;
  gap: var(--space-8);
}

label {
  font-size: 16px;   /* small text */
  line-height: normal;
  font-weight: 600;  /* readable label weight */
  color: var(--text-color);
}

input,
textarea {
  width: 100%;
  border: var(--border-input);
  border-radius: var(--radius-8);
  padding: 12px 12px;
  font-family: var(--font-body);
  font-size: 19px;     /* body size */
  line-height: 28px;   /* body line height */
  color: var(--text-color);
  background: var(--color-white);
  box-shadow: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(42, 35, 89, 0.55);
}

input:hover,
textarea:hover {
  border-color: var(--color-resilient-purple);
}

input:focus,
textarea:focus,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
  border-color: var(--color-strong-blue);
}

/* Disabled */
input:disabled,
textarea:disabled {
  border-color: var(--color-gray-1);
  color: var(--color-gray-2);
  background: rgba(199, 199, 204, 0.15);
  cursor: not-allowed;
}

/* Error + success helpers if you add classes later */
.input--error {
  border-color: #cc2d2d;
}

.input--success {
  border-color: #2d8a57;
}

/* -----------------------------
   Newsletter widget (styling only — inclusion is markup)
------------------------------ */
.newsletter {
  padding-top: var(--space-32);
  padding-bottom: var(--space-48);
  /* Background should be Serene Cream (per mockups) */
  background: var(--color-serene-cream);
  text-align: center;
  color: var(--color-resilient-purple);
}

/* If newsletter also carries .section, prevent stacked padding */
.section.newsletter {
  padding-top: var(--space-32);
}

.newsletter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-12);
}

.newsletter__icon img {
  width: 120px;
  height: 120px;
  display: block;
}

/* If the icon wrapper has no content, don’t let it create spacing */
.newsletter__icon:empty {
  display: none;
  margin-bottom: 0;
}

.newsletter__title {
  /* Match your widget spacing: title → description = 24px */
  margin-top: 0;
  margin-bottom: var(--space-16);
  color: var(--color-resilient-purple);
}

.newsletter__desc {
  max-width: 520px;
  margin: 0 auto var(--space-24);
  color: var(--color-resilient-purple);
  opacity: 0.85;
}

.newsletter__form {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-16);
  /* Keep the form block centred, but left-align labels + inputs inside it */
  text-align: left;
}

@media (min-width: 1024px) {
  .newsletter__form {
    gap: var(--space-24);
  }
}

/* -----------------------------
   Mailchimp embed (make it match your system styles)
------------------------------ */

/* Remove Mailchimp default layout assumptions */
#mc_embed_signup,
#mc_embed_shell,
#mc_embed_signup_scroll {
  width: 100%;
}

/* The form is already .newsletter__form + .form (grid + gap),
   but ensure Mailchimp wrappers don’t add weird spacing */
#mc_embed_signup_scroll > h2,
#mc_embed_signup_scroll .indicates-required,
#mc_embed_signup_scroll .optionalParent,
#mc_embed_signup_scroll .clear {
  display: none;
}

/* Keep response messages readable and aligned */
.mc-responses {
  margin: 0;
}

.response {
  border: 1px solid var(--color-gentle-lavender);
  border-radius: var(--radius-8);
  padding: var(--space-12);
  font-size: 16px;
  line-height: normal;
}

/* Error/success emphasis (subtle, still on-brand) */
#mce-error-response {
  border-color: rgba(204, 45, 45, 0.45);
}

#mce-success-response {
  border-color: rgba(45, 138, 87, 0.45);
}

/* Honeypot: keep it off-screen but not display:none */
.mc-honeypot {
  position: absolute;
  left: -5000px;
}

/* Mailchimp badge: keep it but make it quiet */
.mc-badge {
  margin: var(--space-16) auto 0;
  text-align: center;
}

.mc-badge img {
  display: inline-block;
  opacity: 0.7;
}

/* Newsletter form spacing fixes */
.newsletter .newsletter__form {
  gap: var(--space-16); /* between fields + button */
}

.newsletter .newsletter__form .field {
  gap: var(--space-8); /* label -> input */
  margin: 0;           /* prevent any inherited margins */
}

/* Just in case Mailchimp adds its own spacing */
.newsletter .mc-field-group {
  margin: 0 !important;
  padding: 0 !important;
}

.newsletter #mc-embedded-subscribe {
  margin-top: var(--space-8);
}

.newsletter .mc-badge {
  display: none;
}
/* -----------------------------
   Footer (resilient purple background)
------------------------------ */
.site-footer {
  background: var(--color-resilient-purple);
  color: var(--color-white);
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

.site-footer .container {
  padding-left: var(--space-24);
  padding-right: var(--space-24);
}

@media (min-width: 1024px) {
  .site-footer .container {
    padding-left: var(--space-48);
    padding-right: var(--space-48);
  }
}

.site-footer__inner {
  display: grid;
  gap: var(--space-24);
  justify-items: center;
  text-align: center;
}

.footer-mark__placeholder {
  width: 120px;
  height: 124px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
}

.site-footer__tagline {
  margin: 0;
  font-size: 16px; /* small text scale */
  line-height: normal;
  opacity: 0.9;
  color: var(--color-white);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  align-items: center;
  justify-content: center;
  font-size: 16px; /* small text scale */
  line-height: normal;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer__nav a:hover {
  color: var(--color-white);
}

.dot {
  opacity: 0.55;
}

/* -----------------------------
   Helpers
------------------------------ */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* -----------------------------
   Shop catalogue
------------------------------ */

.shop {
  padding: var(--space-48) 0 var(--space-64);
}

.shop__layout {
  display: grid;
  gap: var(--space-32);
}

/* Two column layout on desktop */
@media (min-width: 1024px) {
  .shop__layout {
    grid-template-columns: 320px 1fr;
    gap: var(--space-48);
    align-items: start;
  }

  .shop__filters {
    position: sticky;
    top: var(--space-24);
  }
}

.shop__filters {
  background: var(--color-white);
  border: var(--border-card);
  border-radius: var(--radius-8);
  padding: var(--space-24);
}

.shop__filter-group + .shop__filter-group {
  margin-top: var(--space-24);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-gentle-lavender);
}

.shop__filter-title {
  margin: 0 0 var(--space-16);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: normal;
}

.shop__filter-values {
  display: grid;
  gap: var(--space-16);
}

/* Keep labels in shop from inheriting global label styling too strongly */
.shop__check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  color: var(--text-color);
  cursor: pointer;
}

.shop__check input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-strong-blue);
}

.shop__reset {
  margin-top: var(--space-24);
  width: 100%;
}

/* Results */
.shop__results {
  min-width: 0;
}

.shop__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}

@media (min-width: 720px) {
  .shop__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Product cards */
.product-card {
  background: var(--color-white);
  border: var(--border-card);
  border-radius: var(--radius-8);
  overflow: hidden;
  transition: border-color 120ms ease;
  position: relative; /* required for stretched link */
}

/* Invisible link that covers the full card */
.product-card__link {
  position: absolute;
  inset: 0;
  /*z-index: 1;*/
  text-decoration: none;
  border-radius: var(--radius-8);
}

/* Keyboard users should get a clear focus state */
.product-card:focus-within {
  border-color: var(--color-strong-blue);
}

.product-card:hover {
  border-color: var(--color-strong-blue);
}

.product-card__media {
  background: var(--color-white);
  /*border-bottom: 1px solid var(--color-gentle-lavender);*/
  padding: var(--space-24);
}

.product-card__placeholder {
  aspect-ratio: 4 / 3;
}

.product-card__body {
  padding: 0 var(--space-24) var(--space-24) var(--space-24);
}

.product-card__title a {
  color: var(--link-color);
  text-decoration: none;
}

.product-card__title a:hover {
  color: var(--color-resilient-purple);
  text-decoration: underline;
}

.product-card__meta {
  margin: 0 0 var(--space-12);
  font-size: 19px;
  line-height: 28px;
  color: var(--color-resilient-purple);
  
}

.product-card__desc {
  margin: 0 0 var(--space-16);
  font-size: 19px;
  line-height: 28px;
  color: var(--color-resilient-purple);
  
}

.product-card__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-12);
}

.product-card__price {
  font-weight: 700;
  color: var(--color-strong-blue);
}

/* Make filter options feel like chips on smaller screens */
@media (max-width: 1023px) {
  .shop__filters {
    position: static;
  }

  .shop__filter-values {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12);
  }

  .shop__check {
    align-items: center;
    gap: var(--space-8);
    border: var(--border-card);
    border-radius: var(--radius-pill);
    padding: 10px 14px;
    background: var(--color-white);
    /*font-size: 16px;*/
    line-height: normal;
  }

  .shop__check input[type="checkbox"] {
    margin-top: 0;
    accent-color: var(--color-strong-blue);
    border: 1px solid var(--color-strong-blue);
  }

  .shop__check:hover {
    border-color: var(--color-resilient-purple);
  }

  .shop__reset {
    width: auto;
  }
}

.shop__check-text {
  flex: 1;
}

.shop__check-count {
  min-width: 28px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--color-resilient-purple);
  
}

.shop__results-bar {
  margin-bottom: var(--space-24);
}

/* Shop filters: force option text + counts to strong blue */
.shop__check,
.shop__check-text,
.shop__check-count {
  color: var(--color-strong-blue);
}

