:root {
    --teal: #006b5e;
    --teal-dark: #004039;
    --teal-light: #00897b;
    --blue: #3c6a99;
    --slate: #5c7a84;
    --yellow: #fdcc2c;
    --text: #2D4243;
    --bg-light: #f2f5f7;
    --white: #ffffff;
    --font-heading: 'Akatab', sans-serif;
    --font-body: 'Afacad', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; color: var(--text); background: var(--white); line-height: 1.65; }

a { color: var(--teal-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-light); }

/* --- Nav --- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--white); padding: 0 2rem; height: 88px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-brand {
    display: flex; align-items: center; gap: 0.65rem;
    text-decoration: none;
}
.nav-brand img { height: 42px; width: 42px; }
.nav-brand span {
    font-family: var(--font-heading); font-size: 28px; font-weight: 600;
    color: var(--blue); letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links > a,
.nav-dropdown > a {
    font-family: var(--font-heading); font-weight: 700;
    font-size: 20px; text-transform: uppercase;
    color: var(--blue); text-decoration: none;
    position: relative; padding: 0.3em 0;
    transition: color 0.3s ease;
}
.nav-links > a::before,
.nav-links > a::after,
.nav-dropdown > a::before,
.nav-dropdown > a::after {
    content: ''; position: absolute; left: 50%; width: 0;
    height: 2px; background: var(--teal-light);
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-links > a::before,
.nav-dropdown > a::before { top: 0; }
.nav-links > a::after,
.nav-dropdown > a::after { bottom: 0; }
.nav-links > a:hover::before,
.nav-links > a:hover::after,
.nav-dropdown:hover > a::before,
.nav-dropdown:hover > a::after {
    width: 100%; left: 0; background: var(--teal-light);
}
.nav-links > a:hover,
.nav-dropdown:hover > a { color: var(--teal); }
.nav-links > a.active,
.nav-dropdown > a.active { color: var(--blue); }
.nav-links > a.active::before,
.nav-links > a.active::after,
.nav-dropdown > a.active::before,
.nav-dropdown > a.active::after {
    width: 100%; left: 0; background: var(--blue);
}
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--blue); border-radius: 6px; padding: 0.5rem 0;
    min-width: 260px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 200;
}
.nav-links .nav-dropdown:last-child .dropdown-menu { left: auto; right: 0; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.nav-dropdown .dropdown-menu a {
    display: block; padding: 0.5rem 1.25rem;
    color: var(--white); font-size: 1rem;
    font-family: var(--font-heading); font-weight: 700;
    text-transform: uppercase;
    background: transparent; border-radius: 0; padding: 0.5rem 1.25rem;
}
.nav-dropdown .dropdown-menu a::before,
.nav-dropdown .dropdown-menu a::after { display: none; }
.nav-dropdown .dropdown-menu a:hover { color: var(--yellow); background: transparent; }
.nav-dropdown .dropdown-menu a.active { color: var(--yellow); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
.nav-close { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); padding: 0.5rem; }
.nav-backdrop { display: none; }

/* --- Page Hero --- */
.page-hero {
    background: var(--teal-dark); padding: 5rem 2rem;
    text-align: center; color: var(--white);
}
.page-hero h1 {
    font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700; margin-bottom: 0.5rem;
}
.page-hero p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* --- Content --- */
.center-text { text-align: center; }
.content { max-width: 800px; margin: 0 auto; padding: 2.5rem 2rem 0; }
.content p { font-size: 1.25rem; line-height: 1.8; margin-bottom: 1rem; }
.content p strong { color: var(--teal-dark); }
.content h2 {
    font-family: var(--font-heading); font-size: 1.6rem;
    color: var(--teal-dark); text-align: center;
    margin: 2rem 0 1.25rem; font-weight: 700;
}

/* --- Icon List (replaces emoji list) --- */
.icon-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.icon-list li {
    display: flex; align-items: start; gap: 0.75rem;
    padding: 0.5rem 0; font-size: 1.2rem; line-height: 1.7;
}
.icon-list li i {
    color: var(--teal-light); font-size: 1.05rem;
    margin-top: 5px; flex-shrink: 0; width: 20px; text-align: center;
}

/* --- Bullet List --- */
.bullet-list { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.bullet-list li {
    padding: 0.35rem 0; font-size: 1.2rem; line-height: 1.7;
}
.bullet-list li strong { color: var(--teal-dark); }

/* --- Tech Icons --- */
.tech-section {
    margin-top: 2rem; padding: 2.5rem 2rem; text-align: center;
}
.tech-section h2 {
    font-family: var(--font-heading); font-size: 1.6rem;
    color: var(--teal-dark); margin-bottom: 1.25rem; font-weight: 700;
}
.tech-icons {
    display: flex; flex-wrap: wrap; gap: 2.5rem;
    justify-content: center; padding: 1rem 0 0;
}
.tech-icon {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.5rem; width: 90px;
}
.tech-icon img {
    width: 56px; height: 56px; object-fit: contain;
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.25));
}
.tech-icon span {
    font-size: 12px; font-weight: 600; text-align: center;
    line-height: 1.3; color: var(--text);
}

/* --- Work Examples --- */
.examples {
    background: var(--bg-light); border-radius: 12px;
    padding: 2.5rem; max-width: 800px; margin: 2rem auto 0;
}
.examples h2 {
    font-family: var(--font-heading); font-size: 1.6rem;
    color: var(--teal-dark); text-align: center;
    margin-bottom: 1.5rem; font-weight: 700;
}
.example { margin-bottom: 2rem; }
.example:last-child { margin-bottom: 0; }
.example h3 {
    font-family: var(--font-heading); font-size: 1.2rem;
    color: var(--teal-dark); font-weight: 700;
    margin-bottom: 0.4rem;
}
.example p { font-size: 1.1rem; color: var(--text); line-height: 1.7; }
.example p strong { color: var(--teal-dark); }

/* --- CTA Banner --- */
.cta-banner {
    background: var(--teal-dark); text-align: center;
    padding: 3.5rem 2rem; margin-top: 2.5rem;
}
.cta-banner h2 {
    font-family: var(--font-heading); font-size: 1.8rem;
    color: var(--white); margin-bottom: 0.5rem;
}
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 1.5rem; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2.5rem; border-radius: 8px; font-size: 1.1rem;
    font-weight: 600; text-decoration: none; transition: all 0.2s;
    font-family: var(--font-body);
}
.btn-white { background: var(--white); color: var(--teal-dark); }
.btn-white:hover { background: var(--bg-light); color: var(--teal-dark); transform: translateY(-1px); }
.btn-teal { background: var(--teal-dark); color: var(--white); }
.btn-teal:hover { background: var(--teal); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--teal-dark); border: 2px solid var(--teal-dark); }
.btn-outline:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); }

/* --- Service Cards (services landing page) --- */
.service-cards {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem; margin-top: 2rem;
}
.service-card {
    background: var(--white); border-radius: 12px; padding: 2rem;
    border: 1px solid rgba(0,0,0,0.06); border-left: 4px solid var(--teal);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none; color: inherit; display: block;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.service-card h3 {
    font-family: var(--font-heading); font-size: 1.3rem;
    color: var(--teal-dark); margin-bottom: 0.5rem; font-weight: 700;
}
.service-card p { font-size: 1rem; color: var(--slate); line-height: 1.6; }

/* --- Case Studies (linked from service pages) --- */
.case-studies-section {
    max-width: 900px; margin: 0 auto; padding: 3rem 2rem;
}
.case-studies-section > h2 {
    font-family: var(--font-heading); font-size: 1.6rem;
    color: var(--blue); font-weight: 700; margin-bottom: 1rem;
}
.case-study-card {
    display: block; background: var(--white);
    border: 1px solid rgba(0,0,0,0.08); border-radius: 8px;
    padding: 1.5rem; margin-bottom: 1rem;
    text-decoration: none; color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.case-study-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--teal-light);
}
.case-study-card h3 {
    font-family: var(--font-heading); font-size: 1.2rem;
    color: var(--blue); font-weight: 700; margin-bottom: 0.4rem;
}
.case-study-card p { margin: 0; color: var(--text); font-size: 1.05rem; line-height: 1.5; }
.case-study-card .read-more {
    display: inline-block; margin-top: 0.75rem;
    color: var(--teal); font-weight: 700; font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
    background: var(--bg-light); padding: 2.5rem 2rem 1.5rem;
    font-size: 0.9rem; color: var(--slate);
}
.footer-nav {
    display: flex; justify-content: center; gap: 3rem;
    flex-wrap: wrap; margin: 0 auto 1.5rem;
    max-width: 860px;
}
.footer-group {
    display: flex; flex-direction: column; gap: 0.4rem;
    min-width: 120px;
}
.footer-group-heading {
    font-family: var(--font-heading); font-size: 0.75rem;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text);
    margin-bottom: 0.3rem;
}
.footer-group a {
    font-size: 0.9rem; color: var(--slate);
    text-decoration: none; transition: color 0.2s;
    line-height: 1.5;
}
.footer-group a:hover { color: var(--teal); }
.footer-copy {
    text-align: center; font-size: 0.8rem; color: var(--slate);
    margin: 0 auto; padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    max-width: 860px;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    /* Mobile drawer: slide in from right */
    .nav-links {
        display: flex; flex-direction: column; align-items: flex-start; gap: 0;
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(85vw, 400px); height: 100vh;
        background: var(--white);
        box-shadow: -8px 0 30px rgba(0,0,0,0.15);
        padding: 4.5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    .nav-links.active { transform: translateX(0); }

    .nav-close {
        display: block; position: absolute; top: 1.25rem; right: 1.25rem;
        color: var(--text); z-index: 1;
    }

    .nav-backdrop {
        display: block; position: fixed; inset: 0;
        background: rgba(0,0,0,0.4);
        opacity: 0; pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }
    .nav-backdrop.active { opacity: 1; pointer-events: auto; }

    body.nav-open { overflow: hidden; }

    /* Drawer link styling */
    .nav-links > a,
    .nav-dropdown > a {
        width: 100%; padding: 0.85rem 0.75rem; font-size: 1.15rem;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        margin: 0 -0.75rem; border-radius: 4px;
        transition: background 0.15s ease, color 0.15s ease;
    }
    .nav-links > a::before, .nav-links > a::after,
    .nav-dropdown > a::before, .nav-dropdown > a::after { display: none; }
    @media (hover: hover) {
        .nav-links > a:hover,
        .nav-dropdown > a:hover {
            background: rgba(0, 107, 94, 0.08); color: var(--teal);
        }
    }
    .nav-links > a:active,
    .nav-dropdown > a:active {
        background: rgba(0, 107, 94, 0.16);
    }

    /* Services dropdown: click to expand */
    .nav-dropdown { width: 100%; }
    .nav-dropdown > a { display: flex; align-items: center; }
    .nav-dropdown > a i {
        transition: transform 0.2s ease;
        font-size: 0.75rem !important; margin-left: auto !important;
    }
    .nav-dropdown.open > a i { transform: rotate(180deg); color: var(--teal); }
    .nav-dropdown .dropdown-menu,
    .nav-dropdown:hover .dropdown-menu {
        display: none; position: static; background: transparent;
        box-shadow: none; padding: 0.25rem 0 0.5rem 1rem;
        min-width: 0; width: 100%; border-radius: 0;
    }
    .nav-dropdown.open .dropdown-menu { display: block; }
    .nav-dropdown .dropdown-menu a {
        color: var(--blue); padding: 0.5rem 0.75rem; font-size: 1rem;
        text-transform: none; display: block;
        margin: 0 -0.75rem; border-radius: 4px;
        transition: background 0.15s ease, color 0.15s ease;
    }
    @media (hover: hover) {
        .nav-dropdown .dropdown-menu a:hover {
            color: var(--teal); background: rgba(0, 107, 94, 0.08);
        }
    }
    .nav-dropdown .dropdown-menu a:active {
        background: rgba(0, 107, 94, 0.16);
    }

    /* Active page highlight in drawer */
    .nav-links > a.active,
    .nav-dropdown > a.active {
        color: var(--teal); font-weight: 700;
    }
    .nav-dropdown .dropdown-menu a.active {
        color: var(--teal); font-weight: 700;
    }
    .page-hero { padding: 3.5rem 1.5rem; }
    .content { padding: 2rem 1.5rem 0; }
    .examples { padding: 1.5rem; }
    .tech-icons {
        display: grid; grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 1rem;
    }
    .tech-icon { width: auto; }
    .tech-icon img { width: 40px; height: 40px; }
    .tech-icon span { font-size: 12px; }
    .service-cards { grid-template-columns: 1fr; }

    body { font-size: 17px; }

    .footer-nav { gap: 2rem 3rem; justify-content: flex-start; padding: 0 0.25rem; }
    .footer-group { min-width: 130px; }
    .footer-group a { font-size: 1rem; }
    .footer-group-heading { font-size: 0.8rem; }
    .footer-copy { font-size: 0.85rem; text-align: left; }
}
