/* Jooblay Drupal theme — Oakmore-inspired layout
   Base background: Benjamin Moore Hale Navy HC-154 ≈ #434B56
   Companion: warm white / stone for contrast panels (BM White Dove–adjacent)
   Screen hex is an approximation; physical paint may differ. */

:root {
  --hale-navy: #434B56;       /* BM HC-154 Hale Navy */
  --hale-deep: #2F353C;       /* darker navy for header/footer depth */
  --hale-mid: #53606C;        /* lifted navy for cards on base */
  --hale-soft: #6A7682;       /* muted on-navy text */
  --warm-white: #F7F4EF;      /* Oakmore-like cream for type & alt bands */
  --stone: #E8E1D6;
  --taupe: #A49789;
  --ink-on-light: #1d1d1b;
  --muted-on-light: #6b6258;
  --line-on-navy: rgba(247, 244, 239, 0.14);
  --line-on-light: #ddd4c7;
  --max: 1140px;
  --space: clamp(3rem, 6vw, 5.5rem);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--warm-white);
  color: var(--hale-navy);
  text-decoration: none;
}
.skip-link:focus { left: 0; }
main:focus { outline: none; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--warm-white);
  background: var(--hale-navy); /* BASE: Hale Navy */
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

.jl-page { min-height: 100vh; display: flex; flex-direction: column; }
.jl-main { flex: 1; padding: 0; max-width: none; margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--warm-white);
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--stone); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--warm-white); }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--taupe);
  margin: 0 0 1rem;
}

.lede, .hero-subhead {
  font-size: 1.15rem;
  color: rgba(247, 244, 239, 0.78);
  max-width: 46ch;
  font-weight: 400;
}

/* Buttons — Oakmore style, contrast on navy */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--warm-white);
  color: var(--hale-navy);
  border-color: var(--warm-white);
}
.btn-primary:hover {
  background: var(--stone);
  border-color: var(--stone);
  color: var(--hale-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--warm-white);
  border-color: var(--taupe);
}
.btn-ghost:hover {
  background: rgba(247, 244, 239, 0.08);
  border-color: var(--warm-white);
}

/* Header — sticky, translucent Hale Navy (Oakmore sticky header pattern) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(67, 75, 86, 0.94); /* Hale Navy */
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-on-navy);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  color: var(--warm-white);
  text-transform: uppercase;
}
.wordmark-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
  background: var(--hale-deep);
}
.wordmark-text { letter-spacing: 0.16em; }
.wordmark:hover { text-decoration: none; color: var(--stone); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  font-size: 0.95rem;
  color: rgba(247, 244, 239, 0.9);
  font-weight: 500;
}
.site-nav a:hover { color: var(--warm-white); text-decoration: none; }
.site-nav .nav-cta {
  background: var(--warm-white);
  color: var(--hale-navy);
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
}
.site-nav .nav-cta:hover {
  background: var(--stone);
  text-decoration: none;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--warm-white);
}

.region-header-slot {
  padding-bottom: 0.5rem;
  font-size: 0.85rem;
}
.region-header-slot .site-logo img { max-height: 40px; width: auto; }
.region-header-slot .site-name,
.region-header-slot .site-slogan,
.region-header-slot .jl-brand { display: none; } /* wordmark in template replaces branding clutter */

/* Hero */
.hero {
  padding: calc(var(--space) + 1rem) 0 var(--space);
  border-bottom: 1px solid var(--line-on-navy);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

/* Sections */
.section { padding: var(--space) 0; }
.section-alt {
  background: var(--hale-deep);
  border-top: 1px solid var(--line-on-navy);
  border-bottom: 1px solid var(--line-on-navy);
}
.section-head { margin-bottom: 2rem; max-width: 40rem; }

/* Pills — what we buy */
.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.pill-list li {
  border: 1px solid var(--line-on-navy);
  background: rgba(247, 244, 239, 0.04);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--warm-white);
}

/* Process steps */
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.step {
  border-top: 1px solid var(--line-on-navy);
  padding-top: 1.25rem;
}
.step-num {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--taupe);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p {
  font-size: 0.95rem;
  color: rgba(247, 244, 239, 0.72);
  margin: 0;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.feature {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line-on-navy);
  background: rgba(247, 244, 239, 0.03);
}
.feature h3 { font-size: 1.2rem; }
.feature p {
  margin: 0;
  color: rgba(247, 244, 239, 0.72);
  font-size: 0.98rem;
}

/* Project card */
.project-card {
  padding: 0;
  border: 1px solid var(--line-on-navy);
  background: linear-gradient(160deg, var(--hale-mid), var(--hale-deep));
  max-width: 40rem;
  overflow: hidden;
}
.project-media {
  margin: 0;
  line-height: 0;
  background: rgba(0,0,0,0.25);
  position: relative;
}
.project-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hale-navy);
  background: var(--warm-white);
  border: 1px solid rgba(15, 35, 55, 0.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.project-media img {
  display: block;
  width: 100%;
  height: auto;
}
.project-body {
  padding: 1.75rem 1.5rem;
}
.project-card h3 { margin-bottom: 0.5rem; }
.project-card p:last-child { margin: 0; color: rgba(247, 244, 239, 0.78); }

/* CTA band — cream panel like Oakmore contrast */
.cta-band {
  background: var(--warm-white);
  color: var(--ink-on-light);
  border-top: 0;
}
.cta-band h2,
.cta-band .eyebrow { color: var(--hale-navy); }
.cta-band .eyebrow { color: var(--muted-on-light); }
.cta-band p { color: var(--muted-on-light); max-width: 42ch; }
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-band .btn-primary {
  background: var(--hale-navy);
  color: var(--warm-white);
  border-color: var(--hale-navy);
}
.cta-band .btn-primary:hover {
  background: var(--hale-deep);
  border-color: var(--hale-deep);
  color: var(--warm-white);
}

/* Drupal content region */
.jl-drupal-content {
  padding: 2rem 0 3rem;
}
.jl-drupal-content.is-front-content {
  /* Keep admin tabs / messages usable without dominating the firm homepage */
  padding-top: 1rem;
}
.jl-drupal-content .tabs {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.jl-drupal-content .tabs a { color: var(--stone); }

/* Fields / tables on navy */
.field { margin: 0 0 0.85rem; }
.field__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.2rem;
}
.field__item { font-size: 1.02rem; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--hale-deep);
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}
th, td {
  border: 1px solid var(--line-on-navy);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--hale-deep);
  color: var(--warm-white);
  font-weight: 600;
}
tr:nth-child(even) td { background: rgba(247, 244, 239, 0.04); }

input, select, textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line-on-navy);
  background: var(--hale-deep);
  color: var(--warm-white);
  font-size: 1rem;
}
label { font-weight: 600; display: block; margin: 0.6rem 0 0.25rem; }
.button, .form-submit, input[type="submit"] {
  background: var(--warm-white);
  color: var(--hale-navy);
  border: 0;
  padding: 0.7rem 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-top: 0.75rem;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--hale-deep);
  border-top: 1px solid var(--line-on-navy);
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
  color: rgba(247, 244, 239, 0.72);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-legal-name {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-white);
  margin-bottom: 0.75rem;
}
.footer-base { border-top: 1px solid var(--line-on-navy); padding-top: 1.25rem; }
.footer-legal { font-size: 0.78rem; opacity: 0.75; max-width: 70ch; margin: 0.5rem 0 0; }

/* Legacy class hooks from older theme */
.jl-header { display: contents; }
.jl-footer p { margin: 0; }

@media (max-width: 900px) {
  .step-list { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-toggle-label { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--hale-deep);
    border-bottom: 1px solid var(--line-on-navy);
    padding: 0.5rem 1.5rem 1rem;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 0.75rem 0; width: 100%; }
  .step-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
}


.wordmark-logo {
  width: 40px;
  height: 40px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}
.region-header-slot .block-system-branding-block,
.region-header-slot .site-logo,
.region-header-slot .site-name,
.region-header-slot .site-slogan {
  display: none !important;
}


/* Vertically integrated equipment grid */
.lead-copy {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  color: var(--stone);
  font-size: 1.05rem;
  line-height: 1.7;
}
.equip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}
@media (max-width: 720px) {
  .equip-grid { grid-template-columns: 1fr; }
}
.equip-card {
  margin: 0;
  background: var(--hale-deep);
  border: 1px solid var(--line-on-navy);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.equip-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 1rem 1rem 0.25rem;
}
.equip-card img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
}
.equip-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.equip-card figcaption {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.equip-card strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--warm-white);
}
.equip-card span {
  font-size: 0.92rem;
  color: var(--taupe);
  line-height: 1.5;
}
