:root {
  --dark-blue: #004080;
  --light-blue: #2a9bd7;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: var(--dark-blue); /* changed from #f9f9f9 to dark blue */
  color: white; /* ensure text is readable on dark background */
}

.bg-dark-blue {
  background-color: var(--dark-blue);	
}

.bg-light-blue {
  background-color: var(--light-blue);	
}

.bg-white {
	background-color:#f8f9fa;
	color: #ddd;
}

.white-text {
	color: #fff;
}

.list-unstyled {
	font-size: 1.1rem;
}

/* Base header */
#site-header {
  background-color: white;
  color: var(--dark-blue);
  padding: 1.5rem 2rem;
  border-bottom: 3px solid #003366;
  transition: all 0.25s ease;
  width: 100%;
}

/* spacer default (no height) */
#header-spacer {
  height: 0;
  transition: height 0.25s ease;
}

/* logo size and transitions */
#logo img {
  height: 90px;
  transition: height 0.25s ease;
}

/* contact area */
#contact-details {
  transition: opacity 0.2s ease, max-height 0.25s ease;
  max-height: 400px; 
  overflow: hidden;
  font-size: 1.1rem;
}

/* --- MOBILE ONLY sticky state --- */
@media (max-width: 767.98px) {
  #site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    z-index: 1050;
    padding: 0.5rem 2rem;
  }

  #site-header.sticky .container {
    justify-content: center;
  }

  #site-header.sticky #logo img {
    padding-top: 15px;
	height: 90px;
  }

  #site-header.sticky #contact-details {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
  }
}




/* Hero */
.hero {
  background-attachment: fixed; /* creates parallax effect */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.hero p {
  color: var(--dark-blue);
  font-size: 1.25rem;
}

/* Sections */
section {
  padding: 4rem 0;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-blue);
  font-weight: bold;
  xtext-align: center;
}
.bg-brand-dark {
  background-color: var(--dark-blue);
  color: white;
}
.bg-brand-light {
  background-color: var(--light-blue);
  color: var(--dark-blue);
}

/* Contact Form */
  /* Brand input focus effect */
.contact-form .form-control:focus {
border-color: #66CCFF;
box-shadow: 0 0 0 0.2rem rgba(102, 204, 255, 0.4);
}

/* Brand button */
.brand-btn {
background-color: #003366;
border: none;
transition: background-color 0.3s ease;
}

.brand-btn:hover {
background-color: #00509e; /* lighter navy on hover */
}

/* Footer */
footer {
  background-color: var(--dark-blue);
  color: white;
  padding: 3rem 2rem;
  font-size: 0.95rem;
}
footer h4 {
  color: white;
  margin-bottom: 1rem;
}
footer a {
  color: var(--light-blue);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.footer-links ul {
  list-style: none;
  padding-left: 0;
}
.footer-links ul li {
  margin-bottom: 0.5rem;
}
.footer-links ul li i {
  margin-right: 8px;
  color: var(--light-blue);
}
.social-links a {
  font-size: 1.2rem;
  margin-left: 10px;
  color: var(--light-blue);
}
footer .copyright,
footer .credits {
  margin-top: 1rem;
  text-align: center;
}

/* Placeholder */
.image-overlap {
position: relative;
height: 280px;
display: flex;
align-items: center;
justify-content: center;
}

.image-overlap img {
max-height: 100%;
max-width: 55%; /* slightly smaller for better overlap */
border-radius: 0.75rem;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
position: absolute;
transition: transform 0.3s ease, z-index 0.3s ease;
}

/* First image slightly to the left */
.image-overlap img:first-child {
left: 5%;
z-index: 1;
transform: rotate(-1deg);
}

/* Second image raised & slightly to the right */
.image-overlap img:last-child {
right: 5%;
top: -80px;
z-index: 2;
transform: rotate(1deg);
}

/* Hover effect */
.image-overlap img:hover {
transform: scale(1.02);
z-index: 3;
}

/* --- Mobile responsive stacking --- */
@media (max-width: 768px) {
.image-overlap {
height: auto;
flex-direction: column; /* stack */
}

.image-overlap img {
position: static !important;   /* reset absolute to static */
display: block;                /* behave like normal block elements */
width: 100% !important;        /* take full container width */
max-width: 100% !important;    /* prevent scaling down */
margin: 10px 0;                /* spacing between */
transform: none !important;    /* remove rotation */
box-shadow: none;              /* optional: remove shadow */
}

/* Disable hover */
.image-overlap img:hover {
transform: none !important;
z-index: auto !important;
}
}

/* Back to Top button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: none;
  cursor: pointer;
  z-index: 2000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* hover effect */
#backToTop:hover {
  transform: translateY(-3px);
  background-color: var(--light-blue);	
}


@media (max-width: 767.98px) {
	html, body {
		text-align: center;
	}
}