/* ==========================================================================
   Wheatbelt Quarry Supplies — style.css
   Design: dark theme, ochre accent, mobile-first
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #c9a84c;
  --accent-hover: #b8972f;
  --bg: #0d0e10;
  --bg-card: #16171a;
  --bg-card-hover: #1c1d21;
  --bg-input: #1c1d21;
  --bg-topbar: #111214;
  --text: #e8e6e1;
  --text-muted: #9a978f;
  --text-dark: #0d0e10;
  --border: #2a2b2e;
  --radius: 6px;
  --radius-lg: 10px;
  --max-w: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* --- Utility --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px;
  font-size: 1rem; font-weight: 600;
  border: none; border-radius: var(--radius);
  cursor: pointer; transition: background var(--transition), transform var(--transition);
  text-decoration: none; line-height: 1.3;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent); color: var(--text-dark);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--text-dark); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 8px 18px; font-size: 0.9rem; }

/* --- Topbar --- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-topbar); border-bottom: 1px solid var(--border);
  padding: 0 20px; height: 60px;
}
.topbar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.topbar-brand {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--text); text-transform: uppercase; white-space: nowrap;
}
.topbar .btn-primary { padding: 8px 16px; font-size: 0.875rem; white-space: nowrap; }

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 60px;
  min-height: 600px;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/assets/machines/wl001-1024w.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,14,16,0.92) 40%, rgba(13,14,16,0.7) 100%);
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}

.hero-label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.hero h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 16px; color: #fff;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-muted); margin-bottom: 24px;
  max-width: 540px; line-height: 1.65;
}

.hero-anchors {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.hero-anchors a {
  padding: 6px 14px; font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--border); border-radius: 100px;
  color: var(--text-muted); transition: all var(--transition);
}
.hero-anchors a:hover { border-color: var(--accent); color: var(--accent); }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero form */
.hero-form-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.hero-form-card h3 {
  font-size: 1.15rem; margin-bottom: 18px; color: #fff;
}

/* --- Forms --- */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font); font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select { cursor: pointer; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #555; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.radio-group { display: flex; gap: 16px; }
.radio-group label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.95rem; color: var(--text); cursor: pointer;
}
.radio-group input[type="radio"] {
  width: auto; accent-color: var(--accent);
}

.form-submit { width: 100%; margin-top: 4px; }

.honeypot { display: none !important; }

/* --- Sections --- */
section { padding: 72px 0; }

.section-heading {
  font-size: 1.75rem; font-weight: 700; margin-bottom: 12px; color: #fff;
}
.section-sub {
  font-size: 1rem; color: var(--text-muted); margin-bottom: 40px;
  max-width: 600px;
}

/* --- Proof strip --- */
.proof { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  text-align: center;
}
.proof-tile h3 {
  font-size: 1.1rem; color: var(--accent); margin-bottom: 6px;
}
.proof-tile p { font-size: 0.9rem; color: var(--text-muted); }
.proof-link {
  display: block; text-align: center; margin-top: 28px;
  font-size: 0.9rem; font-weight: 500;
}

/* --- Product cards --- */
.products-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  margin-bottom: 20px;
}
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: border-color var(--transition), background var(--transition);
}
.product-card:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.product-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: #fff; }
.product-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 16px; }
.product-card .btn { font-size: 0.9rem; }
.products-note { font-size: 0.85rem; color: var(--text-muted); }

/* --- Delivery --- */
.delivery-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  margin-bottom: 32px;
}
.delivery-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.delivery-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: #fff; }
.delivery-card p { font-size: 0.95rem; color: var(--text-muted); }

.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.service-tag {
  padding: 5px 14px; font-size: 0.8rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; color: var(--text-muted);
}
.delivery-note { font-size: 0.9rem; color: var(--text-muted); }

/* --- Who we supply --- */
.supply-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.supply-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px; text-align: center;
}
.supply-card .icon { font-size: 2rem; margin-bottom: 10px; }
.supply-card h3 { font-size: 1rem; color: #fff; margin-bottom: 4px; }
.supply-card p { font-size: 0.85rem; color: var(--text-muted); }

/* --- Why us --- */
.why-list { list-style: none; }
.why-list li {
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.why-list li:last-child { border-bottom: none; }
.why-list h3 { font-size: 1.05rem; color: #fff; margin-bottom: 6px; }
.why-list p { font-size: 0.95rem; color: var(--text-muted); }

/* --- Bulk --- */
.bulk { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bulk p { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; max-width: 640px; }

/* --- Founder note --- */
.founder { border-top: 1px solid var(--border); }
.founder blockquote {
  border-left: 4px solid var(--accent); padding: 24px 28px;
  font-style: italic; color: var(--text-muted);
  font-size: 1rem; line-height: 1.75;
  max-width: 720px;
}
.founder blockquote p { margin-bottom: 16px; }
.founder blockquote p:last-of-type { margin-bottom: 0; }
.founder .attribution {
  margin-top: 20px; font-style: normal;
  font-weight: 600; color: var(--text); font-size: 1rem;
}

/* --- Enquiry form section --- */
.enquiry-section { border-top: 1px solid var(--border); }
.enquiry-form-wrap {
  max-width: 640px;
}
.delivery-town-field { display: none; }
.delivery-town-field.visible { display: block; }

/* --- FAQ --- */
.faq { border-top: 1px solid var(--border); }
.faq-list { max-width: 720px; }
.faq-list details {
  border-bottom: 1px solid var(--border);
}
.faq-list summary {
  padding: 18px 0; font-size: 1rem; font-weight: 600;
  cursor: pointer; color: #fff; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; font-size: 1.3rem; color: var(--accent);
  transition: transform var(--transition);
}
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list .faq-answer {
  padding: 0 0 18px; font-size: 0.95rem;
  color: var(--text-muted); line-height: 1.65;
}

/* --- Contact --- */
.contact { border-top: 1px solid var(--border); text-align: center; }
.contact p { font-size: 1rem; color: var(--text-muted); margin-top: 12px; }
.contact a { color: var(--accent); }

/* --- Footer --- */
.footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex; flex-direction: column; gap: 16px;
}
.footer-left { font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; }
.footer-left a { color: var(--text-muted); }
.footer-left a:hover { color: var(--accent); }
.footer-right {
  font-size: 0.9rem; color: var(--accent); font-style: italic;
}

/* --- Sticky call bar --- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--bg-topbar); border-top: 1px solid var(--border);
  padding: 10px 20px;
  transition: transform 0.3s ease;
}
.sticky-bar.hidden { transform: translateY(100%); }
.sticky-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; gap: 10px; justify-content: center;
}
.sticky-bar .btn { padding: 10px 20px; font-size: 0.9rem; }

/* --- Modal --- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  width: 100%; max-width: 440px; position: relative;
}
.modal h3 { font-size: 1.2rem; margin-bottom: 20px; color: #fff; }
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }

/* --- Body padding for sticky bar --- */
body { padding-bottom: 70px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 640px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .delivery-grid { grid-template-columns: 1fr 1fr; }
  .supply-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 860px) {
  .hero h1 { font-size: 2.8rem; }
  .hero { padding: 100px 0 80px; }
  .hero-grid { grid-template-columns: 1fr 380px; align-items: start; }
  .section-heading { font-size: 2rem; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-right { text-align: right; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .hero-grid { grid-template-columns: 1fr 420px; }
}
