﻿html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}
@layer base {
    :root {
        --text-darkest: black;
        --text-dark: hsl(50, 0%, 20%);
        --text-light: hsl(206, 100%, 97%);
        --text-lightest: white;
        --text-accent: hsl(150deg 100% 70%);
        --text-secondary: hsl(15, 75%, 60%);
        --background_darkorange: darkorange;
        --background-dark: hsl(197, 87%, 30%);
        --background-darker: hsl(197, 87%, 25%);
        --background-darkest: hsl(197, 87%, 15%);
        --background-light: hsl(185deg 45% 85%);
        --background-lightest: hsl(206, 100%, 97%);
        --background-accent: hsl(5, 85%, 70%);
        --light-tint: hsla(0 100% 100% / 0.15);
    }
}

@layer utilities{
    .width-narrow {
        max-width: 60ch;
    }

    .width-medium {
        max-width: 80ch;
    }

    .width-large {
        max-width: 100ch;
    }

    #whypediatrician p, #medicalhome p, #afterhours p, #appointments p, #pcpchoice p, #medicalhome p {
        max-width: none;
    }    
}
/*
#whypediatrician p, #medicalhome p, #afterhours p, #appointments p, #pcpchoice p{
    max-width: none;
} 
    */

.container {
    --inline-padding: 2rem;
    /* reduce inline padding on mobile */
}
.main-container {
    max-width: 960px;
    margin-inline: auto;
    padding-block: 2rem;
    padding-inline: var(--inline-padding);
    padding-inline: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-container {
    max-width: 960px;
    margin-inline: auto;
    padding-block: 2rem;
    padding-inline: var(--inline-padding);
    padding-inline: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: var(--text-dark);
    background-color: var(--background-light);
    border-radius: 0.35rem;
    border: 1px solid red;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.3);
    margin-top:  1em;
}
.form-container {
    max-width: 960px;
    margin-inline: auto;
    padding-block: 2rem;
    padding-inline: var(--inline-padding);
    padding-inline: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: var(--text-dark);
    background-color: white;
    border-radius: 0.35rem;
    border: 1px solid red;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.3);
    margin-top: 1em;
}
    .form-container img{
        width:  25px;
    }

    section.hero {
        /* local variable overwrites the global */
        --text-main: rgb(20, 20, 20);
    }

.biography-container {
    display: flex;
    align-items: start;
    gap: 2rem;
    
}

    .biography-container p {
        max-width: 60ch;
    }

    .biography-container img {
        width: 200px;
        object-fit: contain;
    }

.biohero {
    padding: 2rem;
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.75rem;
    color: var(--text-dark);
    background-color: var(--background-light);
    border-radius: 0.35rem;
    border: 1px solid red;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.3);
}

    .biohero img {
        border-radius: 0.5rem;
    }

    .biohero .biohero-title {
        font-size: 1.6rem;
        font-weight: 700;
        margin-block-end: 1.5rem;
        color: var(--background-darkest);
    }

.section-title {
    color: var(--text-dark);
}


@layer components {
    .biography-container {
        display: flex;
        align-items: start;
        gap: 2rem;
    }

    .hero-wrapper {
        display: grid;
        min-height: 75dvh;
        grid-template-rows: auto 1fr;
    }

    .main-header-container {
        display: grid;
        grid-template-areas: "logo main-text contact";
        grid-template-columns: auto 1fr auto;
        padding: 0.5em;
        line-height: 1.25;
        gap: 1rem;
    }

    .inner-header {
        color: teal;
        grid-area: main-text;
    }

    .header-contact {
        grid-area: contact;
        margin-left: auto;
        font: 1.2rem sans-serif;
        padding-right: 0.5em;
    }

        .header-contact a {
            text-decoration: none;
            color: inherit;
        }

    .logo-link {
        grid-area: logo;
    }

    .logo {
        width: 130px;
        height: auto;
    }

    h1,
    .kids {
        font-size: 2rem;
    }

    .suite {
        font-size: 1.4rem;
        font-style: italic;
    }

        .suite span {
            white-space: nowrap;
        }

    /*  MY STYLES
    .divabout {
        background-color: teal;
        width: 100%;
        color: white;
        
    }
        */

    .main-container {
        max-width: 000px;
        margin-inline: auto;
        padding-block: 2rem;
        padding-inline: var(--inline-padding);
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    section.hero {
        /* local variable overwrites the global */
        --text-main: rgb(20, 20, 20);
    }

    .biography-container {
        display: flex;
        align-items: start;
        gap: 2rem;
        
    }

        .biography-container p {
            max-width: 60ch;
        }

        .biography-container img {
            width: 200px;
            object-fit: contain;
        }

    p {
        max-width: 60ch;
    }

    img {
        width: 200px;
        object-fit: contain;
    }

    .officehoursdynamic {
        margin: 0 auto;
        width: 60%;
        color: white;
        padding: 2rem;
        font-size: 1.15rem;
        font-weight: 300;
        line-height: 1.75rem;
        color: white;
        /*
            background-color: darkorange;
        */
        background-color: var(--background_darkorange);
        border-radius: 0.35rem;
        border: 1px solid red;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.3);
    }
    .officehourscontainer{
        margin:  0 auto;
        max-width:  60%;
    }
    .officehoursdetails{
        text-align:  center;
    }
    #tblhursofoperation {
        color: white;
        font-size: 1.15em;
        font-weight: 300;
    }
        #tblhursofoperation th, td {
            padding-top: .5em;
            padding-bottom: .5em;
            padding-left: .5em;
            padding-right: .5em;
        }
    /* smaller screen for header only (excluding navigation) */
    @media screen and (max-width: 768px) {
        h1, .kids {
            font-size: 1.1rem;
        }

        .header-contact {
            font: 0.8rem sans-serif;
        }

        .suite {
            font-size: 0.8rem;
        }

        .logo {
            width: 65px;
        }
    }
    /* smaller screen for header only (excluding navigation) */
    @media screen and (max-width: 540px) {
        .main-header-container {
            grid-template-areas:
                "logo main-text"
                "logo contact";
            grid-template-columns: auto 1fr;
            padding: 0.5em 0;
            line-height: 1.25;
            gap: 0 0.5rem;
            align-items: center;
        }

        .header-contact {
            margin-left: 0;
            display: flex;
            gap: 1rem;
            color: teal;
        }
    }

    /* start navigation main code */

    .primary-navigation {
        background-color: rgb(11, 24, 61);
        position: relative;
    }

    .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0); /* older syntax for max compatibility */
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .toggle {
        display: none;
        -webkit-appearance: none;
        background: transparent;
        color: #fff;
        border: none;
        font-size: 1.2rem;
        padding: 0.1rem 0.5rem;
        margin: 0;
        cursor: pointer;
    }

    .menu-items {
        display: flex;
    }

        .menu-items li {
            display: flex;
        }

        .menu-items a {
            display: flex;
            align-items: center;
            color: #f2f2f2;
            text-align: center;
            padding: 0.9rem 1vw;
            text-decoration: none;
            font-size: 1.1rem;
            transition: 0.3s ease;
        }

            .menu-items a:hover {
                background-color: #555;
                color: white;
            }

    /* smaller screen for navigation only */
    @media screen and (max-width: 920px) {
        .menu-items a {
            padding: 0.8rem 0.5vw;
            font-size: 0.95rem;
        }
    }
    /* kick in mobile navigation about here */
    @media screen and (max-width: 768px) {
        .primary-navigation {
            min-height: 2.2rem;
        }

        .menu-items {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
        }

            .menu-items li {
                background-color: rgba(11, 24, 61, 0.9);
                transition: 0.5s ease;
            }

                .menu-items li:not(:first-child) {
                    pointer-events: none;
                    opacity: 0;
                }

        .toggle {
            display: block;
            position: absolute;
            z-index: 99;
            right: 0.5rem;
            top: 0;
        }

        .menu-items,
        .menu-items li,
        .menu-items a {
            display: block;
            padding: 0;
            text-align: left;
        }

        .menu-items {
            padding: 0;
        }

            .menu-items a {
                font-size: 1.1rem;
                display: block;
                padding: 0.5rem 1rem;
            }

        .toggle[aria-expanded="true"] + ul > li {
            opacity: 1;
            pointer-events: initial;
        }
    }

    /* start splash hero code here */

    #splash {
        float: right;
        display: grid;
        align-content: center;
        color: teal;
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
        margin: 0 0 1rem;
        font-weight: 900;
        padding: 0.5em;
        text-align: center;
        -webkit-text-stroke-width: 2px;
        -webkit-text-stroke-color: black;
        background: url(../images/July_2002_028.jpg) no-repeat center center;
        opacity: 0.8;
        background-size: cover;
    }

        #splash span {
            display: block;
        }

        #splash h2,
        #splash a,
        #splash p {
            color: teal;
            -webkit-text-stroke-width: 2px;
            -webkit-text-stroke-color: black;
            font-size: clamp(2.5rem, 8vw, 7rem);
            text-decoration: none;
        }

        #splash{

        }
        /* main section and footer styling follows */
        .pcmh {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1rem;
            padding: 1rem;
            margin: 0 0 1rem;
            height: 50vh;
            max-height: 250px;
        }

        .pcmh img {
            width: auto;
            height: 100%;
            max-width: 300px;
            object-fit: contain;
            border: 1px solid red;
            box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.3);
        }

    .footer {
        line-height: 1.6;
        font-size: 1.2rem;
        padding: 1rem;
        background: #000;
        color: #fff;
    }

    .footer-top {
        display: flex;
        gap: 0 1rem;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .footer-name:after {
        content: " - ";
        padding-left: 0.5rem;
    }

    .postal-address {
        font-style: normal;
        display: flex;
        align-items: center;
        flex-direction: column;
        line-height: 1.6;
    }

        .postal-address * {
            color: inherit;
            text-decoration: none;
        }

    #dislcaimer{
        padding-top:  1em;
        width:  80%;
    }
    /* smaller screen for main section and footer only */
    @media screen and (max-width: 768px) {
        .pcmh {
            gap: 1rem;
            padding: 1rem;
            margin: 0 0 1rem;
            height: auto;
            max-height: none;
        }

            .pcmh img {
                width: 100%;
                height: auto;
                max-width: 280px;
                margin: auto;
            }

        .footer {
            line-height: 1.4;
            font-size: 1.1rem;
        }

        /*  MY STYLES
        .divabout {
            background-color: teal;
            width: 80%;
            color: white;
        }
            */
    }
}
