@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
 --primary-color: #0d4f8b; /* Deep Blue */
 --secondary-color: #0891b2; /* Tech Cyan */
 --accent-color: #4a5568; /* Steel Gray */
 
 --primary-dark: #0a3c6b;
 
 --text-dark: #2d3748;
 --text-light: #4a5568;
 --text-white: #ffffff;
 
 --bg-light: #f7fafc;
 --bg-white: #ffffff;
 --bg-dark: #1a202c;
 
 --border-color: #e2e8f0;
 
 --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
 --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
 --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

 --radius-md: 8px;
 --radius-lg: 16px;
 
 --transition: all 0.3s ease-in-out;
 --font-main: 'Inter', sans-serif;
}

/* --- Base Reset & Typography --- */
*, *::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.7;
 color: var(--text-light);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
}

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

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

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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;
 border-radius: var(--radius-md);
}

/* --- Header & Navigation --- */
.header {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 z-index: 1000;
 background: rgba(255, 255, 255, 0.8);
 backdrop-filter: blur(10px);
 box-shadow: var(--shadow-sm);
 transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.nav-links a {
 font-weight: 600;
 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-color: var(--primary-color);
 transition: width 0.3s ease;
}

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

.nav-cta {
 display: block;
}

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

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

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

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

.btn-primary:hover {
 background-color: var(--primary-dark);
 color: var(--text-white);
 transform: translateY(-2px);
 box-shadow: var(--shadow-md);
}

.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);
 transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
 position: relative;
 min-height: 80vh;
 display: flex;
 align-items: center;
 text-align: center;
 color: var(--text-white);
 padding: 120px 0 80px;
 background-size: cover;
 background-position: center;
}

.hero::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: linear-gradient(rgba(13, 79, 139, 0.7), rgba(26, 32, 44, 0.8));
}

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

.hero-title {
 color: var(--text-white);
 margin-bottom: 24px;
}

.hero-subtitle {
 font-size: 1.25rem;
 line-height: 1.6;
 max-width: 600px;
 margin: 0 auto 40px;
 opacity: 0.9;
}

.hero-buttons {
 display: flex;
 gap: 16px;
 justify-content: center;
}

.page-header-section {
 background-color: var(--primary-dark);
 color: var(--text-white);
 padding: 140px 0 60px;
 text-align: center;
}
.page-header-section h1 { color: var(--text-white); }
.page-header-section p { max-width: 700px; margin: 0 auto; font-size: 1.1rem; opacity: 0.9; }

/* --- Section Styling --- */
.section {
 padding: 80px 0;
}

.section.bg-light {
 background-color: var(--bg-light);
}
.section.bg-dark {
 background-color: var(--bg-dark);
}
.section.bg-dark h2, .section.bg-dark p {
 color: var(--text-white);
}

.section-header {
 text-align: center;
 max-width: 750px;
 margin: 0 auto 60px;
}

.section-label {
 display: inline-block;
 font-size: 0.875rem;
 font-weight: 600;
 color: var(--primary-color);
 text-transform: uppercase;
 letter-spacing: 1px;
 margin-bottom: 12px;
}

.section-title {
 color: var(--text-dark);
}

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

/* --- Grids --- */
.grid-2 { display: grid; gap: 40px; }
.grid-3 { display: grid; gap: 30px; }
.grid-4 { display: grid; gap: 30px; }

@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); }
}

/* --- Cards --- */
.card {
 background-color: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 overflow: hidden;
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}

.card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-lg);
}

.card-image {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-body {
 padding: 24px;
 flex-grow: 1;
 display: flex;
 flex-direction: column;
}

.card-title {
 font-size: 1.3rem;
 color: var(--text-dark);
}

.card-text {
 flex-grow: 1;
 margin-bottom: 20px;
}

.read-more {
 font-weight: 600;
 align-self: flex-start;
}

/* --- Media Object --- */
.media-object {
 display: grid;
 gap: 40px;
 align-items: center;
}
@media (min-width: 768px) {
 .media-object { grid-template-columns: 1fr 1fr; }
 .media-object.reverse .media-visual { order: 2; }
}

.media-visual img {
 box-shadow: var(--shadow-lg);
 border-radius: var(--radius-lg);
}

.feature-list {
 list-style: none;
 margin-top: 20px;
}
.feature-list li {
 position: relative;
 padding-left: 28px;
 margin-bottom: 12px;
}
.feature-list li::before {
 content: '';
 position: absolute;
 left: 0;
 top: 0;
 color: var(--secondary-color);
 font-weight: 700;
}

/* Testimonials */
.testimonial-card {
 background: var(--bg-light);
 padding: 30px;
 border-radius: var(--radius-lg);
 border-left: 5px solid var(--secondary-color);
}
.testimonial-text {
 font-style: italic;
 margin-bottom: 24px;
}
.testimonial-author {
 display: flex;
 align-items: center;
 gap: 15px;
}
.testimonial-author img {
 width: 60px;
 height: 60px;
 border-radius: 50%;
 object-fit: cover;
}
.author-name {
 margin: 0;
 color: var(--text-dark);
}
.author-title {
 font-size: 0.9rem;
 color: var(--text-light);
}

/* --- CTA Section --- */
.cta-section {
 text-align: center;
}
.cta-section .container {
 max-width: 800px;
}
.cta-section .section-title {
 color: var(--text-white);
}
.cta-section .section-subtitle {
 color: rgba(255, 255, 255, 0.8);
 margin-bottom: 30px;
}

/* --- About Page --- */
.value-card {
 background: var(--bg-white);
 padding: 30px;
 border-radius: var(--radius-md);
 text-align: center;
 box-shadow: var(--shadow-md);
}
.team-card {
 text-align: center;
}
.team-card img {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 margin: 0 auto 20px;
 object-fit: cover;
 box-shadow: var(--shadow-lg);
}
.team-card h4 {
 color: var(--text-dark);
}
.team-card span {
 color: var(--primary-color);
 font-weight: 500;
}

/* --- Services Page --- */
.feature-card-alt {
 padding: 24px;
 background: var(--bg-white);
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-md);
 transition: var(--transition);
}
.feature-card-alt:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-lg);
}

/* --- Resources Page --- */
.blog-card {
 background: var(--bg-white);
 padding: 24px;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-sm);
 display: flex;
 flex-direction: column;
}
.blog-title {
 font-size: 1.2rem;
 color: var(--text-dark);
 margin-bottom: 12px;
}
.blog-excerpt {
 flex-grow: 1;
 margin-bottom: 16px;
}
.blog-meta {
 font-size: 0.85rem;
 color: var(--accent-color);
 font-weight: 500;
}
.faq-accordion .faq-item {
 border-bottom: 1px solid var(--border-color);
 margin-bottom: 15px;
}
.faq-question {
 width: 100%;
 background: transparent;
 border: none;
 text-align: left;
 padding: 15px 0;
 font-size: 1.1rem;
 font-weight: 600;
 color: var(--text-dark);
 cursor: pointer;
 position: relative;
 padding-right: 30px;
}
.faq-question::after {
 content: '+';
 position: absolute;
 right: 0;
 font-size: 1.5rem;
 transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
 transform: rotate(45deg);
}
.faq-answer {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.3s ease;
}
.faq-answer p {
 padding: 0 0 20px 0;
}

/* --- Contact Page --- */
.contact-grid {
 display: grid;
 gap: 40px;
}
@media (min-width: 992px) {
 .contact-grid {
 grid-template-columns: 2fr 1fr;
 }
}
.contact-form-container, .contact-info-container {
 background: var(--bg-light);
 padding: 30px;
 border-radius: var(--radius-lg);
}
.contact-form-container h3, .contact-info-container h3 {
 margin-bottom: 24px;
}

.form-group {
 margin-bottom: 20px;
}
.form-label {
 display: block;
 margin-bottom: 8px;
 font-weight: 500;
}
.form-control {
 width: 100%;
 padding: 12px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 background: var(--bg-white);
}
.form-control:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(13, 79, 139, 0.2);
}
textarea.form-control {
 resize: vertical;
}

.contact-details-list {
 list-style: none;
}
.contact-details-list li {
 margin-bottom: 20px;
 line-height: 1.6;
}
.contact-details-list strong {
 color: var(--text-dark);
}
.map-section_map {
 border-radius: var(--radius-lg);
 overflow: hidden;
}

/* --- Legal Pages --- */
.legal-page {
 padding: 140px 0 80px;
}
.legal-page .container { max-width: 800px; }
.legal-page h1 { margin-bottom: 20px; }
.legal-page h3 { margin-top: 30px; margin-bottom: 15px; }
.legal-page p, .legal-page li { margin-bottom: 15px; }
.legal-page ul { padding-left: 20px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 20px 0;}
.legal-page th, .legal-page td { border: 1px solid var(--border-color); padding: 8px; text-align: left; }
.legal-page th { background-color: var(--bg-light); }

/* --- Footer --- */
.footer {
 background-color: var(--bg-dark);
 color: #a0aec0;
 padding: 60px 0 30px;
 margin-top: 60px;
}

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

.footer-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--text-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: var(--text-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: #a0aec0;
}
.footer-links a:hover {
 color: var(--text-white);
}

.footer-bottom {
 border-top: 1px solid #2d3748;
 padding-top: 30px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.9rem;
}

.footer-legal-links {
 display: flex;
 gap: 20px;
}

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: var(--bg-dark);
 color: var(--text-white);
 padding: 15px 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 z-index: 1100;
 box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
 flex-wrap: wrap;
 gap: 15px;
}

#cookie-banner p {
 margin: 0;
}

#cookie-banner a {
 color: var(--secondary-color);
 text-decoration: underline;
}

#cookie-banner div {
 display: flex;
 gap: 10px;
}

#cookie-banner button {
 padding: 8px 15px;
 border-radius: var(--radius-md);
 border: none;
 cursor: pointer;
 font-weight: 600;
}

#cookie-banner button:first-of-type {
 background-color: var(--primary-color);
 color: white;
}

#cookie-banner button:last-of-type {
 background-color: var(--accent-color);
 color: white;
}

/* --- Responsive --- */
@media (max-width: 992px) {
 .nav-cta { display: none; }
}

@media (max-width: 768px) {
 h1 { font-size: 2.2rem; }
 h2 { font-size: 1.8rem; }
 
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 280px;
 height: 100%;
 flex-direction: column;
 background-color: var(--bg-white);
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 padding-top: 100px;
 gap: 25px;
 transition: right 0.4s ease-in-out;
 }
 
 .nav-links.active {
 right: 0;
 }
 
 .nav-toggle {
 display: block;
 }
 .nav-toggle.active span:nth-child(1) {
 transform: translateY(8px) rotate(45deg);
 }
 .nav-toggle.active span:nth-child(2) {
 opacity: 0;
 }
 .nav-toggle.active span:nth-child(3) {
 transform: translateY(-8px) rotate(-45deg);
 }

 .grid-3, .grid-4 { 
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 }
 
 .footer-grid {
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 }
 
 .footer-bottom {
 flex-direction: column;
 gap: 15px;
 text-align: center;
 }
}