/* HTMA Test Canada - Subpage Styles */
:root {
    --primary: #4A6B5D;
    --primary-dark: #3A5548;
    --accent: #C4A77D;
    --accent-dark: #B8956A;
    --text: #2D3B35;
    --text-dark: #2D3B35;
    --text-medium: #5A6560;
    --text-light: #5A6560;
    --bg: #FDFBF7;
    --bg-cream: #FDFBF7;
    --bg-warm: #F5F2EC;
    --bg-alt: #F5F2EC;
    --bg-sage: #E8EDE9;
    --border: #E8E4DD;
    --white: #ffffff;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
    --section-pad: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.7; }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(253, 251, 247, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 8px 24px; display: flex; justify-content: space-between; align-items: center; }

/* Logo - proportional sizing */
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { height: 80px; width: auto; max-width: 200px; }

/* Footer Logo */
.footer-brand .logo img { height: 70px; width: auto; }

/* Mobile Logo */
@media (max-width: 768px) {
    .logo img { height: 60px; }
}

.nav-links { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { background: var(--primary); color: var(--white) !important; padding: 10px 20px; border-radius: 6px; }
.nav-cta:hover { background: var(--primary-dark); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 3px; background: #2D3B35; margin: 4px 0; transition: 0.3s; border-radius: 2px; }

/* Page Header */
.page-header { padding: 160px 0 60px; background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%); text-align: center; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); color: var(--text); margin-bottom: 16px; }
.page-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Content Section */
.content-section { padding: var(--section-pad) 0; }
.content-section h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--text); margin: 40px 0 16px; }
.content-section h2:first-child { margin-top: 0; }
.content-section p { margin-bottom: 16px; color: var(--text); }
.content-section ul, .content-section ol { margin: 16px 0 16px 24px; }
.content-section li { margin-bottom: 8px; }
.content-section a { color: var(--primary); }

/* Content Grid for About Page */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }
.content-text h2 { margin-top: 0; }

/* Image Placeholder */
.image-placeholder { background: var(--primary); color: var(--white); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; max-width: 300px; margin: 0 auto; }
.image-placeholder svg { width: 80px; height: 80px; margin-bottom: 16px; }
.image-placeholder span { font-weight: 600; font-size: 1.1rem; }

/* Values Grid */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 40px; }
.value-card { background: var(--white); padding: 30px; border-radius: 12px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.value-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 12px; color: var(--text); }
.value-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }
.value-icon { width: 60px; height: 60px; background: var(--bg-alt); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.value-icon svg { width: 28px; height: 28px; color: var(--primary); }

/* Section Backgrounds */
.bg-sage { background: var(--bg-alt); }
.bg-warm { background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%); }

/* Section Title */
.section-title { font-family: var(--font-display); font-size: 2rem; text-align: center; color: var(--text); margin-bottom: 16px; }
.section-subtitle { text-align: center; color: var(--text-light); max-width: 600px; margin: 0 auto 40px; }

/* Lab Features */
.lab-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.lab-feature { background: var(--white); padding: 16px 24px; border-radius: 8px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.lab-check { color: var(--primary); font-weight: bold; font-size: 1.2rem; }

/* Feature List */
.feature-list { list-style: none; margin-left: 0 !important; }
.feature-list li { padding-left: 28px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

/* CTA Section */
.cta-section { background: var(--primary); color: var(--white); padding: 80px 0; text-align: center; }
.cta-section h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 16px; }
.cta-section p { opacity: 0.9; max-width: 500px; margin: 0 auto 30px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--white) !important; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--bg-alt); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }

/* Footer Info */
.footer-info { color: rgba(255,255,255,0.5) !important; font-size: 0.85rem; }
.footer-column h4 { font-size: 1rem; margin-bottom: 20px; color: var(--white); }

/* Mobile Responsive */
@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; gap: 40px; }
    .content-grid.reverse { direction: ltr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .values-grid { grid-template-columns: 1fr; }
    .image-placeholder { max-width: 200px; padding: 30px; }
    .image-placeholder svg { width: 60px; height: 60px; }
}

/* Footer */
.footer { background: var(--text); color: var(--white); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.7; margin: 16px 0 20px; }
.footer-column h3 { font-size: 1rem; margin-bottom: 20px; color: var(--white); }
.footer-column ul { list-style: none; }
.footer-column a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; display: block; padding: 6px 0; transition: color 0.2s; }
.footer-column a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 8px; }
.footer-legal a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.85rem; padding: 8px 12px; display: inline-block; }
.footer-legal a:hover { color: var(--white); }
.site-credit { color: rgba(255,255,255,0.7); font-size: 0.8rem; }
.site-credit a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }
.site-credit a:hover { color: var(--white); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 18px; height: 18px; fill: var(--white); }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none !important; }
    .mobile-menu-btn { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 44px; height: 44px; z-index: 9999; position: relative; }
    .mobile-menu-btn.active span { background: #2D3B35; }
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-social { justify-content: center; }
}

/* Trust Badges Section */
.trust-badges {
    padding: 40px 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.badges-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.badge-icon {
    font-size: 1.8rem;
}
.badge-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.badge-text span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Homepage Testimonials */
.testimonials-section {
    padding: var(--section-pad) 0;
    background: white;
}
.testimonials-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.testimonial-card-home {
    background: var(--bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial-card-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.testimonial-card-home .stars {
    color: #F59E0B;
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
}
.testimonial-card-home blockquote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 20px;
    font-style: italic;
}
.testimonial-author-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.testimonial-author-home strong {
    color: var(--text);
    font-weight: 600;
}
.testimonial-author-home span {
    font-size: 0.9rem;
    color: var(--text-light);
}
.testimonials-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.rating-summary-home {
    display: flex;
    align-items: center;
    gap: 12px;
}
.stars-large {
    color: #F59E0B;
    font-size: 1.5rem;
    letter-spacing: 2px;
}
.read-more-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.read-more-link:hover {
    text-decoration: underline;
}

/* Page Header (for inner pages) */
.page-header {
    background: var(--bg-sage);
    padding: calc(var(--section-pad) + 80px) 0 60px;
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}
.page-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    color: var(--text-light);
    margin: 0 8px;
}

/* Content Section */
.content-section {
    padding: var(--section-pad) 0;
}

@media (max-width: 768px) {
    .badges-grid {
        gap: 24px;
    }
    .badge-item {
        flex-basis: calc(50% - 12px);
        justify-content: center;
    }
    .testimonials-footer {
        flex-direction: column;
        text-align: center;
    }
}
