/*
 Theme Name: Smith Consulting Divi Child
 Theme URI: https://smithcon.us
 Description: Child theme for Smith Consulting LLC based on Divi.
 Author: Smith Consulting LLC
 Author URI: https://smithcon.us
 Template: Divi
 Version: 1.0.0
*/

/* Custom CSS starts here */

:root {
    --sc-blue: #2563EB;
    --sc-red: #D62828;
    --sc-dark: #111827;
    --sc-light: #F8FAFC;

    --sc-white: #FFFFFF;
    --sc-white-30: rgba(255,255,255,.3);
    --sc-dark-30: rgba(0,0,0,.3);

    --sc-transition: .3s ease;
    --sc-radius: 4px;
}


body {}

h1,
.et_pb_text h1 {
    font-size: 32px; /* fallback */
    font-size: clamp(32px, 3.5vw, 38px);
}
h2,
.et_pb_text h2 {
    font-size: 32px; /* fallback */
    font-size: clamp(26px, 3.5vw, 30px);
    color: #000;
    font-weight: 600;
}

.heading-divider h2 {
    font-size: 42px; /* fallback */
    font-size: clamp(34px, 3.5vw, 48px);
    color: #000;
    font-weight: 600;
}
.home .et_pb_text {
    line-height: 1.8;
}

body .et_pb_button {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

@media (min-width: 1920px) {
    .et_pb_text {
        font-size: 17px;
    }
}
@media (max-width: 767px) {
    .et_pb_section {
        padding: 20px 0;
    }
    .et_pb_row {
        padding: 20px 0;
    }
}

/* ==========================
   Header Section
   ========================== */

#hdr-sec {
    width: 100%;
    background: #1d1d25;
    padding: 5px 0;
}
.home #hdr-sec {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

#hdr-sec .et_pb_row {
    width: 90%;
    max-width: 1440px;
    padding: 0;
}

.home #hdr-sec a,
#sc-hero p {
    color: var(--sc-light);
}
#sc-logo {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}
.home #sc-logo {
    filter: brightness(0) invert(1);
}


/* ==========================
   Hero Section
   ========================== */

#sc-hero {
    min-height: clamp(650px, 52vw, 880px);
    background-size: 55%;
    background-position: right 10% center;
    padding-top: 0;
    padding-bottom: clamp(70px, 7vw, 120px);
    justify-content: center;
}
/* Hero section background image behavior on large displays */


#sc-hero .et_pb_row {
    width: 90%;
    max-width: 1440px;
    padding-top: 7vw;
    /*padding-top: clamp(90px, 9vw, 140px);*/
}
#sc-hero .hero-title{
    width: 47%;
    max-width: 560px;
}

#sc-hero h1 {
    font-size: 56px; /* fallback */
    font-size: clamp(36px, 4.2vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    display: inline-block;
}
#sc-hero .sc-blue2 {
    display: inline-block;
}
#sc-hero .sc-blue2::after {
    content: "";
    display: block;
    width: calc(100% + 30px);
    height: 5px;
    background: var(--sc-white-30);
    position: relative;
    transform: translateY(15px);
}
.sc-blue,
.sc-blue2 {
    color: var(--sc-blue);
}
#sc-hero .hero-text {
    max-width: 45%;
}
#sc-hero p {
    font-size: 18px; /* fallback */
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.65;
    margin-bottom: 0;
}

@media (max-width: 980px) {
    #sc-logo {
        max-width: 155px;
    }
    #sc-hero {
        min-height: auto;
        padding: 90px 0 70px;
        background-position: right 10% center;
    }

    #sc-hero .hero-title{
        width: 47%;
        max-width: 554px;
    }
    #sc-hero .hero-text {
        max-width: 45%;
    }
}
@media (max-width: 767px) {
    #sc-hero {
        padding: 70px 0 40px;
    }
    #sc-hero .et_pb_column {
        row-gap: 0;
    }
    #sc-hero p {
        font-size: 15px; 
        line-height: 1.5;
    }
}
@media (max-width: 600px) {
    #sc-hero {
        background-image: none !important;
    }
    #sc-hero .hero-title,
    #sc-hero .hero-text {
        width: 100%;
        max-width: 100%;
    }
    
    #sc-hero h1 {
        font-size: 40px;
    }

    #sc-hero p {
        font-size: 15px;
    }
}
@media (min-width: 1920px) {
    #sc-hero {
        background-size: clamp(500px, 50vw, 900px) auto;
        background-position: calc(50% + 360px) center;
        background-repeat: no-repeat;
    }
}

/* Home page */

.heading-divider h2 {
    display: inline-block;
}
.heading-divider h2::after {
    content: "";
    display: block;
    width: calc(100% + 30px);
    height: 4px;
    background: var(--sc-dark-30);
    position: relative;
    transform: translateY(-11px);
}
.light h2::after {
    background: var(--sc-white-30);
}
@media (max-width: 767px) {
    .heading-divider h2::after {
        height: 4px;
        transform: translateY(-5px);
    }
}

/* =========================
   ABOUT SECTION STACK ORDER
   ========================= */

#about .col2 .et_pb_image {
    max-width: 350px;
}
@media (max-width: 980px) {

    #about .about-row {
        display: flex;
        flex-direction: column;
    }

    /* About heading/image column first */
    #about .col2 {
        order: 1;
        margin-bottom: 0;
    }

    /* Paragraph/text column second */
    #about .col1 {
        order: 2;
    }
    /* remove image */
    #about .col2 .et_pb_image {
        display: none;
    }
}

/* srvcs, why, and featured Section */
.why-row .col1,
.featured-img-row {
    align-items: center;
}
.why-row .col1 .et_pb_image {
    max-width: 400px;
}

.featured-img-row {
    padding-top: 0;
}


/* Desktop */

@media screen and (min-width: 981px) {
    .srvcs-row .col3 {
        padding-top: 4%;
    }
    .featured-img-row .col1 {
        transform: translateY(-30px);
    }
}
/* Tablet and below */
@media screen and (max-width: 980px) {
    .featured-img-row {
        display: flex;
    }
}

/* Phone */
@media screen and (max-width: 767px) {
    .featured-img-row {
        flex-direction: column;
    }
     .why-row .col1 {
        order: 2;
    }
    .featured-img-row .col1,
    .featured-img-row .col2 {
        max-width: 350px;
    }
}
/* Contact Section */

/* =========================
   CONTACT CTA SECTION
   ========================= */

/* Desktop layout */
#ctc .ctc-row {
    display: flex;
    align-items: stretch;
}

/* CTA column */
#ctc .col2 {
    background-position: center 25%;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 60px 30px;
}

/* Dark overlay on background image */
#ctc .col2::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.60);
    z-index: 1;
}

/* Place content above overlay */
#ctc .col2 .et_pb_text {
    position: relative;
    z-index: 2;

    color: #fff;
    font-size: clamp(64px, 8vw, 140px);;
    font-weight: 800;
    line-height: 0.95;
    text-align: center;
}

/* Remove default paragraph spacing if needed */
#ctc .col2 .et_pb_text p {
    margin-bottom: 0;
    color: inherit;
}

/* =========================
   TABLET & PHONE
   CTA ABOVE FORM
   ========================= */

@media (max-width: 980px) {

    #ctc .ctc-row {
        display: flex;
        flex-direction: column;
    }

    #ctc .col2 {
        order: 1;
        min-height: 150px;
        padding: 30px;
    }

    #ctc .col1 {
        order: 2;
    }

    #ctc .col2 .et_pb_text {
        font-size: clamp(42px, 8vw, 72px);
    }
}

/* Contact Form */

.forminator-ui#forminator-module-110.forminator-design--default .forminator-label {
    font-size: 13px !important;
    text-transform: uppercase;
    color: #bcbcbc !important;
}
.forminator-ui#forminator-module-110.forminator-design--default #textarea-1 .forminator-label {
    display: inline-block;
}
.forminator-ui#forminator-module-110.forminator-design--default .forminator-description {
    display: inline-block;
    float: right;
    margin-bottom: 0 !important;
    color: #aaa;
    line-height: inherit;
}

/*  Footer  */

footer .et_pb_section {
    padding: 10px 0;
}

footer .et_pb_text,
footer .et_pb_text a {
    color: #d4d4d4;
    font-size: 14px;
}

/* 404 page */

.custom-404-text {
  text-align: center;
  padding: 80px 20px;
  font-size: 1.1rem;
}

.custom-404-text .error-code {
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 800;
  line-height: 1;
}

.custom-404-text .error-message {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 500;
  margin-top: 10px;
