/* ============================================================
   Elizabeth Murphy — Carrier Growth Site
   Palette derived from the navy / electric-blue flyers
   ============================================================ */

:root {
  --navy-900: #050d22;
  --navy-800: #0a1733;
  --navy-700: #0d1f47;
  --navy-600: #122a5e;
  --blue-500: #1c5fe0;
  --blue-400: #2f74f0;
  --blue-300: #5b93f7;
  --ink: #0b1530;
  --gray-700: #3b4458;
  --gray-500: #6b7488;
  --gray-200: #e3e8f2;
  --gray-100: #f4f6fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(8, 22, 56, 0.45);
  --maxw: 1180px;
  --head: "Oswald", "Arial Narrow", "Impact", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-500); color: #fff; box-shadow: 0 10px 24px -10px var(--blue-500); }
.btn-primary:hover { background: var(--blue-400); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn-small { padding: 9px 16px; font-size: 0.8rem; background: var(--blue-500); color: #fff; }
.btn-danger { background: #c0392b; }

.hl { color: var(--blue-500); }
.hl-light { color: var(--blue-300); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; margin-right: auto; }
.brand-name { font-family: var(--head); font-weight: 700; color: #fff; font-size: 1.35rem; letter-spacing: 1px; }
.brand-sub { color: var(--blue-300); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #d6ddef; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--blue-500); color: #fff !important; padding: 9px 18px; border-radius: 8px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.5px; }
.nav-cta:hover { background: var(--blue-400); }
.nav-phone { display: none; color: #fff; font-family: var(--head); font-size: 1.1rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(47,116,240,0.35), transparent 60%),
    linear-gradient(155deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -120px; top: 0; bottom: 0; width: 55%;
  background: linear-gradient(110deg, transparent, rgba(28,95,224,0.18));
  transform: skewX(-12deg);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.45fr 0.55fr; gap: 40px;
  padding: 84px 22px 0;
  align-items: center;
}
/* Elizabeth standing next to the headline */
.hero-figure-wrap { align-self: end; justify-self: center; }
.hero-figure {
  display: block; width: auto; height: clamp(360px, 44vw, 560px);
  filter: drop-shadow(0 22px 36px rgba(0,0,0,0.55));
}
.kicker { font-family: var(--head); letter-spacing: 3px; color: var(--blue-300); font-size: 0.82rem; margin-bottom: 14px; }
.hero h1 {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: 0.5px;
}
.hero h1 .hl { color: var(--blue-300); }
.hero-lead { margin: 22px 0 30px; font-size: 1.18rem; max-width: 560px; color: #d7deef; }
.hero-lead strong { color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 72px; }
.stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(91,147,247,0.25);
  border-radius: var(--radius); padding: 22px 18px;
  backdrop-filter: blur(4px);
}
.stat-num { font-family: var(--head); font-weight: 700; font-size: 2.6rem; color: var(--blue-300); display: block; line-height: 1; }
.stat-label { font-size: 0.86rem; color: #c7d0e6; display: block; margin-top: 8px; }

/* ---------- Business card strip ---------- */
.cardstrip-inner { text-align: center; }
.cardstrip .section-kicker,
.cardstrip .section-title { text-align: center; }
.cardstrip .section-title { margin: 0 auto 32px; }
.business-card {
  width: 100%; max-width: 540px; margin: 0 auto;
  border-radius: 16px; box-shadow: var(--shadow);
  border: 1px solid rgba(91,147,247,0.3);
}

/* ---------- Trust bar ---------- */
.trustbar { background: var(--blue-500); color: #fff; }
.trustbar-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px; padding: 14px 22px;
  font-family: var(--head); letter-spacing: 1.5px; font-size: 0.85rem; text-transform: uppercase;
}
.trustbar .dot { opacity: 0.6; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-dark { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: #fff; }
.section-tint { background: var(--gray-100); }
.section-kicker { font-family: var(--head); letter-spacing: 3px; color: var(--blue-500); font-size: 0.82rem; margin-bottom: 12px; }
.section-kicker.light { color: var(--blue-300); }
.section-title {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.02; letter-spacing: 0.5px; max-width: 900px;
}
.section-title.light { color: #fff; }
.section-intro { max-width: 720px; margin-top: 18px; color: var(--gray-700); font-size: 1.08rem; }
.section-dark .section-intro { color: #c7d0e6; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--blue-300); }
.card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(150deg, var(--blue-500), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 18px;
}
.card h3 { font-family: var(--head); font-weight: 600; text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.5px; margin-bottom: 8px; }
.card p { color: var(--gray-700); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-photo { position: relative; max-width: 360px; }
.about-photo-frame {
  position: relative; aspect-ratio: 1/1; border-radius: 50%;
  background: linear-gradient(150deg, var(--blue-400), var(--navy-700));
  border: 6px solid rgba(91,147,247,0.35); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-medal { display: none; width: 84%; height: 84%; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35)); }
.about-photo-frame.no-photo { background: linear-gradient(150deg, #16306b, var(--navy-800)); }
.about-photo-frame.no-photo .photo-medal { display: block; }
.medal-arc { font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: 1px; }
.medal-count { font-family: var(--head); font-weight: 700; font-size: 30px; }
/* avoid duplicate award messaging while the medal placeholder is showing */
.about-photo-frame.no-photo ~ .about-badge { display: none; }
.about-badge {
  position: absolute; bottom: 6px; right: -6px;
  background: var(--blue-500); color: #fff; border-radius: 12px;
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow);
}
.badge-num { font-family: var(--head); font-weight: 700; font-size: 2rem; }
.badge-text { font-family: var(--head); font-size: 0.72rem; letter-spacing: 1px; line-height: 1.1; }
.about-copy p { margin-top: 16px; color: #cdd6ea; }
.section-dark .about-copy p { color: #cdd6ea; }
.about-copy p strong { color: #fff; }
.about-copy .btn { margin-top: 26px; }

/* ---------- Value ---------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 44px; }
.value-item { border-left: 4px solid var(--blue-500); padding: 6px 0 6px 20px; }
.value-item h4 { font-family: var(--head); font-weight: 600; text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.5px; }
.value-item p { color: var(--gray-700); margin-top: 6px; }

/* ---------- Stories ---------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.story {
  background: #fff; border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); border-top: 5px solid var(--blue-500);
}
.story blockquote { font-size: 1.05rem; color: var(--ink); font-style: italic; }
.story blockquote::before { content: "\201C"; font-family: var(--head); color: var(--blue-300); font-size: 2.4rem; line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.story figcaption { margin-top: 18px; display: flex; flex-direction: column; }
.story-name { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.story-role { color: var(--blue-500); font-size: 0.85rem; }

/* ---------- Referral / CTA ---------- */
.section-cta {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(47,116,240,0.3), transparent 60%),
    linear-gradient(155deg, var(--navy-900), var(--navy-700));
  color: #fff;
}
.referral-inner { display: grid; grid-template-columns: 1fr 0.85fr; gap: 50px; align-items: center; }
.referral-copy p { margin-top: 16px; color: #cdd6ea; }
.referral-copy strong { color: #fff; }
.referral-points { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.referral-points li { padding-left: 30px; position: relative; color: #e2e8f6; }
.referral-points li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-300); font-weight: 700; }

/* ---------- Forms ---------- */
.lead-form {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
}
.lead-form h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; margin-bottom: 18px; letter-spacing: 0.5px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--gray-200); border-radius: 9px; background: var(--gray-100);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
  box-shadow: 0 0 0 3px rgba(28,95,224,0.12);
}
.field .multi { padding: 6px; }
.field .hint { color: var(--gray-500); font-size: 0.75rem; margin-top: 5px; text-transform: none; letter-spacing: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status { margin-top: 12px; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1e8e3e; }
.form-status.err { color: #c0392b; }
.form-fineprint { margin-top: 12px; font-size: 0.75rem; color: var(--gray-500); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-copy > p { margin-top: 16px; color: var(--gray-700); }
.contact-list { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; font-weight: 600; }
.contact-list .ci {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact-list a:hover { color: var(--blue-500); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #c7d0e6; padding-top: 50px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; padding-bottom: 30px; }
.footer-brand .brand-name { color: #fff; font-size: 1.4rem; }
.footer-brand p { margin-top: 6px; font-size: 0.9rem; }
.footer-tag { color: var(--blue-300) !important; font-style: italic; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem;
}
.admin-link { background: none; border: 0; color: rgba(199,208,230,0.4); cursor: pointer; font-size: 0.8rem; }
.admin-link:hover { color: #fff; }

/* ---------- Floating call button (mobile) ---------- */
.fab-call {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--blue-500);
  color: #fff; font-size: 1.5rem; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,0.5);
}

/* ---------- Admin modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(5,13,34,0.7);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal[hidden] { display: none; }
.modal-box {
  background: #fff; border-radius: var(--radius); max-width: 900px; width: 100%;
  max-height: 86vh; overflow: auto; padding: 28px; position: relative;
}
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--gray-500); }
.modal-box h3 { font-family: var(--head); text-transform: uppercase; font-size: 1.4rem; }
.count { color: var(--blue-500); }
.modal-hint { color: var(--gray-500); font-size: 0.85rem; margin: 4px 0 16px; }
.modal-actions { display: flex; gap: 10px; margin-bottom: 18px; }
.leads-table-wrap { overflow-x: auto; }
.leads-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.leads-table th, .leads-table td { border: 1px solid var(--gray-200); padding: 8px 10px; text-align: left; vertical-align: top; }
.leads-table th { background: var(--gray-100); font-family: var(--head); text-transform: uppercase; letter-spacing: 0.5px; }
.leads-empty { color: var(--gray-500); padding: 20px 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 60px 22px 70px; }
  .about-grid, .referral-inner, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { margin: 0 auto; }
  .cards, .stories { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--navy-800); flex-direction: column; align-items: stretch;
    gap: 0; padding: 10px 22px 22px; transform: translateY(-130%);
    transition: transform 0.3s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta { text-align: center; margin-top: 10px; }
  .nav-toggle { display: flex; }
  .nav-phone { display: block; margin-left: auto; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cards, .stories, .value-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .fab-call { display: flex; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.1rem; }
  .nav-phone { font-size: 0.95rem; }
}
