/* ==========================================================================
   Eric Smenner Law - Hugo Theme Override CSS
   Overrides and additions on top of the Rely theme CSS (rely-full.css)
   ========================================================================== */

/* Override the Rely theme loading mask - not needed for static Hugo site.
   The original CSS sets #bbx-loading-mask to position:absolute, z-index:9999,
   background:#fff, opacity:1, covering the entire page. Without the WordPress
   JS framework (site.min.js) to fade it out, this causes a blank white page. */
#bbx-loading-mask,
#bbx-conent-loading-mask {
  display: none !important;
}

/* Ensure body never gets stuck in "loading" state */
body.bbx-page-loading #bbx-contents-wrap {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Content Area - since the live site's WP content area renders empty,
   we add styles for the actual page content we're providing in Hugo */
.bbx-col-1 .entry-content {
  padding: 48px;
}

.entry-content p {
  margin-bottom: 24px;
  line-height: 1.8;
}

.entry-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  line-height: 36px;
  color: #333;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.entry-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 20px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
}

.entry-content img.alignright {
  float: right;
  margin: 0 0 15px 20px;
}

.entry-content img.alignleft {
  float: left;
  margin: 0 20px 15px 0;
}

.entry-content img.aligncenter {
  display: block;
  margin: 15px auto;
}

.entry-content a {
  color: #c0a062;
  text-decoration: underline;
}

.entry-content a:hover {
  color: #a88a4e;
}

.size-medium {
  max-width: 300px;
}

.wp-image-211 {
  max-width: 240px;
}

.clear {
  clear: both;
}

/* Contact Form - Netlify Forms replacement for WP Contact Form 7 */
.contact-form {
  max-width: 600px;
  margin-top: 20px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
  font-size: 14px;
}

.contact-form label .required {
  color: #c0a062;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  font-size: 16px;
  font-family: 'Source Sans Pro', sans-serif;
  color: #555;
  background: #fff;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
  border-color: #c0a062;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-submit {
  display: inline-block;
  padding: 12px 30px;
  background: #c0a062;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.contact-form .btn-submit:hover {
  background: #a88a4e;
}

.contact-info-block {
  margin-bottom: 30px;
  padding: 24px;
  background: #f9f9f9;
  border: 1px solid #eee;
}

.contact-info-block p {
  margin-bottom: 12px;
}

.contact-info-block i.fa {
  color: #c0a062;
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

/* Homepage CTA */
.cta-phone {
  font-size: 18px;
  font-weight: 600;
}

.cta-phone .fa {
  color: #c0a062;
  margin-right: 5px;
}

.homepage-cta {
  margin-top: 20px;
}

.homepage-cta .btn-link {
  display: inline-block;
  padding: 8px 0;
  font-weight: 600;
  text-decoration: none;
}

.homepage-cta .btn-link .fa {
  margin-right: 8px;
  color: #c0a062;
}

/* Practice Areas List */
.practice-areas-list {
  column-count: 2;
  column-gap: 30px;
  padding-left: 20px;
  list-style: disc;
}

.practice-areas-list li {
  margin-bottom: 5px;
  break-inside: avoid;
}

.practice-areas-list ul {
  column-count: 1;
  margin-top: 5px;
  list-style: disc;
  padding-left: 20px;
}

/* Responsive fixes */
@media (max-width: 768px) {
  .practice-areas-list {
    column-count: 1;
  }

  .entry-content img.alignright,
  .entry-content img.alignleft {
    float: none;
    display: block;
    margin: 15px auto;
  }

  .bbx-col-1 .entry-content {
    padding: 24px;
  }
}

/* No additional copyright overrides needed - rely-full.css handles it */

/* Blockquote styling */
blockquote {
  border-left: 3px solid #c0a062;
  margin: 24px 0;
  padding: 15px 24px;
  background: #f9f9f9;
  font-style: italic;
}

blockquote p {
  margin-bottom: 0;
}

/* ==========================================================================
   Clean site header (replaces the WP bbx-nav framework / site.min.js)
   ========================================================================== */
.site-header {
  background: #262626;
  position: relative;
  z-index: 50;
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { height: 56px; width: auto; display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a9a9a;
  text-decoration: none;
  transition: color .2s ease;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.is-active { color: #fff; }
.site-header__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.site-header__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 900px) {
  .site-header__toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #262626;
    display: none;
    border-top: 1px solid #3a3a3a;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0; }
  .site-nav li { border-top: 1px solid #333; }
  .site-nav li:first-child { border-top: 0; }
  .site-nav a { display: block; padding: 15px 24px; }
}

/* ==========================================================================
   UX refinements — tame leftover WP spacing, tighten layout, mobile polish
   ========================================================================== */

/* Page-title banner: kill the oversized 9x top gap left by the WP theme */
.bbx-head {
  padding-top: 44px !important;
  padding-bottom: 26px !important;
}

/* Empty leftover spacer div */
#header-elements-container { display: none !important; }

/* Tighten the content block a touch */
.bbx-col-1 .entry-content {
  padding: 36px 28px;
}

@media (max-width: 768px) {
  .bbx-head {
    padding-top: 26px !important;
    padding-bottom: 18px !important;
  }
  .bbx-col-1 .entry-content { padding: 24px 16px; }
  .site-header__inner { padding: 12px 16px; }
  .site-header__logo img { height: 44px; }
  /* never let media or breadcrumbs cause horizontal scroll on phones */
  .entry-content img,
  .entry-content iframe { max-width: 100%; height: auto; }
  .bbx-breadcrumbs { flex-wrap: wrap; }
}

/* Contact form status messages + invalid fields */
.contact-form__error,
.contact-form__success {
  padding: 12px 16px;
  margin-bottom: 16px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
}
.contact-form__error { background: #fdecea; border: 1px solid #f5c6cb; color: #a4262c; }
.contact-form__success { background: #e8f5e9; border: 1px solid #c3e6cb; color: #1e7e34; }
.contact-form .is-invalid { border-color: #a4262c !important; }
