/* =========================================================================
   wollardlegal.com — faithful reproduction of the live design
   (lawofficeofbillwollard WP theme), with modern responsive code.
   All colors, sizes, and font-families lifted from the live theme's
   style.css. Layout converted from position:absolute fixed 1024px stage
   to a responsive grid.
   ========================================================================= */

:root {
  --color-body-bg: #c2bcb3;          /* outer page bg (warm medium gray) */
  --color-container-bg: #eeebe8;     /* main_container cream */
  --color-content-bg: #F9F9F9;       /* content card */
  --color-sidebar-bg: #EDEDED;       /* sidebar */
  --color-text: #414141;             /* body text */
  --color-link: #4f4439;             /* link */
  --color-link-hover: #2F1237;       /* link hover plum */
  --color-tagline: #E6E2DE;          /* tagline cream */
  --color-h2: #4f4439;               /* heading dark warm brown */
  --color-footer-mid: #A79E95;       /* footer band */
  --color-copyright-bg: #D5D5D5;     /* copyright bar */
  --color-copyright-border: #C0BFBD;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Tahoma, Helvetica, Arial, sans-serif;

  --container-max: 1024px;
  --content-w: 760px;
  --sidebar-w: 264px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, pre, address {
  margin: 0; padding: 0;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font: inherit; color: inherit; background: transparent; border: 0;
}
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* Base */
html { -webkit-text-size-adjust: 100%; height: 100%; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 24px;
  color: var(--color-text);
  background-color: var(--color-body-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#main_container {
  width: 100%;
  margin: 0 auto;
  background: var(--color-container-bg) url('/textures/main_bg.gif') 0 300px repeat-x;
  min-height: 100vh;
  position: relative;
}

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

/* Theme: bg #9C938C with header_texture_default.jpg + 10px white border-bottom */
#header_container {
  background: #9C938C url('/textures/header_texture_default.jpg') center top repeat-x;
  border-bottom: 10px solid #FFFFFF;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

#header_container_internal {
  background: transparent url('/textures/header_bg_gradient.png') center top repeat-x;
}

#header {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  height: 290px;
  padding: 0;
}

/* Logotype: 42px high, bottom: 222 in 290 header → top: 26 */
#logotype {
  position: absolute;
  top: 26px;
  left: 0;
  height: 42px;
  width: 510px;
  z-index: 10;
}

#logotype #title {
  display: inline-block;
  height: 42px;
  line-height: 42px;
}

#logotype img {
  height: 42px;
  width: auto;
  display: block;
}

/* Navigation: top-right (same row band as logo) */
#navigation {
  position: absolute;
  top: 0;
  right: 0;
  height: 48px;
  z-index: 10;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 48px;
  justify-content: flex-end;
}

.nav-item {
  position: relative;
  height: 48px;
  background: transparent;
}

.nav-item:first-child {
  padding-left: 60px;
  background: transparent url('/textures/menu/navi_bg_left_60.png') left top no-repeat;
}

.nav-item:last-child {
  padding-right: 60px;
  background: transparent url('/textures/menu/navi_bg_right_60.png') right top no-repeat;
}

.nav-link, .nav-link--label {
  color: #000;
  font-family: "Times New Roman", "Minion Pro", Times, serif;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  line-height: 48px;
  text-shadow: 0 1px 0 #DDD2C7, 0 0 16px #FFFFFF;
  background: transparent url('/textures/menu/navi_bg_with_left_marker.png') left top no-repeat;
  padding: 0 12px 10px;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.nav-item:first-child .nav-link,
.nav-item:first-child .nav-link--label {
  background: transparent url('/textures/menu/navi_bg_with_left_marker.png') right top no-repeat;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active,
.nav-item.is-active > .nav-link {
  color: #2F1237;
}

.nav-sub {
  display: none;
  position: absolute;
  top: 47px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(185, 178, 173, 0.90);
  padding: 0;
  min-width: 200px;
  z-index: 99;
  border-radius: 0 0 5px 5px;
  list-style: none;
}

.nav-item.has-children:hover > .nav-sub,
.nav-item.has-children:focus-within > .nav-sub,
.nav-item.is-expanded > .nav-sub { display: block; }

.nav-sub li {
  display: block;
  margin: 0;
}

.nav-sub-link {
  display: block;
  padding: 5px 15px;
  color: #000;
  font-family: "Times New Roman", "Minion Pro", Times, serif;
  font-size: 14px;
  font-weight: normal;
  line-height: 24px;
  text-shadow: 0 1px 0 #DDD2C7, 0 0 10px #FFFFFF;
  text-decoration: none;
}

.nav-sub li:first-child .nav-sub-link {
  padding-top: 8px;
}

.nav-sub li:last-child .nav-sub-link {
  padding-bottom: 7px;
  border-radius: 0 0 5px 5px;
}

.nav-sub-link:hover,
.nav-sub-link:focus-visible,
.nav-sub-link.is-active {
  background-color: rgba(183, 175, 170, 0.90);
  color: #2F1237;
}

/* Picture frame: 510×220 white card with shadow at bottom-left of header */
#picture_frame {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 510px;
  height: 220px;
  background-color: #FFFFFF;
  box-shadow: 5px 5px 7px #827A71;
  text-align: center;
  z-index: 2;
}

#picture_frame img {
  margin: 10px auto 0;
  display: block;
  width: 486px;
  height: auto;
  border: 0;
}

/* Tagline: 500×138 at bottom: 41px right: 0 */
#tagline {
  position: absolute;
  bottom: 41px;
  right: 0;
  width: 500px;
  height: 138px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tagline-line {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 46px;
  font-weight: bold;
  color: var(--color-tagline);
  text-shadow: 0 0 16px #2F1237, 0 0 4px #5C544D;
}

.tagline-line--top { text-align: center; }
.tagline-line--mid { text-align: left; padding-left: 50px; }
.tagline-line--bot { text-align: right; }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 250;
  background: rgba(43, 38, 32, 0.7);
  border-radius: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
}

/* Mobile nav drawer (off-canvas slide from right) */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(320px, 85vw);
  background: #1f1c18;
  box-shadow: -6px 0 20px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 250ms ease;
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 190;
}

body.mobile-nav-open .mobile-nav { transform: translateX(0); }
body.mobile-nav-open .mobile-nav-backdrop { display: block; }

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__title {
  color: #f5ecd9;
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
}

.mobile-nav__close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-nav__close svg { width: 20px; height: 20px; }

.mobile-nav__list { padding: 8px 0; }

.mobile-nav__item { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

.mobile-nav__link, .mobile-nav__link--label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 18px;
  color: #f5ecd9;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.mobile-nav__link.is-active { color: #fff; }

.mobile-nav__caret {
  width: 16px;
  height: 16px;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.mobile-nav__item.is-expanded .mobile-nav__caret { transform: rotate(180deg); }

.mobile-nav__sub {
  display: none;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 0 8px;
}

.mobile-nav__item.is-expanded .mobile-nav__sub { display: block; }

.mobile-nav__sub-link {
  display: block;
  padding: 10px 18px 10px 34px;
  color: #c9bfb1;
  font-size: 14px;
  text-decoration: none;
}

.mobile-nav__sub-link:hover, .mobile-nav__sub-item.is-active .mobile-nav__sub-link {
  color: #fff;
}

/* ---------- Wrapper / Content / Sidebar ---------- */

#wrapper {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto 20px;
  background: #EDEDED url('/textures/wrapper_bg.png') center bottom no-repeat;
  border: 1px solid #DCDAD9;
  border-radius: 0 0 3px 3px;
  position: relative;
  overflow: hidden;
}

#wrapper_top {
  height: 24px;
  width: 100%;
  margin: 0;
  background: url('/textures/wrapper_bg.gif') center top repeat-x;
  position: relative;
  clear: both;
}

.wrapper-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 30px;
  padding: 0 0 30px;
  align-items: start;
}

#wrapper_top { display: none; }

#content {
  background: var(--color-content-bg) url('/textures/content_top_bg.png') center top no-repeat;
  padding: 30px 36px;
  margin-top: 0;
  min-height: 220px;
  margin-bottom: 60px;
}

#sidebar {
  background: var(--color-sidebar-bg) url('/textures/sidebar_top_bg.png') center top no-repeat;
  padding: 18px 15px;
  min-height: 220px;
  margin-bottom: 60px;
}

#sidebar, #sidebar * {
  font-family: Tahoma, sans-serif;
  font-size: 15px;
  line-height: 20px;
  color: #717171;
}

/* ---------- Content typography ---------- */

#content, #content * {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 24px;
  color: var(--color-text);
}

#content h1 {
  font-size: 20px;
  color: var(--color-text);
  font-weight: bold;
  margin: 0 0 18px;
  font-family: var(--font-body);
  line-height: 1.3;
}

#content h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: normal;
  color: var(--color-h2);
  display: inline-block;
  padding: 0 50px 14px 0;
  margin: 0 0 25px;
  background: url('/textures/h2_border.gif') left bottom repeat-x;
  line-height: 1.2;
}

#content h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: bold;
  text-decoration: underline;
  color: var(--color-text);
  margin: 22px 0 12px;
}

#content h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: bold;
  margin: 18px 0 8px;
}

#content p { margin: 0 0 14px; }

#content a {
  color: var(--color-link);
  text-decoration: underline;
}

#content a:hover { color: var(--color-link-hover); }

#content ul, #content ol { margin: 0 0 14px 24px; }
#content ul li { list-style: disc; margin-bottom: 4px; }
#content ol li { list-style: decimal; margin-bottom: 4px; }

#content strong { font-weight: bold; color: #2a2418; }
#content em { font-style: italic; }

/* WP image alignment */
#content img { max-width: 100%; height: auto; }
#content .alignright { float: right; margin: 5px 0 15px 20px; max-width: 50%; }
#content .alignleft { float: left; margin: 5px 20px 15px 0; max-width: 50%; }
#content .aligncenter { display: block; margin: 18px auto; max-width: 100%; }

#content p[style*="text-align: center"] { text-align: center; }
#content p[style*="text-align: justify"] { text-align: justify; }

/* ---------- Sidebar ---------- */

#sidebar h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: normal;
  font-style: normal;
  color: var(--color-h2);
  background: url('/textures/h2_border.gif') left bottom repeat-x;
  padding-bottom: 10px;
  margin: 20px 0;
  display: block;
  width: auto;
  line-height: 1.2;
}

#sidebar :first-child h2 { margin-top: 0; }

#sidebar .widget { margin: 0 0 14px; }

#sidebar a {
  color: #717171;
  font-weight: bold;
  padding-left: 10px;
  text-decoration: none;
}

#sidebar a:hover {
  text-decoration: underline;
  color: #83653A;
}

/* ---------- Footer (two bands: copyright + sitemap) ---------- */

#footer {
  background-color: var(--color-footer-mid);
  position: relative;
  width: 100%;
  margin-top: 0;
}

#footer .footer-inner { display: contents; }

#copyright {
  background-color: var(--color-copyright-bg);
  border-top: 1px solid var(--color-copyright-border);
  height: 24px;
  text-align: center;
  font-size: 12px;
  line-height: 24px;
  color: #555;
  padding: 0 20px;
  font-family: var(--font-body);
}

#copyright a {
  color: #555;
  text-decoration: none;
}

#copyright a:hover { color: var(--color-link-hover); }

#sitemap {
  background: var(--color-footer-mid) url('/textures/sitemap_bg.gif') center bottom repeat-x;
  height: 49px;
  text-align: center;
  padding: 0 14px;
}

.footer-menu {
  display: inline-block;
  padding: 8px 0;
  margin: 0;
  list-style: none;
}

.footer-menu li {
  display: inline-block;
  background: url('/textures/sitemap_spacer.gif') 0 50% no-repeat;
  padding: 0 7px 0 13px;
  height: 32px;
}

.footer-menu li:first-child {
  background: none;
  padding-left: 0;
}

.footer-menu a {
  font-size: 13px;
  line-height: 32px;
  color: #DDDDDD;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: normal;
  padding: 0 7px 0 13px;
}

.footer-menu a:hover { color: #2F1237; }

.clear { clear: both; }
.sticky_footer { display: none; }

/* ---------- Responsive ---------- */

/* Small desktop / tablet — shrink the fixed positions */
@media (max-width: 1080px) {
  #header { padding: 0 18px; }
  #picture_frame { left: 18px; }
  #tagline { right: 18px; }
  #logotype { left: 18px; }
  #navigation { right: 18px; }
}

@media (max-width: 1000px) {
  #header { height: auto; padding-bottom: 16px; }

  #picture_frame {
    position: relative;
    top: auto; left: auto; bottom: auto; right: auto;
    margin: 20px auto 0;
    width: 100%;
    max-width: 510px;
    height: auto;
    background: transparent;
    box-shadow: none;
  }

  #picture_frame img {
    width: 100%;
    max-width: 486px;
    height: auto;
    margin: 0 auto;
  }

  #tagline {
    position: relative;
    top: auto; right: auto; bottom: auto; left: auto;
    width: 100%;
    height: auto;
    margin: 18px 0 0;
    align-items: center;
    display: block;
  }

  .tagline-line {
    text-align: center !important;
    padding: 0 !important;
    font-size: 26px;
    line-height: 36px;
  }
}

@media (max-width: 900px) {
  #main_container { max-width: 100%; }

  #header {
    height: auto;
    padding: 0 16px 16px;
  }

  #logotype {
    position: relative;
    top: auto; left: auto; bottom: auto; right: auto;
    width: auto;
    padding: 14px 60px 0 0;
    height: auto;
    display: block;
  }

  #logotype img {
    height: 28px !important;
    width: auto !important;
    max-width: calc(100% - 60px);
  }

  .nav-toggle {
    display: flex;
    position: fixed;
    top: 12px;
    right: 12px;
  }

  /* Hide desktop nav on mobile */
  #navigation { display: none; }

  /* Show mobile drawer on mobile */
  .mobile-nav { display: block; }

  .nav-item,
  .nav-item:first-child,
  .nav-item:last-child {
    height: auto;
    display: block;
    padding: 0;
    background: transparent !important;
  }

  .nav-link, .nav-link--label,
  .nav-item:first-child .nav-link,
  .nav-item:first-child .nav-link--label,
  .nav-item:last-child .nav-link,
  .nav-item:last-child .nav-link--label {
    display: block;
    padding: 11px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-shadow: none;
    font-weight: 500;
    background: transparent !important;
    color: #f5ecd9;
    line-height: 1.3;
    font-family: var(--font-body);
  }

  .nav-sub {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.25);
    padding: 0;
    border-radius: 0;
    min-width: 0;
  }

  .nav-item.is-expanded > .nav-sub { display: block; }

  .wrapper-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 14px 14px;
  }

  #content {
    padding: 22px 18px;
    margin-bottom: 20px;
    min-height: 0;
  }

  #sidebar {
    padding: 18px 18px;
    margin-bottom: 0;
    min-height: 0;
  }

  #content .alignright,
  #content .alignleft {
    float: none;
    display: block;
    margin: 14px auto;
    max-width: 100%;
  }

  #copyright { padding: 0 14px; height: auto; min-height: 24px; line-height: 1.5; padding-block: 4px; }
  #sitemap { padding: 0 14px; height: auto; min-height: 49px; }

  .footer-menu li {
    line-height: 32px;
    padding: 0 6px 0 12px;
  }
}

@media (max-width: 480px) {
  #logotype img { height: 32px; }
  .tagline-line { font-size: 22px; line-height: 30px; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  #header, #footer, .nav-toggle { display: none; }
}
