/* Simple, responsive landing styles */
:root {
    --primary: #ef6c00; /* orange */
    --accent: #2e7d32;  /* green */
    --dark: #0b1720;
    --muted: #6b7785;
    --max-width: 1100px;
    --radius: 12px;
    --pad: 24px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* ------------------------------
   PAGE-TEMPLATE SCOPED FIXES
   (affect only this landing page)
---------------------------------*/

/* WordPress adds this body class based on template filename */
.page-template-template-roof-landing .page_title,
.page-template-template-roof-landing .entry-header,
.page-template-template-roof-landing .breadcrumbs {
    display: none !important; /* hide theme's auto page title/breadcrumbs (removes big blank band) */
}

.page-template-template-roof-landing .site-header,
.page-template-template-roof-landing .site-branding {
    text-align: center;
    justify-content: center;
}

.page-template-template-roof-landing .site-header {
    margin-bottom: 0;
    padding-bottom: 10px;
}

.page-template-template-roof-landing main#ar-roof-landing {
    margin-top: 0;
}

/* ------------------------------
   BASE
---------------------------------*/
.ar-landing {
    color: var(--dark);
    line-height: 1.45;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 20px; /* tighter vertical rhythm (was 48px) */
}

/* Hero */
.ar-hero {
    background: #fff;
    padding: 32px 0; /* was 48px */
    border-bottom: 1px solid #f0f2f4;
}

.ar-hero-inner {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.ar-hero-copy {
    flex: 1;
    min-width: 280px;
}

.ar-hero-copy h1 {
    font-size: 38px;
    margin: 0 0 12px;
    line-height: 1.05;
}

.ar-sub {
    color: var(--muted);
    margin-bottom: 18px;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    margin-right: 12px;
    margin-bottom: 20px;
    
}

.btn-secondary {
    background: #fff;
    color: var(--dark);
    border: 1px solid #e6e9ee;
}

.btn-call {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 16px;
}

/* Trust list */
.ar-trust-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
}

.ar-trust-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* OPTIONAL: If you want to use your own media-library icons:
   Add a class to the span.icon (e.g., icon--shield) and set a background image here. */
.ar-trust-list .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    line-height: 0;
}
/* Example mappings (replace URLs with your uploads) */
/*
.ar-trust-list .icon--shield { background-image: url('/wp-content/uploads/2025/09/shield.svg'); }
.ar-trust-list .icon--home   { background-image: url('/wp-content/uploads/2025/09/home.svg'); }
.ar-trust-list .icon--star   { background-image: url('/wp-content/uploads/2025/09/star.svg'); }
.ar-trust-list .icon--phone  { background-image: url('/wp-content/uploads/2025/09/phone.svg'); }
*/

/* Hero image */
.ar-hero-image {
    width: 420px;
    max-width: 45%;
}

.ar-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Sections */
.ar-section {
    padding: 28px 0; /* was 40px -> tighter spacing */
    background: #fff;
    border-bottom: 1px solid #f5f7fa;
}

.two-col {
    display: flex;
    gap: 32px;
    align-items: center;
}

.two-col .col {
    flex: 1;
}

.two-col.reverse {
    flex-direction: row-reverse;
}

.image-col img {
    width: 100%;
    border-radius: 12px;
}

/* Checks */
.checks {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    color: var(--muted);
}

.checks li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.checks li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.testimonials-grid blockquote {
    background: #fff;
    border: 1px solid #eef2f4;
    padding: 18px;
    border-radius: 10px;
    color: var(--muted);
}

/* Cards */
.cards {
    display: flex;
    gap: 18px;
    margin: 18px 0;
}

.card {
    background: #fff;
    border: 1px solid #eef2f4;
    padding: 18px;
    border-radius: 10px;
    flex: 1;
}

/* Form */
.form-wrap {
    display: flex;
    margin-top: 18px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eef2f4;
}

.lead-form {
    width: 100%;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.lead-form label {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="file"],
.lead-form select,
.lead-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e6e9ee;
    width: 100%;
    box-sizing: border-box;

    /* FIX: Ensure white inputs (not blue/odd) */
    background-color: #fff !important;
    color: var(--dark) !important;
}

/* Fix Chrome/Safari autofill yellow/blue bg */
.lead-form input:-webkit-autofill,
.lead-form select:-webkit-autofill,
.lead-form textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--dark) !important;
    caret-color: var(--dark);
    transition: background-color 9999s ease-out 0s; /* keep bg white */
}

.lead-form textarea {
    resize: vertical;
    grid-column: 1 / span 2;
}

/* Focus states for accessibility + clarity */
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: 2px solid rgba(46,125,50,0.35);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}

.lead-form button {
    grid-column: 1 / span 2;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

/* Single-column fallback for mobile */
@media (max-width:900px) {
    .ar-hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .ar-hero-image {
        width: 80%;
        max-width: 80%;
    }

    /* Keep proper flex/grid behavior on mobile (no display: block overrides) */
    .two-col {
        flex-direction: column;
    }

    .cards {
        flex-direction: column;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .lead-form {
        grid-template-columns: 1fr;
    }

    .wrap {
        padding: 24px 18px;
    }

    .ar-hero-copy h1 {
        font-size: 28px;
    }
}

/* Sticky call */
.ar-sticky-call {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    background: var(--accent);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 9999;
}

@media (max-width:600px) {
    .ar-sticky-call {
        display: block;
    }
}

/* Success message */
.lead-success {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 14px;
    border-radius: 8px;
    color: #2e7d32;
    margin-bottom: 12px;
}

/*patches*/

/* Reduce vertical padding in hero and sections */
.ar-hero {
    padding: 32px 0; /* was 48px */
}

.ar-section {
    padding: 28px 0; /* was 40px */
}

/* Reduce wrap padding to tighten vertical spacing */
.wrap {
    padding: 32px 20px; /* was 48px */
}

/* Optional: slightly reduce gap inside two-col layouts */
.two-col {
    gap: 24px; /* was 32px */
}





