/*
Theme Name: Terra Petrol
Theme URI: https://terra.kg
Author: Terra Petrol
Description: Corporate theme for Terra Petrol fuel supply.
Version: 1.0.0
Text Domain: terra-petrol
*/

:root {
  --canvas: #f2f5f5;
  --surface: #fbfcfc;
  --surface-muted: #e8eeee;
  --ink: #1d2d35;
  --ink-soft: #43545d;
  --muted: #697980;
  --line: #cbd5d6;
  --accent: #426775;
  --accent-deep: #314f5b;
  --radius: 6px;
  --wrap: min(1180px, calc(100% - 64px));
  --curve: cubic-bezier(.2, .75, .25, 1);
}

@font-face {
  font-family: "Inter";
  src: url("assets/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Inter", "Segoe UI", sans-serif; font-size: 16px; font-weight: 400; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "IBM Plex Sans", "Inter", sans-serif; letter-spacing: -.035em; line-height: 1.08; }
.wrap { width: var(--wrap); margin: 0 auto; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow-dark { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border: 1px solid var(--accent-deep); border-radius: var(--radius); font-size: 13px; font-weight: 650; line-height: 1; transition: background-color 180ms var(--curve), border-color 180ms var(--curve), color 180ms var(--curve), transform 180ms var(--curve); }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgb(66 103 117 / .32); outline-offset: 3px; }
.button-dark, .button-accent { color: #f8fbfb; background: var(--accent-deep); }
.button-dark:hover, .button-accent:hover { border-color: var(--ink); background: var(--ink); }
.button-light { color: var(--accent-deep); background: transparent; }
.button-light:hover { color: #f8fbfb; background: var(--accent-deep); }

/* Header */
.site-header { position: relative; z-index: 5; background: rgb(251 252 252 / .97); border-bottom: 1px solid var(--line); }
.nav-shell { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: grid; gap: 2px; line-height: 1.05; }
.brand-copy strong { font-family: "IBM Plex Sans", "Inter", sans-serif; font-size: 15px; font-weight: 600; }
.brand-copy small { display: none; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.desktop-nav { display: flex; align-items: center; gap: 3px; margin: 0; padding: 0; list-style: none; }
.desktop-nav li { margin: 0; padding: 0; list-style: none; }
.desktop-nav a { padding: 8px 10px; color: var(--ink-soft); border-radius: 4px; font-size: 13px; font-weight: 600; transition: color 180ms var(--curve), background-color 180ms var(--curve); }
.desktop-nav a:hover, .desktop-nav a.active, .desktop-nav a.current-menu-item, .desktop-nav a.current_page_item { color: var(--accent-deep); background: var(--surface-muted); }
.header-cta { justify-self: end; }
.nav-toggle, .menu-overlay { display: none; }

/* Shared page intro */
.page-intro { padding: 74px 0 48px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-intro-inner { max-width: none; }
.page-intro h1 { max-width: 650px; font-size: clamp(36px, 4vw, 52px); font-weight: 650; }
.page-intro p { max-width: 560px; margin-top: 18px; color: var(--ink-soft); font-size: 16px; }
.section { padding: 82px 0; }
.section-soft { background: var(--surface-muted); }
.section-heading { max-width: 650px; }
.section-heading h2 { font-size: clamp(29px, 3vw, 39px); font-weight: 650; }
.section-heading p { max-width: 580px; margin-top: 15px; color: var(--ink-soft); font-size: 15px; }

/* Home */
.hero { position: relative; overflow: hidden; color: #f8fbfb; background: url("assets/railway-supply-hero.webp") 62% center / cover no-repeat; }
.hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgb(17 31 38 / .97) 0%, rgb(17 31 38 / .88) 36%, rgb(17 31 38 / .42) 65%, rgb(17 31 38 / .16) 100%), linear-gradient(180deg, rgb(12 22 28 / .08), rgb(12 22 28 / .30)); }
.hero-inner { position: relative; display: flex; align-items: center; min-height: 610px; }
.hero-copy { padding: 96px 0; }
.hero-copy h1 { max-width: 720px; font-size: clamp(43px, 4.3vw, 61px); font-weight: 600; }
.hero-copy p { max-width: 540px; margin-top: 20px; color: #d8e4e7; font-size: 17px; }
.hero-copy > .button { margin-top: 30px; }
.hero .eyebrow { color: #bdd3d9; }
.hero .button-light { color: #f8fbfb; border-color: rgb(235 245 246 / .72); }
.hero .button-light:hover { color: var(--ink); border-color: #f8fbfb; background: #f8fbfb; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.fact-strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact-grid div { padding: 19px 28px 20px 0; }
.fact-grid div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.fact-grid span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; }
.fact-grid strong { font-size: 14px; font-weight: 650; }

.company-story { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 92px; align-items: center; }
.company-story-image { min-height: 500px; overflow: hidden; border-radius: var(--radius); background: var(--surface-muted); }
.company-story-image img, .field-section-image img { width: 100%; height: 100%; object-fit: cover; }
.company-story-copy { max-width: 620px; }
.story-kicker { margin-bottom: 17px; color: var(--accent); font-size: 13px; font-weight: 700; }
.company-story-copy h2, .field-section-copy h2 { font-size: clamp(30px, 3.3vw, 43px); font-weight: 650; }
.company-story-copy > p:not(.story-kicker), .field-section-copy > p { max-width: 590px; margin-top: 18px; color: var(--ink-soft); font-size: 16px; }
.company-story-copy .text-link { margin-top: 24px; }

.facts-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.facts-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-strip-grid > div { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; padding: 22px 26px; border-left: 1px solid var(--line); }
.facts-strip-grid > div:last-child { border-right: 1px solid var(--line); }
.facts-strip svg { grid-row: span 2; width: 25px; height: 25px; fill: none; stroke: var(--accent-deep); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.facts-strip strong { align-self: end; font-size: 15px; font-weight: 650; }
.facts-strip span { margin-top: 3px; color: var(--ink-soft); font-size: 12px; }

.home-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.home-services > a { display: grid; grid-template-rows: 190px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); transition: border-color 180ms var(--curve), transform 180ms var(--curve); }
.home-services > a:hover { border-color: var(--accent); transform: translateY(-2px); }
.home-service-media { overflow: hidden; }
.home-service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms var(--curve); }
.home-services > a:hover img { transform: scale(1.035); }
.home-service-body { display: flex; min-height: 230px; flex-direction: column; align-items: flex-start; padding: 23px 24px 24px; }
.home-service-type { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-services h3 { margin-top: 10px; font-size: 23px; font-weight: 600; }
.home-service-body > span:not(.home-service-type, .text-link) { margin-top: 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.home-service-body .text-link { margin-top: auto; }

.product-overview { display: grid; grid-template-columns: 1.06fr .94fr; gap: 54px; align-items: stretch; margin-top: 42px; }
.compact-heading h2 { font-size: clamp(31px, 3.2vw, 42px); font-weight: 600; }
.product-visual { position: relative; min-height: 390px; padding: 32px; color: #f8fbfb; background: linear-gradient(180deg, rgb(19 32 39 / .08), rgb(19 32 39 / .94)), url("assets/railway-terminal.webp") center / cover no-repeat; border-radius: var(--radius); }
.product-visual > div { position: absolute; right: 32px; bottom: 30px; left: 32px; }
.product-visual .product-kicker { color: #d8e3e5; }
.product-visual h3 { margin-top: 11px; font-size: 30px; font-weight: 600; }
.product-visual p { max-width: 450px; margin-top: 10px; color: #dce5e6; font-size: 15px; }
.product-visual .text-link { color: #f8fbfb; }
.product-kicker, .news-type { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.product-list { display: grid; align-content: center; }
.product-list a { padding: 26px 0; border-top: 1px solid var(--line); transition: padding-left 180ms var(--curve); }
.product-list a:last-child { border-bottom: 1px solid var(--line); }
.product-list a:hover { padding-left: 10px; }
.product-list h3 { margin-top: 9px; font-size: 24px; font-weight: 600; }
.product-list p { max-width: 400px; margin-top: 8px; color: var(--ink-soft); font-size: 14px; }
.text-link { display: inline-block; margin-top: 13px; color: var(--accent-deep); font-size: 13px; font-weight: 650; }

.delivery-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; align-items: center; }
.delivery-image { height: 430px; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.delivery-image img { width: 100%; height: 100%; object-fit: cover; }
.delivery-copy h2 { font-size: clamp(31px, 3.2vw, 42px); font-weight: 600; }
.delivery-copy > p { margin-top: 14px; color: var(--ink-soft); }
.delivery-facts { margin: 30px 0 0; }
.delivery-facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.delivery-facts div:last-child { border-bottom: 1px solid var(--line); }
.delivery-facts dt { font-weight: 650; }
.delivery-facts dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }

.quote-layout { display: grid; grid-template-columns: .55fr 1.45fr; gap: 90px; align-items: start; }
.quote-data { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 34px; }
.quote-data > div { display: grid; grid-template-columns: 42px 1fr; align-items: center; min-height: 74px; border-top: 1px solid var(--line); }
.quote-data span { color: var(--accent); font-size: 12px; font-weight: 700; }
.quote-data strong { font-size: 17px; font-weight: 600; }
.quote-data .button { grid-column: 1 / -1; justify-self: start; margin-top: 28px; }

.company-proof { background: var(--surface); border-top: 1px solid var(--line); }
.company-proof-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; }
.company-proof h2 { font-size: clamp(31px, 3.2vw, 42px); font-weight: 600; }
.company-proof-main p { max-width: 560px; margin-top: 8px; color: var(--ink-soft); font-size: 14px; }
.company-proof-main .text-link { margin-top: 24px; }
.company-proof-docs ul { margin: 0; padding: 0; list-style: none; }
.company-proof-docs li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.company-proof-docs li:last-child { border-bottom: 1px solid var(--line); }

.about-company { display: grid; grid-template-columns: .72fr 1.28fr; gap: 82px; align-items: center; }
.about-company-copy h2 { font-size: clamp(31px, 3.2vw, 42px); font-weight: 600; }
.about-company-copy p { margin-top: 17px; color: var(--ink-soft); }
.about-company-image { height: 460px; overflow: hidden; border-radius: var(--radius); }
.about-company-image img { width: 100%; height: 100%; object-fit: cover; }
.responsibility-layout { display: grid; grid-template-columns: .62fr 1.38fr; gap: 84px; }
.responsibility-list article { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; padding: 20px 0; border-top: 1px solid var(--line); }
.responsibility-list article:last-child { border-bottom: 1px solid var(--line); }
.responsibility-list h3 { font-size: 18px; font-weight: 600; }
.responsibility-list p, .company-requisites p { color: var(--ink-soft); font-size: 14px; }
.company-requisites { padding-top: 5px; }
.company-requisites strong { display: block; margin-bottom: 12px; font-size: 18px; }
.company-requisites p + p { margin-top: 8px; }

.field-section { display: grid; grid-template-columns: .92fr 1.08fr; gap: 84px; align-items: center; }
.field-section-copy { max-width: 580px; }
.field-section-image { min-height: 470px; overflow: hidden; border-radius: var(--radius); background: var(--surface-muted); }
.field-points { display: grid; gap: 0; margin-top: 30px; }
.field-points p { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.field-points p:last-child { border-bottom: 1px solid var(--line); }
.field-points strong { font-size: 15px; font-weight: 650; }
.field-points span { color: var(--ink-soft); font-size: 14px; }

.client-sectors { border-top: 1px solid var(--line); background: var(--surface); }
.client-sectors-layout { display: grid; grid-template-columns: 1.06fr .94fr; gap: 18px; }
.client-sectors-media { position: relative; min-height: 430px; overflow: hidden; color: #f8fbfb; border-radius: var(--radius); background: var(--ink); }
.client-sectors-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgb(13 27 34 / .08) 20%, rgb(13 27 34 / .88) 100%); }
.client-sectors-media img { width: 100%; height: 100%; object-fit: cover; }
.client-sectors-media > div { position: absolute; z-index: 1; right: 34px; bottom: 31px; left: 34px; }
.client-sectors-media .eyebrow { color: #d4e1e3; }
.client-sectors-media h2 { margin-top: 11px; font-size: clamp(30px, 3vw, 40px); font-weight: 600; }
.client-sectors-media p { max-width: 410px; margin-top: 11px; color: #d8e4e6; font-size: 15px; }
.client-sectors-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.client-sectors-list article { display: flex; min-height: 0; flex-direction: column; justify-content: flex-end; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-muted); }
.client-sectors-list h3 { font-size: 20px; font-weight: 600; }
.client-sectors-list p { margin-top: 9px; color: var(--ink-soft); font-size: 14px; }

.industries-layout { display: grid; grid-template-columns: minmax(240px, .67fr) minmax(0, 1.33fr); gap: 90px; }
.industry-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 38px; align-content: start; }
.industry-list article { padding: 17px 0 18px; border-top: 1px solid var(--line); }
.industry-list article:last-child { grid-column: 1 / -1; }
.industry-list h3 { font-size: 18px; font-weight: 600; }
.industry-list p { margin-top: 6px; color: var(--ink-soft); font-size: 14px; }

.control-section { background: #e4ecee; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.control-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 92px; }
.control-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 48px; padding-top: 5px; }
.control-list article { padding-left: 16px; border-left: 2px solid var(--accent); }
.control-list h3 { font-size: 18px; font-weight: 600; }
.control-list p { margin-top: 6px; color: var(--ink-soft); font-size: 14px; }

.testimonials { background: var(--surface); border-bottom: 1px solid var(--line); }
.testimonials-heading { max-width: 590px; }
.testimonials-heading h2 { font-size: clamp(29px, 3vw, 39px); font-weight: 600; }
.testimonials-heading p { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }
.testimonials-layout { display: grid; grid-template-columns: 1.02fr .98fr; grid-template-rows: 1fr 1fr; column-gap: 68px; margin-top: 40px; }
.testimonial { padding: 25px 0; border-top: 1px solid var(--line); }
.testimonial-primary { grid-row: 1 / span 2; align-self: stretch; padding: 34px; border: 0; border-radius: var(--radius); background: #dfeaec; }
.testimonial blockquote { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.46; }
.testimonial-primary blockquote { max-width: 460px; font-family: "IBM Plex Sans", "Inter", sans-serif; font-size: 25px; line-height: 1.25; }
.testimonial footer { display: grid; gap: 2px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.testimonial footer strong { color: var(--ink); font-size: 14px; font-weight: 650; }
.testimonial-label { display: inline-flex; margin-bottom: 18px; color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }

/* About */
.about-lead { display: grid; grid-template-columns: 1.08fr .92fr; gap: 84px; align-items: center; }
.about-lead-media { min-height: 480px; overflow: hidden; border-radius: var(--radius); background: var(--surface-muted); }
.about-lead-media img { width: 100%; height: 100%; object-fit: cover; }
.about-lead-copy { max-width: 540px; }
.about-lead-copy h2, .careers-copy h2 { font-size: clamp(30px, 3.3vw, 43px); font-weight: 650; }
.about-lead-copy > p:not(.story-kicker), .careers-copy > p:not(.story-kicker) { margin-top: 17px; color: var(--ink-soft); font-size: 16px; }
.about-lead-copy .text-link { margin-top: 24px; }
.director-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.director-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(42px, 7vw, 92px); align-items: center; }
.director-layout > img { width: 100%; height: 390px; object-fit: cover; object-position: center 28%; border-radius: var(--radius); }
.director-copy { max-width: 600px; }
.director-copy h2 { margin-top: 12px; font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; }
.director-copy p { max-width: 540px; margin-top: 18px; color: var(--ink-soft); font-size: 16px; }
.team-role { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.team-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 76px; align-items: start; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.team-card { min-height: 184px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.team-card-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 180px 1fr; gap: 24px; min-height: 224px; padding: 0; overflow: hidden; }
.team-card-feature img { width: 100%; height: 100%; object-fit: cover; }
.team-card-feature > div { align-self: end; padding: 24px; }
.team-card h3 { font-size: 20px; font-weight: 600; }
.team-card p { margin-top: 9px; color: var(--ink-soft); font-size: 14px; }
.careers-section { background: var(--surface-muted); }
.careers-panel { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-top: 34px; padding-bottom: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.careers-panel h2 { font-size: clamp(27px, 2.7vw, 36px); font-weight: 600; }
.careers-panel p { max-width: 620px; margin-top: 9px; color: var(--ink-soft); }

.contact-band { background: var(--accent-deep); color: #f8fbfb; }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 42px; padding: 53px 0; }
.contact-band h2 { max-width: 620px; color: #fff; font-size: clamp(29px, 3.1vw, 40px); font-weight: 600; }
.contact-band p { max-width: 570px; margin-top: 11px; color: #d9e4e6; font-size: 15px; }
.contact-band .eyebrow { color: #d5e1e3; }
.contact-band .button { color: var(--accent-deep); border-color: #eff5f5; background: #eff5f5; }
.contact-band .button:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

/* Services */
.service-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.service-product { display: grid; grid-template-rows: 205px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); transition: border-color 180ms var(--curve), transform 180ms var(--curve); }
.service-product:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-product > img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms var(--curve); }
.service-product-petrol > img { object-position: center 72%; }
.service-product:hover > img { transform: scale(1.035); }
.service-product > span { display: flex; min-height: 240px; flex-direction: column; align-items: flex-start; padding: 23px 24px 24px; }
.service-product small { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.service-product h2 { margin-top: 11px; font-size: 24px; font-weight: 600; }
.service-product p { margin-top: 11px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.service-product b { margin-top: auto; color: var(--accent-deep); font-size: 13px; font-weight: 650; }
.service-support { padding-top: 0; }
.service-support-panel { display: grid; grid-template-columns: .78fr 1.22fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.service-support-copy { padding: 42px; background: #dfe8e9; }
.service-support-copy h2 { margin-top: 12px; font-size: clamp(30px, 3.2vw, 42px); font-weight: 600; }
.service-support-copy p { max-width: 400px; margin-top: 16px; color: var(--ink-soft); }
.service-support-copy .button { margin-top: 30px; }
.service-support-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.service-support-list article { display: flex; min-height: 250px; flex-direction: column; justify-content: center; padding: 30px 24px; border-left: 1px solid var(--line); }
.service-support-list h3 { font-size: 21px; font-weight: 600; }
.service-support-list p { margin-top: 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

/* News */
.news-hero { padding: 72px 0 52px; background: var(--surface); border-bottom: 1px solid var(--line); }
.news-hero h1 { max-width: 660px; font-size: clamp(36px, 4vw, 52px); font-weight: 650; }
.news-hero p { max-width: 570px; margin-top: 16px; color: var(--ink-soft); }
.news-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: start; }
.news-feature { display: block; border-bottom: 1px solid var(--line); }
.news-feature-media { height: 250px; overflow: hidden; border-radius: var(--radius); background: var(--surface-muted); }
.news-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.news-feature-copy { padding: 22px 0 26px; }
.news-feature time, .news-list time, .article-meta { color: var(--accent); font-size: 12px; font-weight: 650; }
.news-feature .news-type { display: block; margin-top: 8px; }
.news-feature h2, .news-list h2 { margin-top: 12px; font-size: 26px; font-weight: 600; }
.news-feature p, .news-list p { margin-top: 8px; color: var(--ink-soft); font-size: 14px; }
.news-list a { display: block; padding: 0 0 26px; }
.news-list a + a { padding-top: 25px; border-top: 1px solid var(--line); }
.news-list h2 { font-size: 22px; }
.passport-grid span { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.passport-section { background: var(--surface-muted); }
.passport-heading { max-width: 760px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; line-height: 1.2; }
.passport-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.passport-grid article { display: flex; min-height: 220px; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.passport-grid h3 { margin-top: 13px; font-size: 21px; font-weight: 600; }
.passport-grid p { margin-top: 9px; color: var(--ink-soft); font-size: 14px; }
.passport-grid a { margin-top: auto; padding-top: 24px; color: var(--accent-deep); font-size: 13px; font-weight: 650; }

/* Contacts and long-form pages */
.contact-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 88px; }
.contact-details h1, .contact-details h2 { font-size: 30px; font-weight: 600; }
.contact-link { display: block; width: fit-content; margin-top: 14px; color: var(--accent-deep); font-size: 18px; font-weight: 600; }
.contact-fact { max-width: 420px; margin-top: 30px; padding-top: 17px; border-top: 1px solid var(--line); }
.contact-fact strong { font-size: 13px; font-weight: 650; }
.contact-fact p { margin-top: 7px; color: var(--ink-soft); font-size: 14px; }
.request-shell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.request-form { padding: 30px; }
.form-heading h2 { font-size: 28px; font-weight: 600; }
.form-heading p { margin-top: 8px; color: var(--ink-soft); font-size: 14px; }
.request-form label { display: grid; gap: 7px; margin-top: 18px; font-size: 13px; font-weight: 600; }
.request-form em { color: var(--accent); font-style: normal; }
.form-label-title { display: block; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.form-row label { margin-top: 0; }
.form-honeypot { display: none !important; }
.request-form input, .request-form textarea { width: 100%; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; font-size: 14px; }
.request-form input::placeholder, .request-form textarea::placeholder { color: #87959a; }
.request-form input:focus, .request-form textarea:focus { border-color: var(--accent); outline: 2px solid rgb(66 103 117 / .15); }
.request-form .button { width: 100%; margin-top: 21px; }
.form-privacy { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.form-privacy a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.request-form .button:disabled { cursor: wait; opacity: .65; transform: none; }
.form-note { min-height: 20px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.form-note.is-success { color: var(--accent-deep); }
.form-note.is-error { color: #8e4a3c; }
.js-contact-form.is-submitted .form-fields, .js-contact-form.is-submitted .form-note { display: none; }
.js-contact-form.is-submitted { min-height: 610px; }
.form-success { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 24px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, var(--surface-muted), var(--surface)); }
.form-success[hidden] { display: none; }
.form-success-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--accent-deep); font-size: 23px; line-height: 1; }
.form-success .eyebrow { margin-bottom: 8px; color: var(--accent-deep); }
.form-success h3 { font-size: 27px; font-weight: 600; }
.form-success p { max-width: 470px; margin-top: 9px; color: var(--ink-soft); font-size: 14px; }
.form-success-note { display: block; max-width: 470px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.inner-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.inner-hero-content { padding: 72px 0 48px; }
.inner-hero-content h1 { max-width: 700px; font-size: clamp(36px, 4vw, 52px); font-weight: 650; }
.inner-hero-content p { max-width: 560px; margin-top: 17px; color: var(--ink-soft); font-size: 16px; }
.article-wrap { width: min(760px, calc(100% - 48px)); margin: 0 auto; }
.article-header { width: 100%; max-width: none; margin: 0; padding: 52px max(24px, calc((100% - 760px) / 2)) 38px; background: var(--surface); border-bottom: 1px solid var(--line); }
.article-header .article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.article-header h1 { max-width: 760px; font-size: clamp(32px, 3vw, 44px); font-weight: 650; }
.article-header p { max-width: 640px; margin-top: 17px; color: var(--ink-soft); }
.article-content, .article-body { max-width: 760px; padding: 66px 0; }
.article-content h2, .article-body h2 { margin: 44px 0 16px; font-size: 29px; font-weight: 600; }
.article-content h3, .article-body h3 { margin: 30px 0 11px; font-size: 21px; font-weight: 600; }
.article-content p, .article-content li, .article-body p, .article-body li { color: var(--ink-soft); font-size: 16px; }
.article-content p + p, .article-body p + p { margin-top: 17px; }
.article-content ul, .article-content ol, .article-body ul, .article-body ol { display: grid; gap: 10px; padding-left: 22px; }
.article-content a, .article-body a, .back-link, .article-footer a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-callout { margin: 34px 0; padding: 23px 25px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface-muted); }
.article-callout strong { font-size: 18px; font-weight: 600; }
.article-callout p { margin-top: 7px; }
.article-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 70px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.back-link { display: inline-flex; margin-bottom: 28px; font-size: 13px; font-weight: 600; }

/* Footer and motion */
.site-footer { color: #dbe4e6; background: #263941; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .65fr .8fr; gap: 60px; padding: 48px 0; }
.footer-brand { color: #fff; font-size: 17px; font-weight: 650; }
.footer-grid p { max-width: 285px; margin-top: 8px; color: #bdcccf; font-size: 13px; }
.footer-grid nav, .footer-grid > div:last-child { display: grid; align-content: start; gap: 9px; }
.footer-grid a { font-size: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 17px 0; border-top: 1px solid rgb(219 228 230 / .25); color: #aabcc0; font-size: 11px; }
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--curve), transform 420ms var(--curve); }
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  :root { --wrap: calc(100% - 32px); }
  body { overflow-x: hidden; }
  .nav-shell { grid-template-columns: 1fr auto; min-height: 66px; }
  .desktop-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 8px 0; border: 0; color: var(--ink); background: transparent; font-size: 13px; font-weight: 600; }
  .nav-toggle-lines { position: relative; width: 21px; height: 14px; }
  .nav-toggle-lines i { position: absolute; right: 0; left: 0; height: 1px; background: currentColor; transition: transform 220ms var(--curve), top 220ms var(--curve); }
  .nav-toggle-lines i:first-child { top: 3px; }
  .nav-toggle-lines i:last-child { top: 10px; }
  .nav-open .nav-toggle-lines i:first-child { top: 7px; transform: rotate(45deg); }
  .nav-open .nav-toggle-lines i:last-child { top: 7px; transform: rotate(-45deg); }
  .nav-open { overflow: hidden; }
  .menu-overlay { position: fixed; inset: 0; z-index: 4; display: grid; align-content: center; gap: 28px; padding: 42px 8%; color: #f7fbfb; visibility: hidden; opacity: 0; background: var(--accent-deep); transition: opacity 220ms var(--curve), visibility 220ms var(--curve); }
  .nav-open .menu-overlay { visibility: visible; opacity: 1; }
  .menu-close { position: absolute; top: 24px; right: 8%; display: inline-flex; padding: 8px 0; border: 0; color: #f7fbfb; background: transparent; font: inherit; font-size: 13px; font-weight: 600; }
  .menu-overlay nav { display: grid; gap: 14px; }
  .menu-overlay a { font-size: 30px; font-weight: 600; letter-spacing: -.035em; }
  .menu-overlay p { max-width: 280px; color: #d5e1e3; font-size: 14px; }
  .product-overview, .industries-layout, .control-layout, .news-layout, .contact-layout, .company-story, .field-section, .about-lead, .team-layout, .delivery-layout, .quote-layout, .company-proof-layout, .about-company, .responsibility-layout, .home-services, .client-sectors-layout, .service-product-grid, .service-support-panel, .careers-panel { grid-template-columns: 1fr; gap: 34px; }
  .facts-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-strip-grid > div:nth-child(3) { border-left: 0; }
  .hero { background-position: 65% center; }
  .hero-copy { padding-bottom: 44px; }
  .hero::before { background: linear-gradient(90deg, rgb(25 43 51 / .91), rgb(25 43 51 / .66)); }
  .hero-inner { min-height: 520px; }
  .hero-copy { padding: 64px 0; }
  .hero-copy h1 { font-size: clamp(37px, 10vw, 49px); }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid div, .fact-grid div + div { padding: 15px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .fact-grid div:last-child { border-bottom: 0; }
  .page-intro { padding: 44px 0 32px; }
  .section { padding: 52px 0; }
  .article-content, .article-body { padding: 46px 0; }
  .product-visual { min-height: 320px; }
  .company-story-image { min-height: 460px; }
  .field-section-image { min-height: 380px; }
  .about-lead-media { min-height: 380px; }
  .delivery-image, .about-company-image { height: 380px; }
  .director-layout { grid-template-columns: .82fr 1.18fr; }
  .company-proof-layout { gap: 42px; }
  .control-list { gap: 24px; }
  .testimonials-layout { grid-template-columns: 1fr; grid-template-rows: auto; gap: 0; }
  .testimonial-primary { grid-row: auto; margin-bottom: 26px; }
  .service-support-list { grid-template-columns: repeat(3, 1fr); }
  .news-feature-media { height: 220px; }
  .passport-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-band-inner { display: grid; gap: 24px; }
  .contact-band .button { width: fit-content; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  :root { --wrap: calc(100% - 28px); }
  .brand-copy small { display: none; }
  .page-intro { padding: 36px 0 28px; }
  .hero-copy { padding-top: 48px; }
  .hero-copy p, .page-intro p, .inner-hero-content p { font-size: 15px; }
  .button-row { display: grid; grid-template-columns: 1fr; }
  .button-row .button { width: 100%; }
  .product-visual { min-height: 290px; padding: 24px; }
  .product-visual > div { right: 24px; bottom: 24px; left: 24px; }
  .product-visual h3 { font-size: 27px; }
  .client-sectors-list, .industry-list, .control-list { grid-template-columns: 1fr; }
  .client-sectors-media { min-height: 350px; }
  .field-points p { grid-template-columns: 1fr; gap: 4px; }
  .testimonial-primary { padding: 26px; }
  .testimonial-primary blockquote { font-size: 22px; }
  .director-layout, .passport-grid { grid-template-columns: 1fr; }
  .director-layout > img { height: 390px; }
  .facts-strip-grid { grid-template-columns: 1fr; }
  .facts-strip-grid > div, .facts-strip-grid > div:nth-child(3) { border-right: 0; border-left: 0; }
  .industry-list article:last-child { grid-column: auto; }
  .service-product { grid-template-rows: 190px 1fr; }
  .careers-panel { grid-template-columns: 1fr; gap: 22px; }
  .careers-panel .button { width: fit-content; }
  .service-support-copy { padding: 30px 24px; }
  .service-support-list { grid-template-columns: 1fr; }
  .service-support-list article { min-height: 0; padding: 24px; border-top: 1px solid var(--line); border-left: 0; }
  .request-form { padding: 24px; }
  .js-contact-form.is-submitted { min-height: 734px; }
  .form-success { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .article-header { padding: 32px 14px 24px; }
  .article-content, .article-body { padding: 36px 0; }
  .article-wrap { width: calc(100% - 28px); }
  .article-footer, .footer-bottom { display: grid; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card-feature { grid-template-columns: 1fr; }
  .team-card-feature img { max-height: 270px; }
  .quote-data { grid-template-columns: 1fr; }
  .quote-data .button { grid-column: auto; width: 100%; }
  .responsibility-list article { grid-template-columns: 1fr; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
