/* ==========================================================================
   Waddell Family Law – site stylesheet
   Hand-written reproduction of the rendered Avada design (colours, fonts,
   sizes and spacing read from the live pages' generated CSS). No framework.

   Layout helpers for page bodies (src/pages/*.html):
     .band / .band--blue / .band--white   full-width section (60px vertical padding)
     .container                            1170px centred content column, 30px gutters
     .row  + .col-1-1 / .col-1-2 / .col-1-3 / .col-2-3   legacy column grid (4% gap)
     .split + .split__col                  two equal columns, stacked under 1024px
     .hero / .hero__media / .hero__text    image-left, text-right intro section
     .btn                                  orange Avada-style button
     .text-center                          centred text
   ========================================================================== */

:root {
  --c-purple: #230871;          /* header bar, h1-h3 */
  --c-purple-2: #280071;        /* section titles, first practice icon */
  --c-navy: #000066;            /* primary: testimonials, social boxes, hover accents */
  --c-orange: #ed8b00;          /* buttons, nav hover */
  --c-blue-band: #c3d7ee;       /* light-blue headline band */
  --c-blue-band-2: #c1d5ed;     /* feature-wall band */
  --c-blue-tint: rgba(195, 215, 238, 0.18);
  --c-hero-bg: #fdfdff;
  --c-page-bg: #f5f5f5;
  --c-text: #666666;
  --c-text-dark: #4f4f4f;
  --c-link: #004c87;
  --c-link-hover: #000066;
  --c-sep: #e0dede;
  --c-white: #ffffff;
  --c-footer-text: #999999;
  --c-nav-text: #e8e8e8;
  --c-nav-sub-bg: #f2efef;
  --c-nav-sub-hover: #f8f8f8;
  --c-nav-sub-sep: #dcdadb;
  --c-nav-sub-text: #333333;
  --c-mobile-toggle: #d6d6d6;
  --c-mobile-menu-bg: #ffffff;
  --c-mobile-menu-hover: #f5f5f5;
  --c-mobile-menu-border: #f8f8f8;
  --c-form-panel: rgba(239, 239, 239, 0.85);
  --c-form-bg: rgba(255, 255, 255, 0.76);
  --c-form-text: #323532;
  --c-form-placeholder: rgba(50, 53, 50, 0.35);
  --c-contact-overlay: rgba(43, 49, 60, 0.67);
  --c-totop: #333333;

  --font-body: "Open Sans", Arial, Helvetica, sans-serif;
  --font-h4: Raleway, Arial, Helvetica, sans-serif;
  --site-width: 1170px;
  --gutter: 30px;
  --nav-height: 100px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--c-page-bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
  color: var(--c-text);
  background: var(--c-page-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
svg { fill: currentColor; }

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color 0.2s linear, background-color 0.2s linear, border-color 0.2s linear;
}
a:hover { color: var(--c-link-hover); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-body); letter-spacing: 0; }
h1 { font-size: 28px; font-weight: 600; line-height: 1.41; color: var(--c-purple); margin: 0.67em 0; }
h2 { font-size: 28px; font-weight: 500; line-height: 1.21; color: var(--c-purple); margin: 0 0 1.1em; }
h3 { font-size: 18px; font-weight: 500; line-height: 1.67; color: var(--c-purple); margin: 1em 0 0.7em; }
h4 { font-family: var(--font-h4); font-size: 14px; font-weight: 500; line-height: 1.43; color: var(--c-purple); margin: 1.33em 0; }
h5 { font-size: 12px; font-weight: 700; line-height: 1.5; color: #55a098; margin: 1.67em 0 1em; }
h6 { font-size: 18px; font-weight: 700; line-height: 0.94; color: #3b4251; margin: 2.33em 0; }
p { margin: 1em 0; }
blockquote { margin: 0; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  border: 0;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 15px 23px 14px;
  background: #ddd;
  color: #444;
  font-size: 1em;
  line-height: normal;
}
.skip-link:focus { left: 5px; top: 5px; }

.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  max-width: calc(var(--site-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.row { display: flex; flex-wrap: wrap; }
.col-1-1 { flex: 0 0 100%; max-width: 100%; }
.col-1-2 { flex: 0 0 48%; max-width: 48%; margin-right: 4%; }
.col-1-3 { flex: 0 0 30.6666%; max-width: 30.6666%; margin-right: 4%; }
.col-2-3 { flex: 0 0 65.3333%; max-width: 65.3333%; margin-right: 4%; }
.row > :last-child { margin-right: 0; }

.band { padding: 60px 0; }
.band--blue { background: var(--c-blue-band); }
.band--white { background: var(--c-white); }

@media (max-width: 850px) {
  .col-1-2, .col-1-3, .col-2-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 1000;
  background: var(--c-purple);
  padding: 0 var(--gutter);
}

.site-header__row {
  position: relative;
  max-width: var(--site-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo { display: block; flex: 0 0 auto; margin: 15px 0; line-height: 0; }
.site-logo__img { display: block; width: auto; max-height: 72px; }
.site-logo__img--mobile { display: none; }

.nav-toggle { display: none; }

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.site-nav__list > li { position: relative; padding-right: 30px; }
.site-nav__list > li:last-child { padding-right: 0; }

.site-nav__list > li > a {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  line-height: 1;
  font-size: 20px;
  font-weight: 300;
  color: var(--c-nav-text);
  white-space: nowrap;
  border-top: 0 solid transparent;
}
.site-nav__list > li > a:hover,
.site-nav__list > li > a.is-active,
.site-nav__list > li.has-dropdown:hover > a,
.site-nav__list > li.has-dropdown.is-open > a { color: var(--c-orange); }

.submenu-toggle { display: none; }

.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 10;
  width: 133px;
  background: var(--c-nav-sub-bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in;
}
.has-dropdown:hover > .sub-menu,
.has-dropdown:focus-within > .sub-menu,
.has-dropdown.is-open > .sub-menu { visibility: visible; opacity: 1; }

.sub-menu li { margin: 0; padding: 0; }
.sub-menu a {
  display: block;
  padding: 7px 20px;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  color: var(--c-nav-sub-text);
  border-bottom: 1px solid var(--c-nav-sub-sep);
}
.sub-menu li:last-child a { border-bottom: 0; }
.sub-menu a:hover,
.sub-menu a.is-active { background: var(--c-nav-sub-hover); color: var(--c-nav-sub-text); }

@media (max-width: 1050px) {
  .site-header { padding: 20px var(--gutter); }
  .site-header__row { flex-wrap: wrap; }

  .site-logo { margin: 0; flex: 1 1 auto; max-width: calc(100% - 50px); }
  .site-logo__img--desktop { display: none; }
  .site-logo__img--mobile { display: block; max-height: 290px; max-width: 100%; }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 4px;
    background: none;
    border: 0;
    color: var(--c-mobile-toggle);
    cursor: pointer;
    line-height: 0;
  }
  .nav-toggle:hover { color: var(--c-orange); }
  .nav-toggle svg { display: block; }

  .site-nav {
    display: none;
    flex: 0 0 calc(100% + 2 * var(--gutter));
    width: calc(100% + 2 * var(--gutter));
    margin: 20px calc(-1 * var(--gutter)) -20px;
  }
  .site-nav.is-open { display: block; }

  .site-nav__list {
    display: block;
    background: var(--c-mobile-menu-bg);
    border-top: 1px solid var(--c-mobile-menu-border);
  }
  .site-nav__list > li { padding: 0; }
  .site-nav__list > li > a,
  .sub-menu a {
    display: block;
    height: auto;
    padding: 0 30px;
    font-size: 12px;
    font-weight: 400;
    line-height: 47px;
    color: var(--c-nav-sub-text);
    white-space: normal;
    border-bottom: 1px solid var(--c-mobile-menu-border);
  }
  .site-nav__list > li > a:hover,
  .site-nav__list > li > a.is-active,
  .site-nav__list > li.has-dropdown:hover > a,
  .site-nav__list > li.has-dropdown.is-open > a,
  .sub-menu a:hover,
  .sub-menu a.is-active { background: var(--c-mobile-menu-hover); color: var(--c-nav-sub-text); }

  .site-nav__list > li.has-dropdown > a { padding-right: 66px; }
  .submenu-toggle {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    width: 66px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: var(--c-nav-sub-text);
    cursor: pointer;
  }
  .submenu-toggle svg { transition: transform 0.2s; }
  .submenu-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

  .sub-menu {
    position: static;
    width: auto;
    display: none;
    visibility: visible;
    opacity: 1;
    background: var(--c-mobile-menu-bg);
  }
  .has-dropdown.is-open > .sub-menu { display: block; }
  .sub-menu a { padding-left: 39px; }
  .sub-menu a::before { content: "-"; margin-right: 2px; }
  .sub-menu li:last-child a { border-bottom: 1px solid var(--c-mobile-menu-border); }
}

/* --------------------------------------------------------------------------
   Hero (image left, text right)
   -------------------------------------------------------------------------- */
.hero { background: var(--c-hero-bg); padding: 94px 0 90px; }
.hero__media {
  flex: 0 0 32%;
  max-width: 32%;
  margin-right: 4%;
  padding-top: 21px;
  line-height: 1;
}
.hero__media img { display: block; max-width: 320px; width: 100%; }
.hero__text { flex: 0 0 64%; max-width: 64%; }
.hero__title { font-size: 28px; font-weight: 500; line-height: 1.41; color: var(--c-purple); margin: 0.67em 0; }
.hero__text p { font-size: 16px; }

@media (max-width: 850px) {
  .hero__media, .hero__text { flex: 0 0 100%; max-width: 100%; margin-right: 0; margin-bottom: 20px; }
}

/* --------------------------------------------------------------------------
   Headline band
   -------------------------------------------------------------------------- */
.band__title {
  margin: 1em 0 calc(1em + 6px);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.41;
  color: var(--c-white);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Practice areas (content boxes)
   -------------------------------------------------------------------------- */
.practice { padding-top: 30px; }
.practice__intro { padding-top: 20px; margin-bottom: 20px; text-align: center; }
.practice__intro h2 { font-size: 28px; font-weight: 500; line-height: 1.21; color: var(--c-purple); margin: 0.67em 0; }
.practice__intro p { font-size: 18px; font-weight: 300; line-height: 1.21; margin: 14px 0; }

.cards { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.card { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 15px; margin-bottom: 55px; }
.card__inner { position: relative; height: 100%; }
.card__inner--tinted { background: var(--c-blue-tint); padding: 35px; }

.card__heading { text-align: center; margin-bottom: 15px; overflow: hidden; }
.card__heading a { display: block; color: inherit; }
.card__icon { display: block; width: 21px; height: 21px; margin: 0 auto 15px; color: var(--c-navy); }
.card__icon--purple { color: var(--c-purple-2); }
.card__title { margin: 0; font-size: 18px; font-weight: 500; line-height: 23px; color: var(--c-text-dark); transition: color 0.3s; }
.card__heading a:hover .card__title { color: var(--c-navy); }

.card__body { color: var(--c-text-dark); margin-bottom: 20px; text-align: left; }
.card__body p { margin: 1em 0; }

.card__more {
  display: block;
  position: relative;
  text-align: center;
  color: var(--c-link);
}
.card__more svg { width: 14px; height: 14px; margin-left: 5px; vertical-align: middle; }
.card__more:hover { color: var(--c-navy); }

@media (max-width: 850px) {
  .card { flex: 0 0 100%; max-width: 100%; }
}

/* --------------------------------------------------------------------------
   Feature wall band
   -------------------------------------------------------------------------- */
.feature { background: var(--c-blue-band-2); padding: 0; }
.feature .container { text-align: center; line-height: 0; }
.feature a { display: block; }
.feature img { display: inline-block; width: 100%; max-width: var(--site-width); }

/* --------------------------------------------------------------------------
   Two-column text/image sections
   -------------------------------------------------------------------------- */
.split { padding: 60px 0; }
.split .row { align-items: flex-start; }
.split__col { flex: 0 0 48%; max-width: 48%; margin-right: 4%; margin-bottom: 20px; }
.split__col:last-child { margin-right: 0; }
.split__title {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 500;
  line-height: 46.53px;
  color: var(--c-purple-2);
}
.split img { display: block; width: 100%; }

@media (max-width: 1024px) {
  .split__col { flex: 0 0 100%; max-width: 100%; margin-right: 0; }
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
  padding: 110px 0 80px;
  color: var(--c-white);
  background-color: var(--c-navy);
  background-image: url("/images/testimonials-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-blend-mode: lighten;
}
.testimonials__slides { position: relative; }
.testimonial { text-align: center; }
.testimonial blockquote {
  margin: 0;
  padding: 1.25em 1.5em;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 2px;
}
.testimonial blockquote p { margin: 0; }
.testimonial__author {
  margin-top: 1.5rem;
  font-size: 18px;
  letter-spacing: 2px;
  text-align: center;
}
/* progressive enhancement: site.js turns the stacked list into a fade carousel */
.is-js .testimonial { display: none; }
.is-js .testimonial.is-active { display: block; animation: testimonial-fade 0.6s ease; }
@keyframes testimonial-fade { from { opacity: 0; } to { opacity: 1; } }

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: calc(1.1rem + 4px);
}
.testimonials__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--c-white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
}
.testimonials__dot.is-active,
.testimonials__dot:hover { background: var(--c-white); }

@media (prefers-reduced-motion: reduce) {
  .is-js .testimonial.is-active { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Contact section
   -------------------------------------------------------------------------- */
.contact {
  padding: 60px 0 85px;
  color: var(--c-white);
  background-color: var(--c-contact-overlay);
  background-image: url("/images/houston-highway.jpeg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
}
.contact__info { flex: 0 0 30.6666%; max-width: 30.6666%; margin-right: 4%; margin-bottom: 20px; }
.contact__info h3 { margin: 1em 0 0.7em; font-size: 18px; line-height: 30px; font-weight: 500; color: var(--c-white); text-transform: uppercase; }
.contact__info p { color: var(--c-white); }
.contact__sep { height: 1px; margin-top: 40px; }

.contact__form {
  flex: 0 0 65.3333%;
  max-width: 65.3333%;
  margin-bottom: 20px;
  padding: 40px 29px 20px 32px;
  background: var(--c-form-panel);
  color: var(--c-text);
}
.contact__disclaimer { flex: 0 0 100%; max-width: 100%; text-align: center; color: var(--c-white); }

@media (max-width: 850px) {
  .contact__info, .contact__form { flex: 0 0 100%; max-width: 100%; margin-right: 0; }
}

/* --------------------------------------------------------------------------
   Contact form fields (Avada form styling)
   -------------------------------------------------------------------------- */
.contact-form p { margin: 1em 0; }
.contact-form label { color: var(--c-text); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 15px;
  border: 1px solid var(--c-white);
  border-radius: 0;
  background: var(--c-form-bg);
  font-family: inherit;
  font-size: 13px;
  line-height: normal;
  color: var(--c-form-text);
  -webkit-appearance: none;
  appearance: none;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] { height: 40px; }
.contact-form textarea { height: 150px; padding: 8px 15px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: #000; outline: 0; }
.contact-form ::placeholder { color: var(--c-form-placeholder); opacity: 1; }

.contact-form__group { margin: 1em 0; padding: 0; border: 0; min-width: 0; }
.contact-form__group legend { padding: 0; color: var(--c-text); }
.contact-form__group p { margin: 1em 0; }
.contact__phone { color: var(--c-white); }
.contact__phone:hover { color: var(--c-white); text-decoration: underline; }

.contact-form .check-item { display: inline-block; margin: 0 1em 0 0; }
.contact-form .check-item input { margin: 0 4px 0 0; vertical-align: middle; }

.contact-form details { margin: 1em 0; }
.contact-form summary { cursor: pointer; }
.contact-form details p { margin: 0.5em 0 0; }

.contact-form .form-status { margin: 1em 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 29px;
  border: 0;
  border-radius: 2px;
  background: var(--c-orange);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, opacity 0.2s;
}
.btn:hover,
.btn:focus { background: var(--c-orange); color: var(--c-white); }

/* --------------------------------------------------------------------------
   Awards / badges strip
   -------------------------------------------------------------------------- */
.awards { margin-top: 60px; padding-bottom: 40px; }
.awards__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.awards__list li { flex: 0 0 20%; max-width: 20%; padding: 0 15px; text-align: center; line-height: 0; }
.awards__list img { display: inline-block; max-width: 100%; height: auto; }

@media (max-width: 850px) {
  .awards__list li { flex: 0 0 50%; max-width: 50%; margin-bottom: 20px; }
}
@media (max-width: 480px) {
  .awards__list li { flex: 0 0 100%; max-width: 100%; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--c-white); color: var(--c-footer-text); }
.site-footer a { color: var(--c-footer-text); }
.site-footer a:hover { color: var(--c-link-hover); }

.site-footer__widgets { border-top: 12px solid var(--c-white); padding: 30px 10px 0; }
.site-footer__row { max-width: var(--site-width); margin: 0 auto; }
.site-footer__widgets .site-footer__row { display: flex; flex-wrap: wrap; }
.site-footer__col {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 0 15px;
  text-align: center;
}
.site-footer__col p { margin: 1em 0; }

.site-footer__copyright {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--c-white);
  padding: 18px 10px 25px;
  text-align: center;
}
.copyright-notice { font-size: 12px; color: var(--c-footer-text); }
.social-links { margin-top: 20px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px 10px;
  padding: 7px;
  border: 1px solid var(--c-navy);
  border-radius: 4px;
  background: var(--c-navy);
  color: var(--c-white);
  font-size: 14px;
  line-height: 1;
}
.social-icon svg { display: block; width: 14px; height: 14px; }
.social-icon:hover { color: var(--c-white); opacity: 0.8; }

@media (max-width: 850px) {
  .site-footer__col { flex: 0 0 100%; max-width: 100%; }
}

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 75px;
  bottom: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 35px;
  border-radius: 4px 4px 0 0;
  background: var(--c-totop);
  color: var(--c-white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out, background 0.2s ease-in-out;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--c-navy); color: var(--c-white); }

@media (max-width: 850px) {
  .to-top { right: 30px; bottom: 30px; width: 44px; height: 44px; border-radius: 4px; }
}

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */
.page-404 { text-align: center; }
.page-404 .btn { margin-top: 10px; }
