/* 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;
    transition: color 0.2s;
}

a:hover,
a:focus {
    color: #1d4ed8;
}

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

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

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

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

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

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

nav a {
    color: #4b5563;
    font-weight: 500;
    padding: 0.5rem 0;
}

nav a:hover,
nav a:focus {
    color: #1f2937;
}

nav a.active {
    color: #2563eb;
}

/* 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;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

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

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

/* Content Sections */
main {
    min-height: calc(100vh - 200px);
}

.content {
    padding: 4rem 0;
}

.page-header {
    background-color: #f9fafb;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

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

.subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}

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

.feature {
    background-color: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.feature h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 1.5rem 0.75rem;
}

.feature p {
    color: #4b5563;
    margin: 0 1.5rem 1.5rem;
}

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

.service-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.service-card h2 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 1.5rem 0.75rem;
}

.service-card p {
    color: #4b5563;
    margin: 0 1.5rem 1.5rem;
}

.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* Features List */
.features-list {
    margin-top: 3rem;
}

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

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

.feature-item {
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 8px;
}

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

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

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

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

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

.text-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

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

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

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

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

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

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

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

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

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

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

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    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);
}

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

.legal-text {
    max-width: 800px;
    margin: 0 auto;
}

.legal-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 1rem;
}

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

.legal-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.75rem;
}

.legal-text p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.legal-text ul {
    color: #4b5563;
    margin: 1rem 0 1rem 2rem;
}

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

.updated {
    margin-top: 3rem;
    font-style: italic;
    color: #6b7280;
}

/* CTA Section */
.cta {
    background-color: #f9fafb;
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Button */
.button {
    display: inline-block;
    background-color: #2563eb;
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button:hover,
.button:focus {
    background-color: #1d4ed8;
    color: #fff;
}

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

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

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

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

.footer-nav a {
    color: #d1d5db;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

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

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

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

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

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

    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

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

    .container {
        padding: 0 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero {
        padding: 3rem 0;
    }

    .content {
        padding: 3rem 0;
    }

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

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.75rem;
    }

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