/*
Theme Name: Sbarbaro Law Offices Classic
Theme URI: https://www.sbarbarolaw.com/
Author: Sbarbaro Law Offices, LLC
Description: Custom classic theme preserving the firm's original 2013 website appearance with updated firm content and attorney profiles.
Version: 2.2.0
Text Domain: sbarbaro-law-classic
*/

html { overflow-y: scroll; }
* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f1f1f1;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a { color: #0066cc; text-decoration: none; }
a:hover, a:focus { color: #ff4b33; text-decoration: underline; }
img { max-width: 100%; height: auto; }

.screen-reader-text,
.skip-link:not(:focus),
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  border: 2px solid #000;
}

#wrapper {
  width: 980px;
  margin: 20px auto;
  padding: 0 20px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

#header { padding-top: 30px; }
#masthead-row { min-height: 68px; overflow: hidden; }
#site-title {
  float: left;
  width: 690px;
  margin: 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
}
#site-title a { color: #000; text-decoration: none; }
#site-description {
  float: right;
  width: 230px;
  margin: 12px 0 0;
  color: #777;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.4;
  text-align: right;
}
#branding-image {
  display: block;
  width: 940px;
  height: 198px;
  object-fit: cover;
  border-top: 4px solid #000;
}

#access {
  width: 940px;
  background: #000;
  position: relative;
  z-index: 50;
}
#access ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#access > ul {
  display: flex;
  flex-wrap: wrap;
}
#access li { position: relative; margin: 0; }
#access a,
#access .menu-parent-toggle {
  display: block;
  padding: 9px 14px 10px;
  border: 0;
  background: transparent;
  color: #aaa;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 18px;
  text-align: left;
  text-decoration: none;
}
#access .menu-parent-toggle { cursor: pointer; }
#access a:hover,
#access a:focus,
#access a[aria-current="page"],
#access .menu-parent-toggle:hover,
#access .menu-parent-toggle:focus,
#access .menu-parent-toggle[aria-expanded="true"],
#access li.current-menu-parent > .menu-parent-toggle {
  background: #333;
  color: #fff;
}
.menu-caret {
  display: inline-block;
  margin-left: 5px;
  font-size: 10px;
  transition: transform .15s ease;
}
#access li.submenu-open > .menu-parent-toggle .menu-caret { transform: rotate(180deg); }
#access .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 275px;
  background: #222;
  box-shadow: 0 2px 5px rgba(0,0,0,.24);
}
#access .sub-menu a {
  padding: 8px 12px;
  border-top: 1px solid #333;
  color: #ccc;
  white-space: nowrap;
}
#access .sub-menu a:hover,
#access .sub-menu a:focus,
#access .sub-menu a[aria-current="page"] {
  background: #333;
  color: #fff;
}
#access li:hover > .sub-menu,
#access li:focus-within > .sub-menu,
#access li.submenu-open > .sub-menu { display: block; }

#main {
  display: grid;
  grid-template-columns: 660px 220px;
  column-gap: 40px;
  padding: 36px 0 28px;
}
#content { padding-left: 20px; min-width: 0; }
.entry-title {
  margin: 0 0 20px;
  color: #000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
}
.entry-content p { margin: 0 0 18px; }
.entry-content h2,
.entry-content h3 {
  color: #000;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.entry-content h2 { margin: 30px 0 10px; font-size: 19px; }
.entry-content h3 { margin: 28px 0 8px; font-size: 18px; }
.entry-content ul { margin: 0 0 18px 1.2em; padding: 0; }
.entry-content li { margin-bottom: 5px; }
.entry-content::after { content: ""; display: table; clear: both; }
.home-copy { font-size: 15px; }

.attorney-photo {
  float: left;
  width: auto;
  max-width: 180px;
  max-height: 285px;
  margin: 3px 22px 12px 0;
  padding: 4px;
  border: 1px solid #ddd;
  background: #fff;
}
.attorney-photo--john { max-width: 140px; }
.attorney-name {
  margin: 0 0 14px;
  color: #000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}
.profile-section-title {
  clear: both;
  margin: 30px 0 8px;
  color: #000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 400;
  text-transform: uppercase;
}

#primary { color: #666; }
.widget { margin: 0 0 28px; }
.widget-title {
  margin: 0 0 9px;
  color: #222;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.widget p { margin: 0 0 8px; }
.widget strong { color: #444; }
.widget-contact-line { margin-bottom: 5px; }
.widget-contact-line a { color: #666; }
.email-contact { margin: 0 0 12px; }
.email-contact .person { display: block; color: #555; font-weight: 700; line-height: 1.35; }
.email-contact a { display: block; color: #666; overflow-wrap: anywhere; }

.contact-form { max-width: 560px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; margin-bottom: 4px; font-weight: 700; color: #333; }
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #bbb;
  padding: 8px;
  background: #fff;
  color: #222;
  font: inherit;
}
.form-row textarea { min-height: 150px; resize: vertical; }
.form-actions button {
  border: 1px solid #777;
  border-radius: 2px;
  background: linear-gradient(#f7f7f7, #ddd);
  padding: 7px 14px;
  color: #222;
  font: inherit;
  cursor: pointer;
}
.form-actions button:hover,
.form-actions button:focus { background: #e5e5e5; }
.form-status {
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid #c7c7c7;
  background: #fafafa;
  color: #444;
}
.form-status--success { border-color: #8db38d; background: #f5fbf5; }
.form-status--error { border-color: #c99; background: #fff7f7; }
.form-note { font-size: 12px; color: #777; }

.sms-consent {
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid #ccc;
  background: #fafafa;
  font-size: 12px;
  line-height: 1.5;
}
.sms-consent-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  color: #444;
  font-weight: 400;
}
.sms-consent-label input {
  width: auto;
  margin: 3px 0 0;
}
.sms-policy-links,
.sms-optional-note { margin: 8px 0 0; }
.sms-policy-links a { text-decoration: underline; }
.sms-optional-note { color: #777; }

#footer {
  clear: both;
  border-top: 4px solid #000;
  padding: 18px 0 24px;
  color: #777;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}
#footer p { margin: 0; }
#footer .footer-policy-links { margin-top: 5px; font-family: Arial, Helvetica, sans-serif; }
#footer .footer-policy-links a { color: #666; text-decoration: underline; }

@media (max-width: 1020px) {
  #wrapper { width: calc(100% - 24px); margin: 12px; }
  #branding-image, #access { width: 100%; }
  #branding-image { height: auto; aspect-ratio: 940 / 198; }
  #main { grid-template-columns: minmax(0,1fr) 220px; }
  #site-title { width: 68%; }
  #site-description { width: 30%; }
}

@media (max-width: 720px) {
  #wrapper { padding: 0 14px; }
  #header { padding-top: 18px; }
  #masthead-row { min-height: 0; }
  #site-title, #site-description { float: none; width: auto; text-align: left; }
  #site-title { font-size: 26px; }
  #site-description { margin: 6px 0 16px; }
  #access > ul { display: block; }
  #access a,
  #access .menu-parent-toggle { width: 100%; padding-right: 46px; }
  #access .sub-menu {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
  }
  #access li:hover > .sub-menu { display: none; }
  #access li.submenu-open > .sub-menu { display: block; }
  #main { display: block; padding-top: 26px; }
  #content { padding-left: 0; }
  #primary { margin-top: 36px; }
  .attorney-photo { max-width: 145px; margin-right: 16px; }
}

@media (max-width: 420px) {
  .attorney-photo { float: none; display: block; max-width: 180px; margin: 0 0 18px; }
}
