/*
Theme Name: Drevorez
Description: A custom WordPress theme for drevorez project.
Version: 1.0.0
Author: Your Name
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* Account for fixed header */
}

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

/* Header styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(238, 238, 238, 0.3);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #2d4a3d;
}

.site-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #8bc34a;
}

.site-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

.custom-logo {
    max-width: 200px !important;
    height: auto !important;
}

/* Navigation styles */
.main-navigation {
    position: relative;
    display: flex;
    gap: 12px;
}

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

.nav-menu .menu-item {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #2d4a3d;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #8bc34a;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8bc34a;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 100%;
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-page-ancestor > a,
.nav-menu .current_page_parent > a,
.nav-menu .current-post-ancestor > a,
.nav-menu .current-post-parent > a,
.nav-menu .menu-item.active > a {
    color: #8bc34a;
    font-weight: 700;
}

.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after,
.nav-menu .current-page-ancestor > a::after,
.nav-menu .current_page_parent > a::after,
.nav-menu .current-post-ancestor > a::after,
.nav-menu .current-post-parent > a::after,
.nav-menu .menu-item.active > a::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #2d4a3d;
    font-weight: 600;
    font-size: 0.9rem;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 24px;
    height: 18px;
    justify-content: center;
}

.menu-toggle-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: #2d4a3d;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.menu-toggle-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header CTA Button */
.header-cta {
    margin-left: 1.5rem;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #8bc34a;
    color: white;
    border-color: #8bc34a;
}

.btn-primary:hover {
    background: #7cb342;
    border-color: #7cb342;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #8bc34a;
    border-color: #8bc34a;
}

.btn-secondary:hover {
    background: #8bc34a;
    color: white;
    transform: translateY(-2px);
}

/* Main content */
.site-main {
    min-height: 60vh;
}

/* Page styles */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-article {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.page-header {
    background: linear-gradient(135deg, #2d4a3d 0%, #8bc34a 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-content {
    padding: 60px 40px;
    line-height: 1.8;
    color: #555;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: #2d4a3d;
    margin: 30px 0 20px 0;
}

.page-content h2 {
    font-size: 2.5rem;
    border-bottom: 3px solid #8bc34a;
    padding-bottom: 10px;
}

.page-content h3 {
    font-size: 2rem;
}

.page-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.page-content ul,
.page-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-content li {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.page-footer {
    padding: 20px 40px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.edit-link a {
    color: #8bc34a;
    text-decoration: none;
    font-size: 0.9rem;
}

.edit-link a:hover {
    color: #2d4a3d;
}

/* Responsive design for pages */
@media (max-width: 768px) {
    .page-container {
        padding: 40px 15px;
    }
    
    .page-header {
        padding: 40px 20px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-content {
        padding: 40px 20px;
    }
    
    .page-content h2 {
        font-size: 2rem;
    }
    
    .page-content h3 {
        font-size: 1.5rem;
    }
    
    .page-footer {
        padding: 15px 20px;
    }
}

/* Form Styles - General */
form {
    margin: 20px 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    border-color: #8bc34a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
    background-color: #fafafa;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d4a3d;
    font-size: 1rem;
}

/* Button styles for forms */
input[type="submit"],
input[type="button"],
button,
.btn-form {
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 150px;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.btn-form:hover {
    background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.4);
}

input[type="submit"]:active,
input[type="button"]:active,
button:active,
.btn-form:active {
    transform: translateY(0);
}

/* Checkbox and Radio styles */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: #8bc34a;
}

/* Form field containers */
.form-field,
.form-group {
    margin-bottom: 25px;
}

.form-field label,
.form-group label {
    margin-bottom: 8px;
}

/* Required field indicator */
.required::after,
label.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

/* Error and success messages */
.form-error,
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.form-success,
.success-message {
    color: #27ae60;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

/* Contact Form 7 Specific Styles */
.wpcf7 {
    margin: 20px 0;
}

.wpcf7-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.wpcf7-form p {
    margin-bottom: 25px;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d4a3d;
}

.wpcf7-form-control-wrap {
    position: relative;
    display: block;
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-textarea,
.wpcf7-select,
.wpcf7-number,
.wpcf7-date {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    transition: all 0.3s ease;
}

.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus,
.wpcf7-textarea:focus,
.wpcf7-select:focus,
.wpcf7-number:focus,
.wpcf7-date:focus {
    border-color: #8bc34a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
    background-color: #fafafa;
}

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

.wpcf7-submit {
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.wpcf7-submit:hover {
    background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.4);
}

/* Contact Form 7 validation styles */
.wpcf7-not-valid {
    border-color: #e74c3c !important;
    background-color: #fdf2f2 !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #fdf2f2;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 600;
}

.wpcf7-mail-sent-ok {
    background: #f0f9f0;
    border: 1px solid #27ae60;
    color: #27ae60;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 600;
}

.wpcf7-spinner {
    visibility: visible !important;
    margin-left: 10px;
}

/* Checkbox and Radio for CF7 */
.wpcf7-checkbox,
.wpcf7-radio {
    margin: 10px 0;
}

.wpcf7-list-item {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.wpcf7-list-item input[type="checkbox"],
.wpcf7-list-item input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #8bc34a;
}

.wpcf7-list-item-label {
    margin: 0;
    font-weight: normal;
    color: #555;
}

/* File upload styling */
.wpcf7-file {
    padding: 12px;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.wpcf7-file:hover {
    border-color: #8bc34a;
    background: #f0f9f0;
}

/* WPForms Compatibility */
.wpforms-container {
    margin: 20px 0;
}

.wpforms-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.wpforms-field {
    margin-bottom: 25px;
}

.wpforms-field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d4a3d;
}

.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.wpforms-field input:focus,
.wpforms-field textarea:focus,
.wpforms-field select:focus {
    border-color: #8bc34a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

.wpforms-submit {
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.wpforms-submit:hover {
    background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.4);
}

/* Gravity Forms Compatibility */
.gform_wrapper {
    margin: 20px 0;
}

.gform_wrapper form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.gform_wrapper .gfield {
    margin-bottom: 25px;
}

.gform_wrapper .gfield_label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d4a3d;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea,
.gform_wrapper select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
    border-color: #8bc34a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

.gform_wrapper .gform_button {
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.gform_wrapper .gform_button:hover {
    background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.4);
}

/* Form responsive design */
@media (max-width: 768px) {
    .wpcf7-form,
    .wpforms-form,
    .gform_wrapper form {
        padding: 30px 20px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select,
    .wpcf7-text,
    .wpcf7-email,
    .wpcf7-tel,
    .wpcf7-textarea,
    .wpforms-field input,
    .wpforms-field textarea,
    .gform_wrapper input,
    .gform_wrapper textarea {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    input[type="submit"],
    .wpcf7-submit,
    .wpforms-submit,
    .gform_button {
        width: 100%;
        padding: 15px;
        min-width: auto;
    }
}

/* Post styles */
.post {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2d4a3d;
}

.entry-title a {
    text-decoration: none;
    color: inherit;
}

.entry-title a:hover {
    color: #8bc34a;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.entry-content {
    line-height: 1.8;
    color: #555;
}

/* Footer styles */
.site-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    /* vertically center all */
    align-items: center;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-logo .custom-logo {
    max-width: 150px;
    height: auto;
}

.footer-description {
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b8c5bc;
}

.contact-item strong {
    color: black;
    font-weight: 600;
}

.contact-item a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #8bc34a;
}

.footer-cta .btn {
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.footer-bottom p {
    color: #96af9b;
    font-style: italic;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8bc34a;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .main-navigation.toggled .nav-menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .menu-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu .menu-item:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        padding: 15px 0;
        font-size: 1.1rem;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover,
    .nav-menu a:focus {
        color: #8bc34a;
    }

    .header-cta {
        margin-left: 0;
        margin-top: 20px;
    }

    .header-cta .btn {
        display: block;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.8rem 0;
    }

    .site-title {
        font-size: 1.6rem;
    }

    .site-description {
        font-size: 0.8rem;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    body {
        padding-top: 70px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.6rem 0;
    }

    .site-title {
        font-size: 1.4rem;
    }

    .nav-menu a {
        font-size: 0.95rem;
    }

    body {
        padding-top: 60px;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
} 