/*
Theme Name: MetalService
Theme URI: https://www.metalservice.in.ua/
Author: BM Metal-Service
Description: Custom theme for BM Metal-Service — manufacturing metal structures and custom metal products in Kyiv.
Version: 1.0.0
Text Domain: metalservice
*/

:root {
    --bg: #f4f5f6;
    --surface: #ffffff;
    --ink: #17191c;
    --ink-2: #23272c;
    --line: #e3e5e8;
    --line-2: #d3d6da;
    --muted: #5c636b;
    --silver: #c4c9ce;
    --ember: #1b5e20;
    --ember-deep: #0a3d0a;
    --on-dark: #e9ebed;
    --on-dark-mut: #969da4;
    --dark-line: #363b41;
    --maxw: 1180px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
section[id] {
    scroll-margin-top: 80px;
}
body {
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
    max-width: 100%;
}
h1,
h2,
h3 {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    overflow-wrap: break-word;
    word-break: break-word;
}
.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}
.eyebrow {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ember);
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    padding: 15px 26px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
    background: var(--ember);
    color: #fff;
}
.btn-primary:hover {
    background: var(--ember-deep);
}
.btn-dark {
    background: transparent;
    border-color: var(--line-2);
    color: var(--ink);
}
.btn-dark:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}
.btn:active {
    transform: translateY(1px);
}
.btn svg {
    width: 16px;
    height: 16px;
}

/* ===== Header ===== */
.hdr {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.hdr-in {
    display: flex;
    align-items: center;
    height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}
.brand img {
    height: 36px;
    width: auto;
}
.brand b {
    font-family: "Oswald";
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.05rem;
    white-space: nowrap;
}
.nav {
    display: flex;
    gap: 26px;
    margin-left: 44px;
}
.nav a {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
    white-space: nowrap;
}
.nav a:hover {
    color: var(--ember);
}

/* WordPress menu reset */
.nav ul {
    list-style: none;
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
}
.nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav li::marker {
    content: none;
}
.nav li a {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
    white-space: nowrap;
}
.nav li a:hover {
    color: var(--ember);
}

/* Dropdown menu */
.nav li.menu-item-has-children {
    position: relative;
}
.nav li.menu-item-has-children > a {
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nav li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.25s;
    flex-shrink: 0;
}
.nav li.menu-item-has-children:hover > a::after {
    transform: rotate(-135deg) translateY(-1px);
}
.nav .sub-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0,0,0,.10);
    padding: 8px 0;
    margin-top: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    z-index: 100;
    gap: 0;
}
.nav .sub-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}
.nav li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.nav .sub-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav .sub-menu li::marker {
    content: none;
}
.nav .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--ink);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.nav .sub-menu li a:hover {
    background: var(--bg);
    color: var(--ember);
}

/* Language switcher */
.lang-switcher {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}
.lang-switcher ul {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}
.lang-switcher li {
    margin: 0;
    padding: 0;
}
.lang-switcher li a {
    font-family: "Oswald", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding: 6px 8px;
    transition: color 0.2s;
}
.lang-switcher li.current-lang a {
    color: var(--ember);
}
.lang-switcher li a:hover {
    color: var(--ink);
}

.hdr-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}
.hdr-phone {
    font-family: "Oswald";
    font-weight: 600;
    color: var(--ink);
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}
.burger {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    position: relative;
    z-index: 80;
}
.burger span {
    width: 26px;
    height: 2px;
    background: var(--ink);
    display: block;
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.hdr.open .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hdr.open .burger span:nth-child(2) {
    opacity: 0;
}
.hdr.open .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.hdr-call {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--ember);
}
.hdr-call svg {
    width: 22px;
    height: 22px;
}
.nav-cta {
    display: none;
}

/* ===== Hero ===== */
.hero {
    background: var(--bg);
    padding: 72px 0 84px;
}
.hero-in {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
    align-items: center;
}
.hero-copy .eyebrow {
    display: block;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(1.8rem, 5.4vw, 3.3rem);
    font-weight: 700;
    color: var(--ink);
    overflow-wrap: break-word;
}
.hero-copy p {
    max-width: 480px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 1.08rem;
}
.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.hero-trust {
    list-style: none;
    display: flex;
    gap: 26px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.hero-trust li {
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 9px;
}
.hero-trust li::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--ember);
    flex: none;
}
.hero-visual {
    position: relative;
}
.hero-visual img {
    width: 100%;
    aspect-ratio: 4/3.4;
    object-fit: cover;
}
.hero-badge {
    position: absolute;
    left: -22px;
    bottom: -22px;
    background: var(--ink);
    color: #fff;
    padding: 22px 26px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.hero-badge b {
    font-family: "Oswald";
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1;
    color: #fff;
}
.hero-badge span {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    max-width: 90px;
}

/* ===== Advantages ===== */
.adv {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.adv-item {
    padding: 44px 30px;
    border-right: 1px solid var(--line);
}
.adv-item:last-child {
    border-right: 0;
}
.adv-ic {
    width: 34px;
    height: 34px;
    color: var(--ember);
    margin-bottom: 18px;
}
.adv-ic svg {
    width: 34px;
    height: 34px;
}
.adv-item h3 {
    font-size: 1.3rem;
    color: var(--ink);
    margin: 0 0 12px;
}
.adv-item p {
    font-size: 0.93rem;
    color: var(--muted);
}

/* ===== Materials grid ===== */
.mat-grid {
    grid-template-columns: repeat(3, 1fr);
}
.mat-grid .mat-cell {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.mat-grid .mat-cell:nth-child(3n) {
    border-right: 0;
}
.mat-grid .mat-cell:nth-last-child(-n + 3) {
    border-bottom: 0;
}

/* ===== Section frame ===== */
.sec {
    padding: 96px 0;
}
.sec-head {
    margin-bottom: 54px;
    max-width: 720px;
}
.sec-head .eyebrow {
    display: block;
    margin-bottom: 16px;
}
.sec-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--ink);
}
.sec-head p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.05rem;
}

/* ===== About ===== */
.about-in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-media img {
    width: 100%;
    aspect-ratio: 4/3.2;
    object-fit: cover;
}
.about-txt .eyebrow {
    display: block;
    margin-bottom: 16px;
}
.about-txt h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    color: var(--ink);
}
.about-txt p {
    margin-top: 18px;
    color: var(--muted);
}
.about-metrics {
    display: flex;
    gap: 18px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.metric {
    border: 1px solid var(--line);
    padding: 16px 20px;
    min-width: 130px;
    background: var(--surface);
}
.metric b {
    font-family: "Oswald";
    font-size: 1.7rem;
    display: block;
    color: var(--ink);
}
.metric span {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ===== Services ===== */
.services {
    background: var(--surface);
    border-top: 1px solid var(--line);
}
.svc-cat {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 42px 0 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.svc-cat::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--line-2);
    box-shadow: 0 14px 34px rgba(23, 25, 28, 0.1);
}
.card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-img img {
    transform: scale(1.06);
}
.card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-body h3 {
    font-size: 1.18rem;
    color: var(--ink);
    margin-bottom: 10px;
}
.card-body p {
    font-size: 0.9rem;
    color: var(--muted);
    flex: 1;
}
.price {
    margin: 0;
    border-top: 0;
    padding-top: 0;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--ember);
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}
.price .from {
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.card-foot {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card-link {
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.82rem;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: color 0.2s, gap 0.2s;
}
.card-link svg {
    width: 14px;
    height: 14px;
}
.card-link:hover {
    color: var(--ember);
    gap: 10px;
}

/* ===== Process ===== */
.proc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    counter-reset: step;
}
.step {
    padding: 30px 24px 30px 0;
    border-top: 2px solid var(--ink);
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font-family: "Oswald";
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ember);
    display: block;
    margin-bottom: 14px;
}
.step h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
    color: var(--ink);
}
.step p {
    font-size: 0.88rem;
    color: var(--muted);
}

/* ===== Projects ===== */
.projects {
    background: var(--bg);
    border-top: 1px solid var(--line);
}
.proj-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.proj {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--ink);
    display: block;
}
.proj img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
    backface-visibility: hidden;
}
.proj:hover img {
    transform: scale(1.06);
}
.proj-cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px;
    background: linear-gradient(transparent, rgba(23, 25, 28, 0.92));
    color: #fff;
}
.proj-cap b {
    font-family: "Oswald";
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.02em;
}
.proj-cap span {
    display: block;
    font-size: 0.82rem;
    color: var(--silver);
    margin-top: 4px;
}

/* ===== CTA band ===== */
.cta-band {
    background: var(--ink);
    color: #fff;
    padding: 44px 0;
}
.cta-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.cta-txt h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    color: #fff;
}
.cta-txt p {
    margin-top: 8px;
    color: var(--on-dark-mut);
    font-size: 0.98rem;
    max-width: 460px;
}
.cta-act {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.cta-phone {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: 0.02em;
}
.cta-phone:hover {
    color: var(--ember);
}

/* ===== Contacts ===== */
.contacts {
    background: var(--ink-2);
    color: var(--on-dark);
}
.contacts .sec-head h2 {
    color: #fff;
}
.contacts .sec-head .eyebrow {
    color: #ffffff;
}
.contacts .sec-head {
    margin-bottom: 30px;
}
.cont-in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.cont-list {
    display: flex;
    flex-direction: column;
}
.cont-item {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--dark-line);
}
.cont-item .ic {
    flex: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--dark-line);
    display: grid;
    place-items: center;
    color: #ffffff;
}
.cont-item .ic svg {
    width: 20px;
    height: 20px;
}
.cont-item .lab {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-dark-mut);
}
.cont-item .val {
    font-size: 1.05rem;
    color: #fff;
    margin-top: 3px;
}
.cont-item .val a:hover {
    color: var(--ember);
}
.form {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 32px;
}
.form h3 {
    color: var(--ink);
    font-size: 1.4rem;
    margin-bottom: 6px;
}
.form .hint {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 22px;
}
.field {
    margin-bottom: 16px;
}
.field label {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 7px;
}
.field input,
.field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-2);
    color: var(--ink);
    padding: 13px 14px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--ember);
}
.field textarea {
    resize: vertical;
    min-height: 90px;
}
.form .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

/* ===== CF7 integration ===== */
.form .wpcf7 {
    margin: 0;
}
.form .wpcf7-form p {
    margin: 0;
}
.form .wpcf7-form br {
    display: none;
}
.form .wpcf7-form-control-wrap {
    display: block;
}
.form .wpcf7-form-control-wrap input,
.form .wpcf7-form-control-wrap textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-2);
    color: var(--ink);
    padding: 13px 14px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.form .wpcf7-form-control-wrap input:focus,
.form .wpcf7-form-control-wrap textarea:focus {
    outline: none;
    border-color: var(--ember);
}
.form .wpcf7-form-control-wrap textarea {
    resize: vertical;
    min-height: 90px;
}
.form .wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    padding: 15px 26px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    background: var(--ember);
    color: #fff;
    width: 100%;
    margin-top: 6px;
    transition: transform 0.15s ease, background 0.2s ease;
}
.form .wpcf7 input[type="submit"]:hover {
    background: var(--ember-deep);
}
.form .wpcf7 .wpcf7-response-output {
    border-color: var(--ember) !important;
    color: var(--ink);
    font-size: 0.88rem;
    margin: 16px 0 0;
    padding: 12px;
}
.form .wpcf7 .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 4px;
}
.form .wpcf7-spinner {
    display: none;
}

/* ===== SEO + footer ===== */
.seo {
    background: var(--ink-2);
    color: #a9afb6;
    padding: 64px 0;
    border-top: 1px solid var(--dark-line);
}
.seo h2 {
    font-family: "Oswald", sans-serif;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.seo-intro {
    font-size: 0.95rem;
    max-width: 940px;
    color: #b9bfc5;
    margin-bottom: 40px;
}
.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 52px;
}
.seo-grid h3 {
    font-family: "Oswald", sans-serif;
    font-size: 1.12rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
}
.seo-grid p {
    font-size: 0.9rem;
    color: #a7adb4;
    margin: 0;
}
.ftr {
    background: var(--ink);
    color: var(--on-dark-mut);
    padding: 40px 0;
    border-top: 1px solid var(--dark-line);
}
.ftr-in {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.ftr .brand {
    color: #fff;
}
.ftr .brand img {
    filter: brightness(0) invert(1);
}
.ftr .brand b {
    font-size: 0.95rem;
}

/* ===== FAQ accordion ===== */
.faq-list {
    border-top: 1px solid var(--line);
}
.faq-item {
    border-bottom: 1px solid var(--line);
}
.faq-q {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--ink);
    text-align: left;
    transition: color 0.2s;
}
.faq-q:hover {
    color: var(--ember);
}
.faq-ic {
    width: 20px;
    height: 20px;
    flex: none;
    transition: transform 0.3s ease;
    color: var(--ember);
    pointer-events: none;
}
.faq-item.open .faq-ic {
    transform: rotate(180deg);
}
.faq-a {
    display: none;
    padding-bottom: 20px;
}
.faq-item.open .faq-a {
    display: block;
}
.faq-a p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
    opacity: 1;
    transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .hero-in {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-visual {
        order: -1;
    }
    .hero-badge {
        left: 0;
        bottom: -18px;
        padding: 18px 22px;
    }
    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .adv-item:nth-child(2) {
        border-right: 0;
    }
    .adv-item:nth-child(1),
    .adv-item:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }
    .mat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mat-grid .mat-cell {
        border-right: 1px solid var(--line) !important;
        border-bottom: 1px solid var(--line) !important;
    }
    .mat-grid .mat-cell:nth-child(2n) {
        border-right: 0 !important;
    }
    .mat-grid .mat-cell:nth-last-child(-n + 2) {
        border-bottom: 0 !important;
    }
    .about-in,
    .cont-in {
        grid-template-columns: 1fr;
        gap: 36px;
        min-width: 0;
    }
    .about-in > *,
    .cont-in > * {
        min-width: 0;
    }
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .proc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 24px;
    }
    .proj-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .nav,
    .hdr-phone {
        display: none;
    }
    .hdr-cta .btn-primary {
        display: none;
    }
    .hdr-call {
        display: flex;
    }
    .brand b {
        font-size: 0.95rem;
    }
    .burger {
        display: flex;
    }
    /* full-screen overlay menu */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--ink);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0;
        margin: 0;
        padding: 88px 32px 32px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
        z-index: 70;
        overflow-y: auto;
    }
    .nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    /* Mobile dropdown accordion */
    .nav li.menu-item-has-children {
        position: relative;
    }
    .nav li.menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav li.menu-item-has-children > a::after {
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.3s;
        flex-shrink: 0;
        margin-top: 0;
    }
    .nav li.menu-item-has-children.sub-open > a::after {
        transform: rotate(-135deg);
    }
    .nav li.menu-item-has-children:hover > .sub-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .nav .sub-menu {
        position: static;
        transform: none;
        min-width: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.25s;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .nav .sub-menu::before {
        display: none;
    }
    .nav li.menu-item-has-children.sub-open > .sub-menu {
        max-height: 600px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav .sub-menu li a {
        font-family: "IBM Plex Sans", sans-serif;
        font-weight: 400;
        font-size: 1rem;
        letter-spacing: 0.02em;
        text-transform: none;
        color: var(--on-dark-mut);
        padding: 12px 0 12px 20px;
        border-bottom: 1px solid var(--dark-line);
    }
    .nav .sub-menu li a:hover,
    .nav .sub-menu li a:active {
        color: var(--ember);
        background: transparent;
    }
    .hdr.open .nav .sub-menu li a {
        opacity: 1;
        transform: none;
    }
    .hdr.open .nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav a,
    .nav li a {
        color: var(--on-dark);
        font-family: "Oswald", sans-serif;
        font-weight: 600;
        font-size: 1.6rem;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        padding: 16px 0;
        width: 100%;
        border-bottom: 1px solid var(--dark-line);
        opacity: 0;
        transform: translateX(-16px);
        transition: color 0.2s, opacity 0.4s ease, transform 0.4s ease;
        display: block;
    }
    .hdr.open .nav a,
    .hdr.open .nav li a {
        opacity: 1;
        transform: none;
    }
    .hdr.open .nav a:nth-child(1),
    .hdr.open .nav li:nth-child(1) a {
        transition-delay: 0.08s;
    }
    .hdr.open .nav a:nth-child(2),
    .hdr.open .nav li:nth-child(2) a {
        transition-delay: 0.13s;
    }
    .hdr.open .nav a:nth-child(3),
    .hdr.open .nav li:nth-child(3) a {
        transition-delay: 0.18s;
    }
    .hdr.open .nav a:nth-child(4),
    .hdr.open .nav li:nth-child(4) a {
        transition-delay: 0.23s;
    }
    .hdr.open .nav a:nth-child(5),
    .hdr.open .nav li:nth-child(5) a {
        transition-delay: 0.28s;
    }
    .hdr.open .nav a:nth-child(6),
    .hdr.open .nav li:nth-child(6) a {
        transition-delay: 0.33s;
    }
    .nav a:active,
    .nav li a:active {
        color: var(--ember);
    }
    .nav .nav-cta {
        display: block;
        margin-top: 26px;
        border-bottom: 0;
        background: var(--ember);
        color: #fff;
        text-align: center;
        padding: 18px 24px;
        width: 100%;
    }
    body.menu-open {
        overflow: hidden;
    }
    .hdr.open {
        background: transparent;
        border-bottom-color: transparent;
    }
    .hdr.open .hdr-in {
        position: relative;
        z-index: 80;
    }
    .hdr.open .brand b {
        color: #fff;
    }
    .hdr.open .brand img {
        filter: brightness(0) invert(1);
    }
    .hdr.open .burger span {
        background: #fff;
    }
    .hdr.open .hdr-call {
        color: var(--ember);
    }
}

@media (max-width: 760px) {
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 620px) {
    .sec {
        padding: 64px 0;
    }
    .svc-grid {
        grid-template-columns: 1fr;
    }
    .proj-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-metrics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .metric {
        min-width: 0;
        padding: 14px 10px;
        text-align: center;
    }
    .metric b {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
    }
    .metric span {
        font-size: 0.6rem;
        letter-spacing: 0.06em;
    }
    .adv-grid {
        grid-template-columns: 1fr;
    }
    .adv-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .mat-grid {
        grid-template-columns: 1fr;
    }
    .mat-grid .mat-cell {
        border-right: 0 !important;
        border-bottom: 1px solid var(--line) !important;
    }
    .mat-grid .mat-cell:last-child {
        border-bottom: 0 !important;
    }
    .cta-in {
        flex-direction: column;
        align-items: flex-start;
    }
    .proc-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .step {
        padding: 26px 0;
        border-top: 2px solid var(--ink);
    }
    .faq-q {
        font-size: 1rem;
        gap: 12px;
        padding: 18px 0;
    }
    .sec[style] {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    .hero {
        padding: 48px 0 56px;
    }
    .hdr-cta {
        gap: 6px;
    }
    .hdr-call {
        width: 38px;
        height: 38px;
    }
    .brand img {
        height: 30px;
    }
    .brand b {
        font-size: 0.82rem;
    }
    .wrap {
        padding: 0 16px;
    }
}

@media (max-width: 360px) {
    .wrap {
        padding: 0 14px;
    }
    .hdr-cta {
        gap: 4px;
    }
    .hdr-call {
        width: 34px;
        height: 34px;
    }
    .brand {
        gap: 8px;
    }
    .brand img {
        height: 28px;
    }
    .brand b {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .card,
    .card-img img,
    .proj img {
        transition: none;
    }
}
