/*
  Plant Wardian website styles.

  One stylesheet for the whole site. It is laid out in the same order as
  the page: colours and fonts, shared pieces (buttons, headings), then each
  section from top to bottom, then the rules for narrow screens.
*/

/* ---------- Colours and fonts ----------
   Change a colour here and it changes everywhere it is used. */
:root {
  --ink: #173b2e;      /* dark green: text, dark bands, main buttons */
  --green: #2e5b43;    /* mid green: button hover */
  --moss: #71845f;
  --ivory: #f4f0e5;    /* page background */
  --paper: #fbf9f2;    /* cards and panels */
  --line: #ded9ca;     /* borders */
  --gold: #a8792d;     /* accents and numbers */
  --muted: #59675d;    /* secondary text */
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

/* ---------- Basics ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* .wrap centres the content and sets its maximum width. */
.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}

/* ---------- Shared pieces ---------- */

/* Small capital-letter label above a heading. */
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: #71805f;
  font-weight: 700;
  margin: 0 0 16px;
}

/* The same label on a dark green background. */
.eyebrow.on-dark {
  color: #d2b578;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: #fff;
  text-decoration: none;
  padding: 13px 19px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15px;
  transition: background .2s;
}

.button:hover {
  background: var(--green);
}

/* Light button, for dark backgrounds. */
.button.light {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}

/* Outlined button, for the quieter call to action. */
.button.outline {
  background: transparent;
  color: var(--ink);
  border-color: #9aa38f;
}

.button.outline:hover {
  background: #e9e7da;
}

.text-link {
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 4px;
}

/* ---------- Header ---------- */
header {
  background: rgba(244, 240, 229, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.header-inner {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img {
  display: block;
  width: min(390px, 42vw);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 13px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Hero (the opening section) ---------- */
.hero {
  padding: 76px 0 70px;
  background: radial-gradient(ellipse at 80% 35%, #e4e4d6 0, transparent 42%), var(--ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}

/* The pill-shaped tag above the main heading. */
.cic-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #c7c7b6;
  border-radius: 50px;
  padding: 7px 12px;
  margin-bottom: 20px;
  color: #405e47;
  font-size: 11px;
  letter-spacing: .4px;
  background: #f7f4ea;
}

.cic-tag:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

h1 {
  font: 500 clamp(42px, 5vw, 66px)/1.04 var(--serif);
  letter-spacing: -1.4px;
  max-width: 700px;
  margin-bottom: 22px;
}

.hero-copy {
  max-width: 590px;
  color: #43564a;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-small {
  margin: 21px 0 0;
  color: #647165;
  font-size: 12px;
}

.hero-small strong {
  color: var(--ink);
}

/* The "What buyers can discover" panel beside the hero text. */
.hero-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
  box-shadow: 12px 12px 0 #e0ddcf;
}

.panel-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  margin-bottom: 15px;
  color: #617164;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status {
  color: #48674d;
  background: #e8ebdd;
  padding: 5px 8px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}

.panel-title {
  font: 500 25px/1.2 var(--serif);
  margin: 0 0 14px;
}

.info-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #e9e5d9;
}

.info-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8ebdf;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 14px;
}

.info-row strong {
  display: block;
  font: 500 17px/1.25 var(--serif);
  margin-bottom: 3px;
}

.info-row span {
  display: block;
  color: #667267;
  font-size: 12px;
}

.panel-foot {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 14px;
  color: #637164;
  font-size: 11px;
}

/* ---------- Dark green band with three short claims ---------- */
.proof {
  background: var(--ink);
  color: #fff;
  padding: 18px 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.proof-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 500 16px var(--serif);
  text-align: center;
}

.proof-item i {
  color: #d0ab68;
  font-style: normal;
  font-size: 17px;
}

/* ---------- "Why register": three cards ---------- */
.section {
  padding: 79px 0;
}

.section-head {
  max-width: 660px;
  margin-bottom: 37px;
}

/* The large heading used at the top of each section. */
.section-head h2,
.how h2,
.about h2,
.buyers h2 {
  font: 500 clamp(34px, 4vw, 47px)/1.08 var(--serif);
  letter-spacing: -.5px;
  margin-bottom: 14px;
}

.section-head p {
  font-size: 15px;
  color: var(--muted);
  max-width: 620px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 26px 29px;
  min-height: 230px;
}

.card-num {
  font: italic 20px var(--serif);
  color: var(--gold);
  margin-bottom: 18px;
}

.card h3 {
  font: 500 24px/1.18 var(--serif);
  margin: 0 0 11px;
}

.card p {
  font-size: 13px;
  color: #5b695f;
  margin: 0;
}

/* ---------- "How the service works": three steps ---------- */
.how {
  background: #e9eadd;
  padding: 78px 0;
}

.how-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 55px;
  align-items: start;
}

.how-intro p {
  color: #4e5e52;
  font-size: 15px;
  max-width: 440px;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 15px;
  padding: 17px 0;
  border-top: 1px solid #cfd3c4;
}

.step b {
  font: italic 21px var(--serif);
  color: var(--gold);
}

.step h3 {
  font: 500 20px var(--serif);
  margin: 0 0 3px;
}

.step p {
  font-size: 13px;
  color: #58675a;
  margin: 0;
}

/* The boxed note under the steps, with the gold bar on its left. */
.assurance {
  background: #f8f6ef;
  border-left: 3px solid var(--gold);
  padding: 16px 18px;
  margin-top: 23px;
  font-size: 12px;
  color: #46574b;
}

.assurance strong {
  color: var(--ink);
}

/* ---------- "Make your specialist range easier to find": two cards ---------- */
.provenance {
  padding: 74px 0;
  background: var(--paper);
}

.prov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.prov-card {
  border: 1px solid var(--line);
  padding: 27px;
  background: #fffdf8;
}

.prov-card h3 {
  font: 500 25px var(--serif);
  margin: 0 0 10px;
}

.prov-card p {
  font-size: 13px;
  color: #5a695e;
  margin: 0;
}

.prov-card .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #778468;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ---------- "Our purpose" ---------- */
.about {
  padding: 70px 0;
  background: #f0ede3;
}

.about-grid {
  display: grid;
  grid-template-columns: .6fr 1.4fr;
  gap: 58px;
  align-items: center;
}

/* The round emblem beside the purpose text. */
.about-mark {
  border: 1px solid #d5cfbd;
  border-radius: 50%;
  width: 160px;
  height: 160px;
  margin: auto;
  display: grid;
  place-items: center;
  color: var(--gold);
  font: 56px var(--serif);
  background: #f7f4eb;
}

.about p {
  color: #4c5c50;
  font-size: 14px;
  max-width: 650px;
}

.about .note {
  font-size: 11px;
  color: #6d756c;
  border-top: 1px solid #d7d2c4;
  padding-top: 12px;
  margin-top: 14px;
}

/* ---------- "Looking for plants?" (for buyers) ---------- */
.buyers {
  padding: 50px 0;
}

.buyers-inner {
  background: #e5e8dc;
  padding: 34px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.buyers h2 {
  font-size: 30px;
  margin: 0 0 7px;
}

.buyers p {
  font-size: 13px;
  color: #56655a;
  margin: 0;
}

/* ---------- "Register your nursery" (the closing dark band) ---------- */
.register {
  padding: 67px 0;
  background: var(--ink);
  color: #fff;
}

.register-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.register h2 {
  font: 500 38px/1.1 var(--serif);
  margin: 0 0 8px;
}

.register p {
  color: #dce3d7;
  margin: 0;
  font-size: 14px;
}

.register .free {
  font-size: 12px;
  margin-top: 14px;
}

.free strong {
  color: #fff;
}

.register .button {
  min-width: 190px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 24px 0;
  background: var(--ivory);
  color: #657167;
  font-size: 11px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer a {
  color: inherit;
}

/* ---------- Tablets and small laptops (850px wide or less) ----------
   Side-by-side layouts stack into one column, and the header keeps only
   the Register button. */
@media (max-width: 850px) {
  .wrap {
    width: min(100% - 36px, 650px);
  }

  .header-inner {
    height: 78px;
  }

  .brand img {
    width: min(300px, 58vw);
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 53px 0 49px;
  }

  .hero-grid,
  .how-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-panel {
    max-width: 560px;
  }

  .proof-grid {
    gap: 8px;
  }

  .proof-item {
    font-size: 13px;
    display: block;
  }

  .proof-item i {
    display: block;
    margin-bottom: 4px;
  }

  .section,
  .how,
  .provenance {
    padding: 58px 0;
  }

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

  .card {
    min-height: 0;
  }

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

  .about-mark {
    width: 120px;
    height: 120px;
    font-size: 44px;
  }

  .buyers-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }

  .register-inner {
    grid-template-columns: 1fr;
  }

  .register h2 {
    font-size: 34px;
  }

  .register .button {
    justify-self: start;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* ---------- Phones (480px wide or less) ----------
   The header switches to the compact logo, which has no strapline.
   The switch itself is in index.html, on the <picture> in the header. */
@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 30px);
  }

  .brand img {
    width: 200px;
  }

  .nav-cta {
    padding: 10px 12px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-panel {
    padding: 20px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .proof-item {
    display: flex;
    justify-content: flex-start;
    text-align: left;
  }

  .proof-item i {
    display: inline;
    margin: 0;
  }

  .hero-actions {
    gap: 13px;
  }

  .button {
    padding: 12px 14px;
  }
}

/* People who have asked their device for less motion get no smooth scroll. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
