/* Core Variables - City of London Forest Green & Navy */
:root { 
    --primary-green: #005C3A; 
    --primary-green-hover: #004229;
    --navy-dark: #0f172a; 
    --bg-light: #f8fafc;
    --text-main: #334155;
    --red-alert: #b91c1c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; 
    line-height: 1.6; 
    color: var(--text-main); 
    background-color: var(--bg-light); 
    padding-bottom: 70px;
}
@media (min-width: 769px) { body { padding-bottom: 0; } }

.container { width: 90%; max-width: 1100px; margin: 0 auto; padding: 20px 0; }
.text-center { text-align: center; }
.responsive-img { max-width: 100%; height: auto; display: block; }
.rounded-img { border-radius: 8px; }
.shadow { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.modal-trigger { cursor: pointer; transition: opacity 0.2s; }
.modal-trigger:hover { opacity: 0.9; }

/* Buttons */
.btn-primary { display: inline-block; background: var(--primary-green); color: #fff; padding: 15px 30px; text-decoration: none; border-radius: 5px; font-size: 18px; font-weight: bold; border: none; cursor: pointer; transition: background 0.3s ease;}
.btn-primary:hover { background: var(--primary-green-hover); }
.btn-primary.full-width { width: 100%; text-align: center; }

.btn-secondary { display: inline-block; background: #fff; color: var(--primary-green); padding: 10px 20px; text-decoration: none; border: 2px solid var(--primary-green); border-radius: 5px; font-weight: bold; transition: all 0.3s ease; }
.btn-secondary:hover { background: #e6f0eb; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0;}
.logo { font-size: 24px; font-weight: 800; color: var(--primary-green); }
nav ul { list-style: none; display: flex; gap: 20px; align-items: center; }
@media (max-width: 768px) { .desktop-nav { display: none; } }

/* Hero Section (Updated with Thames bg and Video) */
.hero-section { 
    background: linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.95)), url('Thames-rivier-london-ont.jpg'); 
    background-size: cover; 
    background-position: center; 
    color: #fff; 
    padding: 80px 0; 
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-section h1 { font-size: 2.5rem; margin-bottom: 20px; color: #fff; line-height: 1.2;}
.hero-section h2 { font-size: 1.2rem; font-weight: 400; margin-bottom: 30px; color: #cbd5e1; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.responsive-video { width: 100%; height: auto; display: block; border: 2px solid #334155; }
.mobile-video-btn { display: none; } 

@media (max-width: 768px) { 
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-section h1 { font-size: 2rem; }
    .desktop-video { display: none; } 
    .mobile-video-btn { display: inline-block; } 
    .hero-buttons { justify-content: center; }
}

/* Services Section */
.services-section { padding: 80px 0; text-align: center; }
.services-section h2 { font-size: 2.2rem; color: var(--navy-dark); margin-bottom: 10px;}
.subtitle { text-align: center; font-size: 1.1rem; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; color: #475569;}
.grid-3-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: #fff; padding: 30px; border-radius: 8px; border-top: 4px solid var(--primary-green); text-align: left; }
.card-img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; color: var(--navy-dark); font-size: 1.4rem;}

/* Friction / Cost of Inaction Section */
.friction-section { background: #e2e8f0; padding: 80px 0; }
.friction-section h2 { text-align: center; font-size: 2.2rem; color: var(--navy-dark); margin-bottom: 10px;}
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.friction-grid { background: #fff; overflow: hidden; }
.friction-box { padding: 40px; display: flex; flex-direction: column;}
.friction-box.good { background: #f0fdf4; border-right: 1px solid #e2e8f0; }
.friction-box.good h3 { color: var(--primary-green); margin-bottom: 20px; font-size: 1.5rem; }
.friction-box.bad { background: #fef2f2; }
.friction-box.bad h3 { color: var(--red-alert); margin-bottom: 20px; font-size: 1.5rem; }
.friction-box ul { list-style: none; flex-grow: 1; }
.friction-box li { margin-bottom: 15px; font-size: 1.05rem; }
.friction-img-wrap { margin-top: 20px; }
@media (max-width: 768px) { .grid-2-col { grid-template-columns: 1fr; } .friction-box.good { border-right: none; border-bottom: 1px solid #e2e8f0; } }

/* Infographic Section */
.infographic-section { background: #fff; padding: 60px 0; border-bottom: 1px solid #e2e8f0; }
.infographic-section h2 { color: var(--navy-dark); margin-bottom: 10px; font-size: 2.2rem;}
.infographic-wrapper { position: relative; max-width: 600px; margin: 30px auto 0; border-radius: 8px; overflow: hidden; background: #fff;}
.hover-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.infographic-wrapper:hover .hover-overlay { opacity: 1; }
.enlarge-badge { background: #fff; color: var(--navy-dark); padding: 10px 20px; border-radius: 30px; font-weight: bold; }

/* Shared Modal Styles (Image & Video) */
.modal { display: none; position: fixed; z-index: 999; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); align-items: center; justify-content: center;}
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; object-fit: contain; }
.modal-video-container { width: 90%; max-width: 800px; margin: auto; }
.modal-video-container video { width: 100%; border-radius: 8px; outline: none; }
.close-modal { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; z-index: 1000;}

/* Diagnostic Quiz & Form Section */
.quiz-section { background: #fff; padding: 80px 0; text-align: center; }
.quiz-section h2 { color: var(--navy-dark); font-size: 2.2rem; margin-bottom: 10px;}
#triage-funnel { max-width: 600px; margin: 30px auto; text-align: left; border-radius: 8px; overflow: hidden; background: var(--bg-light); border: 1px solid #cbd5e1;}
.step { display: none; padding: 40px; border-top: 4px solid var(--primary-green);}
.step.active { display: block; }
.step h3 { margin-bottom: 25px; font-size: 1.3rem; color: var(--navy-dark);}
.quiz-btn { display: block; width: 100%; padding: 18px; margin-top: 15px; background: #fff; color: var(--navy-dark); border: 2px solid #cbd5e1; border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: 600; text-align: left; transition: all 0.2s;}
.quiz-btn:hover { background: var(--primary-green); color: #fff; border-color: var(--primary-green);}

/* Netlify Form Styles */
.magnet-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px;}
.form-group { display: flex; flex-direction: column; text-align: left; }
.form-group label { font-size: 0.95rem; font-weight: bold; margin-bottom: 5px; color: var(--navy-dark); }
.form-group input[type="text"], .form-group input[type="email"] { padding: 14px 15px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 1rem; font-family: inherit; }
.form-group input:focus { outline: none; border-color: var(--primary-green); box-shadow: 0 0 0 2px rgba(0, 92, 58, 0.2); }
.checkbox-group { display: flex; align-items: flex-start; gap: 15px; background: #f0fdf4; padding: 20px; border: 1px solid #bbf7d0; border-radius: 6px; margin: 10px 0;}
.checkbox-group input[type="checkbox"] { margin-top: 4px; width: 20px; height: 20px; cursor: pointer; accent-color: var(--primary-green);}
.checkbox-group label { font-size: 0.95rem; color: var(--navy-dark); cursor: pointer; line-height: 1.4;}
.privacy-note { font-size: 0.85rem; color: #64748b; text-align: center; margin-top: 10px; }

/* Resources / Teasers Section */
.resources-section { background: var(--bg-light); padding: 80px 0; }
.resources-section h2 { text-align: center; color: var(--navy-dark); font-size: 2.2rem; margin-bottom: 40px;}
.resource-grid { gap: 30px; }
.resource-card { background: #fff; display: flex; flex-direction: column; overflow: hidden;}
.resource-img { height: 250px; object-fit: cover; width: 100%; border-bottom: 1px solid #e2e8f0; }
.resource-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1;}
.resource-content h3 { color: var(--navy-dark); margin-bottom: 15px; font-size: 1.4rem;}
.resource-content p { margin-bottom: 20px; flex-grow: 1; }
.read-more { color: var(--primary-green); font-weight: bold; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* FAQ Section */
.faq-section { background: #fff; padding: 80px 0; }
.faq-section h2 { text-align: center; color: var(--navy-dark); font-size: 2.2rem; margin-bottom: 40px;}
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #cbd5e1; }
.faq-question { width: 100%; text-align: left; padding: 20px 0; background: none; border: none; font-size: 1.2rem; font-weight: 600; color: var(--navy-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary-green); transition: transform 0.3s ease; }
.faq-question.active::after { content: '−'; transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding-bottom: 20px; color: var(--text-main); }

/* Mobile Bottom Bar */
.mobile-bottom-bar { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; padding: 10px 20px; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 100; border-top: 1px solid #e2e8f0;}
@media (max-width: 768px) { .mobile-bottom-bar { display: block; } }

/* Footer */
.site-footer { background: var(--navy-dark); color: #94a3b8; padding: 40px 0; border-top: 4px solid var(--primary-green);}
.footer-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;}
.footer-links a { color: #cbd5e1; text-decoration: none; margin: 0 10px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 768px) { .footer-flex { flex-direction: column; text-align: center; } }