/* ============================================
   North Jersey Pediatric Cardiology
   Recreated from dralenick.com (Wix site)
   Standard HTML/CSS/JS - No proprietary platform
   ============================================ */

/* Google Font: Fahkwang (matches original site) */
@import url('https://fonts.googleapis.com/css2?family=Fahkwang:wght@300;400;500;600;700&display=swap');

/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-dark: rgb(16, 25, 33);
    --slate-blue: rgb(48, 76, 104);
    --slate-blue-80: rgba(48, 76, 104, 0.8);
    --cream: rgb(252, 249, 226);
    --white: #ffffff;
    --link-blue: rgb(0, 0, 238);
    --font-family: 'Fahkwang', Arial, Helvetica, sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.8;
    color: var(--cream);
    background-color: var(--navy-dark);
    background-image: linear-gradient(90deg, var(--slate-blue) 0%, var(--navy-dark) 96.5%);
    min-height: 100vh;
}

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

a:hover {
    opacity: 0.75;
}

/* ===== Header / Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--navy-dark);
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-brand img {
    width: 50px;
    height: 61px;
    object-fit: cover;
}

.header-brand-text {
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    line-height: 1.3;
}

.header-brand-text span {
    display: block;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    font-size: 16px;
    color: var(--white);
    font-weight: 400;
    padding: 8px 0;
    display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 0.75;
}

/* Dropdown for "More" */
.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-toggle {
    font-size: 16px;
    color: var(--white);
    font-weight: 400;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.dropdown-toggle::after {
    content: '\25BC';
    font-size: 10px;
    margin-left: 4px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--navy-dark);
    min-width: 220px;
    list-style: none;
    padding: 8px 0;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== Main Content ===== */
.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.page-content {
    padding: 60px 0;
}

.page-content h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.2;
    margin-bottom: 30px;
}

.page-content h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--cream);
    margin-top: 30px;
    margin-bottom: 12px;
}

.page-content p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--cream);
    margin-bottom: 20px;
}

.page-content ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.9;
}

/* ===== Homepage Hero ===== */
.hero-section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(40px, 7vw, 90px);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h6 {
    font-size: 20px;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 30px;
}

.hero-text .welcome-text {
    font-size: 16px;
    color: var(--cream);
    line-height: 1.9;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
}

/* ===== About Page ===== */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 40px;
    align-items: center;
}

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

.about-hero-card {
    background-color: var(--navy-dark);
    padding: 40px;
    position: relative;
}

.about-portrait {
    width: 100px;
    height: 139px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 4px;
}

.about-hero-card h2 {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 400;
    margin-bottom: 20px;
}

.about-hero-card p {
    margin-bottom: 16px;
}

.about-section h2 {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 24px;
}

/* ===== Directions & Appointments Page ===== */
.directions-banner {
    width: 100%;
    height: 100px;
    object-fit: cover;
    margin-bottom: 0;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
}

.contact-info h2 {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 400;
    margin-bottom: 24px;
}

.contact-info p {
    margin-bottom: 16px;
}

.contact-info .phone {
    margin-top: 16px;
}

.contact-info .divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 16px 0;
}

/* Contact Form */
.contact-form {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 4px;
}

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

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

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--cream);
    margin-bottom: 6px;
}

.form-group label .required {
    color: #ff6b6b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    color: var(--white);
    font-family: var(--font-family);
    font-size: 14px;
}

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

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

.form-submit {
    background-color: var(--cream);
    color: var(--navy-dark);
    border: none;
    padding: 12px 32px;
    font-family: var(--font-family);
    font-size: 16px;
    cursor: pointer;
    border-radius: 2px;
    transition: opacity 0.2s ease;
}

.form-submit:hover {
    opacity: 0.85;
}

.form-success {
    display: none;
    color: var(--cream);
    font-size: 16px;
    padding: 16px;
    background-color: rgba(48, 76, 104, 0.5);
    border-radius: 4px;
    margin-top: 16px;
}

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

/* Visit Us / Maps Section */
.visit-section {
    padding: 40px 0 60px;
}

.visit-section h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    margin-bottom: 24px;
}

.visit-section p {
    margin-bottom: 16px;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.map-location h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--cream);
}

.map-location iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 4px;
    filter: grayscale(0.3) brightness(0.85);
}

.map-location a {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--link-blue);
}

/* ===== Content Pages (How The Heart Works, etc.) ===== */
.content-page {
    padding: 60px 0;
}

.content-page .content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.content-page .content-text {
    max-width: 700px;
}

.content-page .content-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ===== Congenital Heart Disease Page ===== */
.congenital-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 40px;
    align-items: stretch;
    min-height: 300px;
}

.congenital-hero-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.congenital-hero-text h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.1;
}

.congenital-hero-card {
    background-color: var(--navy-dark);
    padding: 40px;
}

.congenital-section {
    background-color: var(--navy-dark);
    padding: 40px;
    margin: 0 -24px;
    border-radius: 0;
}

.congenital-section .section-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.congenital-section h2 {
    margin-top: 0;
}

.congenital-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--cream);
    margin-top: 24px;
    margin-bottom: 8px;
}

/* ===== Acquired Heart Disease Page ===== */
.acquired-hero {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    margin-bottom: 40px;
    align-items: stretch;
    min-height: 400px;
}

.acquired-hero-card {
    background-color: var(--slate-blue);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.acquired-hero-card h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
}

.acquired-hero-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.acquired-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 40px 0;
}

.acquired-card {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 4px;
}

.acquired-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--cream);
}

.acquired-card p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

.acquired-lifestyle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.acquired-lifestyle h3 {
    text-align: center;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--navy-dark);
    padding: 30px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-name {
    font-size: 16px;
    color: var(--cream);
    margin-bottom: 8px;
}

.footer-phone {
    font-size: 16px;
    color: var(--cream);
}

.footer-phone a {
    color: var(--cream);
}

/* ===== Responsive / Mobile ===== */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--navy-dark);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-toggle {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        position: static;
        display: block;
        min-width: 100%;
        box-shadow: none;
        padding-left: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-height: 300px;
    }

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

    .about-hero-image img {
        max-height: 250px;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .map-container {
        grid-template-columns: 1fr;
    }

    .content-page .content-grid {
        grid-template-columns: 1fr;
    }

    .congenital-hero {
        grid-template-columns: 1fr;
    }

    .congenital-section .section-grid {
        grid-template-columns: 1fr;
    }

    .acquired-hero {
        grid-template-columns: 1fr;
    }

    .acquired-cards {
        grid-template-columns: 1fr 1fr;
    }

    .acquired-lifestyle {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .acquired-cards {
        grid-template-columns: 1fr;
    }

    .header-brand-text {
        font-size: 14px;
    }

    .header-brand img {
        width: 40px;
        height: 49px;
    }
}
