/* Custom styles for doctor's website - Colors inspired by logo */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:wght@300;400;700&display=swap');

:root {
    --primary-teal: #5FA49B;
    --light-teal: #E8F4F2;
    --accent-coral: #D98B7C;
    --accent-yellow: #F4D896;
    --text-dark: #2C3E50;
    --text-muted: #7F8C8D;
    --cream-bg: #FEF8F0;
}

body {
    background-color: var(--cream-bg);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

header {
    background: #FDF8E4;
    padding: 0;
    border-bottom: 3px solid var(--primary-teal);
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--primary-teal);
}

.header-logo {
    order: 2;
}

.header-logo img {
    max-height: 70px;
    width: auto;
}

header nav {
    order: 1;
    margin-top: 0;
}

.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-teal);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

header nav {
    margin-top: 0.5rem;
}

header nav a {
    margin-right: 1.5rem;
    text-decoration: none;
    color: var(--primary-teal);
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--accent-coral);
    text-decoration: none;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
        order: 1;
    }

    .header-logo {
        order: 2;
        flex: 1;
        text-align: center;
    }

    header nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FDF8E4;
        padding: 1rem;
        border-bottom: 3px solid var(--primary-teal);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        margin-top: 0;
        z-index: 999;
        order: 3;
        width: 100%;
    }

    header nav.active {
        display: flex;
    }

    header nav a {
        margin: 0.5rem 0;
        padding: 0.5rem;
        display: block;
    }

    header .container {
        position: relative;
    }
}

footer {
    background: linear-gradient(135deg, #ffffff 0%, var(--light-teal) 100%);
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--primary-teal);
    text-align: center;
    color: var(--text-muted);
}

main {
    min-height: 60vh;
}

main.container {
    position: relative;
}

main.container::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: var(--logo-url);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    main.container::before {
        width: 90vw;
        height: 90vw;
        max-width: 400px;
        max-height: 400px;
    }
}

section {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(95, 164, 155, 0.1);
    backdrop-filter: blur(2px);
    position: relative;
    z-index: 1;
}

section h2, section h3 {
    color: var(--primary-teal);
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info strong {
    color: var(--primary-teal);
}

table {
    width: 100%;
    max-width: 400px;
}

table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--light-teal);
}

table td:first-child {
    color: var(--primary-teal);
    font-weight: 500;
}

table tr:last-child td {
    border-bottom: none;
}

.absence-notice {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.privacy-policy h3 {
    color: var(--primary-teal);
    margin-top: 1.5rem;
}

.privacy-policy ul {
    margin-left: 1.5rem;
}

.privacy-policy ul li {
    margin: 0.5rem 0;
}

/* Employees section */
.employees-section {
    background: none;
    box-shadow: none;
}

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

.employee-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(95, 164, 155, 0.15);
    border: 2px solid transparent;
    backdrop-filter: blur(2px);
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(95, 164, 155, 0.25);
    border-color: var(--primary-teal);
}

.employee-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-teal);
    border: 3px solid var(--primary-teal);
}

.employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 0.9rem;
}

.employee-info h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.employee-position {
    color: var(--accent-coral);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.employee-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Patient Portal Section */
.patient-portal-section {
    text-align: center;
    background: rgba(95, 164, 155, 0.4);
    border: 2px solid var(--primary-teal);
}

.btn-patient-portal {
    display: inline-block;
    background: var(--primary-teal);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-patient-portal:hover {
    background: var(--accent-coral);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(95, 164, 155, 0.3);
    text-decoration: none;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal[style*="display: flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 2rem;
    border: 3px solid var(--primary-teal);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10001;
}

.modal-content h2 {
    color: var(--primary-teal);
    margin-top: 0;
}

.modal-close {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--accent-coral);
}

.doctor-choice {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-doctor {
    flex: 1;
    min-width: 150px;
    display: inline-block;
    background: var(--primary-teal);
    color: white;
    padding: 1.5rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.1rem;
}

.btn-doctor:hover {
    background: var(--accent-coral);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 164, 155, 0.3);
    text-decoration: none;
    color: white;
}
