/* 2026 Lightweight Base */
:root {
    --primary: #1a2a3a; /* Deep Slate */
    --accent: #d4a373;  /* Warm Wood/Victorian tone */
    --text: #333;
    --light: #f9f9f9;
    --white: #ffffff;
    --transition: 0.3s ease-in-out;
}

/* Modern Animation Support (interpolate-size is a 2025+ feature) */
:root { interpolate-size: allow-keywords; }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

.container { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }

/* Navigation */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { color: var(--white); text-decoration: none; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; }
.logo span { color: var(--accent); }

.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-text h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.hero-text p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: var(--transition);
}

.btn.secondary { background: transparent; border: 2px solid var(--white); color: var(--white); margin-left: 1rem; }
.btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* FAQ Accordion (Modern CSS) */
.faq-section h2 { text-align: center; margin-bottom: 3rem; }
details {
    background: var(--light);
    margin-bottom: 1rem;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    transition: height 0.4s ease; /* Works with interpolate-size */
}

summary {
    padding: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    background: #eee;
}

summary::after { content: '+'; color: var(--accent); font-size: 1.5rem; }
details[open] summary::after { content: '−'; }
details p { padding: 1.5rem; }

/* Portfolio Grid (No Media Queries needed!) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.inspection-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

/* Sidebar Info */
.contact-info {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
}

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

.info-block h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-block ul {
    list-style: none;
    padding-left: 0;
}

.info-block li {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.badge {
    background: var(--white);
    padding: 1rem;
    border: 1px dashed var(--accent);
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-info {
        order: -1; /* Move info to top on mobile */
    }
}

/* Services Specific Styles */
.section-header { text-align: center; margin-bottom: 4rem; }
.subtitle { font-size: 1.2rem; color: #666; }

.service-card {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
}

.service-card.highlight {
    background: var(--primary);
    color: var(--white);
    border-top: 4px solid var(--accent);
}

.service-card.highlight h2 { color: var(--accent); }

.service-card ul { margin: 1.5rem 0; padding-left: 1.2rem; flex-grow: 1; }
.service-card li { margin-bottom: 0.5rem; }

.price { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-top: auto; }

/* Pricing Table */
.add-ons { margin-top: 5rem; }
.add-ons h3 { margin-bottom: 2rem; border-bottom: 2px solid var(--light); padding-bottom: 1rem; }

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.pricing-table th, .pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.pricing-table th { background: var(--light); color: var(--primary); }

@media (max-width: 600px) {
    .pricing-table thead { display: none; }
    .pricing-table tr { display: block; margin-bottom: 1rem; border: 1px solid #eee; padding: 1rem; }
    .pricing-table td { display: flex; justify-content: space-between; border: none; padding: 0.5rem 0; }
    .pricing-table td::before { content: attr(data-label); font-weight: bold; }
}

/* About Page Specifics */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: start;
}

.lead {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 2rem;
}

.certifications {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--light);
    border-radius: 8px;
}

.cert-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.cert-list li {
    background: var(--white);
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

/* Sidebar Styling */
.bio-image img {
    width: 100%;
    border-radius: 8px;
    filter: grayscale(20%); /* Gives it a professional, slightly 'vintage' look */
    margin-bottom: 2rem;
}

.community-logic {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
}

.link-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.link-list li {
    margin-bottom: 0.8rem;
}

.link-list a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--accent);
}

.link-list a:hover {
    background: var(--accent);
    color: var(--white);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-sidebar {
        order: -1; /* Put the image at the top on mobile */
    }
}

/* Watch List Gallery */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.watch-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
}

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

.card-image-wrapper {
    aspect-ratio: 4 / 3; /* Keeps all cards uniform */
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    display: block;
}

.watch-card figcaption {
    padding: 1.5rem;
}

.watch-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.watch-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Footer */
.site-footer { background: var(--primary); color: var(--white); padding: 4rem 5% 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--accent); text-decoration: none; }
.copyright { text-align: center; margin-top: 3rem; font-size: 0.8rem; opacity: 0.6; }

/* Mobile Menu Fallback */
@media (max-width: 768px) {
    .nav-links { display: none; } /* In a real build, add a hamburger toggle here */
}