/*
Theme Name: GeneratePress Child
Theme URI: 
Description: Custom child theme for Palmetto Landscaping
Author: 
Author URI: 
Template: generatepress
Version: 1.0.0
*/

/* ==========================================================================
   BASE TYPOGRAPHY
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   HERO OVERLAY
   ========================================================================== */

.hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4));
}

/* ==========================================================================
   SC PATTERN BACKGROUND
   ========================================================================== */

.sc-pattern {
    background-color: #f0fdf4;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2315803d' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================================================
   ACCORDION STYLES
   ========================================================================== */

.accordion-content {
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION - SAFE VERSION
   ========================================================================== */

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

/* Only hide elements if JavaScript is confirmed working */
.js-enabled .reveal:not(.active) {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   BUTTON SHIMMER EFFECT
   ========================================================================== */

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg) translateX(-150%);
    transition: transform 0.5s;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: skewX(-20deg) translateX(-150%); }
    20% { transform: skewX(-20deg) translateX(150%); }
    100% { transform: skewX(-20deg) translateX(150%); }
}

/* ==========================================================================
   HERO QUOTE FORM - CF7 STYLING
   ========================================================================== */

/* Form container */
.hero-quote-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Remove CF7 default paragraph margins */
.hero-quote-form .wpcf7-form p {
    margin: 0;
}

/* Form control wrapper */
.hero-quote-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Text inputs, email, tel */
.hero-quote-form input[type="text"],
.hero-quote-form input[type="email"],
.hero-quote-form input[type="tel"],
.hero-quote-form .wpcf7-text,
.hero-quote-form .wpcf7-email,
.hero-quote-form .wpcf7-tel {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    font-size: 1rem;
}

.hero-quote-form input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Select dropdown */
.hero-quote-form select,
.hero-quote-form .wpcf7-select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

/* Radio buttons - custom toggle style */
.hero-quote-form .wpcf7-radio {
    display: flex;
    gap: 1rem;
}

.hero-quote-form .wpcf7-radio .wpcf7-list-item {
    flex: 1;
    margin: 0;
}

.hero-quote-form .wpcf7-radio .wpcf7-list-item label {
    display: block;
    cursor: pointer;
}

.hero-quote-form .wpcf7-radio .wpcf7-list-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hero-quote-form .wpcf7-radio .wpcf7-list-item .wpcf7-list-item-label {
    display: block;
    padding: 0.5rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background: #fff;
}

.hero-quote-form .wpcf7-radio .wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label {
    border-color: #16a34a;
    background-color: #f0fdf4;
    color: #15803d;
}

/* Grid row for name/phone */
.hero-quote-form .form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .hero-quote-form .form-grid-row {
        grid-template-columns: 1fr;
    }
}

/* Submit button */
.hero-quote-form input[type="submit"],
.hero-quote-form .wpcf7-submit {
    width: 100%;
    background-color: #16a34a !important;
    color: #fff !important;
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-quote-form input[type="submit"]:hover,
.hero-quote-form .wpcf7-submit:hover {
    background-color: #15803d !important;
}

/* Submit button shimmer effect */
.hero-quote-form input[type="submit"]::after,
.hero-quote-form .wpcf7-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg) translateX(-150%);
    animation: shine 3s infinite;
}

/* ==========================================================================
   CONTACT PAGE FORM - CF7 STYLING
   ========================================================================== */

/* Form container */
.contact-page-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Remove CF7 default paragraph margins */
.contact-page-form .wpcf7-form p {
    margin: 0;
}

/* Form control wrapper */
.contact-page-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Labels */
.contact-page-form .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Text inputs, email, tel */
.contact-page-form input[type="text"],
.contact-page-form input[type="email"],
.contact-page-form input[type="tel"],
.contact-page-form .wpcf7-text,
.contact-page-form .wpcf7-email,
.contact-page-form .wpcf7-tel {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    background-color: #fff;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus,
.contact-page-form select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Textarea */
.contact-page-form textarea,
.contact-page-form .wpcf7-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
}

/* Select dropdown */
.contact-page-form select,
.contact-page-form .wpcf7-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

/* Grid rows */
.contact-page-form .form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .contact-page-form .form-grid-row {
        grid-template-columns: 1fr;
    }
}

/* Submit button */
.contact-page-form input[type="submit"],
.contact-page-form .wpcf7-submit {
    width: 100%;
    background-color: #16a34a !important;
    color: #fff !important;
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-page-form input[type="submit"]:hover,
.contact-page-form .wpcf7-submit:hover {
    background-color: #15803d !important;
}

/* Submit button shimmer effect */
.contact-page-form input[type="submit"]::after,
.contact-page-form .wpcf7-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg) translateX(-150%);
    animation: shine 3s infinite;
}