/* ============ Base / reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0b2545;   /* primary corporate navy */
  --navy-deep:  #061a33;
  --accent:     #1d4e89;   /* professional blue accent */
  --accent-dk:  #163d6e;
  --ink:        #1a2533;   /* body text */
  --muted:      #5a6b7b;
  --line:       #d8dee6;
  --bg-light:   #f4f6f9;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
}

a { color: inherit; }

/* ============ Top bar (white) ============ */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
}
.topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 38px; width: auto; }
.topbar__cta {
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-size: .9rem;
  padding: 9px 18px;
  border-radius: 6px;
  transition: background .2s ease;
}
.topbar__cta:hover { background: var(--accent-dk); }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(6,26,51,.90), rgba(6,26,51,.55)), url('city-background.jpg') center/cover no-repeat;
  color: #fff;
}
.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  display: grid;
  grid-template-columns: 2fr 1fr;   /* ~66% / 34% */
  gap: 48px;
  align-items: start;
}

.hero__content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__content p {
  font-size: 1.1rem;
  color: #d7e0ec;
  max-width: 60ch;
}
.hero__content p strong { color: #fff; }

/* ============ Accordion ============ */
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.accordion__panel p {
  padding-top: 16px;
}
.accordion__toggle {
  margin-top: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.45);   /* "hardly visible" */
  padding: 6px;
  display: inline-flex;
  transition: color .2s ease, transform .3s ease;
}
.accordion__toggle:hover { color: rgba(255,255,255,.8); }
.accordion__toggle svg { width: 26px; height: 26px; transition: transform .3s ease; }
.accordion__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ============ Form card ============ */
.lead-form {
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.lead-form__title {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}
.step[hidden] { display: none; }
.btn-back {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.btn-back:hover { color: var(--accent); }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29,78,137,.15);
}
/* Honeypot anti-spam field (hidden from real users) */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.btn-submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease;
}
.btn-submit:hover { background: var(--accent-dk); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.form-msg { margin-top: 14px; font-size: .95rem; font-weight: 600; }
.form-msg.error   { color: #b3261e; }
.form-msg.success { color: #1a7f37; }

/* ============ Content sections ============ */
.section { padding: 72px 24px; }
.section__inner { max-width: 1100px; margin: 0 auto; }
.section--light { background: var(--bg-light); }
.section--navy  { background: var(--navy-deep); color: #fff; }
/* Subtle texture, used on ONE dark section only (the final CTA) */
.section--pattern {
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(700px 340px at 50% -10%, rgba(45,108,179,.35), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 16px);
}
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section--navy h2 { color: #fff; }
.section__lead { font-size: 1.12rem; color: var(--muted); max-width: 68ch; margin-bottom: 14px; }
.section__lead--wide { max-width: none; }
.section--navy .section__lead { color: #c3d0e0; }
.section p { margin-bottom: 14px; }
.section p:last-child { margin-bottom: 0; }

/* Results grid */
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 30px 0; }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,.07); }
.result-card img { width: 100%; display: block; }
.result-card p { padding: 16px 18px; margin: 0; font-weight: 700; color: var(--navy); border-top: 1px solid var(--line); }

/* Service cards */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.service-card { background: #fff; border-radius: 14px; padding: 28px 24px; box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.service-card .icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(29,78,137,.10); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.service-card p { margin: 0; color: var(--muted); }

/* Full-width AI card with photo */
.service-card--wide { grid-column: 1 / -1; background: linear-gradient(120deg, var(--accent), var(--accent-dk)); color: #fff; position: relative; overflow: hidden; }
.service-card--wide h3 { color: #fff; font-size: 1.3rem; }
.service-card--wide p { color: rgba(255,255,255,.92); }
.service-card--wide .icon { background: rgba(255,255,255,.18); color: #fff; }
.ai-photo { display: none; }

/* Two-column info cards (how we work / where we work) */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { background: #fff; border-radius: 14px; padding: 34px; box-shadow: 0 10px 28px rgba(0,0,0,.08); border-top: 4px solid var(--accent); }
.info-card .icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(29,78,137,.10); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.info-card .icon svg { width: 24px; height: 24px; }
.info-card h2 { margin-bottom: 12px; }
.info-card p:last-child { margin-bottom: 0; }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 32px; }
.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.team-card strong { display: block; color: var(--navy); }
.team-card span { font-size: .85rem; color: var(--muted); }

/* Testimonials (light background) */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 30px; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; box-shadow: 0 8px 22px rgba(0,0,0,.06); }
.testimonial .stars { color: #f5a623; letter-spacing: 3px; margin-bottom: 12px; }
.testimonial p { font-size: 1.02rem; margin-bottom: 14px; color: var(--ink); }
.testimonial cite { font-weight: 700; font-style: normal; color: var(--navy); }
.testimonial--wide { grid-column: 1 / -1; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent), var(--accent-dk)); }
.cta-band__inner { max-width: 1100px; margin: 0 auto; padding: 32px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.cta-band .btn-cta { margin-top: 0; background: #fff; color: var(--accent); white-space: nowrap; }
.cta-band .btn-cta:hover { background: #eaf0f7; }

/* Final CTA */
.cta { text-align: center; }
.cta .section__lead { margin-left: auto; margin-right: auto; }
.btn-cta { display: inline-block; margin-top: 20px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 15px 36px; border-radius: 8px; font-size: 1.05rem; transition: background .2s ease; }
.btn-cta:hover { background: var(--accent-dk); }


/* Sticky mobile/tablet CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px; box-shadow: 0 -4px 16px rgba(0,0,0,.12); transform: translateY(110%); transition: transform .3s ease; display: none; }
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta a { display: block; text-align: center; background: var(--accent); color: #fff; font-weight: 700; padding: 13px; border-radius: 8px; text-decoration: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .sticky-cta { display: block; }   /* mobile + tablet only */
}
@media (min-width: 981px) {
  /* Desktop: bring Dan's photo into the AI card, anchored to the bottom */
  .service-card--wide { padding-right: 340px; min-height: 250px; }
  .ai-photo { display: block; position: absolute; right: 24px; bottom: 0; width: 300px; height: auto; pointer-events: none; }
}
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding: 48px 20px 56px; gap: 36px; }
  .section { padding: 52px 20px; }
  .results-grid, .testimonial-grid, .info-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .topbar { padding: 12px 16px; }
  .topbar__cta { font-size: .82rem; padding: 8px 14px; }
}
