/*
Theme Name: Earth-Strata B
Theme URI: https://earth-strata.com
Author: Earth-Strata Geotechnical Services
Description: Concept B — corporate navy/teal theme (WSB-style). Switch with Earth-Strata (Concept A) in Appearance → Themes.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: earth-strata-b
*/

:root {
  --navy: #0b3040;
  --navy-fg: #eef4f6;
  --teal: #1a8f91;
  --teal-fg: #f4fbfb;
  --paper: #f3f6f7;
  --ink: #122026;
  --muted: #5a6c74;
  --line: #d4dee2;
  --white: #ffffff;
  --font: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --cond: "Barlow Condensed", "Barlow", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--navy); color: var(--ink); }
body { font-family: var(--font); line-height: 1.55; min-height: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--cond); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
img { max-width: 100%; display: block; }
.wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }

.site-header { background: var(--navy); color: var(--navy-fg); border-bottom: 1px solid rgba(238,244,246,.08); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.mark { width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--teal); font-size: 0.65rem; font-weight: 600; letter-spacing: .08em; }
.brand strong { display: block; font-family: var(--cond); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.brand small { display: block; font-size: 0.65rem; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.nav { display: flex; gap: 1.75rem; font-size: 0.9rem; }
.nav a:hover, .nav a.is-on { color: var(--teal); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.75rem; padding: 0 1.25rem; border: 0; cursor: pointer;
  font: 500 0.72rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
  background: var(--teal); color: var(--teal-fg);
}
.btn-outline { background: transparent; border: 1px solid rgba(238,244,246,.4); color: var(--navy-fg); }
.btn-dark { background: var(--navy); color: var(--navy-fg); }

.hero { position: relative; min-height: 78vh; color: var(--navy-fg); background: var(--navy); display: flex; align-items: flex-end; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero .shade { position: absolute; inset: 0; background: rgba(11,48,64,.55); }
.hero-copy { position: relative; padding: 6rem 0 4rem; }
.kicker { letter-spacing: .28em; text-transform: uppercase; font-size: 0.72rem; color: var(--teal); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: .95; text-transform: uppercase; max-width: 18ch; margin-top: 1rem; }
.hero p { max-width: 36rem; opacity: .85; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.band-white { background: var(--white); }
.band-paper { background: var(--paper); }
.band-navy { background: var(--navy); color: var(--navy-fg); }
.section { padding: 4rem 0; }
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1px; background: var(--line); }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.grid-3 article { background: var(--white); padding: 2rem; }
.card { background: var(--white); }
.card .media { aspect-ratio: 16/9; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .pad { padding: 1.5rem; }
h2.upper { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; margin-top: .6rem; }

.split { display: grid; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .split { grid-template-columns: 18rem 1fr; } }
.split h3 { font-size: 1.2rem; text-transform: uppercase; }

.site-footer { background: var(--navy); color: var(--navy-fg); }
.foot-grid { display: grid; gap: 2rem; padding: 3.5rem 0; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-copy { font-size: .75rem; opacity: .5; border-top: 1px solid rgba(238,244,246,.1); padding: 1rem 0; }

.page { padding: 3rem 0 4rem; background: var(--white); color: var(--ink); }
.rotator { background: var(--white); }
.rotator-frame { position: relative; }
.rotator-frame img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.rotator-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.25rem; height: 2.25rem; border: 0; background: rgba(11,48,64,.8); color: #fff; cursor: pointer;
}
.rotator-btn.prev { left: .5rem; }
.rotator-btn.next { right: .5rem; }
.rotator-count {
  position: absolute; right: .5rem; bottom: .5rem;
  background: rgba(11,48,64,.85); color: #fff; font-size: .75rem; padding: .15rem .45rem;
}
.rotator-cap { padding: 1.25rem; }
.rotator-dots { display: flex; gap: .35rem; margin-top: 1rem; }
.rotator-dots button { flex: 1; height: .4rem; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.rotator-dots button.on { background: var(--teal); }

.menu-toggle { display: none; background: none; border: 1px solid rgba(238,244,246,.4); color: inherit; width: 2.75rem; height: 2.75rem; }
@media (max-width: 800px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; right: 1rem; top: 4rem; background: var(--navy); padding: 1rem; min-width: 12rem; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
}

input, textarea {
  width: 100%; height: 2.75rem; border: 1px solid var(--line); background: var(--white);
  color: var(--ink); padding: 0 .75rem; font: inherit; border-radius: 0;
}
textarea { height: auto; min-height: 8rem; padding: .75rem; }
label { display: block; font-size: .9rem; margin-bottom: .35rem; }
.esgs-hp { position: absolute; left: -10000px; height: 0; overflow: hidden; }
.esgs-human input { max-width: 6rem; margin-top: .35rem; }
.notice { padding: 1rem; background: var(--paper); margin: 1rem 0; }
.drop { border: 1px dashed var(--line); background: var(--paper); padding: 2rem; text-align: center; }
