/* ============================================
   COMMON STYLES - betterhomeinspectoraz.com
   COMPLETE VERSION - NO ERRORS
   Updated: August 2026
   ============================================ */

:root {
    --primary-blue: #1e3a8a;
    --accent-orange: #ff8c00;
    --terracotta: #d87543;
    --desert-sand: #e8dcc4;
    --charcoal: #2c3e50;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --success: #10b981;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESET / BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* ============================================
   WORDPRESS THEME OVERRIDES - CRITICAL
   ============================================ */

/* Override WordPress Twenty Twenty-Five constraints */
.wp-block-group.is-layout-constrained {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.wp-block-group.has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: var(--wp-preset-spacing--60) !important;
    padding-bottom: var(--wp-preset-spacing--60) !important;
}

main.wp-skip-link--target {
    margin: 0 !important;
    padding: 0 !important;
}

.wp-block-template-part {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   HIDE WORDPRESS PAGE TITLE / HEADER
   ============================================ */

.page-title-bar,
.page-header,
.page-title,
h1.page-title,
h1.entry-title,
.entry-header,
#headerimg,
#headerimg h1,
#headerimg .description,
.site-header,
.site-header .site-title,
.site-header .site-description,
.twentytwentyfive-header,
.header-inner,
header.site-header,
.wp-block-group__inner-container > h1:first-child,
.wp-block-group__inner-container > p:first-child,
body > h1:first-of-type,
.page-title-wrapper,
.header-wrapper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--primary-blue); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--terracotta);
    text-decoration: underline;
}

/* ============================================
   NAVBAR - STICKY, RESPONSIVE
   ============================================ */

.navbar {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    margin: 0;
    padding: 0;
}

.navbar-inner {
    width: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* LOGO */
.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 20px;
}

.navbar-logo img {
    height: 42px;
    width: auto;
    display: block;
}

.navbar-logo:hover {
    opacity: 0.8;
}

/* NAV MENU */
.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-menu li {
    margin: 0;
    padding: 0;
    position: relative;
}

.navbar-menu a {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    line-height: 1;
    text-decoration: none;
}

.navbar-menu a:hover {
    color: var(--accent-orange);
    text-decoration: none;
}

/* CTA BUTTON */
.navbar-cta {
    background: var(--accent-orange) !important;
    color: var(--white) !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    font-weight: 600;
    display: inline-block;
}

.navbar-cta:hover {
    background: var(--terracotta) !important;
    text-decoration: none !important;
}

/* DROPDOWN MENUS */
.navbar-dropdown {
    position: relative;
}

.navbar-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    list-style: none;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    margin: 0;
    padding: 10px 0;
    display: none;
    z-index: 1000;
}

.navbar-dropdown:hover .navbar-submenu {
    display: block;
}

.navbar-submenu li {
    margin: 0;
    padding: 0;
}

.navbar-submenu a {
    display: block;
    padding: 10px 20px;
    color: var(--charcoal);
    text-decoration: none;
    border: none;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.3s ease;
}

.navbar-submenu a:hover {
    background: var(--light-gray);
    color: var(--accent-orange);
    text-decoration: none;
}

/* HAMBURGER MENU */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    font-size: 24px;
    color: var(--charcoal);
    z-index: 1001;
}

.navbar-hamburger:hover {
    opacity: 0.7;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--terracotta);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   FORMS
   ============================================ */

input[type=text],
input[type=email],
input[type=number],
input[type=tel],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=number]:focus,
input[type=tel]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-30 { margin-bottom: 30px; }
.opacity-75 { opacity: 0.75; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .navbar-menu { gap: 10px !important; }
    .navbar-menu li a { font-size: 12px !important; }
    .navbar-menu li:last-child a { padding: 6px 12px !important; font-size: 12px !important; }
}

@media (max-width: 1024px) {
    .navbar-hamburger {
        display: flex !important;
    }

    .navbar-menu {
        display: none !important;
        flex-direction: column !important;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--white);
        gap: 0;
        z-index: 999;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .navbar-menu.active {
        display: flex !important;
    }

    .navbar-menu li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .navbar-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 14px !important;
    }

    .navbar-menu li:last-child a {
        background: var(--accent-orange);
        color: var(--white);
        border: none;
    }

    .navbar-submenu {
        position: static;
        box-shadow: none;
        display: none;
        background: var(--light-gray);
        margin-top: 0;
    }

    .navbar-menu li.active .navbar-submenu {
        display: block;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .navbar-inner {
        padding: 0 15px !important;
    }

    .navbar-logo img {
        height: 35px !important;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .container {
        padding: 0 20px;
    }
}

/* ============================================
   HIDE TWENTY TWENTY-FIVE POST AUTHOR BLOCK
   ============================================ */

.wp-block-post-author {
    display: none !important;
}

/* ============================================
   END OF STYLESHEET
   ============================================ */