/*
    Author: Vy Le
    Class: CIST1510
    Date: 03/08/2026
    File Name: styles.css
    Project: Georgia Health Access
*/

/* CSS Reset */
body, header, nav, main, footer, h1, h2, h3, p, ul, ol, li, dl, dt, dd, section, article, aside, figure, figcaption, img, a, div {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Body and Image Rules */
body {
    background-color: #f6fbfc;
    color: #17323d;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

#wrapper {
    width: 100%;
}

/* Mobile Header */
.mobile-header {
    display: block;
    text-align: center;
    padding: 5%;
    background-color: #d9eef2;
}

.mobile-header h1 {
    color: #0f4c5c;
    font-size: 2em;
    margin-bottom: 2%;
}

.mobile-header h3 {
    color: #245f73;
    font-size: 1em;
    font-weight: normal;
}

.tab-desk {
    display: none;
}

/* Navigation */
nav {
    background-color: #0f4c5c;
}

nav ul {
    list-style-type: none;
    text-align: center;
}

nav li {
    border-top: 1px solid #f6fbfc;
    font-size: 1.15em;
    font-weight: bold;
}

nav li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.85em;
}

/* Main Content */
main {
    padding: 4%;
}

main section,
main article,
main aside,
main figure {
    margin-bottom: 6%;
}

h2 {
    color: #0f4c5c;
    margin-bottom: 2%;
    font-size: 1.7em;
}

h3 {
    color: #245f73;
    margin-bottom: 2%;
    font-size: 1.2em;
}

p {
    margin-bottom: 3%;
    font-size: 1.05em;
}

ul,
ol,
dl {
    margin-left: 7%;
    margin-bottom: 3%;
}

li {
    margin-bottom: 1.5%;
}

dt {
    font-weight: bold;
    color: #0f4c5c;
    margin-top: 2%;
}

dd {
    margin-left: 4%;
    margin-bottom: 2%;
}

/* Links */
a {
    color: #0f4c5c;
}

a:hover {
    text-decoration: none;
}

/* Hero and Banner Sections */
.hero {
    background: linear-gradient(#d9eef2, #f6fbfc);
    padding: 7%;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 6%;
    box-shadow: 0px 6px 15px rgba(0,0,0,0.08);
}

.hero h2 {
    font-size: 2em;
    color: #0f4c5c;
    margin-bottom: 2%;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 2% auto;
}

.action {
    font-weight: bold;
    color: #2c7da0;
}

/* Figures */
figure {
    border: 3px solid #c8dfe4;
    border-radius: 8px;
    box-shadow: 3px 3px 10px rgba(15, 76, 92, 0.12);
    overflow: hidden;
    background-color: #ffffff;
}

figcaption {
    padding: 3%;
    background-color: #f2f9fa;
    border-top: 2px solid #c8dfe4;
}

/* Aside */
aside {
    background-color: #eef7f9;
    padding: 4%;
    border-radius: 8px;
    border: 2px solid #d0e6eb;
}

/* Card Layout */
.card {
    background-color: #ffffff;
    border: 2px solid #d0e6eb;
    border-radius: 8px;
    padding: 4%;
    box-shadow: 2px 2px 8px rgba(15, 76, 92, 0.08);
}

.feature-grid {
    margin-bottom: 6%;
}

.feature-box {
    background-color: #ffffff;
    border: 2px solid #d0e6eb;
    border-radius: 10px;
    padding: 5%;
    margin-bottom: 4%;
    box-shadow: 2px 2px 10px rgba(15, 76, 92, 0.08);
    text-align: center;
}

.feature-box h3 {
    margin-bottom: 3%;
    color: #0f4c5c;
}

.feature-box p:last-child {
    margin-bottom: 0;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #0f4c5c;
    color: #ffffff;
    text-align: center;
    padding: 3%;
}

footer p {
    margin-bottom: 1.5%;
}

footer a {
    color: #ffffff;
}

/* Tablet Media Query */
@media screen and (min-width: 620px), print {

    .mobile-header {
        display: none;
    }

    .tab-desk {
        display: block;
        background-color: #d9eef2;
        padding: 2%;
        text-align: center;
    }

    .tab-desk img {
        margin: 0 auto;
        max-width: 300px;
    }

    nav li {
        display: inline-block;
        border-top: none;
        border-right: 1px solid #d9eef2;
    }

    nav li:last-child {
        border-right: none;
    }

    nav li a {
        padding: 1em;
    }

    .two-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .card-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    }
    .feature-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }

    .feature-box {
        margin-bottom: 0;
    }
/* Desktop Media Query */
@media screen and (min-width: 1000px), print {

    #wrapper {
        width: 90%;
        margin: 0 auto;
        max-width: 1400px;
    }

    nav li a:hover {
        background-color: #d9eef2;
        color: #0f4c5c;
    }

    main {
        padding: 3%;
    }

    .hero {
        padding: 4%;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .home-figure {
        max-width: 900px;
        margin: 0 auto 4% auto;
    }
}

/* Large Desktop Media Query */
@media screen and (min-width: 1400px) {

    body {
        background: linear-gradient(#f6fbfc, #dceff3);
    }

    h2 {
        font-size: 1.9em;
    }

    p,
    li,
    dd {
        font-size: 1.1em;
    }
}
/* Profile Photo */
.profile-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    flex-shrink: 0;
}

.about-profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 200px;
}
/* Print */
@media print {
    body {
        background-color: #ffffff;
        color: #000000;
    }
}
/* ==============================
   Contact Form Styles (CH08)
   ============================== */

.contact-form {
    background-color: #ffffff;
    border: 2px solid #d0e6eb;
    border-radius: 10px;
    padding: 5%;
    box-shadow: 2px 2px 10px rgba(15, 76, 92, 0.08);
    max-width: 700px;
}

.form-group {
    margin-bottom: 5%;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #0f4c5c;
    margin-bottom: 1.5%;
    font-size: 1em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7em;
    border: 2px solid #c8dfe4;
    border-radius: 6px;
    font-size: 1em;
    font-family: Arial, Helvetica, sans-serif;
    color: #17323d;
    background-color: #f6fbfc;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0f4c5c;
    outline: none;
    background-color: #ffffff;
}

.form-group textarea {
    resize: vertical;
}

.form-group fieldset {
    border: 2px solid #d0e6eb;
    border-radius: 6px;
    padding: 3%;
}

.form-group legend {
    font-weight: bold;
    color: #0f4c5c;
    padding: 0 0.5em;
}

.radio-label,
.check-label {
    display: block;
    margin-bottom: 1%;
    font-size: 1em;
    cursor: pointer;
}

.radio-label input,
.check-label input {
    margin-right: 0.5em;
}

.required {
    color: #c0392b;
}

.form-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-buttons input[type="submit"],
.form-buttons input[type="reset"] {
    padding: 0.7em 1.8em;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
}

.form-buttons input[type="submit"] {
    background-color: #0f4c5c;
    color: #ffffff;
}

.form-buttons input[type="submit"]:hover {
    background-color: #245f73;
}

.form-buttons input[type="reset"] {
    background-color: #d0e6eb;
    color: #0f4c5c;
}

.form-buttons input[type="reset"]:hover {
    background-color: #c8dfe4;
}

/* ==============================
   Table Styles (CH08)
   ============================== */

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 3%;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1em;
    background-color: #ffffff;
    border: 2px solid #d0e6eb;
    overflow: hidden;
}

caption {
    caption-side: top;
    font-weight: bold;
    color: #0f4c5c;
    padding: 0 0 1.5% 0;
    font-size: 1.05em;
    text-align: left;
}

thead {
    background-color: #0f4c5c;
    color: #ffffff;
}

thead th {
    padding: 0.75em 1em;
    text-align: left;
    font-size: 1em;
}

tbody tr {
    border-bottom: 1px solid #d0e6eb;
}

tbody tr:nth-child(even) {
    background-color: #eef7f9;
}

tbody tr:hover {
    background-color: #d9eef2;
}

tbody td {
    padding: 0.7em 1em;
    color: #17323d;
    vertical-align: top;
}

/* ==============================
   Custom Fonts (Google Fonts)
   ============================== */

/* font-family applied in main body rule above */

h1, h2, h3 {
    font-family: 'Merriweather', Georgia, serif;
}

/* Text Shadow on headings */
h1 {
    text-shadow: 1px 2px 4px rgba(15, 76, 92, 0.2);
}

h2 {
    text-shadow: 1px 1px 3px rgba(15, 76, 92, 0.15);
}

.hero h2,
.page-banner h2 {
    text-shadow: 1px 2px 5px rgba(15, 76, 92, 0.25);
}

/* ==============================
   Video and Audio Styles (CH09)
   ============================== */

.media-section {
    background-color: #eef7f9;
    border: 2px solid #d0e6eb;
    border-radius: 10px;
    padding: 5%;
    margin-bottom: 6%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 4%;
    box-shadow: 2px 2px 10px rgba(15, 76, 92, 0.12);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.audio-wrapper {
    background-color: #ffffff;
    border: 2px solid #d0e6eb;
    border-radius: 8px;
    padding: 4%;
    margin-top: 3%;
}

.audio-wrapper audio {
    width: 100%;
    margin: 2% 0;
}

.audio-note {
    font-size: 0.9em;
    color: #245f73;
    font-style: italic;
}

.audio-note code {
    background-color: #eef7f9;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-family: monospace;
    font-style: normal;
}
