/* ------------------------------------------------------
   Root Variables
------------------------------------------------------ */
:root {
    color-scheme: light only;
  --color-header: #d7ecef;
  --color-footer: #e4e2e2;
  --color-white: #F0F0F0;
  --color-accent: #050e84;
  --color-accent-medium: #679da8;
  --color-accent-light: #d7ecef;
  --color-text: #003049;
  --color-text-accent: #003049;
  --color-border: #D1D1D1;
  --color-footer-text: #555;
  --shadow-soft: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-medium: 0 6px 18px rgba(0,0,0,0.06);
  --transition: all 0.2s ease-in-out;
}

/* ------------------------------------------------------
   Base Styles
------------------------------------------------------ */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Make all elements calculate width properly */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Prevent horizontal overflow */
html, body {
  overflow-x: hidden;
}

/* ------------------------------------------------------
   Header & Navigation
------------------------------------------------------ */
header, .site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: flex;
  z-index: 1000;
  text-align: left;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, var(--color-header) 0%, var(--color-white) 100%);
  box-shadow: var(--shadow-soft);
  position: relative;
}

/* Header title */
header h1, .site-header h1 {
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin: 0;
  color: var(--color-text);
  display: flex;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none !important;
  color: inherit;
  position: relative;
  z-index: 1100;
  gap: 10px;
}

.logo-link img {
  display: block;
  max-width: clamp(350px, 40vw, 550px);
  flex-shrink: 0;
  forced-color-adjust: none;

}

@media (max-width: 768px) {
  .logo-link img {
    max-width: clamp(70%, 90%, 95%);
  }
}

.site-nav {
  display: flex;
  gap: .75rem;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem;
  }
  .site-nav.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

/* Nav link polish */
.site-nav a {
  position: relative;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--color-accent);
}

.site-nav a:hover::after,
.site-nav a:focus::after,
.site-nav a.active::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  opacity: 1;
}

/* ------------------------------------------------------
   Main Content & Sections
------------------------------------------------------ */
main {
  width: 100%;
  background-color: var(--color-white);
  box-shadow: var(--shadow-soft);
  padding: 0 2rem 4rem 2rem;
  flex: 1;
}

main.homepage{
  padding: 0;
  box-shadow: none;
}

h1, h2, h3 {
  color: var(--color-text-accent);
}

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

a:hover {
  text-decoration: underline;
}


.content-box {
  background-color: var(--color-white);
  padding: 40px;
  border: 2.5px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  max-width: 1200px; 
  width: 98%;
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 60px 0;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* CTA Section */
.content-box-accent {
  background-color: var(--color-accent-light);
  text-align: center;
}

/* Button style */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px; 
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

/* Hover / active effect */
.btn:hover {
  background-color: var(--color-accent-medium);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ------------------------------------------------------
   Value Boxes Grid Layout
------------------------------------------------------ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

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

/* Value Boxes (reuse accordion styles visually) */
.value-box {
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, rgba(0,116,153,0.02), rgba(0,116,153,0.00));
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-border);
  background-color: var(--color-accent-light);
  border-radius: 8px;
}

.value-box h3 {
  color: var(--color-accent);
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.value-box p {
  margin: 0;
  color: var(--color-text);
}



/* ------------------------------------------------------
   Accordion (Details/Summary)
------------------------------------------------------ */
.accordion {
  border: 2.5px solid var(--color-border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin: 0.75rem 0;
  background: linear-gradient(180deg, rgba(0,116,153,0.02), rgba(0,116,153,0.00));
  transition: var(--transition);
}

.accordion summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.25rem 0.5rem 0.25rem 1.5rem;
  color: var(--color-text);
  position: relative;
  list-style: none;
}

.accordion summary::-webkit-details-marker,
.accordion summary::marker {
  display: none;
}

.accordion-icon {
  position: absolute;
  left: 0;
  top: 0.25rem;
  font-weight: bold;
  color: var(--color-accent);
}

.accordion:not([open]) .accordion-icon::before {
  content: "+";
}

.accordion[open] .accordion-icon::before {
  content: "−";
}

.accordion p,
.accordion div {
  margin: 0.5rem 0 0;
  color: var(--color-text);
}

.accordion[open] {
  box-shadow: var(--shadow-medium);
}

.accordion > *:not(summary) {
  transition: var(--transition);
}

/* ------------------------------------------------------
   Hero Section
------------------------------------------------------ */
.hero {
  position: relative;
  height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, #0077b6, #003049); /* fallback */
  margin-top: 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.6);
  z-index: 0;
}

@media(max-width: 768px) {
  .hero-video{
    width: 100%;
    height: 100%;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 150px;
  max-width: 100%;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  font-family: var(--fancy-font);
  font-weight: 1;   
  
}

/* ------------------------------------------------------
   Blog Posts
------------------------------------------------------ */
.blog-posts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.blog-post-preview {
  padding: 2rem;
}

.blog-post-preview h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.blog-post-preview h2 a {
  color: var(--color-text-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post-preview h2 a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-footer-text);
  margin-bottom: 1rem;
}

.post-author::before {
  content: "•";
  margin-right: 0.5rem;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.post-excerpt {
  color: var(--color-text);
  line-height: 1.6;
  margin: 1rem 0;
}

.read-more {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.read-more:hover {
  text-decoration: underline;
}

/* Individual Blog Post */
.blog-post {
  max-width: 900px;
  margin: 2rem auto;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border);
}

.post-header h1 {
  margin-bottom: 1rem;
}

.post-content {
  line-height: 1.8;
  font-size: 1.05rem;
}

.post-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content ul, .post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content code {
  background-color: var(--color-accent-light);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.post-content pre {
  background-color: var(--color-accent-light);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
}

/* ------------------------------------------------------
   Footer
------------------------------------------------------ */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--color-footer-text);
  background: linear-gradient(180deg, var(--color-footer) 0%, var(--color-white) 100%);
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.08);
}
