/* Logistics Group Advisors: simple consulting site. Colors from LGA's flyer (navy + steel blue). */
:root {
  --navy: #1b2a4a; --navy-2: #13203a; --steel: #3e7cb1; --steel-dark: #2f6596;
  --tint: #eef2f8; --line: #d7dfeb; --ink: #1d2433; --ink-2: #4f5a6e; --white: #fff;
  --serif: 'Source Serif 4', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--steel-dark); }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }
/* Accessibility: on the navy sections the focus ring is light blue so it stays visible (3:1+). */
.hero :focus-visible, .facts :focus-visible, .contact-inner > div :focus-visible, .site-footer :focus-visible { outline-color: #9cc3e6; }

/* Buttons. Accessibility: white text needs 4.5:1, so buttons use the darker steel (#2f6596, 6.2:1);
   the lighter steel (#3e7cb1) is only 4.45:1 with white. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: 6px; background: var(--steel-dark); color: var(--white); font-weight: 600; font-size: 16px;
  text-decoration: none; border: 2px solid var(--steel-dark); transition: background-color .15s, border-color .15s;
}
.btn:hover { background: #24527c; border-color: #24527c; color: var(--white); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn--block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #384966; font-weight: 700; font-size: 15px; line-height: 1.1; }
.brand img { height: 34px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--navy); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--navy); cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--white); border-bottom: 1px solid var(--line); padding: 4px 16px 18px; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 14px; }
}

/* Hero */
.hero {
  color: var(--white); padding: 104px 0 96px;
  background: linear-gradient(90deg, rgba(19,32,58,.94) 0%, rgba(19,32,58,.82) 50%, rgba(19,32,58,.45) 100%),
              url("../images/hero-logistics-center.jpg") 85% 48% / cover var(--navy-2);
}
@media (max-width: 760px) { .hero { padding: 64px 0 60px; background: linear-gradient(rgba(19,32,58,.88), rgba(19,32,58,.88)), url("../images/hero-logistics-center.jpg") 80% 50% / cover var(--navy-2); } }
.hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 54px); max-width: 16em; }
.hero .lede { font-size: 19px; color: #d5deec; max-width: 38em; margin-top: 20px; }
.hero .kicker { color: #9cc3e6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-dark); margin-bottom: 12px; }

/* Facts strip */
.facts { background: var(--navy); color: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid rgba(255,255,255,.14); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num { font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.1; }
.fact-label { color: #c3cee0; font-size: 15px; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact:first-child { border-left: 0; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); }
  .fact:first-child { border-top: 0; }
}

/* Sections */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
@media (max-width: 760px) { .section { padding: 60px 0; } }
.section-head { max-width: 40rem; margin-bottom: 40px; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p:not(.kicker) { color: var(--ink-2); margin-top: 14px; font-size: 18px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service { border: 1px solid var(--line); border-top: 4px solid var(--steel); border-radius: var(--radius); padding: 28px; }
.service p { color: var(--ink-2); margin-top: 10px; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } .service { padding: 22px; } }

/* Approach */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-family: var(--serif); font-weight: 700; font-size: 20px; margin-bottom: 16px;
}
.steps p { color: var(--ink-2); margin-top: 8px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.about-copy { display: flex; flex-direction: column; gap: 16px; color: var(--ink-2); font-size: 18px; }
.draft-note { font-size: 14px; color: #8a5a00; background: #fff6e0; border-radius: 6px; padding: 8px 12px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 20px; } }

/* Contact */
.contact { background: var(--navy); color: var(--white); padding: 80px 0; }
.contact h2 { color: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.contact-inner > div > p { color: #c3cee0; margin-top: 14px; font-size: 18px; max-width: 32em; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-row:hover { color: var(--steel-dark); }
.contact-row svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--steel); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-card .btn { margin-top: 14px; }
@media (max-width: 760px) { .contact { padding: 60px 0; } .contact-inner { grid-template-columns: 1fr; gap: 28px; } }

/* Footer */
.site-footer { background: var(--navy-2); color: #9fb0c9; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; }

/* Email pop-up ("Request a free spend review") */
.email-dialog { width: min(94vw, 600px); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; box-shadow: 0 30px 80px rgba(10, 20, 40, .35); color: var(--ink); }
.email-dialog::backdrop { background: rgba(13, 22, 40, .6); backdrop-filter: blur(2px); }
.email-dialog[open] { animation: dlg-in .2s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .email-dialog[open] { animation: none; } }
.email-form { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 30px 24px; }
.email-form h2 { font-size: 26px; }
.email-form .kicker { margin-bottom: -6px; }
.dialog-sub { color: var(--ink-2); font-size: 15px; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 8px; color: var(--ink-2); cursor: pointer; }
.dialog-close:hover { background: var(--tint); color: var(--navy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: var(--navy); }
.field em { font-weight: 400; font-style: normal; color: var(--ink-2); }
.field input, .field textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--white); width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--steel); outline-offset: 0; border-color: var(--steel); }
.email-preview { border: 1px solid var(--line); border-radius: 8px; background: var(--tint); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.email-meta { display: flex; gap: 10px; font-size: 14px; overflow-wrap: anywhere; }
.email-meta span { width: 58px; flex: none; color: var(--ink-2); }
.email-meta strong { color: var(--navy); font-weight: 600; }
.field--message textarea { font-size: 15px; line-height: 1.5; resize: vertical; margin-top: 4px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-actions .btn { gap: 8px; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); cursor: pointer; font-family: inherit; }
.btn--outline:hover { background: var(--tint); color: var(--navy); border-color: var(--steel); }
.dialog-note { font-size: 13px; color: var(--ink-2); }
@media (max-width: 520px) {
  .email-form { padding: 24px 16px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .dialog-actions .btn { width: 100%; }
}

/* Request form states */
.request-form { display: flex; flex-direction: column; gap: 14px; }
.request-form[hidden], .request-done[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field input[aria-invalid="true"] { border-color: #b42318; outline-color: #b42318; }
.form-error { color: #b42318; font-size: 14px; font-weight: 500; min-height: 0; }
.form-error:empty { display: none; }
.request-form .btn[disabled] { opacity: .7; cursor: progress; }
.request-done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 6px 0 2px; outline: none; }
.done-icon { width: 52px; height: 52px; border-radius: 50%; background: #e3f1e8; color: #1f7a45; display: inline-flex; align-items: center; justify-content: center; }
.demo-note { font-size: 13px; color: #8a5a00; background: #fff6e0; border-radius: 6px; padding: 8px 12px; }

/* Attach files in the request pop-up */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.field[hidden] { display: none; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 18px 14px;
  border: 2px dashed #b9c6da; border-radius: 8px; background: var(--tint); color: var(--ink-2); font-weight: 400; cursor: pointer; transition: border-color .15s, background-color .15s; }
.dropzone svg { color: var(--steel); }
.dropzone strong { color: var(--steel-dark); }
.dropzone small { font-size: 13px; }
.dropzone:hover, .dropzone.is-over { border-color: var(--steel); background: #e4ecf7; }
.file-input:focus-visible + .dropzone { outline: 3px solid var(--steel); outline-offset: 2px; }
.file-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file-list[hidden] { display: none; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-weight: 500; font-size: 14px; color: var(--navy); background: var(--white); }
.file-list li svg { color: var(--steel); flex: none; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--ink-2); font-weight: 400; white-space: nowrap; }
.file-remove { width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; font-size: 20px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.file-remove:hover { background: var(--tint); color: #b42318; }
.file-ok { color: #1f7a45; font-weight: 700; }
.file-list--done { width: 100%; }
.upload-progress[hidden] { display: none; }
.upload-progress-text { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.upload-bar { height: 8px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.upload-bar span { display: block; height: 100%; width: 0; background: var(--steel); border-radius: 99px; transition: width .08s linear; }
[data-done-files] { width: 100%; display: flex; flex-direction: column; gap: 12px; }
[data-done-files][hidden], [data-done-nofiles][hidden] { display: none; }

/* Version 3: copy Scott's email */
.copy-box { align-items: flex-start; }
.copy-box .done-icon[hidden] { display: none; }
.copy-address { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
  border: 2px solid var(--steel); border-radius: 8px; background: #f5f8fc; font-size: 18px; color: var(--navy); overflow-wrap: anywhere; }
.copy-address .btn { min-height: 36px; padding: 6px 14px; flex: none; }
.copy-include { width: 100%; background: var(--tint); border-radius: 8px; padding: 14px 16px; font-size: 15px; }
.copy-include p { color: var(--navy); margin-bottom: 8px; }
.service-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.service-checks li { position: relative; padding-left: 24px; }
.service-checks li::before { content: '✓'; position: absolute; left: 2px; top: 0; color: #1f7a45; font-weight: 700; }


/* Version 3: web mail buttons */
.webmail { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.webmail > span { margin-right: 2px; }
.webmail-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--white); color: var(--navy); font-weight: 600; text-decoration: none; }
.webmail-btn:hover { border-color: var(--steel); background: #f5f8fc; color: var(--navy); }
@media (max-width: 520px) { .webmail > span { width: 100%; } .webmail-btn { flex: 1; justify-content: center; } }
.copy-box .webmail { border-top: 0; padding-top: 0; }
.webmail-done { margin-left: auto; }
@media (max-width: 520px) { .webmail-done { margin-left: 0; width: 100%; } }

/* Savings strip (option B) */
.facts--b { padding: 40px 0 36px; text-align: center; }
.sb-line { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.2; color: #fff; }
.sb-num { color: #9cc3e6; font-size: 1.35em; white-space: nowrap; }
.sb-sub { margin-top: 10px; color: #c3cee0; font-size: 17px; }

/* Privacy notice page */
.prose { padding: 64px 0 80px; }
.prose-inner { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 44px); }
.prose-meta { color: var(--ink-2); margin: 8px 0 28px; font-size: 15px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.prose-back { margin-top: 40px !important; }
@media (max-width: 600px) { .prose { padding: 40px 0 56px; } }
.site-footer a { color: #c3d4ea; }
.site-footer a:hover { color: #fff; }

/* Upload note in the request form */
.field-note { font-size: 13px; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
