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

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

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

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

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

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

nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

nav a:hover,
nav a:focus {
    color: #1a1a1a;
    outline: 2px solid #1a1a1a;
    outline-offset: 4px;
}

nav a.active {
    color: #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
}

/* 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 p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

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

.notice p {
    font-size: 0.875rem;
    color: #555;
    font-style: italic;
}

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

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

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

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

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

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid.reverse {
    direction: rtl;
}

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

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

.text-content p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1rem;
}

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

.text-content-full h2 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    text-align: center;
}

.text-content-full p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1rem;
}

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

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

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

.content-section.alt .feature-card {
    background-color: #f8f9fa;
}

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

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

.feature-card p {
    color: #555;
    font-size: 0.9375rem;
}

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

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

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

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

.contact-item p {
    color: #555;
    font-size: 0.9375rem;
}

/* 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-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s;
}

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

.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-button:hover,
.submit-button:focus {
    opacity: 0.9;
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* 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 {
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.9375rem;
}

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

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

.footer-brand p {
    color: #ccc;
    font-size: 0.875rem;
}

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

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

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

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

    .grid.reverse {
        direction: ltr;
    }

    nav ul {
        gap: 1rem;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

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

    nav ul {
        gap: 0.75rem;
        font-size: 0.875rem;
    }

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

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