/* ============================================
   Dr. Eugene Khait Cardiology - Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-900: #0B1F0E;
    --green-800: #1B4332;
    --green-700: #2D6A4F;
    --green-600: #40916C;
    --green-500: #52B788;
    --green-400: #74C69D;
    --green-300: #95D5B2;
    --green-200: #B7E4C7;
    --green-100: #D8F3DC;
    --green-50:  #F0FFF4;

    --cream:      #FAF9F6;
    --cream-dark: #F5F3EF;
    --warm-white: #FEFEFC;
    --warm-gray:  #6B7280;
    --warm-gray-light: #9CA3AF;
    --text-dark:  #1A2E1A;
    --text-body:  #2C3E2C;
    --text-light: #4A5D4A;
    --shadow-sm:  0 1px 3px rgba(27, 67, 50, 0.08);
    --shadow-md:  0 4px 16px rgba(27, 67, 50, 0.10);
    --shadow-lg:  0 8px 32px rgba(27, 67, 50, 0.12);
    --shadow-xl:  0 16px 48px rgba(27, 67, 50, 0.14);
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  22px;
    --radius-xl:  32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, serif;
    color: var(--green-800);
    line-height: 1.25;
    font-weight: 600;
}

a {
    color: var(--green-700);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--green-500); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--green-800);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
    color: #fff;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
    background: rgba(250, 249, 246, 0.97);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green-800);
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
}

.nav-logo:hover { color: var(--green-700); }

.nav-logo svg {
    color: var(--green-700);
}

.nav-logo-text {
    font-size: 1.05rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-list a {
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.925rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.nav-list a:hover {
    background: var(--green-100);
    color: var(--green-800);
}

.nav-cta {
    background: var(--green-700) !important;
    color: #fff !important;
    border-radius: var(--radius-lg) !important;
    padding: 10px 20px !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--green-600) !important;
    color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--green-800);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11, 31, 14, 0.82) 0%,
        rgba(27, 67, 50, 0.72) 50%,
        rgba(45, 106, 79, 0.60) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--green-200);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    color: #fff;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-headline em {
    color: var(--green-300);
    font-style: normal;
}

.hero-subheadline {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 52px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.925rem;
    font-weight: 600;
}

.trust-item svg {
    color: var(--green-400);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background: var(--green-700);
    color: #fff;
    border-color: var(--green-700);
}

.btn-primary:hover {
    background: var(--green-600);
    border-color: var(--green-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* --- Section Shared --- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 14px;
    background: var(--green-100);
    padding: 6px 16px;
    border-radius: 50px;
}

.section-tag.light {
    color: var(--green-200);
    background: rgba(255, 255, 255, 0.15);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 18px;
}

.section-title.light {
    color: #fff;
}

.section-subtitle {
    font-size: 1.075rem;
    color: var(--text-light);
    line-height: 1.75;
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.75);
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--green-100);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-300);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--green-100), var(--green-200));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: #fff;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--green-800);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--warm-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: var(--green-200);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.6;
}

.about-content .section-tag {
    margin-bottom: 14px;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-lead {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.value-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
}

.value-item strong {
    display: block;
    color: var(--green-800);
    font-size: 1rem;
    margin-bottom: 2px;
}

.value-item span {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- Patient Info --- */
.patient-info {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.info-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.info-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-300);
    margin-bottom: 20px;
}

.info-card h3 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.info-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.75;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

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

.hours-list li span:first-child {
    font-weight: 600;
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: var(--cream-dark);
}

.cta-card {
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    border-radius: var(--radius-xl);
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.cta-title {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 18px;
}

.cta-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 480px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
}

.btn-cta {
    background: #fff;
    color: var(--green-800);
    border-color: #fff;
}

.btn-cta:hover {
    background: var(--green-100);
    border-color: var(--green-100);
    color: var(--green-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-tag { margin-bottom: 14px; }
.contact-info .section-title { margin-bottom: 18px; }
.contact-intro {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--green-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
}

.contact-item strong {
    display: block;
    color: var(--green-800);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--green-700);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--green-500);
    text-decoration: underline;
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--green-100);
}

.map-wrapper a {
    display: block;
    position: relative;
}

.map-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.map-link-text {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--green-800);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
}

.map-link-text:hover {
    background: var(--green-700);
    color: #fff;
    text-decoration: none;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--warm-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--green-100);
}

.contact-form-wrapper h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--green-800);
}

.form-intro {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.65;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--green-800);
    margin-bottom: 7px;
}

.required {
    color: #DC2626;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--green-200);
    border-radius: var(--radius-md);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--text-body);
    background: var(--cream);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--warm-gray-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: none;
    margin-top: 20px;
    background: var(--green-100);
    border: 1px solid var(--green-300);
    border-radius: var(--radius-md);
    padding: 24px;
}

.form-success.show {
    display: block;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.success-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--green-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
}

.success-content h4 {
    color: var(--green-800);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.success-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .nav-logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand .nav-logo svg {
    color: var(--green-400);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 18px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.925rem;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--green-400);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-disclaimer {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.35) !important;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 40px;
    }

    .cta-card {
        padding: 48px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(27, 67, 50, 0.08);
        padding: 16px 24px 24px;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform var(--transition), opacity var(--transition);
        pointer-events: none;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 12px 16px;
        width: 100%;
    }

    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        margin-top: 8px;
    }

    .hero-content {
        padding-top: 90px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: 14px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 360px;
    }

    .about-accent {
        display: none;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        grid-template-columns: 1fr;
        padding: 36px 28px;
        text-align: center;
    }

    .cta-actions {
        flex-direction: row;
    }

    .cta-actions .btn {
        flex: 1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .services,
    .about,
    .patient-info,
    .contact {
        padding: 72px 0;
    }

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

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero-scroll { animation: none; }
}
