/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-color: #2c5aa0;
    --primary-dark: #1e3f73;
    --primary-light: #4a7bc8;
    --secondary-color: #f39c12;
    --accent-color: #27ae60;
    --text-dark: #2c3e50;
    --text-medium: #5a6c7d;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e8ed;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

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

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

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

strong {
    font-weight: 600;
    color: var(--text-dark);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 1rem;
}

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

.nav-list li {
    margin: 0.5rem 0;
}

.nav-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

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

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

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

    .nav {
        display: block;
    }

    .nav-list {
        display: flex;
        flex-direction: row;
        position: static;
        box-shadow: none;
        padding: 0;
    }

    .nav-list li {
        margin: 0 0 0 2rem;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

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

.hero-content {
    text-align: center;
}

.hero h1 {
    color: var(--bg-white);
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-visual {
    margin-top: 2rem;
}

/* ========================================
   Page Hero (for internal pages)
   ======================================== */
.page-hero {
    padding: 3rem 0;
    background: var(--primary-color);
    color: var(--bg-white);
    text-align: center;
}

.page-hero h1 {
    color: var(--bg-white);
}

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

.legal-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.section-header {
    margin-bottom: 2.5rem;
}

.section-header.centered {
    text-align: center;
}

.section-header p {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* ========================================
   Company Intro
   ======================================== */
.company-intro {
    background: var(--bg-light);
}

.intro-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.intro-block {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.intro-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.intro-block h3 {
    margin-bottom: 0.75rem;
}

/* ========================================
   Philosophy Section
   ======================================== */
.philosophy-section {
    background: var(--bg-white);
}

.philosophy-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.philosophy-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Services Grid
   ======================================== */
.services-highlight {
    background: var(--bg-white);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-card {
    flex: 1 1 100%;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

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

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

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

.stat-item {
    flex: 1 1 calc(50% - 1rem);
    text-align: center;
}

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

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

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

.process-step {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

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

/* ========================================
   Testimonials
   ======================================== */
.testimonials-section {
    background: var(--bg-light);
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-medium);
}

.testimonial-author strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

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

/* ========================================
   Knowledge/Tips Grid
   ======================================== */
.knowledge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.knowledge-card {
    flex: 1 1 100%;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.knowledge-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* ========================================
   Industries/Benefits List
   ======================================== */
.industries-list,
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.industry-item,
.benefit-item {
    flex: 1 1 100%;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

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

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

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

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

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

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

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

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

.faq-answer p {
    padding: 1.25rem;
    background: var(--bg-light);
}

/* ========================================
   Trust Indicators
   ======================================== */
.trust-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-item {
    flex: 1 1 100%;
    text-align: center;
    padding: 1.5rem;
}

.trust-item img {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--bg-white);
    text-align: center;
}

.cta-content h2 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

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

.footer-col a:hover {
    color: var(--bg-white);
}

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

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

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

/* ========================================
   Cookie Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: none;
}

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

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

.cookie-content p {
    color: rgba(255, 255, 255, 0.9);
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

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

.cookie-modal-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.cookie-option label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
}

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

.cookie-option p {
    margin-top: 0.5rem;
    margin-left: 2rem;
    font-size: 0.9rem;
}

.cookie-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* ========================================
   Service Detailed Pages
   ======================================== */
.services-detailed {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-detailed {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.service-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon-large {
    width: 70px;
    height: 70px;
}

.service-tagline {
    color: var(--text-light);
    font-size: 1.05rem;
}

.service-includes {
    margin: 1.5rem 0;
}

.service-includes ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.service-includes li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.service-pricing {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 1.5rem;
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

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

.contact-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

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

/* ========================================
   Legal Pages
   ======================================== */
.legal-content {
    padding: 3rem 0;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
}

.legal-text h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-text ul,
.legal-text ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.legal-text ul {
    list-style: disc;
}

.legal-text ol {
    list-style: decimal;
}

.cookies-table {
    width: 100%;
    margin: 1.5rem 0;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.cookies-table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.cookies-table td {
    padding: 0.25rem 0;
}

.legal-note {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
}

/* ========================================
   Thank You Page
   ======================================== */
.thankyou-hero {
    padding: 4rem 0;
    background: var(--bg-light);
    text-align: center;
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.explore-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.explore-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.explore-card .btn {
    margin-top: 1rem;
}

/* ========================================
   Timeline
   ======================================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.timeline-content {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

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

.value-card,
.team-member {
    flex: 1 1 100%;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.value-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.member-bio {
    color: var(--text-medium);
}

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

    h2 {
        font-size: 2.25rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-cta {
        flex-direction: row;
    }

    .intro-blocks {
        flex-direction: row;
    }

    .intro-block {
        flex: 1;
    }

    .philosophy-content {
        flex-direction: row;
        align-items: center;
    }

    .philosophy-text,
    .philosophy-visual {
        flex: 1;
    }

    .services-grid {
        gap: 1.5rem;
    }

    .service-card {
        flex: 1 1 calc(50% - 0.75rem);
    }

    .stats-grid {
        gap: 2rem;
    }

    .stat-item {
        flex: 1 1 calc(25% - 1.5rem);
    }

    .process-steps {
        flex-direction: row;
        flex-wrap: wrap;
    }

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

    .testimonials-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .testimonial-card {
        flex: 1 1 calc(50% - 1rem);
    }

    .knowledge-grid {
        gap: 1.5rem;
    }

    .knowledge-card {
        flex: 1 1 calc(50% - 0.75rem);
    }

    .industry-item,
    .benefit-item {
        flex: 1 1 calc(50% - 1rem);
    }

    .trust-grid {
        gap: 2rem;
    }

    .trust-item {
        flex: 1 1 calc(50% - 1rem);
    }

    .cta-buttons {
        flex-direction: row;
    }

    .footer-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer-col {
        flex: 1 1 calc(50% - 1rem);
    }

    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-buttons {
        flex-direction: row;
    }

    .cookie-modal-buttons {
        flex-direction: row;
    }

    .service-header {
        flex-direction: row;
        align-items: center;
    }

    .contact-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-card {
        flex: 1 1 calc(33.333% - 1.33rem);
    }

    .explore-grid {
        flex-direction: row;
    }

    .explore-card {
        flex: 1;
    }

    .values-grid {
        gap: 2rem;
    }

    .value-card {
        flex: 1 1 calc(50% - 1rem);
    }

    .team-grid {
        gap: 2rem;
    }

    .team-member {
        flex: 1 1 calc(50% - 1rem);
    }
}

/* ========================================
   Responsive Design - Desktop
   ======================================== */
@media (min-width: 1024px) {
    .hero {
        padding: 5rem 0;
    }

    .service-card {
        flex: 1 1 calc(33.333% - 1.33rem);
    }

    .knowledge-card {
        flex: 1 1 calc(33.333% - 1.33rem);
    }

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

    .testimonial-card {
        flex: 1 1 calc(33.333% - 1.33rem);
    }

    .value-card {
        flex: 1 1 calc(33.333% - 1.33rem);
    }

    .team-member {
        flex: 1 1 calc(33.333% - 1.33rem);
    }

    .footer-col {
        flex: 1 1 calc(25% - 1.5rem);
    }

    .trust-item {
        flex: 1 1 calc(25% - 1.5rem);
    }
}

/* ========================================
   Accessibility
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

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

.hidden {
    display: none;
}