:root {
    --primary: #4a3728;
    --accent: #d4af37;
    --secondary: #5c7c32;
    --text-dark: #2d2621;
    --bg-light: #fdfaf3;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--bg-light);
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    color: var(--text-dark);
}

/* NAVIGATION */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%;
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { color: white; font-size: 1.5rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.logo span { color: var(--accent); }

nav ul { display: flex; list-style: none; gap: 25px; }
nav ul li a { color: #f0f0f0; text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
nav ul li a:hover { color: var(--accent); }

.nav-btn { background: var(--accent); padding: 8px 18px !important; border-radius: 20px; color: var(--primary) !important; font-weight: 600; }

/* HERO SECTION */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1456948927036-ad533e53865c?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; opacity: 0.9; }

/* BUTTONS */
.primary-btn { 
    background: var(--accent); color: var(--primary); padding: 15px 35px; 
    border-radius: 50px; border: none; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); transition: 0.3s;
}

.secondary-white-btn {
    background: transparent; color: white; border: 2px solid white; 
    padding: 13px 35px; border-radius: 50px; margin-left: 15px; cursor: pointer;
}

.primary-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }

/* STATS BAR */
.stats-bar {
    display: flex; justify-content: space-around; background: white;
    padding: 2rem 10%; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.stat strong { display: block; font-size: 2rem; color: var(--primary); }
.stat span { color: #777; font-size: 0.9rem; text-transform: uppercase; }

/* REUSABLE SECTIONS */
.section-title { text-align: center; font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 3rem; }
.how-it-works { padding: 5rem 10%; }
.step-container { display: flex; gap: 40px; }
.step { flex: 1; text-align: center; }
.step-number { 
    width: 50px; height: 50px; background: var(--secondary); color: white; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-weight: bold; font-size: 1.2rem;
}

/* FOOTER */
footer { background: var(--primary); color: #ddd; padding: 4rem 10% 2rem; margin-top: 4rem; }
.footer-links { display: flex; gap: 100px; margin-bottom: 2rem; }
.footer-col h4 { color: var(--accent); margin-bottom: 1rem; }
.footer-col a { display: block; color: #bbb; text-decoration: none; margin-bottom: 8px; font-size: 0.9rem; }
hr { border: 0; border-top: 1px solid #555; margin-bottom: 20px; }

/* CONTACT PAGE STYLES */
.contact-wrapper {
    padding: 60px 10%;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 100%;
}

.contact-info {
    background: var(--primary);
    color: white;
    padding: 60px;
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.info-item {
    margin-top: 30px;
}

.info-item strong {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.contact-form-box {
    padding: 60px;
    background: #fff;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    background: #fdfaf3;
}

.input-group input:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

/* Responsive fix for mobile */
@media (max-width: 850px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .contact-wrapper {
        padding: 20px;
    }
}
/* DNA SECTION */
.dna-feature {
    display: flex;
    align-items: center;
    padding: 80px 10%;
    background: #1a2a3a; /* Deep blue/charcoal for a modern tech feel */
    color: white;
    gap: 50px;
}

.dna-content { flex: 1; }
.badge { background: var(--accent); color: var(--primary); padding: 5px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; }
.check-list { list-style: none; padding: 0; margin: 25px 0; }
.check-list li::before { content: "✓"; color: var(--accent); margin-right: 10px; font-weight: bold; }

.dna-visual { 
    flex: 1; 
    height: 400px; 
    background: url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?auto=format&fit=crop&q=80&w=800'); 
    background-size: cover;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* TESTIMONIALS */
.testimonials { padding: 80px 10%; background: #f4ecd8; }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.testi-card { 
    background: white; 
    padding: 40px; 
    border-radius: 10px; 
    font-style: italic; 
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.testi-card::before { content: '"'; font-size: 80px; color: var(--accent); position: absolute; top: -10px; left: 10px; opacity: 0.3; }

/* FINAL CTA */
.final-cta { padding: 100px 10%; text-align: center; }
.cta-box { 
    background: var(--primary); 
    padding: 60px; 
    border-radius: 20px; 
    color: white;
    background-image: linear-gradient(rgba(74, 55, 40, 0.9), rgba(74, 55, 40, 0.9)), url('https://www.transparenttextures.com/patterns/aged-paper.png');
}

/* Records Grid Section */
.records-grid {
    padding: 80px 10%;
    background-color: #fdfaf3;
}

.grid-header {
    text-align: center;
    margin-bottom: 50px;
}

.grid-header p {
    color: #666;
    font-style: italic;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Individual Card Styling */
.collection-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #eee;
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Image Section with Zoom Effect */
.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.collection-card:hover .card-image {
    transform: scale(1.1);
}

/* Records Grid Section */
.records-grid {
    padding: 100px 10%;
    background-color: #fcfaf5;
}

.grid-header {
    text-align: center;
    margin-bottom: 60px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* Card Container */
.collection-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(74, 55, 40, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.collection-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(74, 55, 40, 0.2);
}

/* Image Handling with Fallbacks */
.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    position: relative;
}

/* Hover Zoom */
.collection-card:hover .card-image {
    transform: scale(1.08);
}

/* Updated Background Images */
.census { 
    background-color: #4a3728;
    background-image: url('https://images.pexels.com/photos/4034951/pexels-photo-4034951.jpeg?auto=compress&cs=tinysrgb&w=800'); 
}
.military { 
    background-color: #5c7c32;
    background-image: url('https://images.pexels.com/photos/731217/pexels-photo-731217.jpeg?auto=compress&cs=tinysrgb&w=800'); 
}
.vital { 
    background-color: #8b7355;
    background-image: url('https://images.pexels.com/photos/4519106/pexels-photo-4519106.jpeg?auto=compress&cs=tinysrgb&w=800'); 
}

/* Glassmorphism Shine Effect */
.card-image::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.collection-card:hover .card-image::after {
    left: 125%;
}

/* Content Styling */
.card-content {
    padding: 30px;
}

.record-count {
    font-size: 0.7rem;
    font-weight: 800;
    color: #b8860b;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #2d2621;
}

.card-content p {
    font-size: 0.95rem;
    color: #5a5a5a;
    line-height: 1.7;
    margin-bottom: 25px;
}

.text-link {
    color: #4a3728;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 4px;
    transition: 0.3s;
}

.text-link:hover {
    background: #d4af37;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
}