/* Global Styles */
:root {
    --primary-color: #902a45;
    /* Maroon */
    --text-color: #333;
    --bg-color: #fff9f9;
    /* Warm White */
    --accent-color: #d4a5a5;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 700;
}

/* Site branding in the header — visually identical to the old h1 but uses a <p> element
   so the actual page topic can claim the semantic <h1> for better SEO signaling. */
.site-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    text-align: center;
}

/* Page topic heading — now the semantic <h1>, styled to look like the old h2
   with underline accent and centered inline-block positioning. */
h1.page-title {
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Sub-section headings — now semantic <h2>, styled to match the old h3 defaults */
h2.section-title {
    font-size: 1.17em;
    margin-top: 1em;
    margin-bottom: 1em;
    text-align: left;
    border-bottom: none;
    display: block;
    padding-bottom: 0;
}

.home-page h2.section-title {
    margin-top: 0.5rem;
}

/* Layout Compontents */
.header-title {
    text-align: center;
    padding: 2rem 0;
    background: #fff;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-wrapper {
    /* Premium glassmorphism backdrop blur styling to let fixed background show through with modern shine */
    background: rgba(255, 255, 255, 0.85);
    /* Semi-transparent background for modern glass look while securing contrast */
    backdrop-filter: blur(14px);
    /* Realistic glass blur effect */
    -webkit-backdrop-filter: blur(14px);
    /* Webkit/Safari compatibility */
    border: 1px solid rgba(255, 255, 255, 0.45);
    /* Highlight border for sleek glass edges and realistic shine */
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(144, 42, 69, 0.08);
    /* Soft colored shadow utilizing maroon theme color for premium depth */
    margin-top: 2rem;
    min-height: 400px;
}


.page-header {
    text-align: center;
}

.page-content {
    padding-bottom: 2rem;
}

/* Navigation */
.navbar {
    background-color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Hide mobile toggle and logo on desktop */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

.nav-logo {
    display: none;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar li {
    display: inline-block;
    margin: 0 1rem;
}

.navbar a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #777;
}

.contact-highlight {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-center ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #702035;
}

/* Services Layout */
.services-layout {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.services-text {
    flex: 1;
    text-align: left;
}

.services-text h2.section-title {
    margin-top: 1.8rem;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.services-text h2.section-title:first-of-type {
    margin-top: 0;
}

.services-image {
    flex: 0 0 320px;
    margin-top: 2.2rem;
    /* Pushes the image down on desktop to align perfectly with the first line of paragraph text under the H3 */
}

.services-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* About Layout */
.about-layout {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.about-text {
    flex: 1;
    text-align: left;
}

/* Remove default browser top margin from the first paragraph to align it perfectly with the top of the profile photo */
.about-text p:first-of-type {
    margin-top: 0;
}

.about-text h2.section-title {
    margin-top: 1.8rem;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.about-text h2.section-title:first-of-type {
    margin-top: 0;
}

.about-image {
    flex: 0 0 320px;
    text-align: center;
}

.about-image img.profile-photo {
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto 1rem auto;
}

.about-image img.seal-photo {
    width: 160px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: block;
    margin: 0 auto;
}

/* Homepage Welcome Layout Styles */
/* These classes format the warm introductory layout on the homepages (EN and ES). */
.home-welcome-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Styled header for the homepage support lists, matching the tagline/subtitle typography exactly */
.home-welcome-list-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    /* Regular italic weight matching the subtitle */
    color: var(--primary-color);
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Centered paragraph block with optimized width and line height for premium readability */
.home-welcome-text {
    font-size: 1.1rem;
    line-height: 1.75;
    text-align: left;
    max-width: 720px;
    margin: 0 auto 1.5rem auto;
    color: #444;
    /* Warm dark gray color for excellent soft contrast */
}

/* Beautiful custom list layout to highlight support areas */
.home-features-list {
    list-style: none;
    padding: 0;
    max-width: 580px;
    margin: 2.5rem auto;
}

/* Prominent typography for the key supportive areas */
.home-features-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Custom premium colored bullet indicators matching the theme accent */
.home-features-list li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.8rem;
    position: absolute;
    left: 0.5rem;
    top: -0.3rem;
}

/* Centered, bullet-free layout for key supportive areas on the homepage */
.home-centered-list {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    text-align: center;
}

/* Prominent typography for the centered supporting text lines */
.home-centered-list li {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    font-weight: normal;
    color: var(--primary-color);
}

/* Centered wrapper for the booking Call-to-Action buttons */
.cta-button-container {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

/* About Credentials List */
/* Renders the education and credentials section on the About Me pages as an elegant, custom-bulleted list */
.about-credentials-list {
    list-style: none; /* Turn off browser-default bullet styles for precise custom design */
    padding: 0;
    margin: 1.5rem 0;
}

/* Bullet list items with refined spacing for professional look */
.about-credentials-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Custom premium colored bullet indicators utilizing the primary maroon theme color */
.about-credentials-list li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0.3rem;
    top: -0.1rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {

    /* Responsive typography adjustments for smaller screens */
    .home-welcome-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .home-welcome-list-heading {
        font-size: 1.25rem;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .home-welcome-text {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .home-features-list {
        margin: 1.5rem auto;
        padding-left: 0.5rem;
    }

    .home-features-list li {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .home-centered-list {
        margin: 1.5rem auto;
    }

    .home-centered-list li {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }

    .container {
        padding: 0 15px;
    }

    .header-title {
        padding: 0.8rem 0;
    }

    .header-title .site-title {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

    /* Mobile Responsive Navigation (Hamburger Menu) */
    .navbar {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0.8rem 1.5rem;
        position: relative; /* relative anchor for absolute dropdown positioning */
    }

    /* Hide navigation list by default on mobile */
    .navbar ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        border-bottom: 1px solid #eee;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
        padding: 0.5rem 0;
        margin: 0;
        list-style: none;
        z-index: 999;
    }

    /* Show when checkbox is checked */
    .nav-toggle:checked ~ ul {
        display: block;
    }

    .navbar li {
        display: block;
        margin: 0;
        border-bottom: 1px solid #f9f9f9;
        text-align: center;
    }

    .navbar li:last-child {
        border-bottom: none;
        padding: 0.8rem 0;
    }

    .navbar a {
        display: block;
        padding: 0.8rem 0;
    }

    /* Keep language switcher inline horizontally */
    .navbar li:last-child a {
        display: inline-block;
        padding: 0 0.5rem;
    }

    /* Hide the redundant compact brand on mobile — full title already shows in .header-title */
    .navbar .nav-logo {
        display: none;
    }

    .nav-toggle-label {
        display: flex;
        align-items: center;
        cursor: pointer;
        width: 30px;
        height: 30px;
        position: relative;
    }

    /* Create the three hamburger lines */
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background-color: var(--primary-color);
        height: 2px;
        width: 100%;
        border-radius: 2px;
        position: absolute;
        transition: all 0.3s ease-in-out;
    }

    .nav-toggle-label span::before {
        content: "";
        top: -8px;
    }

    .nav-toggle-label span::after {
        content: "";
        top: 8px;
    }

    /* Animate to "X" when checked */
    .nav-toggle:checked ~ .nav-toggle-label span {
        background-color: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .content-wrapper {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .site-title {
        font-size: 2rem;
    }

    h1.page-title {
        font-size: 1.5rem;
    }

    .services-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .services-image {
        flex: none;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .about-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        flex: none;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Footer disclaimer text styling to ensure it is subtle, readable, and clearly separated from the copyright notice */
.footer-disclaimer {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #888;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    text-align: center;
}

/* LinkedIn Link under Profile Photo on About Me Pages */
.linkedin-link-container {
    text-align: center;
    margin-bottom: 2rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none !important;
    transition: color 0.3s ease, transform 0.2s ease;
}

.linkedin-link:hover {
    color: #0a66c2; /* LinkedIn brand blue */
    transform: scale(1.1); /* Hover scale effect */
}

.linkedin-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

/* Footer Social Links Styling */
.footer-social {
    margin-top: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    align-items: center;
}

.footer-linkedin-link,
.footer-instagram-link,
.footer-google-link {
    color: #888; /* Match copyright / disclaimer gray tone */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none !important;
}

.footer-linkedin-link:hover {
    color: #0a66c2; /* LinkedIn brand blue */
    transform: scale(1.1);
}

.footer-instagram-link:hover {
    color: #e1306c; /* Instagram brand pink/red */
    transform: scale(1.1);
}

.footer-google-link:hover {
    color: #4285F4; /* Google brand blue */
    transform: scale(1.1);
}

.footer-linkedin-icon,
.footer-instagram-icon,
.footer-google-icon {
    display: block;
}