/* ============================================================
   LINNUNTIE ENGINEERING — STYLES
   This file controls how the site LOOKS: colors, fonts, spacing.
   Brand colors are defined once below as "variables" so they can
   be reused everywhere. Change one here and it changes site-wide.
   ============================================================ */

:root {
  /* Primary brand colors (from the Brand Guide) */
  --olive:     #7F8F7A;  /* Muted Olive Green — signature accent */
  --oxide:     #7A1F1F;  /* Oxide Red — controlled accent */
  --charcoal:  #2A2A2A;  /* Iron Charcoal — text & structure */
  --grey:      #B9B6AE;  /* Weathered Grey — clean base */
  --cream:     #F3EFE6;  /* Warm Cream — page background */

  /* Secondary colors (use sparingly) */
  --steel:     #5F7681;  /* Dusty Steel Blue */
  --sage:      #A6B3A0;  /* Light Sage Tint */
  --midgrey:   #6F6C66;  /* Warm Mid Grey */

  --max-width: 1120px;
}

/* ---------- Basics ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
}

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

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--charcoal);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header-logo img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--sage); }
.site-nav .nav-button {
  padding: 8px 18px;
  border: 1.5px solid var(--olive);
  border-radius: 4px;
}
.site-nav .nav-button:hover { background: var(--olive); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 104px;
  border-bottom: 1px solid var(--grey);
}
.hero-logo { width: min(420px, 80%); margin-bottom: 56px; }
.hero h1 { max-width: 820px; }
.lead {
  font-size: 1.2rem;
  color: var(--midgrey);
  max-width: 680px;
  margin: 0 0 36px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.button-primary { background: var(--oxide); color: var(--cream); }
.button-primary:hover { background: var(--charcoal); }
.button-secondary { border: 1.5px solid var(--charcoal); color: var(--charcoal); }
.button-secondary:hover { background: var(--charcoal); color: var(--cream); }
.button-light { background: var(--cream); color: var(--charcoal); margin-top: 8px; }
.button-light:hover { background: var(--olive); color: var(--cream); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--olive);
  margin: 0 0 12px;
}
.section-intro { max-width: 680px; color: var(--midgrey); margin: 0 0 48px; }

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--grey);
  border-top: 4px solid var(--olive);
  border-radius: 4px;
  padding: 28px;
}
.card p { margin: 0; color: var(--midgrey); font-size: 1rem; }

/* Dark products section */
.section-dark { background: var(--charcoal); color: var(--cream); }
.section-dark .section-intro { color: var(--grey); }
.section-dark .eyebrow { color: var(--sage); }

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.image-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--midgrey);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 0.95rem;
}
.product-image img { border-radius: 4px; }
.tag {
  display: inline-block;
  background: var(--oxide);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.product-tagline { color: var(--sage); font-weight: 500; margin-top: -8px; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { padding: 6px 0 6px 28px; position: relative; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 14px;
  height: 2px;
  background: var(--olive);
}

/* About */
.about {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: start;
}
.about-card {
  background: #fff;
  border: 1px solid var(--grey);
  border-left: 4px solid var(--oxide);
  padding: 32px;
  border-radius: 4px;
  margin-top: 40px;
}
.about-name { font-weight: 700; font-size: 1.3rem; margin: 0; }
.about-title { color: var(--olive); font-weight: 500; margin: 0 0 16px; }
.about-card ul { margin: 0; padding-left: 20px; color: var(--midgrey); font-size: 1rem; }

/* Contact */
.section-olive { background: var(--olive); color: var(--charcoal); text-align: center; }
.contact p { max-width: 560px; margin: 0 auto 32px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.contact-links a {
  color: var(--charcoal);
  background: var(--cream);
  padding: 14px 26px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}
.contact-links a:hover { background: var(--charcoal); color: var(--cream); }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--grey); padding: 40px 0; font-size: 0.9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 32px; width: auto; }
.site-footer p { margin: 0; }

/* ---------- Phones & small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-button) { display: none; }  /* keep only "Contact" on phones */
  .header-logo img { height: 32px; }
  .hero { padding: 64px 0 72px; }
  .hero-logo { margin-bottom: 40px; }
  .section { padding: 64px 0; }
  .product, .about { grid-template-columns: 1fr; gap: 32px; }
  .about-card { margin-top: 0; }
}

/* ---------- Why Linnuntie / Who we help ---------- */
.section-tight { border-bottom: 1px solid var(--grey); }
.section-tight h2 { max-width: 760px; margin-bottom: 48px; }
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-bottom: 72px;
}
.pillar { border-top: 2px solid var(--charcoal); padding-top: 20px; }
.pillar p { margin: 0; color: var(--midgrey); font-size: 1rem; }
.subhead {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--olive);
  margin-bottom: 24px;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.audience {
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 4px;
  padding: 28px;
}
.audience h4 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 600; color: var(--sage); }
.audience p { margin: 0; font-size: 1rem; color: var(--grey); }

/* ---------- "Linnuntie" dictionary definition ---------- */
.definition {
  border-left: 4px solid var(--olive);
  padding: 4px 0 4px 20px;
  margin: 8px 0 24px;
}
.definition-word { font-size: 1.5rem; font-weight: 700; margin: 0; }
.definition-say {
  font-size: 1rem;
  font-weight: 400;
  color: var(--midgrey);
  margin-left: 10px;
}
.definition-say::before { content: "/"; margin-right: 2px; }
.definition-say::after  { content: "/"; margin-left: 2px; }
.definition-meaning { margin: 4px 0 0; color: var(--midgrey); }
