/* ==========================================================================
   Martinez Workflow Solutions — shared stylesheet
   Mobile-first. No frameworks.
   ========================================================================== */

:root {
  /* Palette built from the logo: "M" green #005F46, swoosh green #00914F */
  --brand: #005F46;         /* primary: links, buttons, headings accents */
  --brand-dark: #004A37;
  --forest: #003D2E;        /* deepest green: hero, dark tiles */
  --forest-2: #005F46;
  --bright: #00914F;        /* swoosh accent: icons, lines, hover (not body text) */
  --charcoal: #1B1F1D;      /* header / footer / dark tiles */
  --band: #E8F4EE;          /* mint tiles */
  --tint: #F4F7F5;          /* page canvas */
  --amber: #FFA500;         /* booking CTAs only */
  --amber-dark: #E89400;
  --green: #00914F;
  --ink: #1A1F1C;
  --ink-2: #3F4A45;
  --ink-3: #5E6A64;
  --line: #E1E8E4;
  --white: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
  --gap: 16px;
  --shadow: 0 1px 2px rgba(20,40,30,.04);
  --shadow-lg: 0 10px 30px rgba(20,40,30,.10);
  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .lede, .center.lede { margin-left: auto; margin-right: auto; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 680px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .75rem;
}
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid #7CCBA6; outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 6px; text-decoration: none; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); transform: translateY(-1px); }
.btn-light { background: var(--amber); color: var(--ink); }
.btn-light:hover { background: var(--amber-dark); color: var(--ink); transform: translateY(-1px); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: var(--white); }
.btn-lg { padding: 1rem 2rem; font-size: 1.075rem; }
.link-arrow { font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--charcoal); position: sticky; top: 0; z-index: 1000; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { height: 44px; width: auto; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--charcoal);
  padding: .5rem 20px 1.5rem; border-top: 1px solid rgba(255,255,255,.1); max-height: calc(100vh - 72px); overflow-y: auto;
}
.nav-open .nav-menu { display: block; }
.nav-menu > ul { list-style: none; margin: 0; padding: 0; }
.nav-menu a, .nav-menu .nav-parent {
  display: block; color: var(--white); text-decoration: none; font-family: var(--font-head); font-weight: 600;
  padding: .7rem 0; font-size: 1rem; width: 100%; text-align: left;
}
.nav-menu .nav-parent { background: none; border: 0; cursor: pointer; }
.nav-menu a:hover, .nav-menu .nav-parent:hover { color: #BFE3D1; }
.nav-menu a[aria-current="page"] { color: #9FD9BF; }
.nav-parent::after { content: "▾"; font-size: .8em; margin-left: .35em; opacity: .8; }
.sub { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 1rem; border-left: 2px solid rgba(255,255,255,.15); }
.sub a { font-weight: 500; font-size: .95rem; padding: .45rem 0; opacity: .9; }
.sub .sub-lead a { font-weight: 700; opacity: 1; }
.nav-cta { margin-top: .75rem; }
.nav-cta .btn { width: 100%; }
.nav-menu .nav-cta a.btn-light { background: var(--amber); color: var(--ink); padding: .85rem 1.6rem; text-align: center; }
.nav-menu .nav-cta a.btn-light:hover { background: var(--amber-dark); color: var(--ink); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .brand img { height: 50px; }
  .nav-menu { display: flex !important; position: static; padding: 0; border: 0; background: none; align-items: center; gap: 1.75rem; max-height: none; overflow: visible; }
  .nav-menu > ul { display: flex; align-items: center; gap: 1.6rem; }
  .nav-menu > ul > li { position: relative; }
  .nav-menu a, .nav-menu .nav-parent { padding: .5rem 0; font-size: .95rem; }
  .sub {
    display: none; position: absolute; top: 100%; left: -1rem; min-width: 250px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; margin: 0;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
  .sub a { color: var(--ink); padding: .55rem .75rem; border-radius: 6px; opacity: 1; }
  .sub a:hover { background: var(--tint); color: var(--brand); }
  .sub .sub-lead a { color: var(--brand); }
  .nav-cta { margin: 0; }
  .nav-cta .btn { width: auto; padding: .6rem 1.1rem; font-size: .92rem; }
  .nav-menu .nav-cta a.btn-light { padding: .6rem 1.1rem; width: auto; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-sm { padding: 44px 0; }
.band { background: var(--band); }
.tint { background: var(--tint); }
.dark { background: var(--forest); color: #D9E6DF; }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark .lede { color: #C5D8CE; }
.dark .eyebrow { color: #9FD9BF; }
.section-head { margin-bottom: 2rem; }
@media (min-width: 768px) { .section { padding: 88px 0; } }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%); color: var(--white); padding: 72px 0 80px; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero .eyebrow { color: #9FD9BF; }
.hero .tagline { font-family: var(--font-head); font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 500; color: #CDE6D9; margin-bottom: 1.25rem; }
.hero .throughline { font-size: 1.15rem; color: #E4EFE9; max-width: 640px; margin-bottom: 2rem; border-left: 3px solid #FFA500; padding-left: 1rem; }
.hero .sub-cta { margin-top: 1rem; font-size: .95rem; color: #B5CCC0; }
.hero-page { padding: 56px 0 60px; }
.hero-page .lede { color: #D3E4DB; }
.crumbs { font-size: .9rem; margin-bottom: 1rem; color: #B5CCC0; }
.crumbs a { color: #D3E4DB; }
@media (min-width: 768px) { .hero { padding: 104px 0 112px; } .hero-page { padding: 80px 0; } }

/* ---------- Credentials strip ---------- */
.creds { background: var(--band); padding: 22px 0; }
.creds ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.creds li { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--charcoal); display: flex; align-items: center; gap: .5rem; }
.creds li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---------- Cost comparison ---------- */
.compare { display: grid; gap: 1.25rem; margin-top: 2rem; }
.compare-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.compare-card.win { border: 2px solid var(--brand); }
.compare-card .label { font-family: var(--font-head); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.compare-card.win .label { color: var(--brand); }
.compare-card .big { font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 700; color: var(--ink); margin: .35rem 0 .25rem; line-height: 1.1; }
.compare-card.win .big { color: var(--brand); }
.compare-card ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.compare-card li { padding: .45rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: .98rem; }
.compare-card li span:last-child { font-weight: 600; text-align: right; }
.footnote { font-size: .85rem; color: var(--ink-3); margin-top: 1rem; }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }

/* ---------- Symptoms ---------- */
.symptoms { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.symptoms li {
  background: var(--white); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow);
}
.symptoms li small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .98rem; color: var(--ink-2); margin-top: .35rem; }
@media (min-width: 900px) { .symptoms { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-2); }
.card .platforms { font-size: .88rem; color: var(--ink-3); margin-top: auto; padding-top: .5rem; }
a.card { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #A7D3BD; color: inherit; }
a.card .link-arrow { color: var(--brand); margin-top: 1rem; }

/* Services: HRIS dominant */
.services-layout { display: grid; gap: 1.25rem; }
.card-hris { background: linear-gradient(150deg, var(--forest-2) 0%, var(--forest) 100%); color: var(--white); border: 0; padding: 2rem; }
.card-hris h3 { color: var(--white); font-size: 1.6rem; }
.card-hris p { color: #D8ECE2; font-size: 1.05rem; }
.card-hris .platforms { color: #B3D4C3; }
a.card-hris .link-arrow { color: var(--white); }
.card-hris .tag { display: inline-block; align-self: flex-start; background: rgba(255,255,255,.16); color: var(--white); font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 99px; margin-bottom: 1rem; }
.card-hris ul { margin: .25rem 0 1rem; padding-left: 1.1em; color: #E3F1EA; }
.services-rest { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .services-rest { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .services-layout { grid-template-columns: 5fr 7fr; align-items: stretch; }
  .card-hris { padding: 2.5rem; }
}

/* Industry tiles */
.tile { border-top: 4px solid var(--brand); }
.tile .who { font-size: .9rem; color: var(--ink-3); margin-bottom: .5rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; counter-reset: step; }
.steps li { position: relative; padding-left: 3.75rem; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; background: var(--brand); color: var(--white); font-family: var(--font-head); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--ink-2); margin: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding-left: 0; padding-top: 3.75rem; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--forest); color: #D9E6DF; text-align: center; padding: 72px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 600px; margin: 0 auto 1.75rem; color: #C5D8CE; }
.cta-band .small { margin-top: 1rem; color: #9DB5A9; }

/* ---------- Service detail pages ---------- */
.stage { margin-top: 3rem; }
.stage:first-of-type { margin-top: 0; }
.stage-head { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; border-bottom: 2px solid var(--band); padding-bottom: .75rem; margin-bottom: 1.5rem; }
.stage-head .stage-num { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); background: var(--brand); padding: .25rem .6rem; border-radius: 4px; }
.stage-head h2 { margin: 0; font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.offer + .offer { margin-top: 1rem; }
.offer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; }
.offer h3 { margin: 0 0 .35rem; }
.price-tag { font-family: var(--font-head); font-weight: 700; color: var(--brand); white-space: nowrap; }
.offer .problem { font-weight: 600; color: var(--ink); }
.offer p { color: var(--ink-2); }
.offer ul { color: var(--ink-2); margin: .5rem 0 0; }
.offer .platforms { font-size: .88rem; color: var(--ink-3); margin: .75rem 0 0; }
.callout { background: var(--band); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.callout p:last-child { margin-bottom: 0; }
.tieback { border-left: 4px solid var(--brand); background: var(--tint); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.02rem; }
.next-service { display: flex; flex-direction: column; gap: .5rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.next-service:hover { border-color: var(--brand); box-shadow: var(--shadow); color: inherit; }
.next-service .eyebrow { margin: 0; }
.next-service strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); }
.platform-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.platform-list li { background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: .35rem .85rem; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; } .two-col.wide-left { grid-template-columns: 3fr 2fr; } }

/* ---------- Pricing ---------- */
.price-card { text-align: left; }
.price-card .amount { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--brand); margin: .25rem 0 .75rem; line-height: 1.15; }
.price-card.featured { border: 2px solid var(--brand); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-head); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--tint); }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; font-weight: 600; color: var(--charcoal); }
.pending { border: 2px dashed #E0A83A; background: #FFF8EA; border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .95rem; }

/* ---------- About ---------- */
.about-photo { width: 100%; max-width: 360px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); background: var(--band); }
.photo-placeholder { width: 100%; max-width: 360px; aspect-ratio: 4/5; border-radius: var(--radius); background: var(--band); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 4rem; color: var(--brand); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--band); }
.timeline li { position: relative; padding: 0 0 1.5rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.timeline h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.timeline p { color: var(--ink-2); margin: 0; }

/* ---------- Forms ---------- */
.form { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field .opt { font-weight: 400; color: var(--ink-3); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #C3CEC8; border-radius: 6px; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,112,79,.18); }
.hidden-field { position: absolute; left: -9999px; }
.form .btn { width: 100%; }
.booking { background: var(--white); border: 2px solid var(--brand); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.booking-embed { min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #B3C4BB; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.site-footer a { color: #D9E6DF; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .cta-band { display: none; } }

/* ==========================================================================
   BENTO LAYER — rounded tiles on a soft canvas. Overrides the base styles above.
   ========================================================================== */
body { background: var(--tint); }
.h3 { font-size: 1.35rem; }

/* Grid */
.bento { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento > .span-3, .bento > .span-4, .bento > .span-6 { grid-column: span 3; }
  .bento > .span-8, .bento > .span-12 { grid-column: span 6; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento > .span-3 { grid-column: span 3; }
  .bento > .span-4 { grid-column: span 4; }
  .bento > .span-6 { grid-column: span 6; }
  .bento > .span-8 { grid-column: span 8; }
  .bento > .span-12 { grid-column: span 12; }
  .bento > .rows-2 { grid-row: span 2; }
}
.bento-section { padding: 20px 0; }
.bento-top { padding-top: 16px; }
.bento-last { padding-bottom: 56px; }
.bento-head { padding: 28px 4px 16px; }
.bento-head h2 { margin: 0; font-size: clamp(1.4rem, 3.2vw, 2rem); }
.bento-head .eyebrow { margin-bottom: .4rem; }
@media (max-width: 699px) { .wrap { padding: 0 12px; } }

/* Tiles */
.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; min-width: 0; position: relative; overflow: hidden;
}
a.tile { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #BFDCCD; color: inherit; }
.tile h3 { margin-bottom: .4rem; }
.tile p { color: var(--ink-2); }
.tile .link-arrow { color: var(--brand); margin-top: auto; padding-top: .75rem; }
.tile-foot { margin-top: auto; }
@media (min-width: 1000px) { .tile { padding: 32px; } }

/* Hero tile */
.t-hero { background: radial-gradient(120% 90% at 100% 0%, #007A57 0%, transparent 55%), linear-gradient(150deg, var(--forest) 0%, var(--forest-2) 100%); color: var(--white); border: 0; min-height: 440px; }
.t-hero::after { /* swoosh echo from the logo */
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 320px; border-radius: 50%;
  border-top: 14px solid var(--bright); opacity: .45; transform: rotate(-18deg); pointer-events: none;
}
.t-hero .eyebrow { color: #8FE0B8; }
.t-hero h1 { color: var(--white); font-size: clamp(2.2rem, 6vw, 3.75rem); margin-bottom: .3em; }
.t-hero .tagline { font-family: var(--font-head); font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 500; color: #D4F0E2; margin-bottom: 1.1rem; }
.t-hero .throughline { color: #E9F6EF; font-size: 1.1rem; max-width: 600px; border-left: 3px solid var(--amber); padding-left: 1rem; margin-bottom: 1.75rem; }
.t-hero .sub-cta { margin: .9rem 0 0; font-size: .92rem; color: #A9CFBC; }
.t-hero > * { position: relative; z-index: 1; }

/* Cost tile */
.t-cost h2 { margin-bottom: 1rem; }
.cost-row { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: .75rem; }
.cost-old { background: #F3F5F4; }
.cost-new { background: var(--band); }
.cost-label { font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cost-new .cost-label { color: var(--brand); }
.cost-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.15; color: var(--ink-3); }
.cost-old .cost-num { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(94,106,100,.5); }
.cost-new .cost-num { color: var(--brand); }
.cost-num small { font-size: .55em; font-weight: 600; margin-left: .15em; }
.cost-note { font-size: .88rem; color: var(--ink-3); }

/* Credentials tile */
.t-creds { background: var(--charcoal); border: 0; padding: 20px 28px; }
.t-creds ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }
.t-creds li { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--white); display: flex; align-items: center; gap: .55rem; }
.t-creds li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bright); flex: none; }
@media (max-width: 699px) { .t-creds ul { flex-direction: column; } }

/* Symptom tiles */
.t-symptom { background: var(--band); border-color: transparent; }
.t-symptom .quote { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.3; color: var(--forest); margin-bottom: .6rem; }
.t-symptom p { margin: 0; }

/* HRIS tile */
.t-hris { background: linear-gradient(160deg, var(--forest-2) 0%, var(--forest) 100%); color: var(--white); border: 0; }
.t-hris h3 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2rem); }
.t-hris p { color: #D4ECDF; font-size: 1.05rem; }
.t-hris .tag { align-self: flex-start; background: rgba(255,255,255,.14); color: var(--white); font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 99px; margin-bottom: 1rem; }
.stage-list { list-style: none; counter-reset: st; padding: 0; margin: .5rem 0 1.25rem; display: grid; gap: .6rem; }
.stage-list li { counter-increment: st; background: rgba(255,255,255,.08); border-radius: var(--radius-sm); padding: .75rem .9rem .75rem 3rem; position: relative; color: #E3F2EA; font-size: .95rem; }
.stage-list li::before { content: counter(st); position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--bright); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.stage-list strong { display: block; color: var(--white); font-family: var(--font-head); }
.t-hris .platforms { color: #A9CFBC; font-size: .88rem; }
.t-hris .link-arrow, a.t-hris .link-arrow { color: var(--amber); }
a.t-hris:hover { border-color: transparent; }

/* Small service tiles */
.t-svc .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--band); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.t-svc .icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-svc h3 { font-size: 1.15rem; }
.t-svc p { font-size: .98rem; margin-bottom: 0; }

/* Industry tiles */
.t-ind .who { font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }

/* Steps + booking tiles */
.t-steps .steps { margin: 0; }
.t-steps .steps li::before { background: var(--brand); }
.t-book { background: var(--amber); border: 0; color: var(--ink); }
.t-book .eyebrow { color: var(--forest); }
.t-book h2 { color: var(--ink); margin-bottom: .5rem; }
.t-book p { color: #2A2A1F; }
.t-book .btn { align-self: flex-start; margin: auto 0 .75rem; }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--white); transform: translateY(-1px); }
.t-platforms .platform-list { margin-top: .25rem; }
.t-platforms .platform-list li { background: var(--tint); border-color: var(--line); }

/* ---------- Bento treatment for inner pages (shared components) ---------- */
.site-header { background: var(--charcoal); }
.band, .tint { background: transparent; }
.section { padding: 32px 0; }
.section-sm { padding: 24px 0; }
@media (min-width: 768px) { .section { padding: 44px 0; } }

/* Page hero becomes a rounded tile */
.hero-page { background: none; padding: 16px 0 0; }
.hero-page > .wrap > * { position: relative; z-index: 1; }
.hero-page > .wrap {
  background: radial-gradient(120% 90% at 100% 0%, #007A57 0%, transparent 55%), linear-gradient(150deg, var(--forest) 0%, var(--forest-2) 100%);
  border-radius: var(--radius); padding: 40px 24px; position: relative; overflow: hidden; max-width: calc(var(--wrap) - 40px);
}
.hero-page > .wrap::after { content: ""; position: absolute; right: -140px; bottom: -190px; width: 520px; height: 320px; border-radius: 50%; border-top: 14px solid var(--bright); opacity: .4; transform: rotate(-18deg); }
.hero-page .eyebrow { color: #8FE0B8; }
.hero-page .crumbs, .hero-page .crumbs a { color: #C3E3D3; }
.hero-page .lede { color: #D9EFE4; }
@media (min-width: 768px) { .hero-page > .wrap { padding: 64px 56px; } }

/* Full-bleed hero used on the real-estate landing page */
.hero:not(.hero-page) { background: none; padding: 16px 0 0; }
.hero:not(.hero-page) > .wrap { background: linear-gradient(150deg, var(--forest) 0%, var(--forest-2) 100%); border-radius: var(--radius); padding: 48px 28px; color: var(--white); max-width: calc(var(--wrap) - 40px); }
.hero:not(.hero-page) .eyebrow { color: #8FE0B8; }
.hero .throughline { border-left-color: var(--amber); color: #E9F6EF; }
.hero .tagline { color: #D4F0E2; }
.hero .sub-cta { color: #A9CFBC; }
@media (min-width: 768px) { .hero:not(.hero-page) > .wrap { padding: 72px 56px; } }


/* CTA band becomes a tile */
.cta-band { background: none; padding: 16px 0 56px; }
.cta-band > .wrap { background: var(--charcoal); border-radius: var(--radius); padding: 48px 24px; max-width: calc(var(--wrap) - 40px); }
.cta-band p { color: #C9D3CE; }
.cta-band .small { color: #9AA8A1; }
@media (min-width: 768px) { .cta-band > .wrap { padding: 64px 48px; } }


/* Cards, offers, callouts as tiles */
.card, .offer, .next-service, .booking, .form, .table-wrap, .symptoms li {
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: none; background: var(--white);
}
.card, .offer { padding: 28px; }
.symptoms li { border-left: 0; background: var(--band); border-color: transparent; color: var(--forest); }
.callout { background: var(--band); border-radius: var(--radius); padding: 28px; }
.tieback { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--bright); border-radius: var(--radius-sm); }
.card-hris { background: linear-gradient(160deg, var(--forest-2) 0%, var(--forest) 100%); }
.price-card.featured, .offer.featured { border: 2px solid var(--brand); }
.stage-head { border-bottom: 0; margin-bottom: 1rem; }
.stage-head .stage-num { background: var(--brand); border-radius: 99px; padding: .3rem .75rem; }
.creds { background: none; padding: 16px 0; }
.creds > .wrap > ul { background: var(--charcoal); border-radius: var(--radius); padding: 20px 28px; justify-content: space-between; }
.creds li { color: var(--white); }
.creds li::before { background: var(--bright); }
@media (max-width: 699px) { .creds > .wrap > ul { flex-direction: column; } }
.platform-list li { border-radius: 99px; }
.photo-placeholder, .about-photo { border-radius: var(--radius); }
.form { background: var(--white); }
.booking { border: 2px solid var(--brand); }
.checklist li::before { border-color: var(--bright); }
.timeline { border-left-color: var(--band); }
.timeline li::before { background: var(--bright); }
th { background: var(--band); }
.site-footer { margin-top: 0; }

/* Tile-style wraps keep a gutter at every width */
.hero-page > .wrap, .hero:not(.hero-page) > .wrap, .cta-band > .wrap { width: calc(100% - 40px); margin: 0 auto; }
@media (max-width: 699px) { .hero-page > .wrap, .hero:not(.hero-page) > .wrap, .cta-band > .wrap { width: calc(100% - 24px); } }

/* Bento refinements */
.t-creds ul { display: grid; grid-template-columns: 1fr; gap: .6rem 1.5rem; }
@media (min-width: 700px) { .t-creds ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .t-creds ul { grid-template-columns: repeat(4, auto); justify-content: space-between; } }
.cost-num { white-space: nowrap; font-size: clamp(1.4rem, 2.3vw, 1.8rem); }
@media (min-width: 900px) { .t-steps .steps { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2rem; } .t-steps .steps li { padding-top: 0; padding-left: 3.75rem; } }
.t-hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); }
@media (min-width: 1000px) { .t-creds ul { grid-template-columns: repeat(2, auto); justify-content: start; gap: .6rem 3rem; } }
@media (min-width: 1180px) { .t-creds ul { grid-template-columns: repeat(4, auto); justify-content: space-between; } .t-creds li { white-space: nowrap; font-size: .92rem; } }
@media (min-width: 1180px) { .t-creds ul { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 1rem; } }
