/* Starlight Professional Services, P.C.
   Faithful static recreation of the original WordPress site
   (theme: "Blue Peace" by Mohsen Moridi), rebuilt as hand-written CSS.
   Layout, colors, and type match the old rendered site:
   - woodgrain page background (bg.jpg), 980px white card with shadow
   - 980x240 SPS banner, black tab nav overlapping its bottom edge
   - Cuprum headings, Arial 14px/21px body, #0093f0 links */

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { overflow-y: scroll; }

body {
  margin: 0;
  font: 14px/21px Arial, Helvetica, sans-serif;
  color: #333;
  background: #fff url("../images/bg.jpg") repeat left top;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cuprum', sans-serif;
  clear: both;
}

a {
  text-decoration: none;
  color: #0093f0;
  transition: all 0.5s ease-in-out;
}
a:hover { color: #023976; }

img { max-width: 100%; height: auto; border: 0; }

/* ---------- Page shell ---------- */

#page {
  width: 980px;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  min-height: 300px;
  margin: 20px auto 0;
  padding-bottom: 50px;
  overflow: hidden;
}

/* ---------- Header ---------- */

#header {
  min-height: 240px;
  display: block;
  position: relative;
}

.headerimg { display: block; width: 100%; height: auto; }

/* ---------- Navigation (black tabs over banner bottom) ---------- */

#nav-head {
  display: block;
  z-index: 20;
  position: relative;
  top: -40px;
}

.nav-toggle,
.nav-toggleof {
  display: none;
  background-color: #000;
  color: #aaa;
  text-align: center;
  padding: 10px;
  font-weight: bold;
}
.nav-toggle:hover,
.nav-toggleof:hover { color: #fff; }

#nav-head ul.menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  font-size: 13px;
  font-weight: lighter;
  text-shadow: 0 0 1px #fff;
  line-height: 14px;
  width: 96%;
  padding: 0 2%;
  background: url("../images/menoshadow.png") top;
}

#nav-head ul.menu li {
  padding: 0;
  margin: 3px 2px 0;
}

#nav-head ul.menu a {
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  display: inline-block;
  padding: 10px;
  transition: all 0.25s ease-in-out;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

#nav-head ul.menu li a:hover {
  color: #fff;
  background: #00a8e6;
  text-shadow: 0 0 1px #fff;
}

#nav-head ul.menu li.current-menu-item > a,
#nav-head ul.menu li.current-menu-item > a:hover {
  color: #09f;
  background: #fff;
  box-shadow: 0 -3px 3px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

/* ---------- Content column (original: 700px, empty 200px sidebar right) ---------- */

.contentbox {
  width: 700px;
  max-width: 100%;
  padding: 0 10px 10px 20px;
}

.loophead { margin-bottom: 20px; }

h2.boxh3 { font-size: 20px; margin: 0; }

.entry { line-height: 1.7em; }

.entry p { margin: 10px 0; }

.entry h1 {
  font-size: 21px;
  line-height: 1em;
  margin: 1.714285714rem 0;
}

.entry img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.entry img.plain { border-radius: 0; box-shadow: none; }

.post { margin-bottom: 50px; }

/* Site-name lead-in on the home page (was an inline span on the old site) */
.sitename {
  font-family: 'Cuprum', sans-serif;
  font-size: 20px;
  font-weight: bold;
}

/* Centered service lists (the old site used centered lines, no bullets) */
.service-list {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  text-align: center;
}

/* Centered blocks on About / Contact pages */
.centered { text-align: center; }

.affiliation-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin: 20px 0 30px;
}
.affiliation-logos img { width: auto; height: 100px; }

/* Square "Pay now" button, copied from the old contact page's inline styles */
.paynow {
  display: inline-block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 48px;
  height: 48px;
  padding-left: 48px;
  padding-right: 48px;
  color: #fff;
  min-width: 165px;
  background-color: #000;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}
.paynow:hover { color: #fff; }

.map-embed { text-align: center; padding-top: 10px; }
.map-embed iframe { max-width: 100%; border: 0; }

/* ---------- Footer (outside the page card, small grey, centered) ---------- */

#footer {
  display: block;
  font-size: 15px;
  line-height: 2;
  text-align: center;
  width: 960px;
  max-width: 100%;
  margin: 0 auto 15px;
  padding: 10px 0 30px;
  color: #999;
}
#footer a { color: #000; }

/* ---------- Responsive (mirrors the original media-queries.css) ---------- */

@media screen and (max-width: 980px) {
  #page { width: 95%; }
  #footer { width: 80%; padding: 0 5% 30px; }
  .contentbox { width: 90%; padding: 3% 2% 3% 4%; }
}

@media screen and (max-width: 650px) {
  #header {
    height: auto;
    background: #eee;
  }
  #nav-head { position: static; }
  .contentbox {
    width: auto;
    margin: 20px 0;
  }
}

@media screen and (max-width: 480px) {
  #header { background: #e4e4e4; }
  #nav-head { position: relative; }

  /* CSS-only menu toggle, as on the original site (no JavaScript) */
  .nav-toggle { display: block; }

  #nav-head ul.menu {
    display: block;
    width: 100%;
    background: none;
    padding: 0;
    text-align: center;
  }
  #nav-head ul.menu li {
    display: block;
    margin: 0;
  }
  #nav-head ul.menu a {
    display: block;
    width: 100%;
    border-radius: 0;
    transition: none;
    overflow: hidden;
    height: 0;
    line-height: 0;
    padding: 0;
  }

  #nav-head:target { background: #333; }
  #nav-head:target ul.menu a {
    height: auto;
    line-height: 14px;
    padding: 15px;
  }
  #nav-head:target ul.menu li a:hover { background: #000; }
  #nav-head:target .nav-toggleof { display: block; }
  #nav-head:target .nav-toggle { display: none; }
}
