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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.7;
    color: #0A0A2A;
    background-color: #fafafa;
    font-size: 16px;
    font-weight: 300;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 1.8rem;
    color: #0A0A2A;
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 3.2rem; 
    font-weight: 300;
    letter-spacing: -0.03em;
}
h2 { 
    font-size: 2.2rem; 
    font-weight: 300;
    letter-spacing: -0.02em;
}
h3 { 
    font-size: 1.6rem; 
    font-weight: 400;
    letter-spacing: -0.01em;
}
h4 { 
    font-size: 1.2rem; 
    font-weight: 400;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
    font-weight: 300;
}

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

/* Header and Navigation */
.header {
    background: #ffffff;
    color: #0A0A2A;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
}

.nav-logo h1 {
    font-size: 1.3rem;
    margin: 0;
    color: #0A0A2A;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #0A0A2A;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: #ffffff;
    padding: 120px 0 80px;
    margin-top: 72px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="subtle" x="0" y="0" width="80" height="80" patternUnits="userSpaceOnUse"><circle cx="40" cy="40" r="0.5" fill="%23e2e8f0" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23subtle)"/></svg>');
    opacity: 0.4;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: center;
}

.family-crest {
    width: clamp(120px, 18vw, 180px);
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.hero-title {
    font-size: 3.2rem;
    color: #0A0A2A;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.hero-motto {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #4a5568;
    margin-bottom: 1.2rem;
    font-style: italic;
    font-variant: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.75;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 1px solid;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Source Sans Pro', sans-serif;
    background: transparent;
}

.btn-primary {
    background: #0A0A2A;
    color: #ffffff;
    border-color: #0A0A2A;
}

.btn-primary:hover {
    background: #2d3748;
    border-color: #2d3748;
}

.btn-secondary {
    color: #4a5568;
    border-color: #cbd5e0;
}

.btn-secondary:hover {
    background: #f7fafc;
    color: #0A0A2A;
    border-color: #a0aec0;
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-alt {
    background: #f7fafc;
}

.section-title {
    text-align: center;
    color: #0A0A2A;
    margin-bottom: 5rem;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

/* History Section */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3.5rem;
}

.history-card {
    background: #ffffff;
    padding: 3rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.history-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #cbd5e0;
    transition: background 0.3s ease;
}

.history-card:hover::before {
    background: #a0aec0;
}

.history-card:hover {
    border-color: #cbd5e0;
}

.history-card h3 {
    color: #0A0A2A;
    margin-bottom: 1.8rem;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.history-card p {
    color: #4a5568;
    line-height: 1.8;
    font-weight: 300;
}

/* Genealogy Section */
.genealogy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.genealogy-text h3 {
    color: #0A0A2A;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.genealogy-text p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.genealogy-features {
    list-style: none;
}

.genealogy-features li {
    padding: 1rem 0;
    position: relative;
    padding-left: 2.5rem;
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 300;
}

.genealogy-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #a0aec0;
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1;
    top: 0.8rem;
}

.genealogy-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.family-tree {
    width: 280px;
    height: 280px;
    background: #f7fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    position: relative;
}

.family-tree::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tree" x="0" y="0" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="0.8" fill="%23cbd5e0" opacity="0.4"/></pattern></defs><rect width="100" height="100" fill="url(%23tree)"/></svg>');
    opacity: 0.6;
}

.tree-symbol {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: #a0aec0;
    font-weight: 300;
    display: block;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.family-tree p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: #718096;
    position: relative;
    z-index: 1;
}

/* Membership Section */
.membership-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.membership-info h3 {
    color: #0A0A2A;
    font-size: 1.7rem;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.membership-benefits {
    list-style: none;
    margin: 2.5rem 0;
}

.membership-benefits li {
    padding: 1rem 0;
    position: relative;
    padding-left: 2.5rem;
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 300;
}

.membership-benefits li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #a0aec0;
    font-size: 1.8rem;
    line-height: 1;
    top: 0.8rem;
}

.membership-contact {
    margin-top: 3rem;
    padding: 2.5rem;
    background: #f7fafc;
    border-left: 3px solid #cbd5e0;
}

.membership-contact p {
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info h3 {
    color: #0A0A2A;
    font-size: 1.7rem;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

.contact-item {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.contact-item h4 {
    color: #0A0A2A;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 400;
}

.contact-item a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 400;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Forms */
.contact-form {
    background: #ffffff;
    padding: 3rem;
    border: 1px solid #e2e8f0;
}

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

.form-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #0A0A2A;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a0aec0;
    background: #f7fafc;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #0A0A2A;
    color: #f7fafc;
    padding: 100px 0 40px;
}

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

.footer-section h3,
.footer-section h4 {
    color: #e2e8f0;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-section a:hover {
    color: #e2e8f0;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid #0A0A2A;
}

.footer-bottom p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 72px;
        flex-direction: column;
        background: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid #e2e8f0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 70px;
    }
    .family-crest {
        width: clamp(110px, 28vw, 150px);
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-container {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .genealogy-content,
    .membership-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

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

    .section {
        padding: 100px 0;
    }

    .container {
        padding: 0 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-logo { margin-bottom: 0.2rem; }
    .hero-motto { font-size: 1.05rem; margin-bottom: 1rem; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.85rem;
    }
}
