/* Kemper Hayworks — single page site styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #faf6ee;
  --bg-alt: #f1e9d8;
  --surface: #ffffff;
  --text: #2b2318;
  --text-muted: #5d5343;
  --border: #e3d6b8;
  --accent: #8a5a2b;
  --accent-2: #4d6b3a;
  --accent-contrast: #ffffff;
  --gold: #c99a3f;
  --shadow: 0 10px 30px rgba(66, 48, 15, 0.08);
  --header-bg: rgba(250, 246, 238, 0.92);
  --focus: #1e5fae;
}

:root[data-theme="dark"] {
  --bg: #1b1712;
  --bg-alt: #241f18;
  --surface: #262019;
  --text: #f1e9d8;
  --text-muted: #c6b99e;
  --border: #3a3226;
  --accent: #d99e52;
  --accent-2: #7fa866;
  --accent-contrast: #1b1712;
  --gold: #e0b563;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(27, 23, 18, 0.92);
  --focus: #6ea8ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1712;
    --bg-alt: #241f18;
    --surface: #262019;
    --text: #f1e9d8;
    --text-muted: #c6b99e;
    --border: #3a3226;
    --accent: #d99e52;
    --accent-2: #7fa866;
    --accent-contrast: #1b1712;
    --gold: #e0b563;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --header-bg: rgba(27, 23, 18, 0.92);
    --focus: #6ea8ff;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

h1, h2, h3, .logo-text {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

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

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

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

.brand svg { width: 42px; height: 42px; }

.logo-text {
  font-size: 1.3rem;
  margin: 0;
  color: var(--text);
}
.logo-text span { color: var(--accent); }
.logo-sub {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-top: -2px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon-icon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun-icon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon-icon { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  color: var(--text);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-header { padding: 9px 18px; font-size: 0.88rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hero-lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-meta li { display: flex; align-items: center; gap: 8px; list-style: none; }
.hero-meta svg { width: 18px; height: 18px; color: var(--accent-2); flex-shrink: 0; }
.hero-meta ul { display: flex; flex-wrap: wrap; gap: 22px; padding: 0; margin: 0; }

.hero-art {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Process section */
.process-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.process-art {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-height: 480px;
}
.process-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}
.feature-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent-2);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--text-muted); }
.aside-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.85;
  margin-top: 8px;
}

/* Product cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.card-icon svg { width: 28px; height: 28px; }

.card h3 { font-size: 1.2rem; }
.card p { color: var(--text-muted); margin: 0 0 12px; }
.card ul { margin: 0; padding-left: 20px; color: var(--text-muted); }
.card ul li { margin-bottom: 6px; }

/* Delivery / loading split */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.split .card { display: flex; flex-direction: column; }

.delivery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.delivery-cards.split { grid-template-columns: 1fr; }
.delivery-art {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-height: 520px;
}
.delivery-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.badge {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

/* Service area */
.area-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.area-list { columns: 2; gap: 24px; padding-left: 20px; color: var(--text-muted); }
.area-list li { margin-bottom: 8px; break-inside: avoid; }

.map-frame {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* Why us */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-grid .card { text-align: center; }
.stat-grid h3 { font-size: 1.8rem; color: var(--accent); margin-bottom: 4px; }
.stat-grid p { margin: 0; font-size: 0.9rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-line svg { width: 22px; height: 22px; color: var(--accent-2); flex-shrink: 0; margin-top: 3px; }
.contact-line a { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-line a:hover { color: var(--accent); }
.contact-line small { display: block; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

.contact-people { margin-bottom: 20px; }
.person-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.person-name {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  margin-bottom: 10px;
}
.person-card a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.person-card a:last-child { margin-bottom: 0; }
.person-card a:hover { color: var(--accent); }
.person-card svg { width: 17px; height: 17px; color: var(--accent-2); flex-shrink: 0; }

.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-row input, .form-row select, .form-row textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-row textarea { resize: vertical; min-height: 100px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }

/* Footer */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-grid nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-grid nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-fine { color: var(--text-muted); font-size: 0.82rem; text-align: center; border-top: 1px solid var(--border); padding-top: 20px; }
.footer-fine a { color: var(--text-muted); }

/* Mobile */
@media (max-width: 880px) {
  .hero-grid, .split, .area-wrap, .contact-grid, .process-grid, .delivery-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .process-art { max-height: 360px; }
  .delivery-art { max-height: 360px; order: -1; }
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; padding: 20px 24px; gap: 16px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .area-list { columns: 1; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-meta ul { flex-direction: column; gap: 10px; }
}
