/*
Theme Name: Plan-It Landscape
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: A custom theme for Plan-It Landscape based on Twenty Twenty-Five
Author: Your Name
Author URI: https://example.com
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: planitlandscape
*/

/* 
This file is for your custom CSS.
You can override parent theme styles here.
*/

/* Plan-It Landscape Custom Styles */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Typography spacing adjustments */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 16px;
}

h1 {
    margin-bottom: 24px;
}

p {
    margin-top: 0;
    margin-bottom: 16px;
}

p + h2, p + h3 {
    margin-top: 24px;
}

h1{
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.2px;
}
h2{
    font-weight: 600;
    font-size: 30px;
    line-height: 1.3;
    cursor: pointer;
}
h3{
    color: var(--Apple-body-1, #1D1D1F);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
}
h4{
    color: var(--Apple-body-1, #1D1D1F);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
}
h5{
    color: var(--Apple-body-1, #1D1D1F);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
}
h6{
    color: var(--Apple-body-1, #1D1D1F);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
}
p{
    color: var(--Apple-body-1, #1D1D1F);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.33;
}
/* NUMBERED LIST STYLING FOR SERVICES SECTION */
ol.services-list {
    counter-reset: item;
    list-style-type: decimal;
    padding-left: 2em;
    margin-left: 0;
}

ol.services-list li {
    position: relative;
    margin-bottom: 24px;
    padding-left: 0;
    display: block;
}

ol.services-list li h3 {
    font-weight: 600;
    margin-bottom: 8px;
}

ol.services-list li p {
    margin-top: 0;
}

/* STICKY HEADER - ALTERNATE APPROACH */
/* Remove any standard sticky/fixed CSS to prevent conflicts */
.site-header {
    position: static !important; /* Reset any positioning */
}

/* We'll add the sticky behavior via JavaScript */
.js-sticky-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid #DFE1E5 !important;
    transition: all 0.3s ease !important;
}

/* Ensure content starts below the fixed header when needed */
body.has-sticky-header main {
    padding-top: 70px; /* Adjust based on your header height */
}

/* Site title color */
.wp-block-site-title a {
    color: #ffffff;
    font-weight: 700;
}

/* Link colors */
a {
    color: #4a8f3e;
    transition: color 0.3s ease;
}

a:hover {
    color: #3d7534;
    text-decoration: none;
}

/* Button styles */
.wp-block-button__link {
    border-radius: 4px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* SECTION STYLING WITH BORDERS AND PROPER SPACING */
#home, #services, #about {
    padding: 30px !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #DFE1E5 !important;
}

/* Adjust spacing for block editor sections */
.wp-block-group.alignfull {
    padding: 30px !important;
}

/* Services section spacing */
.services-section h3 {
    margin-top: 24px;
    margin-bottom: 16px;
}

/* Contact Form 7 styling and LEFT ALIGNMENT */
.wpcf7-form {
    text-align: left;
    max-width: 100%;
    margin-left: 0;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333;
    margin-top: 8px;
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    cursor: pointer;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    background-color: #4a8f3e;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #3d7534;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Contact Form 7 Block styling */
.wp-block-contact-form-7-contact-form-selector {
    width: 100%;
    text-align: left;
}

/* Footer styling */
.wp-block-template-part.footer {
    background-color: #4a8f3e;
    color: #fff;
    padding: 30px !important;
}

/* Fix left alignment for CTA and contact sections */
.contact-section, 
.contact-section .wp-block-group,
.contact-section p,
.wp-block-buttons,
.wp-block-buttons .wp-block-button {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.wp-block-buttons {
    display: flex;
    justify-content: flex-start !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #4a8f3e;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.back-to-top a:hover {
    background-color: #3d7534;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.back-to-top svg {
    stroke: #fff;
}

/* CUSTOM HAMBURGER MENU ICON - 3 LINES */
/* First, hide the default icon */
.wp-block-navigation__responsive-container-open svg {
    display: none !important;
}

/* Create a custom hamburger with three lines */
.wp-block-navigation__responsive-container-open {
    position: relative;
    width: 30px;
    height: 24px;
}

/* Top line */
.wp-block-navigation__responsive-container-open::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
}

/* Middle line */
.wp-block-navigation__responsive-container-open::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transform: translateY(-50%);
}

/* Bottom line - we need to add a span */
.hamburger-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }
    
    .wp-block-navigation__responsive-container:not(.has-modal-open) {
        display: none;
    }
    
    /* Adjust padding for mobile */
    #home, #services, #about, #contact {
        padding: 20px !important;
    }
}



/* Styling for alternating services section */

/* Add this to your existing style.css file */

/* Services section styling */
.services-section .wp-block-columns {
    margin-bottom: 0;
}

.services-section h3 {
    position: relative;
    font-weight: 600;
}

/* Mobile responsiveness for services section */
@media (max-width: 768px) {
    .services-section .wp-block-columns {
        flex-direction: column;
    }
    
    .services-section .wp-block-column {
        flex-basis: 100% !important;
    }
    
    /* Ensure images always come first on mobile */
    .services-section .wp-block-columns:nth-child(even) {
        flex-direction: column-reverse;
    }
    
    .services-section .wp-block-image {
        margin-bottom: 20px;
    }
}

/* Subtle image hover effect */
.services-section .wp-block-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-section .wp-block-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Optional: Add a subtle fade effect for the divider */
.services-section .wp-block-group {
    position: relative;
}

.services-section .wp-block-group:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #DFE1E5, transparent);
}