/* Branding */
:root {
    --black: #000;
    --blue: #0b6da9;
    --blue-dark: #02486e;
    --body: #3d3c3b;
    --gray: #c1bfbe;
    --gray-lighter: #d4d4d4;
    --gray-lightest: #dbdbdb;
    --orange: #ef5e2d;
    --white: #fff;
}

/* Meyer Reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}
body {
    line-height: 1;
}
ol,
ul {
    list-style: none;
}
blockquote,
q {
    quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Reset */
html {
    background-color: var(--white, #fff);
    font-family: "Raleway", sans-serif;
    scroll-behavior: smooth;
}
body {
    color: var(--body, #3d3c3b);
    font-size: 1rem;
    line-height: 1.5em;
    margin: 0;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
p {
    margin-block: 0 1rem;
}
ul,
ol {
    margin-block: 0 2rem;
}
img {
    max-inline-size: 100%;
}
ul li {
    margin-block-end: 0.75em;
}

/* Utilities */
.lh-0 {
    line-height: 0;
}
.fw-normal {
    font-weight: 400;
}
.fw-bold {
    font-weight: 700;
}
.fw-black {
    font-weight: 900;
}
.ta-left {
    text-align: left;
}
.ta-center {
    text-align: center;
}
.ta-right {
    text-align: right;
}
.td-underline {
    text-decoration: underline;
}
.d-flex {
    display: flex;
}
.ai-flex-end {
    align-items: flex-end;
}
.jc-space-between {
    justify-content: space-between;
}
.c-black {
    color: var(--black, #000);
}
.c-white {
    color: var(--white, #fff);
}
.c-blue {
    color: var(--blue, #0b6da9);
}
.c-gray-lightest {
    color: var(--gray-lightest, #dbdbdb);
}
.bc-black {
    background-color: var(--black, #000);
}
.bc-blue {
    background-color: var(--blue, #0b6da9);
}
.bc-dark-blue {
    background-color: var(--blue-dark, #02486e);
}
.bc-gray-lighter {
    background-color: var(--gray-lighter, #d4d4d4);
}
.placeholder {
    background-color: #e3e3e3;
    block-size: 200px;
    border: 1px solid #000;
    display: grid;
    place-items: center;
}
.link-wrap {
    margin-bottom: 1rem;
}

/* Grid */
.container {
    margin-inline: auto;
    max-inline-size: 1200px;
    padding-inline: 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    margin-block-start: 0;
}
h1 {
    font-size: 2.5rem;
    line-height: 1.2em;
}
h2 {
    font-size: 1.8rem;
    line-height: 1.2em;
    margin-block-end: 0.75em;
}
h3 {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-block-end: 0.75em;
}
ul {
    list-style-type: disc;
    list-style-position: inside;
}
strong {
    font-weight: 700;
}

/* Header */
.header {
    padding-block: 20px;
}
.header__logo {
    inline-size: 350px;
}
.header__top-bar {
    margin-bottom: 20px;
}
.header__nav a:not(:first-child) {
    margin-inline-start: 2rem;
}
.header__social-icon,
.footer__social-icon {
    max-inline-size: 18px;
}
.header__social-item:not(:first-child) {
    margin-inline-start: 0.5rem;
}
.header__social-item:hover {
    text-decoration: none;
}

/* Sections */
.section {
    padding-block: 50px;
}
.section a {
    color: var(--orange, #ef5e2d);
    text-decoration: underline;
}
.column-wrapper {
    gap: 90px;
}
.column-wrapper--2 {
    gap: 40px;
}
.column-wrapper > div {
    flex: 1;
    position: relative;
    z-index: 50;
}
.column-wrapper > div:not(.has-number):not(.no-flex) {
    display: flex;
}
.column-wrapper > div:not(.has-number),
.column-wrapper > div:not(.has-number) > * {
    align-items: center;
    position: relative;
    z-index: 60;
}
.has-number {
    scroll-margin-top: 30px;
}
.has-number:before {
    content: attr(data-number);
    color: var(--gray, #c1bfbe);
    display: block;
    font-size: 8.3rem;
    font-weight: 700;
    position: absolute;
    z-index: -1;
    top: 4px;
    left: -58px;
}

/* Title */
.section--title {
    background-image: url("../img/houses.webp");
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: contain;
}
.section--title p {
    font-size: 1.5rem;
}
.container--title {
    align-items: center;
    display: flex;
    gap: 90px;
}
.container--title h1 {
    position: relative;
}
.container--title h1:after {
    background-color: var(--white, #fff);
    content: "";
    height: 100px;
    width: 16px;
    position: absolute;
    right: calc((45px - 8px) * -1);
    top: calc(50% - 50px);
}

/* Quick Links */
.section--quick-links {
    padding-block-end: 0;
}

/* Tabs */
.tab-header {
    cursor: pointer;
    font-family: "Raleway", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    padding-block: 25px;
    padding-inline-end: 60px;
    position: relative;
}
.tab-header:after {
    content: "";
    background-image: url("../img/chev.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    display: block;
    width: 30px;
    height: 40px;
    right: 20px;
    top: calc(50% - 15px);
    transform: rotate(-90deg);
}
.tab-header--white:after {
    background-image: url("../img/chev-white.svg");
}
.tab-body {
    max-height: auto;
    padding-block-start: 50px;
}
.section--closed {
    cursor: pointer;
    padding: 0;
}
.section--closed .tab-body {
    max-height: 0;
    overflow: hidden;
    padding: 0;
}
.section:not(.section--closed) .tab-header {
    padding-block: 0;
}
.section:not(.section--closed) .tab-header:after {
    transform: rotate(90deg);
}

/* Section 1 */
.section--1__links a {
    color: var(--blue, #0b6da9);
    font-weight: normal;
    margin-inline-end: 0.4rem;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}
.section--1__links a:before {
    content: "•";
    color: var(--orange, #ef5e2d);
    margin-inline-end: 0.4rem;
}

/* Section 2 */
.column-wrapper--2 .has-number:before {
    color: #405e81;
}

/* Section 4 */
.section--4 .has-number:before {
    color: var(--gray-lightest, #dbdbdb);
    left: -170px;
}
.section--4 .has-number img {
    align-self: flex-start;
}
.section--4 .column-wrapper {
    gap: 40px;
}
.section--4 .column:first-child {
    flex: 3;
}
.section--4 .column:not(:first-child) {
    flex: 2;
}

/* Section 5 */
.column-wrapper--5 .has-number:before {
    color: #405e81;
}

/* Footer */
.footer {
    padding-block: 50px;
}
.footer__top-row {
    margin-block-end: 15px;
}
.footer__social-item {
    margin-inline-start: 0.75rem;
}
.footer__social-icon {
    display: inline-block;
    aspect-ratio: 1/1;
    object-fit: contain;
    object-position: center;
    inline-size: 18px;
    max-inline-size: 18px;
}

/* Desktop */
@media (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }
    .column-wrapper {
        gap: 20px;
    }
    .column-wrapper > div.has-number:first-child:before {
        left: -18px;
    }
}
@media (max-width: 960px) {
    .container--title {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .section--1 .column-wrapper,
    .section--3 .column-wrapper,
    .section--5 .column-wrapper {
        flex-direction: column;
    }
    .section--2 .column-wrapper,
    .section--4 .column-wrapper {
        flex-direction: column-reverse;
    }
    .has-number:before {
        left: -19px;
    }
    .section--4 .has-number:before {
        top: -13px;
    }
    .section--3 .column-wrapper {
        gap: 0;
    }
    .container--title h1:after {
        display: none;
    }
}
@media (max-width: 767px) {
    .header__logo {
        inline-size: 250px;
    }
}
@media (max-width: 480px) {
    .header__nav a:not(:first-child) {
        margin-inline-start: 1rem;
    }
    .header__socials.ta-right {
        text-align: center;
    }
    .header__bottom-bar {
        align-items: center;
        flex-direction: column;
    }
    .header__bottom-bar a {
        margin-block-end: 1rem;
    }
    .tab-header__title {
        font-size: 1.5rem;
    }
    .footer__top-row {
        flex-direction: column;
        text-align: center;
    }
    .footer__socials.ta-right {
        text-align: center;
        margin-block-start: 10px;
    }
}
