/* ════════════════════════════════════════════════════════════════
   COMMON.CSS — Shared design system for all pages
   Font: Roboto · Colors: Black / White / Red (#d90429)
   ════════════════════════════════════════════════════════════════ */

/* ── Reset & base ───────────────────────────────── */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: #111111;
    color: #ffffff;
}

a { color: inherit; }
img { max-width: 100%; }

/* ── CSS variables (kept for compatibility with existing markup) ── */
:root {
    --bg: #111111;
    --bg-alt: #0e0e0e;
    --surface: #1a1a1a;
    --border: #222222;
    --red: #d90429;
    --red-hover: #b8031f;
    --text: #ffffff;
    --muted: #888888;
    --muted-dim: #555555;
}

/* ── Shared container ───────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
}

/* ── Breadcrumb ─────────────────────────────────── */
.breadcrumb {
    padding: 18px 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted-dim);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}
.breadcrumb a { color: var(--muted-dim); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: #333; }

/* ── Page hero ──────────────────────────────────── */
.page-hero {
    padding: 80px 0 72px;
    border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-hero .eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--red);
}
.page-hero h1 {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 20px;
}
.page-hero h1 em,
.page-hero h1 span { font-style: normal; color: var(--red); }
.page-hero p {
    font-size: 16px;
    color: var(--muted);
    font-weight: 300;
    max-width: 560px;
    line-height: 1.7;
    margin: 0;
}

/* ── Section label / heading ────────────────────── */
.section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--red);
}
.section-header.centered { text-align: center; margin-bottom: 56px; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-label::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--red);
}
.section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}
.section-description,
.section-sub {
    font-size: 15px;
    color: var(--muted);
    font-weight: 300;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────── */
.btn-primary {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 28px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--red-hover); }

.btn-outline {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 28px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #333;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ── Section blocks ─────────────────────────────── */
.section-block { padding: 88px 0; border-bottom: 1px solid var(--border); }
.section-block.alt { background: var(--bg-alt); }
.section-divider { height: 1px; background: var(--border); }

/* ── Stats bar / strip (red band) ───────────────── */
.stats-bar {
    background: var(--red);
    padding: 0;
}
.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
}
.stat-item {
    padding: 32px 40px;
    border-right: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-item h2 {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0;
}
.stat-item p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
    margin: 4px 0 0;
    font-weight: 500;
}

/* ── Generic grid card (services / values / benefits) ── */
.grid-divided {
    display: grid;
    gap: 2px;
    background: var(--border);
}
.grid-divided.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-divided.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-divided.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card-tile {
    background: var(--bg);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: background 0.2s;
}
.card-tile::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.card-tile:hover { background: #161616; }
.card-tile:hover::after { transform: scaleX(1); }

.tile-icon-solid {
    width: 48px; height: 48px;
    background: var(--red);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.tile-icon-solid i { font-size: 22px; color: #fff; }

.tile-icon-outline {
    width: 48px; height: 48px;
    border: 1px solid var(--red);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.tile-icon-outline i { font-size: 22px; color: var(--red); }

.card-tile h3, .card-tile h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}
.card-tile p {
    font-size: 13px;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.7;
    margin: 0 0 20px;
}
.card-tile p:last-child { margin-bottom: 0; }
.card-tile a.read-more {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.card-tile a.read-more:hover { gap: 10px; }

/* ── Portfolio cards (image-forward, overlay on hover) ── */
.portfolio-grid,
.port-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
}
.portfolio-card,
.port-card {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: var(--bg);
}
.port-thumb { overflow: hidden; }
.port-thumb img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: none;
    transition: transform 0.4s ease;
}
.port-thumb-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
}
.port-thumb-placeholder i { font-size: 28px; color: #fff; opacity: 0.1; }

.port-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.port-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.port-category {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 6px;
    display: inline-block;
}
.port-body h3 { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; margin: 0 0 4px; }
.port-card:hover .port-thumb img,
.portfolio-card:hover .port-thumb img { transform: scale(1.04); }
.port-card:hover .port-overlay,
.portfolio-card:hover .port-overlay { opacity: 1; }
.port-card:hover .port-body,
.portfolio-card:hover .port-body { transform: translateY(0); opacity: 1; }

/* ── Testimonials ───────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
}
.testimonial-card {
    background: var(--bg);
    padding: 36px 32px;
    transition: background 0.2s;
}
.testimonial-card:hover { background: #161616; }
.testi-stars { color: var(--red); font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.testi-msg { font-size: 14px; color: #bbb; font-weight: 300; line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.testi-avatar {
    width: 42px; height: 42px;
    background: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.testi-info h4 { font-size: 14px; font-weight: 700; color: #fff; margin: 0; }
.testi-info p { font-size: 11px; color: var(--muted-dim); margin: 2px 0 0; }

/* ── Team cards ─────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
}
.team-card { background: var(--bg); overflow: hidden; transition: background 0.2s; }
.team-card:hover { background: #161616; }
.team-card .avatar-img {
    width: 100%; aspect-ratio: 1/1;
    object-fit: cover; object-position: top center;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s;
}
.team-card:hover .avatar-img { filter: grayscale(0%); }
.team-avatar {
    width: 100%; aspect-ratio: 1/1;
    background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; font-weight: 900; color: var(--red);
}
.team-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 24px 24px 4px; }
.team-card .position {
    font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--red); margin: 0 24px 12px; display: block;
}
.team-card p { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.6; margin: 0 24px 28px; }

/* ── About / intro split (visual + content) ─────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-visual {
    background: var(--surface);
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.about-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--red) 0%, transparent 55%);
    opacity: 0.07;
    pointer-events: none;
}
.about-icon-big { font-size: 80px; color: var(--red); display: block; margin-bottom: 28px; position: relative; z-index: 1; }
.about-content h2 { font-size: 36px; font-weight: 900; color: #fff; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 24px; }
.about-content p { font-size: 15px; color: #aaa; font-weight: 300; line-height: 1.8; margin: 0 0 16px; }

/* ── Partner cards ──────────────────────────────── */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
}
.partner-card {
    background: var(--bg);
    padding: 40px 28px;
    position: relative;
    overflow: hidden;
    transition: background 0.2s;
}
.partner-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.partner-card:hover { background: #161616; }
.partner-card:hover::after { transform: scaleX(1); }
.partner-icon {
    width: 52px; height: 52px;
    background: var(--red);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.partner-icon i { font-size: 24px; color: #fff; }
.partner-card h3 { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.3; margin: 0 0 8px; }
.partner-country {
    font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--red); display: inline-block; margin-bottom: 16px;
}
.partner-card p { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.7; margin: 0; }

/* ── Case study list ─────────────────────────────── */
.case-study-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    background: var(--bg);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: background 0.2s;
    margin-bottom: 2px;
}
.case-study-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}
.case-study-card:hover { background: #161616; }
.case-study-card:hover::before { transform: scaleY(1); }
.cs-thumb { overflow: hidden; background: var(--surface); }
.cs-thumb img,
.cs-thumb i { min-height: 260px; }
.cs-thumb i { width: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #fff; opacity: 0.08; }
.cs-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.cs-client { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cs-client span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 6px; }
.cs-body h3 { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.2; }
.cs-body p { font-size: 14px; color: #999; font-weight: 300; line-height: 1.75; margin: 0 0 24px; max-width: 620px; }

/* ── CTA section (bold red band) ────────────────── */
.cta-section {
    background: var(--red);
    padding: 88px 40px;
    text-align: center;
}
.cta-section h2 {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}
.cta-section p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    margin: 0 0 36px;
}
.cta-section .btn-primary { background: #111; }
.cta-section .btn-primary:hover { background: #000; }

/* ── Empty state ─────────────────────────────────── */
.empty-state { text-align: center; padding: 100px 40px; color: var(--muted-dim); }
.empty-state i { font-size: 56px; opacity: 0.2; display: block; margin-bottom: 18px; }
.empty-state p { font-size: 14px; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-divided.cols-3,
    .grid-divided.cols-4,
    .partner-grid,
    .team-grid,
    .testimonials-grid,
    .portfolio-grid,
    .port-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .case-study-card { grid-template-columns: 1fr; }
    .cs-thumb img, .cs-thumb i { min-height: 200px; }
    .cs-body { padding: 32px 28px; }
    .cs-body h3 { font-size: 22px; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .breadcrumb { padding: 14px 24px; }
    .page-hero { padding: 48px 0 40px; }
    .page-hero h1 { font-size: 34px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .cta-section { padding: 60px 24px; }
    .cta-section h2 { font-size: 28px; }
}

@media (max-width: 560px) {
    .page-hero h1 { font-size: 26px; }
    .grid-divided.cols-2,
    .grid-divided.cols-3,
    .grid-divided.cols-4,
    .partner-grid,
    .team-grid,
    .testimonials-grid,
    .portfolio-grid,
    .port-grid { grid-template-columns: 1fr; }
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
}
