/* 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: #333;
    background-color: #ffffff;
}

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

/* Header and Navigation */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2563eb;
}

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

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

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

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

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

/* Page Header */
.page-header {
    background-color: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

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

.lead {
    font-size: 1.25rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
}

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

.content-section.gray {
    background-color: #f8f9fa;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.content-section p {
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.7;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text {
    padding: 1rem 0;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.intro-text p {
    font-size: 1.125rem;
}

/* Two Column Text */
.two-column-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1a202c;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s;
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

.feature-card p {
    color: #4a5568;
}

/* Feature Detail Section */
.features-detail-section {
    padding: 0;
}

.feature-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
}

.feature-detail:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.feature-detail.reverse {
    direction: rtl;
}

.feature-detail.reverse > * {
    direction: ltr;
}

.feature-detail-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.feature-detail-content p {
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.7;
}

.feature-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

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

.service-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

.service-card p {
    color: #4a5568;
}

/* Notice Section */
.notice-section {
    padding: 3rem 0;
    background-color: #fef3c7;
}

.notice {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 4px;
}

.notice p {
    color: #78350f;
    margin: 0;
    line-height: 1.6;
}

/* Contact Section */
.contact-grid {
    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: #1a202c;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-button {
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #1d4ed8;
}

.submit-button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.info-item p {
    color: #4a5568;
    line-height: 1.6;
}

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

.legal-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

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

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

.legal-content p {
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: #4a5568;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content em {
    color: #718096;
    font-size: 0.875rem;
}

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

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

.footer-brand p {
    margin: 0;
    color: #cbd5e0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.2s;
}

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

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

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

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

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

    .content-grid,
    .content-grid.reverse,
    .feature-detail,
    .feature-detail.reverse,
    .contact-grid,
    .two-column-text {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

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

    .container {
        padding: 0 1rem;
    }

    nav {
        padding: 1rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-menu {
        gap: 0.75rem;
        font-size: 0.813rem;
    }

    .hero {
        padding: 3rem 0;
    }

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

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

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

    .feature-detail {
        padding: 3rem 0;
    }
}

@media (max-width: 360px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

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