/* =========================================================================
   WaveFire marketing site
   Layout uses the Bootstrap 5 grid; everything brand-specific lives here.
   ========================================================================= */

:root {
    --wf-orange: #f37c20;
    --wf-yellow: #ffba05;
    --wf-blue: #0399d6;
    --wf-blue-dark: #0c71c3;
    --wf-text: #4d4d4d;
    /* Darker tints of the brand colors for small text; each passes WCAG AA (4.5:1) on white. */
    --wf-nav-text: #2b2b2b;
    --wf-orange-text: #b85410;
    --wf-orange-deep: #9a450c;
    --wf-blue-text: #0067b8;
    --wf-gray: #efeff4;
    --wf-overlay: rgba(3, 153, 214, 0.85);
    --wf-shadow: 0 0 60px rgba(71, 74, 182, 0.12);
    --wf-font: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    --wf-header-height: 105px;
}

/* ---------- Base ---------- */

html {
    scroll-padding-top: var(--wf-header-height);
}

body {
    font-family: var(--wf-font);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.5;
    color: var(--wf-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wf-font);
    font-weight: 400;
    line-height: 1.1;
    color: var(--wf-orange);
    margin: 0 0 10px;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

strong, b {
    font-weight: 700;
}

a {
    color: var(--wf-orange);
    text-decoration: none;
}

a:hover {
    color: var(--wf-orange);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 80%;
    max-width: 1080px;
    padding-left: 0;
    padding-right: 0;
}

/* ---------- Header / navigation ---------- */

.site-header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 1030;
}

.site-header .navbar {
    /* Bootstrap pads nav links horizontally by default; spacing comes from the item margins instead. */
    --bs-navbar-nav-link-padding-x: 0;
    min-height: var(--wf-header-height);
    padding: 0;
}

.site-header .navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.site-header .navbar-brand img {
    height: 57px;
    width: auto;
}

.site-header .navbar-toggler {
    border: 0;
    padding: 4px;
    font-size: 30px;
    color: var(--wf-blue);
}

.site-header .navbar-toggler:focus {
    box-shadow: none;
}

.site-header .nav-link {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--wf-nav-text);
    line-height: 14px;
    padding: 10px 0;
    text-decoration: none;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

/* Hover and current page are shown by an underline as well as color, so the state doesn't rely on color alone. */
.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: var(--wf-blue-text);
    text-decoration-line: underline;
}

.site-header .nav-link.active {
    color: var(--wf-orange-text);
    text-decoration-line: underline;
    text-decoration-color: var(--wf-orange);
}

.site-header .nav-link:focus-visible,
.site-header .submenu a:focus-visible {
    outline: 2px solid var(--wf-blue-text);
    outline-offset: 4px;
    border-radius: 2px;
    box-shadow: none;
}

/* .navbar-nav keeps this specific enough to beat Bootstrap's nav-link padding rule, hovered or not. */
.site-header .navbar-nav .nav-link-demo {
    color: #fff;
    background: var(--wf-orange);
    border-radius: 30px;
    padding: 10px 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

/* Matches the site's other orange buttons (.btn-pill). */
.site-header .navbar-nav .nav-link-demo:hover,
.site-header .navbar-nav .nav-link-demo:focus {
    color: #fff;
    background: var(--wf-yellow);
    text-decoration: none;
}

.site-header .nav-link-login,
.site-header .nav-link-login:hover {
    color: var(--wf-blue-text);
}

.site-header .submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .submenu a {
    display: block;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--wf-nav-text);
    padding: 6px 20px;
}

.site-header .submenu a:hover {
    color: var(--wf-blue-text);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* The deeper orange keeps 4.5:1 on the gray dropdown background. */
.site-header .submenu a.active {
    color: var(--wf-orange-deep);
    font-weight: 600;
}

@media (min-width: 992px) {
    .site-header .navbar-nav {
        align-items: center;
    }

    .site-header .nav-item + .nav-item {
        margin-left: 27px;
    }

    .site-header .has-submenu {
        position: relative;
    }

    /* Desktop dropdowns open on hover, like the original theme. */
    .site-header .submenu {
        position: absolute;
        top: calc(100% + 20px);
        left: -20px;
        width: 240px;
        padding: 5px 0 3px;
        background: var(--wf-gray);
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s, visibility 0.2s;
    }

    .site-header .submenu::before {
        content: "";
        position: absolute;
        left: 11px;
        top: -17px;
        border-style: solid;
        border-color: transparent transparent var(--wf-gray) transparent;
        border-width: 0 20px 17px 20px;
    }

    /* Invisible bridge so the menu doesn't close while the pointer crosses the gap. */
    .site-header .submenu::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -20px;
        height: 20px;
    }

    .site-header .has-submenu:hover > .submenu,
    .site-header .has-submenu:focus-within > .submenu {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        text-align: center;
        padding: 20px 0 30px;
    }

    .site-header .nav-link {
        display: inline-block;
        padding: 15px 0;
        letter-spacing: 1px;
    }

    .site-header .navbar {
        min-height: 80px;
    }

    .site-header .navbar-brand img {
        height: 42px;
    }

    .site-header .nav-link-demo {
        margin: 5px 0;
        padding: 10px 15px;
    }

    .site-header .submenu a {
        font-size: 14px;
        letter-spacing: 0;
        text-transform: capitalize;
        padding: 0 0 12px;
    }
}

/* ---------- Buttons ---------- */

.btn-pill {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
    text-transform: uppercase;
    color: #fff;
    background: var(--wf-orange);
    border: 1px solid var(--wf-orange);
    border-radius: 30px;
    padding: 0.75em 2.25em;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-pill::after {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8em;
    margin-left: 0.6em;
}

.btn-pill:hover,
.btn-pill:focus {
    color: #fff;
    background: var(--wf-yellow);
    border-color: var(--wf-yellow);
    text-decoration: none;
}

.btn-pill-blue {
    background: var(--wf-blue);
    border-color: var(--wf-blue);
}

.btn-pill-sm {
    font-size: 14px;
    padding: 6px 15px;
}

.btn-pill-sm::after {
    content: none;
}

.btn-group-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 12%;
}

/* ---------- Sections ---------- */

.section {
    padding: 81px 0;
}

.section-gray {
    background: var(--wf-gray);
}

.section-tight {
    padding: 54px 0;
}

/* Short blue rule under headings. */
.divider {
    width: 40px;
    height: 0;
    border-top: 4px solid var(--wf-blue-dark);
    margin: 10px 0 30px;
}

.text-center .divider,
.divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* Bold orange heading used beside illustrations ("200 Hours Saved"). */
.heading-feature {
    font-size: 35px;
    font-weight: 800;
}

/* Centered orange section title ("Manage risks across the entire enterprise..."). */
.heading-section {
    font-size: 35px;
    font-weight: 400;
}

.heading-section strong {
    font-weight: 700;
}

.lead-narrow {
    max-width: 790px;
    margin: 0 auto;
}

/* ---------- Hero banners ---------- */

.hero {
    --hero-image: url(../images/page-hero-bg.jpg);
    position: relative;
    color: #fff;
    text-align: center;
    padding: 142px 0;
    background-color: var(--wf-blue);
    background-image: linear-gradient(var(--wf-overlay), var(--wf-overlay)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero h1 {
    color: #fff;
    font-size: 53px;
    font-weight: 700;
}

.hero .hero-subtitle {
    color: #fff;
    font-size: 44px;
    font-weight: 400;
    max-width: 845px;
    margin: 10px auto 0;
}

.hero .hero-tagline {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    margin: 47px 0 0;
}

.hero .btn-pill,
.hero .btn-group-center {
    margin-top: 54px;
}

.hero-home {
    --hero-image: url(../images/home-hero-bg.jpg);
    padding: 172px 0 252px;
}

.hero-about {
    --hero-image: url(../images/about-hero.jpg);
}

/* Diagonal white edge along the bottom of the home hero. */
.hero-home::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M1280 140V0H0l1280 140z'/%3E%3C/svg%3E") no-repeat;
    background-size: 100% 100px;
    transform: scaleY(-1);
}

/* ---------- Carousels (home page) ---------- */

.wf-carousel .carousel-control-prev,
.wf-carousel .carousel-control-next {
    width: 50px;
    opacity: 1;
    font-size: 22px;
    color: var(--wf-blue);
}

.wf-carousel .carousel-control-prev:hover,
.wf-carousel .carousel-control-next:hover {
    opacity: 0.7;
}

.stat-slide {
    padding: 81px 0;
}

.stat-slide .stat-icon {
    width: 64px;
    margin-bottom: 25px;
}

.testimonials .carousel-control-prev,
.testimonials .carousel-control-next {
    color: #fff;
}

.testimonial-slide {
    min-height: 625px;
    display: flex;
    align-items: center;
    padding: 81px 0;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.testimonial-slide.bg-1 { background-image: url(../images/testimonial-bg1.jpg); }
.testimonial-slide.bg-2 { background-image: url(../images/testimonial-bg2.jpg); }
.testimonial-slide.bg-3 { background-image: url(../images/testimonial-bg3.jpg); }

.testimonial-slide h3 {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 30px;
}

.testimonial-slide p {
    font-size: 19px;
}

.testimonial-slide .container {
    width: 80%;
}

/* ---------- Cards ---------- */

/* Rows of cards on gray that overlap the white section above them. */
.card-overlap {
    padding: 0 0 110px;
}

.card-overlap .row {
    margin-top: -80px;
}

.wf-card {
    background: #fff;
    padding: 30px;
    font-size: 17px;
    line-height: 1.6;
    height: 100%;
    box-shadow: var(--wf-shadow);
}

.wf-card h3,
.wf-card h4 {
    color: var(--wf-blue);
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 20px;
}

.wf-card ul {
    padding-left: 1.1em;
    margin: 0;
}

.wf-card li + li {
    margin-top: 0.6em;
}

/* Round orange icon badge in card headings. */
.icon-badge {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    text-align: center;
    font-size: 19px;
    color: var(--wf-orange);
    background: var(--wf-gray);
    margin-right: 4px;
}

/* Home page product cards: the "Learn More" bar sits flush along the bottom. */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.product-card .wf-card {
    flex: 1;
    height: auto;
    box-shadow: none;
}

.btn-bar {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: var(--wf-blue);
    padding: 5px 18px;
    transition: background-color 0.2s;
}

.btn-bar:hover {
    color: #fff;
    background: var(--wf-yellow);
    text-decoration: none;
}

/* Blue gradient panel ("Scaling Risk Management...", framework lists). */
.panel-blue {
    color: #fff;
    background: linear-gradient(90deg, var(--wf-blue-dark) 0%, var(--wf-blue) 100%);
    padding: 50px 45px;
    font-size: 17px;
    line-height: 1.4;
}

.panel-blue h3,
.panel-blue h4 {
    color: #fff;
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 20px;
}

.panel-blue ul {
    padding-left: 1.1em;
    margin: 0;
}

.panel-blue li + li {
    margin-top: 0.4em;
}

.panel-blue .btn-pill {
    margin-top: 30px;
}

/* Stacked white benefit tiles beside the blue panel on the home page. */
.benefit {
    background: #fff;
    padding: 30px 20px;
    font-size: 17px;
    line-height: 1.4;
    box-shadow: var(--wf-shadow);
}

.benefit + .benefit {
    margin-top: 30px;
}

.benefit h3 {
    color: var(--wf-blue);
    font-size: 23px;
    font-weight: 700;
}

/* ---------- Solution page framework rows ---------- */

.framework-row + .framework-row {
    margin-top: 54px;
}

.framework-row .wf-card {
    padding: 40px;
}

.framework-row .wf-card h2 {
    color: var(--wf-blue);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.framework-row .btn-pill {
    margin-top: 30px;
}

/* ---------- Accordions (framework details) ---------- */

.wf-accordion details {
    background: var(--wf-gray);
    padding: 40px 60px;
    font-size: 17px;
}

.wf-accordion details + details {
    margin-top: 30px;
}

.wf-accordion summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding-right: 40px;
    color: var(--wf-blue);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.wf-accordion summary::-webkit-details-marker {
    display: none;
}

.wf-accordion summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s;
}

.wf-accordion details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.wf-accordion .accordion-body {
    padding: 20px 0 0;
}

/* ---------- Testimonial band (HIPAA page) ---------- */

.quote-band {
    color: #fff;
    padding: 170px 0;
    background: url(../images/testimonial-bg3.jpg) center / cover;
}

.quote-band h2 {
    color: #fff;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* ---------- About page ---------- */

.section-pattern {
    background: #fff url(../images/pagebg.png) center / cover;
}

.join-team {
    --hero-image: url(../images/jointheteam.jpg);
    text-align: left;
    padding: 150px 0 87px;
}

.join-team h2 {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Diagonal edge along the top of the "Join the WaveFire Team" band. */
.join-team::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cpath fill='%23efeff4' d='M1280 140V0H0l1280 140z'/%3E%3C/svg%3E") no-repeat;
    background-size: 100% 100px;
}

/* ---------- Resources ---------- */

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    padding: 19px 19px 40px;
    text-align: center;
    box-shadow: var(--wf-shadow);
}

.article-card img {
    margin-bottom: 20px;
}

.article-card h2 {
    font-size: 23px;
    margin-bottom: 10px;
}

.article-card h2 a {
    color: var(--wf-orange);
}

.article-meta {
    font-size: 14px;
    margin-bottom: 10px;
}

.article-card .article-excerpt {
    font-size: 16px;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 30px;
}

.article-card .btn-pill {
    align-self: center;
}

.article {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
}

.article h1 {
    font-size: 30px;
}

.article-image {
    width: 100%;
    margin: 20px 0 30px;
}

.article h4,
.article h5 {
    font-size: 22px;
    margin: 0 0 20px;
}

.article blockquote {
    border-left: 5px solid var(--wf-orange);
    padding-left: 20px;
    margin: 0 0 1em;
    font-style: italic;
}

.article ol li,
.article ul li {
    margin-bottom: 10px;
}

.article .footnotes {
    font-size: 14px;
    word-break: break-word;
}

/* ---------- Basic text pages (privacy, terms) ---------- */

.basic-page {
    font-size: 17px;
    line-height: 1.6;
}

.basic-page h1 {
    font-size: 30px;
    margin-bottom: 30px;
}

.basic-page ul {
    margin-bottom: 1em;
}

/* ---------- Contact ---------- */

.contact-aside h2 {
    color: var(--wf-blue);
    font-size: 23px;
    font-weight: 800;
}

.hs-form-wrap {
    margin-top: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--wf-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
    padding: 81px 0;
}

.site-footer a {
    color: #fff;
}

.footer-links,
.footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    font-size: 16px;
}

/* ---------- Cookie notice ---------- */

.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-notice p {
    margin: 0 0 8px;
}

.cookie-notice-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 12px;
}

.cookie-notice-actions a {
    color: var(--wf-blue-dark);
}

.cookie-notice-accept {
    border: 0;
    color: #fff;
    background: #5a9e2f;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 400;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    body {
        font-size: 17px;
    }

    .section {
        padding: 54px 0;
    }

    .hero {
        padding: 90px 0;
    }

    .hero-home {
        padding: 100px 0 150px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero .hero-subtitle {
        font-size: 28px;
    }

    .hero .hero-tagline,
    .testimonial-slide h3,
    .quote-band h2,
    .join-team h2 {
        font-size: 28px;
    }

    .heading-feature,
    .heading-section {
        font-size: 28px;
    }

    .card-overlap .row {
        margin-top: -40px;
    }

    .panel-blue {
        padding: 40px 30px;
    }

    .wf-accordion details {
        padding: 30px;
    }

    .testimonial-slide {
        min-height: 0;
    }

    .testimonial-slide .container {
        width: 75%;
    }
}

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 33px;
    }

    .hero .hero-subtitle {
        font-size: 22px;
    }

    .heading-feature,
    .heading-section {
        font-size: 24px;
    }

    .wf-accordion summary {
        font-size: 18px;
    }

    .quote-band {
        padding: 90px 0;
    }
}
