/*
  responsive.css
  ==============
  This file modernizes the original fixed-width TemplateMonster layout
  so it displays well on phones, tablets, and desktops.

  Notes:
  - Loaded AFTER the legacy reset/layout/style sheets so it can override them.
  - Keeps the original look/feel (colors, box styles) while removing
    fixed widths/floats that break on small screens.
*/

/* Better defaults */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

/* Fluid container */
.main {
  width: 100% !important;
/*  max-width: 952px; */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Header: stacked logo + nav */
header {
  height: auto !important;
  padding: 16px 6px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Replace the old background-image logo with accessible text */
#logo {
  background: none !important;
  width: auto !important;
  height: auto !important;
  text-indent: 0 !important;
  font: 28px "Times New Roman", Times, serif;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
  text-align: center;
}

/* Navigation: flex, no fixed widths */
header nav {
  width: 100%;
}

#menu {
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  background: none !important;
}

#menu li {
  float: none !important;
  background: none !important;
  padding: 0 !important;
}

#menu li a {
  width: auto !important;
  line-height: 1.2 !important;
  padding: 12px 14px;
  border-radius: 0px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* finger-friendly */
  background: rgba(255,255,255,0.04); 
}

#menu li a:hover,
#menu #menu_active a {
  background: rgba(255,255,255,0.18) !important;
}

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  display: none;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.2);
  color: #fff;
  padding: 12px 14px;
  font-size: 18px;
  border-radius: 0px;
  cursor: pointer;
  text-align: left;
}

/* Content padding on small screens */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Make the “card” content breathe on mobile */
  .box {
    padding: 18px 18px 16px 18px !important;
  }

  h2 {
    font-size: 22px;
    line-height: 28px;
    padding-bottom: 10px;
  }

  /* Mobile menu */
  .menu-toggle { display: block; }
  #menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  #menu.show { display: flex; }
  #menu li a {
    justify-content: flex-start;
  }

  /* Remove fixed column widths + floats */
  .col1, .col2, .col3, .cols,
  .left, .right,
  .pad_left1, .pad_left2, .pad_left3,
  .pad_right, .marg_right1 {
    float: none !important;
    width: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
  }

  /* Remove decorative vertical rules that depend on fixed widths */
  .box .line1, .box .line2,
  .line1, .line2, .line3 {
    background: none !important;
  }
}

/* Services page: turn the 3 UL “columns” into a wrapping flex row */
.wrapper.line1 {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.wrapper.line1 > ul {
  flex: 1 1 220px;
  min-width: 220px;
}

/* Google map embeds */
.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  #logo { max-width: 320px; margin: 0 auto; }
}
