/* Sweaty Yeti — look and feel based on the original sweaty-yeti.ca (2017–2019) */
:root {
  --ink: #1a292a;          /* deep forest green-black */
  --ink-soft: #4d5b5c;
  --orange: #dc6325;       /* accent from the old site */
  --orange-dark: #b94f1a;
  --brown: #8a3a0a;        /* "SWEATY" in the logo */
  --paper: #fafafa;
  --card: #ffffff;
  --mist: #f2f2f0;
  --line: #d6d6d2;
  --forest-text: #d3dcdc;
  --wrap: 1140px;
  --head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

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

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .18em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: .2em; color: var(--orange); }
h3 { font-size: 1.05rem; letter-spacing: .16em; }

p { margin: 0 0 1.1em; }
a { color: var(--orange-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 96px 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
}
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--head);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange); }

/* ---------- Kicker frame (thin box with small heading in its top border) ---------- */
.framed {
  border: 2px solid var(--line);
  padding: 30px 28px 18px;
  text-align: center;
  position: relative;
  margin: 14px 0 36px;
}
.framed .kicker {
  position: absolute;
  top: -.85em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  padding: 0 16px;
  white-space: nowrap;
  font-family: var(--head);
  font-size: .82rem;
  letter-spacing: .22em;
  color: var(--ink);
}
.framed h1, .framed h2 { margin: 0; color: var(--orange); }
.framed h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.dark .framed { border-color: rgba(255,255,255,.75); }
.dark .framed .kicker { background: var(--ink); color: #fff; }

/* ---------- Arrow links (old-site style buttons) ---------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--head);
  font-size: .85rem;
  letter-spacing: .25em;
  color: var(--ink);
  text-decoration: none;
}
.arrow-link::before {
  content: "";
  width: 34px;
  height: 14px;
  background: var(--orange);
  clip-path: polygon(0 35%, 62% 35%, 62% 0, 100% 50%, 62% 100%, 62% 65%, 0 65%);
  transition: transform .2s;
}
.arrow-link span { padding-bottom: 6px; border-bottom: 3px solid var(--orange); }
.arrow-link:hover::before { transform: translateX(5px); }
.dark .arrow-link { color: #fff; }

/* Solid button, used for the form */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: var(--head);
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  padding: 16px 30px;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--orange-dark); }

/* ---------- Hero ---------- */
.hero {
  height: min(78vh, 680px);
  min-height: 380px;
  background: var(--ink) url("../images/hero-summit.jpg") center 35% / cover no-repeat;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,41,42,0) 55%, rgba(26,41,42,.35));
}
.hero.short { height: 340px; min-height: 260px; }

/* Card that overlaps the hero, like the old "Welcome" block */
.overlap { padding-top: 0; }
.overlap-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: stretch;
  margin-top: -140px;
  position: relative;
  z-index: 2;
}
.overlap-photo { background: center / cover no-repeat; min-height: 420px; margin-top: 80px; }
.card {
  background: var(--card);
  padding: 52px 48px 44px;
  box-shadow: 0 10px 40px rgba(26,41,42,.12);
}
.card .lead { font-size: 1.1rem; }

/* ---------- Dark forest section ---------- */
.dark {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(255,255,255,.06), transparent 50%),
    linear-gradient(180deg, #223536, var(--ink) 60%);
  color: var(--forest-text);
}
.dark h3 { color: #fff; }
.dark .framed { max-width: 660px; margin-left: auto; margin-right: auto; }
.intro { max-width: 720px; margin: 0 auto 48px; text-align: center; font-size: 1.1rem; }

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
}
.skill { background: var(--ink); padding: 34px 30px; }
.skill h3::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 18px;
}
.skill p { margin: 0; font-size: 1rem; }

/* Service cards that link to their own page */
a.skill { color: inherit; text-decoration: none; display: flex; flex-direction: column; transition: background .2s; }
a.skill:hover { background: #223738; }
a.skill p { flex: 1; }
.more {
  margin-top: 22px;
  font-family: var(--head);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
}
.more::after { content: " \2192"; }
a.skill:hover .more { color: #fff; }

/* "Not a lawyer / not an accountant" callout */
.note {
  border-left: 4px solid var(--orange);
  background: var(--mist);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 1rem;
}
.note strong {
  display: block;
  font-family: var(--head);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.dark .note { background: rgba(255,255,255,.06); max-width: 760px; margin: 40px auto 0; }
.dark .note strong { color: #fff; }

/* Service pages */
.service-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 8px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { padding: 0 0 12px 30px; position: relative; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
}
.subhead {
  font-family: var(--head);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--ink);
}
.other-services { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: center; margin-top: 8px; }

/* ---------- Image + card split (like the old "Rental Services") ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.split-photo { min-height: 460px; background: center / cover no-repeat; }
.split .card { margin-left: -60px; position: relative; }
.split.reverse .split-photo { order: 2; }
.split.reverse .card { margin-left: 0; margin-right: -60px; z-index: 1; }

.steps { list-style: none; padding: 0; margin: 0 0 28px; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 0 0 16px 58px;
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--orange);
  letter-spacing: .05em;
}
.steps strong {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .9rem;
  display: block;
}

/* ---------- "Explore"-style call to action ---------- */
.cta-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
}
.cta-box {
  border: 2px solid var(--line);
  border-right: 0;
  padding: 48px 40px;
  margin-right: -2px;
}
.cta-box h2 { letter-spacing: .18em; }
.cta-box h2 .ink { color: var(--ink); }
.cta-photo { min-height: 380px; background: center / cover no-repeat; }

/* ---------- Inner pages ---------- */
.page-card { max-width: 860px; margin: -120px auto 0; position: relative; z-index: 2; }
.about-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 56px;
  align-items: start;
}
.portrait { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 75%; }
.photo-note { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }

/* Draft placeholders: remove once real content is in */
.todo {
  background: #fff3c4;
  border-left: 4px solid #e8b400;
  padding: 6px 12px;
  color: #5a4a00;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: start;
}
.contact-form { display: grid; gap: 18px; }
.contact-form label {
  display: grid;
  gap: 6px;
  font-family: var(--head);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.contact-form .optional { text-transform: none; letter-spacing: 0; font-family: var(--body); color: var(--ink-soft); }
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-family: var(--body);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.contact-form .btn { justify-self: start; }
.hidden { display: none; }
.next { background: var(--ink); color: var(--forest-text); padding: 36px 32px; }
.next h3 { color: #fff; }
.next .steps strong { color: #fff; }
.small { font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--forest-text);
  padding: 56px 0 40px;
  font-size: .95rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-inner img { height: 44px; width: auto; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a {
  color: #fff;
  font-family: var(--head);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--orange); }
.copyright { width: 100%; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; margin-top: 8px; font-size: .85rem; }

/* Thank-you page */
.thanks-page { min-height: 70vh; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .nav { gap: 18px; }
  .brand img { height: 40px; }
  .overlap-grid, .split, .cta-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .overlap-grid { margin-top: -80px; }
  .overlap-photo { display: none; }
  .split .card, .split.reverse .card { margin: -60px 16px 0; }
  .split.reverse .split-photo { order: 0; }
  .split-photo { min-height: 300px; }
  .cta-box { border-right: 2px solid var(--line); margin: 0; }
  .cta-photo { min-height: 260px; }
  .skills { grid-template-columns: 1fr 1fr; }
  .service-cols { grid-template-columns: 1fr; gap: 8px; }
  .card { padding: 40px 26px 32px; }
  .page-card { margin-top: -80px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .header-inner { flex-direction: column; justify-content: center; padding: 12px 0; gap: 8px; min-height: 0; }
  .nav { gap: 20px; }
  .skills { grid-template-columns: 1fr; }
  .framed { padding: 28px 14px 16px; }
  .framed .kicker { font-size: .68rem; letter-spacing: .14em; white-space: normal; width: max-content; max-width: 90%; text-align: center; }
  h1 { letter-spacing: .1em; }
  h2 { letter-spacing: .12em; }
  .hero { height: 46vh; }
}

/* Contact form error (shown when /api/contact sends the visitor back) */
.form-error {
  margin: 0;
  padding: 12px 16px;
  border-left: 4px solid #c0392b;
  background: #fbeaea;
  color: #7a1f16;
}
