:root {
 --primary-color: #3b5998; /* Softer navy blue */
 --primary-dark: #2d4373;
 --secondary-color: #8b9dc3; /* Lighter, muted blue */
 --accent-color: #dfe3ee; /* Very light blue-gray */
 --bg-light: #f7f7f7;
 --bg-white: #ffffff;
 --text-dark: #1d2129;
 --text-light: #4b4f56;
 --text-muted: #606770;
 --border-color: #dddfe2;
 --footer-bg: #1d2129;
 --footer-text: #e0e0e0;

 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
 --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
 --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
 --transition: all 0.3s ease-in-out;
}

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

html {
 scroll-behavior: smooth;
 font-size: 16px;
}

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

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

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

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

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

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

.container {
 max-width: 1200px;
 margin-left: auto;
 margin-right: auto;
 padding-left: 20px;
 padding-right: 20px;
}

.section {
 padding: 80px 0;
}

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

.section-header {
 text-align: center;
 margin-bottom: 60px;
 max-width: 700px;
 margin-left: auto;
 margin-right: auto;
}

.section-label {
 display: inline-block;
 background-color: var(--accent-color);
 color: var(--primary-dark);
 padding: 6px 16px;
 border-radius: 20px;
 font-size: 0.85rem;
 font-weight: 600;
 margin-bottom: 16px;
 text-transform: uppercase;
}

.section-title {
 margin-bottom: 16px;
}

.section-subtitle {
 font-size: 1.1rem;
 color: var(--text-light);
}

/* BUTTONS */
.btn {
 display: inline-block;
 font-weight: 600;
 text-align: center;
 vertical-align: middle;
 cursor: pointer;
 border: 2px solid transparent;
 padding: 12px 28px;
 font-size: 1rem;
 border-radius: var(--radius-md);
 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;
 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: white;
 transform: translateY(-2px);
}

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

.btn-white:hover {
 background-color: var(--accent-color);
 color: var(--primary-dark);
 border-color: var(--accent-color);
 transform: translateY(-2px);
}

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

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

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

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

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

.nav-links {
 display: flex;
 align-items: center;
 list-style: none;
 gap: 40px;
}

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

.nav-links a::after {
 content: '';
 position: absolute;
 bottom: -2px;
 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-cta {
 padding: 8px 18px;
}

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

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

/* HERO */
.hero {
 position: relative;
 min-height: 70vh;
 background-size: cover;
 background-position: center;
 display: flex;
 align-items: center;
 justify-content: center;
 color: white;
 text-align: center;
 padding: 40px 20px;
}

.hero::before {
 content: '';
 position: absolute;
 inset: 0;
 background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-content {
 position: relative;
 z-index: 2;
 max-width: 800px;
}

.hero-title {
 font-size: clamp(2.5rem, 6vw, 4rem);
 font-weight: 700;
 margin-bottom: 20px;
 color: white;
}

.hero-subtitle {
 font-size: 1.25rem;
 margin-bottom: 30px;
 opacity: 0.9;
}

.hero-buttons {
 display: flex;
 gap: 16px;
 justify-content: center;
}
.hero-buttons .btn-secondary {
 border-color: white;
 color: white;
}
.hero-buttons .btn-secondary:hover {
 background-color: white;
 color: var(--primary-dark);
}

/* Page Header */
.page-header-section {
 background-color: var(--bg-light);
 padding: 140px 0 60px;
 text-align: center;
}
.page-title {
 margin-bottom: 1rem;
}
.page-subtitle {
 font-size: 1.2rem;
 color: var(--text-light);
 max-width: 600px;
 margin: 0 auto;
}

/* Features grid */
.features-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
}
.feature-card {
 text-align: center;
 padding: 30px;
 background: white;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
}
.feature-card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-md);
}
.feature-icon-wrapper {
 width: 70px;
 height: 70px;
 margin: 0 auto 20px;
 background-color: var(--accent-color);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
}
.feature-icon-wrapper svg {
 width: 32px;
 height: 32px;
 color: var(--primary-color);
}
.feature-title {
 margin-bottom: 10px;
}

/* Media Object */
.media-object {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 60px;
 align-items: center;
 margin-bottom: 80px;
}
.media-object:last-child {
 margin-bottom: 0;
}
.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);
 max-height: 400px;
 object-fit:cover;
 width:100%;

}
.media-copy ul {
 list-style: none;
 padding-left: 0;
 margin-top: 20px;
}
.media-copy ul li {
 position: relative;
 padding-left: 25px;
 margin-bottom: 10px;
}
.media-copy ul li::before {
 content: '';
 position: absolute;
 left: 0;
 color: var(--primary-color);
 font-weight: bold;
}
.media-copy .btn {
 margin-top: 20px;
}

/* Testimonials */
.testimonial-slider {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
}
.testimonial-card {
 background-color: var(--bg-light);
 padding: 30px;
 border-radius: var(--radius-lg);
 text-align: center;
}
.testimonial-avatar {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 margin: 0 auto 20px;
 object-fit: cover;
 border: 4px solid white;
 box-shadow: var(--shadow-sm);
}
.testimonial-text {
 font-style: italic;
 color: var(--text-light);
 margin-bottom: 20px;
 flex-grow: 1;
}
.testimonial-author strong {
 display: block;
}
.testimonial-author span {
 font-size: 0.9rem;
 color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
 background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
 color: white;
 padding: 60px 0;
 text-align: center;
}
.cta-title {
 color: white;
 margin-bottom: 1rem;
}
.cta-text {
 margin-bottom: 2rem;
 opacity: 0.9;
}

/* FOOTER */
.footer {
 background-color: var(--footer-bg);
 color: var(--footer-text);
 padding: 60px 0 20px;
 margin-top: auto;
}
.footer-container {
 max-width: 1280px;
 margin: 0 auto;
 padding: 0 20px;
}
.footer-top {
 padding-bottom: 40px;
 margin-bottom: 40px;
 border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-newsletter h4 {
 color: white;
 margin-bottom: 10px;
}
.footer-newsletter p {
 color: var(--secondary-color);
 margin-bottom: 20px;
}
.newsletter-form {
 display: flex;
 gap: 10px;
 max-width: 500px;
}
.newsletter-form input {
 flex-grow: 1;
 padding: 12px 15px;
 border: 1px solid var(--border-color);
 background-color: #fff;
 color: var(--text-dark);
 border-radius: var(--radius-md);
}

.footer-grid {
 display: grid;
 grid-template-columns: 2fr repeat(3, 1fr);
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: white;
 margin-bottom: 1rem;
 display: inline-block;
}
.footer-description {
 color: var(--secondary-color);
 line-height: 1.7;
}

.footer-heading {
 font-size: 1rem;
 font-weight: 600;
 color: white;
 margin-bottom: 20px;
 text-transform: uppercase;
}
.footer-links, .footer-contact {
 list-style: none;
}
.footer-links li, .footer-contact li {
 margin-bottom: 12px;
}
.footer-links a, .footer-contact a {
 color: var(--secondary-color);
}
.footer-links a:hover, .footer-contact a:hover {
 color: white;
}

.footer-contact li {
 display: flex;
 align-items: flex-start;
 gap: 10px;
}
.footer-contact svg {
 width: 18px;
 height: 18px;
 flex-shrink: 0;
 margin-top: 4px;
 color: var(--secondary-color);
}

.footer-bottom {
 padding-top: 20px;
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.9rem;
 color: var(--secondary-color);
}
.footer-social {
 display: flex;
 gap: 15px;
}
.footer-social a {
 color: var(--secondary-color);
}
.footer-social a:hover {
 color: white;
}
.footer-social svg {
 width:20px;
 height:20px;
}

/* About Page */
.values-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
}
.value-card {
 background: white;
 padding: 30px;
 border-left: 4px solid var(--primary-color);
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-sm);
}

.team-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
}
.team-member-card {
 background: var(--bg-light);
 text-align: center;
 padding: 30px;
 border-radius: var(--radius-lg);
}
.team-member-photo {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 margin: 0 auto 20px;
 object-fit: cover;
}
.team-member-name {
 margin-bottom: 5px;
}
.team-member-title {
 color: var(--primary-color);
 font-weight: 500;
 margin-bottom: 10px;
}
.team-member-bio {
 font-size: 0.9rem;
 color: var(--text-muted);
}

/* Articles Page */
.articles-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
}
.article-card {
 background: white;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 overflow: hidden;
 display: flex;
 flex-direction: column;
 transition: var(--transition);
}
.article-card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-lg);
}
.card-image {
 width: 100%;
 height: 200px;
 object-fit: cover;
}
.card-body {
 padding: 25px;
 display: flex;
 flex-direction: column;
 flex-grow: 1;
}
.card-meta {
 text-transform: uppercase;
 font-size: 0.8rem;
 font-weight: 600;
 color: var(--primary-color);
 margin-bottom: 10px;
}
.card-title {
 font-size: 1.25rem;
 margin-bottom: 15px;
 flex-grow: 1;
}
.card-text {
 color: var(--text-light);
 margin-bottom: 20px;
}
.card-body .btn {
 align-self: flex-start;
}

/* Contact Page */
.contact-layout {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 60px;
 align-items: flex-start;
}
.contact-heading {
 margin-bottom: 30px;
}
.form-group {
 margin-bottom: 20px;
}
.form-group label {
 display: block;
 margin-bottom: 8px;
 font-weight: 500;
}
.form-control {
 width: 100%;
 padding: 12px 15px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 font-family: inherit;
 font-size: 1rem;
 transition: var(--transition);
}
.form-control:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(59, 89, 152, 0.2);
}
textarea.form-control {
 resize: vertical;
 min-height: 120px;
}
.checkbox-group {
 display: flex;
 align-items: center;
 gap: 10px;
}
.checkbox-group label {
 margin-bottom: 0;
 font-weight: 400;
 font-size: 0.9rem;
}
.map-container {
 margin-top: 60px;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-md);
 height: 450px;
}

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

/* Thank You page */
.thank-you-section {
 padding: 140px 0;
 min-height: calc(100vh - 70px - 149px); /* Full height minus header and footer */
 display: flex;
 align-items: center;
 justify-content: center;
}
.text-center { text-align: center; }
.thank-you-icon {
 color: var(--primary-color);
 margin-bottom: 20px;
}
.thank-you-icon svg {
 width: 80px;
 height: 80px;
}

/* Form validation */
.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;
}
.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: 0;
 left: 0;
 right: 0;
 background-color: var(--footer-bg);
 color: var(--footer-text);
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
 box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}
.cookie-banner p {
 margin: 0;
}
.cookie-banner a {
 color: white;
 text-decoration: underline;
}
.cookie-buttons {
 display: flex;
 gap: 15px;
 flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
 .features-grid, .values-grid, .team-grid, .testimonial-slider, .articles-grid {
 grid-template-columns: 1fr 1fr;
 }
 .footer-grid {
 grid-template-columns: 1fr 1fr;
 }
 .media-object, .media-object.reverse {
 grid-template-columns: 1fr;
 }
 .media-object.reverse .media-visual {
 order: 1; /* revert to default order on smaller screens */
 }
 .contact-layout {
 grid-template-columns: 1fr;
 }
}

@media (max-width: 768px) {
 .nav-toggle {
 display: block;
 }
 .nav-cta { display: none; }
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 300px;
 height: 100%;
 background-color: var(--bg-white);
 flex-direction: column;
 align-items: flex-start;
 justify-content: flex-start;
 padding: 100px 40px 40px;
 gap: 25px;
 transition: right 0.4s ease-in-out;
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 }
 .nav-links.active {
 right: 0;
 }
 
 .nav-toggle.open span:nth-child(1) {
 transform: translateY(8px) rotate(45deg);
 }
 .nav-toggle.open span:nth-child(2) {
 opacity: 0;
 }
 .nav-toggle.open span:nth-child(3) {
 transform: translateY(-8px) rotate(-45deg);
 }

 .features-grid, .values-grid, .team-grid, .testimonial-slider, .articles-grid {
 grid-template-columns: 1fr;
 }

 .footer-grid {
 grid-template-columns: 1fr;
 text-align: center;
 }
 .footer-col {
 margin-bottom: 20px;
 }
 .footer-contact li {
 justify-content: center;
 }
 .footer-bottom {
 flex-direction: column;
 gap: 15px;
 }
 .newsletter-form {
 flex-direction: column;
 }
 .cookie-banner {
 flex-direction: column;
 text-align: center;
 }
}