/*
Theme Name: HOG — Handling Operations Group
Theme URI: https://hog.com.au
Author: Handling Operations Group
Description: A fast, enquiry-led product catalogue for Australia's supply chain, transport and warehousing industries.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: hog
*/

:root {
  --ink: #11221f;
  --muted: #5e6b67;
  --paper: #f4f6f2;
  --white: #fff;
  --green: #174f43;
  --green-2: #236b5a;
  --lime: #d8f249;
  --orange: #ff6a2a;
  --line: #dce2dd;
  --shadow: 0 18px 50px rgba(17,34,31,.1);
  --radius: 20px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: Aptos, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 760px); margin-inline: auto; }
.section { padding: 92px 0; }
.section--soft { background: var(--paper); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--green-2); font-size: .77rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { width: 24px; height: 3px; background: var(--orange); content: ""; }
h1,h2,h3,h4 { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.2em; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1.06rem, 1.8vw, 1.3rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-head h2 { max-width: 740px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 13px 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 800; transition: .2s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); background: var(--green-2); border-color: var(--green-2); }
.button--lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.button--lime:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { color: var(--white); }
.text-link { border-bottom: 2px solid var(--orange); font-weight: 800; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(220,226,221,.8); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.brand-mark { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 14px; background: var(--green); color: var(--lime); font-size: 1.35rem; letter-spacing: -.08em; }
.brand-name { display: block; line-height: 1.05; }
.brand-name small { display: block; margin-top: 4px; color: var(--muted); font-size: .61rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; max-width: 270px; height: 54px; object-fit: contain; }
.main-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-nav a { font-size: .94rem; font-weight: 750; }
.main-nav a:hover { color: var(--green-2); }
.nav-toggle { display: none; border: 0; background: none; font: inherit; font-weight: 800; }

.hero { position: relative; overflow: hidden; padding: 100px 0 80px; background: var(--green); color: var(--white); }
.hero::before { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 56px 56px; content: ""; mask-image: linear-gradient(to left, black, transparent 82%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 66px; }
.hero h1 span { color: var(--lime); }
.hero .lead { margin: 28px 0 34px; color: #d9e5e0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; min-height: 460px; }
.warehouse { position: absolute; inset: 32px 0 0; overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 32px; background: #0e3b32; box-shadow: 0 40px 90px rgba(0,0,0,.25); }
.warehouse::before { position: absolute; inset: 9% 8% 16%; background: repeating-linear-gradient(90deg, rgba(216,242,73,.9) 0 8px, transparent 8px 94px), repeating-linear-gradient(0deg, rgba(255,255,255,.17) 0 2px, transparent 2px 70px); content: ""; }
.warehouse::after { position: absolute; right: 10%; bottom: 13%; width: 46%; height: 32%; border-radius: 10px 10px 3px 3px; background: var(--orange); box-shadow: -80px 24px 0 -8px #d8f249, 40px -110px 0 -20px #fff; content: ""; transform: skewY(-4deg); }
.metric { position: absolute; z-index: 2; padding: 17px 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: var(--shadow); }
.metric strong { display: block; font-size: 1.7rem; line-height: 1; }
.metric span { color: var(--muted); font-size: .78rem; font-weight: 750; }
.metric--one { top: 0; right: -12px; }
.metric--two { bottom: 0; left: -20px; }

.trust-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 26px 0; list-style: none; }
.trust-list li { display: flex; align-items: center; justify-content: center; gap: 10px; border-right: 1px solid var(--line); font-size: .9rem; font-weight: 800; text-align: center; }
.trust-list li:last-child { border: 0; }
.tick { display: grid; flex: 0 0 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: .75rem; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { position: relative; min-height: 290px; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: .25s ease; }
.category-card:hover { transform: translateY(-5px); border-color: var(--green-2); box-shadow: var(--shadow); }
.category-number { color: var(--green-2); font-size: .77rem; font-weight: 900; letter-spacing: .1em; }
.category-icon { display: grid; width: 58px; height: 58px; margin: 26px 0; place-items: center; border-radius: 16px; background: var(--paper); color: var(--green); font-size: 1.7rem; }
.category-card p { color: var(--muted); font-size: .95rem; }
.category-arrow { position: absolute; right: 28px; bottom: 24px; font-size: 1.35rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-panel { padding: 48px; border-radius: 28px; background: var(--green); color: white; }
.feature-panel h2 { margin-bottom: 26px; font-size: clamp(2rem, 4vw, 3.4rem); }
.feature-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.feature-list b { color: var(--lime); }
.steps { counter-reset: step; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step::before { counter-increment: step; display: grid; width: 52px; height: 52px; place-items: center; border-radius: 14px; background: var(--lime); content: "0" counter(step); font-size: .8rem; font-weight: 900; }
.step p { margin: 7px 0 0; color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image { display: grid; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; background: linear-gradient(135deg, #e7ece7, #f7f8f5); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder { display: grid; width: 90px; height: 90px; place-items: center; border: 2px solid var(--green); border-radius: 24px; color: var(--green); font-size: 2rem; font-weight: 900; }
.product-body { padding: 24px; }
.product-kicker { margin-bottom: 8px; color: var(--green-2); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.product-body p { margin: 12px 0 20px; color: var(--muted); font-size: .93rem; }

.industry-band { background: var(--ink); color: var(--white); }
.industry-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.15); }
.industry-item { min-height: 190px; padding: 30px; background: var(--ink); }
.industry-item span { display: block; margin-bottom: 54px; color: var(--lime); font-size: .75rem; font-weight: 900; }
.industry-item h3 { font-size: 1.5rem; }

.cta { padding: 74px 0; background: var(--lime); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { max-width: 800px; font-size: clamp(2.3rem, 5vw, 4.8rem); }

.page-hero { padding: 80px 0 62px; background: var(--paper); }
.page-hero h1 { max-width: 950px; font-size: clamp(2.7rem, 5vw, 5rem); }
.breadcrumb { margin-bottom: 22px; color: var(--green-2); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.content-area { padding: 70px 0 100px; }
.content-area h2, .content-area h3 { margin: 1.2em 0 .55em; }
.content-area ul { padding-left: 1.2em; }
.product-detail { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: start; }
.product-detail .product-image { border-radius: 26px; }
.product-detail h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.product-detail .lead { margin-top: 24px; }
.spec-list { display: grid; gap: 10px; margin: 28px 0; padding: 0; list-style: none; }
.spec-list li { display: flex; gap: 10px; align-items: flex-start; }
.spec-list li::before { color: var(--orange); content: "✓"; font-weight: 900; }

.enquiry-card { padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 800; }
input, textarea, select { width: 100%; padding: 13px 14px; border: 1px solid #bdc8c1; border-radius: 10px; background: white; color: var(--ink); font: inherit; }
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(216,242,73,.8); border-color: var(--green); }
.form-note { color: var(--muted); font-size: .78rem; }
.form-message { margin-bottom: 20px; padding: 14px 18px; border-radius: 10px; background: #dff5e5; font-weight: 750; }
.hp-field { position: absolute; left: -9999px; }

.site-footer { padding: 64px 0 24px; background: var(--green); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-brand p { max-width: 420px; margin-top: 20px; color: #c4d6d0; }
.footer-title { margin-bottom: 18px; color: var(--lime); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.17); color: #c4d6d0; font-size: .8rem; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 82px; right: 0; left: 0; display: none; padding: 20px; border-bottom: 1px solid var(--line); background: var(--white); }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 16px; }
  .header-cta { display: none; }
  .hero-grid, .split, .product-detail { grid-template-columns: 1fr; }
  .hero-art { min-height: 370px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-list, .industry-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li:nth-child(2) { border-right: 0; }
  .trust-list li { padding: 10px; }
  .section-head, .cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 68px 0; }
  .hero { padding-top: 70px; }
  .hero-art { min-height: 300px; }
  .metric { padding: 12px 14px; }
  .metric--one { right: 0; }
  .metric--two { left: 0; }
  .category-grid, .product-grid, .industry-list, .footer-grid { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-panel { padding: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
