@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&family=Lora:wght@400;700&display=swap');

:root {
 --primary-color: #00407A; /* A professional, conservative blue */
 --primary-dark: #002E59;
 --secondary-color: #E0E0E0;
 --text-dark: #212529;
 --text-light: #495057;
 --text-muted: #6C757D;
 --bg-light: #F8F9FA;
 --bg-white: #FFFFFF;
 --border-color: #DEE2E6;
 --footer-bg: #212529;

 --font-heading: 'Lora', serif;
 --font-body: 'Source Sans Pro', sans-serif;
 
 --radius-sm: 4px;
 --radius-md: 8px;
 
 --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
 --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
 
 --transition: all 0.3s ease-in-out;
}

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

html {
 scroll-behavior: smooth;
}

body {
 font-family: var(--font-body);
 font-size: 17px;
 line-height: 1.7;
 color: var(--text-light);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-heading);
 color: var(--text-dark);
 font-weight: 700;
 line-height: 1.3;
 margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); }

p {
 margin-bottom: 1rem;
}

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: var(--transition);
}

a:hover {
 color: var(--primary-dark);
 text-decoration: underline;
}

.container {
 max-width: 1140px;
 margin: 0 auto;
 padding: 0 20px;
}

/* Header & Navigation */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background: rgba(255, 255, 255, 0.95);
 backdrop-filter: blur(10px);
 border-bottom: 1px solid var(--border-color);
 transition: var(--transition);
}

.header.scrolled {
 box-shadow: var(--shadow-md);
}

.nav {
 height: 70px;
 display: flex;
 align-items: center;
 justify-content: space-between;
}

.nav-logo {
 font-family: var(--font-heading);
 font-size: 1.8rem;
 font-weight: 700;
 color: var(--text-dark);
}
.nav-logo:hover {
 text-decoration: none;
}

.nav-links {
 list-style: none;
 display: flex;
 gap: 32px;
}

.nav-links a {
 color: var(--text-light);
 font-weight: 600;
 position: relative;
 padding: 5px 0;
 font-size: 16px;
}
.nav-links a:hover {
 color: var(--primary-color);
 text-decoration: none;
}

.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background-color: var(--primary-color);
 transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
 width: 100%;
}
.nav-links a.active {
 color: var(--primary-color);
}

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
}

.nav-toggle span {
 display: block;
 width: 25px;
 height: 2px;
 background-color: var(--text-dark);
 margin: 5px 0;
 transition: var(--transition);
}

/* Sections */
.section {
 padding: 80px 0;
}
.bg-light {
 background-color: var(--bg-light);
}

.section-header {
 text-align: center;
 margin-bottom: 40px;
}

.section-title {
 margin-bottom: 1rem;
}

.section-subtitle {
 font-size: 1.25rem;
 color: var(--text-muted);
 max-width: 800px;
 margin: 0 auto;
}

.content-section {
 max-width: 800px;
}

.content-heading {
 margin-top: 2.5rem;
 padding-bottom: 0.5rem;
 border-bottom: 1px solid var(--border-color);
}

.styled-list, .resource-list {
 list-style-type: none;
 padding-left: 0;
}
.styled-list li {
 position: relative;
 padding-left: 30px;
 margin-bottom: 1rem;
}
.styled-list li::before {
 content: '';
 position: absolute;
 left: 0;
 top: 2px;
 color: var(--primary-color);
 font-size: 14px;
}

.resource-list li {
 margin-bottom: 1.5rem;
}
.resource-list li a {
 font-weight: 600;
 font-size: 1.1rem;
 display: block;
}
.resource-list li p {
 margin: 0.25rem 0 0 0;
 font-size: 0.95rem;
 color: var(--text-muted);
}

.content-link-wrapper {
 margin-top: 2rem;
 text-align: right;
}

.content-link {
 font-weight: 600;
 font-style: italic;
}

/* Hero */
.hero {
 padding: 120px 0;
 margin-top: 70px;
}
.text-hero {
 background-color: var(--bg-light);
 text-align: center;
}
.hero-content h1 {
 margin-bottom: 1rem;
}

/* Footer */
.footer {
 background-color: var(--footer-bg);
 color: var(--text-muted);
 padding: 60px 0 30px;
 font-size: 0.95rem;
}

.footer-container {
 max-width: 1140px;
}

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

.footer-logo {
 font-size: 1.8rem;
 font-weight: 700;
 color: white;
 margin-bottom: 1rem;
 font-family: var(--font-heading);
}

.footer-logo:hover {
 text-decoration: none;
}
.footer-description {
 line-height: 1.6;
}

.footer-heading {
 font-size: 1rem;
 font-weight: 600;
 color: white;
 margin-bottom: 20px;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.footer-links {
 list-style: none;
}
.footer-links li {
 margin-bottom: 12px;
}
.footer-links a, .footer-contact-item a {
 color: var(--text-muted);
}
.footer-links a:hover, .footer-contact-item a:hover {
 color: white;
 text-decoration: none;
}

.footer-contact-item {
 margin-bottom: 12px;
}

.footer-divider {
 border-top: 1px solid #495057;
 margin: 40px 0;
}

.footer-bottom {
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: 1rem;
}

.footer-copyright {
 margin: 0;
}

.footer-legal-links {
 display: flex;
 gap: 24px;
}
.footer-legal-links a {
 color: var(--text-muted);
}

/* Buttons */
.btn {
 display: inline-block;
 padding: 10px 20px;
 font-size: 16px;
 font-weight: 600;
 border-radius: var(--radius-sm);
 cursor: pointer;
 text-align: center;
 border: 1px solid transparent;
 transition: var(--transition);
}

.btn-primary {
 background-color: var(--primary-color);
 color: white;
 border-color: var(--primary-color);
}
.btn-primary:hover {
 background-color: var(--primary-dark);
 border-color: var(--primary-dark);
 color: white;
 text-decoration: none;
}

.btn-secondary {
 background-color: var(--bg-white);
 color: var(--text-dark);
 border-color: var(--border-color);
}
.btn-secondary:hover {
 background-color: var(--secondary-color);
 color: var(--text-dark);
 text-decoration: none;
}

/* Contact Page */
.contact-layout {
 display: grid;
 grid-template-columns: 1fr 1.2fr;
 gap: 60px;
 align-items: start;
}

.contact-details .contact-item {
 margin-bottom: 2rem;
}
.contact-details h3 {
 font-size: 1.2rem;
 margin-bottom: 0.5rem;
}
.contact-details p {
 margin-bottom: 0;
 color: var(--text-light);
}
.contact-form-container {
 background: var(--bg-light);
 padding: 40px;
 border-radius: var(--radius-md);
}

/* Forms */
.form-group {
 margin-bottom: 1.5rem;
}
.form-group label {
 display: block;
 font-weight: 600;
 margin-bottom: 0.5rem;
 color: var(--text-dark);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
 width: 100%;
 padding: 12px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-sm);
 font-family: var(--font-body);
 font-size: 16px;
 background-color: var(--bg-white);
}
.form-group input:focus, .form-group textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(0, 64, 122, 0.1);
}
textarea {
 resize: vertical;
 min-height: 120px;
}
.checkbox-group {
 display: flex;
 align-items: flex-start;
 gap: 10px;
}
.checkbox-group input[type="checkbox"] {
 margin-top: 5px;
}
.checkbox-group label {
 font-weight: 400;
 font-size: 0.9rem;
 color: var(--text-muted);
}
.submit-button {
 width: 100%;
 padding: 14px 20px;
 font-size: 1rem;
}

/* About Page - Team */
.team-grid {
 display: grid;
 grid-template-columns: 1fr;
 gap: 3rem;
 margin-top: 2.5rem;
}
.team-member {
 border-left: 3px solid var(--primary-color);
 padding-left: 2rem;
}
.team-name {
 margin-bottom: 0.25rem;
 font-size: 1.5rem;
}
.team-role {
 font-style: italic;
 color: var(--text-muted);
 margin-bottom: 0.75rem;
}
.team-bio {
 margin-bottom: 0;
}

/* Cookie Banner */
.cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: var(--footer-bg);
 color: #e0e0e0;
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
 box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.cookie-banner p {
 margin: 0;
 font-size: 0.9rem;
}
.cookie-banner a {
 color: white;
 text-decoration: underline;
}
.cookie-buttons {
 display: flex;
 gap: 10px;
 flex-shrink: 0;
}

/* Thank you page */
.text-center-section {
 padding: 120px 0;
}

/* Tables */
.table-container {
 overflow-x: auto;
}
table {
 width: 100%;
 border-collapse: collapse;
 margin: 2rem 0;
}
th, td {
 padding: 12px 15px;
 text-align: left;
 border-bottom: 1px solid var(--border-color);
}
th {
 background-color: var(--bg-light);
 font-weight: 600;
 color: var(--text-dark);
}
tbody tr:last-child td {
 border-bottom: none;
}

/* Form Validation Styles */
.input-error {
 border-color: #dc2626 !important;
 box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.field-error {
 color: #dc2626;
 font-size: 0.85rem;
 margin-top: 4px;
 animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
 from { opacity: 0; transform: translateY(-5px); }
 to { opacity: 1; transform: translateY(0); }
}

.spinner {
 display: inline-block;
 width: 16px;
 height: 16px;
 border: 2px solid rgba(255,255,255,0.3);
 border-radius: 50%;
 border-top-color: #fff;
 animation: spin 0.8s linear infinite;
 margin-right: 8px;
 vertical-align: middle;
}

@keyframes spin {
 to { transform: rotate(360deg); }
}

button[disabled] {
 opacity: 0.7;
 cursor: not-allowed;
}

/* Responsive */
@media (max-width: 992px) {
 .contact-layout {
 grid-template-columns: 1fr;
 }
}

@media (max-width: 768px) {
 body {
 font-size: 16px;
 }
 .nav-toggle {
 display: block;
 z-index: 1001;
 }
 .nav-links {
 position: fixed;
 top: 0;
 right: 0;
 bottom: 0;
 width: 300px;
 background: var(--bg-white);
 flex-direction: column;
 padding: 100px 40px 40px;
 transform: translateX(100%);
 transition: transform 0.3s ease-in-out;
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 gap: 20px;
 }
 .nav-links.active {
 transform: translateX(0);
 }
 .footer-grid {
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 }
 .footer-bottom {
 flex-direction: column;
 text-align: center;
 }
 .cookie-banner {
 flex-direction: column;
 text-align: center;
 }
}