/* ===================================================================
   Capital City EMCO MGT — shared brand stylesheet
   Palette pulled from the provided logo:
     --capitol-blue : #2E7FB8  (dome)
     --arch-red     : #D32E3F  (windows / McDonald's arches)
     --gold         : #F0B429  (dome base arc / golden arches)
     --ink          : #2C3E50  (wordmark)
     --paper        : #FAF9F6  (page background)
     --slate        : #5B6B7A  (secondary text)
   =================================================================== */

:root {
  --capitol-blue: #2E7FB8;
  --arch-red: #D32E3F;
  --gold: #F0B429;
  --ink: #26333F;
  --paper: #FAF9F6;
  --slate: #5B6B7A;
  --line: #E4DFD4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(38, 51, 63, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--arch-red);
  color: #fff;
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.brand-mark img {
  height: 32px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 2px 4px;
}
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a {
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
  opacity: 0.92;
}
.nav a:hover { opacity: 1; border-color: var(--gold); }
.nav a.active { border-color: var(--gold); opacity: 1; }

.hamburger { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--arch-red);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 15px; }
  .hamburger { display: block; margin-left: auto; font-size: 28px; padding: 8px; }
  .topbar-inner { position: relative; }
}

@media (max-width: 420px) {
  .brand-text { display: none; }
}

/* ---------- Logo card (used as a page badge, echoes the mockup) ---------- */
.logo-card {
  background: #fff;
  border: 2px solid var(--arch-red);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
  width: 180px;
}
.logo-card img { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #FFBC0D;
  padding: 0 0 96px;
  overflow: visible;
}
.hero-logo {
  position: absolute;
  top: -22px;
  left: 24px;
  width: 190px;
  z-index: 6;
}
.hero-photo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 2%;
  width: clamp(300px, 46vw, 620px);
  z-index: 5;
  pointer-events: none;
}
.hero-text {
  padding-top: 210px;
  max-width: 640px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  color: var(--ink);
  max-width: 12ch;
}
.hero p.lede {
  font-size: 18px;
  color: #4A3B15;
  max-width: 46ch;
  margin-bottom: 28px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--arch-red);
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .hero { padding-bottom: 40px; }
  .hero-logo { width: 130px; top: -16px; }
  .hero-text { padding-top: 165px; }
  .hero-photo {
    position: static;
    transform: none;
    display: block;
    width: min(78vw, 360px);
    margin: 8px auto 0;
    pointer-events: auto;
  }
}
@media (max-width: 480px) {
  .hero-logo { width: 110px; }
  .hero-text { padding-top: 145px; }
  .hero-photo { width: min(82vw, 280px); }
  .section { padding: 48px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--arch-red); color: #fff; }
.btn-primary:hover { background: #b8232f; }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card .dot {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 480px;
}
@media (max-width: 480px) {
  .form-card { padding: 24px; }
}
.form-card h2 { color: var(--arch-red); }
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--arch-red);
  margin: 18px 0 6px;
}
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #F0D3A0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  background: #FFFDF8;
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--capitol-blue);
  outline-offset: 1px;
}
textarea { min-height: 110px; resize: vertical; }
.form-submit {
  margin-top: 22px;
  width: 100%;
  background: var(--gold);
  color: #4A3B15;
  padding: 14px;
  border-radius: 999px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.form-submit:hover { background: #e2a71f; }
.form-note {
  font-size: 12px;
  color: var(--slate);
  margin-top: 12px;
  text-align: center;
}
.form-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  display: none;
}
.form-status.ok { color: #1C7C3E; display: block; }
.form-status.err { color: var(--arch-red); display: block; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #D9E2EA;
  padding: 40px 0;
  font-size: 14px;
}
footer a:hover { color: #fff; text-decoration: underline; }
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Misc ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; color: var(--slate); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Password gate ---------- */
#site-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gate-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: var(--shadow);
}
.gate-logo { width: 72px; margin: 0 auto 16px; }
.gate-card h2 { font-size: 18px; margin-bottom: 20px; }
#gate-password {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 14px;
}
#gate-form button {
  width: 100%;
  background: var(--arch-red);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
#gate-form button:hover { background: #b8232f; }
#gate-error {
  color: var(--arch-red);
  font-size: 13px;
  margin-top: 12px;
  display: none;
}
