/* Tates Onsite Services — Tate's One Stop
   Navy + gold, responsive, works without JS (pop-up simply never appears). */

:root {
  --navy: #0b2240;
  --navy-deep: #071831;
  --gold: #c9a227;
  --gold-soft: #e6c95c;
  --cream: #faf6ec;
  --ink: #1d2733;
  --muted: #5a6673;
  --card-border: #d9d2bd;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

.wrap {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ---------- header ---------- */

.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--gold);
  padding: 14px 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.brand-emblem {
  width: 108px;
  height: auto;
  border-radius: 6px;
  flex: 0 0 auto;
}

.brand-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.brand-sub {
  display: block;
  color: var(--gold-soft);
  font-size: 0.92rem;
  margin-top: 2px;
}

/* ---------- hamburger menu ---------- */

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid var(--gold);
  color: #fff;
  border-radius: 8px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}

.menu-btn:hover,
.menu-btn:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-soft);
}

.menu-btn-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-btn-icon span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.menu-scrim {
  position: fixed;
  inset: 0;
  background: rgba(7, 24, 49, 0.55);
  z-index: 80;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-scrim.open {
  opacity: 1;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(330px, 88vw);
  height: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  background: var(--navy);
  color: #eef2f7;
  border-left: 4px solid var(--gold);
  box-shadow: -10px 0 34px rgba(7, 24, 49, 0.45);
  z-index: 90;
  transform: translateX(105%);
  transition: transform 0.3s ease;
  padding: 18px 20px 28px;
}

.menu-panel.open {
  transform: translateX(0);
}

.menu-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.menu-panel-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: #fff;
}

.menu-close {
  background: none;
  border: none;
  color: #cfd8e3;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.menu-close:hover,
.menu-close:focus {
  color: var(--gold-soft);
}

.menu-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.menu-list a {
  display: block;
  padding: 13px 6px;
  color: #dbe4ee;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
}

.menu-list a:hover,
.menu-list a:focus {
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: #eef2f7;
  padding: 44px 0 52px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 36px;
  align-items: center;
}

.emblem-plaque {
  background: #000;
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.emblem-plaque img {
  display: block;
  width: 100%;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  line-height: 1.12;
  color: #fff;
}

.hero-lede {
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.hero-copy p {
  margin: 0 0 12px;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 8px;
  border: 2px solid var(--gold);
  font-size: 1rem;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.btn-small {
  padding: 9px 20px;
  font-size: 0.95rem;
}

/* ---------- sections ---------- */

.section {
  padding: 52px 0 8px;
}

.section-alt {
  background: #f3ecd9;
  padding-bottom: 44px;
  margin-top: 44px;
}

.section-title {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--navy);
}

.section-lede {
  margin: 0 0 24px;
  font-size: 1.08rem;
  max-width: 48em;
}

.section-note {
  margin: 24px 0 8px;
  max-width: 48em;
  color: var(--ink);
}

.section-note a {
  color: var(--navy);
  font-weight: 600;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  background: #fff;
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  padding: 24px 22px;
  box-shadow: 0 1px 3px rgba(11, 34, 64, 0.08);
}

.panel h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  color: var(--navy);
}

.panel p {
  margin: 0 0 10px;
}

.svc-list {
  margin: 6px 0 0;
  padding-left: 20px;
}

.svc-list li {
  margin-bottom: 6px;
}

/* ---------- quiet side-notes / markers ---------- */

.section-quiet {
  padding-top: 44px;
}

.section-title-small {
  font-size: 1.35rem;
  color: var(--muted);
}

.section-lede-small {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.marker-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.marker {
  border: 1px dashed var(--card-border);
  border-radius: 10px;
  padding: 18px 18px 8px;
  background: rgba(255, 255, 255, 0.55);
}

.marker h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--navy);
}

.marker p {
  margin: 0 0 10px;
  font-size: 0.97rem;
}

.marker a {
  color: var(--navy);
  font-weight: 600;
}

.marker a:hover,
.marker a:focus {
  color: var(--gold);
}

/* ---------- contact ---------- */

.contact {
  text-align: center;
  padding-bottom: 44px;
}

.contact .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.signin-line {
  margin: 18px 0 0;
  color: var(--muted);
}

.signin-line a {
  color: var(--navy);
  font-weight: 600;
}

.signin-line a:hover,
.signin-line a:focus {
  color: var(--gold);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: #cfd8e3;
  padding: 24px 0;
  margin-top: 12px;
  text-align: center;
}

.footer-emblem {
  width: 140px;
  margin-bottom: 8px;
  border-radius: 6px;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- pop-up card (Tate Built ad) ---------- */

.popup-card {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: min(330px, calc(100vw - 36px));
  background: var(--navy);
  color: #eef2f7;
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 20px 20px 10px;
  box-shadow: 0 10px 34px rgba(7, 24, 49, 0.45);
}

.popup-card p {
  margin: 0 0 10px;
}

.popup-kicker {
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.popup-head {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.25;
  color: #fff;
}

.popup-body {
  font-size: 0.96rem;
}

.popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: #cfd8e3;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

.popup-close:hover,
.popup-close:focus {
  color: var(--gold-soft);
}

/* ---------- portal pages / intake forms ---------- */

.portal-main {
  padding-top: 28px;
  padding-bottom: 20px;
}

.back-line a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.back-line a:hover,
.back-line a:focus {
  color: var(--gold);
}

.portal-title {
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: var(--navy);
}

.portal-lede {
  max-width: 46em;
  font-size: 1.05rem;
}

.intake-form {
  max-width: 620px;
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  padding: 26px 24px;
  box-shadow: 0 1px 3px rgba(11, 34, 64, 0.08);
}

.intake-form label {
  display: block;
  font-weight: 600;
  margin: 16px 0 6px;
  color: var(--navy);
}

.intake-form label:first-of-type {
  margin-top: 0;
}

.intake-form .req {
  color: #a03b2a;
}

.intake-form .opt {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.intake-form input[type="text"],
.intake-form input[type="email"],
.intake-form input[type="tel"],
.intake-form select,
.intake-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #b9bfae;
  border-radius: 7px;
  font: inherit;
  background: #fffdf7;
  color: var(--ink);
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.intake-form .btn {
  margin-top: 22px;
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.intake-form .btn:hover,
.intake-form .btn:focus {
  background: var(--navy-deep);
  border-color: var(--gold);
  color: var(--gold-soft);
}

.intake-form .btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin: 12px 0 0;
  color: var(--muted);
  min-height: 1.2em;
}

/* honeypot — real visitors never see or fill this */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.intake-done {
  max-width: 620px;
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  padding: 26px 24px;
}

.intake-done h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
}

.intake-done a {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- ballpark result ---------- */

.ballpark-result {
  max-width: 620px;
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  padding: 26px 24px;
  box-shadow: 0 1px 3px rgba(11, 34, 64, 0.08);
}

.ballpark-result h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
}

.ballpark-range {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.ballpark-note {
  color: var(--ink);
}

.ballpark-fineprint {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .emblem-plaque {
    max-width: 420px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }
}

@media (max-width: 760px) {
  .two-col,
  .marker-row {
    grid-template-columns: 1fr;
  }

  .portal-title {
    font-size: 1.7rem;
  }

  .section {
    padding-top: 40px;
  }
}
