:root {
    --ink: #231f20;
    --muted: #6b6466;
    --line: #ece4dd;
    --paper: #fffaf2;
    --surface: #ffffff;
    --gold: #ffcf18;
    --orange: #f47b32;
    --deep-orange: #e7502f;
    --teal: #138f94;
    --shadow: 0 18px 44px rgba(35, 31, 32, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
}

body.nav-open,
body.modal-open {
    overflow: hidden;
}

.scroll-progress {
    position: fixed;
    z-index: 400;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--orange), var(--deep-orange));
    box-shadow: 0 0 18px rgba(244, 123, 50, 0.35);
    pointer-events: none;
}

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

[hidden] {
    display: none !important;
}

a {
    color: inherit;
}

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

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.sr-only,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    background: var(--ink);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 250, 242, 0.94);
    border-bottom: 1px solid rgba(35, 31, 32, 0.08);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    min-height: 82px;
}

.brand img {
    width: 210px;
}

.primary-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.primary-nav a {
    text-decoration: none;
    padding: 10px 9px;
    border-radius: 6px;
    color: #3b3436;
    font-weight: 700;
    font-size: 15px;
}

.primary-nav a:hover,
.primary-nav a.active,
.primary-nav a[aria-current="page"] {
    background: #fff0cf;
    color: #111;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
    place-items: center;
}

.nav-toggle span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: var(--ink);
    display: block;
    margin: 3px auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 7px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--orange) 70%, var(--deep-orange));
    color: #1d1718;
    box-shadow: 0 12px 28px rgba(244, 123, 50, 0.28);
}

.btn-secondary {
    background: var(--ink);
    color: #fff;
}

.btn-ghost,
.btn-ghost-dark {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.btn-ghost-dark {
    color: var(--ink);
    border-color: rgba(35, 31, 32, 0.2);
}

.btn-light {
    background: #fff;
    color: var(--ink);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.hero {
    position: relative;
    min-height: calc(100vh - 82px);
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #1b1718;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(35, 31, 32, 0.9), rgba(35, 31, 32, 0.72) 48%, rgba(35, 31, 32, 0.3));
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("../images/generated/home-localization-quality.png");
    background-size: cover;
    background-position: center;
    opacity: 0.72;
    transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.04);
    transition: transform 0.08s linear;
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 84px 0 118px;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(48px, 8vw, 112px);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero p {
    width: min(760px, 100%);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 13px;
}

.hero-actions,
.footer-actions,
.cta-actions,
.contact-mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.section {
    padding: 84px 0;
}

.service-strip {
    padding: 0;
    background: var(--paper);
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--line);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.strip-grid a {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    background: #fff;
    text-decoration: none;
    font-weight: 800;
}

.strip-grid a:hover {
    background: #fff2d4;
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading h2,
.split-section h2,
.visual-band h2,
.dark-cta h2,
.mission-grid h2,
.contact-details h2,
.tool-panel h2,
.narrow-content h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading p {
    width: min(720px, 100%);
    color: var(--muted);
    margin: 0;
}

.card-grid {
    display: grid;
    gap: 18px;
}

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

.card-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.service-card,
.mini-card,
.feature-panel,
.form-panel,
.contact-details,
.tool-panel,
.service-detail {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(35, 31, 32, 0.06);
}

.service-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 288px;
}

.service-card span,
.pill {
    width: fit-content;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff1d2;
    color: #7c3b08;
    font-weight: 800;
    font-size: 12px;
}

.service-card h3,
.service-detail h2 {
    margin: 18px 0 10px;
    font-size: 24px;
    line-height: 1.16;
}

.service-card p,
.service-detail p,
.feature-panel p,
.tool-panel p,
.narrow-content p {
    color: var(--muted);
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.service-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.card-actions a,
.card-actions button {
    border: 0;
    background: transparent;
    color: #b94716;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.warm {
    background: var(--paper);
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 38px;
    align-items: start;
}

.split-grid p {
    color: var(--muted);
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.process-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    font-weight: 700;
}

.process-list span,
.timeline span {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    font-weight: 900;
}

.visual-band {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: center;
}

.visual-band::before {
    content: "";
    position: absolute;
    inset: auto 8% -28px 18%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(244, 123, 50, 0.85), rgba(255, 207, 24, 0.8), transparent);
    transform: scaleX(var(--motion-line, 0.22));
    transform-origin: left;
    opacity: 0.7;
}

.visual-band img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.dark-cta,
.site-footer {
    background: var(--ink);
    color: #fff;
}

.cta-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.cta-grid h2 {
    max-width: 780px;
}

.page-hero {
    background: linear-gradient(135deg, #fff8e8, #ffffff);
    border-bottom: 1px solid var(--line);
}

.page-hero.compact .container {
    padding: 82px 0 70px;
}

.page-hero p:last-child {
    max-width: 820px;
    color: var(--muted);
    font-size: 19px;
}

.service-hero .service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.72fr);
    gap: 34px;
    align-items: center;
    padding: 74px 0;
}

.service-hero h1 {
    font-size: clamp(42px, 6vw, 82px);
}

.service-hero img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.feature-panel {
    padding: 28px;
}

.feature-panel h3,
.tool-panel h3 {
    margin-top: 0;
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.check-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
}

.check-list li::before {
    content: "";
    width: 16px;
    height: 16px;
    margin-top: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--orange));
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mission-grid article {
    border-left: 5px solid var(--orange);
    padding: 18px 0 18px 24px;
}

.mini-card {
    min-height: 160px;
    padding: 22px;
}

.mini-card strong {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}

.mini-card span {
    color: var(--muted);
}

.language-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.language-cloud span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-weight: 800;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud.compact {
    margin-top: 18px;
}

.tag-cloud.compact span {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
}

.trust-section {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.proof-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(35, 31, 32, 0.05);
}

.proof-grid strong {
    display: block;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
    color: #b94716;
}

.proof-grid span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 800;
}

.client-proof {
    margin-top: 46px;
}

.client-proof h2 {
    max-width: 860px;
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
}

.client-segments,
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.client-segments span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-weight: 800;
}

.case-grid,
.blog-grid,
.testimonial-grid,
.process-card-grid,
.language-page-grid {
    display: grid;
    gap: 18px;
}

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

.case-card,
.blog-card,
.testimonial-card,
.language-panel,
.quote-card,
.case-study-detail {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(35, 31, 32, 0.06);
}

.case-card {
    overflow: hidden;
}

.case-card img,
.blog-card img {
    width: 100%;
    aspect-ratio: 1.38 / 1;
    object-fit: cover;
}

.case-card > div,
.blog-card > div {
    padding: 22px;
}

.case-card h3,
.blog-card h2,
.case-study-detail h2 {
    margin: 16px 0 10px;
    font-size: 24px;
    line-height: 1.16;
}

.case-card p,
.blog-card p,
.case-study-detail p,
.testimonial-card p,
.quote-card p,
.language-panel p {
    color: var(--muted);
}

.case-card a {
    color: #b94716;
    font-weight: 900;
    text-decoration: none;
}

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

.blog-card {
    overflow: hidden;
}

.blog-card-footer,
.blog-meta,
.blog-article-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.blog-card-footer {
    justify-content: space-between;
    margin-top: 18px;
    font-weight: 900;
}

.blog-card-footer time,
.blog-meta span {
    color: var(--muted);
    font-weight: 800;
}

.blog-card-footer a,
.blog-meta a {
    color: #b94716;
    text-decoration: none;
    font-weight: 900;
}

.blog-article-body {
    max-width: 820px;
}

.blog-article-body p {
    color: #3b3436;
    font-size: 20px;
    line-height: 1.75;
}

.blog-article-cta {
    margin-top: 28px;
}

.testimonial-section {
    background: #fff;
}

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

.testimonial-card {
    margin: 0;
    padding: 24px;
}

.testimonial-card p {
    margin-top: 0;
    font-size: 18px;
}

.testimonial-card footer {
    font-weight: 900;
}

.testimonial-card footer span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
}

.language-page-grid {
    grid-template-columns: 1fr;
}

.language-panel {
    padding: 26px;
}

.language-panel h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 3vw, 42px);
}

.service-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.service-main h2,
.quote-card h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
}

.service-main > p {
    color: var(--muted);
    max-width: 760px;
}

.compact-list-grid {
    margin-top: 28px;
}

.compact-list-grid .mini-card {
    min-height: auto;
}

.service-subheading {
    margin: 44px 0 16px;
}

.quote-card {
    position: sticky;
    top: 110px;
    padding: 24px;
}

.quote-card .btn.full {
    width: 100%;
    margin-top: 18px;
}

.service-proof-strip {
    padding: 28px 0;
    background: var(--paper);
}

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

.service-proof-strip .proof-grid strong {
    font-size: 20px;
    color: var(--ink);
}

.process-card-grid {
    grid-template-columns: repeat(4, 1fr);
}

.step-badge {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    font-weight: 900;
    margin-bottom: 16px;
}

.case-study-list {
    display: grid;
    gap: 24px;
}

.case-study-detail {
    display: grid;
    grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
    gap: 26px;
    padding: 24px;
    scroll-margin-top: 110px;
}

.case-study-detail img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: 8px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-bar button {
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.filter-bar button.active,
.filter-bar button:hover {
    background: var(--ink);
    color: #fff;
}

.service-detail-list {
    display: grid;
    gap: 18px;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 0.62fr;
    gap: 24px;
    padding: 28px;
    scroll-margin-top: 110px;
}

.service-detail.anchor-highlight {
    outline: 3px solid rgba(244, 123, 50, 0.45);
}

.contact-layout,
.process-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.contact-details,
.tool-panel,
.form-panel {
    padding: 24px;
}

.industry-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.industry-service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(35, 31, 32, 0.06);
}

.industry-service-card h3 {
    margin: 18px 0 14px;
    font-size: 24px;
    line-height: 1.18;
}

.industry-service-card a {
    display: inline-flex;
    margin-top: 18px;
    color: #b94716;
    font-weight: 900;
    text-decoration: none;
}

.contact-details {
    display: grid;
    gap: 14px;
}

.contact-details a:not(.btn),
.site-footer a:not(.btn) {
    text-decoration: none;
}

.footer-link-button {
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.78);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.contact-details a:not(.btn):hover,
.site-footer a:not(.btn):hover {
    text-decoration: underline;
}

.footer-link-button:hover {
    text-decoration: underline;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #ddd2c9;
    border-radius: 7px;
    padding: 12px 13px;
    background: #fff;
    color: var(--ink);
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(244, 123, 50, 0.38);
    outline-offset: 2px;
}

.alert {
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.alert.success {
    background: #eaf8ee;
    border: 1px solid #b7dec2;
}

.alert.error {
    background: #fff0ec;
    border: 1px solid #f4b4a2;
}

.alert ul {
    margin: 8px 0 0;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline article {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas:
        "step title"
        "step text";
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}

.timeline span {
    grid-area: step;
}

.timeline h2 {
    grid-area: title;
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.timeline p {
    grid-area: text;
    margin: 0;
    color: var(--muted);
}

.process-page-grid .tool-panel h2 {
    font-size: clamp(32px, 3vw, 48px);
    overflow-wrap: anywhere;
}

.tool-panel section {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 18px;
}

.faq-section {
    background: var(--paper);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.faq-item > button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    background: transparent;
    padding: 18px;
    cursor: pointer;
    font-weight: 900;
    text-align: left;
}

.faq-item > div {
    padding: 0 18px 18px;
    color: var(--muted);
}

.narrow-content {
    max-width: 780px;
}

.site-footer {
    padding: 58px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 1fr 0.9fr;
    gap: 36px;
}

.footer-brand img {
    width: 220px;
    margin-bottom: 18px;
}

.site-footer h2 {
    font-size: 18px;
    margin: 0 0 14px;
}

.site-footer a:not(.btn),
.site-footer p {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 34px;
    padding-top: 18px;
    color: rgba(255, 255, 255, 0.68);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner {
    position: fixed;
    z-index: 160;
    left: 18px;
    right: 18px;
    bottom: 18px;
}

.cookie-banner-inner {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 8px;
    padding: 16px;
    background: rgba(20, 18, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
    display: grid;
    gap: 14px;
}

.cookie-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.cookie-banner-open {
    padding-bottom: 120px;
}

.quote-modal[hidden] {
    display: none;
}

.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.quote-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(35, 31, 32, 0.72);
}

.quote-dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(92vh, 820px);
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.quote-dialog h2 {
    margin: 0 0 18px;
    font-size: 32px;
}

.quote-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-weight: 900;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 1280px) {
    body {
        font-size: 17px;
        line-height: 1.65;
    }

    .primary-nav a {
        font-size: 16px;
    }

    .btn {
        font-size: 16px;
    }

    .hero p,
    .page-hero p:last-child {
        font-size: 21px;
    }
}

@media (min-width: 1600px) {
    body {
        font-size: 18px;
        line-height: 1.68;
    }

    .primary-nav a {
        font-size: 17px;
    }

    .btn {
        font-size: 17px;
    }

    .hero p,
    .page-hero p:last-child {
        font-size: 22px;
    }
}

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: fixed;
        inset: 82px 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #fffaf2;
        padding: 18px 20px 26px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .primary-nav.open {
        display: flex;
    }

    .header-quote {
        display: none;
    }

    .strip-grid,
    .proof-grid,
    .card-grid.three,
    .card-grid.two,
    .card-grid.four,
    .case-grid,
    .blog-grid,
    .industry-service-grid,
    .testimonial-grid,
    .process-card-grid,
    .mission-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-grid,
    .visual-band,
    .service-hero .service-hero-grid,
    .service-page-grid,
    .service-detail,
    .case-study-detail,
    .contact-layout,
    .process-page-grid {
        grid-template-columns: 1fr;
    }

    .contact-details,
    .tool-panel,
    .quote-card {
        position: static;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
        line-height: 1.55;
    }

    .container {
        width: min(100% - 28px, 1160px);
    }

    .brand img {
        width: 176px;
    }

    .header-inner {
        justify-content: flex-start;
        gap: 14px;
    }

    .nav-toggle {
        flex: 0 0 44px;
    }

    .primary-nav a {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
        min-height: 42px;
        padding: 10px 14px;
    }

    .hero .eyebrow {
        font-size: 12px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        max-width: 360px;
        margin-left: 14px;
        margin-right: auto;
        padding: 66px 0 86px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 40px;
        line-height: 1.02;
    }

    .hero p {
        width: min(100%, 360px);
    }

    .hero p,
    .page-hero p:last-child {
        font-size: 17px;
    }

    .section-heading h2,
    .split-section h2,
    .visual-band h2,
    .dark-cta h2,
    .mission-grid h2,
    .contact-details h2,
    .tool-panel h2,
    .narrow-content h2,
    .client-proof h2 {
        font-size: 28px;
        line-height: 1.15;
    }

    .service-hero h1 {
        font-size: 36px;
    }

    .proof-grid strong {
        font-size: 32px;
    }

    .section {
        padding: 58px 0;
    }

    .strip-grid,
    .proof-grid,
    .card-grid.three,
    .card-grid.two,
    .card-grid.four,
    .case-grid,
    .blog-grid,
    .industry-service-grid,
    .testimonial-grid,
    .process-card-grid,
    .service-proof-strip .proof-grid,
    .mission-grid,
    .footer-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .cta-grid,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions .btn {
        flex: 1 1 220px;
    }

    .quote-dialog {
        padding: 24px 18px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    .container {
        width: min(360px, calc(100% - 28px));
        margin-left: 14px;
        margin-right: auto;
    }

    .primary-nav a {
        font-size: 13px;
    }

    .btn {
        font-size: 13px;
        min-height: 40px;
        padding: 9px 12px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .section-heading h2,
    .split-section h2,
    .visual-band h2,
    .dark-cta h2,
    .mission-grid h2,
    .contact-details h2,
    .tool-panel h2,
    .narrow-content h2,
    .client-proof h2 {
        font-size: 24px;
        line-height: 1.2;
    }

    .service-hero h1 {
        font-size: 32px;
    }

    .page-hero p:last-child {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .hero-media,
    .reveal,
    .back-to-top {
        transition: none;
    }

    .hero-media {
        transform: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
