:root {
    --primary-color: #1A365D; /* Lacivert / Koyu Mavi */
    --primary-light: #2B4C7E;
    --background-color: #F8FAFC; /* Soft Gri */
    --text-main: #334155;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.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;
}

/* Header / Hero Section */
.hero {
    background-color: var(--white);
    padding: 60px 0 40px;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 200px;
    height: auto;
    display: inline-block;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-button {
    display: inline-block;
    transition: transform 0.2s ease;
}

.store-button:hover {
    transform: translateY(-2px);
}

.store-button img {
    height: 48px;
    width: auto;
}

/* Main Content */
main {
    flex: 1;
    padding: 60px 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 700;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 0 10px;
}

.doc-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

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

.card-icon {
    background-color: #F1F5F9;
    color: var(--primary-color);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.doc-card:hover .card-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.doc-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.doc-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    margin-top: auto;
}

.site-footer p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #CBD5E1;
}

.site-footer p:last-child {
    margin-bottom: 0;
}

.email-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.email-link:hover {
    color: #94A3B8;
    text-decoration: underline;
}

/* Modals */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--text-main);
    background-color: #F1F5F9;
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 16px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* Scrollbar Customization for Modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: #CBD5E1;
    border-radius: 20px;
}

/* Responsive (Mobile First is the base, adding some larger screen tweaks if needed) */
@media (max-width: 600px) {
    .hero {
        padding: 40px 0 30px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header {
        padding: 20px;
        border-radius: 0;
    }

    .modal-body {
        padding: 20px;
    }
}
