/* Prohempotic — natural plant-based goods & wholefoods retailer, Aberystwyth. */
/* All classes namespaced phm-. Apothecary / dried-botanical scheme: */
/* amber–ochre DOMINANT + deep aubergine/plum secondary on oat & sand grounds. */
/* Green is deliberately NOT a brand colour — only a single muted-sage hairline detail. */
:root {
  --phm-ochre: #b9741d;          /* primary brand ochre / amber */
  --phm-ochre-deep: #8c4f10;     /* burnt ochre — hovers, fine strokes */
  --phm-ochre-soft: #dca858;     /* soft amber for light-on-dark accents */
  --phm-amber-glow: #ecbb6c;     /* pale amber highlight on aubergine bands */
  --phm-aubergine: #47243f;      /* deep aubergine — secondary */
  --phm-aubergine-deep: #2f1425; /* darkest plum — bands, footer, headings */
  --phm-aubergine-soft: #6d4560; /* muted plum */
  --phm-sand: #e9dbbe;           /* dried sand */
  --phm-oat: #f4e9d3;            /* oat */
  --phm-paper: #fbf5ea;          /* warm paper ground */
  --phm-sage: #96a084;           /* muted sage — hairline detail only, never dominant */
  --phm-ink: #2d2330;            /* warm plum-tinted ink */
  --phm-muted: #6b5a51;          /* warm brown-grey body text */
  --phm-line: #ddcaa6;           /* sand hairline */
  --phm-on-plum: #ecdcc0;        /* warm light text on aubergine bands */
  --phm-on-plum-soft: #d4bfa2;   /* softer warm light on aubergine bands */
  --phm-shadow: 0 20px 44px -26px rgba(47, 20, 37, 0.5);
  --phm-radius: 18px;
  --phm-space: clamp(3.5rem, 8vw, 6.75rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--phm-ink);
  background: var(--phm-paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; line-height: 1.12; }

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

.phm-shell { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.phm-skip {
  position: absolute; left: 1rem; top: -3.5rem;
  background: var(--phm-aubergine-deep); color: #fff;
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 100;
  transition: top 0.2s ease;
}
.phm-skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--phm-ochre); outline-offset: 3px; border-radius: 4px; }

/* Header */
.phm-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 245, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--phm-line);
}
.phm-header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }

.phm-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.phm-brand-mark { width: 30px; height: 30px; }
.phm-sprout { stroke: var(--phm-ochre-deep); stroke-width: 2; }
.phm-brand-name { font-family: "DM Serif Display", serif; font-size: 1.4rem; color: var(--phm-aubergine-deep); letter-spacing: 0.01em; }

.phm-nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: transparent; border: 1px solid var(--phm-line); border-radius: 10px; cursor: pointer;
}
.phm-nav-bar { display: block; height: 2px; background: var(--phm-aubergine-deep); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.phm-nav-toggle[aria-expanded="true"] .phm-nav-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.phm-nav-toggle[aria-expanded="true"] .phm-nav-bar:nth-child(2) { opacity: 0; }
.phm-nav-toggle[aria-expanded="true"] .phm-nav-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.phm-nav {
  position: absolute; inset: 68px 0 auto 0;
  display: grid; gap: 0.25rem;
  background: var(--phm-paper); border-bottom: 1px solid var(--phm-line);
  padding: 0.75rem clamp(1.25rem, 5vw, 3rem) 1.25rem;
  transform: translateY(-140%); opacity: 0; pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.phm-nav.phm-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.phm-nav-link { text-decoration: none; color: var(--phm-ink); font-weight: 500; padding: 0.65rem 0.25rem; border-bottom: 1px solid var(--phm-line); }
.phm-nav-link:last-child { border-bottom: none; }
.phm-nav-cta { color: var(--phm-ochre-deep); font-weight: 600; }

/* Hero — CENTERED / STACKED: apothecary medallion above centered copy */
.phm-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 78% at 50% -6%, rgba(185, 116, 29, 0.2), transparent 60%),
    linear-gradient(180deg, var(--phm-oat), var(--phm-paper));
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.phm-hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--phm-ochre-soft) 20%, var(--phm-ochre) 50%, var(--phm-ochre-soft) 80%, transparent);
  opacity: 0.7;
}
.phm-hero-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(1.6rem, 4vw, 2.5rem);
}

/* Apothecary medallion framing the botanical motif */
.phm-hero-emblem { display: flex; justify-content: center; }
.phm-medallion {
  position: relative;
  width: min(230px, 62vw); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--phm-paper), var(--phm-sand));
  border: 1px solid var(--phm-line);
  box-shadow: var(--phm-shadow), inset 0 0 0 8px rgba(251, 245, 234, 0.7);
}
.phm-hero-svg { width: 72%; }
.phm-ring { stroke: var(--phm-ochre); stroke-width: 2; stroke-dasharray: 3 10; opacity: 0.65; }
.phm-stem { stroke: var(--phm-sage); stroke-width: 2.5; }        /* the ONE sage detail */
.phm-leaf-fill { fill: var(--phm-ochre); opacity: 0.94; }
.phm-leaf-2 { fill: var(--phm-aubergine); opacity: 0.94; }
.phm-pod { fill: var(--phm-ochre-deep); }
.phm-seed { fill: var(--phm-aubergine); }
.phm-seed-alt { fill: var(--phm-ochre-deep); }

.phm-hero-copy { max-width: 44rem; }
.phm-eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; font-weight: 600; color: var(--phm-ochre-deep); margin: 0 0 0.85rem; }
.phm-eyebrow-light { color: var(--phm-amber-glow); }
.phm-hero-title { font-size: clamp(2.35rem, 6vw, 3.8rem); color: var(--phm-aubergine-deep); margin: 0 0 1.15rem; }
.phm-lede { font-size: 1.08rem; color: var(--phm-muted); max-width: 50ch; margin: 0 auto 1.85rem; }

.phm-hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
.phm-btn { display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; padding: 0.85rem 1.65rem; border-radius: 999px; transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease; }
.phm-btn:active { transform: translateY(1px); }
.phm-btn-solid { background: var(--phm-ochre); color: var(--phm-paper); }
.phm-btn-solid:hover { background: var(--phm-ochre-deep); }
.phm-btn-ghost { border: 1.5px solid var(--phm-aubergine); color: var(--phm-aubergine); }
.phm-btn-ghost:hover { background: var(--phm-aubergine); color: var(--phm-paper); }

/* Sections */
.phm-section { padding-block: var(--phm-space); }
.phm-section-head { max-width: 56ch; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.phm-section-title { font-size: clamp(1.9rem, 4.5vw, 2.85rem); color: var(--phm-aubergine-deep); margin: 0 0 0.85rem; }
.phm-section-intro { color: var(--phm-muted); font-size: 1.05rem; margin: 0; }

/* Range grid */
.phm-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.phm-card {
  position: relative; background: var(--phm-paper); border: 1px solid var(--phm-line); border-radius: var(--phm-radius);
  padding: 1.85rem 1.75rem; box-shadow: var(--phm-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.phm-card::before { content: ""; position: absolute; left: 1.75rem; right: 1.75rem; top: 0; height: 3px; border-radius: 3px; background: var(--phm-ochre); opacity: 0.55; }
.phm-card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -28px rgba(47, 20, 37, 0.55); }
.phm-card-mark { display: inline-flex; width: 54px; height: 54px; border-radius: 15px; background: var(--phm-oat); align-items: center; justify-content: center; margin-bottom: 1rem; }
.phm-card-mark svg { width: 30px; height: 30px; stroke: var(--phm-ochre-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phm-card-title { font-size: 1.35rem; color: var(--phm-aubergine-deep); margin: 0 0 0.5rem; }
.phm-card-text { color: var(--phm-muted); margin: 0; }

/* Provenance band */
.phm-provenance { background: var(--phm-aubergine-deep); color: var(--phm-on-plum); }
.phm-prov-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.phm-title-light { color: #fff; }
.phm-prov-text { color: var(--phm-on-plum); max-width: 52ch; }
.phm-prov-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.phm-prov-point { display: flex; gap: 1.1rem; align-items: flex-start; border-top: 1px solid rgba(236, 220, 192, 0.2); padding-top: 1.25rem; }
.phm-prov-num { font-family: "DM Serif Display", serif; font-size: 1.55rem; color: var(--phm-amber-glow); min-width: 2ch; }
.phm-prov-h { font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 1.05rem; margin: 0 0 0.25rem; color: #fff; }
.phm-prov-point p { margin: 0; color: var(--phm-on-plum-soft); }

/* Ordering steps */
.phm-steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.phm-step { position: relative; background: var(--phm-oat); border: 1px solid var(--phm-line); border-radius: var(--phm-radius); padding: 1.85rem 1.75rem 1.85rem 2.6rem; }
.phm-step-dot { position: absolute; left: 1.45rem; top: 2.25rem; width: 12px; height: 12px; border-radius: 50%; background: var(--phm-ochre); box-shadow: 0 0 0 5px rgba(185, 116, 29, 0.18); }
.phm-step-title { font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--phm-aubergine-deep); margin: 0 0 0.4rem; }
.phm-step p { margin: 0; color: var(--phm-muted); }

/* Contact */
.phm-contact { background: linear-gradient(180deg, var(--phm-paper), var(--phm-oat)); }
.phm-contact-inner { display: grid; gap: 1.5rem; align-items: center; text-align: center; justify-items: center; }
.phm-contact-mail {
  font-family: "DM Serif Display", serif; font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--phm-aubergine-deep); text-decoration: none;
  border-bottom: 2px solid var(--phm-ochre); padding-bottom: 0.2rem;
}
.phm-contact-mail:hover { color: var(--phm-ochre-deep); }

/* Footer */
.phm-footer { background: var(--phm-aubergine-deep); color: var(--phm-on-plum); padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.phm-footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(236, 220, 192, 0.2); }
.phm-footer-name { color: #fff; }
.phm-footer-tag { color: var(--phm-on-plum-soft); max-width: 42ch; margin: 0.6rem 0 0; }
.phm-footer-address { font-style: normal; color: var(--phm-on-plum-soft); line-height: 1.75; }
.phm-footer-label { display: block; font-weight: 700; color: #fff; letter-spacing: 0.04em; margin-bottom: 0.35rem; }
.phm-footer-mail { color: var(--phm-amber-glow); text-decoration: none; display: inline-block; margin-top: 0.5rem; }
.phm-footer-mail:hover { text-decoration: underline; }
.phm-footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding-top: 1.25rem; font-size: 0.85rem; color: #c2ab90; }
.phm-footer-legal p { margin: 0; }
.phm-footer-top { color: var(--phm-on-plum); text-decoration: none; }
.phm-footer-top:hover { color: #fff; }

/* Reveal animation (staggered, project-unique) */
.phm-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.72s ease, transform 0.72s ease; transition-delay: var(--phm-delay, 0s); }
.phm-reveal.phm-visible { opacity: 1; transform: none; }

/* Responsive */
@media (min-width: 620px) {
  .phm-grid { grid-template-columns: repeat(2, 1fr); }
  .phm-steps { grid-template-columns: repeat(3, 1fr); }
  .phm-contact-inner { grid-template-columns: 1fr auto; text-align: left; justify-items: start; }
}

@media (min-width: 900px) {
  .phm-nav-toggle { display: none; }
  .phm-nav {
    position: static; inset: auto; transform: none; opacity: 1; pointer-events: auto;
    display: flex; align-items: center; gap: 1.75rem; background: transparent; border: none; padding: 0;
  }
  .phm-nav-link { border-bottom: none; padding: 0.35rem 0; }
  .phm-nav-cta { border: 1.5px solid var(--phm-ochre); border-radius: 999px; padding: 0.55rem 1.3rem; }
  .phm-nav-cta:hover { background: var(--phm-ochre); color: #fff; }
  .phm-medallion { width: min(260px, 34vw); }
  .phm-grid { grid-template-columns: repeat(4, 1fr); }
  .phm-prov-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .phm-footer-grid { grid-template-columns: 1.3fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phm-reveal { opacity: 1; transform: none; transition: none; }
  .phm-card:hover { transform: none; }
}
