:root {
  --navy: #1f3a4d;
  --navy-dark: #152a38;
  --green: #3c8d6e;
  --green-light: #e8f3ee;
  --cream: #faf8f4;
  --text: #2b2b2b;
  --muted: #5f6b73;
  --border: #e2e6e9;
  --radius: 10px;
  --max: 1140px;
}

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

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

a { color: var(--green); }
img { max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--navy); text-decoration: none; line-height: 1.05;
}
.logo img { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700; font-size: 1.35rem; letter-spacing: .01em;
}
.logo-tag {
  font-size: .62rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--green); margin-top: 4px;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--green); }

.btn {
  display: inline-block; padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #327a5e; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.nav .btn { color: #fff; padding: 9px 18px; }
/* Thin utility bar above the header */
.topbar { background: var(--navy-dark); color: #b9c9d3; font-size: .85rem; }
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; height: 36px;
}
.topbar a { color: #d6e1e8; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-login { font-weight: 600; }
.topbar-login[aria-current="page"] { color: #7cc4a6; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: 96px 0 88px;
}
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .85rem;
  color: #9fd4bf; font-weight: 600;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; margin: 14px 0 20px; max-width: 760px; }
.hero p.lead { font-size: 1.2rem; max-width: 640px; color: #d6e1e8; }
.hero .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.trust-bar {
  margin-top: 56px; display: flex; gap: 40px; flex-wrap: wrap;
  color: #b9c9d3; font-size: .95rem;
}
.trust-bar strong { display: block; color: #fff; font-size: 1.6rem; }

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
}
.hero-grid .trust-bar { gap: 28px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  display: block; width: 100%; height: 460px; object-fit: cover;
  border: 4px solid var(--green); border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
}
.hero { position: relative; z-index: 0; overflow: hidden; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo img { height: 300px; }
}

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: 2rem; color: var(--navy); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: var(--muted); }
.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--green-light);
  color: var(--green); display: grid; place-items: center; font-size: 1.4rem;
  margin-bottom: 16px;
}

/* Services */
.service-group h3 {
  color: var(--navy); font-size: 1.15rem; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--green-light);
}
.service-group ul { list-style: none; }
.service-group li { padding: 6px 0 6px 22px; position: relative; color: var(--text); }
.service-group li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--green);
}

/* Process */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step h3 { color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--muted); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700;
}

/* Testimonials */
.testimonial blockquote { font-size: 1.05rem; color: var(--text); margin-bottom: 20px; }
.testimonial blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--green); margin-bottom: 8px; }
.testimonial .who strong { display: block; color: var(--navy); }
.testimonial .who span { color: var(--muted); font-size: .92rem; }
.stars { color: #e0a526; margin-bottom: 10px; letter-spacing: 2px; }

/* CTA */
.cta { background: var(--green); color: #fff; text-align: center; }
.cta h2 { font-size: 2rem; margin-bottom: 12px; }
.cta p { color: #e3f3ec; margin-bottom: 28px; font-size: 1.1rem; }
.cta .btn { background: #fff; color: var(--green); }

/* Contact page */
.page-hero { background: var(--navy); color: #fff; padding: 64px 0; }
.page-hero h1 { font-size: 2.4rem; margin-bottom: 8px; }
.page-hero p { color: #d6e1e8; font-size: 1.1rem; max-width: 640px; }

form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
form input, form select, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; background: #fff;
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
form textarea { min-height: 130px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.checks label { font-weight: 400; color: var(--text); display: flex; gap: 8px; align-items: center; }
.checks input { width: auto; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.contact-info dt { font-weight: 600; color: var(--navy); margin-top: 18px; }
.contact-info dd { color: var(--muted); }
.success { display: none; background: var(--green-light); color: var(--navy); padding: 16px; border-radius: 8px; margin-top: 16px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b9c9d3; padding: 56px 0 28px; font-size: .95rem; }
.site-footer .grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #b9c9d3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .logo-tag { color: #7cc4a6; }
.footer-bottom { border-top: 1px solid #2c4556; margin-top: 40px; padding-top: 20px; font-size: .85rem; }

@media (max-width: 820px) {
  .nav a:not(.btn) { display: none; }
  .topbar-email { display: none; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .row, .checks { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}


/* Client logo cards (used in the Clients page grid) */
.lq {
  flex-shrink: 0; display: grid; place-items: center; min-width: 190px; height: 72px;
  padding: 0 22px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--cream);
}
.lq img {
  height: 44px; width: auto; display: block;
  filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s;
}
.lq:hover img { filter: none; opacity: 1; }


/* "Why us" cards with a photo on top */
.photo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.photo-card .card-photo {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
}
.photo-card .icon {
  margin: -24px 0 12px 24px; position: relative;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.photo-card h3, .photo-card p { padding: 0 28px; }
.photo-card p { padding-bottom: 28px; }

/* Client portal (placeholder login page) */
.portal-section { background: var(--cream); padding: 72px 0; }
.portal-wrap {
  display: grid; grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 64px; align-items: center;
}
.portal-card { padding: 40px; box-shadow: 0 16px 40px rgba(31,58,77,.08); }
.portal-mark { width: 52px; height: 52px; margin-bottom: 16px; }
.portal-card h1 { color: var(--navy); font-size: 1.8rem; margin-bottom: 6px; }
.portal-sub { color: var(--muted); margin-bottom: 26px; }
.portal-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: -4px 0 20px; font-size: .92rem;
}
.portal-row a { text-decoration: none; }
form .portal-remember {
  display: flex; gap: 8px; align-items: center;
  font-weight: 400; color: var(--text); margin: 0;
}
form .portal-remember input { width: auto; }
.portal-btn { width: 100%; }
.portal-notice {
  display: none; margin-top: 18px; padding: 14px 16px; border-radius: 8px;
  background: var(--green-light); color: var(--navy); font-size: .95rem;
}
.portal-help { margin-top: 22px; text-align: center; color: var(--muted); font-size: .95rem; }
.portal-features h2 { color: var(--navy); font-size: 1.6rem; margin-bottom: 18px; }
.portal-features .value-list li { color: var(--text); margin-bottom: 12px; }
.portal-lock { margin-top: 20px; color: var(--muted); font-size: .95rem; }

/* Checkmark list (also used on the portal page) */
.value-list { list-style: none; }
.value-list li { padding-left: 28px; position: relative; }
.value-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

@media (max-width: 860px) {
  .portal-wrap { grid-template-columns: 1fr; gap: 40px; }
  .portal-card { padding: 28px; }
}

/* Current page in the menu */
.nav a[aria-current="page"]:not(.btn) { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); padding-bottom: 4px; }

/* Homepage preview cards that link to other pages */
a.teaser { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.teaser:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31,58,77,.12); }
.photo-card .teaser-link, .teaser-link {
  display: inline-block; font-weight: 600; color: var(--green); text-decoration: none;
}
.photo-card .teaser-link { padding: 0 28px 28px; margin-top: auto; }
a.teaser p { padding-bottom: 14px; }

/* Featured testimonial on the homepage */
.featured-quote { max-width: 780px; margin: 0 auto; text-align: center; }
.featured-quote blockquote {
  font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; line-height: 1.45;
  color: var(--navy); margin: 8px 0 18px;
}
.featured-quote figcaption { color: var(--muted); margin-bottom: 18px; }
.featured-quote figcaption strong { color: var(--navy); }

/* Static logo grid on the Clients page */
.logo-grid {
  list-style: none; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.logo-grid .lq { min-width: 0; background: #fff; }

/* About page */
.about-story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about-story h2 { color: var(--navy); font-size: 2rem; margin-bottom: 14px; }
.about-story p { color: var(--muted); font-size: 1.08rem; margin-bottom: 14px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-stats div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.about-stats div {
  background: var(--green-light); border-radius: var(--radius); padding: 22px; text-align: center;
}
.about-stats strong { display: block; font-size: 2rem; color: var(--navy); line-height: 1.1; }
.about-stats span { color: var(--muted); font-size: .92rem; }

.partners { display: grid; gap: 28px; }
.partner { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start; padding: 36px; }
.partner-photo {
  display: block; width: 200px; height: 240px; object-fit: cover; object-position: center top;
  border-radius: 14px; border-bottom: 5px solid var(--green);
  box-shadow: 0 10px 24px rgba(31,58,77,.15);
}
.partner h3 { font-size: 1.5rem; margin-bottom: 2px; }
.partner-role { color: var(--green) !important; font-weight: 600; margin-bottom: 14px; }
.partner-body > p { margin-bottom: 12px; }
.partner-facts { list-style: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.partner-facts li { padding: 4px 0; color: var(--text); font-size: .95rem; }
.partner-facts strong { color: var(--navy); }

@media (max-width: 860px) {
  .about-story { grid-template-columns: 1fr; gap: 32px; }
  .partner { grid-template-columns: 1fr; padding: 28px; gap: 22px; }
  .partner-photo { width: 160px; height: 192px; }
}

/* Heading line spacing (all screen sizes) */
h1, h2, h3 { line-height: 1.25; }
.page-hero h1 { line-height: 1.2; }

/* Phone layout fixes */
@media (max-width: 600px) {
  .container { padding: 0 20px; }

  /* Header: keep the logo on one line and the button compact */
  .site-header .container { height: 64px; }
  .logo { gap: 10px; }
  .logo img { width: 36px; height: 36px; }
  .site-header .logo-name { font-size: 1.05rem; white-space: nowrap; }
  .site-header .logo-tag { display: none; }
  .nav .btn { padding: 8px 14px; font-size: .88rem; white-space: nowrap; }

  /* Hero: less empty space, full-width buttons, even 2x2 stats */
  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: 1.85rem; margin: 10px 0 14px; }
  .hero p.lead { font-size: 1.05rem; }
  .hero .actions { flex-direction: column; gap: 10px; margin-top: 24px; }
  .hero .actions .btn { width: 100%; text-align: center; }
  .trust-bar, .hero-grid .trust-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 32px; font-size: .88rem;
  }
  .trust-bar strong { font-size: 1.3rem; }
  .hero-grid { gap: 32px; }
  .hero-photo img { height: 240px; }

  /* Inner page banners */
  .page-hero { padding: 40px 0 44px; }
  .page-hero h1 { font-size: 1.85rem; margin-bottom: 10px; }
  .page-hero p { font-size: 1rem; }

  /* Sections */
  section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2, .cta h2, .about-story h2 { font-size: 1.6rem; }
  .featured-quote blockquote { font-size: 1.2rem; }

  /* Contact form: one even gap between stacked fields */
  .row { gap: 0; }

  /* About page */
  .partner { padding: 24px; }
  .partner-photo { margin: 0 auto; }
  .about-stats div { padding: 18px 12px; }

  /* Footer: stack the columns */
  .site-footer .grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Contact form: spam trap field (hidden from people) and error message */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  display: none; background: #fdecec; color: #8a1f1f; padding: 16px;
  border-radius: 8px; margin-top: 16px;
}
.form-error a { color: #8a1f1f; font-weight: 600; }
#form-submit:disabled { opacity: .7; cursor: wait; }
