/* ============================================================
   Bridges & Company LLP – Shared Stylesheet
   Based on the Lawyeria WordPress theme
   Fonts: Lato (body), Roboto Slab (headings)
   Colors: #394753 (primary text/nav), #4a5c6b (footer),
           #445d70 (section bar), #6d7c88 (muted), #276eb7 (accent)
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400;1,700&family=Roboto+Slab:wght@100;300;400;700&display=swap');

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
body  { line-height: 1; }
ol, ul { list-style: none; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; }

/* ---- Base ---- */
html { font-size: 62.5%; }
body {
  background: #f3f3f3;
  color: #394753;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
}

.wrapper {
  max-width: 964px;
  margin: 0 auto;
  padding: 0 20px;
}

.cf::before, .cf::after { content: " "; display: table; }
.cf::after { clear: both; }
/* Prevent clearfix pseudo-elements from becoming flex items */
.cf.wrapper::before, .cf.wrapper::after { display: none; }

/* ============================================================
   HEADER – white top bar (logo + contact)
============================================================ */
.site-header {
  background: #fff;
  margin-top: 5px;
  border-bottom: 1px solid #ebebeb;
}
.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 60px;
}
.site-logo img {
  height: 100%;
  width: auto;
}

/* Top-right contact info */
.header-contact {
  text-align: right;
  color: #6d7c88;
  font-weight: 700;
  font-size: 13px;
  line-height: 20px;
}
.header-contact .phone {
  display: block;
  font-size: 24px;
  line-height: 30px;
  color: #394753;
}
.header-contact .phone a {
  color: #394753;
  text-decoration: none;
  transition: color 0.2s;
}
.header-contact .phone a:hover { color: #276eb7; }

/* ============================================================
   NAVIGATION BAR
============================================================ */
.site-nav {
  background: #fff;
  border-bottom: 2px solid #e2e2e2;
}
.site-nav .wrapper {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #dee0e2;
  padding: 6px 14px;
  cursor: pointer;
  color: #394753;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  border-radius: 2px;
}
.nav-toggle:hover { background: #f3f3f3; }

.nav-menu {
  display: flex;
  gap: 0;
}
.nav-menu li a {
  display: block;
  padding: 6px 12px;
  margin-right: 28px;
  color: #394753;
  text-decoration: none;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  border: 1px solid transparent;
  transition: border-color 0.15s;
  white-space: nowrap;
}
.nav-menu li a:hover {
  border-color: #dee0e2;
}
.nav-menu li a.active {
  border-color: #dee0e2;
  font-weight: 700;
  color: #394753;
}

/* ---- Dropdown ---- */
.nav-menu li.has-dropdown {
  position: relative;
}
/* Arrow indicator */
.nav-menu li.has-dropdown > a::after {
  content: " ▾";
  font-size: 10px;
  opacity: 0.6;
}
.nav-menu li.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #dee0e2;
  border-top: 2px solid #445d70;
  min-width: 210px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.nav-menu li.has-dropdown:hover .dropdown {
  display: block;
}
.dropdown li {
  float: none;
  margin: 0;
}
.dropdown li a {
  display: block;
  padding: 10px 16px;
  margin-right: 0;
  font-size: 13px;
  border: none;
  border-bottom: 1px solid #f3f3f3;
  color: #394753;
}
.dropdown li:last-child a {
  border-bottom: none;
}
.dropdown li a:hover {
  background: #f5f7f8;
  border-color: #f3f3f3;
  color: #445d70;
}

/* ============================================================
   PAGE TITLE BAR (dark slate blue, used on inner pages)
============================================================ */
.page-title-bar {
  width: 100%;
  background: #445d70;
  padding: 26px 0;
}
.page-title-bar h1 {
  color: #fff;
  font-family: 'Roboto Slab', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

/* ============================================================
   MAIN CONTENT AREA
============================================================ */
.site-content {
  background: #fff;
  padding: 60px 0;
  min-height: 400px;
}

/* ---- Home page article ---- */
.home-article {
  overflow: hidden;
}
.home-article .article-image {
  width: 362px;
  float: left;
  margin-right: 38px;
  margin-bottom: 16px;
}
.home-article .article-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.home-article .article-text p {
  margin-top: 20px;
  line-height: 26px;
  color: #394753;
  font-family: 'Roboto Slab', sans-serif;
  font-size: 14px;
  text-align: justify;
}
.home-article .article-text p:first-child { margin-top: 0; }

/* ---- Lawyers page ---- */
.lawyers-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.lawyer-card {
  display: flex;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid #e2e2e2;
}
.lawyer-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lawyer-card .lawyer-photo {
  flex: 0 0 180px;
}
.lawyer-card .lawyer-photo img {
  width: 100%;
  height: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.lawyer-card .lawyer-info {
  flex: 1;
}
.lawyer-card h2 {
  font-family: 'Roboto Slab', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #394753;
  margin-bottom: 6px;
  line-height: 1.3;
}
.lawyer-card .lawyer-email {
  display: inline-block;
  margin-bottom: 18px;
  color: #276eb7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
}
.lawyer-card .lawyer-email:hover { text-decoration: underline; }

.lawyer-bio p {
  font-family: 'Roboto Slab', sans-serif;
  font-size: 13px;
  line-height: 24px;
  color: #394753;
  text-align: justify;
  margin-bottom: 12px;
}
.lawyer-bio p:last-child { margin-bottom: 0; }

.lawyer-meta {
  margin-top: 20px;
  font-size: 13px;
  line-height: 22px;
  color: #394753;
}
.lawyer-meta .meta-section {
  margin-top: 14px;
}
.lawyer-meta .meta-section:first-child { margin-top: 0; }
.lawyer-meta strong {
  display: block;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6d7c88;
  margin-bottom: 4px;
}
.lawyer-meta ul {
  margin-left: 16px;
}
.lawyer-meta ul li {
  list-style: disc;
  margin-bottom: 3px;
  line-height: 22px;
}

/* ---- Lawyers overview cards (lawyers.html) ---- */
.lawyers-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}
.lawyer-overview-card {
  flex: 1 1 260px;
  max-width: 300px;
  text-align: center;
  border: 1px solid #e8e8e8;
  padding: 28px 24px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: box-shadow 0.2s;
}
.lawyer-overview-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.13);
}
.lawyer-overview-card .card-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 3px solid #e2e2e2;
}
.lawyer-overview-card .card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.lawyer-overview-card h2 {
  font-family: 'Roboto Slab', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #394753;
  margin-bottom: 8px;
  line-height: 1.4;
}
.lawyer-overview-card .card-email {
  display: block;
  color: #276eb7;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 16px;
}
.lawyer-overview-card .card-email:hover { text-decoration: underline; }
.lawyer-overview-card .card-link {
  display: inline-block;
  padding: 7px 20px;
  background: #445d70;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  border-radius: 2px;
  transition: background 0.2s;
}
.lawyer-overview-card .card-link:hover { background: #394753; }

/* ---- Contact page ---- */
.contact-grid {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.contact-col {
  flex: 1 1 280px;
}
.contact-col h2 {
  font-family: 'Roboto Slab', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #394753;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e2e2;
}
.contact-col h3 {
  font-family: 'Roboto Slab', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #394753;
  margin: 28px 0 10px;
}
.contact-col h3:first-child { margin-top: 0; }

.office-block {
  margin-bottom: 24px;
}
.office-block p {
  font-family: 'Roboto Slab', sans-serif;
  font-size: 14px;
  line-height: 26px;
  color: #394753;
}
.office-block .note {
  font-style: italic;
  color: #6d7c88;
  font-size: 13px;
}
.office-block strong { font-weight: 700; }

.hours-block p {
  font-family: 'Roboto Slab', sans-serif;
  font-size: 14px;
  line-height: 26px;
  color: #394753;
}

.person-list li {
  font-size: 13px;
  line-height: 30px;
  color: #394753;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}
.person-list li .name { font-weight: 400; }
.person-list li a {
  color: #276eb7;
  text-decoration: none;
}
.person-list li a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #4a5c6b;
  padding: 52px 0 32px;
}
.footer-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-col {
  flex: 1 1 220px;
}
.footer-col .footer-title {
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.footer-col .footer-body {
  color: #bfc8d1;
  font-size: 13px;
  line-height: 24px;
}
.footer-col .footer-body a {
  color: #bfc8d1;
  text-decoration: none;
}
.footer-col .footer-body a:hover { text-decoration: underline; color: #fff; }
.footer-col .footer-body span { display: block; }

.footer-nav a {
  display: block;
  color: #bfc8d1;
  text-decoration: none;
  font-size: 13px;
  line-height: 30px;
}
.footer-nav a:hover { color: #fff; }
.footer-nav a.active { color: #fff; font-weight: 700; }

.footer-copy {
  text-align: center;
  color: #6d7c88;
  font-size: 12px;
  border-top: 1px solid #3a4d5c;
  padding-top: 24px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .site-header .wrapper {
    flex-direction: column;
    height: auto;
    padding: 16px 20px;
    gap: 10px;
  }
  .header-contact { text-align: center; }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #e2e2e2;
    padding: 8px 0;
    background: #fff;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a {
    margin-right: 0;
    padding: 10px 20px;
    border-bottom: 1px solid #f3f3f3;
    border-left: none;
    border-right: none;
    border-top: none;
    border-radius: 0;
  }
  .nav-menu li a.active, .nav-menu li a:hover {
    background: #f8f8f8;
    border-color: transparent;
    border-bottom-color: #f3f3f3;
  }
  .site-nav .wrapper { height: auto; flex-wrap: wrap; padding: 8px 20px; }

  /* Mobile dropdown — show inline below parent */
  .nav-menu li.has-dropdown > a::after { content: " ▾"; }
  .nav-menu li.has-dropdown .dropdown {
    display: none;
    position: static;
    border: none;
    border-top: none;
    box-shadow: none;
    background: #f5f7f8;
    padding-left: 16px;
    min-width: 0;
  }
  .nav-menu li.has-dropdown.open .dropdown { display: block; }
  .dropdown li a {
    padding: 9px 20px;
    font-size: 13px;
    color: #445d70;
  }
  /* Disable hover-open on mobile */
  .nav-menu li.has-dropdown:hover .dropdown { display: none; }
  .nav-menu li.has-dropdown.open .dropdown { display: block; }

  /* Lawyers overview cards stack on mobile */
  .lawyers-overview { flex-direction: column; align-items: center; }

  /* Home article */
  .home-article .article-image {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 24px;
  }

  /* Lawyer cards */
  .lawyer-card {
    flex-direction: column;
  }
  .lawyer-card .lawyer-photo {
    flex: 0 0 auto;
    width: 140px;
  }

  /* Contact */
  .contact-col { flex: 0 0 100%; }
  .contact-grid { gap: 32px; }
}

@media (max-width: 480px) {
  .site-logo img { height: 40px; }
  .header-contact .phone { font-size: 20px; }
  .page-title-bar h1 { font-size: 22px; }
  .home-article .article-text p { font-size: 13px; }
}
