/* Glenock Trading — bushveld at dusk */
:root {
  --night: #1f2620;      /* savanna after sunset: header, hero, footer */
  --night-2: #2a332b;
  --ash: #eef0ea;        /* pale sage paper */
  --paper: #f8f9f5;
  --ink: #1a1d1b;
  --muted: #545c55;
  --line: #d3d8cc;
  --acacia: #5f6f33;     /* thorn-tree green */
  --sun: #e2a72e;        /* low marigold sun */
  --sun-ink: #2b2005;
  --on-night: #ecebe2;
  --on-night-muted: #b5b9ad;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acacia); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: var(--step-3); }
p { margin: 0 0 1em; max-width: 66ch; }
address { font-style: normal; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--sun); color: var(--sun-ink); padding: .6rem 1rem; z-index: 50; border-radius: var(--r); }
.skip:focus { top: 1rem; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .75em 1.3em; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-sun:hover { background: #f0bb4c; color: var(--sun-ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--acacia); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--on-night); background: transparent; }
.btn-ghost:hover { background: var(--on-night); color: var(--night); }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { border-color: #a33; color: #a33; }
.btn-lg { padding: .9em 1.7em; font-size: 1.05rem; }
.btn-sm { padding: .45em .95em; font-size: .9rem; }
.link-quiet { color: var(--muted); }

/* Header */
.site-head { background: var(--night); color: var(--on-night); position: relative; z-index: 20; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand img { width: 150px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { color: var(--on-night); text-decoration: none; font-weight: 500; padding: .35em 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--sun); }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; color: var(--on-night); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; } .nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--night); padding: .5rem var(--gutter) 1.5rem; display: none; border-top: 1px solid var(--night-2); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .site-nav li { width: 100%; }
  .site-nav a:not(.btn) { display: block; padding: .8em 0; border-bottom: 1px solid var(--night-2); }
  .site-nav .btn { margin-top: 1rem; }
}

/* Hero + the Big Five strip */
/* Hero fills exactly one screen: headline on top, the Big Five take the rest */
.hero { background: var(--night); color: var(--on-night); display: flex; flex-direction: column; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); }
.hero-copy { padding-top: clamp(1.5rem, 3.5vh, 2.75rem); padding-bottom: clamp(1.25rem, 3vh, 2.25rem); }
.hero h1 { font-size: clamp(2rem, 1rem + 3.2vw, 3.6rem); line-height: 1.05; margin-bottom: .45em; max-width: none; }
.h1-line { display: block; white-space: nowrap; }
.hero .lede { color: var(--on-night-muted); max-width: 62ch; margin-bottom: 0; font-size: clamp(1rem, .9rem + .4vw, 1.2rem); }

.big5 { display: flex; flex: 1 1 auto; min-height: 340px; gap: 3px; background: var(--night); }
.b5 { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: #fff; text-decoration: none; transition: flex-grow .55s cubic-bezier(.2,.7,.2,1); }
.b5 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.85) brightness(.82); }
.b5::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,22,18,.92) 0%, rgba(18,22,18,.35) 45%, rgba(18,22,18,0) 70%); }
.b5-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.4rem 1.6rem; z-index: 1; display: grid; gap: .3rem; }
.b5-animal { font-size: var(--step--1); color: var(--sun); font-weight: 600; }
.b5-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, .8rem + 1vw, 1.6rem); line-height: 1.12; }
.b5-sum { font-size: .95rem; line-height: 1.45; color: #dcded6; max-width: 34ch; max-height: 0; opacity: 0; overflow: hidden; transition: opacity .35s, max-height .45s; }
.big5:hover .b5:not(:hover) img { filter: saturate(.5) brightness(.6); }
.b5:hover, .b5:focus-visible { flex-grow: 2.6; }
.b5:hover img, .b5:focus-visible img { transform: scale(1.04); filter: saturate(1) brightness(.92); }
.b5:hover .b5-sum, .b5:focus-visible .b5-sum { max-height: 8em; opacity: 1; transition-delay: .15s; }
.b5:focus-visible { outline-offset: -4px; }

/* one orchestrated entrance: the five panels rise in sequence */
@media (prefers-reduced-motion: no-preference) {
  .b5 { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .b5:nth-child(2) { animation-delay: .08s; } .b5:nth-child(3) { animation-delay: .16s; }
  .b5:nth-child(4) { animation-delay: .24s; } .b5:nth-child(5) { animation-delay: .32s; }
  @keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
}

@media (max-width: 760px) {
  .hero { min-height: 0; }
  .h1-line { display: inline; white-space: normal; }
  .big5 { flex-direction: column; flex: none; min-height: 0; }
  .b5 { flex: none; height: 170px; }
  .b5:hover, .b5:focus-visible { flex-grow: 0; }
  .b5::after { background: linear-gradient(to right, rgba(18,22,18,.9) 0%, rgba(18,22,18,.3) 70%); }
  .b5-text { top: 0; padding: 1.1rem; align-content: center; }
  .b5-sum { display: none; }
}

/* Home sections */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.intro-fig { margin: 0; }
.intro-fig img { border-radius: var(--r); }
.reach { background: var(--ash); padding-block: clamp(3rem, 6vw, 5rem); border-block: 1px solid var(--line); }
.reach-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
.reach-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.reach-list li { border-top: 3px solid var(--acacia); padding-top: 1rem; }
.reach-list strong { display: block; font-family: var(--f-display); font-size: var(--step-1); margin-bottom: .3rem; }
.reach-list span { color: var(--muted); font-size: .97rem; }
.cta { padding-block: clamp(3.5rem, 8vw, 6rem); }
.cta h2 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.03em; max-width: 14ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cta-phone { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .intro, .reach-grid { grid-template-columns: 1fr; }
  .reach-list { grid-template-columns: 1fr; }
}

/* Inner page head */
.page-head { background: var(--night); color: var(--on-night); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head .lede { color: var(--on-night-muted); }
.page-head h1 { max-width: 20ch; }

/* Markets overview */
.mlist { padding-block: clamp(2.5rem, 6vw, 5rem); display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.mrow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.mrow:nth-child(even) .mrow-img { order: 2; }
.mrow-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); }
.mrow-img img { width: 100%; height: 100%; object-fit: cover; }
.mrow h2 { font-size: var(--step-3); margin-bottom: .45em; }
.mrow h2 a { color: var(--ink); text-decoration: none; }
.mrow h2 a:hover { color: var(--acacia); }
.mrow-sum { color: var(--muted); font-size: .97rem; }
.mrow-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.4rem; }
.animal-tag { font-weight: 600; color: var(--acacia); margin-bottom: .5rem; font-size: var(--step--1); }
.animal-tag i { font-weight: 400; color: var(--muted); margin-left: .35em; }
.animal-tag-light { color: var(--sun); }
.animal-tag-light i { color: var(--on-night-muted); }
@media (max-width: 760px) {
  .mrow { grid-template-columns: 1fr; }
  .mrow:nth-child(even) .mrow-img { order: 0; }
}

/* Market detail */
.mhero { display: grid; grid-template-columns: 1fr 1fr; background: var(--night); color: var(--on-night); min-height: min(78vh, 640px); }
.mhero-img { position: relative; overflow: hidden; }
.mhero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mhero-copy { padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4.5rem); align-self: center; max-width: 40rem; }
.mhero-copy h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); }
.mhero-copy .lede { color: var(--on-night-muted); }
.mhero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.crumbs { font-size: var(--step--1); color: var(--on-night-muted); margin-bottom: 2rem; }
.crumbs a { color: var(--on-night); }
@media (max-width: 860px) {
  .mhero { grid-template-columns: 1fr; min-height: 0; }
  .mhero-img { height: 46vh; min-height: 260px; }
}
.products { padding-block: clamp(3rem, 7vw, 5.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem clamp(2rem, 5vw, 4rem); align-items: start; }
.products h2 { grid-column: 1 / -1; }
.plist { list-style: none; margin: 0; padding: 0; columns: 1; }
.plist li { padding: .7rem 0 .7rem 1.4rem; border-bottom: 1px solid var(--line); position: relative; break-inside: avoid; }
.plist li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--acacia); }
.pfig { margin: 0; position: sticky; top: 1.5rem; }
.pfig img { background: #fff; }
.pfig figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .6rem; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } .pfig { position: static; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding-bottom: clamp(3rem, 6vw, 5rem); }
.pager-link { position: relative; display: flex; align-items: center; gap: 1rem; background: var(--ash); text-decoration: none; color: var(--ink); overflow: hidden; border-radius: var(--r); min-height: 96px; }
.pager-link img { width: 120px; height: 96px; object-fit: cover; flex: none; }
.pager-link span { display: grid; font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); line-height: 1.15; padding: .75rem 0; }
.pager-link small { font-family: var(--f-body); font-weight: 500; font-size: var(--step--1); color: var(--muted); }
.pager-next { justify-content: flex-end; text-align: right; }
.pager-link:hover { background: var(--line); }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager-link img { width: 88px; } }

/* About */
.banner { margin: 0; height: clamp(180px, 30vw, 380px); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(3rem, 7vw, 5.5rem); }
.values { margin: 0; display: grid; gap: 0; }
.values div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.values div:last-child { border-bottom: 1px solid var(--line); }
.values dt { font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); }
.values dd { margin: .2rem 0 0; color: var(--muted); }
.thumbs { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.thumb-row { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.thumb-row img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--r); }
.thumb-row span { display: block; margin-top: .5rem; font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .thumb-row { grid-template-columns: repeat(2, 1fr); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.contact-form h2, .contact-side h2 { font-size: var(--step-2); }
.contact-side { background: var(--ash); padding: 1.8rem; border-radius: var(--r); align-self: start; }
.contact-side address { margin-bottom: 1.4rem; }
.contact-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; }
.contact-dl dt { color: var(--muted); }
.contact-dl dd { margin: 0; overflow-wrap: anywhere; }
.f-row { display: grid; gap: 0 1.25rem; }
.f-2 { grid-template-columns: 1fr 1fr; }
.f { margin-bottom: 1.15rem; }
.f label { display: block; font-weight: 600; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--muted); font-size: .9em; }
.f input, .f select, .f textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9c0b2; border-radius: var(--r); padding: .7rem .85rem; }
.f textarea { resize: vertical; min-height: 9rem; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 3px solid var(--sun); outline-offset: 0; border-color: var(--ink); }
.f [aria-invalid="true"] { border-color: #b3261e; }
.f-err { color: #b3261e; font-size: .92rem; margin: .35rem 0 0; }
.notice { border-radius: var(--r); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-ok { background: #e6eed8; border-left: 4px solid var(--acacia); }
.notice-ok h2 { font-size: var(--step-2); margin-bottom: .3em; }
.notice-err { background: #f8e3e1; border-left: 4px solid #b3261e; }
.map { height: clamp(300px, 45vh, 460px); background: var(--ash); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.7); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .f-2 { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: var(--night); color: var(--on-night-muted); font-size: .97rem; }
.site-foot a { color: var(--on-night); }
.site-foot a:hover { color: var(--sun); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.foot-brand img { width: 140px; margin-bottom: 1rem; }
.foot-h { font-size: 1.05rem; color: var(--on-night); margin-bottom: .9rem; letter-spacing: 0; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot-animal { color: #8d9387; font-size: .88em; margin-left: .3em; }
.foot-contact { margin-top: .9rem; }
.foot-base { border-top: 1px solid var(--night-2); padding-block: 1.3rem; font-size: .88rem; }
.foot-base p { margin: 0; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* 404 */
.page-404 { min-height: 50vh; display: grid; align-items: center; }

/* Admin */
.admin { padding-block: 2.5rem 4rem; max-width: 52rem; }
.admin h1 { font-size: var(--step-3); }
.admin-login { max-width: 26rem; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.admin-bar p { display: flex; gap: 1.2rem; margin: 0; }
.admin-bar a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: none; }
.empty { color: var(--muted); padding: 2rem 0; }
.enq { border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: var(--r); padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; background: #fff; }
.enq-done { border-left-color: var(--line); opacity: .75; }
.enq h2 { font-size: var(--step-1); margin-bottom: .2em; }
.enq-meta { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.enq-tag { background: var(--ash); padding: .1em .6em; border-radius: 999px; font-size: .85rem; }
.enq-warn { background: #f8e3e1; color: #8a1f17; }
.enq-msg { background: var(--paper); padding: .9rem 1rem; border-radius: var(--r); margin: .8rem 0 1rem; white-space: normal; overflow-wrap: anywhere; }
.enq-actions { display: flex; gap: .6rem; }

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