@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #102a43;   /* Updated Deep Navy from the new logo */
    --primary-rgb: 16, 42, 67;
    --secondary-color: #d97706; /* Updated Professional Orange from the new logo */
    --secondary-rgb: 217, 119, 6;
    --light-bg: #f6f6f3;
    --text-dark: #1f2a38;
    --white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header & Nav */
header {
    background: var(--white);
    color: var(--text-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 18px rgba(var(--primary-rgb), 0.12);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo img {
    height: 75px;
    max-width: 220px;
    display: block;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-text--blue {
    color: var(--primary-color);
}

.logo-text--orange {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li { margin-left: 20px; }

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(var(--primary-rgb), 0.65), rgba(var(--primary-rgb), 0.65)), url('images/saml.jpg') center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

#hero .container {
    position: relative;
    z-index: 1;
}

.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 18px;
    opacity: 0.96;
    transition: transform 0.18s ease-out;
    transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.hero-shape.tower {
    width: 90px;
    height: 200px;
    left: 6%;
    bottom: 5%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-shape.tower::before {
    content: '';
    position: absolute;
    inset: 18% 16% auto;
    height: 14px;
    width: 52px;
    border-radius: 8px;
    background: rgba(255,255,255,0.52);
    box-shadow: 0 16px 0 rgba(255,255,255,0.12);
}

.hero-shape.tower::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 40px;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.42);
    border-radius: 4px;
    box-shadow: 0 24px 0 rgba(255,255,255,0.28), 0 48px 0 rgba(255,255,255,0.28);
}

.hero-shape.crane {
    width: 170px;
    height: 120px;
    right: 8%;
    bottom: 18%;
    background: linear-gradient(90deg, rgba(246,153,63,0.34), rgba(255,255,255,0.12));
    border-radius: 24px 12px 12px 24px;
    transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)) rotate(-6deg);
}

.hero-shape.crane::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 14px;
    width: 110px;
    height: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
}

.hero-shape.crane::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 22px;
    width: 10px;
    height: 72px;
    background: rgba(255,255,255,0.26);
    border-radius: 6px;
}

.hero-shape.tool {
    width: 60px;
    height: 60px;
    right: 18%;
    bottom: 12%;
    background: rgba(255, 255, 255, 0.26);
    border: 1px solid rgba(255,255,255,0.28);
}

.hero-shape.tool::before,
.hero-shape.tool::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,0.62);
    border-radius: 4px;
}

.hero-shape.tool::before {
    width: 28px;
    height: 10px;
    top: 24px;
    left: 16px;
}

.hero-shape.tool::after {
    width: 10px;
    height: 28px;
    top: 16px;
    left: 26px;
}

body.contact-page #hero {
    background: linear-gradient(rgba(var(--primary-rgb), 0.65), rgba(var(--primary-rgb), 0.65)), url('images/planning.jpg') center/cover;
}

body.blog-page #hero {
    background: linear-gradient(rgba(var(--primary-rgb), 0.65), rgba(var(--primary-rgb), 0.65)), url('images/pexels.jpg') center/cover;
}

#hero.services-hero {
    background: linear-gradient(rgba(var(--primary-rgb), 0.7), rgba(var(--primary-rgb), 0.7)), url('images/plan2.jpg') center/cover;
}

#hero.projects-hero {
    background: linear-gradient(rgba(var(--primary-rgb), 0.7), rgba(var(--primary-rgb), 0.7)), url('images/buildingplan.jpg') center/cover;
}

#hero.devis-hero {
    background: linear-gradient(rgba(var(--primary-rgb), 0.7), rgba(var(--primary-rgb), 0.7)), url('images/plan.jpg') center/cover;
}

#hero h1, #hero p {
    text-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

#hero {
    position: relative;
    overflow: hidden;
}

.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 18px;
    opacity: 0.88;
    transition: transform 0.18s ease-out;
    transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px));
}

.hero-shape.tower {
    width: 80px;
    height: 180px;
    left: 8%;
    bottom: 6%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.hero-shape.tower::before {
    content: '';
    position: absolute;
    inset: 18% 16% auto;
    height: 14px;
    width: 52px;
    border-radius: 8px;
    background: rgba(255,255,255,0.42);
    box-shadow: 0 16px 0 rgba(255,255,255,0.12);
}

.hero-shape.tower::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 40px;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.28);
    border-radius: 4px;
    box-shadow: 0 24px 0 rgba(255,255,255,0.28), 0 48px 0 rgba(255,255,255,0.28);
}

.hero-shape.crane {
    width: 160px;
    height: 110px;
    right: 8%;
    bottom: 20%;
    background: linear-gradient(90deg, rgba(246,153,63,0.24), rgba(255,255,255,0.08));
    border-radius: 22px 12px 12px 22px;
    transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)) rotate(-6deg);
}

.hero-shape.crane::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 14px;
    width: 110px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 6px;
}

.hero-shape.crane::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 22px;
    width: 10px;
    height: 72px;
    background: rgba(255,255,255,0.22);
    border-radius: 6px;
}

.hero-shape.tool {
    width: 52px;
    height: 52px;
    right: 20%;
    bottom: 18%;
    background: rgba(255, 255, 255, 0.17);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.16);
}

.hero-shape.tool::before,
.hero-shape.tool::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,0.44);
    border-radius: 4px;
}

.hero-shape.tool::before {
    width: 26px;
    height: 8px;
    top: 22px;
    left: 13px;
}

.hero-shape.tool::after {
    width: 8px;
    height: 26px;
    top: 13px;
    left: 22px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section {
    padding: 4rem 0;
}

/* Animated image for About section */
.about-gallery {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
    margin: 1.5rem auto;
}

.about-img {
    display: block;
    width: min(42%, 360px);
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
    padding: 6px;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(16,42,67,0.08);
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.18s;
}

.about-alaoui-img {
    float: left;
    width: 30%;
    max-width: 280px;
    height: 220px;
    object-fit: cover;
    margin: 0 1.5rem 1rem 0;
    padding: 6px;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.14);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
    .about-alaoui-img {
        float: none;
        display: block;
        width: min(88%, 360px);
        margin: 0 auto 1.25rem;
    }
}

.content-section h2,
.content-section h3,
.content-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Service-specific title color to match logo orange */
#services h2,
#services h3,
#services h4 {
    color: var(--secondary-color);
}

/* Project-specific title color to match logo orange */
#projects h2,
#projects h3,
#projects h4 {
    color: var(--secondary-color);
}

#about h2,
.home-features h2,
.home-services h2,
.process-section h2,
.home-cta h2,
.feature-table th,
.feature-table td:first-child,
.feature-table td:nth-child(2),
.process-table th,
.process-table td:first-child,
.process-table td:nth-child(2),
.service-highlight h3,
.feature-card h3,
.process-step h3 {
    color: var(--secondary-color);
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading.center {
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.home-features,
.home-services,
.process-section,
.home-cta {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(16,42,67,0.02));
}

.feature-grid,
.service-highlight-grid,
.process-grid {
    display: grid;
    gap: 1.5rem;
}

.feature-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(16,42,67,0.08);
    border: 1px solid rgba(16,42,67,0.06);
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.feature-table th,
.feature-table td {
    padding: 1.1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(16,42,67,0.08);
    vertical-align: top;
}

.feature-table thead th {
    background: rgba(16,42,67,0.97);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
}

.feature-table tbody tr:nth-child(even) {
    background: rgba(217,119,6,0.03);
}

.feature-table tbody tr:hover {
    background: rgba(217,119,6,0.06);
}

.feature-table td {
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.7;
}

.feature-table td:nth-child(3) {
    color: #46566a;
    font-weight: 500;
}

.feature-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), #f0a94b);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(217,119,6,0.2);
}

.feature-card,
.service-highlight,
.process-step,
.cta-box {
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(16,42,67,0.08);
}

.feature-card {
    padding: 1.75rem 1.4rem;
    border: 1px solid rgba(16, 42, 67, 0.06);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(217, 119, 6, 0.12);
    color: var(--secondary-color);
    font-weight: 800;
    margin-bottom: 1rem;
}

.feature-card h3,
.service-highlight h3,
.process-step h3 {
    margin: 0 0 0.75rem;
    color: var(--primary-color);
}

.feature-card p,
.service-highlight p,
.process-step p {
    margin: 0;
    color: #46566a;
    line-height: 1.8;
}

.stats-band {
    background: linear-gradient(90deg, rgba(16,42,67,0.96), rgba(16,42,67,0.9));
    color: var(--white);
    padding: 2.5rem 0;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 1.2rem;
    text-align: center;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.metric-value {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 800;
    color: var(--white);
}

.metric-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.service-highlight-grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.service-highlight {
    padding: 1.8rem 1.4rem;
    border-top: 4px solid var(--secondary-color);
}

.process-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.process-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(16,42,67,0.08);
    border: 1px solid rgba(16,42,67,0.06);
}

.process-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.process-table th,
.process-table td {
    padding: 1.1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(16,42,67,0.08);
    vertical-align: middle;
}

.process-table thead th {
    background: rgba(16,42,67,0.97);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
}

.process-table tbody tr:nth-child(even) {
    background: rgba(217,119,6,0.03);
}

.process-table tbody tr:hover {
    background: rgba(217,119,6,0.06);
}

.process-table td {
    color: var(--primary-color);
    font-weight: 600;
}

.process-table td:nth-child(3) {
    color: #415168;
    font-weight: 500;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), #f0a94b);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(217,119,6,0.2);
}

.process-step {
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(16,42,67,0.08);
}

.process-step span {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2.2rem;
    border-left: 6px solid var(--secondary-color);
}

.cta-box h2 {
    margin: 0.25rem 0 0;
    color: var(--primary-color);
}

/* Small image style used inside service blocks */
.service-img {
    float: left;
    width: 38%;
    max-width: 320px;
    margin: 0 1.25rem 1rem 0;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.08);
}

.facility-service {
    display: grid;
    grid-template-columns: 38% 1fr;
    column-gap: 1.25rem;
}

.facility-service h3 {
    grid-column: 1 / -1;
}

.facility-service .service-img {
    float: none;
    width: 100%;
    margin: 0;
}

.facility-service ul {
    margin-top: 0;
}

.partnership-service {
    text-align: center;
}

.partnership-img {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.08);
}

.partnership-service p {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 860px) {
    .service-img { width: 100%; float: none; margin: 0 0 1rem 0; }
    .facility-service { display: block; }
    .facility-service .service-img { margin: 0 0 1rem 0; }
    .partnership-img { width: 100%; max-width: 320px; }
    .feature-grid,
    .service-highlight-grid,
    .process-grid,
    .metrics {
        grid-template-columns: 1fr 1fr;
    }
    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.5rem;
}

.projects-table-wrap {
    margin-top: 2rem;
    overflow-x: auto;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(16,42,67,0.08);
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.projects-table th,
.projects-table td {
    padding: 1rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid rgba(16, 42, 67, 0.1);
    vertical-align: top;
}

.projects-table thead th {
    background: rgba(16, 42, 67, 0.96);
    color: var(--white);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.projects-table tbody tr:nth-child(even) {
    background: rgba(217, 119, 6, 0.03);
}

.projects-table tbody tr:hover {
    background: rgba(217, 119, 6, 0.06);
}

.projects-table td {
    color: var(--primary-color);
    line-height: 1.7;
    font-weight: 600;
}

.projects-table td:first-child,
.projects-table td:nth-child(2) {
    color: var(--primary-color);
}

.projects-table td:nth-child(3),
.projects-table td:nth-child(4) {
    color: var(--primary-color);
}

    .blog-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: 1.75rem;
        margin-top: 1rem;
    }

    .blog-card {
        background: var(--white);
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 18px 40px rgba(23, 61, 91, 0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .blog-card {
        cursor: pointer;
    }

    .blog-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 22px 44px rgba(23, 61, 91, 0.12);
    }

    .blog-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        display: block;
    }

    .blog-content {
        padding: 1.8rem;
    }

    .blog-content h3 {
        margin-top: 0;
        color: var(--primary-color);
        font-size: 1.25rem;
    }

    .blog-content .meta {
        color: #6b7a8a;
        font-size: 0.95rem;
        margin-bottom: 0.85rem;
    }

    .blog-content p {
        color: #4b5b6c;
        line-height: 1.8;
        margin-bottom: 1.35rem;
    }

    .blog-content .btn-small {
        display: inline-block;
        background: rgba(var(--secondary-rgb), 0.12);
        color: var(--secondary-color);
        padding: 10px 20px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 700;
    }

    .blog-content .btn-small:hover {
        color: var(--primary-color);
        background: rgba(var(--secondary-rgb), 0.18);
    }

body.no-scroll {
    overflow: hidden;
}

.article-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 10000;
}

.article-modal--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.article-panel {
    position: relative;
    width: min(1080px, 100%);
    max-height: 90vh;
    overflow: hidden;
    border-radius: 26px;
    background: var(--white);
    box-shadow: 0 32px 80px rgba(16, 42, 67, 0.22);
    display: grid;
    grid-template-columns: 1fr;
}

.article-panel-image {
    min-height: 260px;
    background-size: cover;
    background-position: center;
}

.article-panel-content {
    padding: 2rem;
}

.article-meta {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.article-title {
    margin: 0;
    font-size: clamp(1.75rem, 2.5vw, 2.6rem);
    color: var(--primary-color);
    line-height: 1.1;
}

.article-summary,
.article-content {
    color: #4b5b6c;
    line-height: 1.9;
    margin: 1.4rem 0 0;
}

.article-detail {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
}

.article-detail-image {
    width: 100%;
    min-height: 340px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 28px 60px rgba(16, 42, 67, 0.1);
}

.article-detail-summary {
    margin: 1.5rem 0 0;
    color: #4b5b6c;
    line-height: 1.9;
    font-size: 1.05rem;
}

.article-detail-full {
    margin-top: 1.8rem;
}

.article-detail-full p {
    margin-bottom: 1.4rem;
    color: #4b5b6c;
    line-height: 1.9;
}

.article-hero-meta {
    margin-top: 1rem;
    color: #f6d4a1;
    font-weight: 700;
}

.article-hero-meta span {
    opacity: 0.85;
}

.article-return {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--white);
    background: rgba(var(--secondary-rgb), 0.22);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.article-return:hover {
    background: rgba(var(--secondary-rgb), 0.3);
}

.article-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(16, 42, 67, 0.14);
}

@media (min-width: 860px) {
    .article-panel {
        grid-template-columns: 1fr 1fr;
    }

    .article-panel-image {
        min-height: auto;
        border-bottom-left-radius: 26px;
        border-top-right-radius: 26px;
    }

    .article-panel-content {
        padding: 2.5rem;
    }
}

.card h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.card p {
    margin-bottom: 0;
    color: #4b5b6c;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 12px 24px rgba(23, 61, 91, 0.08);
}

.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 700px;
}

.form-status {
    min-height: 2.5rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    line-height: 1.4;
    display: none;
}

.form-status--success {
    display: block;
    background: rgba(var(--secondary-rgb), 0.12);
    color: #2f3b4a;
    border: 1px solid rgba(var(--secondary-rgb), 0.28);
}

.form-status--error {
    display: block;
    background: rgba(212, 62, 62, 0.12);
    color: #7d1d1d;
    border: 1px solid rgba(212, 62, 62, 0.24);
}

.form-field {
    display: grid;
    gap: 0.45rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #d0d4da;
    background: #fafafa;
    font: inherit;
}

.contact-form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #1f2a38 50%), linear-gradient(135deg, #1f2a38 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.12);
}

.contact-form input:invalid,
.contact-form textarea:invalid {
    border-color: #d43e3e;
}

.error-message {
    color: #d43e3e;
    font-size: 0.95rem;
    min-height: 1.25rem;
}

.btn {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(var(--secondary-rgb), 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { color :black;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(var(--secondary-rgb), 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; cursor: pointer; }
    
    nav {
        position: fixed;
        right: -100%;
        top: 70px;
        background: var(--white);
        width: 100%;
        height: calc(100vh - 70px);
        box-shadow: -2px 0 18px rgba(var(--primary-rgb), 0.12);
        transition: 0.4s;
    }

    nav.active { right: 0; }

    .nav-links {
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
    }

    .nav-links li { margin: 20px 0; }

    .cards,
    .contact-grid,
    .blog-grid,
    .feature-grid,
    .service-highlight-grid,
    .process-grid,
    .metrics {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-contact,
    .footer-hours {
        text-align: center;
    }

    .container {
        width: 95%;
    }
}

footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 2rem;
    align-items: start;
}

    .footer-brand p,
    .footer-contact p,
    .footer-hours p {
        color: rgba(255, 255, 255, 0.82);
        line-height: 1.9;
        margin: 0.6rem 0;
    }

.footer-logo img {
    height: 85px;
    display: block;
    margin-bottom: 1rem;
}

.footer-contact h3,
.footer-hours h3 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.1rem;
}

.footer-contact a {
    color: #f6d4a1;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin: 0;
}
