/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text-main: #0f172a;
    --color-text-muted: #475569;
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-border: #e2e8f0;

    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --container-max: 1200px;
    --text-reading-width: 70ch;
    --radius-md: 0.5rem;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style-position: outside;
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-text-main);
    color: white;
}

.btn-sm:hover {
    background-color: #334155;
}

/* Header */
.site-header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text-main);
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.site-nav a:not(.btn) {
    color: var(--color-text-muted);
    font-weight: 500;
}

.site-nav a:not(.btn):hover {
    color: var(--color-text-main);
}

/* Hero Section */
.hero {
    background-color: var(--color-surface);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.hero p.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.hero p.hero-text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: var(--text-reading-width);
    margin: 0 auto 2.5rem;
}

/* Common Process Section */
.common-process {
    padding: 4rem 0;
    background-color: var(--color-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.step {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Services Section */
.services {
    padding: 4rem 0;
}

.service-block {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.service-header {
    background-color: #f1f5f9;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.service-summary {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: var(--text-reading-width);
}

.service-details {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.detail-group h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.detail-group ul,
.detail-group ol {
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

.detail-group li {
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq {
    background-color: var(--color-surface);
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

details {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    background-color: #f8fafc;
    cursor: pointer;
    transition: background-color 0.2s;
}

details:hover {
    background-color: #fff;
}

details[open] {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
}

summary {
    font-weight: 600;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
}

details[open] summary::after {
    content: '-';
}

.faq-content {
    margin-top: 1rem;
    color: var(--color-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* Bottom CTA */
.bottom-cta {
    padding: 5rem 0;
    background-color: #1e293b;
    color: white;
    text-align: center;
}

.bottom-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.bottom-cta p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

.bottom-cta .btn-primary {
    background-color: white;
    color: #0f172a;
}

.bottom-cta .btn-primary:hover {
    background-color: #f1f5f9;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    background-color: var(--color-surface);
    text-align: center;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .service-details {
        grid-template-columns: 1fr;
    }
}

a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.5);
    outline-offset: 3px;
    border-radius: 6px;
}