/* Common Styles for Alpine Sky Innovations Website */

:root {
    /* Background shade variables for consistency */
    --bg-shade-content: rgba(0, 0, 0, 0.4); /* Standard shade for content blocks */
    --bg-shade-tagline: rgba(0, 0, 0, 0.25); /* Lighter shade for hero tagline */

    /* Color scheme */
    --primary-color: #5856d6;
    --primary-gradient: linear-gradient(135deg, #5856d6 0%, #7b79ff 100%);
    --text-white: #ffffff;
    --text-dark: #333333;
    --border-radius-standard: 8px;
    --border-radius-large: 20px;
}

/* Body base styles */
body {
    padding-top: 5em;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text-dark);
    background-image: url('../images/PXL_20240326_151142605_optimized.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    scroll-behavior: smooth;
    transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    font-size: 1.1em;
}

/* Utility classes */
.hidden {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.visible {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Navigation styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    color: #000000;
    padding: 1em 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    text-shadow: none;
}

nav img {
    max-width: 5em;
    height: auto;
    margin-right: 20px;
    vertical-align: middle;
}

nav a {
    color: #000000;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.2s ease;
    font-size: 1em;
}

nav a:hover {
    color: #555555;
}

nav .nav-links {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dropdown Menu Styles */
nav .nav-item.dropdown {
    position: relative;
    display: inline-block;
}

nav .dropbtn {
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* SVG Icon Styles */
.icon-svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

nav .dropbtn .icon-svg {
    margin-left: 5px;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    top: 100%;
    left: 0;
    border-top: 1px solid #eee;
}

nav .dropdown-content a {
    color: #000000;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    margin: 0;
    font-size: 0.95em;
}

nav .dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #333333;
}

nav .nav-item.dropdown:hover .dropdown-content,
nav .nav-item.dropdown:focus-within .dropdown-content {
    display: block;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: #000000;
    font-size: 1.8em;
    cursor: pointer;
    padding: 0.5em;
}

.hamburger-menu-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    z-index: 999;
}

.hamburger-menu-links.active {
    display: flex;
}

.hamburger-menu-links a {
    padding: 1em 1.5em;
    text-align: center;
    border-bottom: 1px solid #eeeeee;
    color: #000000;
    text-decoration: none;
    font-size: 1em;
}

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

.hamburger-menu-links a:hover {
    background-color: #f0f0f0;
}

/* Footer styles */
footer, .site-footer {
    background-color: transparent;
    color: var(--text-white);
    text-align: center;
    padding: 1em 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Page content block styles */
.page-content {
    flex-grow: 1;
    padding: 2em;
    background-color: var(--bg-shade-content);
    border-radius: var(--border-radius-standard);
    max-width: 800px;
    margin-top: 2em;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    width: 100%;
}

.page-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    margin-bottom: 0.75em;
    color: var(--text-white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.page-content p {
    margin-bottom: 1em;
    font-size: 1.5em;
    color: var(--text-white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Tagline background (used on homepage) */
.tagline-background {
    background-color: var(--bg-shade-tagline);
    border-radius: var(--border-radius-standard);
    padding: 1.5em;
    max-width: 900px;
    margin: 20px auto;
}

.tagline-background p {
    font-size: 1.2em;
    margin: 0;
    line-height: 1.6;
    color: var(--text-white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Mobile responsive styles */
@media screen and (max-width: 900px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1em 2em;
    }

    nav .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .page-content {
        padding: 1.5em;
        max-width: 100%;
    }

    .page-content h1 {
        font-size: 2em;
    }

    .page-content p {
        font-size: 1.05em;
    }
}

@media screen and (max-width: 820px) {
    .page-content {
        padding: 1.5em;
    }
}
