/*
Theme Name: HADOF Solutions
Theme URI: https://foodfreezedryingsolutions.com/
Author: HADOF Web Team
Author URI: https://foodfreezedryingsolutions.com/
Description: Solution-oriented WordPress theme for HADOF food processing production lines. Includes a deep navy and warm orange industrial design system, two-step proposal form, process flows, dataLayer tracking hooks and accessible navigation.
Version: 1.12.2
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hadof-solutions
Tags: food-processing, industrial, one-column, custom-menu, custom-logo, featured-images
*/

/* ---------------------------------------------------------------------------
   HADOF Design System — tokens, reset and base typography.
   Component and layout styles live in assets/css/layout.css and
   assets/css/components.css (enqueued after this file).
   Token values come from design-system-and-page-specs.md.
--------------------------------------------------------------------------- */

:root {
  --ink: #0B1826;
  --navy: #0E2A47;
  --navy-soft: #123452;
  --steel: #526170;
  --mist: #F3F6F7;
  --paper: #FBFCFA;
  --white: #FFFFFF;
  --orange: #F47A1F;
  --orange-dark: #C9530B;
  --line: #D9E0E4;
  --success: #1E7358;
  --danger: #B3261E;
  --warning-bg: #FFF4E5;
  --font-display: "Manrope", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --container: 1240px;
  --container-wide: 1440px;
  --radius: 8px;
  --radius-sm: 4px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
  --space-7: 112px;
  --shadow-1: 0 1px 2px rgba(11, 24, 38, .06);
  --shadow-2: 0 4px 14px rgba(11, 24, 38, .08);
  --focus-ring: 0 0 0 3px var(--white), 0 0 0 6px var(--orange-dark);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Reset */
*,
*::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-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.7rem, 5.4vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.5vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.65rem); }

p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
a { color: var(--orange-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; display: block; }

figure { margin: 0; }

::selection { background: var(--orange); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--orange-dark);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Layout primitives */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.container-wide { max-width: var(--container-wide); }

.section { padding-block: var(--space-7); }
.section--tight { padding-block: var(--space-5); }
@media (max-width: 820px) {
  .section { padding-block: var(--space-6); }
}

.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy .section-eyebrow { color: var(--orange); }
.section--navy p, .section--navy li { color: #DCE6EE; }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink h2, .section--ink h3 { color: var(--white); }

.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .88rem;
  font-weight: 700;
  color: var(--orange-dark);
  margin-bottom: 12px;
}

.section-head { max-width: 760px; margin-bottom: var(--space-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p.lead { color: var(--steel); font-size: 1.1em; }

/* Grid helpers */
.grid { display: grid; gap: var(--space-3); min-width: 0; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.color-steel { color: var(--steel); }
.color-white { color: var(--white); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Reveal animation (one restrained page-load reveal; honours reduced motion) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Accessible notice for the prototype form handler */
.notice-config {
  border: 1px solid var(--orange-dark);
  border-left-width: 6px;
  background: var(--warning-bg);
  color: var(--ink);
  padding: 16px 18px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: .95em;
}
.notice-config strong { color: var(--orange-dark); }
