/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

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

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

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

.nav-menu a {
    color: #d1d5db;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
    text-decoration: none;
}

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

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

.hero-subtitle {
    font-size: 1.25rem;
    color: #e5e7eb;
    max-width: 800px;
    margin: 0 auto;
}

/* Notice Section */
.notice {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 0;
}

.notice .container {
    padding: 0.5rem 20px;
}

.notice p {
    color: #92400e;
    font-size: 0.95rem;
    margin: 0;
}

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

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

.page-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

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

.content-section.secondary {
    background-color: #f9fafb;
}

.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 h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.content-text p {
    margin-bottom: 1rem;
    color: #4b5563;
    line-height: 1.8;
}

.content-image img {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.intro-text p {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.8;
}

/* Features */
.features {
    padding: 4rem 0;
    background-color: #f9fafb;
}

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

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

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #4b5563;
    line-height: 1.7;
}

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

.feature-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.feature-item h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: #4b5563;
}

/* Services Grid */
.services-grid {
    padding: 2rem 0 4rem;
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.service-card.reverse {
    direction: rtl;
}

.service-card.reverse > * {
    direction: ltr;
}

.service-image img {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.service-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.detail-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.detail-item h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.detail-item p {
    color: #4b5563;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 1.875rem;
    color: #1f2937;
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    font-size: 1.125rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-item p {
    color: #4b5563;
    line-height: 1.8;
}

/* Contact Form */
.contact-form {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

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

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

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

/* Legal Content */
.legal-content {
    padding: 3rem 0;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
    color: #374151;
}

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

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

.legal-text h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-text ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

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

/* Footer */
footer {
    background-color: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #374151;
}

.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #9ca3af;
}

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

.footer-links a {
    color: #d1d5db;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    color: #9ca3af;
    padding-top: 1rem;
}

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

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

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

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

    .content-grid,
    .service-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-grid.reverse,
    .service-card.reverse {
        direction: ltr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero {
        padding: 2.5rem 0;
    }

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

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

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

    .features h2,
    .content-text h2 {
        font-size: 1.5rem;
    }

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

    .contact-form {
        padding: 1.5rem;
    }
}

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

    .logo {
        font-size: 1.25rem;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.85rem;
    }
}
