/* Template Color Definitions */
:root {
    --page-background: #1a1a1a;
    --footer-background: rgba(41, 77, 99, .1);
    --card-background: #222831;
    --cta-background: #c6f2f2;
    --cta-hover: #b2ebeb;
    --generic-accent: rgba(0, 255, 200, 0.2);
    --base-font: #e8f1f9;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(36, 113, 130, 0.5);
    }

    60% {
        box-shadow: 0 0 0 10px rgba(36, 113, 130, 0.0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(36, 113, 130, 0.5);
    }
}

/* Base Page Styles */
html,
body {
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    height: auto;
}

body {
    background-color: var(--page-background);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;

}

header {
    width: 100%;
    box-sizing: border-box;
}

header.homepage {
    text-align: center;
    padding: calc(3rem - 2vw) 0;
}

header.not-homepage {
    background: rgba(0, 0, 0, .1);
    /* subtle gradient */
    color: #e1f6ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.1rem 10rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    /* bottom glow */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* clean bottom line */
    position: relative;
    z-index: 10;
}

header.not-homepage::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    opacity: 0.4;
}

header.not-homepage>img {
    max-width: 100px;
    height: auto;
    width: auto;
    filter: drop-shadow(0 0 3px rgba(91, 236, 255, 0.3));
}

header.not-homepage>nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

header.not-homepage>nav a {
    color: #e1f6ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

header.not-homepage>nav a.active {
    color: #b2e6fa;
}

header.not-homepage>nav a:hover {
    color: #59c2eb;
}

header.not-homepage>nav .nav-icon {
    font-size: 2rem;
}

main {
    width: 100%;
    margin: auto;
    box-sizing: border-box;
    padding: 2rem;
    flex: 1;
    /* grow and fill space */
}

footer {
    color: var(--base-font);
    padding: 1rem;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    background-color: var(--footer-background);
}

footer:after {
    pointer-events: none;
    content: ' ';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: -webkit-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
    background-image: -moz-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.footer-content h2,
.footer-content h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-content p,
.footer-content a {
    text-decoration: none;
    margin: 0;
}

.footer-content ul {
    list-style-type: none;
    margin: 0;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #7ca4ac;
}

#larger-logo {
    width: 15%;
    height: auto !important;
}

#square-logo {
    width: 15vw;
    height: auto !important;
    filter: drop-shadow(0 0 3px rgba(91, 236, 255, 0.3));
}


section.card-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
    padding: 0 2rem;
    justify-content: space-around;
    box-sizing: border-box;
}

.card {
    background-color: var(--card-background);
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    box-shadow: 1px 1px 2px black;
}

.card>a {
    margin: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    background-color: var(--card-background);
    transform: scale(1.03);
    box-shadow: 1px 1px 5px black;
}

.card .card-icon {
    display: block;
    font-size: 3rem;
    margin: 0.5rem;
}

.cta {
    background-color: var(--cta-background);
    border-radius: 10px;
    padding: .75rem 1.5rem;
    box-sizing: border-box;
    color: black;
    display: inline-block;
    box-shadow: 1px 1px 2px black;
    cursor: pointer;
    cursor: hand;
    text-decoration: none;
    font-weight: bold;
}

.cta>a {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.cta:hover {
    background-color: var(--cta-hover);
    box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.1);
    transform: scale(1.03);
}

* {
    font-family: "Inter", sans-serif;
    color: var(--base-font);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Exo 2', sans-serif;
    color: white;
    text-align: center;
    margin: 0;
}

div.keyed-list {
    display: grid;
    grid-template-columns: min-content 1fr;
    gap: 0.5rem 0;
    text-align: left;
    align-items: stretch;
    box-sizing: border-box;
    font-size: 85%;
    margin: 1rem 0;
}

div.keyed-list>.item-name {
    font-weight: bold;
}

div.keyed-list>.item-name,
div.keyed-list>.item-desc,
div.price-list>.item-name,
div.price-list>.item-price {
    box-sizing: border-box;
    padding: .4rem;
    width: 100%;
    height: 100%;
}

div.keyed-list>.item-name:nth-of-type(4n+1),
div.keyed-list>.item-name:nth-of-type(4n+1)+div,
div.price-list>.item-name:nth-of-type(4n+1),
div.price-list>.item-name:nth-of-type(4n+1)+div {
    background: rgba(255, 255, 255, .05);
}

div.price-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0;
    text-align: left;
    align-items: stretch;
    box-sizing: border-box;
    font-size: 85%;
    margin: 1rem 0;
}


.tooltip {
    font-size: 85%;
    font-style: italic;
}

#contact-form {
    display: none;
}

#contact-form input[type=text],
#contact-form input[type=email],
#contact-form textarea {
    background-color: #294d63;
    color: #e2f1f8;
    border: 1px solid #3d7a89;
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0.25rem 0;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #5fbcd3;
    background-color: #325c74;
}

.service-label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    font-size: 110%;
}

.checkbox-group {
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 110%;
    margin-bottom: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#contact-form input[type=checkbox] {
    width: 30px;
    margin: 0;
    display: inline;
}

#contact-form textarea {
    height: 100px;
}

#contact-form button {
    background-color: #2a6b7c;
    color: #e2f1f8;
    border: none;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    margin: 1rem 0;
}

#contact-form button:hover {
    background-color: #3a7e91;
}

.form-submitted-noerror {
    background: rgba(0, 255, 0, 0.2);
}

.form-submitted-error {
    background: rgba(255, 0, 0, 0.2);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}

@media (orientation: portrait) {
    section.card-grid {
        grid-template-columns: 1fr;
    }

    #square-logo {
        width: 40vw;
    }

    #contact-form {
        width: 100%;
        left: 0;
    }

    section.card-grid {
        margin: 1rem 0;
        padding: 1rem;
    }

    header.not-homepage>nav {
        flex-direction: column;
        margin: 0;
        padding: 0;
        gap: 0;
        text-align: center;
        align-items: center;
    }
}