
/* LegaIT V4 - conversion + SEO layer */
#header { align-items: center; }
#logo.legait-brand { padding: 0.65em 0; min-width: 13em; }
#logo.legait-brand a { border: 0; text-decoration: none; }
#logo.legait-brand strong { display:block; font-size: 1.65em; letter-spacing: .03em; }
#logo.legait-brand span { display:block; font-size: .75em; opacity:.72; margin-top:.15em; }

.legait-crumbs { font-size:.8em; margin:0 0 1.5em; opacity:.78; }
.legait-crumbs a { border-bottom:0; text-decoration:none; }

.legait-hero-copy { max-width: 760px; }
.legait-hero-copy .lead { max-width: 690px; }
.legait-hero-actions { display:flex; flex-wrap:wrap; gap:.7em; align-items:center; margin-top:1.5em; }
.legait-hero-actions .button { margin:0; }

.legait-phone { font-size:1.05em; font-weight:700; border-bottom:0 !important; }
.legait-phone:hover { text-decoration: underline !important; }

.legait-trust { margin:1.2em 0 0; display:flex; flex-wrap:wrap; gap:.55em 1.1em; font-size:.85em; opacity:.88; }
.legait-trust span::before { content:"✓"; margin-right:.35em; }

.legait-section-intro { max-width: 820px; margin-bottom: 1.5em; }
.legait-service-card .inner { min-height: 255px; display:flex; flex-direction:column; }
.legait-service-card .inner p { flex:1; }
.legait-service-card .button { align-self:flex-start; margin-top:.5em; }
.legait-service-card h2 a { border:0; text-decoration:none; }

.legait-cta {
    margin: 2em 0;
    padding: 2em;
    border-radius: 6px;
    background: rgba(0,0,0,.035);
}
.legait-cta h2 { margin-bottom:.45em; }
.legait-cta .button { margin:.35em .5em .35em 0; }

.legait-process { counter-reset: step; }
.legait-process > div { position:relative; padding-left:3.2em; margin-bottom:1.35em; }
.legait-process > div::before {
    counter-increment: step;
    content: counter(step);
    position:absolute; left:0; top:0;
    width:2.1em; height:2.1em; line-height:2.1em;
    text-align:center; border-radius:50%;
    background:#e9e9e9; font-weight:700;
}
.legait-process h3 { margin-bottom:.25em; }

.legait-faq h3 { margin:1.25em 0 .35em; }
.legait-faq p { margin-bottom:.8em; }

.legait-contact-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1em; margin:1.5em 0; }
.legait-contact-card { padding:1.25em; background:rgba(0,0,0,.035); border-radius:6px; }
.legait-contact-card h3 { margin-bottom:.3em; }
.legait-contact-card a { font-weight:700; }

.legait-gallery {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:1em;
    margin:1.5em 0;
}
.legait-gallery a { display:block; border:0; }
.legait-gallery img { width:100%; max-height:512px; aspect-ratio:4/3; object-fit:cover; border-radius:6px; display:block; }
.legait-gallery figcaption { font-size:.8em; margin-top:.35em; opacity:.75; }

.legait-footer-links { margin-top:1em; }
.legait-footer-links a { margin-right:1em; }

.legait-mobile-cta {
    display:none;
    position:fixed; z-index:9999; left:0; right:0; bottom:0;
    padding:.65em .8em; background:rgba(255,255,255,.97);
    box-shadow:0 -3px 14px rgba(0,0,0,.12);
    text-align:center;
}
.legait-mobile-cta a { display:inline-block; margin:0 .25em; }
.legait-mobile-cta .button { margin:0; padding:.55em .9em; }

@media screen and (max-width: 980px) {
    .legait-contact-grid { grid-template-columns:1fr; }
}
@media screen and (max-width: 736px) {
    #logo.legait-brand { min-width:0; padding:.4em 0; }
    #logo.legait-brand strong { font-size:1.35em; }
    .legait-hero-actions { flex-direction:column; align-items:stretch; }
    .legait-hero-actions .button { text-align:center; }
    .legait-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65em; }
    .legait-mobile-cta { display:block; }
    body { padding-bottom:4.2em; }
}
@media screen and (max-width: 480px) {
    .legait-gallery { grid-template-columns:1fr; }
}

.legait-brand-links a { font-weight:700; }


/* Mobile refinement - based on legait_seo_v4_optimized_images_brands */
@media screen and (max-width: 736px) {
    #banner-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }

    #banner {
        padding: 2.5em 1.25em 2.75em 1.25em;
    }

    .legait-hero-copy {
        width: 100%;
        max-width: none;
    }

    .legait-hero-copy h1 {
        font-size: 1.65em;
        line-height: 1.2;
        margin-bottom: .8em;
    }

    .legait-hero-copy .lead {
        max-width: none;
        font-size: 1em;
        line-height: 1.7;
    }

    .legait-trust {
        display: block;
    }

    .legait-trust span {
        display: block;
        margin-bottom: .35em;
    }

    #features-wrapper .box.feature .image img,
    #features-wrapper .legait-service-card > .image img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
    }

    #features-wrapper .box.feature .inner {
        padding: 24px 15px 25px 15px;
    }

    .legait-service-card h2 {
        font-size: 1.15em;
        line-height: 1.3;
    }

    .legait-service-card .inner {
        min-height: 0;
    }
}

@media screen and (max-width: 480px) {
    #banner {
        padding: 2.2em 1em 2.4em 1em;
    }

    .legait-hero-copy h1 {
        font-size: 1.48em;
    }

    #features-wrapper .box.feature .image img,
    #features-wrapper .legait-service-card > .image img {
        height: 160px;
    }
}


/* Mobile navigation: make the hamburger control explicit for users. */
@media screen and (max-width: 980px) {
  #navToggle .toggle {
    width: 92px;
  }

  #navToggle .toggle:before {
    width: 88px;
    content: "0c9  Menu";
    font-size: 15px;
    letter-spacing: 0.02em;
    text-align: center;
  }
}


/* Mobile navigation: make the hamburger control explicit for users. */
@media screen and (max-width: 980px) {
  #navToggle .toggle { width: 92px; }
  #navToggle .toggle:before {
    width: 88px;
    content: "\f0c9  Menu";
    font-size: 15px;
    letter-spacing: 0.02em;
    text-align: center;
  }
  #navPanel .legait-menu-title {
    padding: 18px 0 12px;
    color: #333;
    font-size: 1.05rem;
    font-weight: 800;
    border-bottom: solid 2px #e8e8e8;
    margin-bottom: 4px;
  }
}

/* Mobile overflow fix: keep the full page inside the viewport. */
@media screen and (max-width: 736px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    #page-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    #banner-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }

    #banner {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    #banner .row,
    #features-wrapper .row,
    #main-wrapper .row,
    #footer-wrapper .row {
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    #banner .row > *,
    #features-wrapper .row > *,
    #main-wrapper .row > *,
    #footer-wrapper .row > * {
        box-sizing: border-box;
        min-width: 0;
    }

    img, video, iframe, table {
        max-width: 100%;
    }

    .legait-hero-copy,
    .legait-section-intro,
    .legait-service-card,
    .box {
        max-width: 100%;
        box-sizing: border-box;
    }
}
