/*
Theme Name: Walsh Tank Services
Description: A very simple theme for Walsh Tank Services. The homepage is a full-screen holding page; other pages and posts use a plain layout.
Author: Walsh Tank Services
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: walsh-tank-services
*/

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --wts-green: #00381A;
  --wts-green-light: #0A4A25;
  --wts-green-line: #3F8A5A;
  --wts-orange: #F87000;
  --wts-orange-hover: #FF8E33;
  --wts-ink: #0E2012;
  --wts-paper: #F6F8F4;
  --wts-cream: #F4F7F3;
  --wts-text-soft: #C3D4CB;
  --wts-font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --wts-font-display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  --wts-font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

html { background: var(--wts-green); }

body {
  margin: 0;
  font-family: var(--wts-font-body);
  line-height: 1.6;
  color: var(--wts-ink);
  background: var(--wts-paper);
}

/* ---------- Holding page (homepage) ---------- */

body.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  background: var(--wts-green);
  color: #EAF0EA;
}

.wts-holding {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.wts-logo { display: block; width: min(340px, 70vw); height: auto; }

.wts-kicker {
  margin: 0;
  font-family: var(--wts-font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wts-orange);
}

.wts-title {
  margin: 0;
  font-family: var(--wts-font-display);
  font-weight: 800;
  font-size: clamp(36px, 7vw, 64px);
  line-height: .94;
  text-transform: uppercase;
  color: var(--wts-cream);
  text-wrap: balance;
}

.wts-lead {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.5;
  color: var(--wts-text-soft);
}

.wts-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.wts-services li {
  border: 1.5px solid var(--wts-green-line);
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #EAF0EA;
}

.wts-alert {
  width: 100%;
  border: 2px solid var(--wts-orange);
  border-radius: 4px;
  background: var(--wts-green-light);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wts-alert h2 {
  margin: 0;
  font-family: var(--wts-font-display);
  font-weight: 700;
  font-size: clamp(24px, 4.5vw, 30px);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--wts-cream);
}

.wts-alert p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--wts-text-soft); }

.wts-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 4px;
  background: var(--wts-orange);
  color: var(--wts-ink);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.wts-call:hover { background: var(--wts-orange-hover); color: var(--wts-ink); }
.wts-call:focus-visible { outline: 3px solid var(--wts-cream); outline-offset: 3px; }

.wts-small { margin: 0; font-size: 12px; line-height: 1.5; color: #A9BDB5; }

@media (max-height: 720px) and (min-width: 600px) {
  .wts-holding { gap: 14px; }
  .wts-holding .wts-logo { width: min(260px, 70vw); }
}

/* ---------- Other pages and posts ---------- */

.wts-bar { background: var(--wts-green); padding: 14px 24px; }
.wts-bar a { display: inline-block; line-height: 0; }
.wts-bar .wts-logo { width: 150px; }

.wts-content { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.wts-content h1,
.wts-content h2 {
  font-family: var(--wts-font-display);
  text-transform: uppercase;
  color: var(--wts-green);
  line-height: 1;
}
.wts-content h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 20px; }
.wts-content h2 { font-size: 30px; margin: 32px 0 12px; }
.wts-content a { color: var(--wts-green); }
.wts-content a:hover { color: var(--wts-orange); }
.wts-content img { max-width: 100%; height: auto; }
.wts-content article + article { margin-top: 40px; padding-top: 32px; border-top: 1.5px solid #C5CFC7; }
