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

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: #1a1a1a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover,
.logo:focus {
    color: #4a90e2;
    outline: 2px solid #4a90e2;
    outline-offset: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #4a90e2;
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

.nav-menu a.active {
    color: #4a90e2;
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Page Header */
.page-header {
    background-color: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.page-intro {
    font-size: 1.125rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.alt-bg {
    background-color: #f8f9fa;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-item h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #1a1a1a;
}

.content-item p {
    color: #555;
    line-height: 1.8;
}

.content-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

.column h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.column p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.column img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alt-bg .feature-card {
    background-color: #ffffff;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-card h2 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-card p {
    color: #555;
    line-height: 1.8;
}

/* Centered Content */
.centered-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.centered-content h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.centered-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Info Section */
.info-section {
    padding: 2rem 0;
    background-color: #fff9e6;
}

.notice {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 1.5rem;
    background-color: #fffbf0;
    border: 1px solid #ffe066;
    border-radius: 8px;
}

.notice p {
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 0;
    border-color: #4a90e2;
}

.btn-submit {
    padding: 0.875rem 2rem;
    background-color: #4a90e2;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #357abd;
}

.btn-submit:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.contact-item p {
    color: #555;
    line-height: 1.6;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content a {
    color: #4a90e2;
    text-decoration: underline;
}

.legal-content a:hover,
.legal-content a:focus {
    color: #357abd;
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

.legal-updated {
    margin-top: 2rem;
    font-style: italic;
    color: #777;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #4a90e2;
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

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

    .hero-text {
        font-size: 1.125rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-column.reverse {
        direction: ltr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

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

    .hero-text {
        font-size: 1rem;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .content-section {
        padding: 2rem 0;
    }

    .content-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }
}
