/* =========================================================
   EuroAsia IT — Global Stylesheet
   Premium black & white corporate IT theme
   ========================================================= */

/* ---------- Variables ---------- */
:root {
    --black: #000000;
    --white: #ffffff;
    --dark: #111111;
    --dark-grey: #222222;
    --grey: #777777;
    --light-grey: #f5f5f5;
    --border: #dddddd;

    --font-heading: 'Manrope', 'Inter', Arial, sans-serif;
    --font-body: 'Inter', Arial, sans-serif;

    --container-width: 1200px;
    --radius: 4px;
    --transition: 0.3s ease;
    --header-height: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; }

p { color: var(--grey); }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

section { padding: 100px 0; }

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 16px;
    position: relative;
    padding-left: 28px;
}
.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 2px;
    background: var(--black);
}
.section-tag.on-dark { color: var(--white); }
.section-tag.on-dark::before { background: var(--white); }

.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.btn-primary:hover { background: var(--dark-grey); border-color: var(--dark-grey); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-white {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.btn-white:hover { background: var(--light-grey); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
    width: 100%;
    background: var(--black);
    color: #ccc;
}
.topbar-inner {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 40px;
    font-size: 0.82rem;
}
.topbar-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; }
.topbar-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-weight: 500;
    transition: color var(--transition);
}
.topbar-contact a svg { flex-shrink: 0; opacity: 0.8; }
.topbar-contact a:hover { color: var(--white); }
.topbar-meta { color: #999; letter-spacing: 0.02em; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }

.header-inner {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 40px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    color: var(--black);
    margin-right: auto;
    flex-shrink: 0;
    display: block;
}
.logo span { color: var(--grey); font-weight: 500; }
.logo img { height: 44px; width: auto; display: block; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 36px; }
.main-nav a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark-grey);
    position: relative;
    padding: 6px 0;
    transition: color var(--transition);
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--black);
    transition: width var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--black); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-cta-item { display: none; }
.main-nav a.nav-cta-mobile {
    color: var(--white);
    padding: 13px 24px;
}
.main-nav a.nav-cta-mobile::after { display: none; }
.main-nav a.nav-cta-mobile:hover { color: var(--white); opacity: 0.85; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-cta { padding: 12px 26px; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--black);
    transition: all var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    background: var(--black);
    color: var(--white);
    padding: 160px 0 130px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.82) 40%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.4) 100%);
}
.hero-inner {
    width: 90%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}
.hero-content { max-width: 640px; }
.hero-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--grey);
    margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero-text { color: #cfcfcf; font-size: 1.08rem; max-width: 520px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- About / split section ---------- */
.about-inner,
.section-inner {
    width: 90%;
    margin: 0 auto;
    padding: 0 40px;
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.split-left h2 { margin-top: 10px; }
.split-left p, .split-right p { margin-bottom: 18px; font-size: 1.02rem; }
.split-left .btn, .split-right .btn { margin-top: 14px; }

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.service-card {
    background: var(--white);
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-6px);
    border-color: var(--black);
}
.service-card .card-top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-bottom: 28px;
}
.service-icon {
    width: 40px;
    height: 40px;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.92rem; margin-bottom: 24px; }
.service-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    width: fit-content;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--black);
    border-bottom: 2px solid var(--black);
    padding-bottom: 3px;
}
.service-read-more span {
    display: inline-block;
    transition: transform var(--transition);
}
.service-card:hover .service-read-more span { transform: translateX(4px); }
.service-card:hover .arrow { border-color: rgba(255,255,255,0.4); color: var(--white); transform: rotate(45deg); }

/* ---------- Why choose us (dark) ---------- */
.why-section { background: var(--black); color: var(--white); }
.why-section .section-head h2 { color: var(--white); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 20px;
}
.why-item { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; }
.why-item h3 { color: var(--white); margin-bottom: 12px; }
.why-item p { color: #a8a8a8; font-size: 0.95rem; }
.why-icon { width: 36px; height: 36px; margin-bottom: 18px; }

/* ---------- Industries ---------- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.industry-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}
.industry-card:hover {
    border-color: var(--black);
    background: var(--light-grey);
    transform: translateY(-4px);
}
.industry-card h3 { font-size: 1.05rem; }

/* ---------- Statistics ---------- */
.stats-section { background: var(--light-grey); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}
.stat-item { padding: 0 20px; border-left: 1px solid var(--border); }
.stat-item:first-child { border-left: none; }
.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--black);
}
.stat-label { margin-top: 8px; font-size: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--grey); }

/* ---------- Portfolio ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.portfolio-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.portfolio-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.08); transform: translateY(-6px); }
.portfolio-thumb {
    height: 400px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-grey) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.35);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
}
.portfolio-body { padding: 28px; }
.portfolio-industry {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 10px;
}
.portfolio-body h3 { margin-bottom: 10px; }
.portfolio-body p { font-size: 0.92rem; margin-bottom: 18px; }
.portfolio-link { font-weight: 700; font-size: 0.9rem; border-bottom: 2px solid var(--black); padding-bottom: 3px; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.testimonial-card {
    background: var(--light-grey);
    border-radius: var(--radius);
    padding: 32px;
}
.testimonial-quote { font-size: 1rem; color: var(--dark-grey); margin-bottom: 24px; }
.testimonial-author { font-weight: 700; color: var(--black); font-size: 0.92rem; }
.testimonial-role { font-size: 0.85rem; color: var(--grey); }

/* ---------- CTA ---------- */
.cta-section {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 110px 0;
}
.cta-section h2 { color: var(--white); max-width: 700px; margin: 0 auto 20px; }
.cta-section p { max-width: 560px; margin: 0 auto 36px; color: #bbb; }

/* ---------- Contact section (home) ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}
.contact-info-item { padding: 22px 0; border-top: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: 1px solid var(--border); }
.contact-info-item .label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; }
.contact-info-item a, .contact-info-item span { font-size: 1.05rem; font-weight: 600; color: var(--black); }

/* ---------- Forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-grey);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--dark);
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-error { color: #b00020; font-size: 0.8rem; margin-top: 6px; display: block; }
.field-invalid { border-color: #b00020 !important; }

.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    font-size: 0.92rem;
    font-weight: 600;
}
.alert-success { background: #eafaf0; color: #146c3a; border: 1px solid #b3e6c6; }
.alert-error { background: #fdecec; color: #a3111f; border: 1px solid #f5c2c2; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    background: var(--black);
    color: var(--white);
    padding: 90px 0 70px;
    text-align: center;
}
.page-hero-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    filter: invert(1);
}
.page-hero .breadcrumb {
    font-size: 0.85rem;
    color: var(--grey);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { max-width: 640px; margin: 0 auto; color: #b8b8b8; }

/* ---------- Values / feature list (about page) ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.value-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
}
.value-card:hover { border-color: var(--black); box-shadow: 0 16px 32px rgba(0,0,0,0.06); }
.value-card h3 { margin-bottom: 12px; }
.value-card p { font-size: 0.92rem; }

.bg-light { background: var(--light-grey); }
.bg-dark { background: var(--black); color: var(--white); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }

/* ---------- Services listing page ---------- */
.services-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.service-list-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.service-list-media {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.service-list-media img { width: 100%; height: 100%; object-fit: cover; }
.service-list-card:hover { border-color: var(--black); background: var(--light-grey); }
.service-list-card .num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--grey);
    min-width: 44px;
}
.service-list-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-bottom: 14px;
}
.service-list-card h3 { margin-bottom: 8px; }
.service-list-card p { font-size: 0.92rem; margin-bottom: 12px; }
.service-list-card .link { font-weight: 700; font-size: 0.88rem; }

/* ---------- Individual service page ---------- */
.benefits-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.benefit-item, .feature-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.benefit-item .icon, .feature-item .icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.approach-steps { counter-reset: step; }
.approach-step {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
}
.approach-step:last-child { border-bottom: 1px solid var(--border); }
.approach-step .step-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--border);
    min-width: 56px;
}
.related-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-service-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 700;
    transition: all var(--transition);
}
.related-service-card:hover { background: var(--black); color: var(--white); }

/* ---------- Careers page ---------- */
.jobs-list { border-top: 1px solid var(--border); }
.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}
.job-item h3 { margin-bottom: 6px; }
.job-meta { font-size: 0.85rem; color: var(--grey); }
.perks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.perk-item { text-align: center; padding: 28px 16px; border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #ccc; padding-top: 80px; }
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
}
.footer-brand p { color: #999; font-size: 0.92rem; margin: 18px 0 24px; max-width: 300px; }
.footer-logo { color: var(--white); }
.footer-logo span { color: #888; }
.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.footer-col ul li { margin-bottom: 14px; }
.footer-col ul li a, .footer-col ul li { font-size: 0.92rem; color: #999; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact li { color: #999; }

.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    transition: all var(--transition);
}
.social-links a:hover { background: var(--white); color: var(--black); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 26px 0; }
.footer-bottom-inner { text-align: center; }
.footer-bottom p { color: #888; font-size: 0.85rem; }

/* ---------- Photography treatment ---------- */
.tech-image {
    transition: transform 0.5s ease;
}

/* ---------- About image stack ---------- */
.about-visual { display: flex; justify-content: flex-end; }
.about-image-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin-top: 8px;
}
.about-img-main {
    width: 100%;
    aspect-ratio: 9 / 10;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}
.about-img-accent {
    position: absolute;
    width: 55%;
    aspect-ratio: 7 / 8;
    object-fit: cover;
    left: -32px;
    bottom: -36px;
    border: 6px solid var(--white);
    border-radius: var(--radius);
    box-shadow: 0 24px 48px rgba(0,0,0,0.18);
    display: block;
}

/* ---------- Service card media ---------- */
.service-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.service-card-media { height: 400px; overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-body {
    padding: 32px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ---------- Industry card media ---------- */
.industry-card { padding: 0; overflow: hidden; text-align: left; }
.industry-card-media { height: 400px; overflow: hidden; }
.industry-card-media img { width: 100%; height: 100%; object-fit: cover; }
.industry-card-body { padding: 18px 20px; text-align: center; }
.industry-card-body h3 { font-size: 1rem; }
.industry-card-detailed { border: 1px solid var(--border); border-radius: var(--radius); transition: all var(--transition); }
.industry-card-detailed:hover { border-color: var(--black); }
.industry-card-detailed .industry-card-body { text-align: left; }
.industry-card-detailed .industry-card-body p { font-size: 0.9rem; margin-top: 8px; }

.industries-grid-detailed { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.industries-grid-detailed .industry-card-media { height: 240px; }
.industries-grid-detailed .industry-card-body { padding: 28px 30px; }
.industries-grid-detailed .industry-card-body h3 { font-size: 1.2rem; }
.industries-grid-detailed .industry-card-body p { font-size: 0.98rem; }

/* ---------- Portfolio thumb zoom ---------- */
.portfolio-thumb {
    height: 400px;
    overflow: hidden;
    position: relative;
}
.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.06); }

/* ---------- Page hero with background photo (careers / service detail) ---------- */
.page-hero.has-media { position: relative; overflow: hidden; isolation: isolate; }
.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.page-hero.has-media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.86) 100%);
}
.page-hero.has-media .container { position: relative; z-index: 2; }

/* ---------- Contact page subtle visual ---------- */
.contact-visual { margin-top: 40px; border-radius: var(--radius); overflow: hidden; }
.contact-visual img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .container { padding-left: 28px; padding-right: 28px; }
    .header-inner, .topbar-inner, .about-inner, .section-inner, .hero-inner { padding-left: 28px; padding-right: 28px; }
    .main-nav ul { gap: 24px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .stat-item:nth-child(3) { border-left: none; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid, .features-grid { grid-template-columns: 1fr; }
    .related-services-grid { grid-template-columns: repeat(2, 1fr); }
    .perks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    section { padding: 72px 0; }
    .hero { padding: 120px 0 80px; }
    .about-inner { grid-template-columns: 1fr; gap: 36px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .services-list-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }

    .container { padding-left: 24px; padding-right: 24px; }
    .header-inner, .topbar-inner, .about-inner, .section-inner, .hero-inner { padding-left: 24px; padding-right: 24px; }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
        margin-left: 0;
    }
    .main-nav.open { max-height: 500px; overflow-y: auto; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
    .main-nav a { display: block; padding: 14px 0; }
    .header-cta { display: none; }
    .menu-toggle { display: flex; }

    .nav-cta-item { display: block; margin-top: 10px; }
    .main-nav a.nav-cta-mobile { display: flex; justify-content: center; }

    .topbar-meta { display: none; }
    .topbar-contact { gap: 18px; }
}

@media (max-width: 768px) {
    .container { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-item:nth-child(odd) { border-left: none; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .form-row { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .related-services-grid { grid-template-columns: 1fr; }
    .perks-grid { grid-template-columns: 1fr 1fr; }
    .about-image-stack { max-width: 320px; }
    .about-img-accent { left: -14px; bottom: -20px; width: 58%; border-width: 4px; }
    .job-item { flex-direction: column; align-items: flex-start; }
    h1 { font-size: clamp(2rem, 8vw, 2.6rem); }

    .header-inner, .topbar-inner, .about-inner, .section-inner, .hero-inner { padding-left: 16px; padding-right: 16px; }
    .topbar-inner { justify-content: center; padding-top: 8px; padding-bottom: 8px; }
    .topbar-contact { gap: 14px; font-size: 0.76rem; }
    .logo { font-size: 1.15rem; }
    .logo img { height: 34px; }

    .service-list-card { flex-wrap: wrap; }
    .service-list-media { width: 100%; height: 160px; }
}
