/* ===== Base ===== */
:root {
    --purple: #6a0dad;
    --purple-dark: #5b0c8c;
    --purple-btn: #7c22c5bc;
    --ink: #2a0b40;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    left: -9999px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8)), url('../images/orchid6.jpg') no-repeat center fixed;
    background-size: cover;
    color: #333;
}

/* ===== Page backgrounds (image + white overlay) ===== */
.about-page,
.contact-page,
.services-page,
.insurance {
    background: var(--bg) no-repeat center fixed;
    background-size: cover;
    color: var(--ink);
    position: relative;
}

.about-page    { --bg: url('../images/orchid1.jpeg'); --overlay: 0.7; }
.contact-page  { --bg: url('../images/orchid2.jpeg'); --overlay: 0.6; }
.services-page { --bg: url('../images/orchid7.jpg');  --overlay: 0.7; }
.insurance     { --bg: url('../images/orchid4.jpg');  --overlay: 0.764; }

.about-page::before,
.contact-page::before,
.services-page::before,
.insurance::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, var(--overlay));
    z-index: -1;
}

.about-page,
.insurance {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header & language switcher ===== */
header {
    font-family: 'Playfair Display', serif;
    padding: 15px;
    text-align: center;
    background: linear-gradient(to right, rgba(106, 13, 173, 0.9), rgba(255, 105, 180, 0.8));
    color: white;
}

body.index-page header {
    background: linear-gradient(to right, rgba(212, 105, 255, 0.616), rgba(255, 201, 228, 0.578));
}

header h1 {
    font-size: 3rem;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.language-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.197);
    padding: 5px;
    border-radius: 5px;
}

.language-switcher img {
    width: 30px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.language-switcher img:hover {
    transform: scale(1.1);
}

/* Home page: curved title + profile picture */
.curved-text-svg {
    width: 100%;
    height: 110%;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.curved-text-svg text {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    fill: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.65);
    letter-spacing: 2px;
}

.profile-pic {
    width: 300px;
    height: auto;
    border-radius: 50%;
    display: block;
    margin: 60px auto 0;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.about {
    text-align: center;
    padding: 15px 20px 20px;
}

.about h2 {
    font-size: 2rem;
    color: #541f7a;
}

header .about .under-image-title {
    display: block;
    text-align: center;
    font-size: 2.8rem;
    margin: 16px auto 0;
    color: #fcecff;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.7px;
    position: relative;
    z-index: 3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ===== Buttons & navigation ===== */
.cta-button {
    font-family: 'Poppins', sans-serif;
    padding: 12px 24px;
    background-color: var(--purple);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--purple-dark);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 32px 0 5px;
}

.nav-buttons .cta-button {
    background-color: var(--purple-btn);
    padding: 12px 20px;
    text-align: center;
}

.nav-buttons .cta-button:hover {
    background-color: #5b3c8b;
}

.about-page .nav-buttons   { margin-top: 0; }
.contact-page .nav-buttons { margin-bottom: 40px; }

.contact-button {
    text-align: center;
    margin: 50px 0;
}

.index-page .contact-button {
    margin-top: 0;
}

.get-in-touch {
    background-color: var(--purple-btn);
    font-size: 1.2rem;
}

.get-in-touch:hover {
    background-color: #38006d;
}

/* ===== Content sections ===== */
.hero {
    text-align: center;
    padding: 30px;
}

.hero h2 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 1.5px;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.philosophy,
.experience {
    padding: 10px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy h2,
.experience h2 {
    font-size: 2rem;
    color: var(--purple);
}

.philosophy p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.experience ul {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
}

.experience ul li {
    background-color: #f2e1fa;
    padding: 10px;
    margin: 8px 0;
    border-radius: 5px;
    font-weight: bold;
}

.about-text {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--ink);
    text-align: center;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

/* ===== Contact page ===== */
.contact-info {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--ink);
}

.languages-offered {
    margin-top: 35px;
    text-align: center;
}

.languages-offered ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    display: inline-block;
    text-align: left;
}

.languages-offered li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
}

.flag-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

.contact-form {
    text-align: center;
    max-width: 600px;
    margin: 30px auto;
}

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

.contact-form label {
    font-weight: bold;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: var(--purple);
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.contact-form button:hover {
    background-color: #5500a3;
}

.office-location {
    text-align: center;
    margin: 30px auto;
    max-width: 600px;
}

.contact-address {
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    color: var(--ink);
}

/* ===== Insurance page ===== */
.insurance-section,
.payment-section {
    text-align: center;
    padding: 0 20px;
}

.payment-list {
    list-style: none;
    padding: 0;
    font-size: 1.2em;
}

.payment-list li {
    background: rgba(255, 255, 255, 0.425);
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
}

.insurance-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.insurance-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.471);
    padding: 15px;
    border-radius: 8px;
    width: 120px;
    height: 120px;
}

.insurance-item img {
    max-width: 100%;
    max-height: 100%;
}

.insurance-text {
    font-weight: 600;
    font-size: 18px;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #8832c6;
    color: white;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    margin-top: auto;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

.footer p {
    margin: 5px 0;
    font-size: 1rem;
}

.footer-email {
    color: inherit;
    text-decoration: none;
}

.footer-email:hover {
    text-decoration: underline;
}

/* ===== Animation ===== */
@keyframes fadeIn {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fade-in-active {
    opacity: 1;
    animation: fadeIn 2s ease-out forwards;
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
    .nav-buttons .cta-button {
        width: auto;
        margin: 0;
    }
}

/* ===== Tablet & phone ===== */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
        margin: 10px 0;
    }

    .language-switcher {
        gap: 8px;
    }

    .curved-text-svg {
        top: -10%;
        z-index: 10;
    }

    .curved-text-svg text {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .nav-buttons .cta-button {
        width: 80%;
    }

    .contact-page::before {
        --overlay: 0.522;
    }

    .profile-pic {
        width: 80%;
        margin-top: 20px;
    }

    .contact-info a {
        font-size: 20px;
        line-height: 1.2;
        word-break: normal;
    }
}

/* ===== Phone ===== */
@media (max-width: 600px) {
    body.contact-page {
        padding: 15px;
    }

    .contact-info,
    .contact-address {
        font-size: 1.2em;
        padding: 0 10px;
    }

    .contact-form,
    .office-location {
        padding: 0 10px;
    }

    .contact-form {
        width: 100%;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1rem;
    }

    .languages-offered li {
        font-size: 17px;
    }

    .flag-icon {
        width: 28px;
        height: 28px;
    }

    .nav-buttons {
        padding: 0 10px;
        gap: 10px;
    }

    .nav-buttons .cta-button {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
}

/* ===== TV appearance ===== */
.tv-feature {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    text-align: center;
}

.tv-feature h2 {
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: 5px;
}

.tv-feature .tv-label {
    font-weight: 600;
    margin: 0 0 15px;
}

.tv-feature .tv-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.25);
    background: #000;
}

.tv-feature iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tv-feature p {
    line-height: 1.6;
}

.tv-feature .tv-note {
    font-size: 0.9rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .tv-feature h2 {
        font-size: 1.6rem;
    }
}
