/* ============================================
   Brian Ward Appraisal - Responsive Stylesheet
   Faithful to original brianward.com design
   Mobile-friendly, SEO & LLM optimized
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    background-color: #333;
}

a {
    color: #333;
    text-decoration: underline;
}

a:hover {
    color: #913900;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
}

ol {
    padding-left: 20px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: #333;
}

h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0 10px;
}

h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 12px 0 6px;
}

p {
    margin: 8px 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header,
.header {
    background: #fff url('../images/header-bg.jpg') no-repeat right top;
    background-size: auto 100%;
    border-bottom: 3px solid #999;
    border-bottom-style: inset;
    max-width: 960px;
    margin: 0 auto;
    min-height: 160px;
}

.header-inner,
.header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 30px 20px 20px;
    position: relative;
    min-height: 160px;
}

.header-logo,
.logo-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: #333;
    padding-top: 10px;
}

.header-logo:hover,
.logo-container:hover {
    color: #333;
    text-decoration: none;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: #666;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    font-family: Georgia, serif;
    border: 2px solid #999;
    border-radius: 6px;
    flex-shrink: 0;
}

.header-text h1,
.logo-text h1,
.logo-title {
    font-size: 25px;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.header-tagline,
.logo-tagline {
    font-size: 16px;
    color: #626262;
    margin-top: 6px;
    line-height: 1.4;
    font-weight: bold;
}

.header-image {
    max-height: 110px;
    width: auto;
}

/* Mobile hamburger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid #666;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 22px;
    color: #333;
    line-height: 1;
}

/* ============================================
   PAGE WRAPPER - 3 column layout
   ============================================ */
.page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
}

/* Left Sidebar / Navigation */
.sidebar-left {
    width: 190px;
    padding: 15px;
    border-right: 1px solid #ccc;
    background: #f5f5f5;
    font-size: 13px;
}

.sidebar-left h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ccc;
}

.nav-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0 0 20px;
}

.nav-list li {
    margin: 4px 0;
}

.nav-list a {
    font-size: 13px;
    text-decoration: underline;
    color: #333;
}

.nav-list a:hover {
    color: #913900;
}

.nav-list a.active {
    color: #913900;
    font-weight: bold;
}

.yelp-stars {
    display: flex;
    gap: 2px;
    margin: 4px 0 8px 18px;
}

.yelp-star {
    width: 18px;
    height: 18px;
    background: #cc0000;
    border-radius: 2px;
    display: inline-block;
}

.sidebar-left .cities-section {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.cities-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
}

.cities-list li {
    margin: 2px 0;
    font-size: 12px;
}

.cities-list a {
    text-decoration: none;
    color: #333;
}

.cities-list a:hover {
    color: #913900;
    text-decoration: underline;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 15px 20px;
    min-width: 0;
}

.main-content h2:first-of-type {
    margin-top: 5px;
}

/* Right Sidebar */
.sidebar-right {
    width: 220px;
    padding: 15px;
    border-left: 1px solid #ccc;
    background: #f9f9f9;
    font-size: 13px;
}

.sidebar-right h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ccc;
}

.sidebar-right ul {
    list-style: disc;
    padding-left: 18px;
    margin: 0 0 18px;
}

.sidebar-right li {
    margin: 3px 0;
    font-size: 12px;
}

.sidebar-right a {
    color: #333;
    text-decoration: underline;
}

.sidebar-right a:hover {
    color: #913900;
}

.service-area-map {
    margin-top: 10px;
    text-align: center;
}

.service-area-map h3 {
    text-align: left;
}

.service-area-map img {
    max-width: 100%;
    border: 1px solid #ccc;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer,
.footer {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border-top: 2px solid #ccc;
    padding: 20px 25px 15px;
    font-size: 12px;
    color: #555;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
}

.footer-section h4 {
    font-size: 13px;
    margin: 0 0 4px;
    color: #333;
}

.footer-section p {
    margin: 2px 0;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.footer-section ul li a {
    color: #333;
    text-decoration: underline;
    font-size: 12px;
}

.footer-section ul li a:hover {
    color: #913900;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    text-align: center;
    font-size: 11px;
    color: #777;
}

.footer-contact {
    margin-bottom: 8px;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: #333;
    text-decoration: underline;
    margin: 0 8px;
}

.footer-links a:hover {
    color: #913900;
}

/* ============================================
   HOMEPAGE - Stats Bar
   ============================================ */
.stats-bar {
    display: flex;
    justify-content: space-around;
    background: #4a4a4a;
    color: #fff;
    padding: 18px 10px;
    margin: 0 0 15px;
    border-radius: 4px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item + .stat-item {
    border-left: 1px solid rgba(255,255,255,0.25);
}

.stat-number {
    display: block;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.1;
    color: #f0c040;
}

.stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    opacity: 0.9;
}

/* ============================================
   HOMEPAGE - Call to Action
   ============================================ */
.cta-bar {
    text-align: center;
    padding: 12px 0 16px;
    margin-bottom: 10px;
}

.cta-button {
    display: inline-block;
    background: #913900;
    color: #fff;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.cta-button:hover {
    background: #a94800;
    color: #fff;
}

.cta-phone {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #555;
}

.cta-phone a {
    color: #333;
    font-weight: bold;
}

/* ============================================
   HOMEPAGE - Service Cards
   ============================================ */
.service-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
    border-left: 4px solid #913900;
    background: #fff;
}

.service-card.alt {
    background: #f5f3f0;
}

.service-card-icon {
    font-size: 28px;
    line-height: 1;
    color: #913900;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
    padding-top: 2px;
}

.service-card-body h2 {
    font-size: 16px;
    margin: 0 0 6px;
    color: #333;
}

.service-card-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.intro-detail {
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* ============================================
   HOMEPAGE - Why Choose Us Grid
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0 15px;
}

.why-item {
    background: #f5f3f0;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.why-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
    color: #333;
}

.why-item p {
    margin: 0;
    color: #555;
}

.why-section h2 {
    text-align: center;
    font-size: 18px;
    margin-top: 10px;
}

/* ============================================
   CONTENT STYLES
   ============================================ */

/* Fee pricing highlight */
.fee-highlight {
    color: #cc0000;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 15px;
}

/* Info box / callout */
.info-box {
    border: 1px solid #999;
    padding: 12px;
    margin: 15px 0;
    background: #f9f9f9;
}

.info-box h4 {
    font-weight: bold;
    margin-bottom: 6px;
}

/* Contact form */
.contact-form {
    margin: 15px 0;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin: 10px 0 3px;
    font-size: 13px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    max-width: 500px;
    padding: 6px 8px;
    border: 1px solid #999;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 13px;
    background: #fff;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button,
.btn-submit {
    background: #666;
    color: #fff;
    border: 1px solid #333;
    padding: 8px 24px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    font-family: "Trebuchet MS", Arial, sans-serif;
}

.contact-form button:hover,
.btn-submit:hover {
    background: #913900;
}

/* Review blocks */
.review-block {
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
    margin-bottom: 8px;
}

.review-block:last-child {
    border-bottom: none;
}

.review-source {
    font-weight: bold;
    color: #913900;
    font-size: 12px;
}

.review-author {
    font-weight: bold;
}

.review-text {
    margin: 6px 0;
    font-style: italic;
}

/* FAQ styles */
.faq-item {
    margin-bottom: 18px;
}

.faq-question {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.faq-answer {
    margin-left: 0;
}

/* Blog post previews */
.blog-post {
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
}

.blog-date {
    font-size: 11px;
    color: #777;
}

.blog-title {
    font-weight: bold;
    font-size: 14px;
    margin: 4px 0;
}

/* Tables */
table {
    border-collapse: collapse;
    margin: 10px 0;
    width: 100%;
}

table th, table td {
    border: 1px solid #999;
    padding: 6px 10px;
    text-align: left;
    font-size: 13px;
}

table th {
    background: #e8e0d8;
    font-weight: bold;
}

/* Skip link */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #333;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
}

.skip-to-content:focus {
    left: 0;
}

/* Coupon/special box */
.special-offer {
    background: #fff8e0;
    border: 2px solid #cc0000;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 13px;
}

.special-offer strong {
    color: #cc0000;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 11px;
    color: #777;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.breadcrumbs a {
    color: #555;
    text-decoration: underline;
}

.breadcrumbs a:hover {
    color: #913900;
}

/* ============================================
   RESPONSIVE - Tablet (768px and below)
   ============================================ */
@media (max-width: 768px) {
    .site-header,
    .header {
        min-height: 100px;
        background-size: auto 100%;
    }

    .header-inner,
    .header-content {
        flex-wrap: wrap;
        padding: 12px 15px;
        min-height: 100px;
    }

    .header-image {
        display: none;
    }

    .header-text h1,
    .logo-text h1,
    .logo-title {
        font-size: 20px;
    }

    .header-tagline,
    .logo-tagline {
        font-size: 14px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Stack columns */
    .page-wrapper {
        flex-direction: column;
    }

    .sidebar-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ccc;
        display: none; /* Hidden by default on mobile */
    }

    .sidebar-left.open {
        display: block;
    }

    .main-content {
        width: 100%;
        padding: 15px;
    }

    .sidebar-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid #ccc;
    }

    .site-footer,
    .footer {
        padding: 12px 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }

    .stats-bar {
        padding: 14px 8px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 10px;
    }

    .service-card {
        flex-direction: column;
        gap: 8px;
    }

    .service-card-icon {
        width: auto;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE - Phone (480px and below)
   ============================================ */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .header-inner,
    .header-content {
        padding: 10px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .header-text h1,
    .logo-text h1,
    .logo-title {
        font-size: 17px;
    }

    .header-tagline,
    .logo-tagline {
        font-size: 12px;
    }

    .main-content {
        padding: 12px;
    }

    .main-content h2 {
        font-size: 16px;
    }

    .sidebar-left, .sidebar-right {
        padding: 12px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea,
    .contact-form select {
        max-width: 100%;
    }

    table {
        font-size: 12px;
    }

    table th, table td {
        padding: 4px 6px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .sidebar-left, .sidebar-right, .mobile-menu-toggle, .site-footer, .footer {
        display: none;
    }

    .page-wrapper {
        max-width: 100%;
    }

    .main-content {
        width: 100%;
    }

    a {
        text-decoration: none;
        color: #000;
    }
}
