
:root {
  --c-navy: #0a2540;
  --c-navy-2: #112d52;
  --c-ink: #0b1623;
  --c-paper: #ffffff;
  --c-off: #f7f4ee;
  --c-sand: #e8d5b7;
  --c-sand-2: #c08552;
  --c-copper: #b8722f;
  --c-teal: #2dd4bf;
  --c-line: #e5e1d8;
  --c-muted: #5b6b7c;
  --c-text: #1a2533;
  --c-text-dim: #475569;
  --c-success: #16a34a;
  --c-warn: #d97706;
  --shadow-sm: 0 1px 2px rgba(10,37,64,.06), 0 1px 3px rgba(10,37,64,.04);
  --shadow-md: 0 4px 12px rgba(10,37,64,.08), 0 2px 4px rgba(10,37,64,.05);
  --shadow-lg: 0 24px 48px rgba(10,37,64,.10), 0 8px 16px rgba(10,37,64,.06);
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;
  --maxw: 1180px;
  --pad: clamp(16px, 4vw, 32px);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-navy); text-decoration: none; }
a:hover { color: var(--c-copper); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--c-ink); margin: 0 0 .4em; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--c-text); }
.lede { font-size: 1.18rem; color: var(--c-text-dim); max-width: 60ch; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section--earth { background: linear-gradient(180deg, var(--c-off) 0%, #f1eadf 100%); }
.section--ink { background: var(--c-ink); color: #e7ecf3; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #f7f4ee; }
.section--ink p { color: #b6c2d2; }
.section--map { background: linear-gradient(180deg, var(--c-ink) 0%, #11253e 100%); color: #e7ecf3; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--c-ink);
}
.brand-mark {
  width: 28px; height: 28px;
  background:
    radial-gradient(circle at 35% 35%, var(--c-teal) 0 22%, transparent 23%),
    radial-gradient(circle at 65% 70%, var(--c-copper) 0 28%, transparent 29%),
    linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18);
  flex: 0 0 28px;
}
.brand b { color: var(--c-copper); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 8px 14px; border-radius: 8px;
  color: var(--c-text-dim);
  font-weight: 500; font-size: .94rem;
  transition: background .12s ease, color .12s ease;
}
.nav a.is-active, .nav a:hover { background: var(--c-off); color: var(--c-ink); }
.nav__cta {
  background: var(--c-ink) !important; color: #fff !important;
}
.nav__cta:hover { background: var(--c-copper) !important; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; stroke: var(--c-ink); }

@media (max-width: 820px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.is-open {
    display: flex; position: absolute; top: 64px; right: var(--pad);
    flex-direction: column; align-items: stretch;
    background: #fff; border: 1px solid var(--c-line); border-radius: 12px;
    padding: 8px; box-shadow: var(--shadow-lg); min-width: 220px;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 100px);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(184,114,47,.18) 0, transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(45,212,191,.10) 0, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--c-off) 100%);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: 50% 0;
  opacity: 0.16;
}
.hero::before {
  /* Topographic line pattern */
  background-image:
    radial-gradient(ellipse 60vw 30vh at 70% 30%,
      transparent 0, transparent 28%, rgba(10,37,64,.20) 29%, transparent 30%,
      transparent 38%, rgba(10,37,64,.16) 39%, transparent 40%,
      transparent 48%, rgba(10,37,64,.12) 49%, transparent 50%,
      transparent 58%, rgba(10,37,64,.08) 59%, transparent 60%);
}
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(10,37,64,.06); color: var(--c-navy);
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.hero__pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-copper); }
.hero h1 { margin-top: 18px; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--c-copper); background: linear-gradient(90deg, var(--c-copper), var(--c-sand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lede { margin: 18px 0 28px; max-width: 56ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .96rem;
  cursor: pointer; transition: transform .08s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
}
.btn--primary { background: var(--c-ink); color: #fff; }
.btn--primary:hover { background: var(--c-copper); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--c-line); color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-paper); border-color: var(--c-ink); }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px; margin-top: 56px;
}
.stat { padding: 18px; border: 1px solid var(--c-line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.stat__n { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--c-ink); letter-spacing: -.02em; }
.stat__l { color: var(--c-text-dim); font-size: .9rem; margin-top: 4px; }
@media (max-width: 760px) { .hero__stats { grid-template-columns: repeat(2,1fr); } }

/* Cards grid */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 960px) { .grid, .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid, .grid--2 { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 24px; border-radius: 16px;
  background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d6d0c2; }
.card__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-2)); color: #fff;
  margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 6px; }
.card .meta { font-size: .82rem; color: var(--c-text-dim); margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--c-off); color: var(--c-text-dim);
  font-size: .78rem; font-weight: 500;
}

/* Service detail */
.detail__head {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end;
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px);
}
@media (max-width: 820px) { .detail__head { grid-template-columns: 1fr; } }
.detail__body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
@media (max-width: 820px) { .detail__body { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--c-line);
  color: var(--c-text);
}
.checklist li::before {
  content: ""; flex: 0 0 18px; margin-top: 6px;
  width: 18px; height: 18px; border-radius: 6px;
  background: linear-gradient(135deg, var(--c-copper), var(--c-sand-2));
  box-shadow: inset 0 0 0 2px #fff;
}

/* Map preview block (embeds mining.agresca.com) */
.mapwrap {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid #1c324e; background: #0a2540;
  aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg);
}
.mapwrap iframe { border: 0; width: 100%; height: 100%; display: block; }
.mapwrap__overlay {
  position: absolute; left: 12px; top: 12px; right: 12px;
  display: flex; justify-content: space-between; gap: 8px;
  pointer-events: none;
}
.mapwrap__chip {
  background: rgba(10,37,64,.78); color: #fff; padding: 6px 10px;
  border-radius: 999px; font-size: .78rem; font-weight: 600;
  letter-spacing: .04em;
}
.mapwrap__open {
  pointer-events: auto;
  background: #fff; color: var(--c-ink); padding: 6px 10px;
  border-radius: 999px; font-size: .78rem; font-weight: 600;
}

/* Service strip */
.strip {
  display: grid; gap: 8px; grid-template-columns: repeat(5, 1fr);
  background: var(--c-ink); border-radius: 18px; padding: 10px;
  margin-top: 32px;
}
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } }
.strip a {
  padding: 14px 16px; border-radius: 12px; color: #c2ccd9;
  font-weight: 600; font-size: .96rem;
  display: flex; align-items: center; gap: 10px;
}
.strip a:hover { background: rgba(255,255,255,.06); color: #fff; }
.strip span.k { color: var(--c-teal); font-family: var(--font-mono); font-size: .8rem; opacity: .8; }

/* Footer */
.footer { background: var(--c-ink); color: #c2ccd9; padding: 56px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__inner { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase; }
.footer a { color: #c2ccd9; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 12px; }
.footer__brand .brand-mark { width: 24px; height: 24px; flex: 0 0 24px; }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .85rem; color: #93a2b3;
}

/* Contact form */
.form {
  display: grid; gap: 14px; max-width: 560px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--c-ink); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--c-ink);
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--c-line); background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--c-copper);
  box-shadow: 0 0 0 3px rgba(184,114,47,.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.form__note { color: var(--c-text-dim); font-size: .85rem; }

/* Insight / blog */
.empty {
  border: 1px dashed var(--c-line); border-radius: 18px; padding: 36px;
  text-align: center; background: var(--c-off);
  color: var(--c-text-dim);
}

/* Topo SVG background helper */
.topo-bg { position: absolute; inset: 0; opacity: .07; pointer-events: none; }

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.is-in { opacity: 1; transform: translateY(0); }
}
