/* ROD WHITMAN GOLF COURSE DESIGN — Static Migration
 * Faithful recreation of the original ColdFusion site design.
 * Navigation uses the original CSS sprite (navigation.png) with
 * JS-driven fade hover effects matching the original main.js behavior.
 * Semi-transparent overlays use the original tiled PNG assets. */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: none; overflow-y: scroll; }
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6,
pre, code, form, fieldset, legend, input, button, textarea, p,
blockquote, th, td { margin: 0; padding: 0; }
img { border: 0; }
ul { list-style: none; }
em { font-style: italic; }
strong, dt { font-weight: bold; }
a:link, a:visited { color: #6A8812; outline: none; }
a:hover, a:active  { color: #97AF69; outline: none; text-decoration: none; }

/* === Base typography (Yahoo UI baseline: 13px) === */
body {
  font: 13px/1.231 arial, helvetica, clean, sans-serif;
  color: #f5e5e2;
  background: #000 url(/img/bg/wash/index.jpg) fixed no-repeat 50% 0;
  margin: 0;
  padding: 0;
}
body.page-rod         { background-image: url(/img/bg/wash/media.jpg); }
body.page-philosophy  { background-image: url(/img/bg/wash/philosophy.jpg); }
body.page-courses     { background-image: url(/img/bg/wash/courses.jpg); }
body.page-media       { background-image: url(/img/bg/wash/associates.jpg); }
body.page-contact     { background-image: url(/img/bg/wash/contact.jpg); }
body.page-gallery     { background-image: url(/img/bg/wash/gallery.jpg); }

h1 { font-size: 138.5%; font-weight: bold; margin: 1em 0; }
h2 {
  color: #97AF69;
  font-size: 167%;
  font-weight: bold;
  margin: 0 0 24px 0;
}
h3 { font-size: 108%; margin: 0; font-weight: bold; }
h4 { clear: both; color: #97AF69; font-weight: bold; }
hr { border: none; border-bottom: 1px solid #fff; }
p { margin-bottom: 1em; }

/* === OOCSS Grid helpers (from original) === */
.line, .lastUnit { overflow: hidden; }
.unit { float: left; }
.size1of1 { float: none; }
.size1of2 { width: 50%; }
.lastUnit { float: none; width: auto; }

/* === Layout === */
#container {
  background-color: transparent;
  margin: 0 auto 0;
}

/* === Logo === */
#logo {
  background: transparent url(/img/bg/opacity/logo.png) repeat 0 0;
  color: transparent;
  height: 130px;
  padding: 15px 0 0 0;
}
#logo h1 {
  margin: 0 auto;
  width: 450px;
}
#logo a {
  background: transparent url(/img/logos/whitmanHeader2.png) no-repeat 0 0;
  display: block;
  height: 120px;
  width: 450px;
}
#logo span { display: none; }

/* === Header === */
#header {
  position: relative;
  width: 100%;
}
#header .navigation {
  background: transparent url(/img/bg/opacity/bars.png) repeat-x 0 -66px;
  height: 33px;
  margin-top: 0px;
}
#header .navigation ul.horizontal {
  margin: 0 auto;
  overflow: auto;
  padding-left: 67px;
  width: 680px;
}
#header .navigation ul.horizontal li {
  float: left;
  list-style: none;
  font-size: 123.1%;
}
/* All nav links use the sprite */
#header .navigation ul.horizontal li a,
#header .navigation ul.horizontal li a .hover {
  background: url(/img/navigation.png) no-repeat 0 0;
  display: block;
  height: 33px;
  position: relative;
}
#header .navigation ul.horizontal li a *,
#header .navigation ul.horizontal li a .hover * {
  display: none;
}

/* Individual nav item sprite positions & widths */
#header .navigation ul.horizontal li a.rod {
  background-position: 0px 0; width: 121px;
}
#header .navigation ul.horizontal li > a.rod.current {
  background-position: 0px -66px;
}
#header .navigation ul.horizontal li a.rod .hover,
#header .navigation ul.horizontal li .highlight a.rod:hover {
  background-position: 0px -33px;
}

#header .navigation ul.horizontal li a.philosophy {
  background-position: -121px 0; width: 110px;
}
#header .navigation ul.horizontal li > a.philosophy.current {
  background-position: -121px -66px;
}
#header .navigation ul.horizontal li a.philosophy .hover,
#header .navigation ul.horizontal li .highlight a.philosophy:hover {
  background-position: -121px -33px;
}

#header .navigation ul.horizontal li a.courses {
  background-position: -231px 0; width: 89px;
}
#header .navigation ul.horizontal li > a.courses.current {
  background-position: -231px -66px;
}
#header .navigation ul.horizontal li a.courses .hover,
#header .navigation ul.horizontal li .highlight a.courses:hover {
  background-position: -231px -33px;
}

#header .navigation ul.horizontal li a.mmedia {
  background-position: -424px 0; width: 79px;
}
#header .navigation ul.horizontal li > a.mmedia.current {
  background-position: -424px -66px;
}
#header .navigation ul.horizontal li a.mmedia .hover,
#header .navigation ul.horizontal li .highlight a.mmedia:hover {
  background-position: -424px -33px;
}

#header .navigation ul.horizontal li a.contact {
  background-position: -503px 0; width: 88px;
}
#header .navigation ul.horizontal li > a.contact.current {
  background-position: -503px -66px;
}
#header .navigation ul.horizontal li a.contact .hover,
#header .navigation ul.horizontal li .highlight a.contact:hover {
  background-position: -503px -33px;
}

#header .navigation ul.horizontal li a.gallery {
  background-position: -591px 0; width: 85px;
}
#header .navigation ul.horizontal li > a.gallery.current {
  background-position: -591px -66px;
}
#header .navigation ul.horizontal li a.gallery .hover,
#header .navigation ul.horizontal li .highlight a.gallery:hover {
  background-position: -591px -33px;
}

/* === Content wrap === */
#contentWrap {
  margin: 18px auto 0;
  position: relative;
  width: 745px;
}

/* === Main content area === */
#main {
  position: relative;
}
#main .content {
  background: transparent url(/img/bg/opacity/main-3.png) repeat 0 0;
  color: #f5e5e2;
  font-size: 108%;
  line-height: 1.95;
  padding: 40px 86px 45px 86px;
}

/* === Footer === */
#footer {
  font-size: 85%;
  margin: 10px 0 0 0;
  color: #999;
  text-align: right;
}
#footer hr {
  margin: 1.25em 20px 1.25em 0px;
}
#footer .navigation {
  background: transparent url(/img/bg/opacity/bars.png) repeat-x 0 -66px;
  height: 27px;
  padding-top: 6px;
  margin-top: 10px;
}
#footer .navigation ul {
  display: table;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  width: 600px;
}
#footer .navigation ul.horizontal {
  height: 30px;
}
#footer .navigation ul.horizontal li {
  float: left;
  list-style: none;
  font-weight: bold;
  margin: 0 5px;
}
.copyright {
  font-weight: bold;
  margin: 1em auto;
  padding-right: 20px;
  width: 727px;
}

/* === Quote === */
.quote {
  color: #CCC;
  font-size: 93%;
  font-weight: bold;
  line-height: 1.3;
  text-indent: -0.5em;
}
.quoteRef {
  color: #999;
  font-size: 85%;
}

/* === Courses page === */
.course {
  border-bottom: 1px solid #666;
  clear: both;
  line-height: 1.4;
  margin-bottom: 1em;
  margin-top: 1em;
  overflow: auto;
}
.course .address {
  float: left;
  font-size: 93%;
  font-weight: bold;
  width: 400px;
}
.course .logo {
  float: left;
  text-align: center;
  width: 80px;
}
.course .logo img {
  max-width: 80px;
  height: auto;
}
.course h3, .course .title {
  color: #393;
  font-size: 131%;
  font-weight: normal;
}

/* === Gallery page === */
.thumbs {
  clear: both;
  overflow: auto;
  margin-bottom: 2em;
  max-width: 572px;
}
.thumbs .thumb {
  border: 1px solid #CCC;
  float: left;
  margin: 5px;
}
.thumbs .thumb img {
  display: block;
  width: 100px;
  height: 80px;
}

/* === Media page === */
.media-list ul {
  margin-left: 2em;
}
.media-list li {
  list-style: disc outside;
  margin-bottom: 0.3em;
  line-height: 1.4;
}

/* === Contact page === */
.tight {
  line-height: 1.4;
}

/* === Column helpers === */
.size1of2 { padding-right: 20px; }
.size2of2 { padding-left: 0.5em; }

.stroke {
  border: 1px solid #CCC;
}

/* === Home page — WAC modal === */
#wac-modal {
  position: fixed;
  font-family: Arial, Helvetica, sans-serif;
  top: 0; left: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  height: 100%; width: 100%;
}
#wac-modal.hidden { display: none; }
.wac-modal-content {
  position: absolute;
  text-align: center;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #222;
  width: 80%;
  padding: 20px;
  color: #999;
  max-width: 600px;
}
.wac-modal-content img {
  max-width: 500px;
  width: 100%;
}
.wac-modal-content p {
  text-align: left;
}
.wac-modal-content button {
  width: 100px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
  background: #444;
  color: #fff;
  border: 1px solid #666;
}
.wac-modal-content button:hover {
  background: #555;
}

/* === Toolkit (opacity controls) === */
#toolkit {
  color: #FFF;
  cursor: pointer;
  display: block !important;
  margin: 0;
  position: absolute;
  right: 0;
  top: 0;
}
#toolkit li {
  background: transparent url(/img/toolkit.png) no-repeat -18px 0;
  display: block;
  float: left;
  list-style: none;
  height: 36px;
  width: 36px;
}
#toolkit li.lighter { background-position: 0 0; }
#toolkit li.darker  { background-position: -36px 0; }
#toolkit li.hider   { background-position: -72px 0; }

/* === Responsive enhancements === */
@media (max-width: 800px) {
  #contentWrap {
    width: auto;
    margin: 18px 20px 0;
  }
  #main .content {
    padding: 25px 30px;
  }
  .copyright {
    width: auto;
    text-align: center;
    padding: 0 20px;
  }
  #header .navigation ul.horizontal {
    width: auto;
    padding-left: 0;
    display: flex;
    justify-content: center;
  }
  #footer .navigation ul {
    width: auto;
  }
  .course .address {
    width: auto;
    float: none;
    margin-left: 90px;
  }
}

@media (max-width: 600px) {
  #logo {
    height: auto;
    padding: 10px 20px;
  }
  #logo a {
    width: 100%;
    max-width: 450px;
    height: 0;
    padding-bottom: 24.4%; /* aspect ratio 110/450 */
    background-size: contain;
  }
  #header .navigation {
    height: auto;
    padding: 4px 0;
  }
  #header .navigation ul.horizontal {
    flex-wrap: wrap;
    height: auto;
  }
  #main .content {
    padding: 20px 15px;
  }
  .size1of2, .size2of2 {
    width: 100%;
    float: none;
    padding: 0;
  }
  .lastUnit {
    float: none;
  }
  .course .logo {
    float: none;
    margin-bottom: 10px;
  }
  .course .address {
    margin-left: 0;
  }
  .thumbs .thumb img {
    width: 70px;
    height: 56px;
  }
}
