/** Shared layout for coded business landing pages. */
/* ==========================================================
   CODED BUSINESS PAGES v1.5.0
========================================================== */
.ahm-page-hero { overflow: hidden; background: linear-gradient(110deg, var(--page-hero-start, #f7f9f7) 0 58%, var(--page-hero-end, #eef6ef) 58%); }
.ahm-page-hero-grid { display: grid; min-height: 610px; padding: 62px 0; align-items: center; grid-template-columns: minmax(0,1.05fr) minmax(430px,.95fr); gap: 64px; }
.ahm-page-hero-copy h1 { max-width: 790px; margin: 0; color: var(--color-primary); font-size: clamp(3rem,5.5vw,5.25rem); line-height: 1.04; letter-spacing: -.05em; }
.ahm-page-hero-intro { max-width: 760px; margin: 24px 0 0; color: var(--color-muted); font-size: clamp(1.05rem,1.5vw,1.22rem); line-height: 1.68; }
.ahm-page-hero-actions { display: flex; margin-top: 31px; flex-wrap: wrap; gap: 12px; }
.ahm-page-hero-media { min-height: 430px; }
.ahm-page-hero-image { width: 100%; height: 100%; min-height: 430px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-card); }
.ahm-page-abstract-visual { position: relative; display: flex; min-height: 430px; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; background: linear-gradient(140deg, var(--page-visual-start, #0b1d3a), var(--page-visual-end, #173b58)); box-shadow: var(--shadow-card); }
.ahm-page-abstract-visual::before { position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; content: ''; }
.ahm-page-abstract-visual::after { position: absolute; width: 230px; height: 230px; border: 1px solid rgba(191,231,209,.35); border-radius: 50%; content: ''; }
.ahm-page-abstract-code { position: relative; z-index: 2; color: #fff; font-size: clamp(3rem,6vw,6.2rem); font-weight: 850; letter-spacing: -.06em; }
.ahm-page-abstract-visual i { position: absolute; width: 72px; height: 72px; border-radius: 20px; background: rgba(255,255,255,.09); transform: rotate(24deg); }
.ahm-page-abstract-visual i:nth-child(2) { top: 12%; right: 12%; }
.ahm-page-abstract-visual i:nth-child(3) { bottom: 12%; left: 12%; width: 110px; height: 110px; }
.ahm-page-abstract-visual i:nth-child(4) { right: 8%; bottom: 20%; width: 42px; height: 42px; background: rgba(93,174,85,.32); }
.ahm-page-stats { padding: 28px 0; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); background: #fff; }
.ahm-page-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.ahm-page-stat { padding: 12px 24px; border-right: 1px solid var(--color-line); text-align: center; }
.ahm-page-stat:last-child { border-right: 0; }
.ahm-page-stat strong { display: block; color: var(--color-secondary-text); font-family: var(--font-numeric); font-weight: 780; letter-spacing: -.045em; font-variant-numeric: tabular-nums lining-nums; font-size: clamp(1.85rem,3vw,3rem); line-height: 1; }
.ahm-page-stat span { display: block; margin-top: 8px; color: var(--color-primary); font-size: .78rem; font-weight: 720; }
.ahm-coded-section { padding: 82px 0; background: #fff; }
.ahm-coded-section--surface { background: var(--color-background-alt); }
.ahm-coded-heading { max-width: 880px; margin: 0 auto 43px; text-align: center; }
.ahm-coded-heading h2,.ahm-coded-split h2,.ahm-coded-faq-heading h2,.ahm-contact-section h2 { margin: 0; color: var(--color-primary); font-size: clamp(2.1rem,4vw,3.7rem); line-height: 1.12; letter-spacing: -.04em; }
.ahm-coded-heading > p:not(.eyebrow),.ahm-coded-faq-heading > p:not(.eyebrow) { color: var(--color-muted); font-size: 1rem; }
.ahm-coded-card-grid { display: grid; gap: 20px; }
.ahm-coded-card-grid--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ahm-coded-card-grid--4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.ahm-coded-card { display: flex; min-height: 270px; padding: 28px; flex-direction: column; border: 1px solid var(--color-line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s ease,box-shadow .18s ease; }
.ahm-coded-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.ahm-coded-card-code { display: flex; width: 58px; height: 58px; margin-bottom: 22px; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-secondary-soft); color: var(--color-secondary); font-size: .9rem; font-weight: 850; }
.ahm-coded-card h3 { margin: 0 0 11px; color: var(--color-primary); font-size: 1.27rem; line-height: 1.3; }
.ahm-coded-card p { margin: 0 0 20px; color: var(--color-muted); font-size: .84rem; line-height: 1.67; }
.ahm-coded-card .text-link { margin-top: auto; }
.ahm-coded-split { display: grid; align-items: center; grid-template-columns: minmax(0,1.05fr) minmax(380px,.75fr); gap: 70px; }
.ahm-coded-lead { color: var(--color-muted); font-size: 1.05rem; line-height: 1.72; }
.ahm-coded-checklist { display: grid; margin: 30px 0 0; padding: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 25px; list-style: none; }
.ahm-coded-checklist li { position: relative; padding-left: 25px; color: var(--color-primary); font-size: .84rem; font-weight: 650; }
.ahm-coded-checklist li::before { position: absolute; left: 0; color: var(--color-secondary); content: '✓'; font-weight: 900; }
.ahm-coded-side-card { padding: 34px; border: 1px solid #cfe0d1; border-radius: 12px; background: linear-gradient(145deg,#fff,var(--color-secondary-soft)); box-shadow: var(--shadow-sm); }
.ahm-coded-side-visual { display: flex; width: 88px; height: 88px; margin-bottom: 26px; align-items: center; justify-content: center; border-radius: 24px; background: var(--color-primary); color: #fff; font-weight: 850; }
.ahm-coded-side-card h3 { margin: 0 0 11px; color: var(--color-primary); font-size: 1.55rem; }
.ahm-coded-side-card p { color: var(--color-muted); font-size: .87rem; line-height: 1.65; }
.ahm-coded-tags { display: flex; margin-top: 24px; flex-wrap: wrap; gap: 8px; }
.ahm-coded-tags span { padding: 7px 10px; border-radius: 999px; background: #fff; color: var(--color-primary); font-size: .68rem; font-weight: 720; }
.ahm-coded-process { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; list-style: none; }
.ahm-coded-process li { display: grid; padding: 26px; border-top: 3px solid var(--color-secondary); border-radius: 0 0 10px 10px; background: var(--color-surface); grid-template-columns: auto 1fr; gap: 17px; }
.ahm-coded-process li > span { color: var(--color-secondary); font-size: 1.35rem; font-weight: 850; }
.ahm-coded-process h3 { margin: 0 0 8px; color: var(--color-primary); font-size: 1.15rem; }
.ahm-coded-process p { margin: 0; color: var(--color-muted); font-size: .78rem; line-height: 1.62; }
.ahm-coded-faq-layout { display: grid; align-items: start; grid-template-columns: minmax(310px,.7fr) minmax(0,1.3fr); gap: 70px; }
.ahm-coded-faq-heading { position: sticky; top: 125px; }
.ahm-coded-faq-list details { border-top: 1px solid var(--color-line); }
.ahm-coded-faq-list details:last-child { border-bottom: 1px solid var(--color-line); }
.ahm-coded-faq-list summary { position: relative; padding: 22px 48px 22px 0; color: var(--color-primary); font-size: 1rem; font-weight: 760; cursor: pointer; list-style: none; }
.ahm-coded-faq-list summary::-webkit-details-marker { display: none; }
.ahm-coded-faq-list summary::after { position: absolute; top: 50%; right: 7px; color: var(--color-secondary); font-size: 1.5rem; content: '+'; transform: translateY(-50%); }
.ahm-coded-faq-list details[open] summary::after { content: '−'; }
.ahm-coded-faq-list details p { margin: 0; padding: 0 48px 22px 0; color: var(--color-muted); font-size: .86rem; line-height: 1.65; }
.ahm-coded-cta { padding: 0 0 72px; background: #fff; }
.ahm-coded-cta-card { display: grid; padding: 48px 54px; align-items: center; border-radius: 12px; background: linear-gradient(110deg,#0b1d3a,#173b58); grid-template-columns: minmax(0,1fr) auto; gap: 48px; color: #fff; }
.ahm-coded-cta-card .eyebrow { color: #7dcf71; }
.ahm-coded-cta-card h2 { max-width: 880px; margin: 0; color: #fff; font-size: clamp(2rem,3.6vw,3.55rem); line-height: 1.12; letter-spacing: -.04em; }
.ahm-coded-cta-card p { max-width: 850px; margin-bottom: 0; color: rgba(255,255,255,.72); }
.ahm-coded-cta-card .button { min-width: 210px; }
.ahm-contact-section { background: #fff; }
.ahm-contact-layout { display: grid; align-items: start; grid-template-columns: minmax(0,.8fr) minmax(520px,1.2fr); gap: 70px; }
.ahm-contact-detail-grid { display: grid; margin-top: 30px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.ahm-contact-detail-grid div { padding: 19px; border: 1px solid var(--color-line); border-radius: 9px; background: var(--color-surface); }
.ahm-contact-detail-grid strong,.ahm-contact-detail-grid span { display: block; }
.ahm-contact-detail-grid strong { color: var(--color-primary); font-size: .8rem; }
.ahm-contact-detail-grid span { margin-top: 5px; color: var(--color-muted); font-size: .73rem; }
.ahm-contact-form-card { padding: 34px; border: 1px solid var(--color-line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-card); }
.ahm-coded-extra-content { border-top: 1px solid var(--color-line); }
@media (max-width: 1120px) {
    .ahm-page-hero-grid { grid-template-columns: minmax(0,1fr) minmax(390px,.85fr); gap: 42px; }
    .ahm-coded-card-grid--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ahm-coded-split,.ahm-contact-layout { gap: 42px; }
}
@media (max-width: 960px) {
    .ahm-page-hero { background: var(--color-surface); }
    .ahm-page-hero-grid,.ahm-coded-split,.ahm-coded-faq-layout,.ahm-contact-layout,.ahm-coded-cta-card { grid-template-columns: 1fr; }
    .ahm-page-hero-grid { min-height: auto; }
    .ahm-page-hero-media,.ahm-page-hero-image,.ahm-page-abstract-visual { min-height: 390px; }
    .ahm-page-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 0; }
    .ahm-page-stat:nth-child(2) { border-right: 0; }
    .ahm-coded-card-grid--3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ahm-coded-faq-heading { position: static; }
    .ahm-coded-cta-card .button { justify-self: start; }
}
@media (max-width: 767px) {
    .ahm-page-hero-grid { padding: 42px 0; }
    .ahm-page-hero-copy h1 { font-size: clamp(2.65rem,12vw,4rem); }
    .ahm-page-hero-actions { display: grid; }
    .ahm-page-hero-actions .button { width: 100%; }
    .ahm-page-hero-media,.ahm-page-hero-image,.ahm-page-abstract-visual { min-height: 310px; }
    .ahm-page-stat-grid,.ahm-coded-card-grid--3,.ahm-coded-card-grid--4,.ahm-coded-process,.ahm-coded-checklist,.ahm-contact-detail-grid { grid-template-columns: 1fr; }
    .ahm-page-stat { border-right: 0; border-bottom: 1px solid var(--color-line); }
    .ahm-page-stat:last-child { border-bottom: 0; }
    .ahm-coded-section { padding: 62px 0; }
    .ahm-coded-card { min-height: 0; }
    .ahm-coded-cta-card { padding: 34px 24px; gap: 28px; }
    .ahm-coded-cta-card .button { width: 100%; }
    .ahm-contact-form-card { padding: 22px; }
}

/* ==========================================================
   Business-page readability + width upgrade v2.5.1
========================================================== */
.ahm-page-hero-grid,
.ahm-coded-section > .container,
.ahm-contact-section > .container {
    max-width: var(--container);
}
.ahm-page-stat-grid {
    width: min(100%, var(--container-main));
    margin-inline: auto;
}
.ahm-page-stat span {
    font-size: .875rem;
    line-height: 1.45;
}
.ahm-coded-heading > p:not(.eyebrow),
.ahm-coded-faq-heading > p:not(.eyebrow) {
    font-size: 1.05rem;
    line-height: 1.7;
}
.ahm-coded-card-grid,
.ahm-coded-split,
.ahm-coded-faq-layout {
    width: min(100%, var(--container-main));
    margin-inline: auto;
}
.ahm-coded-card {
    min-height: 280px;
}
.ahm-coded-card p {
    font-size: .925rem;
    line-height: 1.68;
}
.ahm-coded-checklist li {
    font-size: .925rem;
    line-height: 1.5;
}
.ahm-coded-side-card p {
    font-size: .925rem;
}
.ahm-coded-tags span {
    font-size: .78rem;
}
.ahm-coded-process p {
    font-size: .875rem;
    line-height: 1.65;
}
.ahm-coded-faq-list details p {
    font-size: .925rem;
    line-height: 1.7;
}
.ahm-contact-layout {
    width: min(100%, var(--container-main));
    margin-inline: auto;
}
.ahm-contact-detail-grid strong {
    font-size: .875rem;
}
.ahm-contact-detail-grid span {
    font-size: .825rem;
    line-height: 1.5;
}
.ahm-coded-cta-card {
    width: min(100%, var(--container-content));
    margin-inline: auto;
}
