﻿@import url("variables.css");
@import url("nav-styles.css");
@import url("footer-styles.css");

html {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    color: var(--text-color, var(--primary-dark));
    background-color: var(--main-bg);
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    transition: color 0.2s ease;
}

    a:hover,
    a:focus {
        color: var(--accent);
    }

h1,
h2,
h3 {
    color: var(--primary-dark);
}

.index-content-area {
    flex: 1;
}

.text-align-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Decorative header layering */
.page-title {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    padding: 20px 0;
}

    .page-title > *:not(.bk) {
        position: relative;
        z-index: 2;
    }

.bk,
.logo-backdrop {
    pointer-events: none;
}

.hero-actions {
    position: relative;
    z-index: 2;
}

/* Card coloring */
.card-light {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

    .card-light a {
        color: var(--accent);
    }

.card-dark {
    background-color: var(--primary-dark);
    color: var(--primary-light);
}

    .card-dark a {
        color: var(--accent);
    }

/* Call to action */
.cta-section {
    margin-top: 40px;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    .cta-section h2 {
        margin-bottom: 20px;
        font-size: 24px;
    }

    .cta-section p {
        margin-bottom: 30px;
        font-size: 18px;
        line-height: 1.6;
    }

/* Contact */
.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 8px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title {
    margin-bottom: 20px;
    text-align: center;
    font-size: 28px;
    color: var(--accent-dark);
}

.contact-info p {
    line-height: 1.6;
    font-size: 18px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.contact-card {
    flex: 1;
    min-width: 250px;
    margin: 10px;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-method {
    width: 80%;
    margin: 10px 0;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: var(--primary-dark);
    color: var(--primary-light);
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    .contact-method:hover,
    .contact-method:focus {
        background-color: var(--accent-dark);
        color: var(--primary-light);
        border-color: var(--primary-dark);
        box-shadow: 1px 1px 2px var(--primary-dark);
    }

/* 404 */
.not-found-container {
    padding-bottom: 40px;
    text-align: center;
}

    .not-found-container h1 {
        font-size: 5rem;
    }

    .not-found-container p {
        font-size: 1.5rem;
    }

    .not-found-container a {
        display: inline-block;
        margin-top: 20px;
        padding: 10px 20px;
        border-radius: 5px;
        background-color: var(--accent);
        color: var(--primary-light);
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

        .not-found-container a:hover,
        .not-found-container a:focus {
            background-color: var(--accent-dark);
        }

.not-found-image img {
    display: block;
    width: 80%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    margin: 5px auto;
}

/* Main header */
.main-header {
    position: relative;
    align-items: center;
    z-index: 2;
    background-color: var(--header-bg, var(--accent-dark));
    padding: 30px 5%;
    box-shadow: 0 4px 4px rgba(55, 55, 55, 0.5);
    text-align: center;
    justify-content: center;
}

.page-title h1 {
    color: var(--header-text, var(--primary-light));
}

.main-header p {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.45;
    opacity: 0.92;
    color: var(--header-text, var(--primary-light));
}

.logo-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    padding: 5px;
    opacity: 0.25;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.bk {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Horizontal rules */
.hr-gradient {
    margin: 20px 0;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, var(--primary-dark), var(--accent), var(--primary-dark));
}

.hr-animated {
    position: relative;
    margin: 20px 0;
    border: 0;
    height: 2px;
    background: var(--primary-dark);
}

    .hr-animated::after {
        content: "";
        position: absolute;
        left: -100%;
        width: 100%;
        height: 2px;
        background-image: linear-gradient(to right, transparent, var(--accent), transparent);
        animation: moveIn 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }

@keyframes moveIn {
    from {
        left: -100%;
    }

    to {
        left: 100%;
    }
}

.hr-fading {
    width: 80%;
    margin: 20px auto;
    border: none;
    height: 1px;
    background: radial-gradient(circle at center, var(--primary-dark) 0%, transparent 70%);
}

.hr-shadow {
    border-top: 1px solid var(--main-bg);
    box-shadow: 0 2px 2px var(--accent-dark);
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 80%;
        margin: 10px 0;
    }

    .main-header {
        padding: 30px;
    }

        .main-header p {
            font-size: 1.1rem;
        }
}

@media (min-width: 768px) {
    .contact-methods {
        flex-direction: row;
        justify-content: center;
    }

    .contact-method {
        width: auto;
        margin: 0 10px;
    }
}
