/* ==========================================================
   law.css — Law Firm Hero Section Styles
   Namespaced with "law-hero-" prefix so nothing collides
   with legal.css (.hero, .hero-container, .btn-primary, etc.)
   ========================================================== */

:root {
  --law-font-primary: "Unbounded", sans-serif;

  --law-color-black: #141414;
  --law-color-orange: #ff6404;
  --law-color-orange-dark: #d95c14;
  --law-color-gray: #4a4a4a;
  --law-color-bg: #f4f3f1;
  --law-color-white: #ffffff;
}

/* =========================================
   HERO SECTION: "BECOME KNOWN"
   ========================================= */

.law-hero {
  background-color: #f8f9f8; 
  background-image: url("../images/service/hero-practice-bg-1.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  padding: 150px 0 0 0; /* Zero bottom padding allows the image to bleed downward */
  position: relative;
  z-index: 10; /* Elevated Z-index so it sits above the next section */
  
  /* PRO TRICK: 'clip' hides horizontal bleed but lets vertical overlaps show perfectly */
  overflow-x: clip; 
  overflow-y: visible;
}

/* ---------- Centered Heading ---------- */
.law-hero-heading {
  font-family: 'Unbounded', sans-serif;
  text-align: center;
  font-size: 5rem;
  font-weight: 700;
  color: var(--heading-black);
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 75px;
}
.law-hero-highlight {
  color: var(--primary-orange);
}

/* ---------- Row Architecture ---------- */
.law-hero-row {
  display: flex;
  align-items: flex-start;
  position: relative;
}

/* ---------- Image Edge-Bleed & 25% Bottom Overlap Magic ---------- */
.law-hero-image-col {
  position: relative;
  z-index: 10; 
  /* EXACTLY 25% overlap: The image is 420px tall. 25% of 420 = 105px. */
  margin-bottom: -105px; 
}

.law-hero-image-wrap {
  /* Pulls the wrapper to exactly 20px from the left screen edge */
  margin-left: calc(-50vw + 50% + 20px);
  /* Expands width to fill the pulled space + column width */
  width: calc(100% + 50vw - 50% - 20px);
}

.law-hero-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
}

/* ---------- Content Column ---------- */
.law-hero-content-col {
  padding-left: 50px;
  padding-top: 15px;
  position: relative;
}

.law-hero-content-inner {
  max-width: 500px;
  position: relative;
}

.law-hero-text,
.law-hero-subtext {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 25px;
}

/* ---------- Hand-Drawn Down Arrow ---------- */
.hero-down-arrow {
  position: absolute;
  left: 100%; 
  margin-left: 35px; 
  height: 70%;
  top: 15px; 
  width: 45px;
  pointer-events: none;
}
.hero-down-arrow svg {
  width: 100%;
  height: auto;
  stroke: var(--heading-black);
}

/* ---------- Buttons & Links ---------- */
.law-hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn-hero-orange {
  background-color: var(--primary-orange);
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  padding: 15px 26px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-hero-orange:hover {
  background-color: #e55a03;
  color: #ffffff;
  transform: translateY(-2px);
}

.link-hero-underline {
  color: var(--heading-black);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.link-hero-underline:hover {
  color: var(--primary-orange);
  text-decoration-color: var(--primary-orange);
}


/* =========================================
   PRO RESPONSIVE QUERIES
   ========================================= */

@media (max-width: 1399px) {
  .hero-down-arrow { margin-left: 15px; width: 35px; } 
}

@media (max-width: 1199px) {
  .law-hero-heading { font-size: 4.2rem; letter-spacing: -1.5px; }
  .law-hero-content-col { padding-left: 30px; }
  .law-hero-content-inner { max-width: 440px; }
  .law-hero-image-wrap img { height: 380px; }
  /* Adjust overlap for slightly shorter image (25% of 380 = 95px) */
  .law-hero-image-col { margin-bottom: -95px; }
  .hero-down-arrow { display: none; } 
}

@media (max-width: 991px) {
  .law-hero { padding: 90px 0 60px 0; }
  .law-hero-heading { font-size: 3.5rem; margin-bottom: 50px; }
  
  .law-hero-row { flex-direction: column; gap: 40px; align-items: flex-start; }
  
  /* Reset the 25% overlap on tablets so it doesn't bleed into the text below it */
  .law-hero-image-col { margin-bottom: 0; width: 100%; }
  .law-hero-image-wrap { margin-left: 0; width: 100%; }
  
  .law-hero-content-col { padding-left: 0; width: 100%; }
  .law-hero-content-inner { max-width: 100%; }
}

@media (max-width: 767px) {
  .law-hero { padding: 70px 0 0 0; }
  .law-hero-heading { font-size: 2.5rem; letter-spacing: -1px; margin-bottom: 35px; }
  .law-hero-image-wrap img { height: 280px; }
  
  .law-hero-actions { flex-direction: column; align-items: stretch; gap: 15px; }
  .btn-hero-orange, .link-hero-underline { justify-content: center; }
  .link-hero-underline { margin-top: 10px; }
}

/* ==========================================================
   law-together.css — "How the Engines Work Together" Section
   Namespaced with "law-together-" prefix so nothing collides
   with legal.css (.engines-*, .engine-card, etc.) or any
   other practice-*.css / law.css files
   ========================================================== */

.law-together-section {
  width: 100%;
  padding: 90px 20px;
  background-color: var(--law-color-white, #ffffff);
  font-family: var(--law-font-primary, "Poppins", sans-serif);
}

.law-together-container {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.law-together-header {
  text-align: center;
  margin-bottom: 44px;
}

.law-together-eyebrow {
  font-family: var(--law-font-primary, "Poppins", sans-serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.8px;
  color: #212529;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.law-together-heading {
  font-family: var(--law-font-primary, "Poppins", sans-serif);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.3;
  color: var(--law-color-black, #141414);
  letter-spacing: -0.5px;
}

/* ---------- Content row ---------- */
.law-together-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* ---------- Accordion card ---------- */
.law-together-accordion {
  border: 1px solid var(--law-color-border, #e5e5e5);
  border-radius: 8px;
  padding: 34px 32px;
  background-color: var(--law-color-white, #ffffff);
}

.law-together-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.law-together-item {
  border-bottom: 1px solid var(--law-color-border, #e5e5e5);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.law-together-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ---------- Toggle row ---------- */
.law-together-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--law-font-primary, "Poppins", sans-serif);
}

.law-together-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: var(--law-color-black, #141414);
  border-bottom: 3px solid var(--law-color-orange, #ff6404);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.law-together-icon svg {
  width: 18px;
  height: 18px;
}

.law-together-title {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: var(--law-color-black, #141414);
  text-transform: uppercase;
}

.law-together-chevron {
  flex-shrink: 0;
  width: 14px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.law-together-chevron svg {
  width: 100%;
  height: 100%;
}

/* ---------- Panel (collapsible) ---------- */
.law-together-panel {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    margin-top 0.3s ease;
}

.law-together-item.is-open .law-together-panel {
  max-height: 200px;
  margin-top: 14px;
}

.law-together-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.65;
  color: var(--law-color-gray, #6b6b6b);
  padding-left: 52px;
}

/* ---------- Media card ---------- */
.law-together-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  background-color: #d8d8d8;
}

.law-together-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.law-together-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background-color: rgba(244, 243, 241, 0.96);
  border-radius: 6px;
  padding: 22px 24px;
  line-height: normal;
}

.law-together-overlay-title {
  font-family: var(--law-font-primary, "Poppins", sans-serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--law-color-black, #141414);
  margin-bottom: 8px;
}

.law-together-overlay-text {
  font-family: var(--law-font-primary, "Poppins", sans-serif);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
  color: #4a4a4ad9;
}

/* ==========================================================
   Responsive Breakpoints — How the Engines Work Together
   ========================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .law-together-section {
    padding: 70px 20px;
  }

  .law-together-heading {
    font-size: 30px;
  }

  .law-together-accordion {
    padding: 28px 26px;
  }

  .law-together-media img {
    min-height: 340px;
  }
}

/* Small tablet / large phone */
@media (max-width: 900px) {
  .law-together-row {
    grid-template-columns: 1fr;
  }

  .law-together-media {
    order: -1;
  }

  .law-together-media img {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .law-together-header {
    margin-bottom: 32px;
  }

  .law-together-heading {
    font-size: 26px;
  }

  .law-together-accordion {
    padding: 24px 20px;
  }

  .law-together-text {
    padding-left: 0;
    margin-top: 4px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .law-together-section {
    padding: 45px 16px;
  }

  .law-together-heading {
    font-size: 21px;
  }

  .law-together-title {
    font-size: 12px;
  }

  .law-together-icon {
    width: 30px;
    height: 30px;
  }

  .law-together-icon svg {
    width: 15px;
    height: 15px;
  }

  .law-together-overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 16px 18px;
  }

  .law-together-overlay-title,
  .law-together-overlay-text {
    font-size: 12.5px;
  }

  .law-together-media img {
    min-height: 260px;
  }
}
