/*
Theme Name: Hail Storm Recovery Partners
Theme URI: https://example.com/hailstorm-theme
Author: Antigravity
Author URI: https://example.com
Description: A modern, high-performance commercial and emergency roofing WordPress theme built on Twitter Bootstrap 5. Emulates sleek commercial roofing aesthetic with custom navigation, emergency services top bar, and responsive brand layout.
Version: 1.0.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hailstorm
Tags: bootstrap, custom-header, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

:root {
    --hs-navy: #02214D;
    --hs-navy-dark: #011638;
    --hs-navy-light: #0A3366;
    --hs-red: #A71E2D;
    --hs-red-dark: #881622;
    --hs-red-light: #C92A3B;
    --hs-slate: #3E4652;
    --hs-slate-light: #6C757D;
    --hs-bg-light: #F4F6F9;
    --hs-bg-gray: #EAEFF5;
    --hs-border: #DCE3EC;
    --hs-white: #FFFFFF;
    --hs-font-heading: 'Montserrat', sans-serif;
    --hs-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ----------------------------------------------------
   Base & Typography
---------------------------------------------------- */
body {
    font-family: var(--hs-font-body);
    color: var(--hs-slate);
    background-color: var(--hs-white);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--hs-font-heading);
    color: var(--hs-navy);
    font-weight: 700;
    letter-spacing: -0.01em;
}

a {
    color: var(--hs-navy);
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

a:hover {
    color: var(--hs-red);
}

.text-navy {
    color: var(--hs-navy) !important;
}

.text-red {
    color: var(--hs-red) !important;
}

.bg-navy {
    background-color: var(--hs-navy) !important;
}

.bg-navy-dark {
    background-color: var(--hs-navy-dark) !important;
}

.bg-red {
    background-color: var(--hs-red) !important;
}

.bg-light-subtle-custom {
    background-color: var(--hs-bg-light) !important;
}

/* ----------------------------------------------------
   Buttons
---------------------------------------------------- */
.btn-hs-primary {
    background-color: var(--hs-navy);
    color: #fff;
    font-family: var(--hs-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.65rem 1.4rem;
    border-radius: 4px;
    border: 2px solid var(--hs-navy);
    transition: all 0.3s ease;
}

.btn-hs-primary:hover {
    background-color: var(--hs-red);
    border-color: var(--hs-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 30, 45, 0.3);
}

.btn-hs-red {
    background-color: var(--hs-red);
    color: #fff;
    font-family: var(--hs-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.65rem 1.4rem;
    border-radius: 4px;
    border: 2px solid var(--hs-red);
    transition: all 0.3s ease;
}

.btn-hs-red:hover {
    background-color: var(--hs-red-dark);
    border-color: var(--hs-red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 30, 45, 0.4);
}

.btn-hs-outline-white {
    background-color: transparent;
    color: #fff;
    font-family: var(--hs-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.65rem 1.4rem;
    border-radius: 4px;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.btn-hs-outline-white:hover {
    background-color: #fff;
    color: var(--hs-navy);
}

/* ----------------------------------------------------
   Top Header Bar (Emergency / Estimates)
---------------------------------------------------- */
.top-header-bar {
    background-color: var(--hs-navy-dark);
    color: #ffffff;
    font-size: 0.875rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-header-announcement {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

.top-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: #ffffff;
    margin-right: 0.35rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.top-social-icon:hover {
    background-color: var(--hs-red);
    border-color: var(--hs-red);
    color: #ffffff;
}

.btn-top-estimate {
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: var(--hs-font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.45rem 1rem;
    border-radius: 3px;
    display: inline-block;
    transition: all 0.25s ease;
    border: 1px solid #ffffff;
    text-decoration: none;
}

.btn-top-estimate:hover {
    background-color: var(--hs-red);
    border-color: var(--hs-red);
    color: #ffffff;
}

/* ----------------------------------------------------
   Hero / Front Page Banner (Metal Roof background)
---------------------------------------------------- */
.front-hero-banner {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 4.5rem 1rem;
}

.front-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(2, 33, 77, 0.35) 0%, rgba(2, 33, 77, 0.55) 100%);
    z-index: 1;
}

.front-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-main-heading {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
    margin-bottom: 0.5rem;
}

.hero-sub-heading {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

/* ----------------------------------------------------
   Main Header & Navigation (Screenshot Emulation)
---------------------------------------------------- */
.site-main-header {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(2, 33, 77, 0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
    overflow: visible;
}

.brand-logo-wrapper {
    position: relative;
    z-index: 1040;
    display: flex;
    align-items: center;
}

.brand-logo-wrapper .custom-logo-link,
.brand-logo-wrapper .navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1040;
}

/* Doubled logo size with bottom 25% floating over the banner */
.brand-logo-wrapper .custom-logo,
.brand-logo-wrapper img,
.brand-logo-img,
img.custom-logo {
    max-height: 170px;
    width: auto !important;
    height: auto !important;
    max-width: 320px !important;
    object-fit: contain;
    display: block;
    margin-top: -10px;
    margin-bottom: -48px; /* Bottom ~25% floats over the banner */
    position: relative;
    z-index: 1040;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo-wrapper .custom-logo:hover,
.brand-logo-wrapper img:hover,
.brand-logo-img:hover,
img.custom-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.38));
}

/* WordPress Navigation styling with Bootstrap 5 */
.navbar-nav {
    gap: 0.25rem;
}

.navbar-nav .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-family: var(--hs-font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.85rem !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-item.active > .nav-link {
    color: var(--hs-red);
}

/* Vertical Pipe Separators between desktop menu items */
@media (min-width: 992px) {
    .navbar-nav > .nav-item:not(:last-child)::after {
        content: "|";
        color: #c4cdd8;
        font-weight: 300;
        font-size: 1.1rem;
        margin-left: 0.25rem;
        margin-right: 0.25rem;
        user-select: none;
    }
}

/* Dropdown Menu styling */
.dropdown-menu {
    border-radius: 4px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 200px;
    background-color: #ffffff;
}

.dropdown-item {
    font-family: var(--hs-font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: #333333;
    padding: 0.65rem 1.25rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--hs-navy);
    color: #ffffff;
    padding-left: 1.5rem;
}

/* Header Phone Widget */
.header-phone-widget {
    border-left: 1px dashed #d0d7de;
    padding-left: 1.5rem;
}

.phone-icon-circle {
    font-size: 1.85rem;
    color: var(--hs-navy);
    line-height: 1;
}

.phone-number-text {
    font-family: var(--hs-font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: #111111;
    letter-spacing: -0.01em;
    line-height: 1.1;
    display: block;
}

.phone-subtext {
    font-size: 0.72rem;
    font-weight: 700;
    color: #717d8a;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-top: 0.15rem;
}

/* ----------------------------------------------------
   Hero / Front Page Banner (Metal Roof background)
---------------------------------------------------- */
.front-hero-banner {
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 5rem 1rem;
}

.front-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(2, 33, 77, 0.45) 0%, rgba(2, 33, 77, 0.68) 100%);
    z-index: 1;
}

.front-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-main-heading {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    margin-bottom: 0.5rem;
}

.hero-sub-heading {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0;
}

/* ----------------------------------------------------
   Screenshot Emulation: Layered Images & Outline Frame
---------------------------------------------------- */
.showcase-composition-wrapper {
    position: relative;
    padding: 1.5rem 1rem;
    min-height: 380px;
}

/* Decorative brand connecting border */
.showcase-accent-frame {
    position: absolute;
    top: 40px;
    left: 140px;
    right: 30px;
    bottom: 40px;
    border: 4px solid var(--hs-navy);
    border-radius: 28px;
    z-index: 1;
    pointer-events: none;
}

.showcase-img-primary {
    position: relative;
    z-index: 2;
    width: 78%;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(2, 33, 77, 0.15);
    border: 4px solid #ffffff;
    object-fit: cover;
    display: block;
}

.showcase-img-secondary {
    position: absolute;
    bottom: 0;
    right: 5%;
    width: 65%;
    z-index: 3;
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
    border: 5px solid #ffffff;
    object-fit: cover;
    display: block;
}

.brand-link {
    color: var(--hs-navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.brand-link:hover {
    color: var(--hs-red);
}

.lead-text {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #2b333e;
}

/* ----------------------------------------------------
   Services Cards & Features
---------------------------------------------------- */
.service-card {
    background: #ffffff;
    border: 1px solid var(--hs-border);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--hs-navy);
    transition: background-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(2, 33, 77, 0.1);
    border-color: #c9d5e3;
}

.service-card:hover::after {
    background-color: var(--hs-red);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--hs-bg-light);
    color: var(--hs-navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
    background-color: var(--hs-navy);
    color: #ffffff;
}

/* ----------------------------------------------------
   Emergency CTA Banner
---------------------------------------------------- */
.emergency-callout-strip {
    background: linear-gradient(135deg, var(--hs-navy-dark) 0%, var(--hs-navy) 65%, var(--hs-red-dark) 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 15px 35px rgba(2, 33, 77, 0.25);
}

/* ----------------------------------------------------
   Footer
---------------------------------------------------- */
.site-footer {
    background-color: var(--hs-navy-dark);
    color: #cbd5e1;
    padding-top: 4.5rem;
    border-top: 5px solid var(--hs-red);
}

.site-footer h5 {
    color: #ffffff;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--hs-red);
}

.site-footer a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.site-footer .footer-bottom {
    background-color: rgba(0, 0, 0, 0.35);
    padding: 1.5rem 0;
    margin-top: 3.5rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ----------------------------------------------------
   WordPress Core Classes
---------------------------------------------------- */
.alignwide {
    margin-left: -50px;
    margin-right: -50px;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.wp-caption {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

.sticky {
    position: relative;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .site-main-header {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .brand-logo-wrapper .custom-logo,
    .brand-logo-wrapper img,
    .brand-logo-img,
    img.custom-logo {
        max-height: 90px;
        max-width: 190px;
        margin-top: 0;
        margin-bottom: -15px; /* Subtle float over banner on mobile */
    }

    /* Provide clear margin & padding for mobile navbar so menu items never overlap the logo */
    .site-main-header .navbar-collapse {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid #edf2f7;
    }

    .site-main-header .navbar-nav {
        gap: 0.5rem;
    }

    .site-main-header .navbar-nav .nav-item {
        padding: 0.25rem 0;
    }

    .site-main-header .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
        font-size: 1.05rem;
    }

    .header-phone-widget {
        border-left: none;
        padding-left: 0;
        padding-top: 1.25rem;
        margin-top: 1.25rem;
        border-top: 1px solid #e9ecef;
    }
    
    .front-hero-banner {
        min-height: 220px;
        padding: 3rem 1rem;
        background-position: center center !important;
    }
    
    .showcase-accent-frame {
        display: none;
    }
    
    .showcase-img-primary,
    .showcase-img-secondary {
        position: static;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .top-header-announcement {
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

