/*
Theme Name: Earth-Strata
Theme URI: https://earth-strata.com
Author: Earth-Strata Geotechnical Services
Description: Custom theme for Earth-Strata Geotechnical Services — geotechnical, geologic, and materials testing consultants in Temecula, CA.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: earth-strata
*/

:root {
  --bg: #f3efe6;
  --fg: #1a1714;
  --surface: #e7e0d2;
  --muted: #6a6358;
  --primary: #8b4a32;
  --primary-fg: #f7f1e8;
  --border: #d4cbb8;
  --hero: #1c1916;
  --hero-fg: #f3efe6;
  --font-display: "Newsreader", "Times New Roman", serif;
  --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; font-weight: 500; }
img { max-width: 100%; display: block; }
button, .btn { cursor: pointer; font-family: inherit; }

.wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }

header.site-header {
  position: relative;
  z-index: 50;
  width: 100%;
  color: var(--fg);
  background: var(--bg);
}
body.home header.site-header,
body.front-page header.site-header {
  margin-bottom: -4.5rem;
  color: #f3efe6;
  background: linear-gradient(to bottom, rgba(28, 25, 22, 0.62), rgba(28, 25, 22, 0));
}
body.home header.site-header .brand,
body.home header.site-header .brand small,
body.home header.site-header .nav a,
body.front-page header.site-header .brand,
body.front-page header.site-header .brand small,
body.front-page header.site-header .nav a {
  color: #f3efe6;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: inherit; }
.brand small {
  display: block; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.65rem; opacity: 0.75;
}
.nav { display: flex; gap: 1.75rem; font-size: 0.9rem; }
.nav a { color: inherit; }
.nav a:hover { opacity: 0.75; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.75rem; padding: 0 1.25rem; border-radius: 0.375rem;
  font-size: 0.9rem; font-weight: 500; border: 0;
}
.btn-primary,
.header-cta {
  background: #8b4a32;
  color: #f7f1e8;
}
.btn-hero { background: #f3efe6; color: #1c1916; }
.btn-outline { background: transparent; border: 1px solid var(--border); }
.btn-hero-outline { background: transparent; border: 1px solid rgba(243, 239, 230, 0.4); color: #f3efe6; }

.hero {
  position: relative; min-height: 88vh; color: var(--hero-fg); background: var(--hero);
  display: flex; align-items: flex-end;
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .shade { position: absolute; inset: 0; background: rgba(28, 25, 22, 0.55); }
.hero-copy { position: relative; padding: 7rem 0 4rem; }
.kicker { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.75rem; color: var(--muted); }
.hero .kicker { color: rgba(243, 239, 230, 0.75); }
.hero h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); letter-spacing: -0.03em; margin: 1rem 0 0; line-height: 1.08; max-width: 18ch; }
.hero p.lead { max-width: 36rem; font-size: 1.1rem; opacity: 0.85; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.section { padding: 4rem 0; }
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card { overflow: hidden; border-radius: 0.75rem; background: var(--surface); }
.card .media { aspect-ratio: 16/10; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .pad { padding: 1.5rem; }
.band { background: var(--surface); border-block: 1px solid var(--border); }
.check { list-style: none; padding: 0; }
.check li { display: flex; gap: 0.75rem; margin: 0.75rem 0; }
.cta-dark { background: var(--hero); color: var(--hero-fg); border-radius: 0.75rem; padding: 3rem 1.5rem; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 2rem; }
.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: 0.75rem; color: var(--muted); border-top: 1px solid var(--border); padding: 1rem 0; }

.page { padding-top: 6rem; }
form .row { display: grid; gap: 1rem; }
@media (min-width: 640px) { form .row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.35rem; }
input, textarea, select {
  width: 100%; height: 2.75rem; border: 1px solid var(--border); border-radius: 0.375rem;
  background: var(--bg); color: var(--fg); padding: 0 0.75rem; font: inherit;
}
textarea { height: auto; min-height: 8rem; padding: 0.75rem; }
.drop {
  border: 1px dashed var(--border); background: var(--surface); border-radius: 0.75rem;
  padding: 2rem; text-align: center;
}
.notice { padding: 1rem; border-radius: 0.5rem; background: var(--surface); margin: 1rem 0; }
.menu-toggle { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 0.375rem; 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: 4.5rem;
    background: #1c1916; color: #f3efe6; padding: 1rem; border-radius: 0.75rem;
  }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
}
