body {
  font-family: 'Open Sans', Arial, sans-serif;
  margin: 0;
  background-color: #baf4f4; /* light blue background */
}

/* ===================================================================
   HEADER
=================================================================== */
.container {
  max-width: 1180px;        /* master container.  width of main display */
  margin: 40px auto 20px; /* top 60px, left/right auto, bottom 20px; push entire container down from the top by 40px */
  padding-top: 30px; /* space inside the container */
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  border-radius: 8px;
  overflow: hidden;
}

header {
  background: #fff0;
  color: #2e4f00;
  padding: 1em;
  display: flex;
  justify-content: space-between; /* logo left, text block right */
  align-items: center;
}

.logo {
  width: 15%; /* 180Ppx */
  height: auto;
}

.header-text {
  margin-right: 3rem; /* pushes the text away from the right edge */
  text-align: right; /* right-justify both rows */
}

.header-text .company-name {
  margin: 0;
  font-size: 3em;
  line-height: 1.2; /* tighter spacing */
  font-weight: bold;
}

.header-text .tagline {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.2; /* smaller gap */
  font-weight: normal;
}

.page-title {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  text-align: center;
}

.section-line {
  border: none;
  border-top: 1px solid #000; /* black underscore line */
  margin: 0.5em auto 1em auto;
  width: 94%; /* shorter than full width for style */
}

/* =========================
   DESKTOP NAVIGATOR
========================= */
.desktop-nav {
  background: #2e4f00;
  width: 90%;            /* 90% of container width */
  margin: 0 auto;        /* center horizontally */
  border-radius: 8px;   
  display: flex;
  justify-content: center;
}

/* Styles all <a> tags that are children of <nav> */
.desktop-nav a {
  color: #fff;
  padding: 1em;
  text-decoration: none;
}

.desktop-nav a.active {
  background-color: #FFFFFF4D;   /* darker green */
  color: #fff;              /* white text */
  font-weight: bold;
  border-radius: 6px;
}

.desktop-nav a:hover {
  background: #FFFFFF4D;
}

/* =========================
   MOBILE NAVIGATOR
========================= */
.mobile-nav {
  display: none;        /* hide mobile menu on desktop */
  position: relative;  
}

.menu-btn {
  width: 90%;
  margin: 0 auto;           /* centered child element */
  display: block;
  padding: 12px;            /* add space around element */
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: #2e4f00;
  color: white;
  cursor: pointer;
}

.mobile-menu {
  display: none;            /* don't display menu.  Chg by .mobile-menu.show */
  position: absolute;       /* rmoves from page flow */
  top: calc(100% + 4px);    /* absolute start element at begin of mobile-nav */
  width: 90%;               /* width fix at 90% of parent */
  left: 50%;                /* shift left by 50% of container.  left at center now */
  transform: translateX(-50%); /* pulls it back by half its own width. now child is cnetered */
  background: #2e4f00;
  border-radius: 8px;
  overflow: hidden; 
  z-index: 9999;           /* floats above everything */
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* show dropdown - control by script in header.php */
.mobile-menu.show {         
  display: block;           /* chg frome none to block */
}

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #fff;
    background: #2e4f00;

    /* thin divider line */
    border-bottom: 1px solid rgba(255,255,255,0.18);    /* transparent color */
}

/* remove divider from last item */
.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a.active {
  background-color: #FFFFFF4D;
  color: #fff;
  font-weight: bold;
}

.mobile-menu a:hover {
  background: #FFFFFF4D;
  color: #fff;
}

/* ===================================================================
   HOME
=================================================================== */
#content {
  padding: 0 1em 0.4em 1em;
  text-align: center;
}

#content img.home-image {
  max-width: 60%;   /* smaller size */
  border: none;     /* remove border */
  border-radius: 0; /* remove rounded corners */
}

/* ===================================================================
   ABOUT US
=================================================================== */
.text-box {
    width: 85%;             /* limit text block to 90% of parent */
    margin: 0 auto 40px;         /* margin for top, right, btm, left */
    text-align: left;       /* left justification */
    line-height: 1.5;       /* better readability */
    word-wrap: break-word;  /* break long words if needed */
    white-space: normal;    /* allow wrapping */
}

/* Center the grid-wrapper container */
.grid-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    column-gap: 12px;
    row-gap: 40px;
    align-items: start;

    /* Center the whole container on the page */
    max-width: 950px;   /* optional: control width */
    margin: 40px auto 40px auto; /* margin for top, right, btm, left */
}

/* Image stays left-aligned */
.grid-image img {
    width: 300px;   /* fixed width */
    height: auto;   /* height adjusts to keep ratio */
    display: block;     /* ensures left alignment */
    text-align: left;   /* explicit left justification */
}

/* Text stays right-aligned */
.grid-text {
    font-family: "Open Sans", Tahoma, Verdana, Segoe, sans-serif;
    font-size: 18px;
    padding: 10px;
    text-align: left;  /* right justification */
}


.grid-text ul {
    margin: 5px 0 0 30px; /* indent bullet list */
    padding: 0;
}

.grid-text ul li::marker {
    content: "- "; /* replace default dot with dash */
}

/* ===================================================================
   SERVICES
=================================================================== */
.text-center {
    width: 60%;             /* limit text block to 90% of parent */
    margin: 0 auto 40px;         /* margin for top, right, btm, left */
    text-align: left;       /* left justification */
    line-height: 1.5;       /* better readability */
    word-wrap: break-word;  /* break long words if needed */
    white-space: normal;    /* allow wrapping */
}

.text-center ul {
    margin: 5px 0 0 30px; /* indent bullet list */
    padding: 0;
}

.text-center ul li::marker {
    content: "- "; /* replace default dot with dash */
}

/* ===================================================================
   CONTACT
=================================================================== */
.text-contact {
    max-width: 600px;
    margin: 0 auto 10px;         /* margin for top, right/left, btm */
    text-align: left;       /* left justification */
    line-height: 1.5;       /* better readability */
    word-wrap: break-word;  /* break long words if needed */
    white-space: normal;    /* allow wrapping */
    background: #eaf3ff;
    color: #1e4b7a;
    padding: 12px 16px;
    border-radius: 8px;
}

.email-disclaimer {
  max-width: 600px;
  margin: 0 auto;
  font-size: 12px;
color: #1e3a5f;
  background: #eef6ff;
  padding: 12px 16px;
  border-radius: 6px;
  border-top: 1px solid #e0e0e0;  
  line-height: 1.5;
  text-align: left; 

}

.contact-form {
  border: 1px solid black;
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 20px;
}

.contact-form label {
  display: block;
  text-align: left;
  margin-top: 12px;
  font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select {
  width: 100%;
  max-width: 100%;        /* never exceed the form border */
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* include padding in width calculation */
}

.contact-form textarea {
  width: 100%;            /* fill the form’s width */
  max-width: 100%;        /* never exceed the form border */
  height: 200px;          /* default height */
  resize: vertical;       /* allow only up/down resizing */
  padding: 10px;          /* space inside the box */
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* include padding in width calculation */
}


.contact-form input[type="file"] {
      display: block;       /* force each onto its own line */
  margin-top: 24px;
}

.contact-form button {
  margin-top: 16px;
      font-size: 18px;
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #005f8d;
}

/* Response message styles */
#response {
  margin-top: 16px;
  text-align: center;
}

#response.success {
  background-color: #d4edda; /* light green background */
  color: #155724;           /* dark green text */
  border: 1px solid #c3e6cb;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
}

#response.warning {
  background-color: #fff3cd; /* light yellow */
  color: #856404;            /* dark amber */
  border: 1px solid #ffeeba;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
}

#response.error {
  background-color: #f8d7da; /* light red background */
  color: #721c24;           /* dark red text */
  border: 1px solid #f5c6cb;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
}

#response.process {
  background-color: #dbe9f6; /* light red background */
  color: #1e3a5f;           /* dark red text */
  border: 1px solid #a9c4e8;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
}

.file-field {
  margin-bottom: 10px;
}

.error-msg {
  display: block;
  font-size: 0.9em;
  font-style: italic;
  color: red;
  margin-top: 4px;
}
.allowed-types {
    text-align: left; 
  font-size: 0.9em;
  font-style: italic;
  color: #555;       /* softer grey so it looks like a hint */
  margin-bottom: 8px;
}

/* =========================
   PUZZLE CAPTCHA
========================= */
.bar-stage {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 200px;
    margin-top: 10px;    
    border-radius: 12px;
    border: 2px solid #94a3b8;
    background: #e2e8f0;}

/* width 100% takes .bar-stage width of 400px */
.puzzle {
    position: relative;
    width: 100%;
    height: 110px;
}

/* MOVABLE LEFT PIECE */
.bar-left {
    position: absolute;
    top: 25px;
    left: 7.5%; /* 30px */
    width: 30%;  /* 120 px */
    height: 70px;

/* #1d4ed8 */
    background: #3B82F6;

    /* LEFT PIECE RIGHT EDGE is zig-zag tab */
    clip-path: polygon(
        0 0,
        80% 0,
        100% 50%,
        80% 100%,
        0 100%,
        0 0
    );

    transition: left 0.03s linear;
}

/* FIXED RIGHT PIECE */
.bar-right {
    position: absolute;
    top: 25px;
    left: 42.5%;  /* 170 px */
    width: 30%; /* 120 px */
    height: 70px;
    background: #CBD5E1;

    /* RIGHT PIECE LEFT EDGE is zig-zag socket */
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        0 100%,
        20% 50%,
        0 0
    );
}

.bar-left.locked {
    background: #10B981;
    box-shadow:
        0 0 8px rgba(16,185,129,.20),
        0 4px 14px rgba(16,185,129,.14);
}

.bar-right.locked {
    background: #A7F3D0; /* soft success hint */
}

.bar-slide {
    width: 100%;
    padding: 10px 0;
    display: flex;
    flex-direction: column;    
    align-items: flex-start; 

    gap: 6px;
}

#captcha-slider {
    width: 42.5%;
 /*      width: calc(100% - 60px);*/
/*    width: 120px; */
    margin-top: 15px;
    margin-left: 30px;
}

#captcha-status {
    margin-top: 10px;
        margin-left: 30px;
    font-weight: bold;
}

/* =========================
   PUZZLE CAPTCHA END
========================= */



 #progressBox {
    width: 100%;
    background: #eee;
    height: 22px;
    border-radius: 5px;
    margin: 15px auto 0 auto;
}

#progressBar {
    height: 22px;
    width: 0%;
    background: #607D8B;
    color: white;
    text-align: center;
    font-size: 12px;
    line-height: 22px;
    border-radius: 5px;
}

/* ===================================================================
   LOCATE US
=================================================================== */

/* Center the grid-wrapper container */
.grid-wrapper-loc {
    display: grid;
    grid-template-columns: 1.7fr 1fr; /* 1.7/2.7 = 63% = 0.63*950 = 598.5 px */
    column-gap: 12px;
    row-gap: 40px;
    align-items: start;

    /* Center the whole container on the page */
    max-width: 950px;   /* optional: control width */
    margin: 40px auto 40px auto; /* margin for top, right, btm, left */
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
} 

/* Text stays right-aligned */
.grid-text-loc {
    font-family: Verdana, "Open Sans", Tahoma, Segoe, sans-serif;
    font-size: 18px;
    padding: 10px;
    text-align: left;  /* right justification */
}



/* ===================================================================
   FOOTER
=================================================================== */
footer {
  background: #2e4f00;
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 0.1;  
  padding: 1em;
  
  display: flex;
  justify-content: space-between; /* logo left, text block right */
  align-items: center;
}

#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  border: 1px solid #ddd;
  background: rgba(60, 60, 60, 0.85);
  color: white;
  border: 1px solid rgba(255,255,255,0.08);

  padding: 8px 12px;
  cursor: pointer;
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

#backToTopBtn:hover {
 background: #8a8a8a;
}

#backToTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* ===================================================================
   Margin utilities
=================================================================== */
.ml-1 { margin-left: 1em; }
.ml-2 { margin-left: 2em; }
.ml-3 { margin-left: 3em; }
.ml-4 { margin-left: 4em; }
.mr-1 { margin-right: 1em; }
.mr-2 { margin-right: 2em; }
.mr-3 { margin-right: 3em; }
.mr-4 { margin-right: 4em; }

/* Padding utilities */
.pl-1 { padding-left: 1em; }
.pl-2 { padding-left: 2em; }
.pr-1 { padding-right: 1em; }
.pr-2 { padding-right: 2em; }

/* ===================================================================
   MEDIA - MOBILE PHONE
=================================================================== */

@media (max-width: 768px) {
    header {
    flex-direction: row;
        justify-content: center;
        text-align: center;
        text-align: center;
    }
    
    .header-text {
        text-align: center;       /* center text on mobile */
    }

    .desktop-nav {
        display: none;          /* hide desktop menu */
      }

    .mobile-nav {
        display: block;
        margin-bottom: 20px;
    }    

    /* ===================================================================
       HEADER
    =================================================================== */    
    .logo {
      width: 50%; 
    }
    .header-text .company-name {
      font-size: 1em;
    }


    /* ===================================================================
       HOME
    =================================================================== */
    #content img.home-image {
      max-width: 90%;   
    }

    #content {
      padding: 0 2em 0.4em 2em;
    }

    /* ===================================================================
       ABOUT
    =================================================================== */    
    .grid-wrapper {
    grid-template-columns: 1fr; /* change to 1 column */
    }
   

    /* ===================================================================
       LOCATE
    =================================================================== */    
    .grid-wrapper-loc {
    grid-template-columns:  1fr;    /* change to 1 column */
    }
    
}
