/* ==========================================
   MCFARLAND PHARMACY
   ENABLING TECHNOLOGY
========================================== */

:root {

    --black: #171615;
    --charcoal: #292725;

    --gold: #c8b56a;
    --gold-dark: #a9954f;
    --gold-light: #eee6bd;

    --cream: #faf8ef;

    --white: #ffffff;

    --gray: #686562;
    --light-gray: #e8e6df;
    --border: #ddd9cc;
}


/* ==========================================
   RESET
========================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--white);

    color: var(--charcoal);

    line-height: 1.6;
}


img {
    max-width: 100%;
}


/* ==========================================
   CONTAINER
========================================== */

.container {

    width: 100%;

    max-width: 1180px;

    margin: auto;

    padding-left: 24px;
    padding-right: 24px;
}


/* ==========================================
   HEADER
========================================== */

header {

    background: var(--white);

    border-bottom:
        1px solid var(--border);

    position: sticky;

    top: 0;

    z-index: 1000;
}


.header-inner {

    max-width: 1180px;

    margin: auto;

    padding: 14px 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.logo {

    width: 330px;

    max-width: 100%;

    display: block;
}


nav {

    display: flex;

    align-items: center;

    gap: 24px;
}


nav a {

    color: var(--charcoal);

    text-decoration: none;

    font-weight: 600;

    font-size: 14px;
}


nav a:hover {

    color: var(--gold-dark);
}


.nav-button {

    background: var(--black);

    color: var(--white) !important;

    padding: 10px 17px;

    border-radius: 5px;
}


/* ==========================================
   HERO
========================================== */

.hero {

    background: var(--cream);

    border-bottom:
        1px solid var(--border);
}


.hero-content {

    padding-top: 90px;

    padding-bottom: 90px;
}


.eyebrow {

    color: var(--gold-dark);

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 12px;
}


.hero h1 {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color: var(--black);

    font-size: clamp(48px, 7vw, 78px);

    line-height: 1;

    margin-bottom: 25px;
}


.hero h1 span {

    color: var(--gold-dark);
}


.hero p {

    max-width: 680px;

    color: var(--gray);

    font-size: 19px;

    margin-bottom: 30px;
}


/* ==========================================
   BUTTONS
========================================== */

.primary-button,
.gold-button {

    display: inline-block;

    text-decoration: none;

    font-weight: bold;

    border-radius: 5px;

    padding: 13px 22px;
}


.primary-button {

    background: var(--black);

    color: var(--white);
}


.primary-button:hover {

    background: var(--gold-dark);
}


.gold-button {

    background: var(--gold);

    color: var(--black);
}


.gold-button:hover {

    background: var(--gold-light);
}


/* ==========================================
   SECTIONS
========================================== */

.section {

    padding-top: 80px;

    padding-bottom: 80px;
}


.cream-section {

    background: var(--cream);
}


.section-title {

    max-width: 760px;

    margin-bottom: 45px;
}


.section-title h2 {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 40px;

    color: var(--black);

    margin-bottom: 12px;
}


.section-title p {

    color: var(--gray);

    font-size: 17px;
}


/* ==========================================
   FEATURES
========================================== */

.feature-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


.feature-card {

    background: var(--white);

    border:
        1px solid var(--border);

    padding: 30px;

    border-radius: 6px;
}


.feature-number {

    color: var(--gold-dark);

    font-weight: bold;

    font-size: 13px;

    letter-spacing: 1px;

    margin-bottom: 15px;
}


.feature-card h3 {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 24px;

    color: var(--black);

    margin-bottom: 10px;
}


.feature-card p {

    color: var(--gray);
}


/* ==========================================
   DEVICE LIST
========================================== */

.device-list {

    display: flex;

    flex-direction: column;

    gap: 16px;
}


.device-button {

    background: var(--white);

    border:
        1px solid var(--border);

    border-left:
        5px solid var(--gold);

    padding: 25px 28px;

    text-decoration: none;

    color: inherit;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}


.device-button:hover {

    transform: translateX(4px);

    border-left-color:
        var(--gold-dark);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);
}


.device-category {

    color: var(--gold-dark);

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1.5px;
}


.device-button h3 {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    color: var(--black);

    margin: 4px 0;
}


.device-button p {

    color: var(--gray);

    font-size: 14px;
}


.device-arrow {

    font-size: 30px;

    color: var(--gold-dark);

    flex-shrink: 0;
}


/* ==========================================
   DARK CONTACT
========================================== */

.dark-section {

    background: var(--black);

    color: var(--white);

    padding-top: 75px;

    padding-bottom: 75px;
}


.contact-content {

    text-align: center;

    max-width: 800px;
}


.contact-content h2 {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 40px;

    margin-bottom: 15px;
}


.contact-content p {

    color: #d8d5cd;

    margin-bottom: 30px;
}


/* ==========================================
   FOOTER
========================================== */

footer {

    background: #11100f;

    color: #aaa7a0;

    padding: 35px 0;
}


.footer-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.footer-logo {

    width: 270px;

    background: white;

    padding: 8px;
}


.footer-inner p {

    font-size: 13px;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 800px) {

    .header-inner {

        flex-direction: column;
    }


    nav {

        flex-wrap: wrap;

        justify-content: center;
    }


    .feature-grid {

        grid-template-columns: 1fr;
    }


    .footer-inner {

        flex-direction: column;

        text-align: center;
    }

}


@media (max-width: 500px) {

    .hero-content {

        padding-top: 60px;

        padding-bottom: 60px;
    }


    .hero h1 {

        font-size: 46px;
    }


    .section-title h2 {

        font-size: 32px;
    }


    .device-button {

        padding: 20px;
    }


    .device-button h3 {

        font-size: 21px;
    }


    .device-arrow {

        font-size: 24px;
    }

}

/* Contact dropdown */

.contact-dropdown {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.contact-dropdown .gold-button {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.contact-dropdown.open .contact-arrow {
    transform: rotate(180deg);
}

.contact-menu {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(8px);

    width: 300px;

    background: var(--white);
    border: 1px solid var(--border);
    border-bottom: 4px solid var(--gold);

    border-radius: 8px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 100;
}

.contact-dropdown.open .contact-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.contact-menu a {
    display: block;

    padding: 18px 20px;

    text-decoration: none;

    color: var(--charcoal);

    border-bottom: 1px solid var(--border);

    transition: background 0.15s ease;
}

.contact-menu a:last-child {
    border-bottom: none;
}

.contact-menu a:hover {
    background: var(--cream);
}

.contact-label {
    display: block;

    margin-bottom: 5px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;

    color: var(--gold-dark);
}

.contact-value {
    display: block;

    font-size: 16px;
    font-weight: 500;

    color: var(--charcoal);
}

.hero {
    background-image:
        linear-gradient(
            rgba(15, 12, 8, 0.35),
            rgba(15, 12, 8, 0.35)
        ),
        url("/downtown.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero p {
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.95);
    line-height: 1.7;
}

.hero h1 {
    color: #D4AF37;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    text-align: center;
}

.hero-content p {
    width: 100%;
    margin: 20px auto 30px;
    text-align: center;
    line-height: 1.7;
}
