/* ==========================================================================
   The London Funeral Florist — shared stylesheet
   Used by every page so the whole site keeps the same design language.

   1. Design tokens (colours, fonts, sizes, spacing)
   2. Base styles
   3. Layout helpers
   4. Shared components (buttons, labels, icons, placeholders)
   5. Header and navigation
   6. Homepage sections
   7. Footer
   8. Responsive adjustments (tablet and mobile)
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */

/* Fonts are served from this website (fonts/), so no visitor data is sent to
   Google Fonts. Files: Fontsource 5.3.0, SIL Open Font License (fonts/OFL-*.txt). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jost-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jost-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colours — taken from the approved homepage design */
  --color-cream: #f4f0e9;          /* main page background */
  --color-cream-light: #f7f4ee;    /* header, light buttons */
  --color-beige: #e9e2d6;          /* alternate section background */
  --color-card: #f3efe8;           /* package cards */
  --color-charcoal: #2b2b27;       /* hero, buttons, footer */
  --color-charcoal-hover: #3e3d38;
  --color-text: #33322e;
  --color-text-muted: #66625a;
  --color-line: #d8d0c3;
  --color-on-dark: #f3eee5;
  --color-on-dark-muted: rgba(243, 238, 229, 0.74);
  --color-line-on-dark: rgba(243, 238, 229, 0.18);
  --color-error: #8a3b2e;          /* form validation messages */

  /* Placeholder highlight (for details awaiting confirmation) */
  --color-tbc-bg: rgba(196, 160, 92, 0.2);
  --color-tbc-line: rgba(160, 124, 58, 0.75);

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-h3: 1.375rem;
  --text-h2: clamp(2rem, 3.2vw, 2.625rem);
  --text-h1: clamp(2.5rem, 4.4vw, 3.6rem);
  --tracking-wide: 0.22em;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5rem;

  --section-padding: clamp(2.5rem, 4vw, 3.25rem);
  --container-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --card-gap: 1.25rem;
  --header-height: 6rem;

  --transition: 200ms ease;
}


/* 2. Base styles
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--color-charcoal);
  color: var(--color-on-dark);
}

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


/* 3. Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-padding);
}

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

.section-header {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-header .eyebrow {
  margin-bottom: var(--space-2);
}

.section-header h2 {
  font-size: var(--text-h2);
  font-weight: 400;
}

/* Heading-only intro (Funeral Flowers "OUR CATALOGUE"): smaller heading, tighter spacing */
.section--compact-intro {
  padding-top: var(--space-6);
}

.section--compact-intro .section-header {
  margin-bottom: var(--space-5);
}

.section--compact-intro .section-header h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
}

/* AI imagery disclosure beneath "OUR CATALOGUE": narrower measure, sits close to the heading */
.section--compact-intro .section-header__note {
  max-width: 36rem;
  margin: var(--space-3) auto 0;
}

.section-header p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.75;
}

/* AI imagery disclosure on Packages: slightly smaller, narrower measure, close to the price note above */
.section-header .section-header__disclosure {
  max-width: 36rem;
  margin: var(--space-3) auto 0;
  font-size: 0.8125rem;
}


/* 4. Shared components
   ========================================================================== */

/* Small spaced capitals above headings */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--color-on-dark);
}

/* Short horizontal divider */
.rule {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--color-line);
}

.rule--light {
  background: rgba(243, 238, 229, 0.6);
}

/* Buttons — square edges, as in the approved design */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn--dark {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-on-dark);
}

.btn--dark:hover {
  background: var(--color-charcoal-hover);
  border-color: var(--color-charcoal-hover);
}

.btn--light {
  background: var(--color-cream-light);
  border-color: var(--color-cream-light);
  color: var(--color-charcoal);
}

.btn--light:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(243, 238, 229, 0.7);
  color: var(--color-on-dark);
}

.btn--outline-light:hover {
  background: rgba(243, 238, 229, 0.1);
  border-color: var(--color-on-dark);
}

.btn--caps {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn--small {
  min-height: 2.5rem;
  padding: 0.6rem 0.5rem;
  font-size: 0.75rem;
}

.btn--block {
  width: 100%;
}

.btn--wide {
  min-width: 13rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Text link with underline and arrow */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  color: var(--color-charcoal);
  font-size: var(--text-sm);
  font-weight: 500;
}

.text-link:hover .text-link__arrow {
  transform: translateX(3px);
}

.text-link__arrow {
  transition: transform var(--transition);
}

/* Line icons (drawn from the sprite at the top of each page) */
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Placeholder for details awaiting confirmation.
   Delete the "tbc" class once the real detail is in place. */
.tbc {
  padding: 0 0.3em;
  background: var(--color-tbc-bg);
  outline: 1px dashed var(--color-tbc-line);
  outline-offset: 1px;
}

/* Placeholder box where a photograph will go */
.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--space-5);
  background: linear-gradient(135deg, #dcd3c5 0%, #cdc2b1 100%);
  color: #5d564b;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.media-placeholder--dark {
  background: radial-gradient(ellipse at 62% 45%, #4c4a42 0%, #383731 50%, #2b2b27 100%);
  color: rgba(243, 238, 229, 0.55);
}


/* 5. Header and navigation
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--color-cream-light);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--header-height);
  padding-block: var(--space-4);
}

/* Text logo */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-charcoal);
  line-height: 1;
  text-align: center;
}

.logo__small {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.logo__large {
  margin-top: 0.3rem;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo__tagline {
  margin-top: 0.55rem;
  color: var(--color-text-muted);
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav__list {
  display: flex;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
}

.site-nav a {
  display: inline-block;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  color: var(--color-text);
  font-size: 0.71875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: currentColor;
}

/* Only shown inside the mobile menu */
.site-nav__cta {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-charcoal);
  font-size: var(--text-base);
  white-space: nowrap;
}

/* Menu button (mobile and tablet only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.6rem;
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-charcoal);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* 6. Homepage sections
   ========================================================================== */

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-charcoal);
  color: var(--color-on-dark);
}

.hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
}

.hero__media > img,
.hero__media > .media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keep the flowers (right of the photograph) in view when it is cropped */
.hero__media > img {
  object-position: 75% center;
}

/* Soft fade from the charcoal panel into the photograph */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--color-charcoal) 0%, rgba(43, 43, 39, 0.6) 15%, rgba(43, 43, 39, 0) 42%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: clamp(26rem, 37vw, 32rem);
  padding-block: var(--space-8);
}

.hero__content {
  max-width: 33rem;
}

.hero .eyebrow {
  margin-bottom: var(--space-4);
}

.hero__title {
  margin-bottom: var(--space-5);
  font-size: var(--text-h1);
  font-weight: 400;
  line-height: 1.1;
}

.hero .rule {
  margin-bottom: var(--space-5);
}

.hero__text {
  max-width: 28rem;
  margin-bottom: var(--space-6);
  color: var(--color-on-dark-muted);
  font-size: var(--text-md);
  line-height: 1.7;
}

/* Support at every stage */
.support-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.support-item {
  padding: var(--space-2) var(--space-3);
  border-left: 1px solid var(--color-line);
  text-align: center;
}

.support-item:first-child {
  border-left: 0;
}

.support-item__icon {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto var(--space-4);
  color: var(--color-charcoal);
  stroke-width: 1.1;
}

.support-item h3 {
  margin-bottom: var(--space-2);
  font-size: 1.1875rem;
}

.support-item p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Packages */
.package-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--card-gap);
}

.package-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  background: var(--color-card);
  border: 1px solid rgba(216, 208, 195, 0.7);
}

.package-card__media {
  aspect-ratio: 7 / 5;
}

.package-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.package-card__number {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
}

.package-card__title {
  min-height: 2.4em;
  margin-bottom: var(--space-4);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.2;
}

.package-card__list li {
  position: relative;
  margin-bottom: 0.35rem;
  padding-left: 0.9rem;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.package-card__list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
}

.package-card__price {
  margin-top: auto;
  margin-bottom: var(--space-4);
  padding-top: var(--space-5);
  font-size: var(--text-sm);
}

/* Testimonials */
.testimonials {
  position: relative;
  overflow: hidden;
}

/* Soft light area on the right, where the rose photograph sits in the design.
   Replace with a background image once a photograph is supplied. */
.testimonials::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 22%;
  background: radial-gradient(circle at 85% 55%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}

.testimonials__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 22rem 1fr;
}

/* Four reviews in one row, each divided by a fine line */
.testimonials__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.testimonials__intro {
  padding-right: var(--space-5);
}

.testimonials__intro .eyebrow {
  margin-bottom: var(--space-2);
}

.testimonials__intro h2 {
  margin-bottom: var(--space-4);
  font-size: 2.25rem;
  font-weight: 400;
}

.testimonials__intro p {
  margin-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.75;
}

.testimonial {
  display: flex;
  flex-direction: column;
  padding-inline: var(--space-5);
  border-left: 1px solid var(--color-line);
}

.testimonial blockquote {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.7;
}

.testimonial__cite {
  margin-top: auto;
  padding-top: var(--space-5);
  font-size: 0.8125rem;
  font-style: normal;
}

.testimonial__name,
.testimonial__source {
  display: block;
}

.testimonial__source {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* Long reviews: equal-height previews with a "Read more" control (added by main.js).
   The full text stays in the page, so screen readers always hear all of it. */
.testimonials__list.is-enhanced blockquote {
  min-height: calc(7 * 1.7em);
}

.testimonials__list.is-enhanced .testimonial__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
}

.testimonials__list.is-enhanced .testimonial.is-expanded .testimonial__text {
  display: block;
  overflow: visible;
}

.testimonials__list.is-enhanced .testimonial__cite {
  margin-top: 0;
}

.testimonial__more {
  align-self: flex-start;
  margin-top: var(--space-3);
  padding: 0 0 0.1rem;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.testimonial__more:focus-visible {
  outline: 1px solid var(--color-charcoal);
  outline-offset: 3px;
}

/* Keeps the space (so names stay aligned) when a review is short enough not to need it */
.testimonial__more.is-unneeded {
  visibility: hidden;
}

.stars {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-charcoal);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
}

/* "Speak to our team" band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-7);
  background: var(--color-charcoal);
  color: var(--color-on-dark);
}

/* Faint texture on the left, echoing the soft foliage in the design */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: radial-gradient(ellipse at 20% 60%, rgba(243, 238, 229, 0.06) 0%, rgba(243, 238, 229, 0) 70%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6) var(--space-9);
}

.cta-band h2 {
  margin-block: 0.35rem;
  font-size: 2rem;
  font-weight: 400;
}

.cta-band p {
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
}


/* 7. Footer
   ========================================================================== */

.site-footer {
  background: var(--color-charcoal);
  border-top: 1px solid var(--color-line-on-dark);
  color: var(--color-on-dark-muted);
  font-size: 0.8125rem;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.3fr 1.2fr;
  padding-block: var(--space-7);
}

.footer-col {
  padding-inline: var(--space-6);
  border-left: 1px solid var(--color-line-on-dark);
}

.footer-col:first-child {
  padding-left: 0;
  border-left: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.footer-brand__mark {
  width: 2.5rem;
  height: 4rem;
  color: var(--color-on-dark);
  stroke-width: 1;
}

.logo--footer {
  align-items: flex-start;
  color: var(--color-on-dark);
  text-align: left;
}

.logo--footer .logo__small,
.logo--footer .logo__large {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
}

.logo--footer .logo__large {
  margin-top: 0.45rem;
}

.logo--footer .logo__tagline {
  color: var(--color-on-dark-muted);
}

.footer-links li + li {
  margin-top: 0.3rem;
}

.footer-links a,
.footer-contact a,
.legal-links a,
.legal-links__button {
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover,
.legal-links a:hover,
.legal-links__button:hover {
  color: var(--color-on-dark);
}

/* "Cookie settings" opens the consent preferences; styled like the links beside it */
.legal-links__button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.footer-links__highlight {
  color: var(--color-on-dark);
  font-weight: 500;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
}

.footer-contact li + li {
  margin-top: 0.5rem;
}

.footer-contact .icon {
  margin-top: 0.25em;
  color: var(--color-on-dark);
}

.footer-contact__plain {
  padding-left: calc(1em + 0.75rem);
}

.footer-heading {
  margin-bottom: 0.3rem;
  color: var(--color-on-dark);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-line-on-dark);
  font-size: 0.71875rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  row-gap: var(--space-2);
}

.legal-links li + li::before {
  content: "|";
  margin-inline: 0.9rem;
  opacity: 0.5;
}

.social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social__links {
  display: flex;
  gap: 0.5rem;
}

.social__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--color-on-dark);
  font-size: 1.15rem;
}


/* 8. Responsive adjustments
   ========================================================================== */

/* Mid-size laptops: keep the full menu on one line by tightening the header */
@media (min-width: 1280px) and (max-width: 1400px) {
  .site-header__inner {
    gap: var(--space-5);
  }

  .site-nav__list {
    gap: 1.25rem;
  }

  .site-header__actions {
    gap: var(--space-4);
  }

  .header-phone {
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--color-line);
  }

  .header-phone__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.site-nav a,
.site-header__actions .btn {
  white-space: nowrap;
}

/* Smaller laptops and tablets: navigation folds into a menu button */
@media (max-width: 1279px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    background: var(--color-cream-light);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 12px 24px rgba(43, 43, 39, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-5);
  }

  .site-nav__list li {
    border-bottom: 1px solid var(--color-line);
  }

  .site-nav a {
    display: block;
    padding-block: var(--space-4);
    border-bottom: 0;
    font-size: var(--text-sm);
  }

  .site-nav a[aria-current="page"] {
    font-weight: 500;
  }

  .site-nav__cta {
    display: block;
    padding-top: var(--space-5);
    border-bottom: 0 !important;
  }

  .site-nav__cta .btn {
    display: flex;
    width: 100%;
    padding-block: var(--space-4);
    color: var(--color-on-dark);
  }

  .site-header__actions {
    gap: var(--space-4);
  }

  /* Reviews: introduction on top, reviews in a swipeable row beneath */
  .testimonials__grid {
    grid-template-columns: 1fr;
    row-gap: var(--space-6);
  }

  .testimonials__intro {
    max-width: 36rem;
    padding-right: 0;
  }

  .testimonials__list {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-4);
    scrollbar-color: var(--color-line) transparent;
    scrollbar-width: thin;
  }

  .testimonial {
    flex: 0 0 min(20rem, 42%);
    scroll-snap-align: start;
  }

  .testimonial:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .testimonials::after {
    display: none;
  }
}

@media (max-width: 1180px) {
  .hero__media {
    width: 58%;
  }

  .package-card {
    flex: 0 1 calc((100% - 2 * var(--card-gap)) / 3);
  }
}

/* Tablets */
@media (max-width: 1000px) {
  .support-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: var(--space-7);
  }

  .support-item:nth-child(3n + 1) {
    border-left: 0;
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .footer-col {
    padding-inline: 0;
    border-left: 0;
  }
}

/* Large phones and small tablets */
@media (max-width: 760px) {
  .hero__media {
    position: relative;
    width: 100%;
    height: 16rem;
  }

  .hero__media::before {
    background: linear-gradient(0deg, var(--color-charcoal) 0%, rgba(43, 43, 39, 0) 45%);
  }

  .hero__inner {
    min-height: 0;
    padding-block: var(--space-5) var(--space-8);
  }

  .package-card {
    flex-basis: calc((100% - var(--card-gap)) / 2);
  }

  .cta-band__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-band .btn-group {
    justify-content: center;
  }
}

/* Phones */
@media (max-width: 600px) {
  :root {
    --header-height: 4.75rem;
  }

  .site-header__inner {
    gap: var(--space-4);
  }

  .logo__small {
    font-size: 0.85rem;
  }

  .logo__large {
    font-size: 1.25rem;
    letter-spacing: 0.12em;
  }

  .logo__tagline {
    display: none;
  }

  /* Phone shows as an icon only; the menu holds the enquiry button */
  .header-phone {
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--color-line);
  }

  .header-phone__text,
  .site-header__actions > .btn {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .site-header__actions {
    gap: var(--space-2);
  }

  .hero__title {
    font-size: 2.35rem;
  }

  .hero .btn-group .btn {
    width: 100%;
  }

  .support-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-6);
  }

  .support-item {
    padding-inline: var(--space-3);
  }

  .support-item:nth-child(3n + 1) {
    border-left: 1px solid var(--color-line);
  }

  .support-item:nth-child(odd) {
    border-left: 0;
  }

  .package-card {
    flex-basis: 100%;
  }

  .package-card__title {
    min-height: 0;
  }

  /* One review at a time, with the next one peeking in to invite a swipe */
  .testimonial {
    flex-basis: 85%;
  }

  .cta-band .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .cta-band .btn {
    width: 100%;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-links {
    column-gap: var(--space-5);
  }

  .legal-links li + li::before {
    content: none;
  }

  .legal-links li:first-child {
    flex-basis: 100%;
  }
}


/* 9. Inner pages (Packages and future pages)
   ========================================================================== */

/* Outline button for light backgrounds */
.btn--outline-dark {
  background: transparent;
  border-color: var(--color-charcoal);
  color: var(--color-charcoal);
}

.btn--outline-dark:hover {
  background: var(--color-charcoal);
  color: var(--color-on-dark);
}

/* Page banner — a compact version of the homepage hero */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-charcoal);
  color: var(--color-on-dark);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 55%;
  background: radial-gradient(ellipse at 70% 50%, rgba(243, 238, 229, 0.07) 0%, rgba(243, 238, 229, 0) 70%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--space-7) var(--space-8);
}

.breadcrumb {
  margin-bottom: var(--space-6);
  color: var(--color-on-dark-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline: 0.6rem;
  opacity: 0.6;
}

.breadcrumb a {
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-on-dark);
}

.page-hero .eyebrow {
  margin-bottom: var(--space-4);
}

.page-hero__title {
  margin-bottom: var(--space-5);
  font-size: var(--text-h1);
  font-weight: 400;
  line-height: 1.1;
}

.page-hero .rule {
  margin-bottom: var(--space-5);
}

.page-hero__text {
  max-width: 36rem;
  color: var(--color-on-dark-muted);
  font-size: var(--text-md);
  line-height: 1.7;
}

/* Quick links to each package */
.package-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-4);
  border-block: 1px solid var(--color-line);
}

.package-index a {
  display: inline-flex;
  gap: 0.5rem;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: border-color var(--transition);
}

.package-index a:hover {
  border-bottom-color: currentColor;
}

.package-index__number {
  color: var(--color-text-muted);
}

/* Detailed package rows */
.package-detail {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-line);
  scroll-margin-top: var(--space-5);
}

.package-detail:first-child {
  border-top: 0;
}

.package-detail--reverse {
  grid-template-columns: 6fr 5fr;
}

.package-detail--reverse .package-detail__media {
  order: 2;
}

.package-detail__media {
  aspect-ratio: 4 / 3;
}

.package-detail__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Show the whole image (e.g. wide lettering) instead of cropping it to fill the frame */
.package-card__media > img.img--contain,
.package-detail__media > img.img--contain {
  object-fit: contain;
  background: var(--color-beige);
}

/* Embedded map fills the frame like a photograph (About Us "Visit us") */
.package-detail__media > iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Until the visitor chooses to load it, the map is a placeholder: nothing is
   requested from Google. js/cookie-consent.js swaps in the map on request. */
.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 100%; /* grows past the frame's ratio on narrow screens instead of clipping */
  padding: var(--space-5);
  background: var(--color-card);
  border: 1px solid var(--color-line);
  text-align: center;
}

.map-consent .icon {
  width: 2rem;
  height: 2rem;
  color: var(--color-text-muted);
}

.map-consent__title {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  color: var(--color-charcoal);
}

.map-consent__text {
  max-width: 34rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.map-consent .btn-group {
  justify-content: center;
}

.package-detail__number {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
}

.package-detail__title {
  margin-bottom: var(--space-4);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 400;
}

.package-detail__text {
  max-width: 34rem;
  margin-bottom: var(--space-5);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.package-detail__label {
  margin-bottom: var(--space-3);
}

.included-list {
  max-width: 34rem;
  margin-bottom: var(--space-5);
}

/* A little more space above the list when it ends the content (About Us "Visit us") */
.included-list--spaced {
  margin-top: var(--space-7);
  margin-bottom: 0;
}

.included-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.5rem;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.9375rem;
}

.included-list li:first-child {
  border-top: 1px solid var(--color-line);
}

.included-list li::before {
  content: "";
  position: absolute;
  top: 1.25em;
  left: 0;
  width: 0.6rem;
  height: 1px;
  background: var(--color-charcoal);
}

.package-detail__price {
  margin-bottom: var(--space-5);
}

.package-detail__price-label {
  margin-right: 0.4rem;
  color: var(--color-text-muted);
}

/* Three-column variant of the "support" grid */
.support-grid--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 62rem;
  margin-inline: auto;
}

/* Two-column panel (funeral directors section) */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--space-8);
}

.split-panel .eyebrow {
  margin-bottom: var(--space-2);
}

.split-panel h2 {
  margin-bottom: var(--space-4);
  font-size: var(--text-h2);
  font-weight: 400;
}

.split-panel__text {
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.split-panel__text + .split-panel__text {
  margin-top: calc(var(--space-6) * -0.5);
}

.checklist-box {
  padding: var(--space-6);
  background: var(--color-card);
  border: 1px solid rgba(216, 208, 195, 0.7);
}

.checklist-box h3 {
  margin-bottom: var(--space-4);
  font-size: var(--text-h3);
}

.checklist-box .included-list {
  margin-bottom: var(--space-5);
}

.checklist-box__note {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Space below a note when more content follows it (About Us page) */
.checklist-box__note:not(:last-child) {
  margin-bottom: var(--space-4);
}

/* A note that follows a row of buttons starts a new group (About Us "Choose online") */
.checklist-box .btn-group + .checklist-box__note {
  margin-top: var(--space-6);
}

/* Two-line opening hours beside their label */
.opening-hours {
  display: inline-block;
  vertical-align: top;
}

/* Let long email addresses wrap on narrow phones */
.included-list a {
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .split-panel {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 860px) {
  .package-detail {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding-block: var(--space-7);
  }

  .package-detail--reverse .package-detail__media {
    order: 0;
  }

  .package-detail__media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  .page-hero__inner {
    padding-block: var(--space-6) var(--space-7);
  }

  .page-hero__title {
    font-size: 2.35rem;
  }

  .package-index {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .package-detail__media {
    aspect-ratio: 4 / 3;
  }

  .support-grid--three {
    grid-template-columns: 1fr;
  }

  .support-grid--three .support-item {
    border-left: 0;
  }

  .package-detail .btn-group .btn,
  .split-panel .btn-group .btn {
    width: 100%;
  }

  .checklist-box {
    padding: var(--space-5);
  }
}


/* 10. Funeral Flowers catalogue
   ========================================================================== */

/* Category heading: title on the left, short description on the right */
.category-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: var(--space-4) var(--space-8);
  margin-bottom: 2.5rem;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-line);
  scroll-margin-top: var(--space-5);
}

.category-header .eyebrow {
  margin-bottom: var(--space-2);
}

.category-header h2 {
  font-size: var(--text-h2);
  font-weight: 400;
}

.category-header__text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.75;
}

/* Product cards reuse the shared .package-card component */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.product-grid .package-card__media {
  aspect-ratio: 4 / 3;
}

/* Standard product card: image -> name -> price -> enquire button */
/* Every product photograph fills the same 4:3 frame (set by .product-grid .package-card__media) */
.product-card .package-card__media > img {
  object-fit: cover;
  object-position: center;
}

/* Wide collages (e.g. several letter tributes) are shown whole, on a tone matching the photograph's own border */
.product-card .package-card__media > img.img--contain {
  object-fit: contain;
  background: #fdfaf7;
}

/* Classic and Personalised Letter Tributes and all Wreaths: frame matches each photograph's own 3:2 shape, so it shows in full with no empty bands */
.product-card--classic-letter-tribute .package-card__media,
.product-card--personalised-letter-tribute .package-card__media,
.product-card--red-rose-wreath .package-card__media,
.product-card--white-blooms-wreath .package-card__media,
.product-card--purple-white-wreath .package-card__media,
.product-card--chrysanthemum-lily-wreath .package-card__media,
.product-card--white-rose-wreath .package-card__media,
.product-card--pink-cream-wreath .package-card__media {
  aspect-ratio: 3 / 2;
}

/* Standing Sprays, Religious Tributes, Posies and Other Floral Tributes: every position (photographs and placeholders) uses the same 3:2 frame, so the row stays even */
.product-grid--landscape .package-card__media {
  aspect-ratio: 3 / 2;
}

.product-card .package-card__body {
  padding: var(--space-5) 1.25rem 1.25rem;
}

.product-card__name {
  margin-bottom: var(--space-2);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.25;
}

/* Optional short description, shown in full (only used where a design has one) */
.product-card__description {
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.product-card__description + .product-card__price,
.product-card__descriptions + .product-card__price {
  margin-top: var(--space-2);
}

.product-card__price {
  margin-bottom: var(--space-5);
  color: var(--color-text);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

.product-grid .btn {
  margin-top: auto;
}

/* Religious Tributes, Posies and Other Floral Tributes: cards side by side share the same rows (photo, name, up to four
   description paragraphs, price, button), so names, descriptions and prices line up
   whatever their length. Unused description rows take no space. Browsers without
   subgrid keep the standard card layout. */
@supports (grid-template-rows: subgrid) {
  .product-grid--aligned-text {
    row-gap: 0;
  }

  .product-grid--aligned-text > .package-card {
    display: grid;
    grid-row: span 8;
    grid-template-rows: subgrid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .product-grid--aligned-text > .package-card:nth-child(n + 4) {
    margin-top: var(--card-gap);
  }

  .product-grid--aligned-text .package-card__body {
    display: grid;
    grid-row: 2 / -1;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .product-grid--aligned-text .product-card__name {
    grid-row: 1;
  }

  .product-grid--aligned-text .product-card__price {
    grid-row: -3 / -2;
  }

  /* Every product price keeps the gap it has below a description, so prices line up
     whether or not a card has one */
  .product-grid--aligned-text .product-card__price:not(:has(.tbc)) {
    margin-top: var(--space-2);
  }

  .product-grid--aligned-text .btn {
    grid-row: -2 / -1;
  }

  /* Placeholder cards keep their usual layout and simply fill the row height */
  .product-grid--aligned-text > .package-card:has(.tbc),
  .product-grid--aligned-text > .package-card:has(.tbc) .package-card__body {
    display: flex;
  }
}

/* Carousel variant: one row of cards at the same width as the grid (three on desktop),
   scrolled sideways with the arrows below or by swiping */
.product-grid--carousel {
  grid-template-columns: none;
  grid-auto-columns: calc((100% - 2 * var(--card-gap)) / 3);
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-grid--carousel::-webkit-scrollbar {
  display: none;
}

.product-grid--carousel > .package-card {
  scroll-snap-align: start;
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.carousel-nav[hidden] {
  display: none;
}

.carousel-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-charcoal);
  font-size: var(--text-base);
  cursor: pointer;
  transition: border-color var(--transition), opacity var(--transition);
}

.carousel-nav__btn:hover:not(:disabled) {
  border-color: var(--color-charcoal);
}

.carousel-nav__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Closing "not sure what to choose" panel */
.help-panel {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.help-panel .eyebrow {
  margin-bottom: var(--space-2);
}

.help-panel h2 {
  margin-bottom: var(--space-4);
  font-size: var(--text-h2);
  font-weight: 400;
}

.help-panel p {
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.75;
}

.help-panel .btn-group {
  justify-content: center;
}

/* Tablet and phone: two cards per row, with any odd card centred */
@media (max-width: 1000px) {
  .product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-grid > .package-card {
    flex: 0 1 calc((100% - var(--card-gap)) / 2);
  }

  .product-grid.product-grid--carousel {
    display: grid;
    grid-auto-columns: calc((100% - var(--card-gap)) / 2);
    justify-content: start;
  }

  /* Stays a grid (needed for the shared rows), laid out like the flex version above */
  .product-grid.product-grid--aligned-text {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  @supports (grid-template-rows: subgrid) {
    .product-grid--aligned-text > .package-card:nth-child(n) {
      margin-top: 0;
    }

    .product-grid--aligned-text > .package-card:nth-child(n + 3) {
      margin-top: var(--card-gap);
    }
  }

  .product-grid--aligned-text > .package-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - var(--card-gap)) / 2);
  }
}

@media (max-width: 760px) {
  .category-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .product-grid > .package-card {
    flex-basis: 100%;
  }

  .product-grid.product-grid--carousel {
    grid-auto-columns: 100%;
  }

  .product-grid.product-grid--aligned-text {
    grid-template-columns: minmax(0, 1fr);
  }

  @supports (grid-template-rows: subgrid) {
    .product-grid--aligned-text > .package-card:nth-child(n + 2) {
      margin-top: var(--card-gap);
    }
  }

  .product-grid--aligned-text > .package-card:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .help-panel .btn-group .btn {
    width: 100%;
  }
}

/* Carousel with aligned text (Other Floral Tributes): stays one scrolling row at every
   width, with all cards sharing the same rows */
.product-grid.product-grid--aligned-text.product-grid--carousel {
  grid-template-columns: none;
}

.product-grid--aligned-text.product-grid--carousel > .package-card,
.product-grid--aligned-text.product-grid--carousel > .package-card:nth-child(n) {
  margin-top: 0;
}

.product-grid--aligned-text.product-grid--carousel > .package-card:last-child:nth-child(odd) {
  grid-column: auto;
  justify-self: stretch;
  width: auto;
}


/* 11. Contact page and enquiry form
   ========================================================================== */

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Contact details beside the form */
.contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: start;
  gap: var(--space-7);
}

.contact-card h2,
.form-panel h2 {
  margin-bottom: var(--space-4);
  font-size: 1.75rem;
  font-weight: 400;
}

.contact-card .included-list {
  margin-bottom: var(--space-5);
}

.contact-card .btn-group .btn {
  flex: 1 1 auto;
}

/* Form panel */
.form-panel {
  padding: var(--space-6);
  background: var(--color-card);
  border: 1px solid rgba(216, 208, 195, 0.7);
}

.form-panel__intro {
  margin-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Notice that online sending is not yet available */
.form-notice {
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-beige);
  border-left: 2px solid var(--color-charcoal);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.form-notice strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.form-notice a {
  border-bottom: 1px solid currentColor;
}

/* "Regarding" line when arriving from an Enquire button */
.form-regarding {
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--color-cream-light);
  border: 1px solid var(--color-line);
  font-size: var(--text-sm);
}

/* Summary of the selected design or package */
.form-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding: var(--space-3);
  background: var(--color-cream-light);
  border: 1px solid var(--color-line);
}

.form-item[hidden] {
  display: none;
}

.form-item__image {
  flex: 0 0 6.5rem;
  width: 6.5rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.form-item .package-detail__price-label {
  display: block;
  margin-bottom: 0.15rem;
}

.form-item__name {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.25;
}

.form-item__meta {
  margin-top: 0.2rem;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

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

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-field__optional {
  color: var(--color-text-muted);
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--color-cream-light);
  border: 1px solid var(--color-line);
  border-radius: 0;
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-charcoal);
}

.form-field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2b27' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.9rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
  appearance: none;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field [aria-invalid="true"] {
  border-color: var(--color-error);
}

.form-error {
  margin-top: 0.35rem;
  color: var(--color-error);
  font-size: 0.8125rem;
}

/* Privacy acknowledgement */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.form-check input {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.2rem 0 0;
  accent-color: var(--color-charcoal);
}

.form-check label {
  margin-bottom: 0;
  font-weight: 400;
}

.form-check a {
  border-bottom: 1px solid currentColor;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.form-actions__note {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.form-required-note {
  margin-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

@media (max-width: 1000px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-panel {
    padding: var(--space-5);
  }

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

  .form-actions .btn,
  .contact-card .btn-group .btn {
    width: 100%;
  }

  .form-item__image {
    flex-basis: 5rem;
    width: 5rem;
  }
}

/* Very small phones (under 375px): keep the header and Contact boxes within the screen */
@media (max-width: 374px) {
  .site-header__inner {
    gap: var(--space-2);
  }

  .logo__large {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
  }

  .form-notice a {
    overflow-wrap: anywhere;
  }
}


/* Privacy & Safety Policy page: one readable column of text
   ========================================================================== */

.policy {
  max-width: 46rem;
  margin-inline: auto;
}

.policy p,
.policy address {
  margin-top: var(--space-4);
  line-height: 1.75;
}

.policy__intro p:first-child {
  margin-top: 0;
  font-size: var(--text-md);
}

.policy__section {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
}

/* Pages without an introduction (Terms & Conditions) start straight at section 1 */
.policy > .policy__section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.policy__section h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
}

.policy .included-list {
  max-width: none;
  margin: var(--space-4) 0 0;
}

.policy strong {
  font-weight: 500;
  color: var(--color-charcoal);
}

.policy a {
  border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
}

/* "Cookie settings" control inside the Privacy Policy text */
.policy .policy__cookie-settings {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--color-charcoal);
  font: inherit;
  cursor: pointer;
}


/* 12. Cookie consent banner (vendor/cookieconsent, themed to match the site)
   ========================================================================== */

#cc-main {
  --cc-font-family: var(--font-sans);
  --cc-bg: var(--color-cream-light);
  --cc-primary-color: var(--color-charcoal);
  --cc-secondary-color: var(--color-text-muted);
  --cc-link-color: var(--color-charcoal);

  /* Accept all and Reject all share one style so neither is favoured */
  --cc-btn-primary-bg: var(--color-charcoal);
  --cc-btn-primary-color: var(--color-on-dark);
  --cc-btn-primary-border-color: var(--color-charcoal);
  --cc-btn-primary-hover-bg: var(--color-charcoal-hover);
  --cc-btn-primary-hover-color: var(--color-on-dark);
  --cc-btn-primary-hover-border-color: var(--color-charcoal-hover);
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: var(--color-charcoal);
  --cc-btn-secondary-border-color: var(--color-charcoal);
  --cc-btn-secondary-hover-bg: var(--color-beige);
  --cc-btn-secondary-hover-color: var(--color-charcoal);
  --cc-btn-secondary-hover-border-color: var(--color-charcoal);
  --cc-btn-border-radius: 0;
  --cc-modal-border-radius: 0;
  --cc-pm-toggle-border-radius: 1em;

  --cc-separator-border-color: var(--color-line);
  --cc-toggle-on-bg: var(--color-charcoal);
  --cc-toggle-off-bg: #8c877d;
  --cc-toggle-on-knob-bg: #fff;
  --cc-toggle-off-knob-bg: #fff;
  --cc-toggle-readonly-bg: var(--color-line);
  --cc-toggle-readonly-knob-bg: #fff;
  --cc-toggle-readonly-knob-icon-color: var(--color-line);
  --cc-cookie-category-block-bg: var(--color-cream);
  --cc-cookie-category-block-border: var(--color-line);
  --cc-cookie-category-block-hover-bg: var(--color-beige);
  --cc-cookie-category-block-hover-border: var(--color-line);
  --cc-cookie-category-expanded-block-bg: var(--color-cream);
  --cc-cookie-category-expanded-block-hover-bg: var(--color-beige);
  --cc-overlay-bg: rgba(43, 43, 39, 0.6);
  --cc-footer-bg: var(--color-card);
  --cc-footer-color: var(--color-text-muted);
  --cc-footer-border-color: var(--color-line);
}

#cc-main .cm__title,
#cc-main .pm__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
}

#cc-main .cm__btn,
#cc-main .pm__btn {
  font-weight: 500;
  letter-spacing: 0.04em;
}
