/* ==========================================================================
   Therma-Glass Windows and Doors -- lander theme
   Brand palette pulled from thermaglassut.com:
     #7F0003  deep maroon  (primary)
     #510403  espresso red (secondary / hover)
     #E9A63E  warm gold    (CTA)
     #F6E7C7  cream        (form card subtle wash)
   ========================================================================== */

:root {
    --brand-maroon: #7F0003;
    --brand-maroon-dark: #510403;
    --brand-gold: #E9A63E;
    --brand-gold-dark: #c98a26;
    --brand-cream: #fbf6ec;
    --brand-ink: #1f0a0a;

    /* Legacy variable names the template/css may reference */
    --btncolor: var(--brand-gold);
    --apply_heading: var(--brand-maroon);
    --header-bg: var(--brand-maroon);
    --footer-bg: var(--brand-maroon);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
body,
body.font-montserrat,
body[style*="Montserrat"] {
    font-family: 'Montserrat', 'Calluna Sans', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Helvetica, Arial, sans-serif !important;
    color: #ffffff;
    letter-spacing: 0.2px;
}

h1, h2, h3, h4, .display-heading {
    font-family: 'Cormorant Garamond', 'Calluna', Georgia,
                 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Background hero
   -------------------------------------------------------------------------- */
body {
    background-color: var(--brand-maroon-dark);
    background-image:
        /* Left-side darken so hero copy stays readable */
        linear-gradient(90deg, rgba(20, 4, 4, 0.82) 0%, rgba(20, 4, 4, 0.55) 35%, rgba(20, 4, 4, 0.15) 60%, rgba(20, 4, 4, 0.35) 100%),
        /* Subtle warm wash */
        linear-gradient(180deg, rgba(127, 0, 3, 0.18) 0%, rgba(20, 4, 4, 0.45) 100%),
        url('bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Navbar (top)
   -------------------------------------------------------------------------- */
.navbar {
    background: linear-gradient(180deg, var(--brand-maroon) 0%, var(--brand-maroon-dark) 100%);
    box-shadow: 0 2px 0 var(--brand-gold), 0 6px 16px rgba(0, 0, 0, 0.35);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.navbar,
.navbar * {
    color: #ffffff !important;
}

.navbar-brand {
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.navbar-brand img {
    max-height: 64px;
    height: auto;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

/* Phone-CTA pill -- mirrors the customer site's gold "Get a Quote" button */
.btn-call {
    background: var(--brand-gold);
    border: 1px solid var(--brand-gold-dark);
    color: #1f0a0a !important;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-call:hover {
    background: #f0b556;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.btn-call,
.btn-call * {
    color: #1f0a0a !important;
    text-shadow: none !important;
}

.btn-call .tracking_href,
.btn-call .trackingid,
.btn-call b,
.btn-call span {
    color: #1f0a0a !important;
    text-decoration: none;
}

.navbar .text-white {
    color: #ffffff !important;
}

.navbar .font-weight-bold {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Hero / left column copy
   -------------------------------------------------------------------------- */
.content {
    padding-top: 130px;
    padding-bottom: 80px;
}

h2.text-uppercase.font-weight-bold,
.content h2.text-uppercase {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.8rem, 5.5vw, 4.6rem);
    line-height: 1.0;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 20px rgba(0, 0, 0, 0.85);
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.masthead-minor,
.text-uppercase {
    color: #ffffff;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 3px 14px rgba(0, 0, 0, 0.85);
}

.masthead-minor h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: 1.8px;
    line-height: 1.5;
    color: #ffffff;
}

.masthead-minor h4 b {
    color: var(--brand-gold);
    font-weight: 700;
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--brand-gold);
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 14px rgba(0, 0, 0, 0.7);
}

.masthead-minor p {
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;
    font-size: 1.05rem;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Form card (right column)
   -------------------------------------------------------------------------- */
.custom-bg-top {
    background-color: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(127, 0, 3, 0.15);
    border-top: 4px solid var(--brand-gold);
    border-radius: 10px !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    color: var(--brand-ink);
    padding: 0 !important;
    overflow: hidden;
}

.custom-bg-top .inputs {
    padding: 20px 24px 4px;
}

.custom-bg-top form {
    color: var(--brand-ink);
}

/* Form head banner -- matches customer's deep maroon section bars */
.form-head {
    background: linear-gradient(135deg, var(--brand-maroon) 0%, var(--brand-maroon-dark) 100%);
    color: #ffffff !important;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 1px;
    padding: 14px 20px !important;
    text-align: center;
    margin-bottom: 18px !important;
    border-radius: 0 !important;
}

.form-head .form-label {
    color: #ffffff !important;
    margin: 0 !important;
}

/* Field labels */
.custom-bg-top .form-label {
    color: var(--brand-maroon);
    font-weight: 600;
    letter-spacing: 0.4px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.custom-bg-top .form-control {
    border: 1px solid #d8c6c6;
    border-radius: 6px;
    padding: 10px 12px;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-bg-top .form-control:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 0.2rem rgba(233, 166, 62, 0.25);
    outline: none;
}

/* Submit button -- gold with dark text per readability memo */
.btn-primary,
.btn-submit,
#btnSubmit {
    background: var(--brand-gold) !important;
    border: 1px solid var(--brand-gold-dark) !important;
    color: #1f0a0a !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    width: calc(100% - 48px);
    margin: 8px 24px 24px !important;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover,
.btn-submit:hover,
#btnSubmit:hover {
    background: #f0b556 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.btn-primary:active,
.btn-submit:active,
#btnSubmit:active {
    background: var(--brand-gold-dark) !important;
    transform: translateY(0);
}

/* Consent checkbox row (when SMS consent on) */
.custom-bg-top .form-check {
    margin: 4px 24px 12px;
    padding-left: 1.4rem;
    color: #4a2c2c;
    font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    background: linear-gradient(180deg, var(--brand-maroon) 0%, var(--brand-maroon-dark) 100%) !important;
    color: #ffffff;
    border-top: 3px solid var(--brand-gold);
    padding: 26px 0 22px;
}

footer,
footer * {
    color: #ffffff !important;
}

footer p,
footer a {
    color: #ffffff !important;
}

footer a {
    border-bottom: 1px solid rgba(233, 166, 62, 0.4);
    transition: color 0.15s ease, border-color 0.15s ease;
}

footer a:hover {
    color: var(--brand-gold) !important;
    border-bottom-color: var(--brand-gold);
    text-decoration: none;
}

footer h5,
footer .companyname {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    color: var(--brand-gold) !important;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .content { padding-top: 100px; }
    .navbar-brand img { max-height: 54px; }
    h2.text-uppercase.font-weight-bold { font-size: 2.2rem; text-align: center; }
    .masthead-minor { text-align: center; }
}

@media (max-width: 575.98px) {
    .navbar-brand img { max-height: 44px; }
    .form-head { font-size: 1.3rem; }
    .btn-primary, .btn-submit, #btnSubmit { letter-spacing: 1px; }
}
