/* Funky Petals St. Albert - styles
   Photo-led, light and airy. Colours and fonts are tokens in :root.
   Photos: drop files into /images using the names below. Until then each photo area shows a warm colour gradient.
     images/hero.jpg  images/intro.jpg  images/tile-everyday.jpg  images/tile-sympathy.jpg
     images/tile-weddings.jpg  images/tile-classes.jpg  images/closing.jpg */
:root {
  --white: #ffffff;
  --ink: #3a2d2b;
  --muted: #6d5a56;
  --rosewood: #8a4b50;
  --rosewood-dark: #6f3a3f;
  --blush: #f5eeeb;
  --line: #e6dad5;

  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Photo fallbacks: warm gradients that show until real photos are added */
  --fb-peach: linear-gradient(135deg, #ecd0bd, #d9a99f 60%, #b87b78);
  --fb-rose:  linear-gradient(135deg, #e6c3c0, #c98e93 60%, #9c6068);
  --fb-sand:  linear-gradient(135deg, #efdcc6, #d9b58f 60%, #b58a66);
  --fb-plum:  linear-gradient(135deg, #d8b3b8, #a8707c 60%, #7a4757);
  --shade: linear-gradient(rgba(40, 25, 22, .5), rgba(40, 25, 22, .5));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; }
a { color: var(--rosewood); text-underline-offset: .25em; }
:focus-visible { outline: 3px solid var(--rosewood); outline-offset: 3px; }
.on-photo :focus-visible { outline-color: #fff; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; margin: 0; color: inherit; letter-spacing: .005em; }
h1 { font-size: clamp(2.7rem, 6.5vw, 4.8rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.1; }
h3 { font-size: 1.7rem; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1em; max-width: 38rem; }

.wrap { width: min(100% - 2rem, 66rem); margin-inline: auto; }
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.center { text-align: center; }
.center p { margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

/* Buttons: outlined, spaced capitals */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .75rem 1.7rem;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 700 .8rem/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--solid { background: var(--rosewood); border-color: var(--rosewood); color: #fff; }
.btn--solid:hover { background: var(--rosewood-dark); border-color: var(--rosewood-dark); }
.btn--light { color: #fff; border-color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

/* Header: centered brand over a light nav row */
.site-header { background: var(--white); text-align: center; padding-top: 1.4rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-block; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1; letter-spacing: .02em; }
.brand small { display: block; margin-top: .55rem; font: 400 .72rem/1 var(--font-body); letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.brand-logo { display: block; height: clamp(4rem, 9vw, 6rem); width: auto; margin-inline: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem 1.9rem; padding: 1.1rem 1rem 1.2rem; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font: 400 .78rem/1 var(--font-body); letter-spacing: .15em; text-transform: uppercase; padding: .5rem 0; border-bottom: 1px solid transparent; }
.main-nav a:not(.btn):hover { border-bottom-color: var(--rosewood); }
.main-nav .btn { min-height: 2.5rem; padding: .55rem 1.3rem; font-size: .75rem; }

/* Photo areas: photo on top, gradient underneath as a fallback */
.photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.photo--hero    { background-image: var(--shade), url("/images/hero.jpg"),            var(--fb-peach); }
.photo--intro   { background-image: url("/images/intro.jpg"),                         var(--fb-rose); }
.photo--closing { background-image: var(--shade), url("/images/closing.jpg"),         var(--fb-plum); }
.photo--everyday { background-image: var(--shade), url("/images/tile-everyday.jpg"),  var(--fb-peach); }
.photo--sympathy { background-image: var(--shade), url("/images/tile-sympathy.jpg"),  var(--fb-sand); }
.photo--weddings { background-image: var(--shade), url("/images/tile-weddings.jpg"),  var(--fb-rose); }
.photo--wrendale { background-image: var(--shade), url("/images/tile-wrendale.jpg"),   var(--fb-plum); }
.photo--salted { background-image: var(--shade), url("/images/tile-salted.jpg"),      var(--fb-rose); }
.photo--classes  { background-image: var(--shade), url("/images/tile-classes.jpg"),   var(--fb-plum); }

/* Hero */
.hero { color: #fff; text-align: center; display: grid; place-items: center; min-height: clamp(26rem, 74vh, 40rem); padding: 4rem 1rem; }
.hero .inner { max-width: 44rem; }
.hero .kicker { font: 400 .85rem/1.4 var(--font-body); letter-spacing: .3em; text-transform: uppercase; margin: 0 auto 1.1rem; }
.hero h1 { text-shadow: 0 1px 14px rgba(0, 0, 0, .25); }
.hero .lead { font-size: 1.15rem; margin: 1.2rem auto 0; max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }
.hero .note { font-size: .92rem; margin: 1.4rem auto 0; max-width: 30rem; opacity: .95; }

/* Info strip */
.info { background: var(--blush); padding-block: 2rem; text-align: center; }
.info dl { margin: 0; display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.info dt { font: 700 .75rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--rosewood); margin-bottom: .5rem; }
.info dd { margin: 0; }

/* Intro panel on a photo */
.intro { padding: clamp(3rem, 9vw, 7rem) 1rem; }
.intro .panel { background: #fff; max-width: 42rem; margin-inline: auto; padding: clamp(2rem, 5vw, 3.2rem); text-align: center; }
.intro h2 { margin-bottom: 1rem; }
.intro p { color: var(--muted); }
.intro p:last-child { margin-bottom: 0; }

/* Four photo tiles */
/* A little breathing room so the intro photo and the tile photos do not run together */
.tiles { margin-top: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 3px; background: #fff; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; min-height: 24rem; padding: 2rem 1.25rem; color: #fff; text-align: center; text-decoration: none; }
.tile h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 500; }
@media (max-width: 40rem) { .tile { min-height: 15rem; } }
.tile .btn { pointer-events: none; }
.tile:hover .btn { background: #fff; color: var(--ink); }

/* Seasonal banner */
.seasonal { background: var(--fb-rose); color: #fff; text-align: center; padding-block: clamp(2rem, 5vw, 3rem); }
.seasonal h2 { color: #fff; }
.seasonal p { margin: .6rem auto 1.5rem; color: rgba(255,255,255,.88); }

/* The hidden attribute must always win over display rules like .split */
[hidden] { display: none !important; }

/* Two-column layout */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Classes and signup */
/* With the classes text hidden, the signup panel sits centred on its own */
.split:has(> [hidden]) { grid-template-columns: 1fr; max-width: 36rem; }
.classes h2 { margin-bottom: 1rem; }
.classes p { color: var(--muted); }
.signup-panel { border: 1px solid var(--line); padding: 2rem; }
.signup-panel h3 { margin-bottom: .5rem; }
.signup-panel p { color: var(--muted); }
.signup { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.signup input[type="email"] { flex: 1 1 12rem; min-height: 2.9rem; padding: .6rem 1rem; border: 1.5px solid var(--line); border-radius: 0; background: #fff; font: inherit; color: var(--ink); }

/* Reviews */
.reviews { background: var(--blush); padding-block: 2.5rem; }
.reviews .wrap { display: grid; gap: 1rem 3rem; align-items: center; }
@media (min-width: 46rem) { .reviews .wrap { grid-template-columns: 1fr 2fr; } }
.reviews p { margin: 0; color: var(--muted); }

/* FAQ */
.faq-wrap { max-width: 46rem; }
.faq-wrap h2 { margin-bottom: 1.5rem; text-align: center; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--rosewood); flex: none; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 1.25rem; color: var(--muted); }
.faq-more { margin-top: 1.5rem; text-align: center; }
.faq-group { margin-top: 2.75rem; }
.faq-group:first-child { margin-top: 0; }
.faq-group h2 { font-size: 1.9rem; text-align: left; margin-bottom: 1rem; }

/* Say hello */
.hello h2 { text-align: center; margin-bottom: 2.25rem; }
.hello .grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .hello .grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.map { min-height: 20rem; background: var(--blush); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 20rem; border: 0; }
.hello address { font-style: normal; }
.hello .cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.hello h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.hello p { margin: 0 0 .4rem; }

/* Closing photo band */
.closing { color: #fff; text-align: center; padding: clamp(3rem, 8vw, 5.5rem) 1rem; }
.closing p { margin: .8rem auto 1.6rem; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); text-align: center; padding-block: 2.2rem; font-size: .95rem; color: var(--muted); }
.site-footer p { margin: 0 auto .5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; margin-top: .8rem; }
.site-footer nav a { color: var(--ink); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }

/* FAQ page header */
.page-head { text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.page-head p { margin: 1rem auto 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Featured items page (featured.html) */
.page-head .note-line { font-size: .92rem; margin-top: .4rem; }
.product-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.product { display: flex; flex-direction: column; }
.product-photo { aspect-ratio: 4 / 5; background-image: var(--img); background-size: cover; background-position: center; }
.product-body { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding-top: 1.1rem; flex: 1; }
.product-body h2 { font-size: 1.7rem; }
.product-body p { color: var(--muted); margin: 0 0 .6rem; }
.product-body .btn { margin-top: auto; }
.product-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 2.5rem auto 0; }
.product-note + .product-note { margin-top: .75rem; }

/* Newsletter signup (Brevo) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-msg { flex-basis: 100%; margin: .25rem 0 0; min-height: 1.4em; font-size: .95rem; }
.signup-msg.ok { color: var(--rosewood-dark, #6f3a3f); }
.signup-msg.err { color: #9b2c2c; }
