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

/* CSS Variables for easy theming and i18n prep */
:root {
    --color-white: #ffffff;
    --color-light-grey: #f5f5f5;
    --color-medium-grey: #e0e0e0;
    --color-dark-grey: #333333;
    --color-text: #2c2c2c;
    --color-text-light: #666666;
    --color-accent: #4a4a4a;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --max-width: 1200px;
    --spacing-unit: 1rem;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

/* Header */
.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-medium-grey);
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.header__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark-grey);
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero {
    background-color: var(--color-light-grey);
    padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 2);
    text-align: center;
}

.hero__container {
    max-width: 800px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-block;
    background-color: var(--color-dark-grey);
    color: var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-dark-grey);
    margin-bottom: var(--spacing-unit);
    line-height: 1.2;
}

.hero__subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--color-text-light);
    margin-bottom: calc(var(--spacing-unit) * 2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__mission {
    font-size: 1rem;
    color: var(--color-text);
    font-style: italic;
    border-left: 4px solid var(--color-dark-grey);
    padding-left: var(--spacing-unit);
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

/* What We Do Section */
.services {
    padding: calc(var(--spacing-unit) * 5) calc(var(--spacing-unit) * 2);
    background-color: var(--color-white);
}

.services__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.services__title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark-grey);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--color-light-grey);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-unit);
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark-grey);
    margin-bottom: 0.5rem;
}

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

/* White Paper CTA Section */
.cta {
    background-color: var(--color-dark-grey);
    color: var(--color-white);
    padding: calc(var(--spacing-unit) * 5) calc(var(--spacing-unit) * 2);
    text-align: center;
}

.cta__container {
    max-width: 600px;
    margin: 0 auto;
}

.cta__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-unit);
}

.cta__description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.cta__form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
    max-width: 400px;
    margin: 0 auto;
}

.cta__input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-medium-grey);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.2s ease;
}

.cta__input:focus {
    outline: none;
    border-color: var(--color-white);
}

.cta__input::placeholder {
    color: var(--color-text-light);
}

.cta__button {
    background-color: var(--color-white);
    color: var(--color-dark-grey);
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: var(--font-primary);
}

.cta__button:hover {
    background-color: var(--color-light-grey);
}

.cta__button:active {
    transform: scale(0.98);
}

.cta__success {
    display: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-unit);
    border-radius: 6px;
    margin-top: var(--spacing-unit);
}

.cta__success.show {
    display: block;
}

/* Footer */
.footer {
    background-color: var(--color-light-grey);
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 2);
    text-align: center;
    border-top: 1px solid var(--color-medium-grey);
}

.footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer__contact {
    margin-bottom: var(--spacing-unit);
}

.footer__email {
    color: var(--color-dark-grey);
    text-decoration: none;
    font-weight: 500;
}

.footer__email:hover {
    text-decoration: underline;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 1.5);
    }

    .services {
        padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 1.5);
    }

    .cta {
        padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 1.5);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }
    .cta__button {
        transition: none;
    }
}

/* Focus styles for accessibility */
.cta__input:focus-visible,
.cta__button:focus-visible,
.footer__email:focus-visible {
    outline: 3px solid var(--color-white);
    outline-offset: 2px;
}
