:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #565656;
  --line: #e6e6e6;
  --accent-green: #1f8f3c;
  --accent-orange: #f47c20;
  --radius: 8px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-width: 1200px;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

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

/* Layout */
.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand img {
  height: 78px;
}

.site-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  margin: 0 var(--space-4);
  font-weight: 600;
}

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

/* Hero */
.hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../images/home-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  text-align: center;
  filter: brightness(1.08);
  filter: contrast(1.05);
}

.hero h1,
.hero p {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 17px;
  max-width: 60ch;
  margin: 0 auto;
}

/* Sections */
.section {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}

h1 {
  font-size: 36px;
  margin: 0 0 var(--space-3);
}

h2 {
  font-size: 32px;
  margin: 0 0 var(--space-3);
}

h3 {
  font-size: 22px;
  margin: 0 0 var(--space-2);
}

.measure {
  max-width: 65ch;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.align-start {
  align-items: start;
}

.media-block {
  width: 100%;
  min-height: 280px;
  background: #f7f7f7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Lists */
.list {
  padding: 0;
  margin: var(--space-3) 0 0 0;
  list-style: none;
}

.list li {
  margin-bottom: var(--space-2);
  padding-left: 20px;
  position: relative;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-orange);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-4);
}

/* Text-only grid variant (no cards) */
.product-grid.text-only article {
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  margin-top: var(--space-2);
}

.product-grid article {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* Centered overview sections (What We Do, Differentiators) */
.centered-grid article {
  text-align: center;
}

.centered-grid .measure {
  margin-left: auto;
  margin-right: auto;
}

/* Centered overview sections (What We Do, Differentiators) */
.centered-grid article {
  text-align: center;
}

.centered-grid .measure {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-5) 0 var(--space-4);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: var(--space-5);
  justify-content: center;
  text-align: center;
}

.footer-col h4 {
  margin: 0 0 var(--space-2);
  font-size: 16px;
}

.footer-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-list a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--muted);
}

/* Inner pages */
.page {
  padding: var(--space-6) 0;
}

.page-header {
  padding: var(--space-5) 0 var(--space-3);
  border-bottom: 1px solid var(--line);
  padding-top: var(--space-2);
}

.page-header .intro {
  color: var(--muted);
  max-width: 70ch;
}

.blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  padding-top: var(--space-5);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  padding-top: var(--space-5);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  max-width: 600px;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-green);
}

.contact-aside {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.map-placeholder {
  height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f5f5;
}

/* ========================= ABOUT PAGE (LOCKED) ========================= */
.about-header {
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: none;
  padding-top: var(--space-2);
}

.about-intro {
  max-width: 900px;
  margin-top: var(--space-2);
  color: var(--muted);
  line-height: 1.6;
}

/* Two-column layout */
.about-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-5);
  padding-top: var(--space-4);
  align-items: start;
}

/* LEFT: selector */
.about-topics {
  margin: 0;
}

.about-topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-topic-list li {
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
}

.about-topic-list a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
  display: block;
}

.about-topic-list a:hover {
  color: var(--accent-green);
}

/* RIGHT: content viewport */
.about-view {
  position: relative;
  min-height: 360px;
  max-width: 700px;
}

/* Content switching */
.about-section {
  display: none;
  opacity: 0;
  transition: opacity 160ms ease-in-out;
}

.about-section.is-default {
  display: block;
  opacity: 1;
}

.about-section:target {
  display: block;
  opacity: 1;
}

.about-section:target~.is-default {
  display: none;
}
