/* ===== CSS Variables ===== */
:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --accent: #d69e2e;
    --accent-light: #ecc94b;
    --text: #1a202c;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg: #ffffff;
    --bg-dark: #f7fafc;
    --bg-darker: #edf2f7;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

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

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.logo:hover {
    color: var(--accent);
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.btn-primary {
    padding: 10px 20px;
    color: var(--white);
}

.nav-link.btn-primary::after {
    display: none;
}

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

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

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

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
    }
}

/* ===== Hero Section ===== */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--white) 100%);
}

.hero-small {
    padding: 120px 0 60px;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 600px;
}

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

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }
}

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

.section-dark {
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
    color: var(--primary);
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Differentiator Grid ===== */
.differentiator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.diff-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.diff-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.diff-content h4 {
    margin-bottom: 8px;
    color: var(--primary);
}

.diff-content p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .differentiator-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Articles Grid ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.article-card h3 a {
    color: var(--text);
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Article Filters ===== */
.article-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-darker);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* ===== Article Cards Full ===== */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-card-full {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card-full:hover {
    box-shadow: var(--shadow-lg);
}

.article-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.article-card-full h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.article-card-full h2 a {
    color: var(--text);
}

.article-card-full h2 a:hover {
    color: var(--primary);
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 16px;
}

/* ===== About Page ===== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    color: var(--primary);
    margin-bottom: 24px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== Skills Grid ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.skill-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.skill-card h3 {
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

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

.skill-list li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

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

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Philosophy Grid ===== */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.philosophy-item {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.philosophy-item h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

.philosophy-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Credentials Grid ===== */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.credential-item {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.credential-item h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.credential-item p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .credentials-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Service Detail ===== */
.service-detail {
    max-width: 900px;
    margin: 0 auto;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.service-icon-large {
    font-size: 3rem;
}

.service-header h2 {
    color: var(--primary);
}

.service-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.service-features,
.service-deliverables {
    margin-bottom: 32px;
}

.service-features h3,
.service-deliverables h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.service-features ul,
.service-deliverables ul {
    list-style: none;
}

.service-features li,
.service-deliverables li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.service-features li:last-child,
.service-deliverables li:last-child {
    border-bottom: none;
}

.service-features li::before,
.service-deliverables li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-features li strong {
    color: var(--text);
}

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

.contact-form-container h2,
.contact-info h2 {
    color: var(--primary);
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.contact-method {
    margin-bottom: 24px;
}

.contact-method h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-method p {
    color: var(--text-light);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--primary);
    font-weight: 500;
}

.contact-faq {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.contact-faq h3 {
    color: var(--primary);
    margin-bottom: 24px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h4 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Newsletter CTA ===== */
.newsletter-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-cta h2 {
    color: var(--primary);
    margin-bottom: 12px;
}

.newsletter-cta p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.newsletter-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== CTA Block ===== */
.section-cta-block {
    background: var(--primary);
    text-align: center;
    padding: 60px 0;
}

.section-cta-block h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.section-cta-block p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.section-cta-block .btn-primary {
    background: var(--accent);
    color: var(--text);
}

.section-cta-block .btn-primary:hover {
    background: var(--accent-light);
}

/* ===== Footer ===== */
.footer {
    background: var(--text);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 4px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 32px; }
