       /* Global Variables */
:root {
  --bg: #b2d2f3; /*Ok*/
  --cntClr: #F8F8FF; /*Ghost White, Blue-Gray, Very pale with a frosty edge */
  --text: #34535E; /*Ok*/
  --muted: #6b7280;
  --borCol: #34535E; /*Ok*/
  --hdrBckClr: #E6F4F1; 
  --hdrTxtClr: #34535E;
  --hdrHovClr: #e6f4f1;
  --bckPrmClr: #57A498;
  --bckSndClr: #34535E;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  scroll-behavior: smooth;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Dark Mode Support - add this later */

/* Base Styles */
html,
body {
  height: 100%;
  margin: 0;
  font-family: var(--font-stack);
  overflow-x: hidden; /* prevent horizontal scroll */

}

/*=== HEADINGS ===*/
h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);     /* Hero or page title */
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);       /* Section title */
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);  /* Subsection title */
  line-height: 1.3;
   margin-bottom: 0.5rem;
}

h4 {
  font-size: clamp(1.5rem, 3vw, 2rem);     /* Minor heading */
  line-height: 1.35;
  margin-bottom: -0.5rem;
  margin-top: -0.25rem;
}

h5 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem); /* Label or callout */
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: clamp(1rem, 2vw, 1.5rem);     /* Small heading or caption */
  line-height: 1.45;
  margin-bottom: 0.5rem;
}


body {
  background: linear-gradient(to bottom, rgba(87,164,152,0.9), rgba(52,83,94,0.95));
  min-height: 100vh;
  background-repeat: no-repeat;
  background-size: cover; /* Ensure full coverage (was auto) */
  background-attachment: fixed;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  /* padding-bottom: 12rem; /* extra space for footer - still not great on all devices. Review this once live */
}

/* Layout Container */
.container {
  position: relative; /* for positioning the burger menu */
  max-width: 900px;
  width: 100%;
  background: var(--cntClr); /* card background - not used! */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
}

/*=== HEADER ===*/
header {
  background-color: var(--hdrBckClr); /* Header background color */
  color: var(--hdrTxtClr); /* text color */
  padding: 1rem;
  border-radius: 8px; /* optional: soft corners */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Logo Styling */
.logo-group {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem); 
  /* gap: 1.5rem; OLD CODE space between logo and title */
}

.logo-icon {
  display:block;
  width: clamp(50px, 10vw, 115px); /* responsive width between 100px and 200px */
  height: auto;
  flex: 0 0 auto; /* prevent flex grow or shrink */
  min-width: 50px; /* optional: prevent it from being too small */
}
.logo-text {
  display:block;
  width: clamp(115px, 20vw, 200px); /* responsive width between 100px and 200px */
  height: auto;
  flex: 0 10 auto; /* prevent flex grow or shrink */
  min-width: 115px; /* optional: prevent it from being too small */
 }

 /*=== BURGER MENU ===*/
.burger-button {
  font-size: 1.4rem; /* adjusted for practical size */
  background: transparent;
  border: none;
  color: var(--hdrTxtClr);
  cursor: pointer;
  /* If you want it hidden on wide screens, use a media query instead of display: none here */
  position: relative; /* position relative to container - was absolute before*/
  top: 0rem;
  left: -1rem;
  z-index: 1000;
  /*Burger spin support */
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: none;

}

.burger-button span {
  height: 4px;
  background-color: var(--hdrTxtClr);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Morph into X */
.burger-button.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-button.active span:nth-child(2) {
  opacity: 0;
}

.burger-button.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (prefers-reduced-motion: reduce) { /* Accessibility for reduced motion */
  .burger-button,
  .burger-button span {
    transition: none !important;
    transform: none !important;
  }
}

/*=== NAVIGATION PANEL UNDER BURGER BUTTON ===*/
.nav-links {
  position: absolute; /* position relative to container - was absolute before */
  top: 110px;
  right: 0;
 /* width: 150px; */
  width: fit-content;
  min-width: 125px; /* optional: prevent it from being too narrow */
  max-width: 300px; /* optional: prevent overflow on long text */
  background-color: var(--hdrBckClr);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 500;
  /* border: var(--hrdTexClr) 2px solid; */
  border-radius: 10px;

  /* fade-out initial state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Panel when open */
.nav-links.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Navigation Links */
.nav-links a {
  color: var(--hrdTexClr);
  text-decoration: none;
  text-align: right;
  font-size: 1.2rem; /*consider upto 1.5rem for better touch targets */
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  }

.nav-links a:hover {
  font-weight: bold;
  outline: 1px solid var(--hdrTxtClr);
  outline-offset: 2px;
}


/* Main Content */
main {
  line-height: 1.6; /* sepcifies main text line height for readability */
  color: #374151;
}

.lead { /* Lead paragraph styling - has some delegation to the H1-H6 at top of CSS file */
  /*margin: 0 0 1rem 0; OLD CODE*/
  margin-top: 0;
  margin-bottom: 1rem;
  color: #111827;
}

.site-footer {
  width: 100%;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  background: transparent; /* or var(--cntClr) if you want a card look */
}

.footer-divider {
  border: none;
  height: 2px;
  background: var(--borCol);
  margin: 0 auto 1rem auto;
  width: 70%;
  max-width: 900px;
  box-sizing: border-box;
  padding-inline: 1.5rem;
  /* margin-bottom: 1rem; /* space below divider */
    /* margin-inline: auto; /* center align */
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  text-decoration: underline;
  color: var(--text);
}



/* Button */
.btn {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  background: #90112f; /*af0e6c;*/
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

/* Responsive Adjustments */
@media (max-width: 520px) {
  body {
    padding: 1rem;
  }

  .container {
    padding: 1rem;
  }
}

/* === GENERAL IMAGE CONVENTIONS ===*/
.styled-image-left {
  float: left;
  width: 100%; /* auto-scales for desktop to mobile */
  max-width: 300px; /* optional: limit maximum width */   
  height: auto;
  border: 4px solid var(--borCol)   ; /* border with theme color - see root Variables*/
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 8px; /* optional: rounded corners */
}

.styled-image-right {
  float: right;
  width: 100%; /* auto-scales for desktop to mobile */
  max-width: 300px; /* optional: limit maximum width */   
  height: auto;
  border: 4px solid var(--borCol)   ; /* border with theme color - see root Variables*/
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 8px; /* optional: rounded corners */
  margin: 1.5rem 0 0 1rem; /* top right bottom left margins */
}

.styled-image-none {
  float: none;
  width: 100%; /* auto-scales for desktop to mobile */
  max-width: 700px; /* optional: limit maximum width */   
  height: auto;
  border: 4px solid var(--borCol)   ; /* border with theme color - see root Variables*/
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 8px; /* optional: rounded corners */
  /*justify-content: center; /* center alignment */
  display: block;
  margin: auto
}

@media (max-width: 700px) {
  .styled-image-right {
    float: none;
    display: block;
    margin: 1rem auto;
    width: 90%;
    max-width: 90%;
    order: 2; /* optional if using flex/grid */
  }
}

/*=== ABOUT IMAGE CONVENTIONS ===*/
.about-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  /* align-items: start; */
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* or center if you want vertical centering */
  padding-top: 7.5rem;
}

.about-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 4px solid var(--borCol);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

@media (max-width: 700px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-image {
    display: flex;
    justify-content: center;
    order: 1; /* moves image below text */
    margin-bottom: 1.5rem;
    padding-top: 0;
  }

  .about-image img {
    width: 75%;
    max-width: 300px; /* optional: still caps it on larger phones */
    height: auto;
  }
}


/*=== CONTACT FORM STYLES ===*/
/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start; /*prevents children from stretching full width */
}

.contact-form label {
  font-weight: bold;
  font-size: 1rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border: 1px solid var(--borCol);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-stack);
  background-color: #fff;
  color: var(--text);
  max-width: 600px;
  width: calc(100% - 1rem); /* full width minus padding, was 900px before & margin-left 1 rem */
  margin-inline: 0; /* Was auto before */
  margin-left: 0; /* align left, was 1 rem */
  text-align: left; /* Text typed in box aligns left */
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--bckPrmClr);
  outline-offset: 2px;
}



