:root {
    --nav: #ffffff;
    --green: #55c98d;
    --blue: #173f56;
    --light: #f6f8f9;
    --text: #171a1d;
    --muted: #5d6870;
}


/* =========================================
   GENERAL PAGE SETTINGS
   ========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


/* =========================================
   TOP NAVIGATION BAR
   ========================================= */

nav {
    background: #ffffff;
    color: #000000;
    min-height: 58px;
    padding: 0 4%;

    display: flex;
    align-items: center;
    gap: 28px;
}


/* =========================================
   AZSW PBX LOGO
   ========================================= */

.brand {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

a.brand {
    text-decoration: none;
    cursor: pointer;
}

a.brand:link,
a.brand:visited,
a.brand:hover,
a.brand:focus,
a.brand:active {
    text-decoration: none;
}


/* AZSW PBX LOGO COLORS */

.brand .brand-a {
    color: #bd0d2d;
}

.brand .brand-z {
    color: #ca591b;
}

.brand .brand-s {
    color: #f9d714;
}

.brand .brand-w {
    color: #042966;
}

.brand .brand-pbx {
    color: #47af78;
}


/* =========================================
   NAVIGATION LINKS
   ========================================= */

.links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.links a,
.links a:link,
.links a:visited,
.links a:hover,
.links a:focus,
.links a:active,
.links a.active {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
}


/* =========================================
   HERO / BANNER IMAGE

   Used on:
   - Home
   - Join Our Community
   - Contact Us
   ========================================= */

.hero {
    min-height: 330px;
    padding: 65px 7%;

    color: #ffffff;
    text-align: center;

    display: grid;
    place-items: center;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15)
        ),
        url("Images/Tango FreePBX.png");

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


/* HERO TITLE */

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 300;
    color: #ffffff;
}


/* HERO DESCRIPTION */

.hero p {
    max-width: 850px;
    margin: auto;
    font-size: 19px;
    color: #ffffff;
}


/* =========================================
   MAIN CONTENT
   ========================================= */

.content {
    max-width: 1120px;
    width: 100%;
    margin: auto;
    padding: 62px 7%;
}

h1 {
    font-size: 38px;
}

h2 {
    font-size: 28px;
    margin-top: 34px;
}

p {
    line-height: 1.6;
}

.lead {
    color: var(--muted);
    font-size: 18px;
}


/* =========================================
   HOME PAGE CARDS
   ========================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.card {
    border: 1px solid #dfe5e8;
    border-radius: 12px;
    padding: 23px;
    box-shadow: 0 5px 18px #0000000c;
}


/* =========================================
   NOTICE BOX
   ========================================= */

.notice {
    background: #eef7f3;
    border: 1px solid #cce7da;
    border-radius: 10px;
    padding: 24px;
}


/* =========================================
   SUPPORTED PHONES
   ========================================= */

.phone-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.phone {
    border-left: 4px solid var(--green);
    background: var(--light);
    padding: 14px 18px;
}


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

.button {
    display: inline-block;
    background: var(--green);
    color: #10251d;
    text-decoration: none;
    padding: 13px 22px;
    border-radius: 7px;
    font-weight: bold;
}

.button:hover {
    opacity: 0.9;
}

.center {
    text-align: center;
}


/* =========================================
   STATUS PAGE
   ========================================= */

.status {
    padding: 20px;
    background: var(--light);
    border-radius: 10px;
    border: 1px solid #dfe5e8;
}

.dot {
    color: #36b66f;
}


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

footer {
    background: #171918;
    color: #bbbbbb;
    text-align: center;
    padding: 22px;
    margin-top: auto;
}


/* =========================================
   MOBILE / SMALL SCREENS
   ========================================= */

@media (max-width: 950px) {

    nav {
        align-items: flex-start;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .links {
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .cards,
    .phone-list {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 280px;
        padding: 50px 6%;
        background-position: center;
    }
}