/*
 * Gutta Plastics — public theme
 * Plain CSS, no build step. Keep this file as the single frontend stylesheet.
 *
 * 01 Fonts and tokens     08 Gallery and image dialog
 * 02 Base and helpers     09 Tables and downloads
 * 03 Header/navigation    10 Product/application cards
 * 04 Search               11 Buttons and contact callout
 * 05 Page heading         12 Contact and forms
 * 06 Hero/carousel        13 Footer
 * 07 Content              14 Responsive, motion and print
 */

/* 01. Fonts and design tokens */

/* Font-face descriptors need literal weights; element styles use the tokens below. */
@font-face {
    font-family: Source Sans;
    src: url(../fonts/source-sans-pro-v21-latin-regular.c124c88ca4fc.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Source Sans;
    src: url(../fonts/source-sans-pro-v21-latin-600.bc9a16cd9454.woff2) format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: Source Sans;
    src: url(../fonts/source-sans-pro-v21-latin-700.7348a2eb48c9.woff2) format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --blue: #0079ae;
    --blue-dark: #00577d;
    --ink: #242a30;
    --muted: #59646e;
    --dark: #252a30;
    --line: #dce2e5;
    --light: #f1f5f6;
    --width: 1200px;
    --space: clamp(1.25rem, 4vw, 3rem);
    --white: #fff;
    --focus: #d8a514;
    --font-body: Source Sans, system-ui, sans-serif;
    --font-size-base: 18px;
    --font-size-mobile: 17px;
    --weight-semibold: 600;
    --weight-bold: 700;
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --card-gap: 1.75rem;
    --card-padding: 1.4rem;
    color-scheme: light;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--ink);
    background: var(--white);
}

/* 02. Base, typography and accessibility */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    margin: 0;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--blue);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--blue-dark);
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a,
input,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}

button,
summary {
    cursor: pointer;
}

button {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(var(--width), calc(100% - var(--space) * 2));
    margin-inline: auto;
}

.sr-only,
.gutta-honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.gutta-skip {
    position: fixed;
    left: 1rem;
    top: -6rem;
    z-index: 100;
    background: var(--white);
    padding: 0.6rem 1rem;
}

.gutta-skip:focus {
    top: 1rem;
}

h1,
h2,
h3 {
    font-weight: var(--weight-semibold);
    line-height: 1.15;
    letter-spacing: -.025em;
    text-wrap: balance;
    overflow-wrap: anywhere;
    hyphens: auto;
    margin: 0 0 1rem;
}

h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.6rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1.15rem;
}

ul,
ol {
    padding-left: 1.25rem;
}

/* 03. Header, navigation and language switch */

body:has(.main-navigation.is-open) {
    overflow-x: hidden;
}

.utility {
    background: #1c2025;
    color: #d7dce1;
    font-size: 0.8rem;
}

.utility .container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding-block: 0.45rem;
}

.utility span {
    margin-right: auto;
}

.utility a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    background: var(--dark);
    color: var(--white);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 108px;
}

.brand {
    display: block;
    flex: 0 0 218px;
}

.brand img {
    width: 218px;
    height: auto;
    aspect-ratio: 200 / 83;
}

.main-navigation {
    margin-left: auto;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-level-0 {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--white);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    padding: 0.75rem 0;
}

.main-navigation a:hover,
.main-navigation a[aria-current=page] {
    color: #74c8ec;
}

.main-navigation .has-children {
    padding-right: 1.35rem;
}

.nav-children > summary {
    position: absolute;
    right: 0;
    top: 0.7rem;
    line-height: 1.5;
    list-style: none;
    color: #b6c9d3;
    padding: 0.05rem 0.1rem;
}

.nav-children > summary::-webkit-details-marker {
    display: none;
}

.nav-children[open] > summary span {
    display: block;
    transform: rotate(180deg);
}

.nav-level-1 {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--dark);
    border-top: 3px solid var(--blue);
    min-width: 270px;
    box-shadow: 0 12px 32px #0003;
    padding: 0.6rem 1.2rem !important;
    z-index: 20;
}

.nav-level-1 a,
.nav-level-2 a {
    font-size: 0.95rem;
    white-space: normal;
    padding: 0.5rem 0;
}

.nav-level-1 .nav-children > summary {
    top: 0.45rem;
}

.nav-level-2 {
    padding-left: 1rem !important;
    border-left: 1px solid #596069;
    margin-bottom: 0.5rem !important;
}

.language-switch {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2.5rem;
    padding: 0.35rem;
    color: #b9c5ce;
    text-decoration: none;
}

.language-switch a[aria-current] {
    color: var(--white);
    font-weight: var(--weight-bold);
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

.language-switch a:hover {
    color: var(--white);
    text-decoration: underline;
}

.language-switch > span {
    color: #9caab5;
}

.menu-toggle {
    background: none;
    border: 1px solid #747c84;
    border-radius: var(--radius-md);
    padding: 0.4rem 0.7rem;
    color: var(--white);
    display: none;
}

html:not(.js) .menu-toggle {
    display: none;
}

/* 04. Search bar and results */

.search-bar {
    border-top: 1px solid #ffffff1c;
    color: #d9e0e4;
    font-size: 0.85rem;
}

.search-bar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 48px;
}

.search-bar form {
    display: flex;
    align-items: stretch;
    min-width: 300px;
}

.search-bar input {
    border: 0;
    background: #ffffff0d;
    color: var(--white);
    padding: 0.35rem 0.7rem;
    min-width: 0;
    flex: 1;
    width: 230px;
}

.search-bar input::placeholder {
    color: #d4dae0;
}

.search-bar button {
    border: 0;
    background: var(--blue);
    color: var(--white);
    display: grid;
    place-content: center;
    width: 44px;
}

.search-bar button:hover {
    background: var(--blue-dark);
}

.search-results {
    min-height: 40vh;
}

.search-results article {
    padding-block: 1.5rem;
    border-bottom: 1px solid var(--line);
    max-width: 900px;
}

.search-results article h3 {
    margin-bottom: 0.5rem;
}

.search-results article p {
    margin-bottom: 0;
}

/* 05. Page heading and breadcrumbs */

.page-heading {
    background: var(--light);
    padding-block: 1.4rem 2rem;
}

.page-heading h1 {
    margin: 1rem 0 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.breadcrumbs a {
    color: inherit;
}

.breadcrumbs > span[aria-current] {
    font-weight: var(--weight-semibold);
}

/* 06. Hero, carousel and homepage actions */

.hero {
    position: relative;
    background: #cbd4d8;
}

.hero-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.hero-track::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    margin: 0;
}

.hero-slide > img {
    width: 100%;
    height: clamp(240px, 30vw, 440px);
    object-fit: cover;
}

.hero-home .hero-slide > img {
    height: clamp(360px, 40vw, 560px);
    min-height: 480px;
}

.hero-slide figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    color: var(--white);
    background: linear-gradient(90deg, #111c2de6, #17273b77 55%, transparent);
}

.hero-slide figcaption h1,
.hero-slide figcaption h2 {
    max-width: 740px;
    font-size: clamp(2rem, 4.2vw, 3.8rem);
}

.hero-slide figcaption p {
    font-size: 1.25rem;
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: var(--weight-bold);
    letter-spacing: 0.14em;
    margin-bottom: 0.8rem;
    color: var(--blue);
}

.hero .eyebrow {
    color: #86d6f5;
}

.carousel-controls {
    position: absolute;
    bottom: 1rem;
    right: max(var(--space), calc((100vw - var(--width))/2));
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #202a33eb;
    color: var(--white);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
}

.carousel-controls button {
    border: 0;
    background: transparent;
    color: var(--white);
    padding: 0.25rem 0.8rem;
    font-size: 1.2rem;
}

.carousel-controls button:hover {
    background: var(--blue);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.hero-actions .button {
    gap: 1rem;
    font-size: 1rem;
}

.hero-actions .button-outline {
    background: transparent;
    border: 1px solid #dce9ef;
    color: var(--white) !important;
}

.hero-actions .button-outline:hover {
    background: #ffffff20;
}

.hero-home .hero-slide figcaption p {
    max-width: 640px;
}

/* 07. Content sections, facts and in-page navigation */

.page-body {
    padding-block: clamp(2rem, 5vw, 4rem);
}

.content-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem 2rem;
}

.content-section {
    grid-column: 1 / -1;
    min-width: 0;
    scroll-margin-top: 2rem;
}

.content-section:empty {
    display: none;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--muted);
    max-width: 850px;
    margin-top: -.3rem;
}

.prose {
    max-width: 920px;
    overflow-wrap: anywhere;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose h2,
.prose h3 {
    margin-top: 2rem;
}

.prose li {
    margin-block: 0.45rem;
}

.prose a {
    overflow-wrap: anywhere;
}

.prose strong {
    font-weight: var(--weight-semibold);
}

.section-facts {
    grid-column: auto;
    padding: 1.7rem 2rem;
    background: var(--light);
    border-top: 3px solid var(--blue);
}

.section-facts h2 {
    font-size: 1.5rem;
}

.section-facts ul {
    margin-bottom: 0;
    list-style: none;
    padding: 0;
}

.section-facts li {
    position: relative;
    padding-left: 1.5rem;
}

.section-facts li:before {
    content: '✓';
    color: var(--blue);
    position: absolute;
    left: 0;
    font-weight: var(--weight-bold);
}

.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.25rem;
    padding-block: 0 1.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.5rem;
    font-size: 0.85rem;
}

.section-nav a {
    color: var(--muted);
    text-decoration: none;
}

.section-nav a:hover {
    color: var(--blue);
    text-decoration: underline;
}

.content-sections:empty + .product-overview {
    margin-top: 0;
}

.frontpage .content-sections {
    grid-template-columns: 1fr;
}

.frontpage .section-facts {
    padding: 0;
    background: transparent;
    border: 0;
}

.frontpage .section-facts ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 3rem;
}

.frontpage .section-facts li {
    padding-block: 0.75rem;
    border-top: 1px solid var(--line);
}

/* 08. Gallery and image dialog */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.gallery figure {
    margin: 0;
    background: var(--light);
}

.gallery a {
    display: block;
    overflow: hidden;
    background: var(--white);
}

.gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    transition: transform 0.2s;
}

.gallery a:hover img {
    transform: scale(1.035);
}

.gallery figcaption {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    line-height: 1.35;
}

.gutta-lightbox {
    border: 0;
    padding: 2.5rem 1rem 1rem;
    max-width: min(1100px, 94vw);
    max-height: 94dvh;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.gutta-lightbox::backdrop {
    background: #11202de6;
}

.gutta-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gutta-lightbox img {
    max-height: 72dvh;
    object-fit: contain;
    margin: auto;
}

.gutta-lightbox:has(.gutta-lightbox-controls:not([hidden])) {
    width: min(1100px, 94vw);
}

.gutta-lightbox:has(.gutta-lightbox-controls:not([hidden])) .gutta-lightbox-stage {
    height: min(60dvh, 640px);
}

.gutta-lightbox:has(.gutta-lightbox-controls:not([hidden])) img {
    max-height: 100%;
}

.gutta-lightbox-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.gutta-lightbox-controls button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--blue-dark);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--blue-dark);
    font-size: 1.4rem;
}

.gutta-lightbox-controls button:hover {
    background: var(--light);
}

.gutta-lightbox-controls [data-image-status] {
    min-width: 7rem;
    text-align: center;
    font-size: 0.9rem;
}

.gutta-lightbox p {
    margin: 0.75rem 0 0;
    text-align: center;
}

.gutta-lightbox-close {
    position: absolute;
    right: 0.5rem;
    top: 0.3rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.7rem;
    border: 0;
    background: transparent;
}

/* 09. Tables and downloads */

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    padding: 0.8rem 1.1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

th {
    font-weight: var(--weight-semibold);
    background: #f4f7f8;
}

th[scope=row] {
    width: 26%;
}

th[colspan] {
    background: var(--blue);
    color: var(--white);
}

tr:last-child > * {
    border-bottom: 0;
}

td {
    white-space: normal;
}

tr:nth-child(even) td {
    background: #fafcfc;
}

.downloads {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.downloads a {
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    padding: 1rem 1.2rem;
    background: var(--light);
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: var(--weight-semibold);
}

.downloads a:hover {
    border-color: var(--blue);
    background: #e7f3f8;
}

.downloads a > span:last-child {
    margin-left: auto;
    font-size: 1.5rem;
}

.file-type {
    font-size: 0.7rem;
    color: var(--blue-dark);
    border: 1px solid currentColor;
    border-radius: var(--radius-sm);
    line-height: 1;
    padding: 0.45rem;
    font-weight: var(--weight-bold);
}

/* 10. Product cards and application entry points */

.product-overview {
    margin-top: 3.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--card-gap);
}

.product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 12px 28px #22344416;
    transform: translateY(-3px);
}

.product-card > a {
    color: var(--ink);
    text-decoration: none;
    display: block;
    height: 100%;
}

.product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.product-card a > div {
    padding: var(--card-padding);
}

.product-card h3 {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.45rem;
}

.product-card h3 span {
    color: var(--blue);
}

.product-card p {
    font-size: 0.95rem;
    color: var(--muted);
}

.text-link {
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: var(--weight-semibold);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--card-gap);
    margin-top: 1.8rem;
}

.application-card {
    min-width: 0;
    background: var(--light);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.application-card > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.application-content {
    padding: var(--card-padding);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.application-content h3 {
    font-size: 1.6rem;
}

.application-content p {
    font-size: 0.95rem;
    color: var(--muted);
}

.application-links {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    display: grid;
    gap: 0.5rem;
}

.application-links a {
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.55rem 0;
    border-top: 1px solid #cbd7de;
    text-decoration: none;
    font-weight: var(--weight-semibold);
    font-size: 0.9rem;
}

.application-links a:hover {
    text-decoration: underline;
}

.application-links a span {
    flex-shrink: 0;
}

/* 11. Buttons and contact callout */

.contact-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    background: var(--light);
    margin-top: 3.5rem;
    border-left: 4px solid var(--blue);
}

.contact-strip h2 {
    font-size: 1.6rem;
}

.contact-strip p {
    margin: 0;
}

.button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    border: 0;
    color: var(--white) !important;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: var(--weight-semibold);
    white-space: nowrap;
}

.button:hover,
.btn:hover {
    background: var(--blue-dark);
}

/* 12. Contact layout, forms and feedback */

.gutta-contact {
    max-width: 1000px;
}

.gutta-contact fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.gutta-contact .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #9da9b2;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--ink);
}

textarea.form-control {
    resize: vertical;
    min-height: 160px;
}

.gutta-contact label:not(.sr-only) {
    display: block;
}

.gutta-contact label.sr-only {
    position: static !important;
    width: auto;
    height: auto;
    clip-path: none;
    white-space: normal;
    display: block;
    margin-bottom: 0.35rem;
}

.gutta-contact input[type=checkbox] {
    accent-color: var(--blue);
    width: 1.1rem;
    height: 1.1rem;
    vertical-align: middle;
    margin-right: 0.4rem;
}

.gutta-contact .checkbox {
    font-size: 0.9rem;
}

.gutta-local-notice,
.alert {
    max-width: 1000px;
    background: #edf4f8;
    border-left: 3px solid var(--blue);
    padding: 1rem 1.25rem;
    margin: 2rem 0;
}

.alert-danger {
    background: #fff0ee;
    border-color: #bd352c;
}

.alert-success {
    background: #edf7ef;
    border-color: #367b45;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.6fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.contact-layout > * {
    min-width: 0;
}

.contact-details {
    display: block;
}

.contact-details .content-section {
    margin-bottom: 2rem;
}

.contact-layout h2 {
    font-size: 1.8rem;
}

.contact-details .prose p {
    margin-block: 0.45rem;
}

.contact-details .gallery {
    grid-template-columns: 1fr;
    max-width: 240px;
}

.contact-details .gallery figure {
    background: transparent;
}

.contact-details .gallery img {
    height: auto;
    max-height: 130px;
    aspect-ratio: var(--media-ratio, 3 / 2);
}

.contact-enquiry .gutta-local-notice {
    margin: 0 0 1.5rem;
}

.contact-enquiry .gutta-contact .row:nth-of-type(n+3) {
    grid-template-columns: 1fr;
    gap: 0;
}

.contact-enquiry .gutta-contact .row {
    column-gap: 1rem;
}

/* 13. Footer */

.site-footer {
    background: var(--dark);
    color: #d0d7dd;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 3rem;
    padding-block: 3rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
    color: var(--white);
}

.site-footer strong {
    color: var(--white);
}

.footer-brand {
    font-size: 1.65rem;
    font-weight: var(--weight-bold);
    color: var(--white) !important;
}

.footer-main nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-main p {
    margin-block: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #ffffff20;
    padding-block: 1rem;
    font-size: 0.75rem;
}

/* 14. Responsive layouts — existing breakpoints and cascade are preserved. */

@media (min-width: 901px) {
    /* Header, navigation and language switch */

    .nav-level-0 > li:first-child {
        display: none;
    }
}

@media (max-width: 1100px) {
    /* Header, navigation and language switch */

    .header-main {
        gap: 1.2rem;
    }

    .nav-level-0 {
        gap: 1rem;
    }

    .brand {
        flex-basis: 185px;
    }

    .brand img {
        width: 185px;
    }

    .language-switch {
        font-size: 0.72rem;
    }

    .nav-level-0 > li > a {
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {
    /* Header, navigation and language switch */

    .utility span {
        display: none;
    }

    .utility .container {
        justify-content: space-between;
    }

    .header-main {
        flex-wrap: wrap;
        gap: 1rem;
        padding-block: 1.1rem;
        min-height: 88px;
    }

    .brand {
        margin-right: auto;
    }

    .menu-toggle {
        display: block;
    }

    .language-switch {
        font-size: 0.8rem;
    }

    .main-navigation {
        order: 4;
        flex-basis: 100%;
        margin-left: 0;
    }

    .nav-level-0 {
        display: block;
    }

    .js .main-navigation:not(.is-open) {
        display: none;
    }

    .main-navigation a {
        padding: 0.6rem 0;
    }

    .main-navigation li {
        border-top: 1px solid #ffffff20;
    }

    .main-navigation .has-children {
        padding-right: 0;
    }

    .nav-children > summary {
        top: 0.5rem;
        padding: 0.2rem 0.4rem;
    }

    .nav-level-1 {
        position: static;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 1rem !important;
        min-width: 0;
    }

    .nav-level-2 {
        border-left: 0;
    }

    .nav-level-1 a {
        font-size: 1rem;
    }

    .nav-level-1 .nav-children > summary {
        top: 0.35rem;
    }

    /* Search bar and results */

    .search-bar > .container > span {
        display: none;
    }

    .search-bar form {
        width: 100%;
        min-width: 0;
        padding-block: 0.5rem;
    }

    .search-bar input {
        width: auto;
        padding: 0.5rem 0.7rem;
    }

    /* Content sections, facts and in-page navigation */

    .content-sections {
        gap: 2rem 1.5rem;
    }

    /* Gallery and image dialog */

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Product cards and application entry points */

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .applications-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Buttons and contact callout */

    .contact-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    /* Contact layout, forms and feedback */

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-details .content-section:last-child {
        margin-bottom: 0;
    }

    /* Footer */

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-main > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    /* Fonts and design tokens */

    :root {
        font-size: var(--font-size-mobile);
        --space: 1.25rem;
    }

    /* Header, navigation and language switch */

    .utility .container {
        font-size: 0.72rem;
        gap: 0.5rem;
    }

    .header-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.5rem 0.75rem;
        padding-block: 0.8rem;
    }

    .brand {
        flex-basis: 170px;
        grid-row: 1 / 3;
        width: 145px;
        max-width: 100%;
        margin: 0;
    }

    .brand img {
        width: 145px;
    }

    .menu-toggle {
        font-size: 0.85rem;
        padding: 0.35rem 0.55rem;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .language-switch {
        order: 3;
        font-size: 0.8rem;
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        margin: 0;
    }

    .main-navigation {
        order: 4;
        grid-column: 1 / -1;
        grid-row: 3;
    }

    /* Page heading and breadcrumbs */

    .page-heading {
        padding-block: 1rem 1.5rem;
    }

    .breadcrumbs {
        font-size: 0.75rem;
    }

    /* Hero, carousel and homepage actions */

    .hero-home .hero-slide > img {
        object-position: 60%;
        height: 480px;
    }

    .hero-slide > img {
        height: 230px;
    }

    .hero-slide figcaption {
        background: linear-gradient(90deg, #111c2de0, #17273b88);
    }

    .hero-slide figcaption h1 {
        font-size: 2.25rem;
    }

    .hero-slide figcaption p {
        font-size: 1.1rem;
    }

    .hero-home .hero-slide figcaption h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        margin-top: 1.2rem;
        gap: 0.65rem;
    }

    .hero-actions .button {
        font-size: 0.9rem;
        padding: 0.6rem 0.9rem;
    }

    .hero-home .hero-slide figcaption p {
        font-size: 1.05rem;
    }

    /* Content sections, facts and in-page navigation */

    .content-sections {
        grid-template-columns: 1fr;
    }

    .section-facts {
        grid-column: 1 / -1;
        padding: var(--card-padding);
    }

    .content-section {
        scroll-margin-top: 1rem;
    }

    .section-nav {
        gap: 0.5rem 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.9rem;
        scrollbar-width: thin;
    }

    .section-nav a {
        padding: 0.2rem 0;
        flex-shrink: 0;
    }

    .frontpage .section-facts ul {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Gallery and image dialog */

    .gallery,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        gap: 1.25rem;
    }

    .gallery img {
        max-height: 350px;
    }

    /* Tables and downloads */

    .table-scroll {
        margin-inline: 0;
    }

    th,
    td {
        padding: 0.7rem 0.8rem;
        min-width: 110px;
        font-size: 0.9rem;
    }

    .downloads a {
        overflow-wrap: anywhere;
        padding: 0.85rem;
        gap: 0.75rem;
    }

    /* Product cards and application entry points */

    .applications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .application-content {
        padding: 1.25rem;
    }

    .application-links a {
        min-height: 44px;
    }

    /* Buttons and contact callout */

    .contact-strip {
        padding: 1.5rem;
    }

    /* Contact layout, forms and feedback */

    .gutta-contact .row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Footer */

    .footer-main {
        grid-template-columns: 1fr;
        padding-block: 2.25rem;
    }

    .footer-main > div:first-child {
        grid-column: auto;
    }

    .footer-bottom {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Base, typography and accessibility */

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    /* Base, typography and accessibility */

    .container {
        width: 100%;
    }

    a {
        color: inherit;
    }

    /* Header, navigation and language switch */

    .site-header,
    .utility,
    .site-footer,
    .section-nav,
    .carousel-controls,
    .contact-strip {
        display: none;
    }

    /* Hero, carousel and homepage actions */

    .hero-slide > img {
        height: 180px;
    }

    /* Content sections, facts and in-page navigation */

    .page-body {
        padding: 1rem;
    }

    .content-sections {
        display: block;
    }

    .content-section {
        margin-bottom: 1.5rem;
        break-inside: avoid;
    }

    /* Gallery and image dialog */

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Tables and downloads */

    .table-scroll {
        overflow: visible;
    }

    /* Contact layout, forms and feedback */

    .contact-layout {
        grid-template-columns: 1fr 1.6fr;
    }

    .contact-enquiry .gutta-contact {
        display: none;
    }
}
