:root {
  --forest: #143e2e;
  --deep: #102e24;
  --green: #09613b;
  --accent: #eff32a;
  --ink: #1d3027;
  --muted: #59665e;
  --paper: #fafbf8;
  --cream: #f0f1e9;
  --content: 1200px;
  --desktop-nav-height: 96px;
  --mobile-nav-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #196eb2; outline-offset: 6px; }
p { margin: 0 0 18px; font-size: 16px; line-height: 1.7; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 32px; line-height: 1.2; }
.container { width: min(var(--content), calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 18px 32px; background: white; color: var(--forest); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { background: #fff; }
.header-inner { display: flex; min-height: var(--desktop-nav-height); align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; width: 96px; flex-shrink: 0; padding-block: 10px; }
.brand img { width: 96px; height: 70px; object-fit: contain; }
nav { display: flex; gap: 38px; align-items: center; }
nav a { position: relative; padding-block: 16px; font-size: 15px; line-height: 1.3; }
nav a::after { content: ""; position: absolute; bottom: 8px; left: 0; right: 0; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .18s ease-out; }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }
.header-contacts { display: flex; gap: 28px; align-items: center; }
.header-contact { display: grid; gap: 4px; font-size: 15px; line-height: 1.4; }
.header-contact:hover { color: var(--green); }
.contact-label { font-size: 13px; color: var(--muted); }

.hero { position: relative; isolation: isolate; min-height: 490px; display: flex; align-items: center; background: var(--forest); color: #fff; }
.hero-image, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero-shade { background: linear-gradient(90deg, rgba(6,30,19,.96), rgba(6,30,19,.84) 35%, rgba(6,30,19,.28) 70%, rgba(6,30,19,.1)); }
.hero-content { padding-block: 50px; }
.hero-copy { max-width: 820px; }
h1 { max-width: 640px; font-size: clamp(44px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.025em; }
.hero-description { max-width: 480px; margin-block: 22px 26px; color: #e1e8df; }
.hero-services { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 44px; padding-top: 24px; border-top: 1px solid #ffffff59; }
.hero-services p { margin: 0; font-size: 15px; color: #e1e8df; }
.hero-services ul { display: flex; flex-wrap: wrap; gap: 20px 48px; list-style: none; margin: 0; padding: 0; font-size: 20px; line-height: 1.4; font-weight: 600; }
.hero-actions, .contact-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 19px 32px; border: 1px solid transparent; font-size: 16px; line-height: 1.25; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.button-accent { background: var(--accent); color: var(--deep); }
.button-accent:hover { background: #fff; color: var(--deep); }
.button-accent:active { background: #d9df24; }
.button-outline { border-color: #8ca397; color: #fff; background: transparent; }
.button-outline:hover { background: #fff; color: var(--forest); border-color: #fff; }
.button-outline:active { background: #e6eddf; color: var(--forest); }
.text-link { display: inline-block; padding-block: 12px; font-size: 15px; line-height: 1.5; text-decoration: underline; text-underline-offset: 5px; }
.light-link { color: #fff; }
.light-link:hover { color: var(--accent); }

.section-space { padding-block: 64px; }
.products-section { background: var(--cream); }
.section-heading { margin-bottom: 28px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.product { display: flex; flex-direction: column; }
.product-photo { position: relative; height: 265px; overflow: hidden; background: #d9dece; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.profile-photo img { object-position: center bottom; }
.product h3 { margin-top: 20px; font-size: 23px; line-height: 1.25; }
.product p { max-width: 340px; margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.product-enquiry { align-self: flex-start; margin-top: auto; padding-block: 18px 12px; font-size: 16px; font-weight: 600; color: var(--green); }
.product-enquiry:hover { color: var(--deep); text-decoration-thickness: 2px; }

.mill-grid { display: grid; grid-template-columns: 1fr 1.15fr; grid-template-rows: min-content 1fr; grid-template-areas: "title photo" "copy photo"; gap: 22px 72px; align-items: start; }
.mill-title { grid-area: title; }
.mill-copy { grid-area: copy; }
.mill-copy p { max-width: 430px; color: var(--muted); }
.mill-copy p:last-child { margin-bottom: 0; }
.company-facts { display: grid; grid-template-columns: 1fr 1.8fr; gap: 24px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid #d8ded5; }
.company-facts dt { margin-bottom: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.company-facts dd { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 600; }
.mill-services span + span::before { content: ", "; }
.mill-services span:last-child::before { content: " and "; }
.mill-figure { grid-area: photo; align-self: center; margin: 0; }
.mill-figure img { width: 100%; aspect-ratio: 1.85; object-fit: cover; object-position: center; }
figcaption { padding-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.gallery-section { padding-bottom: 64px; }
.gallery-section h2 { margin-bottom: 28px; }
.photo-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 230px); grid-template-areas: "piles piles loading dispatch" "logs packed loading dispatch"; gap: 14px; }
.photo-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.gallery-piles { grid-area: piles; }
.gallery-logs { grid-area: logs; }
.gallery-packed { grid-area: packed; object-position: center 42%; }
.gallery-loading { grid-area: loading; }
.gallery-dispatch { grid-area: dispatch; }

.contact-section { background: var(--forest); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.contact-copy h2 { margin-bottom: 18px; }
.contact-copy p { max-width: 450px; margin-bottom: 24px; color: #d5dfd2; }
.contact-copy .contact-help { margin-top: -8px; }
.contact-actions { gap: 12px; }
.contact-copy .contact-email { margin: 22px 0 0; font-size: 15px; }
.contact-email a { display: inline-block; color: #fff; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-email a:hover { color: var(--accent); }
.contact-details { border-left: 1px solid #658372; padding-left: 40px; }
.locations { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; }
.locations h3 { margin-bottom: 12px; font-size: 16px; line-height: 1.4; color: #fff; }
address { font-style: normal; font-size: 14px; line-height: 1.8; color: #e1e8de; }
.site-footer { background: var(--paper); }
.footer-inner { display: flex; gap: 30px; align-items: center; justify-content: space-between; padding-block: 26px; }
.footer-inner p { margin: 0; font-size: 13px; line-height: 1.6; }
.footer-country { display: block; color: var(--muted); }
.footer-inner > div { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer-inner a { padding-block: 10px; font-size: 13px; line-height: 1.6; }
.footer-inner a:hover { color: var(--green); text-decoration: underline; }
.footer-attribution { border-top: 1px solid #d8ded5; padding-block: 16px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.footer-attribution a { display: inline-block; padding-block: 6px; text-underline-offset: 4px; }
.footer-attribution a:hover { color: var(--green); text-decoration: underline; }

@media (min-width: 1024px) {
  .hero { width: 100%; min-height: calc(100vh - var(--desktop-nav-height)); min-height: calc(100dvh - var(--desktop-nav-height)); }
  .hero-content { display: flex; flex-direction: column; min-height: inherit; padding-block: 48px 36px; }
  .hero-copy { margin-block: auto; padding-block: 32px; }
  h1 { max-width: 820px; font-size: clamp(60px, 5.5vw, 80px); }
  .hero-description { max-width: 620px; font-size: 18px; margin-block: 26px 32px; }
  .hero-services { margin-top: 24px; }
}

@media (min-width: 1024px) and (max-height: 760px) {
  .hero-content { padding-block: 24px; }
  .hero-copy { padding-block: 16px; }
  h1 { max-width: 760px; font-size: 56px; }
  .hero-description { font-size: 16px; margin-block: 20px 24px; }
  .hero-services { margin-top: 16px; padding-top: 20px; }
}

@media (max-width: 1100px) {
  .container { width: calc(100% - 72px); }
  .header-inner { gap: 22px; }
  .header-contacts { gap: 20px; }
  .header-contact { font-size: 14px; }
  nav { gap: 26px; }
  .mill-grid { column-gap: 40px; }
  .contact-grid { gap: 40px; }
  .contact-details { padding-left: 30px; }
  .product-grid { gap: 22px; }
  .product-photo { height: 235px; }
  .product h3 { font-size: 21px; }
  .contact-actions { align-items: flex-start; flex-direction: column; }
  .locations { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 800px) {
  .header-inner { gap: 20px; }
  nav { gap: 25px; }
  .header-contacts { display: none; }
  .hero { min-height: 470px; }
  h1 { max-width: 560px; font-size: 48px; }
  .hero-shade { background: linear-gradient(90deg, rgba(6,30,19,.96), rgba(6,30,19,.76) 60%, rgba(6,30,19,.35)); }
  .section-space { padding-block: 48px; }
  .gallery-section { padding-bottom: 48px; }
  .photo-mosaic { grid-template-rows: repeat(2, 200px); gap: 10px; }
  .product-grid { gap: 20px; }
  .product-photo { height: 200px; }
  .product h3 { font-size: 20px; }
  .mill-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; grid-template-areas: "title" "photo" "copy"; gap: 22px; }
  .mill-title { font-size: 28px; }
  .mill-copy p { font-size: 15px; max-width: 600px; }
  .mill-figure img { aspect-ratio: 2.63; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-details { border-left: 0; border-top: 1px solid #658372; padding: 28px 0 0; }
  .locations { grid-template-columns: 1fr 1.2fr; gap: 30px; }
  .contact-actions { flex-direction: row; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: var(--mobile-nav-height); gap: 16px; }
  .brand, .brand img { width: 78px; }
  .brand img { height: 57px; }
  nav { gap: 18px; }
  nav a { font-size: 13px; padding-block: 15px; }
  .hero { min-height: calc(100vh - var(--mobile-nav-height)); min-height: calc(100svh - var(--mobile-nav-height)); }
  .hero-image img { object-position: 60% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(6,30,19,.28), rgba(6,30,19,.76) 32%, rgba(6,30,19,.9) 70%, rgba(6,30,19,.97)); }
  .hero-content { display: flex; flex-direction: column; min-height: inherit; padding-block: 32px 24px; }
  .hero-copy { margin-block: auto; padding-block: 20px; }
  h1 { font-size: clamp(34px, 10vw, 46px); line-height: 1.1; }
  .hero-description { margin-block: 18px 22px; font-size: 15px; }
  .hero-services { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 28px; padding-top: 20px; }
  .hero-services p { font-size: 14px; }
  .hero-services ul { gap: 12px 24px; font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .hero-products { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 19px 32px; border: 1px solid #8ca397; color: #fff; font-size: 16px; line-height: 1.25; font-weight: 600; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
  .hero-products:hover { background: #fff; color: var(--forest); border-color: #fff; }
  .hero-products:active { background: #e6eddf; color: var(--forest); }
  .section-space { padding-block: 40px; }
  .gallery-section { padding-bottom: 40px; }
  .gallery-section h2 { margin-bottom: 24px; }
  .photo-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 170px 160px 160px 170px; grid-template-areas: "piles piles" "loading dispatch" "loading dispatch" "logs packed"; }
  h2, .mill-title { font-size: 28px; }
  .section-heading { margin-bottom: 24px; }
  .products-section .section-heading { padding-left: 16px; border-left: 4px solid var(--green); }
  .products-section h2 { font-size: 34px; line-height: 1.1; }
  .product-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-photo { height: auto; aspect-ratio: 1.45; }
  .product-photo > img { position: absolute; inset: 0; height: 100%; }
  .product:nth-child(2) .product-photo img { object-position: center 46%; }
  .product h3 { margin-top: 15px; font-size: 22px; }
  .product p { margin-top: 8px; font-size: 15px; }
  .mill-grid { gap: 22px; }
  .mill-copy p { font-size: 15px; }
  .company-facts { grid-template-columns: 1fr; gap: 0; margin-top: 24px; padding-top: 0; border-bottom: 1px solid #d8ded5; }
  .company-facts > div { padding-block: 16px; }
  .company-facts > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d8ded5; }
  .company-facts > div:first-child dt { margin-bottom: 0; }
  .company-facts .mill-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 14px; text-transform: capitalize; }
  .company-facts .mill-services span::before { content: none; }
  .mill-figure img { aspect-ratio: 2.2; }
  .contact-copy p { font-size: 15px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-grid { gap: 28px; }
  .locations { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 24px; }
  .footer-inner > div { display: grid; grid-template-columns: 1fr auto; width: 100%; gap: 0 20px; }
  .footer-inner a[href^="mailto:"] { grid-column: 1 / -1; overflow-wrap: anywhere; }
}

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