/* ===========================
   CSS Variables
   =========================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-gray: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ===========================
   Reset and Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* ===========================
   Container and Layout
   =========================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===========================
   Header and Navigation
   =========================== */
.header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

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

.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.nav-menu.active {
    display: flex;
}

.nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    display: block;
    padding: 1rem;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: var(--bg-gray);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 2rem;
    height: 0.2rem;
    background: var(--text-color);
    border-radius: 10px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        border: none;
        box-shadow: none;
    }

    .nav-menu li {
        border: none;
    }

    .nav-menu a {
        padding: 0.5rem 1rem;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: transparent;
    }
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-secondary:hover {
    background: var(--secondary-dark);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.page-hero {
    padding: 3rem 0;
    background: var(--bg-gray);
    text-align: center;
}

/* ===========================
   Sections
   =========================== */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background: var(--bg-gray);
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* ===========================
   Feature Grid
   =========================== */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    flex: 1 1 100%;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .feature-grid {
        flex-wrap: nowrap;
    }

    .feature-card {
        flex: 1 1 33.333%;
    }
}

/* ===========================
   Split Content
   =========================== */
.split-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.split-text,
.split-visual {
    flex: 1 1 100%;
}

.illustration {
    max-width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .split-content {
        flex-direction: row;
    }

    .split-text,
    .split-visual {
        flex: 1 1 50%;
    }
}

/* ===========================
   Service Cards
   =========================== */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-card {
    flex: 1 1 100%;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

@media (min-width: 768px) {
    .service-card {
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .service-card {
        flex: 1 1 calc(33.333% - 1.5rem);
    }
}

/* ===========================
   Services List
   =========================== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-item {
    padding: 1.5rem;
    background: white;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===========================
   Stats Section
   =========================== */
.stats {
    background: var(--primary-color);
    color: white;
}

.stats h2 {
    color: white;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.stat-item {
    flex: 1 1 100%;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .stat-item {
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .stat-item {
        flex: 1 1 calc(25% - 1.5rem);
    }
}

/* ===========================
   Process Steps
   =========================== */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .process-steps {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .process-step {
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .process-step {
        flex: 1 1 calc(33.333% - 1.5rem);
    }
}

/* ===========================
   Testimonials
   =========================== */
.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.testimonial-card {
    flex: 1 1 100%;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--text-color);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex: 1 1 calc(33.333% - 1.5rem);
    }
}

/* ===========================
   Industries and Lists
   =========================== */
.industry-list,
.benefits-grid,
.achievements-list,
.knowledge-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.industry-item,
.benefit-item,
.achievement-item,
.knowledge-block {
    flex: 1 1 100%;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .industry-item,
    .benefit-item,
    .achievement-item,
    .knowledge-block {
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .industry-item {
        flex: 1 1 calc(33.333% - 1rem);
    }
}

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

.faq-item {
    margin-bottom: 1rem;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-gray);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 1rem;
}

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

.faq-answer p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ===========================
   CTA Section
   =========================== */
.cta {
    background: var(--bg-dark);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===========================
   Timeline
   =========================== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1.5rem;
    width: 2px;
    height: calc(100% + 2rem);
    background: var(--border-color);
}

.timeline-item:last-child:after {
    display: none;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===========================
   Values Grid
   =========================== */
.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.value-card {
    flex: 1 1 100%;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .value-card {
        flex: 1 1 calc(50% - 1rem);
    }
}

/* ===========================
   Contact Page
   =========================== */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-card {
    flex: 1 1 100%;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .contact-card {
        flex: 1 1 calc(33.333% - 1.5rem);
    }
}

.email-link {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===========================
   Thank You Page
   =========================== */
.thank-you-section {
    padding: 4rem 0;
    text-align: center;
}

.thank-you-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 2rem;
}

.thank-you-icon svg {
    width: 100%;
    height: 100%;
}

.thank-you-text {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.steps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.step-card {
    flex: 1 1 100%;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.step-card .step-number {
    margin: 0 auto 1rem;
}

@media (min-width: 768px) {
    .step-card {
        flex: 1 1 calc(33.333% - 1.5rem);
    }
}

.thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
}

.meanwhile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.link-card {
    flex: 1 1 100%;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

@media (min-width: 768px) {
    .link-card {
        flex: 1 1 calc(50% - 1rem);
    }
}

/* ===========================
   Legal Pages
   =========================== */
.legal-page {
    padding: 4rem 0;
}

.legal-container {
    max-width: 900px;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.legal-section h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-section h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-section ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-info,
.legal-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.legal-block {
    flex: 1 1 100%;
}

@media (min-width: 768px) {
    .legal-block {
        flex: 1 1 calc(33.333% - 1.5rem);
    }
}

.legal-navigation {
    justify-content: center;
    gap: 1rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    flex: 1 1 100%;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    padding: 0.25rem 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .footer-col {
        flex: 1 1 calc(33.333% - 1.5rem);
    }
}

/* ===========================
   Cookie Banner
   =========================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .cookie-buttons {
        flex-wrap: nowrap;
    }
}

/* ===========================
   Cookie Modal
   =========================== */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 1rem;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
}

.cookie-modal-content h3 {
    margin-bottom: 1.5rem;
}

.cookie-option {
    margin-bottom: 1.5rem;
}

.cookie-option label {
    display: flex;
    gap: 1rem;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.cookie-option strong {
    display: block;
    margin-bottom: 0.25rem;
}

.cookie-option p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ===========================
   Responsive Typography
   =========================== */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

/* ===========================
   Process Timeline (Services)
   =========================== */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-phase {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.phase-number {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 700;
    margin-bottom: 1rem;
}

.phase-duration {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.875rem;
}

/* ===========================
   Comparison Table
   =========================== */
.comparison-table {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comparison-row {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
}

.comparison-header h3 {
    color: white;
    margin: 0;
}

.comparison-content {
    padding: 1.5rem;
}

.comparison-content p {
    margin-bottom: 0.75rem;
}

.comparison-content strong {
    color: var(--primary-color);
}

/* ===========================
   Team and Role Blocks
   =========================== */
.team-description {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.team-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.role-block {
    flex: 1 1 100%;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .role-block {
        flex: 1 1 calc(50% - 1rem);
    }
}

/* ===========================
   Approach and Philosophy
   =========================== */
.approach-content,
.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
}

.approach-text {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* ===========================
   Directions
   =========================== */
.directions-content {
    max-width: 800px;
    margin: 0 auto;
}

.directions-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ===========================
   Services Overview
   =========================== */
.services-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}