/* --- Global Styles & Resets --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: #FFFFFF; /* White Background */
  font-family: 'Poppins', sans-serif;
  color: #333333; /* Dark Grey Text */
  line-height: 1.6;
  font-size: 16px; /* Base size for mobile friendliness */
  -webkit-text-size-adjust: 100%; /* Prevent iOS text resizing weirdness */
}

/* === SECTION STYLING === */
section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%; /* Sections are now full-width */
  padding: 5rem 2rem; /* Padding creates top/bottom space */
  text-align: center;
  min-height: auto; 
}
.hero {
  min-height: 100vh; /* Hero section still full height */
  padding-top: 100px;
}
.section-bg {
  background-color: #F8F9FA; /* Light grey bg spans full-width */
}

/* === CONTENT CONTAINER === */
.content-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
  width: 100%;
}
/* Hero text needs to be left-aligned */
.hero .content-container {
  text-align: left;
}

/* --- Article & Policy Page Styles (Privacy/Security) --- */
.article-section {
    text-align: left;
    padding-top: 120px; /* Standard top padding to account for nav */
    padding-bottom: 5rem;
    min-height: 60vh;
}
.article-section .content-container {
    text-align: left;
}
.article-section h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}
.article-section h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    text-align: left;
    color: #0056b3; 
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
/* Ensure lists in policy pages have proper indentation */
.article-section ul, 
.article-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.article-section li {
    margin-bottom: 0.5rem;
}

/* --- Typography & Links --- */
a { text-decoration: none; color: #0056b3; }

h1, h2, h3 {
  color: #002A5C; /* Dark Blue - Professional & Authoritative */
  font-weight: 700;
}

h1 {
  margin-block: 0.67em;
  font-size: 2em;
}

/* --- Utilities --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.highlight { color: #0056b3; } /* Blue highlight */

/* --- Header / Navigation --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000; /* High Z-Index to stay on top */
  border-bottom: 1px solid #EEEEEE;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.nav-logo { 
  font-size: 1.5rem; 
  font-weight: 700; 
  color: #002A5C;
}
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin: 0 0.5rem; }
.nav-links a { 
  font-size: 1rem; 
  transition: color 0.3s ease; 
  color: #333333;
  font-weight: 500;
  padding: 10px 15px; /* Bigger tap target for mobile */
  display: inline-block;
}
.nav-links a:hover { color: #0056b3; }

/* --- Call to Action Buttons --- */
.cta-button {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid #0056b3;
  color: #0056b3;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  margin: 5px; /* Spacing for touch targets */
  min-height: 44px; /* Accessibility requirement */
}
.cta-button:hover { 
  background-color:  #0056b3;
  color: #FFFFFF;
}

/* Solid Blue Primary Button */
.cta-button.cta-primary {
  background-color: #0056b3;
  border-color: #0056b3;
  color: #FFFFFF;
}
.cta-button.cta-primary:hover {
  background-color: #004085;
  border-color: #004085;
}

/* Outline Dark Button */
.cta-button--outline-dark {
  background-color: transparent;
  color: #002A5C;
  border-color: #002A5C;
}
.cta-button--outline-dark:hover {
  background-color: #002A5C;
  color: #FFFFFF;
}

/* Solid Dark Button */
.cta-button--dark {
  background-color: #002A5C;
  border-color: #002A5C;
  color: #FFFFFF;
}
.cta-button--dark:hover {
  background-color: #001f44;
  border-color: #001f44;
}

/* Navbar CTA override */
.navbar .cta-button {
    background-color: #0056b3;
    color: #FFFFFF;
}
.navbar .cta-button:hover {
    background-color: #004085;
    border-color: #004085;
}

/* --- Dropdown Styles --- */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 250px;
    z-index: 1001; /* Above navbar */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li { margin: 0; }
.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    font-size: 0.95rem;
}
.dropdown-menu li a:hover {
    background-color: #F8F9FA;
    color: #0056b3;
}

/* --- Mobile Menu Button (Hamburger) --- */
.nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle svg {
  width: 32px;
  height: 32px;
  stroke: #002A5C;
}

/* --- Hero Section Typography --- */
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero .subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #555555;
  margin-bottom: 2rem;
  font-weight: 600;
}
.hero p { text-align: left; margin: 0 0 2rem 0; }

/* --- Trust Bar --- */
.trust-bar {
    background: #F8F9FA;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #EEEEEE;
    border-bottom: 1px solid #EEEEEE;
}
.trust-bar .content-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.trust-bar p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #002A5C;
    margin: 0;
}
.trust-bar img {
    max-height: 45px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: opacity 0.3s, filter 0.3s;
}
.trust-bar img:hover {
    opacity: 1;
    filter: none;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}
.service-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.service-card .icon { margin-bottom: 1rem; }
.service-card .icon svg { 
  width: 48px; 
  height: 48px; 
  color: #0056b3;
}
.service-card h3 { font-size: 1.3rem; }
.service-card p { 
  font-size: 0.95rem; 
  line-height: 1.5; 
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.service-card .read-more {
    font-weight: 700;
    color: #0056b3;
    text-decoration: none;
}
.service-card .read-more:hover { text-decoration: underline; }

/* --- Process Section --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: left;
}
.process-step {
    padding: 2rem;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    background: #FFFFFF;
}
.process-step .step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 0.5rem;
}
.process-step h3 { font-size: 1.3rem; }
.process-step p { font-size: 0.95rem; max-width: 100%; margin: 0; }

/* --- Case Study Section --- */
.case-study-card {
    background: #002A5C;
    color: #FFFFFF;
    padding: 3rem;
    border-radius: 8px;
    text-align: left;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(0, 42, 92, 0.2);
}
.case-study-card p,
.case-study-card h3 {
    color: #FFFFFF;
    max-width: 100%;
}
.case-study-card .client-name {
    font-size: 1rem;
    font-weight: 600;
    color: #0056b3;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.case-study-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.case-study-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    border-left: 4px solid #0056b3;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #CCD6F6;
}
.case-study-card blockquote footer {
    font-style: normal;
    font-weight: 600;
    color: #FFFFFF;
    margin-top: 0.5rem;
    font-size: 1rem;
}
.case-study-card .results {
    font-size: 1.1rem;
}

/* --- Home Insights Section --- */
#home-insights h2 {
  text-align: center;
  margin-bottom: 3rem;
}
.insight-card {
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.insight-card .card-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0056b3;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.insight-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
.insight-card h3 a {
    color: #002A5C;
    text-decoration: none;
}
.insight-card h3 a:hover { color: #0056b3; }
.insight-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    flex-grow: 1;
}
.insight-card .read-more {
    font-weight: 700;
    color: #0056b3;
    text-decoration: none;
}
.insight-card .read-more:hover { text-decoration: underline; }

/* --- Contact Section --- */
#contact p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
}
#contactForm {
  background: #FFFFFF;
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 2rem auto 0 auto;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-grid .full-width { grid-column: 1 / -1; }
.form-group { margin-bottom: 0; }

#contactForm label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333333;
}
#contactForm input, #contactForm textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  background: #FFFFFF;
  color: #333333;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}
#contactForm input:focus, #contactForm textarea:focus {
  outline: none;
  border-color: #0056b3;
}
#contactForm button {
  background: #0056b3;
  color: #FFFFFF;
  padding: 0.8rem 1.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}
#contactForm button:hover { background-color: #0056b3; }

/* --- Footer --- */
footer {
    background: #002A5C;
    padding: 4rem 2rem 2rem 2rem;
    color: #CCD6F6;
    font-size: 0.9rem;
}
.footer-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    text-align: left;
}
.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}
.footer-col a {
    color: #CCD6F6;
    display: block;
    margin-bottom: 0.7rem;
    transition: color 0.3s ease;
}
.footer-col a:hover {
    color: #0056b3;
}
.footer-col p {
    color: #CCD6F6;
    margin: 0 0 0.5rem 0;
    max-width: 100%;
}
.footer-col .social-icon {
    display: inline-block;
    margin-right: 10px;
    fill: #CCD6F6;
    width: 24px;
    height: 24px;
    transition: fill 0.3s ease;
}
.footer-col .social-icon:hover {
    fill: #0056b3;
}

.footer-bottom {
    max-width: 1100px;
    margin: 3rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(204, 214, 246, 0.15);
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a {
    color: #FFFFFF;
    font-weight: 500;
}
.footer-bottom a:hover { color: #0056b3; }

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet & Mobile Nav */
@media (max-width: 768px) {
    .navbar {
      padding: 1rem 1.5rem;
    }
    .nav-toggle {
      display: block;
    }
    .nav-menu {
      display: none;
      position: absolute;
      top: 73px;
      left: 0;
      width: 100%;
      background: #FFFFFF;
      border-bottom: 1px solid #EEEEEE;
      box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    }
    .navbar.nav-active .nav-menu {
      display: block;
    }
    .nav-links {
      flex-direction: column;
      padding: 1rem 0;
      width: 100%;
    }
    .nav-links li {
      margin: 0.5rem 0;
      width: 100%;
      text-align: center;
    }
    .nav-links a {
      padding: 0.75rem 1.5rem;
      display: block;
    }
    .dropdown { width: 100%; }
    .dropdown-menu {
      position: static;
      display: none;
      width: 100%;
      box-shadow: none;
      border: none;
      background: #F8F9FA;
      padding: 0.5rem 0;
      margin-top: 0.5rem;
    }
    .dropdown:hover .dropdown-menu {
      display: block;
    }
    
    /* Layout Adjustments */
    section { padding: 4rem 1.5rem; }
    
    .hero .content-container,
    .content-container { text-align: left; }
  
    h2 { font-size: 2rem; text-align: left; }
    
    /* Re-center specific headings */
    #home-insights h2, #services h2, #contact h2, #process h2, #our-work h2 { text-align: center; }
    .hero p { text-align: left; }

    .footer-container { grid-template-columns: 1fr; }
    .footer-col { margin-bottom: 1.5rem; }

    /* Policy/Article Page Mobile Overrides */
    .article-section {
        padding-top: 100px;
        padding-bottom: 3rem;
    }
    .article-section .content-container,
    .article-section h1,
    .article-section h2,
    .article-section p,
    .article-section ul,
    .article-section li {
        text-align: left !important;
    }
    .article-section h1 {
        font-size: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full-width { grid-column: 1; }
}
