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

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

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

nav {
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    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: #1a1a1a;
    outline: 2px solid #1a1a1a;
    outline-offset: 4px;
}

.nav-menu a.active {
    color: #1a1a1a;
}

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

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

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

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

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

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

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

.intro-text {
    font-size: 1.125rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

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

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

p {
    margin-bottom: 1rem;
    color: #555;
}

.centered {
    text-align: center;
}

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

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

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

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

.content-text h2,
.content-text h3 {
    margin-top: 0;
}

.content-image 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: 3rem;
}

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

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

.feature-card h3 {
    margin-top: 0;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

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

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

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

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

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

.info-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.info-card h3 {
    margin-top: 0;
}

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

.notice {
    background-color: #ffffff;
    border: 1px solid #ffd966;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

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

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

.contact-info h2,
.contact-form-wrapper h2 {
    margin-top: 0;
}

.contact-details {
    margin-top: 2rem;
}

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

.contact-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    margin-top: 2rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 0;
    border-color: #667eea;
}

textarea {
    resize: vertical;
}

.submit-button {
    background-color: #667eea;
    color: #ffffff;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #5568d3;
}

.submit-button:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 4px;
}

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

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

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

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

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

.footer-content p {
    color: #ffffff;
    margin: 0;
}

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

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

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

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

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

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

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

    h2 {
        font-size: 1.75rem;
    }

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

    .content-grid.reverse,
    .feature-item.reverse {
        direction: ltr;
    }

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

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

    .container {
        padding: 0 1rem;
    }

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

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

    .hero {
        padding: 3rem 0;
    }

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

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

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

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

    .logo {
        font-size: 1.25rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

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