/* ============================================
   Oregon Exterior Experts - Static Pages CSS
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #104377;
    --color-secondary: #02B100;
    --color-text-dark: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray-medium: #e0e0e0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --container-max: 1200px;
    --spacing-sm: 15px;
    --spacing-md: 30px;
    --spacing-lg: 60px;
    --spacing-xl: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOP HEADER BAR
   ============================================ */
.top-header {
    background-color: var(--color-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-gray-medium);
}

.top-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header .logo {
    display: inline-block;
    line-height: 0;
}

.top-header .logo img {
    max-height: 92px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.header-contact {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item .icon {
    font-size: 24px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item a {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.contact-item span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:not(.btn-alt) {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn:not(.btn-alt):hover {
    background-color: #029900;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(2, 177, 0, 0.3);
}

.btn-alt {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-alt:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Button with icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-icon svg {
    flex-shrink: 0;
}

/* Outlined button (white border) */
.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 450px;
    display: flex;
    align-items: center;
    padding: var(--spacing-lg) 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    color: var(--color-white);
}

.hero-content .tagline {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-white);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.0;
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============================================
   QUOTE FORM
   ============================================ */
.quote-form-wrapper {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.quote-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin: 0 0 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--color-gray-medium);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 67, 119, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-group > label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.checkbox-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.checkbox-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    cursor: pointer;
}

.checkbox-options input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-submit {
    width: 100%;
    padding: 14px 28px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(2, 177, 0, 0.3);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
}

.section-gray {
    background-color: var(--color-gray-light);
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.roofing-solutions-bg {
    background-image: url('../../wp-content/uploads/custom/roofing-oregon-exterior-experts.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.roofing-solutions-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0);
    z-index: 0;
}

.roofing-solutions-bg > .container {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-title .lead {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.section-title span:not(.lead):not(.sep-primary):not(.sep-secondary) {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.1;
}

.section-title span.text-secondary:not(.sep-primary):not(.sep-secondary) {
    color: var(--color-secondary) !important;
}

.section-title span.text-primary:not(.sep-primary):not(.sep-secondary) {
    color: var(--color-primary) !important;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: -5px;
}

.separator {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
}

.sep-primary {
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
}

.sep-secondary {
    width: 30px;
    height: 4px;
    background-color: var(--color-secondary);
}

/* ============================================
   FEATURE SECTIONS
   ============================================ */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-section.reverse {
    direction: rtl;
}

.feature-section.reverse > * {
    direction: ltr;
}

.feature-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.feature-images img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}


.feature-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.feature-content .btn {
    margin-top: 10px;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.service-card a {
    display: block;
    padding: 25px 15px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-card:hover a {
    color: var(--color-secondary);
}

/* ============================================
   REVIEWS / CTA SECTION
   ============================================ */
.reviews-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--color-white);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.reviews-section .tagline {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.reviews-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 30px 0;
}

.reviews-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: var(--spacing-lg) 20px;
    background-color: var(--color-white);
    flex-wrap: wrap;
}

.trust-badges img {
    max-height: 100px;
    width: auto;
    transition: transform 0.3s ease;
}

.trust-badges a:hover img {
    transform: scale(1.05);
}

/* ============================================
   SERVICE AREA
   ============================================ */
.service-area-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.area-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.area-list a {
    display: block;
    padding: 12px 20px;
    background-color: var(--color-white);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.area-list a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateX(5px);
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.location-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background-color: var(--color-white);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    text-decoration: none;
}

.location-card:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.location-card:hover svg {
    fill: var(--color-white);
}

.location-card svg {
    flex-shrink: 0;
    transition: fill 0.3s ease;
}

/* Full-width map */
.map-wrapper-full {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.map-wrapper-full iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* ============================================
   ECOSYSTEM GRID
   ============================================ */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.ecosystem-card {
    background-color: var(--color-white);
    padding: 35px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ecosystem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.ecosystem-icon {
    margin-bottom: 20px;
}

.ecosystem-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.ecosystem-card p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   DARK SECTION (for FAQ)
   ============================================ */
.section-dark {
    background-color: var(--color-primary);
    padding: var(--spacing-xl) 0;
}

.section-title.light .lead,
.section-title.light span {
    color: var(--color-white);
}

.section-title.light .sep-primary {
    background-color: var(--color-secondary);
}

.section-title.light .sep-secondary {
    background-color: rgba(255,255,255,0.3);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255,255,255,0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255,255,255,0.05);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--color-primary);
    color: rgba(255,255,255,0.7);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: var(--spacing-md);
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 20px 0;
}

.footer p {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.footer > .container > .footer-inner > div:first-child p {
    font-weight: bold;
}

.footer > .container > .footer-inner > div:last-child p {
    font-weight: bold;
}

.footer a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
    font-weight: bold;
}

.footer a:hover {
    color: var(--color-white);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-weight: bold;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 997;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .top-header .logo img {
        max-height: 70px;
        max-width: 150px;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .feature-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-section.reverse {
        direction: ltr;
    }
    
    .feature-images {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-area-content {
        grid-template-columns: 1fr;
    }
    
    .ecosystem-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .top-header {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
        line-height: 0.9;
        text-transform: none;
    }
    
    .quote-form-wrapper {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-options {
        grid-template-columns: 1fr;
    }
    
    .section-title span:not(.lead):not(.sep-primary):not(.sep-secondary) {
        font-size: 1.8rem;
    }
    
    .section-title span.text-primary:not(.sep-primary):not(.sep-secondary) {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .feature-images {
        grid-template-columns: 1fr;
    }
    
    .feature-images img {
        height: 200px;
    }
    
    .feature-images img:nth-child(2),
    .feature-images img:nth-child(3) {
        display: none;
    }
    
    .feature-content .btn {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-section h2 {
        font-size: 1.8rem;
    }
    
    .trust-badges {
        gap: 20px;
    }
    
    .trust-badges img {
        max-height: 70px;
    }
    
    .area-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .scroll-top {
        bottom: 25px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .area-list {
        grid-template-columns: 1fr;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .map-wrapper-full iframe {
        height: 350px;
    }
    
    .reviews-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

