/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* ============================================
   ERIC H. WOODS LAW — Government-Warm Design System
   Authoritative, structured layout with warm approachability
   Colors: Navy #1B2A4A | Gold #C49A2A | CTA #D4380D
   Fonts: Inter (headings) | Lora (body)
   ============================================ */

:root {
    --ewl-primary: #1B2A4A;
    --ewl-primary-light: #2A3D5F;
    --ewl-secondary: #D4A83A;
    --ewl-secondary-light: #E0BB55;
    --ewl-cta: #D4380D;
    --ewl-cta-hover: #B02E0B;
    --ewl-body-text: #2D3748;
    --ewl-muted: #718096;
    --ewl-bg: #FFFFFF;
    --ewl-bg-warm: #FAF9F7;
    --ewl-bg-alt: #F0EDE8;
    --ewl-bg-blue: #EDF2F7;
    --ewl-bg-header: #EDECE9;
    --ewl-border: #E2DDD5;
    --ewl-border-light: #EBE8E3;
    --ewl-success: #276749;
    --ewl-info-bg: #EBF4FF;
    --ewl-info-border: #90CDF4;
    --ewl-warning-bg: #FFFFF0;
    --ewl-warning-border: #ECC94B;
    --ewl-radius: 8px;
    --ewl-radius-lg: 12px;
    --ewl-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --ewl-shadow: 0 4px 12px rgba(0,0,0,0.06);
    --ewl-shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --ewl-transition: 0.25s ease;
}

body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    color: var(--ewl-body-text);
    font-size: 16.5px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    background: var(--ewl-bg-warm);
}

h1, h2, h3, h4, h5, h6,
.header-title, .page-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ewl-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: 2.6rem; margin-bottom: 0.5em; }
h2 { font-size: 2rem; margin-bottom: 0.4em; }
h3 { font-size: 1.4rem; margin-bottom: 0.3em; }
h4 { font-size: 1.15rem; margin-bottom: 0.25em; }

p { margin-bottom: 1.2em; }

/* ── HEADER (Light gray — logo is designed for light backgrounds) ── */
.header-main,
.header-bottom {
    background-color: var(--ewl-bg-header) !important;
    border-bottom: 3px solid var(--ewl-secondary);
}

.header-main a,
.header-bottom a,
.header-nav > li > a {
    color: var(--ewl-primary) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.header-nav > li > a:hover { color: var(--ewl-secondary) !important; }

/* Logo area */
.logo img,
.header-logo img {
    max-height: 60px;
    width: auto;
}

.ewl-header-phone {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
}
.ewl-header-phone a {
    color: var(--ewl-primary) !important;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.ewl-header-phone a:hover { color: var(--ewl-secondary) !important; }

.header-wrapper.stuck .header-main {
    background-color: var(--ewl-bg-header) !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    transition: padding 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Top bar if present */
.header-top {
    background-color: var(--ewl-primary) !important;
    color: #fff !important;
}
.header-top a { color: var(--ewl-secondary) !important; }
.header-top a:hover { color: #fff !important; }

/* Navigation dropdown menus */
.nav-dropdown {
    background-color: #fff !important;
    border-top: 3px solid var(--ewl-secondary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.nav-dropdown li a {
    color: var(--ewl-body-text) !important;
    font-size: 13px !important;
}
.nav-dropdown li a:hover {
    color: var(--ewl-secondary) !important;
    background-color: var(--ewl-bg-warm) !important;
}

/* ── PAGE TITLE BAR ── */
.page-title-inner {
    background-color: var(--ewl-primary) !important;
    border-bottom: 3px solid var(--ewl-secondary) !important;
    padding: 35px 0 !important;
}
.page-title-inner h1,
.page-title-inner .breadcrumbs a,
.page-title-inner .breadcrumbs { color: #fff !important; }
.breadcrumbs .divider { color: rgba(255,255,255,0.4) !important; }
.breadcrumbs {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── BUTTONS ── */
.button.primary, button.primary, .btn-cta, a.ewl-cta {
    background-color: var(--ewl-cta) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all var(--ewl-transition);
    box-shadow: 0 2px 8px rgba(212, 56, 13, 0.2);
}
.button.primary:hover, button.primary:hover, .btn-cta:hover, a.ewl-cta:hover {
    background-color: var(--ewl-cta-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 56, 13, 0.3);
}

.button.secondary, a.ewl-secondary-btn {
    background-color: transparent !important;
    color: var(--ewl-primary) !important;
    border: 2px solid var(--ewl-primary) !important;
    border-radius: 6px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all var(--ewl-transition);
}
.button.secondary:hover, a.ewl-secondary-btn:hover {
    background-color: var(--ewl-primary) !important;
    color: #fff !important;
}

.button.alert { background-color: var(--ewl-cta) !important; border-color: var(--ewl-cta) !important; }
.button.alert:hover { background-color: var(--ewl-cta-hover) !important; }

/* ── FEATURED BOX ── */
.featured-box {
    background: #fff;
    border: 1px solid var(--ewl-border);
    border-radius: var(--ewl-radius-lg);
    padding: 28px 24px;
    transition: all var(--ewl-transition);
    box-shadow: var(--ewl-shadow-sm);
}
.featured-box:hover {
    border-color: var(--ewl-secondary);
    box-shadow: var(--ewl-shadow);
    transform: translateY(-2px);
    border-top: 3px solid var(--ewl-secondary);
}
.featured-box .icon-inner { color: var(--ewl-secondary) !important; }
.featured-box p { font-size: 0.95rem; color: var(--ewl-muted); line-height: 1.7; }

/* ── TESTIMONIALS ── */
.testimonial-box {
    background: #fff;
    border: 1px solid var(--ewl-border);
    border-radius: var(--ewl-radius-lg);
    padding: 24px;
    box-shadow: var(--ewl-shadow-sm);
    position: relative;
}
.testimonial-box::before {
    content: '\201C';
    position: absolute;
    top: 10px; left: 18px;
    font-size: 3.5rem;
    color: var(--ewl-secondary);
    opacity: 0.25;
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-box .star-rating i { color: var(--ewl-secondary) !important; }
.testimonial-box p { font-style: italic; color: var(--ewl-body-text); font-size: 0.98rem; line-height: 1.75; }
.testimonial-box .testimonial-meta strong {
    color: var(--ewl-primary);
    font-family: 'Inter', sans-serif;
    font-style: normal;
}

/* ── TITLE / DIVIDER ── */
.title-wrapper .title { color: var(--ewl-primary); }
.title-wrapper .title-line { border-color: var(--ewl-secondary) !important; }

/* ── LISTS ── */
.ux-text ul li, .entry-content ul li { margin-bottom: 8px; line-height: 1.75; }
.ux-text ol li, .entry-content ol li { margin-bottom: 8px; line-height: 1.75; }

/* ── Dark sections ── */
.section.dark { color: rgba(255,255,255,0.9); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }

/* ── LINKS ── */
a { color: var(--ewl-primary); transition: color var(--ewl-transition); }
a:hover { color: var(--ewl-cta); }

/* ── DEPTH OVERRIDES ── */
.box-shadow-1 { box-shadow: var(--ewl-shadow-sm) !important; }
.box-shadow-2 { box-shadow: var(--ewl-shadow) !important; }
.box-shadow-3 { box-shadow: var(--ewl-shadow-lg) !important; }

.col[class*="solid"] .col-inner { border: 1px solid var(--ewl-border) !important; }

/* ── UX Text ── */
.ux-text a { color: var(--ewl-primary); text-decoration: underline; text-underline-offset: 2px; }
.ux-text a:hover { color: var(--ewl-cta); }

/* ── FA icons ── */
.fa-solid, .fa-regular { line-height: inherit; }
.fa-circle-check { font-size: 0.9em; }

/* ── ACCORDION ── */
.accordion .toggle {
    border: 1px solid var(--ewl-border) !important;
    border-radius: var(--ewl-radius) !important;
    margin-bottom: 8px !important;
    overflow: hidden;
}
.accordion .toggle .toggle-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 16px 20px !important;
    background: #fff !important;
}
.accordion .toggle.active .toggle-title {
    background: var(--ewl-primary) !important;
    color: #fff !important;
}

/* ── CF7 FORMS ── */
.wpcf7-form label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ewl-primary);
    margin-bottom: 4px;
    display: block;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    border: 2px solid var(--ewl-border);
    border-radius: var(--ewl-radius);
    padding: 12px 16px;
    font-family: 'Lora', Georgia, serif;
    font-size: 15px;
    transition: border-color var(--ewl-transition), box-shadow var(--ewl-transition);
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus, .wpcf7-form select:focus {
    border-color: var(--ewl-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 154, 42, 0.12);
}
.wpcf7-form input[type="submit"] {
    background-color: var(--ewl-cta) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--ewl-radius);
    padding: 16px 44px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all var(--ewl-transition);
    width: 100%;
}
.wpcf7-form input[type="submit"]:hover {
    background-color: var(--ewl-cta-hover) !important;
    transform: translateY(-1px);
}
.wpcf7-form select { appearance: auto; }

/* ── FOOTER ── */
.footer-wrapper, #footer {
    background-color: var(--ewl-primary) !important;
    color: rgba(255,255,255,0.75);
    border-top: 3px solid var(--ewl-secondary);
}
#footer a { color: var(--ewl-secondary) !important; }
#footer a:hover { color: #fff !important; }
.absolute-footer {
    background-color: #111D33 !important;
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
}

/* ── MOBILE BAR ── */
#ewl-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 99999;
    background: var(--ewl-primary);
    box-shadow: 0 -3px 15px rgba(0,0,0,0.2);
}
#ewl-mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 14px 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}
#ewl-mobile-bar .ewl-bar-call { background: var(--ewl-cta); color: #fff; }
#ewl-mobile-bar .ewl-bar-consult { background: var(--ewl-secondary); color: var(--ewl-primary); }

/* ── RESPONSIVE ── */
@media only screen and (max-width: 48em) {
    #ewl-mobile-bar { display: flex; }
    body { padding-bottom: 60px; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
}
@media only screen and (min-width: 48.01em) {
    #ewl-mobile-bar { display: none !important; }
}

@media print {
    .header-wrapper, #footer, .footer-wrapper,
    #ewl-mobile-bar, #ewl-chat-fab, #ewl-chat-window { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
}
