/* Durable Marketing Ad Landing Page Styles */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed header when scrolling to anchor */
#ad-contact-form {
    scroll-margin-top: 100px;
}

/* ===== Ad Landing Header ===== */
.ad-landing-header {
    background-color: #2a3322;
    padding: 12px 0;
}

.ad-landing-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ad-landing-logo img {
    height: 55px;
    width: auto;
}

.ad-landing-header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.ad-landing-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.ad-landing-phone-icon {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    padding: 8px;
}

.ad-landing-phone-text {
    display: flex;
    flex-direction: column;
}

.ad-landing-phone-label {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

.ad-landing-phone-number {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.ad-landing-cta {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2a3322;
    background-color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.ad-landing-cta:hover {
    background-color: #e8e8e8;
    color: #2a3322;
}

/* Ad landing header responsive */
@media (max-width: 767px) {
    .ad-landing-header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .ad-landing-phone-label {
        display: none;
    }

    .ad-landing-phone-number {
        font-size: 18px;
    }

    .ad-landing-cta {
        font-size: 12px;
        padding: 10px 20px;
    }

    .ad-landing-logo img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .ad-landing-header-inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .ad-landing-header-right {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .ad-landing-phone {
        justify-content: center;
    }

    .ad-landing-phone-number {
        font-size: 20px;
        white-space: nowrap;
    }
}

/* Unified background color */
body,
.wrapper,
#content,
#main,
.site-content,
.content-area {
    background-color: #FBF9F6 !important;
}

/* Give text side more room in the banner */
.banner-sec .hmbnr-lst .bnr-lft {
    width: 38%;
}

.banner-sec .hmbnr-lst .bnr-cnt {
    width: 60%;
}

/* Smaller banner heading to accommodate dynamic page titles */
.slc.banner-sec .bnr-cnt .ban-heading {
    font-size: 55px;
}

.slc.banner-sec .bnr-cnt .ban-heading small {
    font-size: 30px;
    letter-spacing: 3px;
    padding-right: 0;
    text-wrap: balance;
}

/* Hide the decorative line next to the small text */
.slc.banner-sec .bnr-cnt .ban-heading small::before {
    display: none;
}

/* Center the banner bottom button and adjust spacing */
.hm-banner-btm-sec .hmbnr-btn {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 30px;
}

/* Two-column wrapper */
.durable-ad-content-wrapper {
    background-color: #FBF9F6;
    padding-top: 40px;
    padding-bottom: 60px;
}

.durable-ad-content-wrapper .container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Flexbox columns: 2/3 content + 1/3 form */
.durable-ad-columns {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Main content area */
.durable-ad-main-content {
    flex: 3;
    min-width: 0;
}

/* Sidebar form */
.durable-ad-sidebar-form {
    flex: 2;
    min-width: 0;
    background-color: #2a3322;
    padding: 30px 25px;
    border-radius: 10px;
    position: sticky;
    top: 120px;
}

/* Form heading styles */
.durable-ad-sidebar-form .text-heading {
    font-family: 'Radley', serif;
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.durable-ad-sidebar-form h6 {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0 0 20px 0;
}

/* Gravity Forms overrides inside sidebar */
.durable-ad-sidebar-form .gform_wrapper {
    margin: 0 !important;
}

.durable-ad-sidebar-form .gform_wrapper input[type="text"],
.durable-ad-sidebar-form .gform_wrapper input[type="email"],
.durable-ad-sidebar-form .gform_wrapper input[type="tel"],
.durable-ad-sidebar-form .gform_wrapper textarea,
.durable-ad-sidebar-form .gform_wrapper select {
    background-color: #fff !important;
    color: #333 !important;
    border: none !important;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 15px;
    width: 100%;
}

.durable-ad-sidebar-form .gform_wrapper .gfield_label {
    color: #fff !important;
    font-size: 14px;
}

.durable-ad-sidebar-form .gform_wrapper .gform_button,
.durable-ad-sidebar-form .gform_wrapper input[type="submit"] {
    background-color: #b5985a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Quattrocento Sans', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.durable-ad-sidebar-form .gform_wrapper .gform_button:hover,
.durable-ad-sidebar-form .gform_wrapper input[type="submit"]:hover {
    background-color: #9a7e45 !important;
}

/* All text and links inside sidebar form white */
.durable-ad-sidebar-form,
.durable-ad-sidebar-form *,
.durable-ad-sidebar-form a,
.durable-ad-sidebar-form label,
.durable-ad-sidebar-form span,
.durable-ad-sidebar-form p,
.durable-ad-sidebar-form .gform_wrapper *,
.durable-ad-sidebar-form .gform_wrapper a {
    color: #fff !important;
}

.durable-ad-sidebar-form a,
.durable-ad-sidebar-form .gform_wrapper a {
    text-decoration: underline;
}

/* Hidden field handling */
.durable-ad-sidebar-form .gfield--type-hidden,
.durable-ad-sidebar-form .gfield_visibility_hidden {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Content area typography */
.durable-ad-main-content h1,
.durable-ad-main-content h2,
.durable-ad-main-content h3,
.durable-ad-main-content h4 {
    font-family: 'Radley', serif;
    color: #2a3322;
}

.durable-ad-main-content h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 15px;
}

.durable-ad-main-content h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
}

.durable-ad-main-content p {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
}

.durable-ad-main-content ul,
.durable-ad-main-content ol {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
    padding-left: 25px;
}

.durable-ad-main-content li {
    list-style-type: circle;
    margin-bottom: 5px;
}

.durable-ad-main-content a {
    color: #2a3322;
    text-decoration: underline;
}

.durable-ad-main-content a:hover {
    color: #555952;
}

/* Tighten line-height on "A Personalized Approach to" when it wraps */
@media (max-width: 991px) {
    .slc.banner-sec .bnr-cnt .ban-heading small {
        line-height: 1.1;
        display: block;
        margin-bottom: -5px;
    }
}

/* Responsive: stack columns on tablet and below */
@media (max-width: 991px) {
    .durable-ad-columns {
        flex-direction: column;
    }

    .durable-ad-main-content,
    .durable-ad-sidebar-form {
        flex: none;
        width: 100%;
    }

    .durable-ad-sidebar-form {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .slc.banner-sec .bnr-cnt .ban-heading small {
        font-size: 14px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .durable-ad-content-wrapper .container {
        padding: 0 12px;
    }

    .durable-ad-sidebar-form {
        padding: 25px 18px;
    }

    .durable-ad-sidebar-form .text-heading {
        font-size: 24px;
    }
}

/* Reduce gap between header and banner image at small screens */
@media (max-width: 480px) {
    .slc.banner-sec {
        padding-top: 100px;
    }
}

/* ===== 375px and below ===== */
@media (max-width: 375px) {
    /* Prevent orphaned "to" on its own line */
    .slc.banner-sec .bnr-cnt .ban-heading small {
        font-size: 12px;
        letter-spacing: 0.5px;
        word-spacing: 0.15em;
    }

    /* Slightly smaller page title on very small screens */
    .slc.banner-sec .bnr-cnt .ban-heading {
        font-size: 40px;
    }
}
