:root {
 --primary-color: #1e3a5f; /* Deep Navy */
 --primary-dark: #12233a;
 --secondary-color: #3b82f6; /* Brighter Blue */
 --text-dark: #111827;
 --text-light: #4b5563;
 --text-muted: #6b7280;
 --bg-light: #f3f4f6;
 --bg-white: #ffffff;
 --border-color: #d1d5db;
 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
 --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
 --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
 --transition: all 0.3s ease-in-out;
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
 scroll-behavior: smooth;
}

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

img {
 max-width: 100%;
 height: auto;
 display: block;
}

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

.section {
 padding: 80px 0;
}
.section.pt-0 {
 padding-top: 0;
}

.bg-light {
 background: var(--bg-light);
}

.centered {
 text-align: center;
}

h1, h2, h3, h4, h5, h6 {
 font-weight: 700;
 line-height: 1.2;
 color: var(--text-dark);
}

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

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

/* Header & Nav */
.header {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 background: rgba(255, 255, 255, 0.9);
 backdrop-filter: blur(10px);
 z-index: 1000;
 height: 70px;
 display: flex;
 align-items: center;
 transition: var(--transition);
}

.header.scrolled {
 box-shadow: var(--shadow-md);
 background: rgba(255, 255, 255, 0.95);
}

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

.nav-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--text-dark);
}

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

.nav-links a {
 font-weight: 500;
 color: var(--text-dark);
 position: relative;
 padding: 5px 0;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
 width: 100%;
}

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

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

/* Main Content Styles */
main {
 padding-top: 70px;
}

/* Hero Section */
.page-hero {
 padding: 80px 0;
}
.hero-inner {
 display: grid;
 grid-template-columns: 1fr 1fr;
 align-items: center;
 gap: 48px;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 24px;
}
.hero-copy .badge {
 display: inline-block;
 padding: 6px 16px;
 background-color: var(--bg-light);
 color: var(--primary-color);
 font-weight: bold;
 border-radius: var(--radius-lg);
 margin-bottom: 24px;
}
.hero-copy h1 {
 font-size: clamp(2rem, 5vw, 3.5rem);
 margin-bottom: 24px;
}
.hero-copy p {
 font-size: 1.125rem;
 color: var(--text-light);
 margin-bottom: 32px;
 max-width: 550px;
}
.hero-actions {
 display: flex;
 gap: 16px;
}
.hero-visual img {
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
 max-height: 580px;
 object-fit: cover;
}

/* Page Header */
.page-header-section {
 padding: 60px 0;
 text-align: center;
 background-color: var(--bg-light);
}
.page-header-section h1 {
 font-size: clamp(2rem, 5vw, 3rem);
 margin: 16px 0;
}
.page-header-section p {
 font-size: 1.1rem;
 color: var(--text-light);
 max-width: 700px;
 margin: 0 auto;
}
.page-header-section .badge {
 font-weight: 600;
 color: var(--primary-color);
}

/* Buttons */
.btn {
 display: inline-flex;
 padding: 12px 28px;
 border-radius: var(--radius-md);
 font-weight: 500;
 font-size: 1rem;
 cursor: pointer;
 border: 1px solid transparent;
 transition: var(--transition);
 text-align: center;
}

.btn-primary {
 background-color: var(--primary-color);
 color: var(--bg-white);
}

.btn-primary:hover {
 background-color: var(--primary-dark);
 color: var(--bg-white);
 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(--bg-white);
}

.btn-full {
 width: 100%;
 justify-content: center;
}

/* Section Header */
.section-header {
 margin: 0 auto 50px auto;
 max-width: 700px;
}
.section-header.centered {
 text-align: center;
}
.section-label {
 display: inline-block;
 color: var(--primary-color);
 font-weight: 600;
 margin-bottom: 12px;
}
.section-title {
 font-size: clamp(1.8rem, 4vw, 2.5rem);
 margin-bottom: 16px;
}
.section-subtitle {
 font-size: 1.1rem;
 line-height: 1.6;
 color: var(--text-light);
}

/* Stats Section */
.stats-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
}
.stat-item {
 background: var(--bg-light);
 padding: 30px;
 border-radius: var(--radius-lg);
 text-align: center;
 border: 1px solid #e5e7eb;
}
.stat-number {
 font-size: 3rem;
 font-weight: 700;
 color: var(--primary-color);
}
.stat-caption {
 font-size: 1.1rem;
 font-weight: 500;
 color: var(--text-dark);
 margin: 8px 0 12px;
}
.stat-item p {
 color: var(--text-light);
 font-size: 0.95rem;
}

/* Cards */
.cards-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
}
.card {
 background-color: var(--bg-white);
 border-radius: var(--radius-lg);
 padding: 28px;
 box-shadow: var(--shadow-md);
 display: flex;
 flex-direction: column;
 transition: var(--transition);
}
.card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-lg);
}
.card-title {
 font-size: 1.25rem;
 margin-bottom: 12px;
}
.card-text {
 color: var(--text-light);
 flex-grow: 1;
 margin-bottom: 20px;
}
.card-button {
 align-self: flex-start;
 font-weight: 600;
}
.card-button:hover {
 text-decoration: underline;
}

/* Media Object */
.media-object {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 48px;
 align-items: center;
}
.media-object.reverse {
 grid-template-columns: 1fr 1fr;
}
.media-object.reverse .media-visual {
 order: 2;
}

.media-visual img {
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
 width: 100%;
 object-fit: cover;
 max-height: 560px;
}
.media-copy ul {
 list-style-position: inside;
 padding-left: 0;
 margin: 20px 0;
}
.media-copy li {
 margin-bottom: 10px;
}
.media-copy .cta-buttons {
 margin-top: 30px;
}

/* Timeline */
.timeline {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 20px;
 position: relative;
 margin-top: 40px;
}
.timeline::before {
 content: '';
 position: absolute;
 top: 20px;
 left: 40px;
 right: 40px;
 height: 2px;
 background-color: var(--border-color);
}
.timeline-step {
 position: relative;
 padding-top: 40px;
}
.timeline-number {
 position: absolute;
 top: 0;
 left: 0;
 transform: translateY(-50%);
 width: 40px;
 height: 40px;
 border-radius: 50%;
 background-color: var(--primary-color);
 color: white;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: bold;
 border: 4px solid var(--bg-light);
}
.timeline-title {
 font-size: 1.1rem;
 margin-bottom: 10px;
}
.timeline-text {
 font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
 background-color: var(--primary-color);
 color: white;
 padding: 60px;
 border-radius: var(--radius-lg);
 text-align: center;
}
.cta-section h2 {
 color: white;
 font-size: 2rem;
 margin-bottom: 16px;
}
.cta-section p {
 max-width: 600px;
 margin: 0 auto 30px;
 opacity: 0.9;
}
.cta-section .btn-primary {
 background-color: var(--bg-white);
 color: var(--primary-color);
}
.cta-section .btn-primary:hover {
 background-color: var(--bg-light);
}

/* Footer */
.footer {
 background: var(--primary-dark);
 color: #a0a0a0;
 padding: 60px 0 30px;
 margin-top: 80px;
}
.footer-grid {
 display: grid;
 grid-template-columns: 2fr 1fr 1fr 1.5fr;
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: white;
 margin-bottom: 16px;
 display: block;
}
.footer-description {
 font-size: 0.9rem;
 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 {
 color: #a0a0a0;
 font-size: 0.9rem;
}
.footer-links a:hover {
 color: white;
}
.footer-contact-item {
 margin-bottom: 16px;
 font-size: 0.9rem;
 line-height: 1.5;
}
.footer-contact-item a {
 color: #a0a0a0;
}
.footer-contact-item a:hover {
 color: white;
}
.footer-contact-item strong {
 color: white;
}
.footer-divider {
 height: 1px;
 background: rgba(255, 255, 255, 0.1);
 margin: 30px 0;
}
.footer-bottom {
 text-align: center;
}
.footer-copyright {
 font-size: 0.85rem;
}

/* Services Page */
.services-grid {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 30px;
}
.service-card {
 background: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 overflow: hidden;
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}
.service-card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-lg);
}
.service-card-img {
 width: 100%;
 height: 220px;
 object-fit: cover;
}
.service-card-body {
 padding: 28px;
 flex-grow: 1;
 display: flex;
 flex-direction: column;
}
.service-card h3 {
 margin-bottom: 12px;
}
.service-card p {
 margin-bottom: 20px;
 flex-grow: 1;
}

/* About Page */
.team-section {
 padding: 80px 0;
}
.team-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 30px;
}
.team-member {
 text-align: center;
}
.team-photo {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 20px;
 box-shadow: var(--shadow-lg);
 border: 4px solid white;
}
.team-name {
 font-size: 1.25rem;
 margin-bottom: 5px;
}
.team-role {
 color: var(--primary-color);
 font-weight: 500;
 margin-bottom: 10px;
}
.team-bio {
 font-size: 0.9rem;
}

/* Legal Pages */
.legal-content h2 {
 margin-top: 40px;
 margin-bottom: 16px;
 font-size: 1.75rem;
}
.legal-content h2:first-of-type {
 margin-top: 0;
}
.legal-content p, .legal-content ul {
 margin-bottom: 16px;
}
.legal-content li {
 margin-left: 20px;
 margin-bottom: 8px;
}
.cookie-table table {
 width: 100%;
 border-collapse: collapse;
 margin: 20px 0;
}
.cookie-table th, .cookie-table td {
 border: 1px solid var(--border-color);
 padding: 12px;
 text-align: left;
}
.cookie-table th {
 background-color: var(--bg-light);
}

/* Contact Page */
.contact-layout {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 50px;
}
.form-title {
 margin-bottom: 24px;
}
.contact-form-container .form-group {
 margin-bottom: 20px;
}
.form-control {
 width: 100%;
 padding: 14px 18px;
 font-size: 1rem;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 transition: var(--transition);
 background: white;
}
.form-control:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}
textarea.form-control {
 resize: vertical;
 min-height: 120px;
}
.form-group label {
 display: block;
 margin-bottom: 8px;
 font-weight: 500;
}
.checkbox-group {
 display: flex;
 align-items: center;
 gap: 10px;
}
.checkbox-group input {
 width: auto;
}
.checkbox-group label {
 margin-bottom: 0;
 font-weight: 400;
}
.contact-info-item {
 margin-bottom: 24px;
}
.contact-info-item h3 {
 font-size: 1.2rem;
 margin-bottom: 8px;
}
.map-container {
 width: 100%;
 height: 450px;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-md);
 margin-top: 40px;
}
.map-container iframe {
 width: 100%;
 height: 100%;
 border: none;
}
.input-error {
 border-color: #dc2626 !important;
}
.field-error {
 color: #dc2626;
 font-size: 0.875rem;
 margin-top: 5px;
}

/* Spinner for form submission */
.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;
}

/* Cookie Banner */
.cookie-banner {
 position: fixed;
 bottom: 20px;
 left: 20px;
 right: 20px;
 max-width: 500px;
 background: var(--primary-dark);
 color: var(--bg-white);
 padding: 20px;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-lg);
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
}
.cookie-banner p {
 margin: 0;
 font-size: 0.9rem;
}
.cookie-banner a {
 color: var(--bg-white);
 text-decoration: underline;
}
.cookie-buttons {
 display: flex;
 gap: 10px;
 flex-shrink: 0;
}
.cookie-buttons .btn-primary {
 background-color: var(--secondary-color);
}
.cookie-buttons .btn-secondary {
 border-color: var(--bg-white);
 color: var(--bg-white);
}

/* Responsive Styles */
@media (max-width: 992px) {
 .hero-inner { grid-template-columns: 1fr; text-align: center; }
 .hero-copy p { margin: 0 auto 32px; }
 .hero-actions { justify-content: center; }
 .stats-grid { grid-template-columns: 1fr; }
 .cards-grid { grid-template-columns: repeat(2, 1fr); }
 .media-object { grid-template-columns: 1fr; gap: 40px; }
 .media-object.reverse .media-visual { order: 1; }
 .media-copy { text-align: center; }
 .timeline { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
 .timeline::before { display: none; }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .services-grid { grid-template-columns: 1fr; }
 .team-grid { grid-template-columns: repeat(2, 1fr); }
 .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
 .nav-toggle { display: block; z-index: 1001; }
 .nav-menu {
 position: fixed;
 top: 0;
 left: -100%;
 width: 100%;
 height: 100vh;
 background-color: var(--bg-white);
 flex-direction: column;
 justify-content: center;
 align-items: center;
 transition: var(--transition);
 display: flex; /* Always flex now */
 }
 .nav-menu.active {
 left: 0;
 }
 .nav-links {
 flex-direction: column;
 text-align: center;
 gap: 24px;
 }
 .cards-grid { grid-template-columns: 1fr; }
 .timeline { grid-template-columns: 1fr; }
 .footer-grid { grid-template-columns: 1fr; text-align: center; }
 .footer-brand, .footer-links { margin: 0 auto; }
 
 .cookie-banner {
 flex-direction: column;
 text-align: center;
 max-width: calc(100% - 40px);
 }
}

@media (max-width: 576px) {
 .team-grid { grid-template-columns: 1fr; }
}