/*
Theme Name: A Handyman
Theme URI: https://example.com/a-handyman
Author: OpenAI
Author URI: https://openai.com
Description: Lightweight Elementor-friendly WordPress theme for handyman businesses with a Services CPT, dynamic templates, and a conversion-focused homepage.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: a-handyman
*/

:root {
    --ah-bg: #f7f0e6;
    --ah-bg-strong: #efe4d2;
    --ah-surface: #fffdf9;
    --ah-surface-strong: #ffffff;
    --ah-text: #172126;
    --ah-muted: #5d6770;
    --ah-accent: #e06b2f;
    --ah-accent-strong: #c7561b;
    --ah-secondary: #143f3c;
    --ah-secondary-soft: #245e5a;
    --ah-border: rgba(23, 33, 38, 0.08);
    --ah-shadow: 0 22px 60px rgba(23, 33, 38, 0.12);
    --ah-radius: 24px;
    --ah-max: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ah-text);
    background:
        radial-gradient(circle at top left, rgba(224, 107, 47, 0.14), transparent 24%),
        radial-gradient(circle at top right, rgba(20, 63, 60, 0.1), transparent 20%),
        linear-gradient(180deg, #fcf8f2 0%, var(--ah-bg) 100%);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(255, 253, 249, 0.88);
    border-bottom: 1px solid rgba(23, 33, 38, 0.06);
}

.ah-container {
    width: min(calc(100% - 2rem), var(--ah-max));
    margin: 0 auto;
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-inner {
    min-height: 82px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-weight: 700;
}

.site-title {
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.site-description {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ah-muted);
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    color: var(--ah-muted);
    font-weight: 700;
    font-size: 0.95rem;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--ah-secondary);
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--ah-secondary);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 999px;
}

.hero-section,
.ah-section {
    position: relative;
    padding: 4.4rem 0;
}

.hero-section--premium {
    overflow: hidden;
    padding-top: 5rem;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(10px);
}

.hero-orb-one {
    top: 40px;
    left: -80px;
    width: 260px;
    height: 260px;
    background: rgba(224, 107, 47, 0.18);
}

.hero-orb-two {
    right: -90px;
    bottom: 60px;
    width: 320px;
    height: 320px;
    background: rgba(20, 63, 60, 0.12);
}

.hero-grid,
.two-column-grid,
.cta-banner,
.contact-grid,
.archive-grid,
.faq-layout,
.faq-grid {
    display: grid;
    gap: 2rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    min-height: 76vh;
}

.hero-copy-wrap {
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: rgba(20, 63, 60, 0.08);
    color: var(--ah-secondary);
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eyebrow-light {
    background: rgba(255, 255, 255, 0.12);
    color: #dcebea;
}

.section-title,
.hero-title,
.entry-title {
    line-height: 1.05;
    margin: 0 0 1rem;
    letter-spacing: -0.04em;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    max-width: 11ch;
}

.hero-copy,
.section-copy,
.entry-summary,
.entry-content p,
.service-card p,
.faq-item p,
.contact-card p {
    color: var(--ah-muted);
    margin-top: 0;
}

.button-row,
.hero-actions,
.hero-promise-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-actions {
    margin-top: 1.8rem;
}

.ah-button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.95rem 1.55rem;
    border: 0;
    border-radius: 999px;
    background: var(--ah-accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 16px 30px rgba(224, 107, 47, 0.25);
}

.ah-button:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    background: var(--ah-accent-strong);
}

.ah-button.secondary {
    background: var(--ah-secondary);
    box-shadow: 0 16px 30px rgba(20, 63, 60, 0.2);
}

.text-link {
    color: var(--ah-secondary);
    font-weight: 800;
}

.hero-photo-card,
.content-card,
.service-card,
.contact-card,
.faq-item,
.gallery-card,
.testimonial-card,
.step-card,
.point-card,
.cta-banner,
.entry-panel,
.service-area-panel {
    background: var(--ah-surface-strong);
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius);
    box-shadow: var(--ah-shadow);
}

.hero-photo-card {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    background:
        linear-gradient(140deg, rgba(20, 63, 60, 0.96), rgba(224, 107, 47, 0.88)),
        linear-gradient(180deg, #143f3c 0%, #e06b2f 100%);
    padding: 1.6rem;
}

.hero-photo-card img {
    width: 100%;
    height: 100%;
    min-height: 528px;
    object-fit: cover;
    border-radius: 20px;
}

.hero-placeholder {
    height: 100%;
    min-height: 528px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border-radius: 20px;
    padding: 2rem;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.18)),
        linear-gradient(180deg, rgba(20, 63, 60, 0.1), rgba(20, 63, 60, 0.35));
}

.hero-placeholder--visual strong {
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 0.95;
    margin-bottom: 0.9rem;
    max-width: 9ch;
}

.hero-placeholder-badge,
.promise-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-placeholder-badge {
    align-self: flex-start;
    margin-bottom: 1.2rem;
    background: rgba(255, 255, 255, 0.14);
}

.hero-promise-row {
    margin-top: 1.5rem;
}

.promise-pill {
    background: rgba(20, 63, 60, 0.08);
    color: var(--ah-secondary);
}

.hero-review-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.7rem;
}

.review-chip {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(20, 63, 60, 0.08);
}

.review-chip strong {
    display: block;
    color: var(--ah-secondary);
    font-size: 1.25rem;
}

.review-chip span {
    display: block;
    color: var(--ah-muted);
    font-size: 0.92rem;
}

.hero-floating-card {
    position: absolute;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    color: #fff;
    box-shadow: var(--ah-shadow);
}

.hero-floating-card span,
.hero-floating-card strong {
    display: block;
}

.hero-floating-card span {
    font-size: 0.82rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-floating-card strong {
    font-size: 1.05rem;
}

.hero-floating-card--primary {
    left: -10px;
    bottom: 32px;
    background: var(--ah-secondary);
}

.hero-floating-card--secondary {
    right: -10px;
    top: 34px;
    background: var(--ah-accent);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-dark {
    background:
        radial-gradient(circle at top right, rgba(224, 107, 47, 0.25), transparent 30%),
        linear-gradient(180deg, #153834 0%, #102726 100%);
    color: #fff;
}

.section-dark .section-title,
.section-dark h3 {
    color: #fff;
}

.section-dark .section-copy,
.section-dark p {
    color: rgba(255, 255, 255, 0.75);
}

.services-grid,
.steps-grid,
.gallery-grid,
.testimonial-grid,
.footer-grid,
.service-benefits,
.points-grid {
    display: grid;
    gap: 1.25rem;
}

.services-grid,
.steps-grid,
.gallery-grid,
.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.points-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.point-card,
.step-card,
.testimonial-card,
.gallery-card,
.contact-card,
.faq-item {
    padding: 1.5rem;
}

.service-card--rich {
    padding: 0;
    overflow: hidden;
}

.service-card-media {
    position: relative;
}

.service-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.service-thumb--placeholder {
    background:
        linear-gradient(135deg, rgba(224, 107, 47, 0.15), rgba(20, 63, 60, 0.18)),
        linear-gradient(180deg, #efe5d7, #e1e7e5);
}

.service-icon-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    min-height: 44px;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(20, 63, 60, 0.94);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.service-card-body {
    padding: 1.4rem;
}

.service-card h3,
.point-card h3,
.step-card h3,
.testimonial-card h3,
.contact-card h3,
.faq-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.point-card--dark {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.step-card {
    position: relative;
    padding-top: 4rem;
}

.step-number {
    position: absolute;
    left: 1.5rem;
    top: 1.25rem;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: rgba(224, 107, 47, 0.26);
}

.gallery-grid--featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
    position: relative;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
}

.gallery-card--featured {
    min-height: 320px;
    padding: 0;
}

.gallery-card--featured figcaption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    gap: 0.2rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(20, 63, 60, 0.82);
    color: #fff;
}

.gallery-card--featured figcaption span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.gallery-card--placeholder {
    display: flex;
    align-items: end;
    min-height: 320px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(20, 63, 60, 0.1)),
        linear-gradient(135deg, rgba(224, 107, 47, 0.14), rgba(20, 63, 60, 0.18));
}

.gallery-placeholder-shape {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55), transparent 20%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.24), transparent 18%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
}

.testimonials-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)),
        linear-gradient(180deg, #fcf8f2 0%, #f7f0e6 100%);
}

.rating-stars {
    color: var(--ah-accent);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.9rem;
}

.service-area-panel {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
}

.service-areas-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.area-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: #f2ebe2;
    color: var(--ah-secondary);
    font-weight: 700;
}

.elementor-page-shell {
    width: 100%;
}

.cta-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 2.2rem;
}

.cta-banner--strong {
    background:
        radial-gradient(circle at top right, rgba(224, 107, 47, 0.18), transparent 26%),
        linear-gradient(180deg, #fffdf8 0%, #fff6ee 100%);
}

.archive-page,
.page-template-default .site-main,
.single-services .site-main,
.page-template-page-contact .site-main,
.page-template-page-gallery .site-main {
    padding: 3rem 0 4rem;
}

.archive-grid,
.contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.faq-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
}

.faq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.entry-panel {
    padding: 2rem;
}

.service-meta,
.contact-list,
.service-areas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-meta li,
.contact-list li,
.service-areas-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(23, 33, 38, 0.08);
}

.ah-form {
    display: grid;
    gap: 1rem;
}

.ah-form label {
    font-weight: 700;
    display: grid;
    gap: 0.5rem;
}

.ah-form input,
.ah-form textarea {
    width: 100%;
    border: 1px solid rgba(23, 33, 38, 0.1);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font: inherit;
    background: #fff;
}

.ah-form textarea {
    min-height: 160px;
    resize: vertical;
}

.form-message {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-weight: 700;
}

.form-message.success {
    background: rgba(51, 145, 97, 0.12);
    color: #236742;
}

.form-message.error {
    background: rgba(180, 58, 46, 0.12);
    color: #8f281f;
}

.whatsapp-button {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 998;
    border-radius: 999px;
    padding: 0.95rem 1.25rem;
    background: #1fa855;
    color: #fff;
    box-shadow: 0 18px 38px rgba(31, 168, 85, 0.24);
}

.site-footer {
    position: relative;
    margin-top: 3rem;
    padding: 4rem 0 3rem;
    background:
        radial-gradient(circle at top right, rgba(224, 107, 47, 0.22), transparent 26%),
        linear-gradient(180deg, #11201f 0%, #0c1717 100%);
    color: rgba(255, 255, 255, 0.88);
}

.site-footer a {
    color: #fff;
}

.footer-inner {
    align-items: start;
}

.footer-lead {
    max-width: 520px;
}

.footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.8rem;
}

.footer-card {
    padding: 1.4rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-card h3 {
    margin-top: 0;
}

.copyright {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
}

.alignwide {
    width: min(calc(100% - 2rem), calc(var(--ah-max) + 100px));
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100%;
}

@media (max-width: 1080px) {
    .gallery-grid--featured,
    .points-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .two-column-grid,
    .archive-grid,
    .contact-grid,
    .faq-layout,
    .cta-banner,
    .points-grid,
    .points-grid--4,
    .steps-grid,
    .services-grid,
    .gallery-grid,
    .gallery-grid--featured,
    .testimonial-grid,
    .footer-grid,
    .hero-review-strip {
        grid-template-columns: 1fr;
    }

    .hero-photo-card {
        min-height: 440px;
    }

    .hero-photo-card img,
    .hero-placeholder {
        min-height: 408px;
    }

    .hero-floating-card {
        position: static;
        margin-top: 1rem;
    }

    .site-navigation {
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        padding: 1rem;
        background: rgba(255, 253, 249, 0.98);
        border-bottom: 1px solid var(--ah-border);
        display: none;
    }

    .site-navigation.is-open {
        display: block;
    }

    .primary-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .whatsapp-button {
        right: 0.85rem;
        left: auto;
        max-width: calc(100vw - 1.7rem);
    }
}

@media (max-width: 640px) {
    .hero-section,
    .ah-section,
    .archive-page {
        padding: 2.8rem 0;
    }

    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }

    .section-head,
    .footer-inner {
        display: block;
    }

    .hero-photo-card {
        min-height: 360px;
    }

    .hero-photo-card img,
    .hero-placeholder {
        min-height: 328px;
    }

    .service-area-panel,
    .cta-banner,
    .entry-panel {
        padding: 1.4rem;
    }
}
