/* WordPress Specific Overrides to Match Static HTML */

/* Remove WordPress default margins and paddings */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure sections have proper spacing */
section {
    position: relative;
}

/* Fix WordPress image responsive issues */
img {
    max-width: 100%;
    height: auto;
}

/* Remove WordPress list styles that might interfere */
ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Ensure links don't have WordPress default underlines */
a {
    text-decoration: none;
}

/* Remove WordPress paragraph margins that might interfere */
p:last-child {
    margin-bottom: 0;
}

/* Fix WordPress form styling */
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

/* Remove any WordPress admin bar space */
html {
    margin-top: 0 !important;
}

/* Ensure proper box-sizing for all WordPress elements */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Fix WordPress menu styling */
.menu, .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Remove WordPress block editor styles */
.wp-block-group,
.wp-block-columns,
.wp-block-column {
    margin: 0;
    padding: 0;
}

/* Ensure WordPress doesn't add extra spacing to containers */
.site-content,
.content-area,
.site-main {
    margin: 0;
    padding: 0;
}

/* Reset WordPress heading margins */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0;
}

/* Fix any potential WordPress float issues */
.clear::after,
.entry-content::after,
.comment-content::after,
.site-header::after,
.site-content::after,
.site-footer::after {
    content: "";
    display: table;
    clear: both;
}

/* Ensure sections maintain proper spacing */
section + section {
    margin-top: 0;
}

/* Fix hero section specific spacing */
.hero {
    margin-top: 0;
    padding-top: calc(var(--header-height) + 2rem);
}

/* Ensure trust section follows hero properly */
.hero + .trust-section {
    margin-top: 0;
}

/* Fix any WordPress-added spacing between sections */
body > section,
main > section,
.home-page section {
    margin: 0;
}

/* Ensure proper section padding matches static version */
section[class*="-section"] {
    padding: 4rem 0;
}

/* Fix container spacing to match static version */
.container {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Remove any WordPress post/page spacing */
.post, .page, .type-page {
    margin: 0;
    padding: 0;
}

/* Fix header spacing and styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 300ms ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Fix logo wrapper */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1a1d24;
    margin: 0;
    line-height: 1;
}

.logo-accent {
    color: #00b28a;
}

.logo-tagline {
    font-size: 0.65rem;
    color: #9ca3af;
    font-family: 'Space Mono', 'Courier New', monospace;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

/* Fix main nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
}

.nav-link {
    color: #4b5563;
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    transition: color 150ms ease;
    padding: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00b28a;
    transition: width 300ms ease;
}

.nav-link:hover {
    color: #1a1d24;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, #009670 0%, #00b28a 100%);
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 300ms ease;
    box-shadow: 0 2px 8px rgba(0, 178, 138, 0.25);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 178, 138, 0.3);
    color: #ffffff !important;
}

.nav-cta::after {
    display: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1d24;
    transition: transform 300ms ease;
}

/* Adjust body padding for fixed header */
body {
    padding-top: 0;
}

/* Fix header height variable */
:root {
    --header-height: 80px;
}

/* Footer specific fixes */
.footer {
    margin-top: 0;
    clear: both;
}

/* Ensure footer social links display properly */
.footer .social-links {
    display: flex;
    gap: 1rem;
}

/* Fix footer grid layout */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 4rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

/* Ensure footer lists have proper styling */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 1rem;
}

/* Fix footer bottom styling */
.footer-bottom {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.footer-bottom p {
    margin: 0 0 0.5rem 0;
}

/* Ensure proper footer background */
.footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* Fix any WordPress menu issues in footer */
.footer .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Responsive header fixes */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Ensure header doesn't have WordPress admin bar spacing */
html.admin-bar .header {
    top: 0 !important;
}

/* Remove any WordPress-added header margins */
.header h1, .header h2, .header h3 {
    margin: 0;
}