/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #1B2D5B;
    --navy-light: #253A6A;
    --orange: #E8531E;
    --orange-hover: #D14510;
    --white: #ffffff;
    --off-white: #F8F9FB;
    --light-grey: #EEF0F4;
    --mid-grey: #6B7280;
    --dark-grey: #374151;
    --text: #1F2937;
    --border: #E5E7EB;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav { display: flex; align-items: center; gap: 8px; }

.nav a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-grey);
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--navy);
    background: var(--light-grey);
}

.nav .nav-cta {
    background: var(--orange);
    color: var(--white);
    font-weight: 600;
    margin-left: 8px;
}

.nav .nav-cta:hover {
    background: var(--orange-hover);
    color: var(--white);
}

/* Services dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.875rem;
    border-radius: 0;
}

.nav-dropdown-menu a:hover {
    background: var(--off-white);
    color: var(--orange);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232,83,30,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--orange);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== CLIENT LOGOS ===== */
.clients-bar {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.clients-bar p {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mid-grey);
    margin-bottom: 24px;
    font-weight: 500;
}

.clients-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.clients-logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: opacity var(--transition), filter var(--transition);
}

.clients-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .clients-logos {
        gap: 32px;
    }
    .clients-logos img {
        height: 30px;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); }

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

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

.btn-secondary {
    background: var(--navy);
    color: var(--white);
}

.btn-secondary:hover { background: var(--navy-light); transform: translateY(-1px); }

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--off-white);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--mid-grey);
    font-size: 1.05rem;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--orange);
}

.service-card .icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--orange), #F27D3D);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-card .icon svg {
    width: 26px;
    height: 26px;
    fill: var(--white);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--mid-grey);
    font-size: 0.92rem;
    line-height: 1.6;
    flex: 1;
}

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--orange);
    transition: gap var(--transition);
}

.service-card:hover .card-link { gap: 10px; }

/* ===== CREDENTIALS ===== */
.credentials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.credential {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.credential .cred-icon {
    width: 44px;
    height: 44px;
    background: var(--light-grey);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.credential .cred-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--navy);
}

.credential h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

.credential p {
    font-size: 0.8rem;
    color: var(--mid-grey);
    margin-top: 2px;
}

/* ===== WHY P40 / FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.feature .feat-icon {
    width: 48px;
    height: 48px;
    background: rgba(232,83,30,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature .feat-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--orange);
}

.feature h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.feature p {
    font-size: 0.9rem;
    color: var(--mid-grey);
    line-height: 1.6;
}

/* ===== TESTIMONIAL ===== */
.testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 48px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.testimonial-card .quote-mark {
    font-size: 3rem;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 16px;
}

.testimonial-card blockquote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--dark-grey);
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-card .attribution {
    font-size: 0.9rem;
    color: var(--mid-grey);
    font-weight: 500;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 64px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-banner p {
    opacity: 0.85;
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.cta-banner .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-banner .phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 24px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
}

.footer-brand img {
    height: 36px;
}

.footer h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.5;
    margin-bottom: 16px;
}

.footer a {
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity var(--transition), color var(--transition);
}

.footer a:hover { opacity: 1; color: var(--orange); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SERVICE PAGE CONTENT ===== */
.service-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.service-intro h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.service-intro p {
    color: var(--mid-grey);
    line-height: 1.7;
    margin-bottom: 12px;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--dark-grey);
}

.service-list li:last-child { border-bottom: none; }

.service-list .check {
    color: var(--orange);
    font-weight: 700;
}

.service-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.testimonial-card .quote-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--orange);
    margin-bottom: 16px;
}

/* ===== ABOUT PAGE ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.about-content p {
    color: var(--mid-grey);
    line-height: 1.7;
    margin-bottom: 16px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat {
    padding: 32px 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.stat .number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 8px;
}

.stat .label {
    font-size: 0.85rem;
    color: var(--mid-grey);
    font-weight: 500;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.contact-detail {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.contact-detail .cd-icon {
    width: 44px;
    height: 44px;
    background: rgba(232,83,30,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail .cd-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--orange);
}

.contact-detail h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
}

.contact-detail p {
    font-size: 0.9rem;
    color: var(--mid-grey);
}

.contact-detail a {
    color: var(--orange);
    font-weight: 500;
}

.contact-form {
    background: var(--off-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.contact-form h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-grey);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232,83,30,0.08);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ===== RELATED SERVICES ===== */
.related-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    gap: 16px;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--orange);
}

.faq-question .faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition), transform 0.3s ease;
}

.faq-question .faq-toggle svg {
    width: 14px;
    height: 14px;
    fill: var(--navy);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question .faq-toggle {
    background: var(--orange);
}

.faq-item.open .faq-question .faq-toggle svg {
    fill: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 0 20px;
    color: var(--mid-grey);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .credentials { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 16px 24px;
        gap: 4px;
    }
    .nav.open a { padding: 12px 16px; }
    .nav.open .nav-cta { text-align: center; margin-left: 0; }
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
    }
    .menu-toggle { display: block; }

    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .services-grid,
    .features-grid,
    .related-services { grid-template-columns: 1fr; }

    .service-intro,
    .about-content,
    .contact-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .section { padding: 48px 0; }
    .page-hero { padding: 40px 0; }
    .page-hero h1 { font-size: 1.8rem; }

    .credentials { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
}
