/* 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, '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 {
    padding: 1rem 0;
}

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

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

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

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

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

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

/* 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.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

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

.page-intro {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    text-align: center;
}

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

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

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

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

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

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

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

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

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

.info-card {
    background: #fff;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.info-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.info-card p {
    color: #555;
    line-height: 1.8;
}

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

.service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-card h2 {
    font-size: 1.5rem;
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 0;
}

.service-card p {
    padding: 0 1.5rem 1.5rem;
    color: #555;
    line-height: 1.8;
}

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

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

.detail-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-item h3 {
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

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

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

.contact-info h2 {
    text-align: left;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

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

.info-block h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

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

/* Contact Form */
.contact-form-wrapper h2 {
    text-align: left;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

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

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

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

.submit-btn {
    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: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

/* Legal Content */
.legal-content {
    background: #f8f9fa;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.legal-text h2 {
    font-size: 1.75rem;
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

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

.legal-text h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333;
}

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

.legal-text ul {
    margin-bottom: 1rem;
    margin-left: 2rem;
    color: #555;
}

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

.legal-note {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 4px;
    font-style: italic;
}

/* Notice Box */
.notice {
    background: #f8f9fa;
}

.notice-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 4px;
}

.notice-box p {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

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

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

.footer-brand strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #aaa;
    margin: 0;
}

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

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

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

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

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: #aaa;
    margin: 0;
}

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

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

    section h2 {
        font-size: 1.75rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .content-grid,
    .content-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

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

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

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

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

    .legal-text {
        padding: 2rem;
    }
}

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

    .nav-menu {
        flex-wrap: wrap;
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .hero,
    .page-header {
        padding: 3rem 0;
    }

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

    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 1.5rem;
    }

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

    .legal-text {
        padding: 1.5rem;
    }
}

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

    .nav-menu {
        gap: 0.5rem;
    }

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