/* ==========================================================================
   Windward Distribution LLC -- shared stylesheet
   Medical and healthcare logistics: import, cold chain, warehousing, delivery
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Reset
   ------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1, h2, h3, h4,
p, ul, ol, dl, dd,
figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* -------------------------------------------------------------------------
   2. Tokens: light (default), dark (media query), and data-theme overrides
   ------------------------------------------------------------------------- */

:root {
  /* Surfaces and text: light mode values */
  --bg: #F5F2E8;
  --surface: #FFFFFF;
  --surface-alt: #EBE6D5;
  --ink: #20241D;
  --ink-soft: #454B3C;
  --muted: #6D7360;
  --border: #D7D0B8;
  --border-strong: #20241D;

  /* Accent: light mode value (tuned separately per theme for contrast) */
  --accent: #7A5C1A;
  --accent-hover: #5F4713;

  /* Brand fills: constant across themes, contrast controlled independently */
  --primary: #1E3B2A;
  --primary-hover: #163021;
  --on-primary: #F3F1E6;
  --on-accent: #FFFFFF;

  --shadow: 0 1px 2px rgba(20, 22, 15, 0.08);

  --font-heading: "Arial Narrow", Arial, Helvetica, sans-serif;
  --font-body: Tahoma, Verdana, Geneva, sans-serif;

  --radius: 2px;
  --wrap-width: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181A13;
    --surface: #20231A;
    --surface-alt: #282C1E;
    --ink: #EEEAD9;
    --ink-soft: #C7C2AC;
    --muted: #97937C;
    --border: #3B3D2C;
    --border-strong: #5C5E48;

    --accent: #D2A83B;
    --accent-hover: #E6BE55;

    --primary: #1E3B2A;
    --primary-hover: #163021;
    --on-primary: #F3F1E6;
    --on-accent: #FFFFFF;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="light"] {
  --bg: #F5F2E8;
  --surface: #FFFFFF;
  --surface-alt: #EBE6D5;
  --ink: #20241D;
  --ink-soft: #454B3C;
  --muted: #6D7360;
  --border: #D7D0B8;
  --border-strong: #20241D;

  --accent: #7A5C1A;
  --accent-hover: #5F4713;

  --primary: #1E3B2A;
  --primary-hover: #163021;
  --on-primary: #F3F1E6;
  --on-accent: #FFFFFF;

  --shadow: 0 1px 2px rgba(20, 22, 15, 0.08);
}

:root[data-theme="dark"] {
  --bg: #181A13;
  --surface: #20231A;
  --surface-alt: #282C1E;
  --ink: #EEEAD9;
  --ink-soft: #C7C2AC;
  --muted: #97937C;
  --border: #3B3D2C;
  --border-strong: #5C5E48;

  --accent: #D2A83B;
  --accent-hover: #E6BE55;

  --primary: #1E3B2A;
  --primary-hover: #163021;
  --on-primary: #F3F1E6;
  --on-accent: #FFFFFF;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------------
   3. Base
   ------------------------------------------------------------------------- */

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
}

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 0.85rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.02rem; margin-bottom: 0.4rem; }

p {
  color: var(--ink-soft);
  max-width: 68ch;
}

p + p {
  margin-top: 1rem;
}

a {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

.link-strong {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

.link-strong:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.wrap {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.6rem 1rem;
  z-index: 500;
  transition: top 0.15s ease;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Focus visibility, all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   4. Draft notice
   ------------------------------------------------------------------------- */

.draft-notice {
  background: var(--surface-alt);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* -------------------------------------------------------------------------
   5. Utility strip
   ------------------------------------------------------------------------- */

.utility-bar {
  background: var(--primary);
  color: var(--on-primary);
}

.utility-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.85rem;
}

.utility-bar a {
  color: var(--on-primary);
  text-decoration: none;
}

.utility-bar a:hover {
  color: var(--accent-hover);
}

.utility-quote {
  font-weight: 700;
  border-bottom: 2px solid var(--on-primary);
  padding-bottom: 1px;
}

.utility-quote:hover {
  border-color: var(--accent-hover);
}

/* -------------------------------------------------------------------------
   6. Header and navigation
   ------------------------------------------------------------------------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  flex: none;
  width: 40px;
  height: 40px;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.15rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
}

.site-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.5rem 0.7rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* -------------------------------------------------------------------------
   7. Buttons
   ------------------------------------------------------------------------- */

.button {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.button-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--on-primary);
}

.button-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.button-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button-outline {
  background: transparent;
  border-color: var(--on-primary);
  color: var(--on-primary);
}

.button-outline:hover {
  background: var(--on-primary);
  color: var(--primary);
}

.button-outline-ink {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.button-outline-ink:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.button-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* -------------------------------------------------------------------------
   8. Hero (home page only)
   ------------------------------------------------------------------------- */

.hero {
  background: var(--primary);
  color: var(--on-primary);
  padding: 3.4rem 0 3.2rem;
}

.hero .wrap {
  max-width: 900px;
}

.hero h1 {
  color: var(--on-primary);
  margin-bottom: 1.1rem;
  max-width: 20ch;
}

.hero p.lede {
  color: var(--on-primary);
  opacity: 0.92;
  font-size: 1.08rem;
  max-width: 60ch;
  margin-bottom: 1.75rem;
}

.hero .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* -------------------------------------------------------------------------
   9. Generic sections and home page layout
   ------------------------------------------------------------------------- */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-tight {
  padding: 2.2rem 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 820px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.info-box ul {
  display: grid;
  gap: 0.6rem;
}

.info-box li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--ink-soft);
}

.info-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 3rem;
  margin-top: 0.4rem;
}

.service-row {
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
}

/* in the two-column grid the first row of cells carries no top rule */
.service-grid > .service-row:nth-child(-n + 2) {
  border-top: none;
  padding-top: 0.6rem;
}

.service-row h3 {
  margin-bottom: 0.45rem;
}

.service-row p {
  max-width: 60ch;
}

@media (max-width: 820px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .service-grid > .service-row:nth-child(-n + 2) {
    border-top: 1px solid var(--border);
    padding-top: 1.6rem;
  }
  .service-grid > .service-row:first-child {
    border-top: none;
    padding-top: 0.6rem;
  }
}

.statement {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  max-width: 42ch;
  font-family: var(--font-heading);
}

.cta-band {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.6rem 0;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 1rem;
}

.cta-band p {
  margin: 0 auto 1.4rem;
  text-align: center;
}

/* -------------------------------------------------------------------------
   10. Interior page shell: main content + sidebar
   ------------------------------------------------------------------------- */

.page-header {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 2.2rem 0;
}

.page-header .eyebrow-plain {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.page-header p {
  max-width: 62ch;
  font-size: 1.05rem;
}

.page-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  padding: 2.6rem 0 3.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .page-columns {
    grid-template-columns: 1fr;
  }
  .content-sidebar {
    order: 2;
  }
}

.content-main section + section,
.content-main .block + .block {
  margin-top: 2.2rem;
}

.content-main h2 {
  margin-top: 0;
}

.content-main .block {
  padding-top: 0;
}

.content-main ul.plain {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.content-main ul.plain li {
  padding-left: 1.15rem;
  position: relative;
  color: var(--ink-soft);
}

.content-main ul.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

.content-sidebar {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 1.75rem;
}

.sidebar-cta {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}

.sidebar-cta h2 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.sidebar-cta p {
  font-size: 0.94rem;
  margin-bottom: 1.1rem;
}

.sidebar-phone {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.sidebar-phone a {
  color: var(--accent);
  font-weight: 700;
}

.sidebar-links {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.sidebar-links h2 {
  font-size: 1.02rem;
  margin-bottom: 0.7rem;
}

.sidebar-links ul li {
  border-top: 1px solid var(--border);
}

.sidebar-links ul li:first-child {
  border-top: none;
}

.sidebar-links ul li a {
  display: block;
  padding: 0.65rem 0;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.sidebar-links ul li a:hover {
  color: var(--accent);
}

/* -------------------------------------------------------------------------
   11. Forms (contact / quote request)
   ------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.form-field .hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  font-size: 0.98rem;
  color: var(--ink);
  width: 100%;
}

.form-field textarea {
  resize: vertical;
  min-height: 7rem;
}

fieldset {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 1rem;
}

legend {
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0 0.4rem;
}

.radio-row {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  font-size: 0.95rem;
}

.form-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 52ch;
}

/* -------------------------------------------------------------------------
   12. Tables (defensive: none used decoratively, but any real table scrolls)
   ------------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* -------------------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--bg);
  margin-top: 0;
}

@media (prefers-color-scheme: dark) {
  .site-footer {
    background: #0F110B;
  }
}

:root[data-theme="dark"] .site-footer {
  background: #0F110B;
}

:root[data-theme="light"] .site-footer {
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.2rem;
  padding: 2.8rem 0 2rem;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h2 {
  color: var(--bg);
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}

.footer-col ul li {
  padding: 0.3rem 0;
}

.footer-col ul li a {
  color: var(--bg);
  opacity: 0.85;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-col address {
  font-style: normal;
  color: var(--bg);
  opacity: 0.85;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-col address a {
  color: var(--bg);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(243, 241, 230, 0.18);
  padding: 1.1rem 0 1.6rem;
}

.footer-bottom p {
  color: var(--bg);
  opacity: 0.65;
  font-size: 0.8rem;
  max-width: none;
}

/* -------------------------------------------------------------------------
   14. Utility spacing helpers
   ------------------------------------------------------------------------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
