/* =============================================
   HoneyberryUSA Modern CSS - Subtle Approach
   Maintains familiar look, just cleaner
   ============================================= */

/* CSS Variables - Easy to adjust colors/spacing */
:root {
    /* Colors - keeping your existing blue theme */
    --primary-blue: #4A6F8E;
    --light-blue: #BAD6ED;
    --dark-blue: #3A5F7E;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --text-dark: #333333;
    --text-light: #666666;

    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

/* =============================================
   Base Styles
   ============================================= */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--primary-blue);
    margin: 0;
    padding: 0;
}

/* Remove default margins from common elements */
h1, h2, h3, h4, h5, h6, p, ul, ol {
    margin: 0 0 1em 0;
}

/* Links */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

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

/* =============================================
   Layout Structure (replaces table layout)
   ============================================= */

.site-wrapper {
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--primary-blue);
    padding: 20px;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--white);
    border: 20px solid var(--primary-blue);
    border-radius: 4px;
    overflow: hidden;
}

/* Header */
.site-header {
    background: linear-gradient(to bottom, var(--white) 0%, var(--light-gray) 100%);
    padding: 0;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.header-logo {
    flex-shrink: 0;
}

.header-title {
    flex-shrink: 0;
    max-width: 450px;
}

.header-title img {
    width: 100%;
    height: auto;
}

/* Navigation */
.site-nav {
    background-color: var(--light-blue);
    border-top: 1px solid var(--primary-blue);
    border-bottom: 1px solid var(--primary-blue);
    padding: var(--spacing-sm) var(--spacing-md);
}

/* Main Content Area */
.main-content {
    display: grid;
    grid-template-columns: 261px 1fr;
    gap: 10px;
    padding: 0;
    background-color: var(--white);
}

/* Sidebar */
.sidebar {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-right: 1px solid var(--light-blue);
}

.sidebar img {
    margin-bottom: var(--spacing-sm);
}

.sidebar-content {
    text-align: center;
    font-size: 14px;
}

.sidebar-content a {
    display: inline-block;
    margin: var(--spacing-xs) 0;
}

/* Content Area */
.content-area {
    padding: var(--spacing-md);
    background-color: var(--white);
}

/* Footer */
.site-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-md);
    font-size: 12px;
}

.site-footer a {
    color: var(--white);
}

/* =============================================
   Typography Improvements (subtle)
   ============================================= */

h1 {
    font-size: 2em;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.75em;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5em;
}

h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5em;
}

h4 {
    font-size: 1.25em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5em;
}

/* Better paragraph spacing */
p {
    margin-bottom: 1em;
}

/* Lists */
ul, ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

/* =============================================
   Content Blocks
   ============================================= */

.content-block {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.intro-text {
    font-size: 1.1em;
    line-height: 1.7;
}

/* YouTube embeds */
iframe {
    max-width: 100%;
}

/* =============================================
   Buttons & Links (subtle improvements)
   ============================================= */

.button,
a.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.button:hover,
a.button:hover {
    background-color: var(--dark-blue);
    text-decoration: none;
}

/* =============================================
   Navigation Menu (maintain existing style)
   ============================================= */

#cssmenu {
    /* Will work with existing menu CSS */
    text-align: center;
}

/* =============================================
   Responsive Design (Mobile)
   ============================================= */

@media (max-width: 768px) {
    .site-wrapper {
        padding: 10px;
    }

    .site-container {
        border-width: 10px;
    }

    /* Stack sidebar and content on mobile */
    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--light-blue);
    }

    .content-area {
        padding: var(--spacing-sm);
    }

    /* Reduce header padding on mobile */
    .header-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
    }

    h1 {
        font-size: 1.75em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.25em;
    }
}

/* =============================================
   Utility Classes
   ============================================= */

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

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

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

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }

/* =============================================
   Accessibility Improvements
   ============================================= */

/* Skip to content link (for screen readers) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus indicators */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* =============================================
   Print Styles
   ============================================= */

@media print {
    .site-nav,
    .sidebar,
    .site-footer {
        display: none;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    a {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: var(--text-light);
    }
}

/* =============================================
   Legacy Support (maintain compatibility)
   ============================================= */

/* Support old font tags (will phase out) */
font[face="Arial"] {
    font-family: var(--font-family);
}

font[size="2"] {
    font-size: 14px;
}

/* Support old center tags */
center {
    text-align: center;
}

/* Maintain old table styling for content tables (not layout) */
table {
    border-collapse: collapse;
    width: 100%;
}

table td,
table th {
    padding: 8px;
    text-align: left;
}

/* =============================================
   Facebook/Social Media Embeds
   ============================================= */

.fb-like {
    display: inline-block;
    margin: var(--spacing-sm) 0;
}

#fb-root {
    display: block;
}
