/*
Theme Name: JPC Bricklaying
Theme URI: https://jpcbrick.com
Author: JPC Bricklaying
Description: Custom theme for JPC Bricklaying - Dunedin bricklaying services
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: jpcbricklaying
*/

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: #1a1a1a;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
    background: #d9d9d9;
    border-top: 4px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-block;
}

.logo-text {
    font-family: 'Oswald', 'Impact', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background: #1a1a1a;
    padding: 8px 20px;
    display: inline-block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #333;
    transition: color 0.2s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    color: #888;
}

.main-nav .current-menu-item a::after,
.main-nav .current_page_item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #555;
}

/* Mobile nav */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: transform 0.3s ease;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ---------- Hero Section ---------- */
.hero-section {
    background-color: #d9d9d9;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-heading {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.hero-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
    max-width: 480px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 500px;
}

/* ---------- Contact Section ---------- */
.contact-section {
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.section-heading,
.contact-section h1,
.contact-section h2 {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a1a;
    letter-spacing: 0.05em;
}

/* ---------- Forms ---------- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 16px;
}

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

.form-group.half {
    flex: 1;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.2s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    border-color: #666;
    outline: none;
}

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

.contact-form .btn,
.contact-form button[type="submit"],
.contact-form input[type="submit"],
.wpcf7-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: #4a4a4a;
    color: #fff;
    border: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.contact-form .btn:hover,
.contact-form button[type="submit"]:hover,
.contact-form input[type="submit"]:hover,
.wpcf7-submit:hover {
    background: #333;
}

/* Contact Form 7 styling */
.wpcf7 {
    max-width: 700px;
    margin: 0 auto;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #333;
}

.wpcf7 textarea {
    min-height: 150px;
}

.wpcf7-response-output {
    text-align: center;
    margin: 16px 0 !important;
    padding: 12px 16px !important;
}

.form-message {
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 0.95rem;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

/* ---------- About Section ---------- */
.about-section {
    background: #3a3a3a;
    color: #e0e0e0;
    min-height: 400px;
}

.about-content-wrapper {
    padding: 80px 0 60px;
}


.about-text {
    font-size: 0.95rem;
    line-height: 1.9;
    max-width: 900px;
}

.about-text p {
    margin-bottom: 20px;
}

/* ---------- Page Header ---------- */
.page-header {
    background: #333;
    padding: 48px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.4rem;
    color: #fff;
    margin: 0;
    letter-spacing: 0.08em;
}

.page-header-subtitle {
    font-size: 1rem;
    color: #aaa;
    margin-top: 8px;
    font-style: italic;
}

/* ---------- Services Section ---------- */
.services-section {
    background: #999;
    padding: 60px 0 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.service-card {
    background: #d9d9d9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-image {
    height: 280px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.03);
}

.service-content {
    padding: 24px;
}

.service-content h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.service-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
}

/* ---------- Testimonials Section ---------- */
.testimonials-section {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 80px 0;
}


.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.testimonial-card {
    position: relative;
    background: #252525;
    border-left: 3px solid #555;
    padding: 32px;
    transition: border-color 0.2s ease;
}

.testimonial-card:hover {
    border-left-color: #888;
}

.quote-mark {
    font-size: 3rem;
    line-height: 1;
    color: #555;
    font-family: Georgia, serif;
    margin-bottom: 12px;
}

.testimonial-quote {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #bbb;
    font-style: normal;
    margin-bottom: 20px;
    border: none;
    padding: 0;
}

.testimonial-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    font-style: normal;
    color: #fff;
    letter-spacing: 0.08em;
}

/* ---------- FAQ Section ---------- */
.faq-section {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 80px 0;
    min-height: 400px;
}


.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 80px;
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.faq-answer {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #bbb;
}

/* ---------- Map Section ---------- */
.map-section {
    background: #1a1a1a;
}

.map-section iframe {
    display: block;
    filter: grayscale(80%);
}

/* ---------- Hide reCAPTCHA v3 badge (allowed per Google TOS with text credit) ---------- */
.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-credit {
    font-size: 0.6rem;
    color: #333;
    text-align: center;
    margin-top: 8px;
}

.recaptcha-credit a {
    color: inherit;
    text-decoration: underline;
}

/* ---------- Contact Modal ---------- */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.contact-modal-content {
    position: relative;
    background: #fff;
    padding: 48px 40px;
    max-width: 460px;
    width: 90%;
    text-align: center;
}

.contact-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.contact-modal-close:hover {
    color: #333;
}

.contact-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4a4a4a;
    color: #fff;
    font-size: 1.8rem;
    line-height: 60px;
    margin: 0 auto 20px;
}

.contact-modal-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.contact-modal-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 28px;
}

.contact-modal-btn {
    display: inline-block;
    padding: 12px 40px;
    background: #4a4a4a;
    color: #fff;
    border: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-modal-btn:hover {
    background: #333;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #1a1a1a;
    color: #888;
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-inner p {
    margin: 0;
}

.footer-credit {
    font-size: 0.7rem;
    color: #666;
    margin-top: 6px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-image {
        order: -1;
    }

    .services-grid,
    .testimonials-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        gap: 40px;
    }

    .faq-grid {
        gap: 40px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #d9d9d9;
        border-top: 1px solid #bbb;
        padding: 16px 24px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .hero-heading {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}
