/* =========================================================
   Land Management Consultants — design tokens
   Concept: the cadastral plan / field notebook. Warm survey-
   paper background, a blueprint-navy ink, a beacon-orange
   accent, dashed boundary lines and corner "beacon" marks as
   the signature motif — standing in for the printer's proof
   look used on other builds, but rooted in surveying instead.
   ========================================================= */

:root {
  --paper: #f3efe2;
  --paper-alt: #eae4d1;
  --ink: #16232f;
  --ink-soft: #4d5a63;
  --navy: #1d3557;
  --navy-deep: #0f2038;
  --orange: #e2662d;
  --orange-bright: #f0803f;
  --line: rgba(22, 35, 47, 0.15);

  --font-display: "Spectral", Georgia, serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1160px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

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

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

/* subtle grid-paper texture, used behind hero/book sections via background */
.hero, .book {
  background-image:
    linear-gradient(rgba(22,35,47,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,35,47,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.book {
  background-image:
    linear-gradient(rgba(243,239,226,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,239,226,0.06) 1px, transparent 1px);
}

/* ---------- Type ---------- */

.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 20ch;
  color: var(--navy-deep);
}
.section-heading--onlight { color: #fff; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 12px;
}
.eyebrow--onlight { color: var(--orange-bright); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 2px;
  border: 2px solid var(--navy-deep);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn--primary { background: var(--navy-deep); color: var(--paper); }
.btn--primary:hover { background: var(--navy); transform: translateY(-2px); }

.btn--primary-onlight {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn--primary-onlight:hover { background: var(--orange-bright); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--navy-deep);
  border-color: var(--navy-deep);
}
.btn--ghost:hover { transform: translateY(-2px); }

.btn--ghost-onlight {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn--ghost-onlight:hover { border-color: #fff; transform: translateY(-2px); }

.btn--lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- Beacon corner marks (survey monument motif) ---------- */

.beacon {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  opacity: 0.45;
}
.beacon::before, .beacon::after {
  content: "";
  position: absolute;
  background: var(--navy);
}
.beacon::before { top: 50%; left: -8px; width: 36px; height: 1.5px; transform: translateY(-50%); }
.beacon::after { left: 50%; top: -8px; height: 36px; width: 1.5px; transform: translateX(-50%); }
.beacon--tl { top: 30px; left: 30px; }
.beacon--br { bottom: 30px; right: 30px; }
@media (max-width: 720px) { .beacon { display: none; } }

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-deep);
  margin-right: auto;
}
.brand__mark { color: var(--orange); display: flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.brand__tag { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); }

.nav { display: flex; gap: 26px; font-weight: 600; font-size: 0.94rem; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--orange); }

.header-cta .btn { padding: 10px 18px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--navy-deep); border-radius: 2px; }

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--paper);
    padding: 18px 24px 24px; border-bottom: 1px solid var(--line); gap: 16px;
  }
  .site-header.nav-open .header-cta {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    margin-top: 190px; padding: 0 24px 20px;
  }
}

/* =========================================================
   Hero
   ========================================================= */

.hero { position: relative; padding: 64px 0 90px; overflow: hidden; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  line-height: 1.18;
  margin: 0 0 22px;
  color: var(--navy-deep);
}

.hero__lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 50ch; margin: 0 0 30px; }
.hero__lead em { font-style: italic; color: var(--navy-deep); }

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__art { display: flex; justify-content: center; }
.hero__frame {
  position: relative;
  max-width: 300px;
  background: #fff;
  border: 3px solid var(--navy-deep);
  padding: 14px;
}
.hero__frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--orange);
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__frame { max-width: 220px; margin: 0 auto; }
}

/* =========================================================
   Trust strip
   ========================================================= */

.trust {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.trust__inner {
  display: flex; flex-wrap: wrap; gap: 10px 8px;
  align-items: center; justify-content: center; text-align: center;
  font-size: 0.9rem; color: var(--ink-soft);
}
.trust__inner p { margin: 0; }
.trust__dot { color: var(--orange); }

/* =========================================================
   Book section
   ========================================================= */

.book { background: var(--navy-deep); color: var(--paper); padding: 88px 0; }

.book__intro { max-width: 64ch; color: rgba(243,239,226,0.82); margin-bottom: 48px; font-size: 1.05rem; }

.editions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 52px;
}

.edition-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  background: rgba(243,239,226,0.04);
  border: 1px solid rgba(243,239,226,0.16);
  padding: 22px;
  border-radius: 3px;
}
.edition-card--featured { border-color: var(--orange); background: rgba(226,102,45,0.08); }

.book-cover {
  position: relative;
  aspect-ratio: 3/4.4;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 2px solid rgba(243,239,226,0.4);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
}
.book-cover--second { background: linear-gradient(160deg, #2a4468 0%, var(--navy-deep) 100%); }
.book-cover__ribbon {
  align-self: flex-start;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 2px;
}
.book-cover__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  color: #fff;
}
.book-cover__author {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(243,239,226,0.75);
  letter-spacing: 0.03em;
}

.edition-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 10px;
  color: #fff;
}
.edition-card__body p { color: rgba(243,239,226,0.78); font-size: 0.94rem; margin: 0 0 18px; }

.why-grid--onlight {
  border-top: 1px solid rgba(243,239,226,0.18);
  padding-top: 36px;
}
.why-grid--onlight .why-item h4 { color: var(--orange-bright); }
.why-grid--onlight .why-item p { color: rgba(243,239,226,0.75); }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-item h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 8px; }
.why-item p { font-size: 0.92rem; margin: 0; }

@media (max-width: 860px) {
  .editions { grid-template-columns: 1fr; }
  .edition-card { grid-template-columns: 110px 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Author
   ========================================================= */

.author { padding: 90px 0; }

.author__inner {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 56px;
  align-items: start;
}

.author__portrait { display: flex; flex-direction: column; gap: 24px; }

.portrait-frame {
  border: 3px solid var(--navy-deep);
  padding: 8px;
  background: #fff;
  max-width: 230px;
}

.license-frame {
  margin: 0;
  max-width: 230px;
}
.license-frame img {
  border: 1px solid var(--line);
  border-radius: 2px;
}
.license-frame figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

.author__copy p { color: var(--ink-soft); max-width: 62ch; }

@media (max-width: 860px) {
  .author__inner { grid-template-columns: 1fr; }
  .author__portrait { flex-direction: row; flex-wrap: wrap; }
}

/* =========================================================
   Stats
   ========================================================= */

.stats { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 60px 0; }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 24px;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--navy-deep);
}
.stat__label { font-size: 0.86rem; color: var(--ink-soft); }

@media (max-width: 700px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Services
   ========================================================= */

.services { padding: 84px 0; }
.services__intro { max-width: 60ch; color: var(--ink-soft); margin-bottom: 40px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  padding: 26px;
  background: #fff;
}
.service-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 10px; color: var(--navy-deep); }
.service-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Contact
   ========================================================= */

.contact { background: var(--navy-deep); color: var(--paper); padding: 88px 0; }

.contact__inner { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 50px; }

.contact__lead { color: rgba(243,239,226,0.78); max-width: 48ch; margin-bottom: 28px; }

.contact__details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; }
.contact__details dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--orange-bright);
  margin-bottom: 6px;
}
.contact__details dd { margin: 0; font-size: 0.92rem; color: rgba(243,239,226,0.85); }
.contact__details a { text-decoration: underline; }

.contact__book {
  background: rgba(243,239,226,0.06);
  border: 1px solid rgba(243,239,226,0.2);
  border-radius: 3px;
  padding: 30px 26px;
  align-self: start;
}
.contact__book h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 10px; color: #fff; }
.contact__book p { color: rgba(243,239,226,0.75); font-size: 0.92rem; margin-bottom: 18px; }
.contact__book .btn { width: 100%; margin-bottom: 12px; }

@media (max-width: 860px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer { background: var(--paper); padding: 36px 0; border-top: 1px solid var(--line); }
.site-footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.site-footer__legal { text-align: right; font-size: 0.8rem; color: var(--ink-soft); }
.site-footer__legal p { margin: 3px 0; }

@media (max-width: 640px) {
  .site-footer__inner { flex-direction: column; text-align: center; }
  .site-footer__legal { text-align: center; }
}
