﻿/* ============================================================
   Dandelion System — main.css
   Applies to all pages. Loaded by Site.Master.
   System font stack (no external font downloads).
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00AEEF;
    --primary-hover: #00C8FF;
    --accent-purple: #764ba2;
    --dark-bg: #2a2a2a;
    --darker-bg: #1f1f1f;
    --card-bg: #353535;
    --card-bg-hover: #3d3d3d;
    --text-light: #f5f5f5;
    --text-gray: #c5c5c5;
    --text-dark: #8f8f8f;
    --border-gray: #505050;
    --header-bg: #2f2f2f;
    --freeware-green: #4CAF50;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================================
   Header
   ============================================================ */
.header {
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 174, 239, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gray);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
    filter: brightness(1.2);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 10px;
}

.menu-button {
    text-decoration: none;
    color: var(--text-light);
    padding: 12px 20px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.menu-button:hover,
.menu-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================================================
   Generic hero band (used on Products, Product pages, Contact)
   ============================================================ */
.hero-band {
    background: linear-gradient(135deg, #1a2a3a 0%, #2d4a5e 100%);
    padding: 70px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='a' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='50' cy='50' r='1' fill='rgba(0,174,239,0.2)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23a)'/%3E%3C/svg%3E");
    animation: drift 20s infinite linear;
}

@keyframes drift {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

.hero-title {
    font-size: 42px;
    color: white;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(0, 174, 239, 0.5);
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 300;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.15s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Section helpers
   ============================================================ */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 32px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.section-subtitle {
    color: var(--text-gray);
    text-align: center;
    font-size: 16px;
    margin-bottom: 45px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
    margin: 0 auto 35px;
    border-radius: 2px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0096d1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 174, 239, 0.3);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-gray);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================================
   Contact CTA strip (used at the bottom of Products & Product pages)
   ============================================================ */
.cta-strip {
    background: linear-gradient(135deg, #1a2a3a, #2d4a5e);
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
}

.cta-strip h3 {
    color: white;
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 15px;
}

.cta-strip p {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 16px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: linear-gradient(180deg, var(--header-bg) 0%, var(--darker-bg) 100%);
    color: var(--text-gray);
    padding-top: 50px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-gray);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    padding: 30px 0 40px;
}

.footer-block {
    text-align: center;
}

.footer-block h4 {
    font-size: 18px;
    color: white;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-block p,
.footer-block a {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
}

.footer-block a:hover {
    color: var(--primary-color);
}

.footer-block img {
    max-width: 150px;
    margin: 0 auto;
    opacity: 0.85;
    filter: brightness(1.2);
}

.footer-block ul {
    list-style: none;
}

.footer-block ul li {
    margin-bottom: 6px;
}

.footer-bottom {
    background: var(--darker-bg);
    text-align: center;
    padding: 18px;
    border-top: 1px solid var(--border-gray);
    color: var(--primary-color);
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
        border-top: 1px solid var(--border-gray);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-button {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-gray);
        border-left: 3px solid transparent;
    }

    .menu-button:hover,
    .menu-button.active {
        border-left-color: var(--primary-color);
        border-bottom-color: var(--border-gray);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .cta-strip h3 {
        font-size: 22px;
    }
}
