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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

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

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

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

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

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

.nav-menu a:hover,
.nav-menu a:focus {
    color: #0066cc;
}

.nav-menu a.active {
    color: #0066cc;
}

.nav-menu a:focus {
    outline: 2px solid #0066cc;
    outline-offset: 4px;
}

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

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

.hero-text {
    font-size: 1.2rem;
    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;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.page-intro {
    font-size: 1.1rem;
    color: #555;
}

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

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

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Content Blocks */
.content-block h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

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

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

/* Feature Cards */
.feature-card,
.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-card h3,
.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

.feature-card p,
.service-card p {
    color: #555;
    line-height: 1.7;
}

/* Feature Details */
.feature-detail {
    padding: 1.5rem;
}

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

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

/* Centered Content */
.centered {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #1a1a1a;
}

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

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

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

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

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

.notice p {
    color: #555;
    line-height: 1.7;
}

/* Contact Page */
.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

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

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

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

/* Contact Form */
.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

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

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

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

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    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: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.btn-submit {
    padding: 0.9rem 2rem;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #0052a3;
}

.btn-submit:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

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

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

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

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

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

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 0 1.5rem;
}

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

.footer-brand p {
    margin-bottom: 0.3rem;
}

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

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

.footer-links a:hover,
.footer-links a:focus {
    color: #fff;
}

.footer-links a:focus {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.footer-bottom p {
    color: #999;
}

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

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

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

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

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

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

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

    .content-block h2,
    .centered,
    .centered-content h2,
    .contact-info h2,
    .contact-form-wrapper h2 {
        font-size: 1.5rem;
    }

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

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

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

    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

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

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

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