/* =========================================================
   PEVA — Public Employees Virtual Appointments
   Shared stylesheet — fast-loading, responsive, no external fonts
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-navy: #324796;
  --color-navy-dark: #1e2c66;
  --color-accent: #ffe038;
  --color-accent-dark: #f0cf1a;
  --color-blue-btn: #0000ff;
  --color-red: #d81f1f;
  --color-footer: #506ca7;
  --color-text: #3a4f66;
  --color-text-muted: #5a6b80;
  --color-border: #e2e6ea;
  --max-width: 1200px;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(27, 58, 147, 0.08);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2px 0 2px 4px;
  max-width: var(--max-width);
  margin: 0;
}

.logo {
  display: block;
  margin-right: auto;
}
.logo img {
  height: 140px;
  width: auto;
  display: block;
}
@media (max-width: 900px) {
  .logo img { height: 100px; }
}
@media (max-width: 480px) {
  .logo img { height: 70px; }
}

/* No visible menu trigger at any size, matching real site's desktop behavior */
.nav-toggle { display: none !important; }

.nav-toggle {
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  color: var(--color-navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
}
.nav-toggle .bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--color-navy);
  border-radius: 2px;
}

/* Off-canvas drawer, matches the live site: logo + "Menu" button only,
   no horizontal nav bar at any screen size */
.main-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  transition: right 0.25s ease;
  z-index: 200;
  overflow-y: auto;
  padding: 70px 0 20px;
}
.main-nav.open { right: 0; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 150;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

.nav-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-navy);
  padding: 6px 10px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  padding: 14px 24px;
  display: block;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-bg-alt);
}

.main-nav a.btn-cta {
  color: var(--color-blue-btn);
  background: var(--color-accent);
  border-bottom: none;
  margin: 12px 24px 0;
  border-radius: 500px;
  border: 2.4px solid var(--color-blue-btn);
  font-weight: 600;
  text-align: center;
  width: calc(100% - 48px);
}
.main-nav a.btn-cta:hover { background: var(--color-accent-dark); }

/* ---------- Hero / Sections ---------- */
.hero {
  background-image: url("images/hero.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  aspect-ratio: 1920 / 837;
  display: flex;
  align-items: center;
  padding: 0;
  text-align: left;
}

/* Homepage only: lock the whole page to exactly one screen, no scrollbar ever */
body.no-scroll {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.no-scroll .site-header { flex: 0 0 auto; }
body.no-scroll main { flex: 1 1 auto; min-height: 0; overflow: hidden; }
body.no-scroll .hero {
  height: 100%;
  aspect-ratio: auto;
  background-size: auto 130%;
  background-position: right center;
}
body.no-scroll .site-footer { flex: 0 0 auto; }

/* Phones / short or narrow screens: no-scroll trick isn't realistic —
   revert to normal scrollable flow with a natural hero image */
@media (max-width: 700px), (max-height: 480px) {
  body.no-scroll {
    height: auto;
    overflow: visible;
    display: block;
  }
  body.no-scroll main { overflow: visible; }
  body.no-scroll .hero {
    height: auto;
    aspect-ratio: auto;
    background-size: cover;
    background-position: center;
    min-height: 60vh;
  }
}

.hero .container { max-width: 100%; }
.hero .hero-text { max-width: 900px; }

u {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 6.5vh, 3.6rem);
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 1.6vh;
  line-height: 1.15;
}

.hero p {
  font-size: clamp(1rem, 3vh, 1.5rem);
  color: var(--color-navy);
  max-width: 780px;
  margin: 0 0 1.1vh;
  line-height: 1.4;
}

section {
  padding: 44px 0;
}

section.alt {
  background: var(--color-bg);
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--color-navy);
  text-align: left;
  margin: 0 0 24px;
}

h3 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-size: 1.15rem;
  font-weight: 700;
}

.lede {
  max-width: 900px;
  margin: 0 auto 14px;
  text-align: left;
  color: var(--color-text);
}

em, .em-underline { text-decoration: underline; font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  width: auto;
  text-align: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: clamp(1rem, 3vh, 1.5rem);
  cursor: pointer;
  border: 3px solid var(--color-blue-btn);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-blue-btn);
}
.btn-primary:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.btn-outline {
  background: var(--color-accent);
  color: var(--color-blue-btn);
}
.btn-outline:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.btn-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 0.8vh;
  margin-top: 1vh;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img { width: 100%; }
.card-body { padding: 16px; }

/* ---------- Pricing box ---------- */
.pricing-box {
  max-width: 900px;
  margin: 0 auto;
  background: transparent;
  padding: 0;
}
.legacy-serif .pricing-box {
  max-width: none;
  margin: 0;
}
.pricing-box p { color: var(--color-text); }
.price-highlight {
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: underline;
}

.heading-red {
  color: var(--color-red);
  font-weight: 700;
  text-decoration: underline;
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}

/* ---------- Legacy Elementor text-editor sections (services page) ----------
   Verified against the live site: these Text Editor widgets render in
   Times New Roman, not the sans-serif used on the homepage hero. */
.legacy-serif h2 {
  font-family: var(--font-serif);
  color: var(--color-text);
  font-weight: 700;
  text-decoration: underline;
  font-size: clamp(1.3rem, 2.6vw, 1.625rem);
  line-height: 1.65;
  text-align: left;
  margin: 0 0 14px;
}

.legacy-serif .container {
  max-width: 1140px;
  padding: 0;
}

.legacy-serif .grid.testimonial-grid {
  column-gap: 20px;
  row-gap: 0;
}

.legacy-serif p,
.legacy-serif .lede,
.legacy-serif .pricing-box p {
  font-family: var(--font-serif);
  color: var(--color-text);
  font-size: clamp(1rem, 1.8vw, 1.375rem);
  line-height: 1.65;
}

.legacy-serif .lede {
  max-width: none;
  margin: 0 0 14px;
}

.legacy-serif .price-highlight {
  font-family: var(--font-serif);
}

.legacy-serif .testimonial-heading {
  font-family: var(--font-serif);
  color: #ff0000;
  font-weight: 700;
  text-decoration: underline;
  text-align: center;
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  line-height: 1.65;
  margin: 0 0 24px;
}

/* ---------- Forms ---------- */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .form-row.two-col { grid-template-columns: 1fr 1fr; }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--color-navy);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
}

textarea { min-height: 120px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 154, 61, 0.2);
}

.agreement-text {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  line-height: 1.6;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
}
.checkbox-row input { width: auto; margin-top: 4px; }

/* ---------- Testimonials ---------- */
.testimonial-grid img {
  border-radius: 0;
  box-shadow: none;
}

/* ---------- Accordion (policy pages) ---------- */
.accordion {
  border-top: 1px solid var(--color-border);
}
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}
.accordion-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-navy);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::marker { content: ""; }
.accordion-item summary .arrow {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.accordion-item summary .arrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--color-navy);
  border-bottom: 2px solid var(--color-navy);
  transform: rotate(45deg);
  margin-top: -3px;
}
.accordion-item[open] summary .arrow {
  transform: rotate(180deg);
  background: var(--color-accent);
}
.accordion-item .accordion-body {
  padding: 0 4px 20px;
  color: var(--color-text);
  line-height: 1.65;
}
.accordion-item .accordion-body p { margin: 0 0 12px; }
.accordion-item .accordion-body p:last-child { margin-bottom: 0; }
.accordion-item .accordion-body a { color: var(--color-navy); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-footer);
  color: #ffffff;
  padding: 10px 24px;
  text-align: right;
  font-size: 0.8rem;
  margin-top: 0;
  font-family: var(--font-body);
}
.site-footer a { color: #ffffff; text-decoration: underline; }
.site-footer p { margin: 4px 0; }
.site-footer .container { max-width: none; margin: 0; padding: 0; }

@media (max-width: 480px) {
  .main-nav { width: 85vw; right: -85vw; }
}

/* ---------- Breakpoint tuning ---------- */
/* Phones */
@media (max-width: 480px) {
  .hero { padding: 36px 0 28px; }
  section { padding: 32px 0; }
  .pricing-box, .form-wrap { padding: 18px; }
}

/* 13"-15" laptops (~1280-1440 logical px) */
@media (min-width: 1280px) and (max-width: 1440px) {
  .container { max-width: 1180px; }
}

/* Large / external monitors */
@media (min-width: 1600px) {
  :root { --max-width: 1320px; }
  .hero h1 { font-size: 2.7rem; }
}
