/* ============================================================
   Pilot Light Software & Cattle Co — site styles
   Palette: cream / charcoal / rust / ember
   ============================================================ */

:root {
  --cream: #faf6ef;
  --cream-dark: #f1eadd;
  --charcoal: #26221d;
  --charcoal-soft: #4a443b;
  --rust: #b5502a;
  --rust-dark: #93401f;
  --ember: #e07b39;
  --line: #e2d9c8;
  --white: #fffdf9;

  --font-head: "Zilla Slab", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --container: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4em; }

p + p { margin-top: 0.9em; }

a { color: var(--rust); text-decoration: none; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rust);
  margin-bottom: 0.9em;
}
.eyebrow-light { color: var(--ember); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 13px 26px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--rust);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(181, 80, 42, 0.28);
}
.btn-primary:hover { background: var(--rust-dark); }
.btn-ghost {
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--cream); }
.btn-small { padding: 8px 18px; font-size: 0.9rem; background: var(--rust); color: var(--white); }
.btn-small:hover { background: var(--rust-dark); }
.btn-large { font-size: 1.15rem; padding: 16px 34px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--charcoal);
}
.brand-mark { width: 30px; height: 30px; color: var(--rust); }
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:not(.btn):hover { color: var(--rust); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  position: relative;
}
.hero-inner { max-width: 780px; }
.hero-lead {
  margin-top: 1.2em;
  font-size: 1.18rem;
  color: var(--charcoal-soft);
  max-width: 620px;
}
.hero-actions {
  margin-top: 2em;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-rule {
  margin-top: 72px;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--rust) 0 40px,
    var(--charcoal) 40px 80px,
    var(--ember) 80px 120px
  );
  opacity: 0.85;
}

/* ---------- Client logo wall ---------- */
.logos {
  background: var(--charcoal);
  padding: 40px 0;
  text-align: center;
}
.logos-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9c9486;
  margin-bottom: 22px;
}
.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
}
.logo-img {
  height: 76px;
  width: auto;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--cream-dark); }
.section-lead {
  max-width: 640px;
  color: var(--charcoal-soft);
  font-size: 1.08rem;
  margin-bottom: 2.2em;
}

/* ---------- Service cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2.2em;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(38, 34, 29, 0.09);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: rgba(181, 80, 42, 0.1);
  color: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card p { color: var(--charcoal-soft); font-size: 0.97rem; }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rust);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.project:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(38, 34, 29, 0.09);
}
.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rust);
  background: rgba(181, 80, 42, 0.1);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.project p { color: var(--charcoal-soft); font-size: 0.97rem; }
.more-note {
  margin-top: 2.4em;
  font-style: italic;
  color: var(--charcoal-soft);
  text-align: center;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.about-grid p { color: var(--charcoal-soft); }
.about-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.checklist {
  list-style: none;
  margin-top: 14px;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--charcoal-soft);
  font-size: 0.97rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rust);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 60% no-repeat, linear-gradient(#000 0 0);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 60% no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

/* ---------- Contact ---------- */
.section-dark {
  background: var(--charcoal);
  color: var(--cream);
}
.section-dark h2 { color: var(--cream); }
.section-dark .section-lead { color: #cfc8bb; }
.contact-inner {
  text-align: center;
  max-width: 640px;
}
.contact-inner .section-lead { margin-left: auto; margin-right: auto; }

.contact-form {
  text-align: left;
  margin-top: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cfc8bb;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(224, 123, 57, 0.25);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: center; margin-top: 6px; border: none; }
.contact-alt {
  margin-top: 1.6em;
  font-size: 0.95rem;
  color: #9c9486;
}
.contact-alt a { color: var(--ember); }

/* ---------- Footer ---------- */
.footer {
  background: #1b1815;
  color: #9c9486;
  font-size: 0.85rem;
  padding: 22px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer a { color: #cfc8bb; }
.footer a:hover { color: var(--ember); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 22px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
}
