/* Geotech Engineers: single stylesheet. Dark earth tones with a machinery-yellow accent. */
:root {
  --bg: #12110e;
  --panel: #18160f;
  --card: #1d1b15;
  --line: #2d2a21;
  --text: #cfcabd;
  --heading: #f6f2e8;
  --muted: #958f80;
  --accent: #e3a92b;
  --accent-light: #f4c45a;
  --accent-ink: #14120c;
  --radius: 3px;
  --max: 1160px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--accent-light); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; color: var(--heading); line-height: 1.1; margin: 0 0 .55em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.2rem; }
h1 em, h2 em { color: var(--accent); font-style: normal; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 780px; }
.section { padding: 5.5rem 0; }
.panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .26em; font-size: .72rem; font-weight: 700; margin-bottom: .9rem; }
/* Soil strata: three bands, the brand motif */
.rule { display: block; width: 72px; height: 9px; margin: 0 0 1.8rem;
  background: linear-gradient(var(--accent) 0 3px, transparent 3px 4px, #a77a2a 4px 6px, transparent 6px 7px, #6b5530 7px 9px); }
.lead { font-size: 1.12rem; color: #bdb8aa; max-width: 62ch; }
.meta { color: var(--accent); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(18, 17, 14, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--heading); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { font-weight: 800; font-size: 1rem; letter-spacing: .14em; line-height: 1.05; }
.brand-sub { display: block; color: var(--accent); font-weight: 600; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; margin-top: .35rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: #b5b0a2; text-decoration: none; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--accent-light); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--heading); font: inherit; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; padding: .45rem .9rem; min-height: 44px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.5rem; border: 1px solid var(--accent); border-radius: var(--radius); color: var(--heading); background: rgba(18, 17, 14, .4); text-decoration: none; cursor: pointer; font: 700 .76rem var(--sans); letter-spacing: .16em; text-transform: uppercase; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--accent-ink); }
.btn-ghost { border-color: #57513f; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: .45rem 1.1rem; font-size: .7rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Hero on the excavator photograph */
.hero { position: relative; padding: 7rem 0 6rem;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(18, 17, 14, .95) 38%, rgba(18, 17, 14, .5) 62%, rgba(18, 17, 14, .1) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(18, 17, 14, 0) 30%),
    url(/assets/img/hero.jpg) 85% 60% / cover no-repeat,
    var(--bg); }
.hero-home { min-height: min(86vh, 760px); display: flex; align-items: center; }
.hero-home > .wrap { width: 100%; }
.hero-copy { max-width: 580px; }
.hero h1 { margin-bottom: 1.4rem; }
.page-head { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--bg) 25%, rgba(18, 17, 14, .9) 55%, rgba(18, 17, 14, .6) 100%),
    url(/assets/img/hero.jpg) 80% 30% / cover no-repeat, var(--bg); }

/* Service overview */
.practice { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.practice li { padding: 1.6rem; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); }
.numeral { display: block; color: var(--accent); font-weight: 800; font-size: .9rem; letter-spacing: .16em; margin-bottom: .6rem; }
.practice h3 a { color: var(--heading); text-decoration: none; }
.practice h3 a:hover { color: var(--accent-light); }
.practice p { font-size: .95rem; color: #aaa596; margin: 0; }

/* Method steps */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.4rem; border-top: 2px solid var(--accent); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--accent); font-weight: 800; font-size: .8rem; letter-spacing: .2em; margin-bottom: .8rem; }
.steps p { font-size: .95rem; margin: 0; }

/* Cards and two-column content */
.card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 1.6rem; }
.card h2 { font-size: 1.3rem; }
.card p:last-child { margin-bottom: 0; }
.two-col { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.service + .service { border-top: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: .7rem 0 .7rem 1.8rem; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: 1.2rem; width: .7rem; height: 3px; background: var(--accent); }
.cta-band { text-align: center; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, #221f16 0%, var(--bg) 70%); }
.cta-band .lead { margin-left: auto; margin-right: auto; }
.cta-band .actions { justify-content: center; }

/* Projects */
.projects { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.project { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-body { padding: 1.5rem; }
.project h2 { font-size: 1.25rem; }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 1rem 0 0; font-size: .9rem; }
.facts dt { color: var(--muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.facts dd { margin: 0; color: var(--heading); }

/* Long-form text */
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.4rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--accent); }

/* Contact form */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.contact-aside { display: grid; gap: 1.25rem; }
.form { display: grid; gap: 1.2rem; }
.field-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.field label { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #b5b0a2; margin-bottom: .45rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .7rem .85rem; background: #17150f; color: var(--heading);
  border: 1px solid #39352a; border-radius: var(--radius); font: 1rem var(--sans);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #d0716b; }
.field-error { color: #ef9690; font-size: .88rem; margin: .4rem 0 0; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; align-items: start; }
.field-check input { width: 22px; height: 22px; margin-top: .25rem; accent-color: var(--accent); }
.field-check label { font-size: .95rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); margin: 0; }
.field-check .field-error { grid-column: 2; }
.form-alert { border: 1px solid #d0716b; background: #2a1715; color: #f3c4c0; padding: .9rem 1rem; border-radius: var(--radius); }
.form-alert p { margin: 0; }
.form-notice { font-size: .86rem; line-height: 1.6; color: var(--muted); border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1rem; margin: .4rem 0 .6rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Contact details (footer and contact page) */
.details { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.details li { padding: .15rem 0; }
.details-k { display: block; color: var(--muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 1.6rem; font-size: .92rem; background: #0e0d0a; }
.site-footer::before { content: ""; display: block; height: 9px; margin: -4rem 0 4rem;
  background: linear-gradient(var(--accent) 0 3px, #12110e 3px 4px, #a77a2a 4px 6px, #12110e 6px 7px, #6b5530 7px 9px); }
.footer-inner { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-brand { display: flex; align-items: center; gap: .7rem; color: var(--heading); font-weight: 800; letter-spacing: .1em; margin-bottom: .4rem; }
.footer-brand img { width: 32px; height: 32px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; padding: .2rem 0; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--accent-light); }
.lang-switch { display: flex; gap: .5rem; align-items: flex-start; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); text-decoration: none; font-size: .78rem; letter-spacing: .12em; }
.lang-switch a[aria-current="true"] { color: var(--accent-light); border-color: var(--accent); }
.footer-legal { margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .8rem; letter-spacing: .03em; }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: .5rem; padding-bottom: 1rem; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: flex; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 1rem; }
  .brand { gap: .6rem; }
  .brand img { width: 34px; height: 34px; }
  .brand-text { font-size: .8rem; letter-spacing: .08em; }
  .brand-sub { font-size: .5rem; letter-spacing: .12em; }
  .nav-toggle { padding: .45rem .7rem; }
  .section { padding: 3.8rem 0; }
  .hero { padding: 4.5rem 0 4rem;
    background: linear-gradient(rgba(18, 17, 14, .7), rgba(18, 17, 14, .92)), url(/assets/img/hero.jpg) 72% 50% / cover no-repeat, var(--bg); }
  .hero-home { min-height: 0; }
  .contact-grid, .field-row { grid-template-columns: 1fr; }
  .practice, .projects { grid-template-columns: 1fr; }
}

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