/* Modern CSS for AirDropBox */
:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary-color: #334155;
    --text-color: #1e293b;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --max-width: 1100px;
    --header-height: auto;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1.entry-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

strong {
    font-weight: 600;
    color: var(--secondary-color);
}

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

/* Base Layout Wrapper */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
#branding {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

#top-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

#logo {
    position: absolute;
    top: 1rem;
    left: 2rem;
    z-index: 110;
    display: block;
}

#logo img {
    width: 113px;
    /* Original logo width */
    max-height: none;
    /* remove my previous max-height constraint */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    /* Subtle shadow so it pops over the banner */
    border-radius: 4px;
}

#header-search {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin-left: auto;
    /* Push to right */
}

.social ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.social a {
    display: block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: opacity 0.2s;
}

.social li.tel a {
    background: #e0e1d4 url('../images/icon-tel.png') no-repeat center center;
}

.social li.you a {
    background: #dc0405 url('../images/icon-yt.png') no-repeat center center;
}

.social li.twit a {
    background: #33ccff url('../images/icon-twit.png') no-repeat center center;
}

.social a:hover {
    background-color: var(--primary-color);
    opacity: 0.8;
}

#preheader-links {
    font-size: 0.9rem;
    font-weight: 500;
}

#preheader-links a {
    margin-left: 1rem;
    color: var(--secondary-color);
}

#preheader-links a:hover {
    color: var(--primary-color);
}

/* Nav Desktop */
.desktopnav {
    width: 100%;
    background-color: #f1f5f9;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

#access {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    padding-left: 160px;
    /* Make space for the overlapping logo */
}

#menu-navigation {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

#menu-navigation .menu-item a {
    display: block;
    padding: 1rem 0;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-bottom: 3px solid transparent;
}

#menu-navigation .menu-item a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Mobile Nav - Hidden on Desktop */
.mobilenav {
    display: none;
}

.mobile-banner {
    display: none;
}

/* Banner area */
#topbanner {
    background-color: var(--bg-color);
    width: 100%;
}

.meteor-slides {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 2rem;
    /* Add padding so logo overlap looks right */
}

.mslide img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 0;
    margin-bottom: 2rem;
}

/* Main Layout Structure */
#main {
    width: 100%;
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
    flex: 1;
}

/* Two Column Layout */
body.two-column #primary {
    flex: 1;
    min-width: 0;
}

body.two-column #sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Article Styling */
article {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Image Alignment */
.alignright,
a:has(> img.alignright) {
    float: right;
    margin: 0 0 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.alignleft,
a:has(> img.alignleft) {
    float: left;
    margin: 0 2rem 1.5rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.aligncenter {
    display: block;
    margin: 1.5rem auto;
    border-radius: var(--radius-md);
}

/* Fix specific image float where class was missing in flattened HTML */
article>p>a[href="products.php"]>img[src*="ADB-Mini"] {
    float: right;
    margin: 0 0 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Ensure floats are cleared */
article::after,
.featurebox::after,
.grid-2-col::after {
    content: "";
    display: table;
    clear: both;
}

/* Grid Layouts inside content */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.grid-2-col ul {
    list-style-position: inside;
    padding-left: 0.5rem;
}

.grid-2-col li {
    margin-bottom: 0.75rem;
}

/* Feature Box */
.featurebox {
    background: linear-gradient(to right bottom, #ffffff, #f1f5f9);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin: 2.5rem 0;
    box-shadow: var(--shadow-md);
}

.featurebox h2 {
    color: var(--primary-dark);
    margin-top: 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.featurebox ul {
    list-style-type: none;
    padding: 0;
}

.featurebox li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.featurebox li::before {
    content: "»";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Buttons */
.btn,
.buttonlink {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

.btn:hover,
.buttonlink:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Sidebar Styling */
.sidebar .cta,
#sidebar .cta {
    margin-bottom: 2rem;
    transition: var(--transition);
}

.sidebar .cta:hover,
#sidebar .cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sidebar .cta img,
#sidebar .cta img {
    border-radius: var(--radius-md);
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.sidebar-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.sidebar-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.sidebar-section li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-section .date {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
    margin-top: 0.25rem;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

input[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

input[type="submit"]:hover {
    background-color: var(--primary-dark);
}

/* Footer */
#colophon {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

#colophon a {
    color: #38bdf8;
}

#colophon a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 992px) {
    #main {
        flex-direction: column;
        padding: 0 1.5rem;
    }

    body.two-column #sidebar {
        width: 100%;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .desktopnav {
        display: none;
    }

    .mobilenav {
        display: block;
        background: var(--white);
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
    }

    #nav-toggle {
        font-weight: bold;
        color: var(--primary-color);
        cursor: pointer;
        text-align: center;
        padding: 0.5rem;
        background: var(--bg-color);
        border-radius: var(--radius-md);
    }

    #access2 ul {
        list-style: none;
        padding-top: 1rem;
    }

    #access2 li a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
        color: var(--secondary-color);
        font-weight: 600;
    }

    #top-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    #header-search {
        align-items: center;
    }

    .alignright,
    .alignleft {
        float: none;
        margin: 1rem auto;
        max-width: 100%;
    }

    h1.entry-title {
        font-size: 2rem;
    }

    .meteor-slides {
        display: none;
        /* Often main banners hide or shrink on mobile to specific mobile banners */
    }

    .mobile-banner {
        display: block;
    }

    .mobile-banner img {
        width: 100%;
    }
}

@media (max-width: 480px) {
    article {
        padding: 1.5rem;
    }

    .featurebox {
        padding: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Sub-Page Specifics */

/* Top Banners on inner pages */
#topbanner>a>img:not(.mslide img) {
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: block;
}

/* Products page specific */
img[src*="030a9843"] {
    float: right;
    margin: 1rem 0 1.5rem 2rem !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: none !important;
}

.featurebox>div>p>img,
.featurebox>div>p>a>img {
    float: right;
    margin: 0 0 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}


/* Image links (Galleries) in entry-content */
.entry-content>p:has(> a > img[src*="gallery"]),
.entry-content>p:has(> a > img[src*="media-"]),
.entry-content>p:has(> a > img[src*="YouTube-logo"]) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.entry-content>p>a:has(> img[src*="gallery"]),
.entry-content>p>a:has(> img[src*="media-"]),
.entry-content>p>a:has(> img[src*="YouTube-logo"]) {
    flex: 0 1 calc(33.333% - 1.5rem);
    min-width: 150px;
    display: block;
}

.entry-content>p>a>img[src*="gallery"],
.entry-content>p>a>img[src*="media-"],
.entry-content>p>a>img[src*="YouTube-logo"] {
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.entry-content>p>a:hover>img[src*="gallery"],
.entry-content>p>a:hover>img[src*="media-"],
.entry-content>p>a:hover>img[src*="YouTube-logo"] {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Video Responsive Wrappers */
.youtubevids,
p:has(> iframe) {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.youtubevids iframe,
p>iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Forms generic styles (if applicable to contact page) */
form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}