/**
 * SurveyMethods Header/Footer Styles
 * Modern styling matching the new Astro website (surveymethods.com)
 * Use this CSS file for legacy pages that need consistent header/footer
 */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Base styles */
.sm-page-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.sm-page-wrapper a {
    color: #002960;
    text-decoration: none;
}

.sm-page-wrapper a:hover {
    text-decoration: underline;
}

/* Header Styles */
.sm-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sm-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.sm-logo img {
    height: 40px;
    width: auto;
}

.sm-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.sm-nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-nav-links li {
    position: relative;
}

.sm-nav-links > li > a,
.sm-nav-links > li > .sm-dropdown-toggle {
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.sm-nav-links > li > a:hover,
.sm-nav-links > li > .sm-dropdown-toggle:hover {
    color: #002960;
    text-decoration: none;
}

.sm-dropdown {
    position: relative;
}

.sm-dropdown-toggle::after {
    content: '';
    border: solid #6b7280;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2px;
    transform: rotate(45deg);
    margin-top: -2px;
}

.sm-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 8px 0;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.sm-dropdown:hover .sm-dropdown-menu {
    display: block;
}

.sm-dropdown-menu li {
    margin: 0;
}

.sm-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #374151;
    font-size: 14px;
}

.sm-dropdown-menu a:hover {
    background: #f3f4f6;
    color: #002960;
    text-decoration: none;
}

.sm-nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-btn-signin {
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
}

.sm-btn-signin:hover {
    color: #002960;
    text-decoration: none;
}

.sm-btn-primary {
    background: #002960;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.2s;
    display: inline-block;
}

.sm-btn-primary:hover {
    background: #001d45;
    text-decoration: none;
}

/* Mobile menu button */
.sm-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.sm-mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #374151;
    margin: 5px 0;
    transition: 0.3s;
}

/* Main Content Area */
.sm-main {
    flex: 1;
    padding: 40px 24px;
}

.sm-main-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Styles */
.sm-footer {
    background: #111827;
    color: #9ca3af;
    padding: 48px 24px 24px;
    margin-top: auto;
}

.sm-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sm-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.sm-footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
}

.sm-footer-brand img {
    height: 36px;
}

.sm-footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.sm-footer-social a {
    color: #9ca3af;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-footer-social a:hover {
    color: #fff;
    text-decoration: none;
}

.sm-footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sm-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-footer-col li {
    margin-bottom: 10px;
}

.sm-footer-col a {
    color: #9ca3af;
    font-size: 14px;
}

.sm-footer-col a:hover {
    color: #fff;
}

.sm-footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sm-footer-copyright {
    font-size: 14px;
    margin: 0;
}

.sm-footer-legal {
    display: flex;
    gap: 24px;
}

.sm-footer-legal a {
    color: #9ca3af;
    font-size: 14px;
}

.sm-footer-legal a:hover {
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .sm-nav-links {
        display: none;
    }
    .sm-mobile-menu-btn {
        display: block;
    }
    .sm-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .sm-header-container {
        height: 60px;
    }
    .sm-nav-buttons .sm-btn-signin {
        display: none;
    }
    .sm-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .sm-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .sm-main {
        padding: 24px 16px;
    }
}

/* Utility Classes */
.sm-text-center {
    text-align: center;
}

.sm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
