/* =========================
   Reset & Base Styles
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
}
.content a {
  position: relative;
  color: #f39c12;
  text-decoration: none;
}

.content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #f39c12;
  transition: width 0.3s ease;
}

.content a:hover::after,
a:focus::after {
  width: 100%;
}


/* =========================
   Header & Navigation
   ========================= */
.site-header {
  padding: 10px 20px;
  background: linear-gradient(90deg, #0a3d62, #07406e);
  color: #fff;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid #f39c12;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.site-header .logo {
  position: absolute; 
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}




/* Logo container */
.site-header .logo .brand {
  display: flex;
  align-items: center;
  text-decoration: none; /* no underline */
  color: inherit;        /* inherit header color */
}

.site-header .logo:hover {
  text-decoration: none; /* prevent underline on hover */
}

/* Logo image */
.site-header .logo img {
  height: 40px;       /* compact logo size */
  margin-right: 8px;  /* spacing between logo and text */
  display: block;
}

/* Logo text */
.site-header .logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;          /* remove default h1 margins */
  line-height: 1;     /* keep text snug */
  color: #fff;        /* brand text white */
}

/* Tagline */
.site-header .tagline {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Navigation list */
.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

/* Navigation links */
.site-header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

/* Hover underline effect only for nav links */
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #f39c12;
  transition: width 0.3s ease;
}

.site-header nav a:hover::after,
.site-header nav a.active::after {
  width: 100%;
}

.site-header .phone a {
  font-size: 1rem;
  font-weight: bold;
  color: #f39c12;
  text-decoration: none;
}

.site-header .phone a:hover {
  text-decoration: underline;
}

/* Nav Button */
.btn-nav {
  background: #f39c12;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-nav:hover {
  background: #d35400;
}

/* =========================
   Hero Section
   ========================= */
.hero {
  position: relative;
  text-align: center;
  background: #eee;
}

.hero img {
  width: 100%;
  height: auto;
  max-height: 500px; /* optional cap */
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 61, 98, 0.70);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 90%;
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-text p {
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background: #f39c12;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #d35400;
}

/* =========================
   Content Sections
   ========================= */
.content {
  flex: 1; /* ensures footer stays at bottom */
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}


.services,
.about,
.location,
.contact,
.directions,
.intro {
  margin-bottom: 2rem;
}
.contact .map {
  width: 100% !important;
  max-width: 1100px !important;
}

.contact {
  width: 100%;          /* always fill the .content width */
  max-width: 1100px;    /* match .content cap */
  margin: 0 auto 2rem;
  text-align: left;
}

.content img {
  display: block;       /* ensures it sits on its own line */
  max-width: 600px;
  margin: 1.5rem auto;  /* centers horizontally and adds spacing */
  height: auto;
  border-radius: 8px;      /* optional: rounded corners */
}



.services h2,
.about h2,
.location h2,
.contact h2,
.directions h2,
.intro h2 {
  color: #0a3d62;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f39c12;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.services h3,
.about h3,
.location h3,
.contact h3,
.directions h3,
.intro h3 {
  color: #0a3d62;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f39c12;
  display: inline-block;
  padding-bottom: 0.3rem;
}


.services ul {
  list-style: none;
  padding-left: 1rem;
}

.services li {
  margin-bottom: 0.5rem;
}


.about p,
.location p,
.directions p,
.contact p,
.intro p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.about img {
  display: block;
  margin: 0 0 1rem 0; /* no auto centering */
  max-width: 400px;
  border-radius: 6px;
}


.map {
  width: 100%;
  margin: 0 auto 2rem;
  text-align: center;
}

.map iframe {
  display: block;
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin: 0 auto;
  border: 2px solid #eee;       /* border on iframe */
  border-radius: 8px;
}


.directions {
  margin-top: 2rem;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  background: #0a3d62;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  margin-top: auto; /* pushes footer to bottom */
}

.site-footer p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none; /* optional: removes underline */
}

.site-footer a:hover {
  color: #f39c12; /* optional: adds hover color for contrast */
}

.menu-toggle {
	display: none;      /* hidden by default */
	font-size: 1.5rem;
	cursor: pointer;
	color: #fff;
  }
  .contact-form {
  max-width: 600px;
  margin: 1.5rem auto;
  background: #fff;
  padding: 1rem;                 /* tighter inner padding */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  line-height: 1.3;              /* override global line-height */
}

.contact-form div {
  margin-bottom: 0;              /* no extra gap from wrapper */
}

.contact-form label {
  display: block;
  font-weight: 700;
  color: #0a3d62;
  margin-bottom: .25rem;         /* tight label-to-input spacing */
  margin-top: .5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.45rem 0.6rem;       /* compact input height */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;        /* single consistent gap after each field */
  margin-top: 0.25rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='20' viewBox='0 0 24 24' width='20'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 0.8rem;
  cursor: pointer;
}

.contact-form button.btn {
  background: #f39c12;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button.btn:hover {
  background: #d35400;
}



select {
  appearance: none;              /* remove default arrow styling */
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #333;
  width: 100%;
  max-width: 300px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus {
  border-color: #f39c12;         /* gold accent */
  box-shadow: 0 0 0 3px rgba(243,156,18,0.3);
  outline: none;
}

select option {
  padding: 0.5rem;
}

label {
  display: block;          /* puts label above the input */
  margin-bottom: 0.25rem;  /* tighter spacing between label and input */
  font-weight: 700;
  color: #0a3d62;          /* brand navy */
}

/* Contact Form Status Messages */
#formStatus {
  margin-top: 1rem;
  font-weight: 700;
  text-align: center;   /* center horizontally */
  color: green;         /* default success color */
  transition: opacity 0.5s ease; /* smooth fade */
}

#formStatus.error {
  color: red;           /* error messages */
}


/* =========================
   Responsive Design
   ========================= */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;     /* stack items vertically */
    align-items: center;        /* center everything horizontally */
    position: relative;
  }
	
  .site-header .logo {
    position: static;           /* no absolute positioning on mobile */
    transform: none;
    margin-bottom: 0.25rem;      /* spacing below logo */
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .site-header .logo h1 {
    font-size: 1rem;
  }	
  

  .menu-toggle {
    display: block;             /* show hamburger on mobile */
    margin: 0;           /* spacing above/below */
    font-size: 1.3rem;
	line-height: 1;          /* prevents parent from stretching the icon */
	padding: 0;
    cursor: pointer;
    color: #fff;
  }

  .site-header nav ul {
    display: none;              /* hide menu by default */
    flex-direction: column;     /* stack links vertically */
    background: #0a3d62;
    padding: 1rem;
    width: 100%;
    text-align: center;         /* center links */
  }

  .site-header nav ul.show {
    display: flex;              /* show when toggled */
  }

  .hero {
    text-align: left;
  }

  .hero img {
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }

  .hero-text {
    position: static;
    transform: none;
    margin: 1rem 0;
    padding: 1rem;
    max-width: 100%;
    background: #0a3d62;
    border-radius: 0;
    text-align: left;
  }

  .hero-text h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .hero-text p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .content {
    max-width: 100%;
    padding: 0 0.75rem;
  }

  .content img,
  .about img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
  }
}

