/* Genealogy Research Services - Main Stylesheet */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; color: #8b4513; }
h2 { font-size: 2rem; color: #654321; }
h3 { font-size: 1.5rem; color: #654321; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #8b4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #654321;
    text-decoration: underline;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo h1 {
    color: #ecf0f1;
    margin-bottom: 0.25rem;
    font-size: 1.8rem;
}

.logo h1 a {
    color: #ecf0f1;
    text-decoration: none;
}

.tagline {
    color: #bdc3c7;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #ecf0f1;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current a {
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1.5rem;
}

.language-switcher .lang-link {
    color: #bdc3c7;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-switcher .lang-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ecf0f1;
    text-decoration: none;
    border-color: rgba(255,255,255,0.3);
}

.language-switcher .lang-link.active {
    background-color: #8b4513;
    color: white;
    border-color: #8b4513;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(139, 69, 19, 0.8), rgba(101, 67, 33, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f4f1e8" width="1200" height="600"/><path fill="%23e8dcc0" d="M0 400h1200v200H0z"/></svg>');
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #8b4513;
    color: white;
}

.btn-primary:hover {
    background-color: #654321;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #8b4513;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: #8b4513;
    border: 2px solid #8b4513;
}

.btn-outline:hover {
    background-color: #8b4513;
    color: white;
    text-decoration: none;
}

/* Services Grid */
.services-overview {
    padding: 4rem 0;
    background-color: white;
}

.services-overview h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

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

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-card h4 {
    color: #8b4513;
    margin-bottom: 1rem;
}

/* Features Grid */
.why-choose-us {
    padding: 4rem 0;
    background-color: #f4f1e8;
}

.why-choose-us h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature h4 {
    color: #8b4513;
    margin-bottom: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #8b4513;
}

/* Page Content */
.page-content, .page-content {
    padding: 2rem 0;
    background-color: white;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #8b4513;
}

.page-summary {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

/* Service Pages */
.service-detail {
    background-color: white;
    padding: 2rem 0;
}

.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.service-sidebar {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
}

.service-detail-item {
    margin-bottom: 2rem;
}

.service-detail-item h4 {
    color: #8b4513;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8b4513;
}

.service-cta {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Process Steps */
.service-process {
    background-color: #f4f1e8;
    padding: 3rem 0;
    margin: 3rem 0;
}

.process-steps {
    display: grid;
    gap: 2rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    background-color: #8b4513;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

/* Success Stories */
.story-meta {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.meta-item h4 {
    color: #8b4513;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.meta-item p {
    margin-bottom: 0;
    font-weight: 500;
}

.story-outcome, .client-testimonial {
    background-color: #f4f1e8;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.client-testimonial blockquote {
    font-style: italic;
    font-size: 1.1rem;
    border-left: 4px solid #8b4513;
    padding-left: 1rem;
    margin: 0;
}

.client-testimonial cite {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: #8b4513;
}

.story-cta {
    text-align: center;
    padding: 3rem 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 3rem 0;
}

/* Contact Form */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem 0;
}

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

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

.contact-item h4 {
    color: #8b4513;
    margin-bottom: 0.5rem;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b4513;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.form-errors {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-content h4 {
    color: #8b4513;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

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

.footer-nav a:hover {
    color: #ecf0f1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .language-switcher {
        margin-left: 0;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .service-content {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .hero {
        padding: 2rem 0;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
}