/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Bright Creek Family Dental (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, soft and friendly. The hero's bottom edge is
    curved like a smile with an elliptical border-radius. The comfort
    menu is styled like a restaurant menu card (double border, centered
    serif-like title). The kids' tooth mascot is drawn with CSS shapes
    positioned inside a relative parent. Insurance names flow through CSS
    columns. Media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM checked, AA):
      #0B2530 deep teal   #0E6A82 teal (a shade darker than #0E7490 for
      small text)   #F59E0B sunny (only behind dark text)   #F0FAFB mint
      #4A626B muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Mint page, deep teal text, Nunito. */
body {
    background-color: #F0FAFB;
    color: #0B2530;
    font-family: Nunito, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Rounded Quicksand headings. */
h1,
h2,
h3 {
    font-family: Quicksand, sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
}

/* Teal links. */
a {
    color: #0E6A82;
    font-weight: 700;
}

/* Sunny focus ring with a dark edge. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #0B2530;
    box-shadow: 0px 0px 0px 6px #F59E0B;
}

/* Muted intro text. */
.lead {
    color: #4A626B;
    max-width: 40rem;
    margin: 10px 0px 24px 0px;
}

/* ----- Header (class) ----- */

/* Sticky white header with rounded bottom corners. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #FFFFFF;
    border-radius: 0px 0px 18px 18px;
    box-shadow: 0px 6px 18px rgba(11, 37, 48, 0.08);
}

/* Logo and menu in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Logo. */
.logo {
    font-family: Quicksand, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0E6A82;
}

/* Sunny tooth icon. */
.logo i {
    color: #F59E0B;
}

/* Small line beside the name. */
.logo small {
    font-size: 0.85rem;
    color: #4A626B;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Rounded menu button. */
.menu-icon {
    background-color: #E0F4F7;
    color: #0B2530;
    border-radius: 999px;
    padding: 7px 16px;
    font-weight: 700;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Opened menu shows nav. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* No bullets. */
.site-nav ul {
    list-style: none;
    padding-top: 8px;
}

/* Phone nav links. */
.site-nav a {
    display: block;
    color: #0B2530;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #E0F4F7;
}

/* Teal on hover. */
.site-nav a:hover {
    color: #0E6A82;
}

/* Concept notice. */
.concept-note {
    background-color: #E0F4F7;
    font-size: 0.85rem;
    text-align: center;
    padding: 4px 16px;
    border-radius: 0px 0px 18px 18px;
}

/* ----- Hero (class) ----- */

/* Teal hero with a big curved bottom like a smile. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: #0E6A82;
    color: #FFFFFF;
    padding: 44px 20px 70px 20px;
    border-radius: 0px 0px 50% 50% / 0px 0px 60px 60px;
}

/* Sunny pill above the headline. */
.pill {
    display: inline-block;
    background-color: #F59E0B;
    color: #0B2530;
    border-radius: 999px;
    padding: 4px 14px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.3rem, 6.5vw, 4rem);
    margin-bottom: 16px;
}

/* Hero paragraph. */
.hero-text > p:not(.pill) {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Sunny rounded button with dark text. */
.button,
button {
    display: inline-block;
    background-color: #F59E0B;
    color: #0B2530;
    border: none;
    border-radius: 999px;
    padding: 13px 26px;
    font-family: Quicksand, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* Lighter on hover. */
.button:hover,
button:hover {
    background-color: #FCD34D;
}

/* Phone link beside the button. */
.text-link {
    display: inline-block;
    margin-left: 14px;
    color: #FFFFFF;
}

/* Rounded hero photo. */
.hero-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 28px;
    border: 6px solid #FFFFFF;
}

/* ----- Comfort menu (ID and class) ----- */

/* Section spacing. */
#comfort {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 64px 20px;
}

/* Cream menu card with a double border like a printed menu. */
.menu-card {
    background-color: #FFFDF7;
    border: 6px double #0E6A82;
    border-radius: 6px;
    padding: 28px 22px;
    text-align: center;
}

/* Small top line. */
.menu-top {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0E6A82;
}

/* Menu subtitle. */
.menu-sub {
    font-style: italic;
    color: #4A626B;
    margin: 6px 0px 18px 0px;
}

/* Menu items. */
.comfort-list div {
    padding: 10px 0px;
    border-top: 1px dashed #B9DDE4;
}

/* Item name. */
.comfort-list dt {
    font-family: Quicksand, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
}

/* Teal icon before the item. */
.comfort-list i {
    color: #0E6A82;
    margin-right: 6px;
}

/* Item description. */
.comfort-list dd {
    color: #4A626B;
}

/* Comfort photo. */
.comfort-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 28px;
}

/* ----- Kids (ID and class) ----- */

/* Sunny pale band. */
#kids {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    background-color: #FEF3D7;
    padding: 64px 20px;
}

/* The tooth body: a rounded white shape, parent for the face parts. */
.tooth {
    position: relative;
    width: 150px;
    height: 130px;
    background-color: #FFFFFF;
    border: 5px solid #0B2530;
    border-radius: 60px 60px 40px 40px;
    margin-bottom: 50px;
}

/* Both eyes. */
.eye {
    position: absolute;
    top: 42px;
    width: 14px;
    height: 20px;
    border-radius: 50%;
    background-color: #0B2530;
}

/* Left eye. */
.eye-left {
    left: 40px;
}

/* Right eye. */
.eye-right {
    right: 40px;
}

/* Smile: the bottom half of a circle's border. */
.smile {
    position: absolute;
    left: 50%;
    top: 62px;
    width: 46px;
    height: 24px;
    margin-left: -23px;
    border: 5px solid #0B2530;
    border-top: none;
    border-radius: 0px 0px 30px 30px;
}

/* Both roots hang below the tooth. */
.root {
    position: absolute;
    bottom: -52px;
    width: 42px;
    height: 56px;
    background-color: #FFFFFF;
    border: 5px solid #0B2530;
    border-top: none;
    border-radius: 0px 0px 22px 22px;
}

/* Left root. */
.root-left {
    left: 18px;
}

/* Right root. */
.root-right {
    right: 18px;
}

/* Kids text. */
.kids-text {
    max-width: 560px;
}

/* Space under the heading. */
.kids-text h2 {
    margin-bottom: 12px;
}

/* Kid list with star bullets. */
.kid-list {
    list-style: none;
    margin-top: 14px;
}

/* One item with a star drawn as text. */
.kid-list li::before {
    content: "\2605  ";
    color: #B45309;
}

/* Family photo. */
.family {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 28px;
}

/* ----- Insurance (class) ----- */

/* Section spacing. */
.insurance {
    padding: 64px 20px;
}

/* Plan names flow into columns. */
.plans {
    list-style: none;
    column-count: 2;
    column-gap: 24px;
}

/* One plan name with a check. */
.plans li {
    break-inside: avoid;
    padding: 6px 0px;
    font-weight: 700;
}

/* Check mark before each plan. */
.plans li::before {
    content: "\2713  ";
    color: #0E6A82;
}

/* Tools photo. */
.tools {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 28px;
    margin-top: 26px;
}

/* ----- New patient form (ID and class) ----- */

/* Deep teal band, rounded on top like a tray. */
#new-patient {
    background-color: #0B2530;
    color: #FFFFFF;
    border-radius: 40px 40px 0px 0px;
    padding: 64px 20px;
}

/* Light intro text. */
#new-patient .lead {
    color: #C9E6EC;
}

/* Form fieldsets stack on phones. */
.np-form {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* Each fieldset is a white card. */
.np-form > fieldset {
    flex: 1 1 100%;
    background-color: #FFFFFF;
    color: #0B2530;
    border: none;
    border-radius: 20px;
    padding: 20px;
}

/* Card titles. */
.np-form legend {
    float: left;
    width: 100%;
    padding-bottom: 6px;
    font-family: Quicksand, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Field labels. */
.np-form label {
    display: block;
    font-weight: 700;
    margin-top: 10px;
}

/* Text, date and select fields. */
.np-form input[type="text"],
.np-form input[type="tel"],
.np-form input[type="date"],
.np-form select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 2px solid #B9DDE4;
    border-radius: 12px;
    font-family: Nunito, sans-serif;
    font-size: 1rem;
    background-color: #FFFFFF;
}

/* Nested contact group without its own border. */
.contact {
    border: none;
    margin-top: 12px;
}

/* Smaller nested legend. */
.contact legend {
    font-size: 1rem;
}

/* Radio and checkbox labels sit inline. */
.np-form .inline {
    display: inline-block;
    font-weight: 400;
    margin-right: 16px;
}

/* Teal radios and checkbox. */
.np-form input[type="radio"],
.np-form input[type="checkbox"] {
    accent-color: #0E6A82;
    width: 18px;
    height: 18px;
    margin-right: 4px;
}

/* Submit button. */
.np-form button {
    align-self: center;
    margin-top: 4px;
}

/* ----- Footer (class) ----- */

/* Footer continues the deep teal. */
.site-footer {
    background-color: #0B2530;
    color: #C9E6EC;
    text-align: center;
    font-size: 0.85rem;
    padding: 0px 20px 26px 20px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Three insurance columns. */
    .plans {
        column-count: 3;
    }

    /* Deeper smile curve. */
    .hero {
        border-radius: 0px 0px 50% 50% / 0px 0px 90px 90px;
        padding-bottom: 90px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    #comfort,
    #kids,
    .insurance,
    #new-patient {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Kids: tooth and text side by side, photo below. */
    #kids {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 48px;
    }

    /* Photo on its own row. */
    .family {
        flex: 1 1 100%;
        height: 320px;
    }

    /* Form cards side by side. */
    .np-form > fieldset {
        flex: 1 1 40%;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No Menu button on desktop. */
    .menu-icon {
        display: none;
    }

    /* Nav in the header row. */
    .site-nav {
        display: block;
        width: auto;
    }

    /* Links in a row. */
    .site-nav ul {
        display: flex;
        gap: 24px;
        padding-top: 0px;
    }

    /* No dividers on desktop. */
    .site-nav a {
        border-top: none;
    }

    /* Hero text and photo side by side. */
    .hero {
        flex-direction: row;
        align-items: center;
        gap: 50px;
        padding-top: 70px;
        padding-bottom: 120px;
        border-radius: 0px 0px 50% 50% / 0px 0px 120px 120px;
    }

    /* Each hero half. */
    .hero-text,
    .hero-photo {
        flex: 1 1 50%;
    }

    /* Taller photo. */
    .hero-photo {
        height: 420px;
    }

    /* Menu card and photo side by side. */
    #comfort {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }

    /* Menu card column. */
    .menu-card {
        flex: 1 1 55%;
    }

    /* Photo column; width set to match so the image does not keep its
       100% width as a minimum size. */
    .comfort-photo {
        flex: 1 1 45%;
        width: 45%;
        height: 520px;
    }

    /* Photo beside the kids text instead of below it. */
    .family {
        flex: 1 1 30%;
    }

    /* Insurance list beside the photo. */
    .insurance {
        display: flex;
        flex-wrap: wrap;
        column-gap: 40px;
    }

    /* Heading and intro rows. */
    .insurance h2,
    .insurance .lead {
        flex: 1 1 100%;
    }

    /* List column. */
    .plans {
        flex: 1 1 55%;
    }

    /* Photo column. */
    .tools {
        flex: 1 1 35%;
        width: auto;
        margin-top: 0px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    #comfort,
    #kids,
    .insurance,
    #new-patient {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
