/* RealEZForms — clean, professional, mobile-first */
:root {
  --navy: #1b365d;
  --navy-dark: #12243f;
  --navy-soft: #2a4a73;
  --gold: #c4a35a;
  --gold-hover: #b08d3f;
  --cream: #f6f3ed;
  --paper: #ffffff;
  --ink: #1c1c1c;
  --muted: #5c6570;
  --line: #e3ded4;
  --folder: #eef2f6;
  --shadow: 0 8px 24px rgba(18, 36, 63, 0.08);
  --radius: 12px;
  --font-sans: "Source Sans 3", "Segoe UI", Calibri, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--gold-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-dark);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 0.5rem 1rem;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.logo:hover { color: var(--navy); }
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  flex-shrink: 0;
}
.logo-word {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-ez { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  align-items: center;
}
.nav-link {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
}
.nav-link:hover,
.nav-link:focus-visible {
  background: var(--cream);
  color: var(--navy-dark);
}
.nav-link.is-active {
  background: var(--navy);
  color: #fff;
}
.nav-link.is-active:hover { color: #fff; }

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    gap: 0.25rem;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 0.75rem 0.85rem; }
}

/* Hero */
.hero {
  background:
    linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: #fff;
  padding: 3.5rem 1.25rem 4rem;
}
.hero-inner { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.75rem;
}
.hero h1, .page-hero h1 { color: inherit; }
.hero h1 { max-width: 16ch; }
.hero-lead {
  font-size: 1.2rem;
  max-width: 38rem;
  color: rgba(255,255,255,0.88);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 1.25rem 2.25rem;
}
.page-hero .section-inner { max-width: var(--max); margin: 0 auto; padding: 0; }
.page-hero h1 { margin-bottom: 0; max-width: 22ch; }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: #d4b56a; color: var(--navy-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.text-link { font-weight: 700; }

/* Sections */
.section { padding: 3rem 1.25rem; }
.section-alt { background: var(--paper); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.intro, .lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.prose { max-width: 42rem; }
.prose .lead { color: var(--ink); }

.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.steps h3 { margin: 0 0 0.35rem; }
.steps p { margin: 0; color: var(--muted); }

.category-grid {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.category-grid a {
  display: block;
  text-decoration: none;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.category-grid a:hover {
  border-color: var(--gold);
  background: #fff;
}

.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.callout {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
}
.callout a { color: var(--gold); }
.callout a:hover { color: #e8d5a3; }
.callout-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

/* Library */
.library { max-width: var(--max); margin: 0 auto; padding: 2.25rem 1.25rem 3.5rem; }
.library-header {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 800px) {
  .library-header {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.search-form input[type="search"] {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 200px;
  width: min(100%, 260px);
  background: #fff;
}
.search-form input[type="search"]:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.search-form button {
  font: inherit;
  font-weight: 700;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  cursor: pointer;
}
.search-form button:hover { background: var(--navy-dark); }
.search-clear { font-weight: 600; font-size: 0.95rem; }

.folder-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.15rem;
  margin: 0 0 1rem;
}
.folder-level-1, .folder-level-2 {
  background: var(--folder);
  margin: 0.75rem 0 0;
  box-shadow: none;
}
.folder-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}
.folder-level-1 .folder-title { font-size: 1.1rem; }
.folder-icon {
  width: 0.85rem;
  height: 0.7rem;
  background: var(--gold);
  border-radius: 0 2px 2px 2px;
  position: relative;
  flex-shrink: 0;
  top: 0.05rem;
}
.folder-icon::before {
  content: "";
  position: absolute;
  left: 0; top: -4px;
  width: 0.4rem; height: 4px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
}
.folder-count {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.file-list, .file-gallery {
  list-style: none;
  padding: 0;
  margin: 0;
}
.file-list { display: flex; flex-direction: column; gap: 0.45rem; }
.file-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  background: var(--cream);
}
.file-item:hover { background: #efebe3; }
.file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 2.4rem;
  padding: 0 0.35rem;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.file-item--pdf .file-icon { background: #9b2c2c; }
.file-item--image .file-icon { background: #2b6b4f; }
.file-item--doc .file-icon { background: #1e4d8c; }
.file-item--sheet .file-icon { background: #1f6b3a; }
.file-thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
}
.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file-name {
  font-weight: 700;
  text-decoration: none;
  color: var(--navy-dark);
}
.file-name:hover { color: var(--gold-hover); text-decoration: underline; }
.file-info {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
}
.file-orig { word-break: break-all; }
.file-action {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  color: var(--navy);
  padding: 0.45rem 0.2rem;
}
.file-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.file-gallery .file-item {
  grid-template-columns: 1fr;
  text-align: left;
  padding: 0.7rem;
}
.file-gallery .file-thumb {
  width: 100%;
  height: 140px;
}
.file-gallery .file-action { justify-self: start; }

.empty-note {
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

@media (max-width: 560px) {
  .file-item {
    grid-template-columns: auto 1fr;
  }
  .file-action {
    grid-column: 2;
    padding: 0;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.7rem;
  box-shadow: var(--shadow);
}
.contact-phone { font-size: 1.5rem; font-weight: 700; }
.contact-phone a { text-decoration: none; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 0.35rem;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #e8d5a3; }
.footer-nav { display: flex; flex-direction: column; gap: 0.35rem; align-self: start; }
.footer-legal {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

@media print {
  .site-header, .site-footer, .search-form, .nav-toggle { }
  .site-header { position: static; }
  .hero, .page-hero { background: #fff; color: #000; }
  .hero h1, .page-hero h1, .eyebrow { color: #000; }
}
