/*
Theme Name: Palk - Psicología Clínica y Organizacional
Description: Tema profesional para Palk, consultora de psicología clínica y organizacional. Diseño moderno y responsivo.
Author: Palk Team
Version: 1.0
Tags: business, psychology, responsive, modern, custom-logo
*/

/*
 * Palk WordPress Theme Stylesheet
 *
 * This file defines the visual appearance of the Palk website.
 * The colour palette is inspired by the company's logo: a deep
 * navy for text and accents, paired with a warm golden hue.
 * The layout is responsive, adapting gracefully to different
 * screen sizes.
 */

/* Colour variables */
:root {
    --navy: #092941;
    --navy-dark: #021828;
    --gold: #c0a05d;
    --light-bg: #f7f7f7;
    --white: #ffffff;
    --text: #092941;
}

/* Global resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Prevenir imágenes excesivamente grandes */
img {
    max-width: 100%;
    height: auto;
}

/* Control específico para logos e imágenes en header */
header img,
.wp-custom-logo,
.site-logo img {
    max-height: 150px !important;
    width: auto !important;
    object-fit: contain !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--gold);
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid rgba(9, 41, 65, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    min-height: 70px; /* Altura mínima fija para el header */
}

.logo-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Evita que se comprima */
}

.logo-image,
.custom-logo {
    height: 150px;
    width: auto;
    max-height: 150px;
    max-width: 200px;
    object-fit: contain;
}

/* Asegurar que el logo de WordPress también respete el tamaño */
.custom-logo-link {
    display: inline-block;
    line-height: 1;
    max-height: 150px;
    overflow: hidden;
}

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

/* Prevenir que cualquier imagen en el header sea muy grande */
header img {
    max-height: 50px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Logo fixes - Estilos mejorados para el logo */
.logo-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-wrapper a {
    display: block;
    line-height: 1;
    text-decoration: none;
}

.logo-image,
.custom-logo {
    max-height: 150px !important;
    height: auto !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    display: block !important;
}

.site-title {
    color: var(--navy) !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

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

/* Main content */

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Evita que elementos se salgan */
}

/* Prevenir cualquier imagen de header problemática */
.custom-header {
    display: none !important;
}

/* Si hay alguna imagen de fondo no deseada, ocultarla */
.hero::before {
    display: none !important;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.subheadline {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Sections */
section {
    padding: 4rem 0;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--navy);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--navy);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* About section */
.about {
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* Team section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(9, 41, 65, 0.1);
}

.team-member h3 {
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.team-quote {
    font-style: italic;
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.6;
}

/* Services section */
.service-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.service-btn {
    background-color: var(--gold);
    color: var(--navy);
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 41, 65, 0.2);
    transition-duration: 0.3s;
}

.service-btn:hover {
    box-shadow: 0 8px 25px rgba(9, 41, 65, 0.3);
    background-color: var(--navy);
    color: var(--white);
}

/* Values section */
.values {
    text-align: center;
}

.values h3 {
    text-align: left;
    margin-top: 2rem;
}

.values p {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    transition: all 0.3s ease;
}

/* Testimonials Light Theme */
.testimonials.light-theme {
    background: var(--white);
    color: var(--text);
}

.testimonials h2 {
    color: var(--white);
    transition: color 0.3s ease;
}

.testimonials.light-theme h2 {
    color: var(--navy);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: left; /* Cambio a izquierda como en la imagen */
    min-height: 180px; /* Altura ajustada */
    overflow: hidden;
}

.testimonial {
    display: none;
    transform: translateY(20px);
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--gold); /* Barra dorada a la izquierda */
    padding: 2rem 2.5rem;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(10px);
}

/* Limpiar espaciado interno para evitar líneas vacías */
.testimonial * {
    margin: 0;
    padding: 0;
}

.testimonial p {
    margin-bottom: 1.5rem !important;
}

.testimonial cite {
    margin-top: 0.5rem !important;
}

.testimonials.light-theme .testimonial {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(9, 41, 65, 0.1);
    border-left: 4px solid var(--gold);
}

.testimonial.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--white);
    quotes: '"' '"';
    white-space: pre-line; /* Preserva saltos de línea intencionales */
}

/* Limpiar cualquier línea vacía o espacios innecesarios */
.testimonial p:empty {
    display: none; /* Ocultar párrafos completamente vacíos */
}

.testimonial p br {
    display: none; /* Ocultar saltos de línea HTML */
}

.testimonials.light-theme .testimonial p {
    color: var(--text);
}

.testimonial p::before {
    content: open-quote;
}

.testimonial p::after {
    content: close-quote;
}

.testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: var(--gold);
    font-size: 1rem;
    display: block;
    text-align: right;
    margin-top: 0.5rem;
}

.testimonials.light-theme .testimonial cite {
    color: var(--navy);
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background-color: var(--gold);
    transition: none;
}

.progress-bar.animate {
    animation: slideProgress 6s linear forwards;
}

/* Theme Toggle Button */
.testimonial-theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--white);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.testimonials.light-theme .testimonial-theme-toggle {
    background: rgba(9, 41, 65, 0.1);
    border-color: rgba(9, 41, 65, 0.2);
    color: var(--navy);
}

.testimonial-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.testimonials.light-theme .testimonial-theme-toggle:hover {
    background: rgba(9, 41, 65, 0.2);
}

@keyframes slideProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Contact */

/* Contact section */
.contact {
    text-align: center;
}

.contact-info {
    margin: 2rem 0;
    font-size: 1.1rem;
}

/* Contact Form Container */
.contact-form-container {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
}

/* Error de shortcode */
.shortcode-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 1rem 0;
}

.shortcode-error p {
    margin-bottom: 1rem;
}

.shortcode-error ul {
    margin: 0.5rem 0 0 1.5rem;
}

.shortcode-error li {
    margin-bottom: 0.5rem;
}

/* Estilos generales para formularios de plugins */
.contact-form-container form {
    width: 100%;
}

/* Contact Form 7 Styles */
.contact-form-container .wpcf7-form {
    width: 100%;
}

.contact-form-container .wpcf7-form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    margin-bottom: 1rem;
}

.contact-form-container .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--gold);
}

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

.contact-form-container .wpcf7-submit {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 41, 65, 0.2);
}

.contact-form-container .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 41, 65, 0.3);
}

/* WPForms Styles */
.contact-form-container .wpforms-container {
    width: 100%;
}

.contact-form-container .wpforms-field input,
.contact-form-container .wpforms-field textarea,
.contact-form-container .wpforms-field select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form-container .wpforms-field input:focus,
.contact-form-container .wpforms-field textarea:focus,
.contact-form-container .wpforms-field select:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-form-container .wpforms-submit {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 41, 65, 0.2);
}

.contact-form-container .wpforms-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 41, 65, 0.3);
}

/* Gravity Forms Styles */
.contact-form-container .gform_wrapper input[type="text"],
.contact-form-container .gform_wrapper input[type="email"],
.contact-form-container .gform_wrapper input[type="tel"],
.contact-form-container .gform_wrapper textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form-container .gform_wrapper input:focus,
.contact-form-container .gform_wrapper textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-form-container .gform_wrapper .gform_button {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 41, 65, 0.2);
}

.contact-form-container .gform_wrapper .gform_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 41, 65, 0.3);
}

/* Mensajes de validación */
.contact-form-container .wpcf7-not-valid-tip,
.contact-form-container .wpforms-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.contact-form-container .wpcf7-mail-sent-ok,
.contact-form-container .wpforms-confirmation-container-full {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.btn {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 41, 65, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 41, 65, 0.3);
}

/* Footer */
footer {
    background-color: var(--navy-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subheadline {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    main {
        margin-top: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .testimonial p {
        font-size: 1.1rem;
    }
    
    .testimonial {
        padding: 1.5rem 2rem;
    }
    
    /* Theme toggle responsivo */
    .testimonial-theme-toggle {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* WordPress specific styles */
.wp-admin-bar {
    display: none !important;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

/* Custom post types and fields styling */
.palk-admin-section {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.palk-admin-section h3 {
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--navy);
    margin: 3px 0;
    transition: 0.3s;
}

/* Single post styles */
.single-post,
.single-testimonial,
.single-team-member,
.single-service,
.page-content {
    padding: 6rem 0 4rem;
}

.entry-header,
.testimonial-header,
.team-member-header,
.service-header,
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.entry-title,
.testimonial-title,
.team-member-name,
.service-title,
.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
}

.entry-meta {
    color: #646970;
    font-size: 0.9rem;
}

.testimonial-meta {
    margin-top: 1rem;
}

.testimonial-author {
    font-size: 1.5rem;
    color: var(--navy);
    margin: 0;
}

.testimonial-role,
.testimonial-company {
    color: #646970;
    margin: 0.5rem 0;
}

.post-thumbnail,
.page-thumbnail,
.service-thumbnail {
    margin: 2rem 0;
    text-align: center;
}

.post-thumbnail img,
.page-thumbnail img,
.service-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content,
.testimonial-content,
.team-member-bio,
.service-content,
.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.testimonial-content blockquote {
    font-size: 1.3rem;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    margin: 0;
}

/* Team member single page */
.team-member-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.team-member-photo img {
    width: 100%;
    border-radius: 8px;
}

.team-member-role {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 500;
}

.team-member-contact {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e1e1;
}

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

/* Service single page */
.service-meta {
    margin-top: 1rem;
}

.service-category,
.service-featured {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 1rem;
}

.service-category {
    background: var(--light-bg);
    color: var(--navy);
}

.service-featured {
    background: var(--gold);
    color: var(--white);
}

.service-details,
.service-contact {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.service-details-list {
    list-style: none;
    padding: 0;
}

.service-details-list li {
    margin-bottom: 1rem;
}

.service-contact-buttons {
    margin-top: 1.5rem;
}

.service-contact-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

/* Navigation between posts */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e1e1e1;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    background: #e8e8e8;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #646970;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--navy);
}

/* Back links */
.back-to-testimonials,
.back-to-team,
.back-to-services {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    font-weight: 500;
    padding: 1rem 0;
    margin-top: 2rem;
    transition: color 0.3s ease;
}

.back-to-testimonials:hover,
.back-to-team:hover,
.back-to-services:hover {
    color: var(--gold);
}

/* Related services */
.related-services {
    margin-top: 4rem;
    padding: 4rem 0;
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(9, 41, 65, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(9, 41, 65, 0.15);
}

.service-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-card h3 a {
    color: var(--navy);
}

.read-more {
    color: var(--gold);
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    color: var(--navy);
}

/* Enhanced Services Page Styles */
.services-by-category {
    padding: 4rem 0;
}

/* Category Filter Styles */
.category-filters {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(9, 41, 65, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(209, 169, 36, 0.1);
}

.category-filters h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--navy);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(9, 41, 65, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 41, 65, 0.05);
}

.filter-btn:hover {
    background: rgba(209, 169, 36, 0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 41, 65, 0.1);
    color: var(--navy);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gold) 0%, #f4d03f 100%);
    color: var(--navy);
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(209, 169, 36, 0.3);
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, #f4d03f 0%, var(--gold) 100%);
}

.service-category-section {
    margin-bottom: 4rem;
}

.service-category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(9, 41, 65, 0.05) 0%, rgba(209, 169, 36, 0.05) 100%);
    border-radius: 16px;
    border-left: 4px solid var(--gold);
}

.category-title {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.category-icon {
    font-size: 2.5rem;
    background: var(--gold);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-description {
    font-size: 1.1rem;
    color: #646970;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.service-card-enhanced {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(9, 41, 65, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(209, 169, 36, 0.1);
}

.service-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(9, 41, 65, 0.15);
    border-color: var(--gold);
}

.service-card-enhanced.featured {
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, rgba(209, 169, 36, 0.02) 0%, rgba(9, 41, 65, 0.02) 100%);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, #f4d03f 100%);
    color: var(--navy);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(209, 169, 36, 0.3);
}

.service-card-enhanced .service-image {
    position: relative;
    overflow: hidden;
}

.service-card-enhanced .service-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card-enhanced:hover .service-image img {
    transform: scale(1.05);
}

.service-card-enhanced .service-content {
    padding: 2rem;
}

.service-title {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    line-height: 1.3;
}

.service-title a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title a:hover {
    color: var(--gold);
}

.service-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.service-duration,
.service-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #646970;
    background: rgba(9, 41, 65, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.service-duration i,
.service-price i {
    font-size: 1rem;
}

.service-excerpt {
    color: #646970;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.service-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, #f4d03f 100%);
    color: var(--navy);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(209, 169, 36, 0.2);
}

.service-link-btn:hover {
    background: linear-gradient(135deg, #f4d03f 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 169, 36, 0.3);
    color: var(--navy);
}

.service-link-btn span {
    transition: transform 0.3s ease;
}

.service-link-btn:hover span {
    transform: translateX(5px);
}

.no-services-message {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(9, 41, 65, 0.02);
    border-radius: 16px;
    border: 2px dashed rgba(9, 41, 65, 0.1);
}

.no-services-message h3 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.no-services-message p {
    font-size: 1.1rem;
    color: #646970;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.no-services-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.no-services-actions .btn {
    min-width: 180px;
}

/* Show All Services Section */
.show-all-services {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(9, 41, 65, 0.03) 0%, rgba(209, 169, 36, 0.03) 100%);
    border-radius: 16px;
    margin: 2rem 0;
}

.show-all-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.show-all-container h3 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.show-all-container p {
    font-size: 1.1rem;
    color: #646970;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-outline-gold {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--gold);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 169, 36, 0.3);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

/* Responsive adjustments for enhanced services */
@media (max-width: 768px) {
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .category-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .service-card-enhanced .service-content {
        padding: 1.5rem;
    }
    
    .service-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .service-duration,
    .service-price {
        justify-content: center;
    }
    
    .no-services-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .show-all-container {
        padding: 1.5rem;
    }
    
    .show-all-container h3 {
        font-size: 1.5rem;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Notification styles */
.palk-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    color: var(--white);
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 400px;
}

.palk-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.palk-notification-success {
    background: #28a745;
}

.palk-notification-error {
    background: #dc3545;
}

/* Contact form error states */
.contact-form input.error,
.contact-form textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* Animation classes */
.team-member,
.testimonial,
.service-btn {
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.team-member.animated,
.testimonial.animated,
.service-btn.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Header scroll effect */
.header-scrolled {
    box-shadow: 0 2px 15px rgba(9, 41, 65, 0.15);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 30px;
    height: 30px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloader::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-bg);
    border-top: 4px solid var(--navy);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced responsive design */
@media (max-width: 1024px) {
    .team-member-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

section#servicios {
    background-color: var(--light-bg);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 15px rgba(9, 41, 65, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav ul li {
        text-align: center;
        border-bottom: 1px solid #e1e1e1;
    }
    
    .nav ul li:last-child {
        border-bottom: none;
    }
    
    .nav ul li a {
        display: block;
        padding: 1rem;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subheadline {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    
    .single-post,
    .single-testimonial,
    .single-team-member,
    .single-service,
    .page-content {
        padding: 4rem 0 3rem;
    }
    
    .entry-title,
    .testimonial-title,
    .team-member-name,
    .service-title,
    .page-title {
        font-size: 2rem;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .palk-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .testimonial p {
        font-size: 1.1rem;
    }
    
    .testimonial {
        padding: 1.2rem 1.5rem;
    }
    
    .testimonial-theme-toggle {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .testimonial-content blockquote {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
    
    .team-member-contact,
    .service-details,
    .service-contact {
        padding: 1.5rem;
    }
    
    .service-contact-buttons .btn {
        display: block;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}
