:root {
 --primary-color: #0d4f8b;
 --primary-dark: #093a65;
 --secondary-color: #0891b2;
 --text-dark: #2d3748;
 --text-light: #4a5568;
 --text-white: #ffffff;
 --text-white-muted: #e2e8f0;
 --bg-light: #f7fafc;
 --bg-white: #ffffff;
 --bg-dark: #1a202c;
 --border-color: #e2e8f0;
 --radius: 8px;
 --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
 --font-main: 'Roboto', sans-serif;
 --font-display: 'Teko', sans-serif;
 --transition: all 0.3s ease-in-out;
}

/* --- Base & Typography --- */
*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 scroll-behavior: smooth;
 font-size: 100%;
}

body {
 font-family: var(--font-main);
 font-size: 1rem;
 line-height: 1.6;
 color: var(--text-light);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
 overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-display);
 font-weight: 600;
 line-height: 1.2;
 color: var(--text-dark);
 letter-spacing: 0.5px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--primary-color);}
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style-position: inside; padding-left: 0; }
ul li, ol li { margin-bottom: 0.5rem; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* --- Layout & Containers --- */
.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 1.5rem;
}

.section {
 padding: clamp(3rem, 8vw, 6rem) 0;
}
.section.pt-0 { padding-top: 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.text-center { text-align: center; }
.text-white { color: var(--text-white); }
.text-white h2, .text-white h3 { color: var(--text-white); }
.text-white-muted { color: var(--text-white-muted); }

.grid-2 { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }

@media (min-width: 768px) {
 .grid-2 { grid-template-columns: repeat(2, 1fr); }
 .grid-3 { grid-template-columns: repeat(3, 1fr); }
 .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.section-header {
 text-align: center;
 max-width: 700px;
 margin: 0 auto 3rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header .section-title { margin-bottom: 1rem; }
.section-header .section-subtitle { font-size: 1.1rem; }

/* --- Components --- */
.btn {
 display: inline-block;
 padding: 0.75rem 1.5rem;
 font-size: 1rem;
 font-weight: 500;
 border-radius: var(--radius);
 cursor: pointer;
 transition: var(--transition);
 border: 2px solid transparent;
 text-align: center;
}
.btn-primary { background-color: var(--primary-color); color: var(--text-white); border-color: var(--primary-color); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: var(--text-white); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

.badge {
 display: inline-block;
 padding: 0.25rem 0.75rem;
 background-color: var(--secondary-color);
 color: var(--text-white);
 border-radius: 99px;
 font-size: 0.85rem;
 font-weight: 500;
 margin-bottom: 1rem;
 font-family: var(--font-main);
 text-transform: uppercase;
 letter-spacing: 1px;
}
.badge.badge-light { background-color: rgba(255, 255, 255, 0.1); color: var(--text-white);}

/* --- Header & Navigation --- */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background: rgba(255, 255, 255, 0.8);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 transition: var(--transition);
 box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header.scrolled {
 background: rgba(255, 255, 255, 0.98);
 box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-container {
 display: flex;
 justify-content: space-between;
 align-items: center;
 height: 70px;
}
.nav-logo {
 font-family: var(--font-display);
 font-size: 1.8rem;
 font-weight: 600;
 color: var(--primary-color);
}
.nav-links ul {
 display: flex;
 gap: 2rem;
 list-style: none;
}
.nav-links a {
 font-weight: 500;
 color: var(--text-dark);
 position: relative;
 padding: 0.5rem 0;
}
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background-color: var(--secondary-color);
 transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after {
 width: 100%;
}
.nav-cta { display: none; }
.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 z-index: 1001;
}
.nav-toggle span { display: block; width: 25px; height: 2px; background-color: var(--text-dark); margin: 5px 0; transition: var(--transition); }

@media (min-width: 992px) {
 .nav-cta { display: inline-block; }
}

@media (max-width: 991px) {
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 280px;
 height: 100vh;
 background-color: var(--bg-white);
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 flex-direction: column;
 padding-top: 100px;
 transition: right 0.4s ease-in-out;
 }
 .nav-links.active { right: 0; }
 .nav-links ul {
 flex-direction: column;
 align-items: center;
 width: 100%;
 }
 .nav-links li { width: 100%; text-align: center; }
 .nav-links a { display: block; padding: 1rem; width: 100%; }
 .nav-toggle { display: block; }
 .nav-cta { display: none; }
}

/* --- Hero Sections --- */
.hero, .hero-small {
 position: relative;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--text-white);
 overflow: hidden;
}
.hero { min-height: 80vh; }
.hero-small { min-height: 40vh; }

.hero-bg {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-size: cover;
 background-position: center;
 z-index: -2;
}
.hero::before, .hero-small::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(rgba(13, 79, 139, 0.7), rgba(26, 32, 44, 0.8));
 z-index: -1;
}
.hero-content {
 max-width: 800px;
}
.hero-subtitle { font-size: 1.25rem; color: var(--text-white-muted); opacity: 0.9; }
.hero-actions { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Service Cards --- */
.service-card {
 background-color: var(--bg-white);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 overflow: hidden;
 transition: var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.service-card img {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-radius: var(--radius) var(--radius) 0 0;
}
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--text-dark); }
.card-text { margin-bottom: 1rem; }
.card-link {
 font-weight: 500;
 color: var(--secondary-color);
 text-decoration: none;
 display: inline-block;
}
.card-link:hover { text-decoration: underline; }

/* --- Media Object --- */
.media-object {
 display: grid;
 grid-template-columns: 1fr;
 align-items: center;
 gap: 3rem;
}
.media-object.reverse .media-visual { order: 2; }
.media-content ul { list-style-type: ''; padding-left: 1.5rem; }
.media-content ul li { padding-left: 0.5rem;}
@media (min-width: 768px) {
 .media-object { grid-template-columns: 1fr 1fr; }
}

/* --- Why Us Grid / Certifications --- */
.why-us-grid .feature-box, .value-card {
 background: rgba(255,255,255,0.05);
 padding: 1.5rem;
 border-radius: var(--radius);
 text-align: center;
}
.feature-icon {
 font-size: 2.5rem;
 margin-bottom: 1rem;
 color: var(--secondary-color);
}
.value-card { border-left: 4px solid var(--secondary-color); text-align: left;}
.certifications-logos {
 display: flex;
 justify-content: center;
 align-items: center;
 gap: 3rem;
 margin-top: 2rem;
 flex-wrap: wrap;
}
.certifications-logos span {
 font-family: var(--font-display);
 font-size: 1.8rem;
 padding: 0.5rem 1.5rem;
 border: 2px solid var(--border-color);
 border-radius: var(--radius);
}

/* --- Testimonials --- */
.testimonial-card {
 background-color: var(--bg-light);
 padding: 2rem;
 border-radius: var(--radius);
 border-left: 4px solid var(--secondary-color);
}
.testimonial-card p:first-of-type { font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { color: var(--text-dark); }

/* --- CTA --- */
.cta-section { padding: 4rem 0; }
.cta-section .section-title { font-size: 2.2rem; }
.cta-section .section-subtitle { max-width: 600px; margin: 0 auto 2rem; }

/* --- About Page --- */
.team-card {
 text-align: center;
 background-color: var(--bg-white);
 padding: 2rem;
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); }
.team-photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1rem; object-fit: cover; border: 4px solid var(--bg-light); }
.team-name { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 0.25rem; }
.team-title { color: var(--secondary-color); font-weight: 500; margin-bottom: 0.75rem; }
.team-bio { font-size: 0.9rem; }

/* --- Resources Page --- */
.blog-card { box-shadow: var(--shadow); transition: var(--transition); }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.card-image { height: 200px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0;}
.card-category {
 font-size: 0.8rem;
 color: var(--secondary-color);
 font-weight: 700;
 text-transform: uppercase;
}
.faq-item {
 border-bottom: 1px solid var(--border-color);
}
.faq-question {
 width: 100%;
 background: none;
 border: none;
 text-align: left;
 padding: 1.5rem 1rem;
 font-size: 1.2rem;
 font-family: var(--font-display);
 cursor: pointer;
 position: relative;
 color: var(--text-dark);
}
.faq-question::after {
 content: '+';
 position: absolute;
 right: 1rem;
 font-size: 1.5rem;
 transition: transform 0.3s;
 color: var(--secondary-color);
}
.faq-item.active .faq-question::after {
 transform: rotate(45deg);
}
.faq-answer {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-in-out;
}
.faq-item.active .faq-answer {
 max-height: 300px;
}
.faq-answer p { padding: 0 1rem 1.5rem; }

/* --- Contact Page --- */
.contact-grid {
 display: grid;
 grid-template-columns: 1fr;
 gap: 3rem;
}
@media (min-width: 992px) {
 .contact-grid { grid-template-columns: 2fr 1fr; }
}

.contact-form-container h2, .contact-info-container h3 {
 font-size: 2rem;
 margin-bottom: 1rem;
}
.contact-info-item { margin-bottom: 1.5rem; }
.contact-info-item h4 { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 0.25rem; }
.map-container {
 width: 100%;
 height: 450px;
 border-radius: var(--radius);
 overflow: hidden;
 box-shadow: var(--shadow);
}

/* --- Forms --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-dark); }
.form-group input, .form-group textarea {
 width: 100%;
 padding: 0.75rem 1rem;
 border: 1px solid var(--border-color);
 border-radius: var(--radius);
 font-size: 1rem;
 font-family: var(--font-main);
 transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
 outline: none;
 border-color: var(--secondary-color);
 box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
}
textarea { resize: vertical; min-height: 120px; }

.checkbox-group {
 display: flex;
 align-items: flex-start;
 gap: 0.5rem;
}
.checkbox-group input { width: auto; margin-top: 5px; }
.checkbox-group label { font-size: 0.9rem; font-weight: 400; }

.input-error { border-color: #e53e3e !important; }
.field-error { color: #e53e3e; font-size: 0.875rem; margin-top: 0.25rem; }
.spinner {
 display: inline-block;
 width: 1rem;
 height: 1rem;
 border: 2px solid rgba(255, 255, 255, 0.3);
 border-radius: 50%;
 border-top-color: #fff;
 animation: spin 0.8s linear infinite;
 margin-right: 0.5rem;
 vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
button:disabled { opacity: 0.7; cursor: not-allowed; }

/* --- Footer --- */
.footer {
 background-color: var(--bg-dark);
 color: var(--text-white-muted);
 padding: 4rem 0 2rem;
 margin-top: 4rem;
}
.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 2rem;
 margin-bottom: 3rem;
}
.footer-heading {
 font-size: 1.25rem;
 color: var(--text-white);
 margin-bottom: 1rem;
 font-family: var(--font-display);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-white-muted); }
.footer-links a:hover { color: var(--secondary-color); }
.footer p { font-size: 0.9rem; }
.footer-bottom {
 border-top: 1px solid #4a5568;
 padding-top: 2rem;
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: 1rem;
 font-size: 0.85rem;
}
.footer-legal-links { display: flex; gap: 1.5rem; }

/* --- Cookie Banner --- */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: var(--bg-dark);
 color: var(--text-white);
 padding: 1rem;
 display: none;
 justify-content: space-between;
 align-items: center;
 z-index: 2000;
 flex-wrap: wrap;
 gap: 1rem;
}
#cookie-banner p { margin: 0; }
#cookie-banner a { color: var(--secondary-color); text-decoration: underline;}
#cookie-banner div { display: flex; gap: 0.5rem; }

/* --- Legal Page --- */
.legal-page .container {
 max-width: 800px;
 padding-top: 120px;
 padding-bottom: 60px;
}
.legal-page h1 { margin-bottom: 1rem; font-size: 3rem; }
.legal-page h3 { font-size: 1.75rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text-dark); }
.legal-page table {
 width: 100%;
 margin-top: 1rem;
 border-collapse: collapse;
}
.legal-page th, .legal-page td {
 border: 1px solid var(--border-color);
 padding: 0.75rem;
 text-align: left;
}
.legal-page th { background-color: var(--bg-light); }

/* --- Helpers & Animations --- */
.slide-in {
 opacity: 0;
 transform: translateY(20px);
 animation: slideIn 0.6s forwards ease-out;
}
@keyframes slideIn {
 to {
 opacity: 1;
 transform: translateY(0);
 }
}
.slide-in.from-bottom { transform: translateY(50px); }
.slide-in.from-left { transform: translateX(-50px); }
.slide-in.from-right { transform: translateX(50px); }

/* --- Header toggle animation --- */
.nav-toggle.active span:nth-child(1) {
 transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
 opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
 transform: translateY(-7px) rotate(-45deg);
}