*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1a2b4a;
    --primary-light: #2a4a7a;
    --accent: #e8751a;
    --accent-hover: #d06500;
    --text-dark: #1a1a2e;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f8f9fb;
    --bg-white: #ffffff;
    --bg-dark: #0f1a2e;
    --border: #e5e7eb;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container: 1200px;
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
}

body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

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

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ===== MAIN NAVIGATION ===== */
.main-nav .menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav .menu > li {
    position: relative;
}

.main-nav .menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a {
    background: var(--bg-light);
    color: var(--accent);
}

.main-nav .menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.2s;
}

.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s;
    padding: 8px 0;
    z-index: 100;
}

.main-nav .menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s;
}

.main-nav .sub-menu a:hover {
    background: var(--bg-light);
    color: var(--accent);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #0f1a2e 0%, #1a2b4a 50%, #2a4a7a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="150" cy="100" r="80" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    opacity: 0.5;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ===== TRUST BADGES ===== */
.trust-badges {
    padding: 40px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

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

.trust-logos img {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.trust-logos img:hover {
    opacity: 1;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.stats-section .section-title {
    max-width: 700px;
    margin: 0 auto 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-item {
    background: var(--bg-white);
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    line-height: 1.7;
}

.section-title.center,
.section-subtitle.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ===== WHO WE WORK WITH ===== */
.www-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.www-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.www-tab {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-gray);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.www-tab:hover,
.www-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.www-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0;
}

.www-panel.active {
    display: grid;
}

.www-panel h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.www-panel p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.www-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.www-tag {
    padding: 6px 16px;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
}

.www-panel img {
    border-radius: 12px;
    width: 100%;
}

/* ===== SERVICES ===== */
.services-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== CASE STUDIES ===== */
.case-studies {
    padding: 100px 0;
    background: var(--bg-white);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.case-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.case-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.case-card-image {
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-card-body {
    padding: 24px;
}

.case-card-body h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.case-card-body p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 12px;
}

.case-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
}

/* ===== TOOLS SECTION ===== */
.tools-section {
    padding: 100px 0;
    background: var(--bg-dark);
    color: #fff;
    text-align: center;
}

.tools-section .section-title {
    color: #fff;
}

.tools-section .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.tools-grid img {
    height: 40px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s;
    filter: brightness(0) invert(1);
}

.tools-grid img:hover {
    opacity: 1;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    content: '−';
}

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

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 15px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 100px 0;
    background: var(--bg-white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    padding: 32px;
    border-radius: 12px;
    background: var(--bg-light);
}

.testimonial-card .stars {
    color: #f59e0b;
    margin-bottom: 16px;
    font-size: 18px;
}

.testimonial-card blockquote {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    font-size: 14px;
    display: block;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--text-gray);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 80px 0 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--accent);
}

.footer-accreditations {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.footer-accreditations img {
    height: 50px;
    width: auto;
    opacity: 0.6;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 60px 0 60px;
    background: var(--primary);
    color: #fff;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
}

/* ===== CONTENT ===== */
.content-area {
    padding: 60px 0;
}

.page-template-page-full .content-area {
    padding: 0;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    background: var(--bg-white);
    z-index: 1000;
    padding: 100px 24px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu .menu li a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .www-panel {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu,
    .mobile-menu-overlay {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 60px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .trust-logos {
        gap: 20px;
    }
}
