/* ========================================================================
   TailorWell Corporate Site
   Bootstrap Grid + Utilities handle layout; this file is site-specific.
   ======================================================================== */

/* --- Fonts --- */

@font-face {
    font-family: 'Gloock';
    src: url('/fonts/Gloock-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Variable.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Italic-Variable.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
}

/* --- Custom properties --- */

:root {
    --sans: "Inter", sans-serif;
    --serif: "Gloock", serif;
    --normal: 400;
    --font-size-xsmall: 12px;
    --font-size-small: 15px;
    --font-size-small-plus: 18px;
    --font-size-medium: 36px;
    --font-size-medium-plus: 42px;
    --font-size-large: 45px;
    --font-size-xlarge: 54px;
    --font-size-chonk: 66px;
    --wheatgrass: #346455;
    --woodgrain: #9D6D2A;
    --meadowsky: #508F95;
    --thunder: #154144;
    --haze: #f8f5f2;
    --white: #ffffff;
    --gray-dark: #333;
    --black: #000000;
    --radius: 12px;
    --indent: -9999px;
    --max-width: 1366px;
}

/* --- Reset & base --- */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    background: var(--haze);
    color: var(--black);
    font-size: 1em;
    font-weight: var(--normal);
    line-height: 1em;
}

body {
    font-family: var(--sans);
    margin: 0;
    padding: 0;
}

::selection {
    background: var(--thunder);
    color: var(--haze);
    text-shadow: none;
}

ul, ol {
    list-style: none;
    padding: 0;
}

img {
    border-radius: var(--radius);
    object-fit: cover;
    display: block;
    width: 100%;
    vertical-align: middle;
}

/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
    color: var(--wheatgrass);
    font-family: var(--serif);
    font-weight: var(--normal);
    line-height: 1em;
}

p {
    line-height: 21px;
}

/* --- Buttons --- */

.btn {
    background: var(--woodgrain);
    border: 2px solid var(--woodgrain);
    border-radius: 10em;
    color: var(--haze);
    display: block;
    margin: 1em auto;
    max-width: 210px;
    padding: 0.75em;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s linear;
    width: 80%;
}

.btn:hover {
    opacity: 0.8;
}

.btn.invert {
    background: transparent;
    color: var(--woodgrain);
}

.btn.invert:hover {
    background: var(--woodgrain);
    color: var(--haze);
    opacity: 1;
}

.btn.dark {
    border-color: var(--thunder);
    color: var(--thunder);
}

.btn.dark:hover {
    background: var(--thunder);
    color: var(--haze);
    opacity: 1;
}

.btn.light {
    border-color: var(--haze);
    color: var(--haze);
}

.btn.light:hover {
    background: var(--haze);
    color: var(--thunder);
    opacity: 1;
}

/* --- Layout structure --- */

main, header, article, footer {
    margin: auto;
    position: relative;
    width: 100%;
}

/* --- Header --- */

.header {
    background: var(--haze);
    height: 70px;
    position: fixed;
    z-index: 101;
}

.header .logo {
    background: url("/img/tw-logo.svg") no-repeat center center;
    background-size: contain;
    height: 30px;
    left: 0.5em;
    margin: 0;
    position: absolute;
    text-indent: var(--indent);
    top: 50%;
    transform: translateY(-50%);
    width: 170px;
}

.header .logo a {
    display: block;
    height: 100%;
    width: 100%;
    text-indent: var(--indent);
}

.header nav {
    display: none;
}

.header #toggle {
    background: url("/img/bars-solid.svg") no-repeat center center;
    background-size: 33px 33px;
    display: block;
    height: 40px;
    right: 1em;
    position: absolute;
    text-indent: var(--indent);
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    z-index: 101;
}

.header #toggle.close {
    background-image: url("/img/xmark-solid.svg");
    background-size: 40px 40px;
}

/* Header mobile-open state */

.header.on .nav-contain {
    background: var(--thunder);
    position: fixed;
    inset: 0;
    z-index: 101;
    transition: background 0.2s linear;
}

.header.on .logo {
    background-image: url("/img/tw-logo-light.png");
    background-size: contain;
    height: 70px;
    left: 50%;
    transform: translateX(-50%);
    top: 90px;
    width: 200px;
}

.header.on #toggle {
    transform: translateY(0);
    top: 1em;
}

.header.on nav {
    display: block;
}

.header.on nav ul {
    left: 50%;
    position: absolute;
    top: 190px;
    transform: translateX(-50%);
    width: 100%;
}

.header.on nav ul li {
    padding: 1.5em;
}

.header.on nav ul li a {
    border-bottom: 1px solid var(--gray-dark);
    color: var(--white);
    display: block;
    font-size: var(--font-size-small-plus);
    padding-bottom: 1.25em;
    text-decoration: none;
    text-align: center;
}

/* --- Footer --- */

.footer {
    padding: 9em 0 3em;
    background: var(--thunder);
}

.footer img {
    max-width: 270px;
}

.footer a {
    color: var(--white);
    display: block;
    text-decoration: none;
}

.footer a.phone {
    border-radius: 10em;
    background: var(--meadowsky);
    font-size: var(--font-size-small-plus);
    margin: 1.5em auto;
    padding: 1em;
}

.footer p {
    color: var(--haze);
}

.footer p span {
    display: block;
}

.footer p.legal {
    color: var(--meadowsky);
    font-size: var(--font-size-xsmall);
    margin: 6em auto;
}

.footer ul {
    margin: 0;
}

.footer ul li {
    margin-bottom: 2em;
}

.footer ul li a {
    padding: 1em;
}

.footer ul.social li a.icon {
    height: 60px;
    text-indent: var(--indent);
    width: 60px;
    background-repeat: no-repeat;
    background-position: center center;
}

.footer ul.social li a.icon.mail {
    background-image: url("/img/mail.svg");
    background-size: 48px 48px;
}

.footer ul.social li a.icon.linkedin {
    background-image: url("/img/linkedin.svg");
    background-size: 40px 47px;
}

/* ========================================================================
   SHARED SECTION PATTERNS
   ======================================================================== */

/* Base section */

.section {
    margin: auto;
    padding: 3em 0;
    width: 93%;
}

.section:first-of-type {
    padding-top: 120px;
}

.section.full {
    width: 100%;
}

.section.full .inset-content {
    margin: auto;
    max-width: 93%;
    width: 100%;
}

/* Default section heading size — most headings use this */

.section h2, .section h3, .section h4, .section h5, .section h6 {
    font-size: var(--font-size-medium);
}

.heading-lg {
    font-size: var(--font-size-medium-plus) !important;
}

/* Centered intro hgroup — used on most page openers */

.section-intro {
    text-align: center;
    margin-bottom: 4em;
}

/* Teal background sections */

.bg-teal {
    background: var(--meadowsky);
}

.bg-teal h3, .bg-teal h4, .bg-teal h5, .bg-teal h6 {
    color: var(--thunder);
}

.bg-teal a {
    color: var(--black);
}

/* Hero background image sections */

.hero-bg {
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    min-height: 350px;
}

/* Absolute-centered overlay — used on hero and image sections */

.overlay-center {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 87%;
}

/* Light text on dark/image backgrounds */

.light-text,
.light-text h2, .light-text h3, .light-text h4, .light-text h5, .light-text h6,
.light-text p {
    color: var(--haze);
}

/* Carriers logo grid */

.carriers img {
    margin: auto;
    max-width: 200px;
    opacity: 0.6;
}

/* Error page */

.error-page {
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-page hgroup {
    max-width: 500px;
}

.error-page h2 {
    font-size: var(--font-size-medium-plus);
    margin-bottom: 0.5em;
}

.error-page p {
    margin-bottom: 2em;
}

/* ========================================================================
   HOME PAGE — section-specific overrides only
   ======================================================================== */

.home .hero hgroup strong {
    font-family: var(--serif);
    font-size: var(--font-size-small-plus);
}

.home .hero hgroup h2 {
    margin: 0.25em auto 1em;
}

.home .hero [class*="col-"] img,
.home .brokers [class*="col-"] img {
    margin: 0 auto 1em;
    max-height: 300px;
}

.home .hero p {
    margin: 3em auto;
    text-align: center;
}

.home .service-model hgroup {
    margin: 2em auto;
}

.home .service-model p {
    margin-bottom: 2em;
}

.home .brokers .btn {
    margin: 3em auto;
}

.home .plans {
    padding-top: 0;
}

.home .plans hgroup {
    background: var(--meadowsky);
    border-radius: 0.5em;
    margin: 3em auto 0;
    padding: 2em 1em;
}

.home .plans h5.light-text {
    font-size: 27px;
    margin: 0 auto 1.75em;
    text-align: center;
}

.home .engine .btn {
    margin-top: 3em;
}

.home .carrier-logos h6 {
    margin-bottom: 0.75em;
}

/* ========================================================================
   PROGRAMS PAGE
   ======================================================================== */

.programs .programs-list .card {
    box-shadow: 0 0 30px #ccc;
    background: var(--white);
    border-radius: var(--radius);
    margin: 3em auto;
    padding: 1.25em;
    text-align: center;
}

.programs .programs-list .card.first {
    margin-top: 6em;
}

.programs .programs-list .card h3,
.programs .programs-list .card h4,
.programs .programs-list .card h5 {
    font-size: 33px;
    margin: 0;
    min-height: 80px;
}

.programs .programs-list .card img {
    margin: 0 auto 1em;
    max-width: 80%;
}

/* ========================================================================
   HOW IT WORKS PAGE
   ======================================================================== */

.how-it-works .do-it-all hgroup {
    padding-bottom: 3em;
}

.how-it-works .difference [class*="col-"] img {
    max-height: 350px;
}

.how-it-works .difference [class*="col-"] hgroup {
    margin-top: 3em;
}

.how-it-works .difference [class*="col-"] hgroup h4 {
    margin-bottom: 0.75em;
}

.how-it-works .difference [class*="col-"] ul {
    list-style: disc;
    margin: 2em auto 3em;
    padding: 0 1.75em;
}

.how-it-works .difference [class*="col-"] ul li {
    line-height: 1.25em;
    margin-bottom: 1em;
}

.how-it-works .transparent-mgmt {
    background-image: url("/img/how-it-works/3.jpg");
    height: 420px;
}

.how-it-works .transparent-mgmt p {
    margin-bottom: 1.75em;
}

.how-it-works .full-circle [class*="col-"] img {
    object-fit: contain;
    min-height: 400px;
    margin: 1em auto;
}

/* ========================================================================
   ABOUT US PAGE
   ======================================================================== */

.about-us .about-hero {
    background-image: url("/img/about/1.jpg");
    background-position: left center;
}

.about-us .team {
    border-bottom: 1px solid #ccc;
    padding-bottom: 3em;
}

.about-us .team .col-12 img {
    margin: 3em auto 6em;
    max-width: 150px;
}

.about-us .team h3,
.about-us .team h4 {
    margin-bottom: 0.75em;
}

.about-us .careers {
    padding-top: 4em;
}

/* ========================================================================
   DESKTOP (992px+)
   ======================================================================== */

@media only screen and (min-width: 992px) {

    /* --- Header desktop --- */

    .header .nav-contain {
        height: 70px;
        margin: auto;
        max-width: var(--max-width);
        position: relative;
        width: 96%;
    }

    .header nav {
        display: block;
    }

    .header nav ul {
        margin: 0;
        padding: 0;
        position: absolute;
        right: 0.5em;
        top: 50%;
        transform: translateY(-50%);
    }

    .header nav ul li {
        display: inline-block;
        margin-left: 1em;
    }

    .header nav ul li a {
        border-bottom: 2px solid transparent;
        color: var(--thunder);
        display: block;
        font-size: 16px;
        padding: 0.5em;
        text-decoration: none;
        transition: border-bottom 0.2s linear;
    }

    .header nav ul li a:hover {
        color: var(--woodgrain);
        border-bottom-color: var(--woodgrain);
    }

    .header nav ul li a.on {
        border-bottom-color: var(--meadowsky);
    }

    .header #toggle {
        display: none;
    }

    /* --- Footer desktop --- */

    .footer a.phone {
        border-radius: 0;
        background: transparent url("/img/phone.svg") no-repeat left center;
        background-size: 23px 23px;
        font-size: 24px;
        margin: 1.5em 0;
        padding: 1em 1em 1em 36px;
    }

    .footer p.legal {
        font-size: var(--font-size-small);
        margin: 3em 0 0;
    }

    .footer ul.social li a.icon {
        height: 45px;
        width: 45px;
    }

    .footer ul.social li a.icon.mail {
        background-size: 32px 32px;
    }

    .footer ul.social li a.icon.linkedin {
        background-size: 27px 31px;
    }

    /* --- Shared patterns desktop --- */

    .section {
        max-width: var(--max-width);
        width: 96%;
    }

    .section:first-of-type {
        padding-top: 150px;
    }

    .section.full {
        max-width: inherit;
    }

    .section-intro {
        margin: auto auto 6em;
        max-width: 55%;
    }

    .heading-lg {
        font-size: var(--font-size-large) !important;
    }

    .hero-bg {
        min-height: 500px;
    }

    .overlay-center {
        max-width: 55%;
    }

    /* --- Home desktop --- */

    .home .hero .section-intro {
        margin-bottom: 9em;
        max-width: 600px;
        width: 45%;
    }

    .home .hero [class*="col-"] img {
        max-height: 538px;
    }

    .home .hero p {
        margin: 6em auto;
    }

    .home .service-model {
        margin: 3em auto 9em;
        padding: 0;
        height: 450px;
    }

    .home .service-model [class*="col-"]:first-child {
        position: relative;
    }

    .home .service-model [class*="col-"]:first-child img {
        display: block;
        height: 531px;
        margin-top: -42px;
        width: auto;
        float: right;
    }

    .home .service-model .badge {
        background: url("/img/tw-badge-dark.svg") no-repeat center center;
        background-size: contain;
        min-height: 450px;
    }

    .home .service-model .badge hgroup {
        padding: 6em;
    }

    .home .service-model .badge p {
        font-size: 15px;
    }

    .home .brokers {
        margin: 12em auto 15em;
    }

    .home .brokers [class*="col-"]:last-child {
        position: relative;
    }

    .home .brokers [class*="col-"] img {
        height: 538px;
        max-height: 538px;
        width: 384px;
    }

    .home .brokers [class*="col-"] img.offset-right {
        margin-top: -60px;
        margin-right: -90px;
        z-index: 99;
    }

    .home .brokers [class*="col-"] img.offset-left {
        position: absolute;
        right: 21%;
        top: 120px;
    }

    .home .brokers .btn {
        margin-top: 6em;
    }

    .home .plans {
        border-top: 1px solid var(--meadowsky);
        padding-top: 9em;
    }

    .home .plans h4 {
        font-size: var(--font-size-large);
    }

    .home .plans hgroup {
        background: url("/img/home/section-4-bg.jpg") no-repeat center center;
        background-size: cover;
        height: 554px;
        position: relative;
        margin-top: 6em;
    }

    .home .plans .hgroup-contain {
        width: 63%;
    }

    .home .plans .hgroup-contain h5 {
        font-size: var(--font-size-large);
        margin-bottom: 0.75em;
    }

    .home .plans .hgroup-contain .btn {
        margin-bottom: 0;
    }

    .home .engine {
        margin: 6em auto 3em;
    }



    .home .carrier-logos {
        margin-bottom: 6em;
    }

    .home .carrier-logos h6 {
        margin-bottom: 3em;
    }

    /* --- Programs desktop --- */

    .programs .programs-list {
        background: url("/img/tw-badge-dark.svg") no-repeat center center;
        background-size: contain;
    }

    .programs .programs-list .section-intro {
        max-width: 60%;
    }

    .programs .programs-list .card {
        box-shadow: 0 0 40px #ccc;
        min-height: 480px;
    }

    .programs .programs-list .card.first {
        margin-top: 3em;
    }

    .programs .programs-list .card img {
        max-width: 54%;
    }

    /* --- How It Works desktop --- */

    .how-it-works .do-it-all {
        height: 500px;
        padding: 0;
    }

    .how-it-works .do-it-all hgroup {
        padding: 8em 3em 0;
    }

    .how-it-works .do-it-all h3 {
        font-size: var(--font-size-medium-plus);
    }

    .how-it-works .do-it-all [class*="col-"] img {
        border-radius: 0;
        height: 500px;
        width: auto;
        float: left;
    }

    .how-it-works .difference {
        background: url("/img/tw-badge-dark.svg") no-repeat top right;
        background-size: 212px 128px;
        margin: 3em auto;
    }

    .how-it-works .difference [class*="col-"] img {
        height: 583px;
        max-height: 583px;
    }

    .how-it-works .difference [class*="col-"] hgroup {
        margin-top: 200px;
    }


    .how-it-works .transparent-mgmt {
        height: 660px;
    }

    .how-it-works .full-circle [class*="col-"] img {
        max-height: 800px;
    }

    /* --- About Us desktop --- */

    .about-us .team {
        padding-bottom: 6em;
    }

    .about-us .team .col-12 img {
        max-width: 212px;
    }

    .about-us .team h3,
    .about-us .team h4 {
        margin: 1em auto 0.75em;
    }

    .about-us .team .about-info {
        padding: 0 2em;
    }

    .about-us .careers {
        padding-top: 7em;
        padding-bottom: 6em;
    }

    .about-us .careers h5 {
        font-size: var(--font-size-chonk);
        padding: 0 2em;
    }
}
