/* Vivid Event Solutions: shared styles. Fonts (Archivo, Inter) load from Google Fonts in Layout.astro. */

:root {
  --navy: #071D49;
  --navy-deep: #04122F;
  --navy-line: #1C3870;
  --cream: #EDE3D2;
  --sand: #E3D5BC;
  --rule: #D2C3A6;
  --ink-soft: #3B4664;
  --on-dark: #F7F2E8;
  --on-dark-soft: #C9D1E0;
  --nav-link: #DCE2EC;
  --accent: #FFB549;
  --eyebrow: #7A4E0C;
  --pad-x: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: var(--navy); }
a:hover { color: #4C5672; }
.page { background: var(--cream); overflow-x: hidden; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.sr-only { 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: -9999px; top: 8px; background: var(--accent); color: var(--navy); padding: 8px 14px; border-radius: 4px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 8px; }

/* Type */
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eyebrow); }
.dark .eyebrow { color: var(--accent); }
.display, .h2, .h3 { font-family: Archivo, sans-serif; margin: 0; }
.display { font-stretch: 80%; font-weight: 700; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.0; }
.h2 { font-stretch: 80%; font-weight: 700; font-size: clamp(30px, 4vw, 50px); line-height: 1.05; }
.h2-sm { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }
.h3 { font-size: 24px; line-height: 1.2; font-weight: 700; }
.lede { margin: 0; font-size: 19px; color: var(--on-dark-soft); max-width: 560px; }
.muted { margin: 0; color: var(--ink-soft); }
.dark .muted { color: var(--on-dark-soft); }
p { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 16px 28px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.2; border: 0; cursor: pointer; font-family: inherit; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #FFC46E; color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--on-dark); }
.btn-navy:hover { background: #12306B; color: var(--on-dark); }
.btn-ghost { color: var(--on-dark); font-weight: 500; padding: 16px 24px; border: 1px solid #3A5694; background: transparent; }
.btn-ghost:hover { color: var(--on-dark); border-color: var(--accent); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { background: var(--navy); border-bottom: 1px solid var(--navy-line); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.brand img { height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--nav-link); text-decoration: none; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta { margin-left: 16px; min-height: 44px; padding: 13px 22px; font-size: 15px; color: var(--navy); }
.site-nav .nav-cta:hover { color: var(--navy); }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid #3A5694; border-radius: 4px; background: transparent; cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 22px; height: 2px; background: var(--on-dark); border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -7px; }
.menu-toggle .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Sections */
.dark { background: var(--navy); color: var(--on-dark); }
.sand { background: var(--sand); }
.section { padding-top: 104px; padding-bottom: 104px; }
.section-sm { padding-top: 72px; padding-bottom: 72px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 26px; }
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split.top { align-items: flex-start; }
.split > * { min-width: 0; }
.col-wide { flex: 1.2 1 480px; }
.col { flex: 1 1 380px; }
.col-list { flex: 1.1 1 460px; }

/* Hero */
.hero .wrap { padding-top: 88px; padding-bottom: 104px; }
.hero-img { width: 100%; height: 480px; object-fit: cover; border-radius: 6px; }
.figure { margin: 0; }

/* Ruled lists */
.rule-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; align-content: start; }
.rule-grid li { border-top: 1px solid var(--rule); padding: 18px 0; font-family: Archivo, sans-serif; font-weight: 600; font-size: 21px; line-height: 1.3; }
.numbered { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.numbered li { display: flex; gap: 24px; padding: 28px 0; border-top: 1px solid var(--rule); }
.numbered li:last-child { border-bottom: 1px solid var(--rule); }
.num { font-family: Archivo, sans-serif; font-weight: 800; font-size: 20px; color: var(--eyebrow); min-width: 32px; }
.dark .num { color: var(--accent); }
.numbered .body { display: flex; flex-direction: column; gap: 8px; }

/* Card grid (services, events) */
.card-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 40px; }
.card-grid li { border-top: 1px solid var(--rule); padding: 28px 0 36px; display: flex; flex-direction: column; gap: 10px; }
.card-grid .num { font-size: 16px; }
.card-grid li.has-img { padding-top: 24px; }
.card-img { width: 100%; aspect-ratio: 614 / 440; height: auto; object-fit: cover; border-radius: 6px; margin-bottom: 8px; background: var(--sand); }

/* Dash lists */
.dash-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.dash-list li { padding: 12px 0; border-top: 1px solid var(--rule); }
.dash-list li:last-child { border-bottom: 1px solid var(--rule); }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; }
.trio > div { display: flex; flex-direction: column; gap: 18px; }

/* Statement */
.statement .wrap { max-width: 1080px; padding-top: 120px; padding-bottom: 120px; text-align: center; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.statement-text { font-family: Archivo, sans-serif; font-stretch: 85%; font-weight: 600; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.2; }

/* CTA band */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band .copy { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.form-card { background: #F7F2E8; border-radius: 6px; padding: 40px; box-shadow: 0 1px 0 var(--rule); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.field .req { color: #A3650C; }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--navy); background: #fff; border: 1px solid #C9B898; border-radius: 4px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid var(--accent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field .help { font-size: 14px; color: var(--ink-soft); }
.field .err { font-size: 14px; color: #B3261E; }
.form-actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 4px; }
.form-error { color: #B3261E; font-size: 15px; }
.form-status { color: var(--ink-soft); }
.thanks { display: flex; flex-direction: column; gap: 12px; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #A9B4CB; font-size: 15px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand img { height: 60px; width: auto; align-self: flex-start; }
.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-nav div { display: flex; flex-direction: column; gap: 10px; }
.footer-nav .label { color: var(--on-dark); font-weight: 600; }
.footer-nav a { color: #A9B4CB; text-decoration: none; }
.footer-nav a:hover { color: var(--on-dark); }
.footer-nav a.accent { color: var(--accent); font-weight: 600; }
.footer-bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid #13295A; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-bottom a { color: #A9B4CB; }

/* Tablet */
@media (max-width: 1024px) {
  .site-nav { gap: 22px; }
  .site-nav .nav-cta { margin-left: 4px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Mobile */
@media (max-width: 860px) {
  :root { --pad-x: 20px; }
  .brand img { height: 44px; }
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-bottom: 1px solid var(--navy-line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad-x) 24px; margin: 0; font-size: 18px; box-shadow: 0 12px 24px rgba(4, 18, 47, .35); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--navy-line); }
  .site-nav .nav-cta { margin: 20px 0 0; border-bottom: 0; min-height: 52px; font-size: 17px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-sm { padding-top: 56px; padding-bottom: 56px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; }
  .split { gap: 40px; }
  .col-wide, .col, .col-list { flex-basis: 100%; }
  .hero-img { height: 300px; }
  .side-img { height: 260px !important; }
  .lede { font-size: 17px; }
  .statement .wrap { padding-top: 72px; padding-bottom: 72px; }
  .rule-grid li { font-size: 19px; padding: 14px 0; }
  .numbered li { gap: 16px; padding: 22px 0; }
  .h3 { font-size: 21px; }
  .card-grid { grid-template-columns: 1fr; }
  .trio { gap: 40px; }
  .btn-row .btn { flex: 1 1 100%; }
  .cta-band .btn { width: 100%; }
  .form-card { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { padding-top: 40px; }
  .footer-nav { gap: 40px; }
}
