/* ================================================================
   MSC Electronics – Main Stylesheet
   Colour palette: Red #D4181A · Dark #1A1A1A · White #FFFFFF
   ================================================================ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    --red:         #D4181A;
    --red-dark:    #b01315;
    --red-light:   #f5e6e6;
    --dark:        #1A1A1A;
    --dark-2:      #2a2a2a;
    --dark-3:      #3a3a3a;
    --gray:        #666666;
    --gray-light:  #999999;
    --bg-light:    #F7F7F7;
    --white:       #FFFFFF;
    --border:      #E5E5E5;

    --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius:      6px;
    --radius-lg:   12px;
    --shadow:      0 2px 16px rgba(0,0,0,0.08);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.12);

    --container:   1180px;
    --nav-h:       70px;
    --topbar-h:    38px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 80px 0; }
.section--gray { background: var(--bg-light); }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { color: var(--gray); line-height: 1.75; }

.text-red { color: var(--red); }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-light);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; }

.section-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-red {
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,24,26,0.3); }

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

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ── Header Topbar ───────────────────────────────────────────── */
.header-topbar {
    background: var(--dark);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.topbar-left { display: flex; gap: 24px; }
.topbar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    transition: color 0.2s;
}
.topbar-link:hover { color: var(--white); }
.topbar-right { display: flex; gap: 16px; }
.topbar-badge {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.02em;
}

/* ── Site Nav ─────────────────────────────────────────────────── */
.site-nav {
    background: var(--white);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
}

/* Logo */
.site-logo { display: flex; align-items: center; text-decoration: none; }
.logo-text { display: flex; align-items: center; gap: 10px; }
.logo-msc {
    font-size: 2rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: -0.04em;
    line-height: 1;
}
.logo-sub { display: flex; flex-direction: column; line-height: 1.1; }
.logo-sub span { font-size: 0.6rem; color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; }
.logo-sub strong { font-size: 0.85rem; font-weight: 800; color: var(--dark); letter-spacing: 0.05em; text-transform: uppercase; }
.logo-text--white .logo-sub span { color: rgba(255,255,255,0.5); }
.logo-text--white .logo-sub strong { color: var(--white); }

/* Nav menu */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-3);
    border-radius: var(--radius);
    transition: all 0.2s;
}
.nav-list li a:hover,
.nav-list li.current-menu-item a { color: var(--red); background: var(--red-light); }

.nav-cta { margin-left: 16px; }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius);
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
    position: relative;
    background: var(--dark);
    overflow: hidden;
    min-height: 580px;
    display: flex;
    flex-direction: column;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(212,24,26,0.15) 0%, transparent 60%),
        linear-gradient(to right, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.2) 100%);
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; }
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 80px 0 40px;
    width: 100%;
}
.hero-content { flex: 1; max-width: 620px; }
.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    border: 1px solid rgba(212,24,26,0.4);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Experience badge */
.exp-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    text-align: center;
    box-shadow: 0 0 0 6px rgba(212,24,26,0.2), 0 0 0 12px rgba(212,24,26,0.1);
    flex-shrink: 0;
}
.exp-number { font-size: 2.6rem; font-weight: 900; line-height: 1; }
.exp-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.3; margin-top: 4px; }

/* Stats bar */
.hero-stats {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 0;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
    text-align: center;
}
.stat-item strong { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.stat-item span { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

/* ── Page Hero ───────────────────────────────────────────────── */
.page-hero {
    padding: 64px 0;
    text-align: center;
}
.page-hero--dark {
    background: var(--dark);
    background-image: linear-gradient(135deg, rgba(212,24,26,0.12) 0%, transparent 60%);
}
.page-hero--dark .section-tag { background: rgba(212,24,26,0.2); }
.page-hero--dark h1 { color: var(--white); }
.page-hero--dark p { color: rgba(255,255,255,0.65); font-size: 1.1rem; max-width: 560px; margin: 12px auto 0; }

/* ── Services Section ────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.service-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--red-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.service-link { font-size: 0.85rem; font-weight: 600; color: var(--red); transition: gap 0.2s; }
.service-link:hover { text-decoration: underline; }

/* ── Service Detail (Services page) ─────────────────────────── */
.service-detail {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 48px;
    align-items: start;
    padding: 48px 0;
}
.service-detail--reverse { direction: rtl; }
.service-detail--reverse > * { direction: ltr; }

.service-detail-icon {
    width: 100px;
    height: 100px;
    background: var(--red-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    flex-shrink: 0;
}
.service-detail-icon svg { width: 52px; height: 52px; }
.service-detail-content h2 { margin-bottom: 16px; }
.service-detail-content p { margin-bottom: 20px; }
.service-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin-top: 16px;
}
.feature-list li {
    font-size: 0.9rem;
    color: var(--gray);
    padding-left: 18px;
    position: relative;
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 700;
}

/* ── Why Section ─────────────────────────────────────────────── */
.why-inner {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 72px;
    align-items: center;
}
.why-content .section-tag { margin-bottom: 12px; }
.why-content h2 { margin-bottom: 16px; }
.why-intro { font-size: 1.05rem; margin-bottom: 28px; }
.why-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-check {
    width: 22px;
    height: 22px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.why-list li div { display: flex; flex-direction: column; }
.why-list li strong { font-size: 0.95rem; color: var(--dark); margin-bottom: 2px; }
.why-list li span { font-size: 0.87rem; color: var(--gray); }
.why-image-inner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.why-image-inner img { width: 100%; }

/* ── Areas Section ───────────────────────────────────────────── */
.areas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}
.area-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.area-card:hover { box-shadow: var(--shadow); }
.area-card svg { width: 32px; height: 32px; color: var(--red); margin: 0 auto 12px; }
.area-card strong { display: block; font-size: 1.2rem; margin-bottom: 8px; }
.area-card span { font-size: 0.87rem; color: var(--gray); }

/* ── Projects Preview ─────────────────────────────────────────── */
.projects-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.project-tag {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
    transition: all 0.2s;
}
.project-tag:hover { border-color: var(--red); background: var(--red-light); }
.project-tag strong { font-size: 0.85rem; color: var(--dark); }
.project-tag span { font-size: 0.75rem; color: var(--gray); }

/* ── Projects Page ────────────────────────────────────────────── */
.projects-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 64px;
}
.projects-stat {
    background: var(--white);
    text-align: center;
    padding: 32px 20px;
}
.projects-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--red); margin-bottom: 4px; }
.projects-stat span { font-size: 0.85rem; color: var(--gray); }

.projects-category { margin-bottom: 48px; }
.projects-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    padding: 12px 0;
    border-bottom: 2px solid var(--red);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.projects-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 24px;
}
.project-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.project-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    margin-top: 6px;
    flex-shrink: 0;
}
.project-item-info { display: flex; flex-direction: column; }
.project-item-info strong { font-size: 0.9rem; color: var(--dark); }
.project-item-info span { font-size: 0.8rem; color: var(--gray); margin-top: 2px; }

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
    background: var(--red);
    background-image: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
    padding: 64px 0;
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-content h2 { color: var(--white); font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 8px; }
.cta-content p { color: rgba(255,255,255,0.8); font-size: 1rem; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Contact Snippet ─────────────────────────────────────────── */
.contact-snippet { background: var(--bg-light); padding: 56px 0; }
.contact-snippet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.contact-snippet-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.contact-snippet-item svg {
    width: 24px;
    height: 24px;
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-snippet-item div { display: flex; flex-direction: column; gap: 3px; }
.contact-snippet-item strong { font-size: 0.85rem; color: var(--dark); }
.contact-snippet-item a,
.contact-snippet-item span { font-size: 0.85rem; color: var(--gray); }
.contact-snippet-item a:hover { color: var(--red); }

/* ── About Page ──────────────────────────────────────────────── */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 72px;
    align-items: start;
}
.about-intro-content .section-tag { margin-bottom: 12px; }
.about-intro-content h2 { margin-bottom: 20px; }
.about-intro-content p { margin-bottom: 16px; }

.about-intro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}
.about-stat {
    background: var(--white);
    text-align: center;
    padding: 28px 16px;
}
.about-stat strong { display: block; font-size: 1.8rem; font-weight: 900; color: var(--red); margin-bottom: 4px; }
.about-stat span { font-size: 0.8rem; color: var(--gray); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.value-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.value-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.value-icon { width: 52px; height: 52px; background: var(--red-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--red); margin: 0 auto 16px; }
.value-icon svg { width: 28px; height: 28px; }
.value-card h3 { margin-bottom: 10px; font-size: 1rem; }
.value-card p { font-size: 0.87rem; }

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.credential-card {
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
}
.credential-number { font-size: 1.1rem; font-weight: 800; color: var(--red); margin-bottom: 8px; }
.credential-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ── Contact Page ─────────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 56px;
    align-items: start;
}

.contact-info-panel h2,
.contact-form-panel h2 { margin-bottom: 32px; }

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.contact-detail-item:last-of-type { border-bottom: none; }
.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: var(--red-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; }
.contact-detail-item > div { display: flex; flex-direction: column; gap: 3px; }
.contact-detail-item strong { font-size: 0.85rem; font-weight: 700; color: var(--dark); }
.contact-detail-item a,
.contact-detail-item span { font-size: 0.9rem; color: var(--gray); }
.contact-detail-item a:hover { color: var(--red); }

.contact-credentials { display: flex; flex-direction: column; gap: 8px; margin: 24px 0; }
.credential-badge {
    font-size: 0.78rem;
    color: var(--gray);
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-weight: 500;
}

.contact-map { margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.required { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--dark);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(212,24,26,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}
.form-success svg { width: 24px; height: 24px; color: #16a34a; flex-shrink: 0; }
.form-success strong { display: block; color: #15803d; margin-bottom: 4px; }
.form-success p { font-size: 0.9rem; color: #166534; margin: 0; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer { background: var(--dark); }
.footer-main { padding: 72px 0 48px; }
.footer-grid {
    display: grid;
    grid-template-columns: 280px 1fr 1fr 240px;
    gap: 48px;
}

.footer-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.5); margin: 20px 0 16px; line-height: 1.7; }
.footer-brand .logo-text { margin-bottom: 4px; }
.footer-licence { font-size: 0.78rem; color: rgba(255,255,255,0.35); line-height: 1.8; }

.footer-col h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.87rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px !important; }
.footer-contact-list li { display: flex !important; gap: 10px; align-items: flex-start; }
.footer-contact-list li svg { color: var(--red); flex-shrink: 0; margin-top: 1px; }
.footer-contact-list li a,
.footer-contact-list li span { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-contact-list li a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin: 0; }

/* ── General page content ─────────────────────────────────────── */
.page-main { padding: 64px 0; }
.page-content h1 { margin-bottom: 24px; }
.page-content p { margin-bottom: 16px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .why-inner { grid-template-columns: 1fr; }
    .why-image { display: none; }
    .about-intro { grid-template-columns: 1fr; }
    .about-intro-stats { position: static; grid-template-columns: repeat(4, 1fr); }
    .credentials-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-snippet-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-list { grid-template-columns: repeat(2, 1fr); }
    .projects-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    :root { --topbar-h: 0px; }
    .header-topbar { display: none; }

    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        border-top: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 99;
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; }
    .nav-list { flex-direction: column; width: 100%; }
    .nav-list li a { padding: 12px 16px; border-radius: var(--radius); }
    .nav-cta { margin: 8px 0 0; text-align: center; }

    .hero-inner { flex-direction: column; text-align: center; padding: 60px 0 32px; }
    .hero-actions { justify-content: center; }
    .hero-badge-block { order: -1; }
    .stats-row { gap: 0; }
    .stat-item { padding: 0 20px; }
    .stat-divider { display: none; }

    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }

    .service-detail { grid-template-columns: 1fr; }
    .service-detail--reverse { direction: ltr; }
    .service-detail-icon { width: 72px; height: 72px; }
    .feature-list { grid-template-columns: 1fr; }

    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }
}

@media (max-width: 640px) {
    .section { padding: 56px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-snippet-grid { grid-template-columns: 1fr; }
    .areas-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .credentials-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .about-intro-stats { grid-template-columns: repeat(2, 1fr); }
    .projects-list { grid-template-columns: 1fr; }
    .projects-summary { grid-template-columns: repeat(2, 1fr); }
    .stat-item { flex: 1 1 calc(50% - 20px); }
}

/* ================================================================
   Elementor Integration
   ================================================================ */

/* Remove default body margin Elementor sometimes adds */
body.elementor-page { overflow-x: hidden; }

/* Stretch Elementor sections full-width correctly */
#page-content { width: 100%; }
#page-content > .elementor { width: 100%; }

/* Max-width container for Elementor boxed sections */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1180px;
}

/* Override Elementor default typography to match our brand */
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font);
    line-height: 1.2;
}
.elementor-widget-text-editor { color: var(--gray); line-height: 1.75; }

/* Elementor button widget matches our style */
.elementor-button.elementor-button-link {
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

/* Elementor divider */
.elementor-divider-separator { border-color: var(--border); }

/* Elementor icon list */
.elementor-icon-list-text { font-size: 0.95rem; color: var(--gray); }

/* Elementor image widget */
.elementor-widget-image img { border-radius: var(--radius); }

/* Ensure Elementor editor toolbar clears our sticky nav */
body.elementor-editor-active .site-nav { z-index: 9 !important; }

/* Elementor Pro – Header/Footer builder (if Pro used later) */
.elementor-location-header,
.elementor-location-footer { width: 100%; }

/* Brand colour helper classes usable inside Elementor custom CSS */
.bg-red        { background-color: var(--red) !important; }
.bg-dark       { background-color: var(--dark) !important; }
.text-red      { color: var(--red) !important; }
.text-white    { color: var(--white) !important; }
.border-red    { border-color: var(--red) !important; }
