/*
Theme Name: Tree Partners
Theme URI: https://tree-partners.com
Author: Tree Partners
Author URI: https://tree-partners.com
Description: A custom theme for Tree Partners
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tree-partners
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Component styles now enqueued via functions.php (wp_enqueue_style) */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Lock scroll until features section is loaded (desktop only) */
@media (min-width: 993px) {
    body.features-loading {
        overflow: hidden;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #005177;
    text-decoration: underline;
}

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

/* Layout */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

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

/* Main Content */
/* .site-main {
    padding: 40px 0;
} */

.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .content-area.has-sidebar {
        grid-template-columns: 1fr 300px;
    }
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    margin-bottom: 10px;
}

.entry-title a {
    color: #333;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
}

.entry-meta a {
    color: #666;
}

.entry-content {
    margin-bottom: 20px;
}

.entry-footer {
    font-size: 0.875rem;
    color: #666;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Sidebar */
.widget-area {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    border-bottom: none;
}

/* Footer - Styles moved to assets/css/footer.css */

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #0073aa;
    color: #fff;
}

.pagination .current {
    background-color: #0073aa;
    color: #fff;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.comments-title {
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-content {
    margin-left: 60px;
}

.comment-reply-link {
    font-size: 0.875rem;
}

/* 404 Page */
.error-404-page {
    min-height: 100vh;
    background-color: #1A5259;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 30px;
}

.error-404-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom right;
    pointer-events: none;
    padding: 30px;
}

.error-404-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
}

.error-404-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 250;
    font-size: 128px;
    line-height: 140%;
    letter-spacing: 0;
    text-align: center;
    color: #fff;
    margin: 0;
    /* margin: 0 0 16px; */
}

.error-404-paragraph {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: 0;
    text-align: center;
    color: #fff;
    margin: 0 0 60px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-404-cta {
    display: inline-block;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 110%;
    letter-spacing: 0;
    text-align: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 90px;
    padding: 20px 26px;
    transition: background 0.3s ease;
}

.error-404-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .error-404-title { font-size: 80px; }
    .error-404-paragraph { font-size: 16px; }
    .error-404-cta { font-size: 18px; padding: 16px 22px; }
}

@media (max-width: 480px) {
    .error-404-title { font-size: 64px; }
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form .search-field {
    flex: 1;
}

.search-form .search-submit {
    flex-shrink: 0;
}

/* Alignments */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Front Page Sections */
/* .front-page .section {
    padding: 60px 0;
} */

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0073aa;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Team Section - Styles moved to assets/css/team-contact.css */

/* Insights Section - Styles moved to assets/css/insights.css */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #0073aa;
    color: #fff;
}

.btn-primary:hover {
    background-color: #005177;
    color: #fff;
    text-decoration: none;
}

/* Section Content */
.section-content {
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    /* .front-page .section:not(.section-hero) {
        padding: 40px 0;
    } */
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Hide WPML/OTGS development banners */
.wpml-ls-statics-footer,
.otgs-development-site-front-end {
    display: none !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #1A5259;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 999;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #2a6a72;
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

.scroll-to-top svg path {
    transition: stroke 0.3s ease;
}

/* Light variant for dark sections */
.scroll-to-top.on-dark {
    background-color: #fff;
}

.scroll-to-top.on-dark:hover {
    background-color: #f0f0f0;
}

.scroll-to-top.on-dark svg path {
    stroke: #1A5259;
}
