/*
Theme Name: Pro Done Roofing Child
Theme URI: https://produnroofing.ie
Template: hello-elementor
Version: 1.0.0
Description: Custom child theme for Pro Done Roofing
*/

:root {
    /* Brand Colours */
    --brand-primary: #1B3A5C;
    --brand-primary-light: #2A5080;
    --brand-secondary: #F0F2F5;
    --brand-accent: #1B3A5C;
    --brand-bg: #FFFFFF;
    --brand-text: #2D2D2D;
    --brand-text-muted: #6B7280;
    --brand-white: #FFFFFF;
    --brand-border: #E5E7EB;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 80px;
    --section-padding-mobile: 48px;
    --container-max: 1280px;
    --card-radius: 12px;
    --btn-radius: 8px;
}

/* Base styles */
body {
    font-family: var(--font-body);
    color: var(--brand-text);
    background-color: var(--brand-bg);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-text);
    font-weight: 700;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
}
a:hover {
    color: var(--brand-primary-light);
}

/* Utility classes */
.dark-section {
    background-color: var(--brand-primary);
    color: var(--brand-white);
}
.dark-section h1, .dark-section h2, .dark-section h3,
.dark-section h4, .dark-section h5, .dark-section h6,
.dark-section p, .dark-section li, .dark-section span,
.dark-section a {
    color: var(--brand-white);
}

.light-section {
    background-color: var(--brand-secondary);
}

/* Button styles */
.btn-primary {
    display: inline-block;
    background-color: var(--brand-primary);
    color: var(--brand-white) !important;
    padding: 14px 32px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}
.btn-primary:hover {
    background-color: var(--brand-primary-light);
    color: var(--brand-white) !important;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--brand-primary) !important;
    padding: 14px 32px;
    border: 2px solid var(--brand-primary);
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-outline:hover {
    background-color: var(--brand-primary);
    color: var(--brand-white) !important;
}

/* Sticky Action Bar */
.sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--brand-primary);
    color: var(--brand-white);
    display: none;
    z-index: 9999;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.sticky-action-bar a {
    color: var(--brand-white) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.sticky-action-bar .bar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}
@media (max-width: 767px) {
    .sticky-action-bar { display: block; }
    :root { --section-padding: var(--section-padding-mobile); }
}

/* Service cards */
.service-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: var(--card-radius);
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.service-card:hover {
    box-shadow: 0 8px 30px rgba(27, 58, 92, 0.12);
    transform: translateY(-4px);
}
.service-card h3 {
    font-size: 18px;
    margin-top: 16px;
}

/* FAQ accordion */
.faq-item {
    border-bottom: 1px solid var(--brand-border);
    padding: 20px 0;
}
.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
}
.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-top: 0;
    color: var(--brand-text-muted);
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 12px;
}

/* Header */
.site-header {
    background: var(--brand-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
}
.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-nav a {
    color: var(--brand-text);
    font-weight: 500;
    font-size: 15px;
}
.header-nav a:hover {
    color: var(--brand-primary);
}
.header-phone {
    font-weight: 700;
    color: var(--brand-primary) !important;
    font-size: 16px;
}

/* Mobile nav */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--brand-text);
}
@media (max-width: 991px) {
    .mobile-toggle { display: block; }
    .header-nav { display: none; }
    .header-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--brand-white);
        padding: 24px 32px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

/* Footer */
.site-footer {
    background-color: var(--brand-primary);
    color: var(--brand-white);
    padding: 60px 0 24px;
}
.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: var(--brand-white);
    font-size: 16px;
    margin-bottom: 16px;
}
.footer-col a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}
.footer-col a:hover {
    color: var(--brand-white);
}
.footer-col p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.7;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
