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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

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

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

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

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Page Header */
.page-header {
    background-color: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.page-header p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 80px 20px;
}

.gray-bg {
    background-color: #f8f9fa;
}

.content-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.content-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.content-section p {
    font-size: 17px;
    margin-bottom: 20px;
    color: #555;
}

/* Grid Layouts */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

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

.text-block {
    max-width: 600px;
}

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

/* Features */
.intro, .features, .about-preview {
    padding: 80px 20px;
}

.intro h2, .features h2, .about-preview h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.feature-card p {
    font-size: 16px;
    color: #555;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 40px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.service-card h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.service-card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

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

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.feature-item p {
    font-size: 16px;
    color: #555;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2, .contact-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a1a;
    font-weight: 600;
}

.info-block p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

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

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

.form-group label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.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: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #0066cc;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

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

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

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

.legal-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

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

.legal-content p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

/* Notice */
.notice {
    padding: 40px 20px;
    background-color: #fff9e6;
    border-top: 1px solid #f0e6cc;
    border-bottom: 1px solid #f0e6cc;
}

.notice-text {
    text-align: center;
    font-size: 15px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 20px;
    margin-top: 80px;
}

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

.footer-brand p {
    font-size: 14px;
    color: #cccccc;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

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

    .hero-text {
        font-size: 18px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .content-grid,
    .content-grid.reverse,
    .two-column,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }

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

    .content-section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-text {
        font-size: 16px;
    }

    .content-section h2 {
        font-size: 28px;
    }

    .logo {
        font-size: 20px;
    }
}

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