/* SmartProp AI — Terrain design system */
/* Fonts loaded via <link> in page head — not @import (avoids render-blocking chain) */

:root {
  --ink: #171713;
  --umber: #2C271F;
  --limestone: #F1EDE4;
  --sage: #4E7A54;
  --grey: #8A8B84;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --max-width: 1200px;
  --section-pad: clamp(4rem, 8vw, 8.75rem);
  --hairline: 1px solid currentColor;
  --transition: 0.35s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { opacity: 0.82; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.75rem, 6vw, 5.625rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

p { margin: 0 0 1.25rem; }

ul, ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }

/* Surface system — paired bg+text only */
.surface-limestone { background-color: #F1EDE4; color: #171713; }
.surface-ink { background-color: #171713; color: #F1EDE4; }
.surface-umber { background-color: #2C271F; color: #F1EDE4; }
.surface-sage { background-color: #4E7A54; color: #F1EDE4; }

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

.surface-ink .eyebrow,
.surface-umber .eyebrow { color: #8FB896; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background-color: #F1EDE4;
  color: #171713;
  box-shadow: 0 1px 0 rgba(23, 23, 19, 0.08);
}

.site-header.is-scrolled .nav-toggle span { background: #171713; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    background: #F1EDE4;
    color: #171713;
    border-bottom: var(--hairline);
  }
  .nav-list.is-open { display: flex; }
  .site-header.is-scrolled .nav-list { background: #F1EDE4; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background-color: #4E7A54;
  color: #F1EDE4;
  border-color: #4E7A54;
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 20px rgba(78, 122, 84, 0.25);
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}

.btn-secondary:hover {
  box-shadow: 0 2px 12px rgba(23, 23, 19, 0.1);
  opacity: 1;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Hero — Survey Masthead */
.hero-masthead {
  min-height: 90vh;
  padding-top: 5.5rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-masthead::before {
  content: '';
  position: absolute;
  top: 4rem;
  right: -2rem;
  width: 280px;
  height: 280px;
  opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M0 100 Q50 80 100 100 T200 100' fill='none' stroke='%234E7A54' stroke-width='0.5'/%3E%3Cpath d='M0 120 Q50 100 100 120 T200 120' fill='none' stroke='%234E7A54' stroke-width='0.5'/%3E%3Cpath d='M0 80 Q50 60 100 80 T200 80' fill='none' stroke='%234E7A54' stroke-width='0.5'/%3E%3C/svg%3E") no-repeat;
  pointer-events: none;
}

.masthead-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: var(--hairline);
  margin-bottom: 2.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title .sage-accent { color: #4E7A54; }

.standfirst {
  max-width: 560px;
  font-size: 1.125rem;
  opacity: 0.85;
  margin-top: 1.5rem;
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 0.85;
  padding-right: 0.5rem;
  color: #4E7A54;
}

.hero-plate {
  margin-top: 2.5rem;
  border: var(--hairline);
  overflow: hidden;
  position: relative;
}

.hero-plate img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-masthead { min-height: 78vh; }
  .hero-plate img { aspect-ratio: 16/10; }
}

.trust-strip {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #8A8B84;
  letter-spacing: 0.04em;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 8rem 0 3rem;
  border-bottom: var(--hairline);
}

.page-hero h1 { margin-bottom: 1rem; }

.page-hero .lead {
  max-width: 640px;
  font-size: 1.125rem;
  opacity: 0.88;
}

/* Sections */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
  max-width: 720px;
}

.contour-deco {
  position: absolute;
  width: 120px;
  height: 120px;
  opacity: 0.15;
  pointer-events: none;
}

.contour-deco--tl { top: 2rem; left: 1rem; }
.contour-deco--br { bottom: 2rem; right: 1rem; }

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.grid-2 > * {
  min-width: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Cards & folios */
.folio-card {
  padding: 2rem;
  border: var(--hairline);
  position: relative;
}

.folio-card .folio-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #4E7A54;
  margin-bottom: 1rem;
}

.folio-card h3 { margin-bottom: 0.75rem; }

.metric-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.metric-item {
  padding: 1.5rem;
  border: var(--hairline);
  text-align: center;
}

.metric-item .num {
  font-family: var(--mono);
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.metric-item .label {
  font-size: 0.875rem;
  opacity: 0.8;
}

@media (max-width: 700px) {
  .metric-trio { grid-template-columns: 1fr; }
}

/* Framed plates */
.framed-plate {
  border: var(--hairline);
  overflow: hidden;
}

.framed-plate img {
  width: 100%;
  object-fit: cover;
}

/* Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-item {
  padding: 1.75rem 0;
  border-top: var(--hairline);
}

.pillar-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

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

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

/* Service list */
.service-block {
  padding: 2.5rem 0;
  border-bottom: var(--hairline);
}

.service-block:last-child { border-bottom: none; }

.service-block .price-range {
  font-family: var(--mono);
  font-size: 0.875rem;
  margin-top: 1rem;
  opacity: 0.85;
}

/* Work cases */
.case-card {
  padding: 2rem;
  border: var(--hairline);
  margin-bottom: 2rem;
}

.case-card .case-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* FAQ */
.faq-item {
  padding: 1.75rem 0;
  border-bottom: var(--hairline);
}

.faq-item h3 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Disclaimer */
.disclaimer-box {
  padding: 1.5rem;
  border: var(--hairline);
  font-size: 0.9375rem;
  opacity: 0.92;
  margin: 2rem 0;
}

/* Forms */
form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.contact-form {
  padding: 2rem;
  border: var(--hairline);
  background: #fff;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  border: 1px solid #8A8B84;
  background: #fff;
  color: #171713;
  box-sizing: border-box;
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-consent {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
  border-top: var(--hairline);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  min-width: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.checkbox-label span {
  flex: 1;
  min-width: 0;
}

.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.55;
}

.form-check label {
  flex: 1;
  min-width: 0;
  font-weight: 400;
  margin-bottom: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.form-check input { margin-top: 0.25rem; flex-shrink: 0; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

.footer-nav li { margin-bottom: 0.5rem; }

.footer-nav a {
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: var(--hairline);
  font-size: 0.8125rem;
  opacity: 0.85;
}

.footer-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  opacity: 0.75;
  max-width: 900px;
}

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

/* CTA band */
.cta-band {
  padding: var(--section-pad) 0;
  text-align: center;
}

.cta-band h2 { margin-bottom: 1rem; }

.cta-band p {
  max-width: 560px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

/* Legal prose */
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  font-family: var(--sans);
  font-weight: 600;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.5rem;
  background-color: #2C271F;
  color: #F1EDE4;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9375rem;
}

.cookie-text a { color: #8FB896; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-actions .btn {
  padding: 0.65rem 1.2rem;
  font-size: 0.875rem;
}

.cookie-custom {
  display: none;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: var(--hairline);
}

.cookie-custom.is-open { display: block; }

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(241, 237, 228, 0.15);
}

.cookie-option label { font-size: 0.875rem; }

/* Scroll reveal — transform only; content stays readable with JS off */
.reveal {
  transition: transform 0.6s ease;
}

.js .reveal {
  transform: translateY(16px);
}

.js .reveal.is-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .js .reveal,
  .js .reveal.is-visible {
    transform: none;
  }
}

/* Thanks page */
.thanks-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Contour draw animation */
.js .contour-draw path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.2s ease;
}

.js .contour-draw.is-visible path {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .js .contour-draw path { stroke-dashoffset: 0; }
}

/* Ken-burns subtle on hero plate */
@media (prefers-reduced-motion: no-preference) {
  .hero-plate img {
    transition: transform 8s ease;
  }
  .hero-masthead:hover .hero-plate img {
    transform: scale(1.03);
  }
}
