/* ==========================================================================
   EMS Business Solutions — shared stylesheet
   Fonts: Newsreader (headings) · Inter (body) · Plus Jakarta Sans (logo)
   ========================================================================== */

:root {
  --deep-teal: #0E3D47;
  --charcoal: #2D2D2D;
  --warm-cream: #F6F3EC;
  --teal-green: #2BA199;
  --orange: #EE7A21;
  --orange-hover: #D66B1A;
  --border-cream: #E6E1D6;
  --muted: #6B6B6B;

  /* ONE container standard, used by header, every section, and footer */
  --page-max: 1100px;
  --text-max: 720px;
  --wide-max: 1000px;
  --gutter: 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--charcoal);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  line-height: 1.18;
  color: var(--deep-teal);
  margin: 0 0 0.5em;
}

/* Tuned-down type scale (calmer than the Manus build) */
h1 { font-size: clamp(2.3rem, 4.8vw, 3.25rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

p { margin: 0 0 1rem; }
a { color: var(--teal-green); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
img { max-width: 100%; display: block; }

/* ==========================================================================
   THE container — one rule, applied everywhere, identical at every width.
   This is what keeps the logo, headings, and content all flush-aligned
   no matter how wide the browser is.
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Centered content columns (no longer left-pinned), balanced at all widths */
.text-block { max-width: var(--text-max); margin-inline: auto; text-align: center; }
.wide-block { max-width: var(--wide-max); margin-inline: auto; }
.text-block .text-link { justify-content: center; }

/* ==========================================================================
   Header / navigation — uses the SAME .container as content,
   so the logo's left edge always lines up with the page content.
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid #ececec;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}
.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;        /* ~24px, clear brand anchor */
  line-height: 1;
  color: var(--deep-teal);
  display: inline-flex; align-items: center; gap: .3em;
  white-space: nowrap;
}
.logo b { font-weight: 700; }
.logo span { font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--charcoal); font-weight: 500; font-size: .98rem;
}
.nav-links a:hover { color: var(--deep-teal); opacity: 1; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .4rem; color: var(--charcoal);
}

/* Buttons */
.btn {
  display: inline-block; padding: .75rem 1.4rem; border-radius: 9px;
  font-family: inherit; font-size: .98rem; font-weight: 600;
  cursor: pointer; transition: all .2s; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); opacity: 1; }
/* Secondary outline button for light backgrounds (teal on white) */
.btn-outline-teal { background: transparent; border-color: var(--deep-teal); color: var(--deep-teal); }
.btn-outline-teal:hover { background: var(--deep-teal); color: var(--warm-cream); opacity: 1; }

.btn-hero-outline { background: transparent; border-color: var(--warm-cream); color: var(--warm-cream); }
.btn-hero-outline:hover { background: rgba(246,243,236,.12); border-color: #fff; color: #fff; opacity: 1; }

/* ==========================================================================
   Hero — brighter image, localized scrim for legibility, bottom fade
   ========================================================================== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 35%;
  z-index: 0;
}
/* Localized left-side scrim: dark where the text is, clear over the photo */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(14,61,71,0.86) 0%,
    rgba(14,61,71,0.72) 32%,
    rgba(14,61,71,0.30) 60%,
    rgba(14,61,71,0.05) 85%
  );
}
/* Soft bottom fade dissolving the photo into the next (white) section */
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 130px; z-index: 2;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 96%);
}
.hero .container { position: relative; z-index: 3; }
.hero-content { max-width: 600px; padding-block: 3.5rem; }
.hero h1 { color: var(--warm-cream); margin-bottom: .6em; }
.hero-body { color: var(--warm-cream); font-size: 1.06rem; line-height: 1.6; margin-bottom: 1rem; opacity: .96; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-white { background: #fff; }
.section-cream { background: var(--warm-cream); }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-green); margin-bottom: .6rem;
}
.lead { font-size: 1.08rem; line-height: 1.7; }
.text-link { color: var(--orange); font-weight: 600; display: inline-flex; gap: .4rem; }
.text-link:hover { opacity: .8; }

/* Testimonials — title and cards share the same container & alignment */
.testi-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-top: 2.5rem;
}
.testi-card {
  background: #fff; border: 0.5px solid var(--border-cream);
  border-top: 3px solid var(--teal-green); border-radius: 12px;
  padding: 1.75rem; display: flex; flex-direction: column; text-align: left;
}
.testi-card .qmark {
  font-family: Georgia, serif; font-size: 3.2rem; line-height: .6;
  color: var(--teal-green); opacity: .32; margin-bottom: .5rem;
}
.testi-card .quote { font-style: italic; color: var(--charcoal); margin-bottom: 1.4rem; flex-grow: 1; }
.testi-attr { display: flex; align-items: center; gap: .75rem; }
.testi-badge {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-green); color: var(--deep-teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .78rem;
}
.testi-name { font-weight: 700; font-size: .9rem; color: var(--deep-teal); }
.testi-role { font-size: .8rem; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--deep-teal); text-align: center; }
.cta-band h2 { color: var(--warm-cream); }
.cta-band p { color: var(--warm-cream); max-width: var(--text-max); margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--deep-teal); color: var(--warm-cream); padding-block: 3.5rem 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
}
.footer-brand {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.2rem; color: var(--warm-cream); margin-bottom: .4rem;
}
.footer-brand b { font-weight: 700; }
.site-footer h4 { color: var(--warm-cream); font-family: 'Inter', sans-serif; font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer a { color: var(--warm-cream); display: block; margin-bottom: .5rem; font-size: .95rem; }
.site-footer a:hover { color: #fff; opacity: 1; }
.footer-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(246,243,236,.18); margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: .85rem; color: rgba(246,243,236,.75);
}
.btn-outline-cream { background: transparent; border-color: var(--warm-cream); color: var(--warm-cream); }
.btn-outline-cream:hover { background: rgba(246,243,236,.12); border-color: #fff; color: #fff; opacity: 1; }
.footer-badge-card { background: var(--warm-cream); border-radius: 10px; padding: 10px; display: inline-flex; }
.footer-badge-card img { width: 56px; height: auto; display: block; }
.badge-card { background: var(--warm-cream); border-radius: 12px; padding: 14px; display: inline-flex; }
.badge-card img { width: 120px; height: auto; display: block; }
.cta-tagline { color: var(--warm-cream); font-style: italic; opacity: .88; font-size: 1rem; margin-top: 1.25rem; margin-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid #ececec; padding: .5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem var(--gutter); }
  .nav-links .btn { margin: .6rem var(--gutter) 0; text-align: center; }
  .hero-content { padding-block: 3rem; }
  .hero-scrim {
    background: linear-gradient(
      100deg,
      rgba(14,61,71,0.88) 0%,
      rgba(14,61,71,0.78) 45%,
      rgba(14,61,71,0.55) 100%
    );
  }
}

/* ==========================================================================
   Shared page components (How I Work, Services, About, Start Here)
   ========================================================================== */

/* Centered section header; left-aligned readable column for long prose */
.section-head { max-width: var(--text-max); margin-inline: auto; text-align: center; margin-bottom: 2.5rem; }
.section-head h2, .section-head h3 { margin-bottom: .5rem; }
.section-head p { font-size: 1.06rem; color: var(--charcoal); margin: 0 auto; }
.prose { max-width: var(--text-max); margin-inline: auto; text-align: left; }
.prose p { font-size: 1.06rem; line-height: 1.7; }

/* Symptom list — teal-green check icons */
.symptom-list { max-width: var(--text-max); margin-inline: auto; display: flex; flex-direction: column; gap: 1.1rem; text-align: left; }
.symptom-item { display: flex; gap: .9rem; align-items: flex-start; }
.symptom-item svg { flex-shrink: 0; margin-top: 3px; color: var(--teal-green); }
.symptom-item p { margin: 0; }

/* Callout box (teal border) */
.callout {
  max-width: var(--text-max); margin: 0 auto; text-align: left;
  background: var(--warm-cream); border: 2px solid var(--deep-teal);
  border-radius: 12px; padding: 1.75rem 2rem;
}
.callout p { margin: 0; font-weight: 600; color: var(--deep-teal); line-height: 1.65; }
.callout--plain { background: #fff; }

/* Bullet list (orange markers) */
.bullet-list { max-width: var(--text-max); margin: 0 auto 2rem; text-align: left; list-style: none; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.bullet-list li { display: flex; gap: .75rem; }
.bullet-list li::before { content: "•"; color: var(--orange); font-weight: 700; flex-shrink: 0; }

/* "Gap I close" two-column */
.gap-grid { max-width: var(--wide-max); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.gap-grid .gap-art { width: 100%; height: auto; }

/* Pricing cards */
.cards-2 { max-width: var(--wide-max); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.pricing-card {
  background: #fff; border: 0.5px solid var(--border-cream); border-left: 4px solid var(--teal-green);
  border-radius: 12px; padding: 1.75rem; display: flex; flex-direction: column;
}
.pricing-card h3 { font-size: 1.25rem; margin-bottom: .9rem; }
.pricing-card .best-for { margin-top: auto; background: var(--warm-cream); border-radius: 8px; padding: .85rem 1rem; font-size: .92rem; color: var(--deep-teal); }
.pricing-card .best-for strong { font-weight: 700; }

/* Implementation lane cards */
.lane-stack { max-width: var(--text-max); margin-inline: auto; display: flex; flex-direction: column; gap: 1.25rem; }
.lane-card { background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 1.5rem 1.75rem; }
.lane-card h4 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 1.18rem; color: var(--deep-teal); margin-bottom: .6rem; }
.lane-card p { margin: 0; }

/* What Changes table */
.changes-wrap { max-width: var(--wide-max); margin-inline: auto; overflow-x: auto; }
.changes-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.changes-table th { background: var(--deep-teal); color: var(--warm-cream); text-align: left; padding: .85rem 1rem; font-weight: 600; }
.changes-table td { border: 1px solid #e6e6e6; padding: .85rem 1rem; vertical-align: top; color: var(--charcoal); }
.changes-table td:first-child { font-weight: 700; color: var(--deep-teal); white-space: nowrap; }
.changes-table tbody tr:nth-child(even) { background: #faf9f6; }

/* About intro (photo + text) */
.about-grid { max-width: 940px; margin-inline: auto; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; align-items: start; }
.about-grid img { border-radius: 12px; box-shadow: 0 10px 30px rgba(14,61,71,.12); }
.about-grid p { font-size: 1.04rem; }

/* Background (text + badge) */
.bg-grid { max-width: 940px; margin-inline: auto; display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
.bg-grid .badge-wrap { display: flex; justify-content: center; }
.bg-grid .badge-wrap img { width: 210px; height: auto; }
.label-line { font-weight: 700; color: var(--deep-teal); margin: 1.5rem 0 .3rem; }
.fine-print { font-size: .92rem; font-style: italic; color: var(--muted); margin-top: 1.5rem; }

/* FAQ accordion */
.faq { max-width: var(--text-max); margin-inline: auto; }
.faq details { border-bottom: 1px solid #e6e1d6; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; position: relative;
  font-family: 'Newsreader', serif; font-weight: 500; font-size: 1.12rem; color: var(--deep-teal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--teal-green); font-family: 'Inter', sans-serif; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 0 1.2rem; color: var(--charcoal); }
.faq .faq-body p { margin: 0; line-height: 1.7; }

/* Timeline (What happens next) */
.timeline { max-width: var(--text-max); margin-inline: auto; display: flex; flex-direction: column; gap: 1.75rem; }
.timeline-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.timeline-num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--deep-teal); color: var(--warm-cream); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.timeline-item h3 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 1.18rem; margin-bottom: .35rem; }
.timeline-item p { margin: 0; }

/* Form */
.form { max-width: 640px; margin-inline: auto; }
.form .intro { text-align: center; font-size: 1.06rem; margin-bottom: 2rem; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-weight: 600; font-size: .96rem; color: var(--deep-teal); margin-bottom: .5rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--charcoal);
  background: #fff; border: 1px solid #cfcabc; border-radius: 8px; padding: .7rem .85rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal-green); box-shadow: 0 0 0 3px rgba(43,161,153,.15); }
.form .btn-primary { width: 100%; text-align: center; border: none; font-size: 1.02rem; }
.form-note { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.hp { position: absolute; left: -9999px; }

@media (max-width: 820px) {
  .gap-grid, .cards-2, .about-grid, .bg-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .bg-grid .badge-wrap { justify-content: flex-start; }
}

/* Inline form validation error message */
.field-error { display: none; color: #b3261e; font-size: .88rem; margin-top: .4rem; }
.field-error.show { display: block; }
.field input.invalid, .field input:invalid:not(:placeholder-shown) { border-color: #b3261e; }
