/* Controlled type scale loaded after the legacy and global styles. */
body { font-size: 16px; line-height: 1.65; }

h1, h2, h3, h4 { margin-top: 0; color: var(--navy); font-family: "Raleway", system-ui, sans-serif; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.8vw, 4.25rem); line-height: 1.06; letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 2.7vw, 2.5rem); line-height: 1.14; letter-spacing: -.022em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.25; letter-spacing: -.012em; }
h4 { font-size: 1.05rem; line-height: 1.3; }

.global-hero h1 { max-width: 850px; margin-bottom: 1.1rem; font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.03; }
.page-hero h1 { max-width: 850px; font-size: clamp(2.25rem, 4.2vw, 3.65rem); line-height: 1.07; }
.lead { font-size: clamp(1.03rem, 1.5vw, 1.18rem); line-height: 1.65; }

/* Only true section headers receive the larger section-title treatment. */
.section-heading h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.12; }
.content-section > .global-container > h2,
.content-section > .global-container > .split > div > h2:first-child { font-size: clamp(1.7rem, 2.7vw, 2.4rem); }

/* Compact headings inside cards, sidebars, maps, forms and technical tables. */
.solution-card h2,
.solution-card h3,
.card-content h2,
.card-content h3,
.evidence-box h2,
.notice h2,
.location-details h2,
.event-content h2,
aside h2 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.22; letter-spacing: -.012em; }
.evidence-box h3,
.notice h3,
aside h3 { font-size: 1.15rem; }

p, li, td, th { max-width: 75ch; }
.card-content p, .evidence-box p, .notice p, .location-details p { font-size: .96rem; line-height: 1.6; }
.eyebrow { font-size: .74rem; line-height: 1.35; }
.button, .nav-cta { font-size: .94rem; }
.spec-table { font-size: .95rem; }
.global-footer { font-size: .94rem; }
.global-footer h2 { font-size: 1rem; letter-spacing: 0; }
.footer-bottom { flex-direction: column; gap: .5rem; }
.footer-bottom p { margin: 0; max-width: none; }
/* Site-wide controlled-document preview pattern. */
.document-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.document-thumbnail { display: block; margin: 0 0 1.25rem; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.document-thumbnail img { display: block; width: 100%; aspect-ratio: 3 / 4; max-height: 360px; object-fit: contain; transition: transform .2s ease; }
.document-thumbnail:hover img { transform: scale(1.025); }
.document-meta { margin: -.35rem 0 1rem; color: var(--muted); font-size: .86rem; }
.document-card .button { width: 100%; text-align: center; }

/* Product-detail pages use a denser rhythm for specifications and ordering data. */
.compact-section { padding-top: clamp(2.75rem, 5vw, 4.5rem); padding-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.asepto-intro > div > h2, .asepto-quality-grid h2 { max-width: 24ch; }
.asepto-intro > div > h3 { margin-top: 1.75rem; font-size: 1.25rem; }
.asepto-applications { columns: 2; column-gap: 2.5rem; }
.asepto-applications li { break-inside: avoid; }
.asepto-spec-grid, .asepto-quality-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.asepto-spec-grid .spec-table, .asepto-quality-grid .spec-table { margin: 0; }
.asepto-quality-grid > div + div { padding-left: clamp(0rem, 2vw, 1.5rem); border-left: 1px solid var(--line); }
.small-note { color: var(--muted); font-size: .9rem; }
.product-row + .product-row { margin-top: clamp(3.5rem, 7vw, 6rem); }
.product-row .section-heading { margin-bottom: 1.5rem; }

/* Product navigation groups the catalogue without hiding the main Products page. */
.nav-product-link { display: flex; align-items: center; gap: .2rem; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { position: relative; width: 1.7rem; height: 1.7rem; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nav-dropdown-toggle::after { display: block; width: .45rem; height: .45rem; margin: .15rem auto 0; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); content: ""; transition: transform .2s ease; }
.nav-dropdown.is-open .nav-dropdown-toggle::after { margin-top: .35rem; transform: rotate(225deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + .9rem); right: 0; display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 1.25rem; width: min(90vw, 560px); padding: 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.nav-dropdown-menu[hidden] { display: none; }
.nav-dropdown-menu > div { display: flex; flex-direction: column; gap: .35rem; }
.nav-dropdown-menu a { padding: .15rem 0; color: var(--ink); font-size: .92rem; font-weight: 700; }
.nav-dropdown-menu a:hover { color: var(--blue); }
.nav-menu-label { margin: 0 0 .35rem; color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* Shared rhythm for detailed product pages. */
.product-detail .content-section { padding-top: clamp(3rem, 5.5vw, 5rem); padding-bottom: clamp(3rem, 5.5vw, 5rem); }
.product-detail .content-section.tint { padding-top: clamp(2.75rem, 5vw, 4.5rem); padding-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.product-detail .compact-section { padding-top: clamp(2.75rem, 5vw, 4.5rem); padding-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.product-detail .split > div > h2:not(:first-child) { margin-top: 2rem; font-size: clamp(1.35rem, 2.1vw, 1.85rem); }
.product-detail .spec-table { margin: 1rem 0 1.5rem; }
.product-detail aside > img { display: block; width: 100%; max-height: 430px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.product-detail aside > .notice { margin-top: 1rem; }
.product-detail aside > .card-grid { margin-top: 1rem; }
.product-detail aside > .card-grid img { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }

@media (max-width: 700px) {
  .asepto-spec-grid, .asepto-quality-grid { grid-template-columns: 1fr; }
  .asepto-quality-grid > div + div { padding-left: 0; border-left: 0; }
}

@media (max-width: 900px) {
  .global-nav .nav-dropdown-menu { position: static; grid-template-columns: 1fr; width: auto; margin-top: .65rem; padding: .75rem 0 0 1rem; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .global-nav .nav-dropdown-menu[hidden] { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .global-hero h1 { font-size: clamp(2.25rem, 11vw, 3.1rem); }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .content-section { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .asepto-applications { columns: 1; }
}
