/* ==========================================================================
   Additional Theme Styles
   ========================================================================== */

/* Header Styles
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #FFFFFF;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    min-height: var(--header-height);
}

.site-branding {
    flex-shrink: 0;
}

.site-branding img {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-primary);
}

.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-weight: 500;
    color: var(--color-text-primary);
    padding: var(--space-sm) var(--space-md);
    transition: color var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-primary);
    font-weight: 500;
}

.header-phone svg {
    color: var(--color-primary);
}

.header-portal-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(122, 158, 119, 0.1) 0%, rgba(122, 158, 119, 0.05) 100%);
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid rgba(122, 158, 119, 0.2);
}

.header-portal-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.header-portal-link svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header-portal-link span {
        display: none;
    }

    .header-portal-link {
        padding: 8px;
        border-radius: 50%;
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-fast);
}

@media (max-width: 991px) {
    .main-navigation {
        position: fixed;
        top: var(--header-height-mobile);
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--header-height-mobile));
        background: #FFFFFF;
        box-shadow: var(--shadow-xl);
        transition: left var(--transition-normal);
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 0;
    }

    .main-navigation.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
        gap: 0;
    }

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

    .nav-menu a {
        display: block;
        padding: var(--space-md);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-phone .phone-number {
        display: none;
    }

    .header-actions {
        gap: 8px;
        margin-left: auto;
    }

    /* Hide the portal icon in header on mobile - it's in the menu instead */
    .header-portal-link {
        display: none;
    }

    .header-cta {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Mobile menu portal link - right after menu items */
    .mobile-nav-portal {
        display: block;
        padding: 20px;
        margin-top: 10px;
    }

    .mobile-portal-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px 20px;
        background: transparent;
        color: var(--color-primary, #7A9E77);
        text-decoration: none;
        border: 2px solid var(--color-primary, #7A9E77);
        border-radius: 12px;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.25s ease;
    }

    .mobile-portal-link:hover,
    .mobile-portal-link:active {
        background: var(--color-primary, #7A9E77);
        color: white;
    }

    .mobile-portal-link svg {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
    }
}

/* Hide mobile nav portal on desktop only */
@media (min-width: 992px) {
    .mobile-nav-portal {
        display: none !important;
    }
}

/* Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

/* Responsive hero image (replaces CSS background-image for better mobile performance) */
.hero-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl);
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: var(--text-5xl);
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--text-2xl);
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    opacity: 0.95;
}

.hero-cta {
    margin-bottom: var(--space-lg);
}

.hero-badges {
    margin-top: var(--space-lg);
}

.hero-service-area {
    margin-top: var(--space-md);
    font-size: var(--text-lg);
    opacity: 0.9;
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 500px;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }
}

/* Trust Badges
   ========================================================================== */

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.trust-badges--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-full);
    backdrop-filter: blur(10px);
}

.trust-badge__icon {
    font-weight: bold;
    color: var(--color-secondary);
}

.trust-badge__text {
    font-size: var(--text-sm);
    font-weight: 500;
}

/* Process Steps
   ========================================================================== */

.process-step {
    text-align: center;
    padding: var(--space-lg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-text-light);
    font-size: var(--text-2xl);
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: var(--space-md);
}

.process-step h3 {
    margin-bottom: var(--space-sm);
}

/* Features
   ========================================================================== */

.feature-item {
    text-align: center;
    padding: var(--space-lg);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    color: var(--color-text-light);
    font-size: var(--text-2xl);
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: var(--space-md);
}

/* Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.footer-main {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
}

.footer-column h4 {
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: var(--space-sm);
}

.footer-menu a {
    color: var(--color-text-light);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-menu a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-icon {
    display: block;
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: 50%;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.social-icon:hover {
    transform: translateY(-2px);
    background-color: var(--color-secondary);
}

.footer-newsletter {
    margin-top: var(--space-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    max-width: 400px;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    font-size: var(--text-base);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    white-space: nowrap;
    padding: var(--space-sm) var(--space-lg);
}

.footer-bottom {
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    margin: 0;
    padding: 0;
}

.footer-legal-menu li {
    position: relative;
}

.footer-legal-menu li:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: calc(var(--space-md) / -2 - 2px);
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a,
.footer-legal-menu a {
    color: var(--color-text-light);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-legal a:hover,
.footer-legal-menu a:hover {
    opacity: 1;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* Booking Page
   ========================================================================== */

.booking-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
}

.booking-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-lg);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

.progress-step.active {
    opacity: 1;
}

.progress-step .step-number {
    width: 40px;
    height: 40px;
    background: var(--color-text-muted);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.progress-step.active .step-number {
    background: var(--color-primary);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--color-text-muted);
    margin: 0 var(--space-sm);
}

.sidebar-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
}

.sidebar-testimonial blockquote {
    font-style: italic;
    margin-bottom: var(--space-md);
}

.sidebar-testimonial cite {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

@media (max-width: 991px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }

    .booking-sidebar {
        order: -1;
    }
}

/* Dashboard
   ========================================================================== */

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

.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-2xl);
}

.dashboard-nav ul {
    list-style: none;
}

.dashboard-nav li {
    margin-bottom: var(--space-xs);
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    color: var(--color-text-primary);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.dashboard-nav li.active a,
.dashboard-nav a:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
}

@media (max-width: 767px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        order: 2;
    }

    .dashboard-header-inner {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* Page Header
   ========================================================================== */

.page-header {
    padding: var(--space-3xl) 0 var(--space-2xl);
    background: var(--color-bg-secondary);
}

.page-header h1 {
    margin-bottom: var(--space-sm);
}

/* Service Cards
   ========================================================================== */

.service-card .card__content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-price {
    margin-top: auto;
    padding-top: var(--space-md);
    font-size: var(--text-lg);
    color: var(--color-accent);
}

/* CTA Section
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-text-light);
}

.cta-section h2 {
    color: var(--color-text-light);
}

/* Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility: Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Layout Sidebars
   ========================================================================== */

.layout-sidebar-right {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-2xl);
}

@media (max-width: 991px) {
    .layout-sidebar-right {
        grid-template-columns: 1fr;
    }
}

/* Pagination
   ========================================================================== */

.pagination,
.blog-pagination {
    margin-top: var(--space-2xl);
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.pagination-list {
    display: flex;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.pagination .page-numbers,
.pagination-item .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-sm);
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    font-weight: 600;
    text-decoration: none;
}

.pagination-item .page-numbers.current,
.pagination-item .page-numbers:hover,
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.pagination-item .page-numbers svg {
    width: 20px;
    height: 20px;
}

/* Contact Page
   ========================================================================== */

.contact-info h3 {
    margin-bottom: var(--space-lg);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.info-item strong {
    color: var(--color-primary);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item a {
    color: var(--color-text-primary);
    font-size: var(--text-lg);
    font-family: var(--font-heading);
}

/* FAQ Accordion
   ========================================================================== */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item summary {
    padding: var(--space-md);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    /* Hide default triangle */
    position: relative;
    padding-right: var(--space-2xl);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: var(--text-xl);
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 var(--space-md) var(--space-md);
    margin: 0;
    color: var(--color-text-secondary);
}

/* Comments (Basic)
   ========================================================================== */

.comments-area {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
}

/* AI Writer Article Styling
   ========================================================================== */

.pb-article-wrapper h2 {
    color: #5D7B6F;
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.pb-article-wrapper h3 {
    color: #8c8c8c;
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

.pb-article-wrapper p {
    margin-bottom: 18px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.pb-article-wrapper ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.pb-article-wrapper li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.pb-article-wrapper a {
    color: #5D7B6F;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dotted #5D7B6F;
    transition: all 0.3s ease;
}

.pb-article-wrapper a:hover {
    color: #3d524a;
    border-bottom: 1px solid #3d524a;
}

.pb-cta-container {
    background-color: #5D7B6F;
    color: #ffffff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(93, 123, 111, 0.2);
}

.pb-cta-container h3,
.pb-cta-container h2 {
    color: #ffffff !important;
    margin-top: 0;
    border-bottom: none;
}

.pb-cta-btn {
    display: inline-block;
    background-color: #f4e4d4;
    color: #5D7B6F !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 15px;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pb-cta-btn:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    border-bottom: none;
}