:root {
--step--1: clamp(0.85rem, 1vw, 1rem);
--step-0:  clamp(1rem, 1.2vw, 1.1rem);
--step-1:  clamp(1.15rem, 1.8vw, 1.3rem);
--step-2:  clamp(1.35rem, 2.5vw, 1.6rem);
--step-3:  clamp(1.6rem, 3.5vw, 1.9rem);
--step-4:  clamp(1.9rem, 4.5vw, 2.3rem);
--step-5:  clamp(2.2rem, 5.5vw, 2.8rem);

--color-primary: #4f6574;
--color-secondary: #be624d;
--color-tertiary: #707a7e;
--color-text: #1f2933;
--color-white: #ffffff;
--color-surface: #f5f0e8;
--color-surface-variant: #e5ddd0;
--color-primary-light: #e2e8ec;
--color-secondary-light: #f2e5e1;
--color-accent: #d4a373;
--color-info: #5bc0de;
--color-success: #6b8e23;
--color-warning: #e9c46a;
--color-error: #bc4749;
--color-muted: #627280;
}

.hero-intro-section

.hero-intro-text h1 {
    color: #FFFFFF;
    line-height: 1.2;
}

.hero-intro-text div {
    color: #FFFFFF;
    font-size: var(--step-1);
    line-height: 1.2;
}

.hero-intro-section {
    display: flex !important;
    align-items: center !important; /* Vertically centers the content */
    justify-content: flex-start;    /* Keeps text left-aligned horizontally */
    
    /* Required for the overlay to stay inside the section */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-intro-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Your requested gradient */
    background: linear-gradient(180deg, rgba(46, 60, 70, 0.58) 8%, rgba(255, 255, 255, 0.03) 92%);
    z-index: -1; /* Behind the text, in front of the background image */
    pointer-events: none;
}

/* Reset the internal Impreza wrapper */
.hero-intro-section .l-section-h {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: 100%;
    
    /* Ensure text stays above the overlay */
    position: relative;
    z-index: 2;
}

.about-us-section {
    background: var(--color-primary-light);
}

.about-us-title {
    color: var(--color-text)!important;
    margin-bottom: 0.6rem!important;
}

.about-us-content {
    color: var(--color-text);
    font-size: var(--step--1);
    width: 100%;
}

@media (min-width: 1025px) {
    .about-us-content {
        width: 80%;
    }
}

.section-label {
    text-align: center;
}

.section-title {
    text-align: center;
}

.section-intro {
    text-align: center;
    width: 100%;
}

@media (min-width: 1024px) {
    .section-intro {
        text-align: center;
        width: 70%;
        margin-left: auto;
        margin-right: auto;
}
}

.faq-header {
    margin-bottom: 2rem;
}

/* Base styles for all service grid items */
.service-grid .w-grid-item-h {
    height: 100%; /* Ensures all boxes are the same height */
    padding: 2rem; /* Consistent internal spacing */
    transition: transform 0.3s ease;
}

/* Odd Items: Lighter Steel Blue (#e2e8ec) */
.service-grid .w-grid-item:nth-child(odd) .w-grid-item-h {
    background-color: var(--color-primary-light);
}

/* Even Items: Lighter Terracotta (#f2e5e1) */
.service-grid .w-grid-item:nth-child(even) .w-grid-item-h {
    background-color: var(--color-secondary-light);
}

/* Optional: Typography color for readability inside the grid */
.service-grid .service-title {
    color: var(--color-primary);
    font-size: var(--step-1);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-grid .service-content {
    color: var(--color-text);
    font-size: var(--step--1);
}

.our-office-section {
    background: var(--color-secondary-light);
}

/* Mobile First */
.our-office-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.our-office-wrapper .w-image {
    width: 100%;
    line-height: 0; /* Removes tiny gap under images */
}

.contat-us-address-box {
    width: 100%;
    padding: 2rem;
    background: #FFFFFF;
    box-sizing: border-box;
    font-size: var(--step--1);
}

/* Desktop: 1025px and up */
@media (min-width: 1025px) {
    .our-office-wrapper {
        flex-direction: row;
        align-items: flex-end; /* This aligns the box to the bottom of the image */
    }

    .our-office-wrapper .w-image {
        width: 66.66%;
        flex: 2;
    }

    .contat-us-address-box {
        width: 33.33%;
        flex: 1;
        font-size: var(--step--1);
        /* If you want the "floating" look from the screenshot, 
           you can add a negative margin-left to overlap the image slightly */
        /* margin-left: -2rem; */ 
    }
}

.ph-light {
    font-size: calc(var(--step--1) * 1.15);
}

.contact-us-section {
    background: var(--color-primary-light);
}

/* Mobile First: Elements stack naturally */
.contact-us-wrapper {
    display: grid;
    gap: 30px;
}

/* Desktop: 2/3 + 1/3 layout */
@media (min-width: 1024px) {
    .contact-us-wrapper {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.contact-us-sub-title {
    font-size: var(--step-1);
    color: var(--color-text)!important;
}

.copyright-text,
.site-copyright {
    font-size: var(--step--1);
    color: var(--color-white);
}

/* privacy policy css */
.legal-hero-section {
    background: var(--color-secondary);
    color: #FFFFFF;
}

.legal-hero-title {
    color: #FFFFFF!important;
    font-size: var(--step-3)!important;
    line-height: 1.1;
}

.legal-main-section {
    background: var(--color-primary-light);
}

.legal-content {
    line-height: 1.4;
    color: var(--color-text);
    font-size: var(--step--1);
}

/* New Rule: Remove the margin from the P tags wrapping your headings */
.legal-content p:has(.legal-heading) {
    margin: 0;
}

.legal-heading {
    display: block; 
    font-weight: 700;
    font-size: var(--step--1);
    margin-top: 2rem; 
    margin-bottom: 0.1rem;
    color: var(--color-text);
}

.legal-ul {
    margin-top: 0.5em;
    padding-left: 1.5em;
}

.service-grid-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-icon {
    display: flex;
    flex-shrink: 0;
}

.service-icon svg {
    width: 2.6rem;
    height: 2.6rem;
    color: var(--color-primary);
}

.service-grid-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* override Impreza's valign_top */
.service-grid-title-wrapper.valign_top {
    align-items: center;
}

/* Service pages css */
.service-hero-section {
    background: var(--color-primary);
}

.service-hero-wrapper {
    width: 100%;
}

@media (min-width: 1025px) {
.service-hero-wrapper {
    width: 80%;
}
}


.service-hero-title {
    color: var(--color-white);
}

.service-hero-tagline {
    color: var(--color-accent);
    font-size: var(--step-1);
    line-height: 1.2;
}

.service-hero-content {
    color: var(--color-white);
    font-size: var(--step--1);
}

.main-service-section {
    background: var(--color-white);
}

.main-service-section .vc_column-inner .wpb_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1025px) {
.main-service-section .vc_column-inner .wpb_wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
}

/* Card wrapper — includes title + list */
.what-we-handle-box {
    background: #f5f0e8;
    border: 1px solid #e5ddd0;
    border-left: 4px solid #be624d;
    border-radius: 8px;
    padding: 1.5rem 2rem;
}

/* Title */
.what-we-handle-box .w-text-value {
    font-size: 1.2rem;
    color: #4f6574;
    display: block;
}

/* Remove default margin from h3 */
.what-we-handle-box h3.w-text {
    margin: 0 0 0.75rem;
}

/* Each row */
.what-we-handle-box .repeater-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ddd5c5;
}

.what-we-handle-box .repeater-row:last-child {
    border-bottom: none;
}

/* Bullet dot */
.what-we-handle-box .repeater-row::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #be624d;
    margin-top: 0.4em;
}

/* Text */
.what-we-handle-box .repeater-field {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-list li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ddd5c5;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

.sidebar-list li::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #be624d;
    position: relative;
    top: -1px;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

/* Corporate Law */
/* ─── STRUCTURE COMPARISON ─── */

.structures {
  background: var(--color-white);
}

.struct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 1024px) {
  .struct-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
  }
}

.struct-card {
  border-radius: 12px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

.struct-card.a {
  background: var(--color-primary);
  color: var(--color-white);
}

.struct-card.b {
  background: var(--color-secondary);
  color: var(--color-white);
}

.struct-card.c {
  background: var(--color-tertiary);
  color: var(--color-white);
}

.struct-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.struct-card h3 {
  font-family: sole-serif-titling-variable, serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 14px;
  position: relative;
  color: var(--color-white);
}

.struct-card p {
  font-size: 0.88rem;
  line-height: 1.8;
  opacity: 0.88;
  position: relative;
}

.struct-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
}


/* ─── PROCESS ─── */

.process {
  background: var(--color-surface);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  counter-reset: step;
}

@media (min-width: 1024px) {
.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  counter-reset: step;
}
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-family: sole-serif-titling-variable, serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--color-white);
}

.step:nth-child(odd) .step-number {
  background: var(--color-secondary);
}

.step:nth-child(even) .step-number {
  background: var(--color-primary);
}

.step h4 {
  font-family: sole-serif-titling-variable, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* Family Law CSS */
.grounds-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 1024px) {
    .grounds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
}

.ground-card {
    border-radius: 10px;
    padding: 22px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ground-card:nth-child(odd) {
    background: rgba(80,101,117,0.04);
    border-left: 3px solid var(--color-primary);
}

.ground-card:nth-child(even) {
    background: rgba(190,100,80,0.04);
    border-left: 3px solid var(--color-secondary);
}

.ground-num {
    font-family: sole-serif-titling-variable, serif;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.ground-card:nth-child(odd) .ground-num {
    color: var(--color-primary);
}

.ground-card:nth-child(even) .ground-num {
    color: var(--color-secondary);
}

.ground-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.ground-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.55;
}

.prop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
}

@media (min-width: 1024px) {
    .prop-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin: 20px 0;
}
}

.prop-card {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.prop-card h4 {
    margin-top: 0;
    color: var(--color-white);
}

.prop-card:nth-child(odd) {
    background: var(--color-primary);
    color: var(--color-white);
}

.prop-card:nth-child(even) {
    background: var(--color-secondary);
    color: var(--color-white);
}