:root {
    --gray: #545454;
    --cyan: #0497b2;
    --light: #d9d9d9;
    --ink: #303030;
    --white: #fafafa;
    --line: #e4e4e4
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, sans-serif;
    line-height: 1.6
}

h1,
h2,
h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    line-height: 1.1;
    margin: .4em 0
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.1rem);
    max-width: 950px
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem)
}

h3 {
    font-size: 1.4rem
}

p {
    max-width: 650px
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: auto
}

.site-header {
    position: absolute;
    top: 0;
    z-index: 3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px max(24px, calc((100% - 1280px)/2));
    background: rgb(31 30 31);
    color: #fff
}

.brand {
    color: #fff;
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 1.35rem
}

.brand span {
    font-size: .8em;
    color: var(--light)
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px
}

.main-nav a,
.language button {
    color: #fff;
    text-decoration: none;
    font: inherit;
    background: none;
    border: 0;
    cursor: pointer
}

.header-cta {
    border-bottom: 1px solid var(--cyan);
    padding-bottom: 5px
}

.language {
    display: flex;
    gap: 6px
}

.language .active {
    color: var(--cyan)
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.6rem
}

.hero {
    min-height: 760px;
    padding-top: 180px;
    color: #fff;
    background: linear-gradient(90deg, rgba(44, 44, 44, .94), rgba(59, 59, 59, .62)), url('../images/banner1.jpg') center/cover
}

.eyebrow {
    color: var(--cyan);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700
}

.hero .eyebrow,
.dark-band .eyebrow,
.packages .eyebrow,
.contact .eyebrow {
    color: var(--light)
}

.hero-lead {
    font-size: 1.2rem;
    max-width: 650px
}

.rule {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--cyan);
    margin: 28px 0
}

.rule.dark {
    background: var(--gray)
}

.actions {
    display: flex;
    gap: 26px;
    align-items: center;
    margin-top: 36px
}

.button {
    display: inline-block;
    padding: 15px 24px;
    text-decoration: none;
    border: 1px solid transparent
}

.button.light {
    background: #fff;
    color: var(--gray)
}

.button.outline {
    border-color: var(--cyan);
    color: #fff
}

.text-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 5px
}

.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 410px;
    background: var(--cyan);
    color: #fff;
    margin-top: -80px;
    position: relative
}

.intro>div {
    padding: 60px
}

.intro-image {
    background: linear-gradient(rgba(59, 59, 59, .35), rgba(59, 59, 59, .35)), url('../images/advogadoaguilar.jpg') center/cover
}

.section {
    padding: 110px 0
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 55px
}

.section-heading.left {
    text-align: left;
    margin-left: 0
}

.section-heading.row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    text-align: left;
    max-width: none
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.practice-card {
    padding: 30px;
    color: var(--gray);
    border: 1px solid var(--line);
    text-decoration: none;
    min-height: 245px;
    transition: .2s
}

.practice-card:hover {
    background: var(--gray);
    color: #fff;
    transform: translateY(-4px)
}

.practice-number {
    display: block;
    color: var(--cyan);
    font-size: .8rem
}

.practice-card p {
    color: #777
}

.practice-card:hover p {
    color: #ddd
}

.dark-band,
.packages,
.contact {
    background: var(--gray);
    color: #fff
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center
}

.dark-band,
.packages,
.contact {
    padding: 90px 0
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px
}

.process-grid article {
    border-top: 1px solid var(--cyan);
    padding-top: 20px
}

.process-grid b {
    color: var(--cyan)
}

.package-list {
    border-left: 1px solid var(--cyan);
    padding-left: 35px
}

.package-list p {
    font-size: 1.15rem
}

.articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px
}

.article-image {
    height: 220px;
    background: url('../images/library-hero.png') center/cover
}

.article-image.alt {
    filter: grayscale(1);
    opacity: .7
}

.articles small {
    display: block;
    color: var(--cyan);
    font-size: .62rem;
    letter-spacing: .08em;
    margin-top: 22px
}

.articles a,
.footer a {
    color: inherit
}

.contact form {
    display: grid;
    gap: 16px
}

label {
    display: grid;
    gap: 5px;
    color: var(--light);
    font-size: .85rem
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #777;
    background: #fff;
    padding: 12px;
    font: inherit
}

.check {
    display: flex;
    grid-template-columns: auto 1fr;
    display: flex;
    align-items: center;
    gap: 8px
}

.check input {
    width: auto
}

.dark-button {
    background: var(--cyan);
    color: #fff;
    cursor: pointer;
    width: max-content
}

.form-status {
    color: var(--light)
}

.footer {
    background: #3c3c3c;
    color: #fff;
    padding: 60px 0 25px
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px
}

.footer-grid>div {
    display: flex;
    flex-direction: column;
    gap: 9px
}

.footer-bottom {
    border-top: 1px solid #666;
    margin-top: 40px;
    padding-top: 20px;
    color: var(--light);
    font-size: .8rem
}

.chat-trigger {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: var(--cyan);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer
}

.chat {
    position: fixed;
    right: 24px;
    bottom: 88px;
    width: 310px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 20px;
    box-shadow: 0 10px 30px #0002;
    z-index: 5
}

.chat-close {
    float: right;
    border: 0;
    background: none;
    font-size: 1.4rem
}

.chat div {
    display: flex
}

.chat input {
    flex: 1
}

.chat div button {
    background: var(--cyan);
    color: #fff;
    border: 0;
    width: 42px
}

.chat a {
    display: block;
    color: var(--gray);
    margin-top: 15px;
    font-size: .85rem
}

@media(max-width:850px) {
    .menu-toggle {
        display: block
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 25px;
        background: var(--gray);
        flex-direction: column;
        align-items: flex-start
    }

    .main-nav.is-open {
        display: flex
    }

    .hero {
        min-height: 700px;
        padding-top: 150px
    }

    .intro,
    .split,
    .articles {
        grid-template-columns: 1fr
    }

    .intro>div {
        padding: 36px
    }

    .intro-image {
        min-height: 250px
    }

    .practice-grid,
    .process-grid {
        grid-template-columns: 1fr 1fr
    }

    .section {
        padding: 75px 0
    }

    .section-heading.row {
        align-items: start;
        gap: 20px;
        flex-direction: column
    }
}

@media(max-width:520px) {
    .container {
        width: min(100% - 32px, 1120px)
    }

    h1 {
        font-size: 2.7rem
    }

    .actions {
        align-items: flex-start;
        flex-direction: column
    }

    .practice-grid,
    .process-grid {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .site-header {
        padding: 18px 16px
    }
}