/*
Theme Name: Woodwise
Author: Matthew Wood
Author URI: https://woodwisemedia.com
Description: A minimal, barebones WordPress theme optimized for SaaS plugins. Contains only essential files with no unnecessary bloat.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: woodwise
Tags: minimal, lightweight, saas, plugin-ready

This theme is designed to be a lightweight foundation for SaaS applications
where a plugin handles most of the front-end functionality.
*/

/* Self-hosted fonts — served from 'self', compatible with font-src 'self' CSP */
@font-face {
    font-family: 'Outfit';
    src: url('Fonts/Outfit/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Serif Display';
    src: url('Fonts/DM_Serif_Display/DMSerifDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Serif Display';
    src: url('Fonts/DM_Serif_Display/DMSerifDisplay-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* CSS Variables */
:root {
    --ink: #1a1a1a;
    --cream: #f7f9fb;
    --warm: #e4edf2;
    --accent: #2e7a9b;
    --accent-light: #3a8fb3;
    --accent-glow: #6bb0cc;
    --rust: #c4703f;
    --muted: #5f6b73;
    --white: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--ink);
    overflow-x: hidden;
}

/* NAV */
nav {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    padding: 1.2rem 2rem;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: #f7f9fb !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    transition: all 0.3s;
}

/* Prevent theme nav styles from bleeding into custom EJD header/footer nav */
.ejd-header nav,
.ejd-footer nav {
    position: static !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
    width: auto !important;
    z-index: auto !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition: none !important;
}

.admin-bar nav {
    top: 32px !important;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 101;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-links { display: flex; gap: 2rem; align-items: center; }

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-dropdown { position: relative; padding-bottom: 0.5rem; margin-bottom: -0.5rem; }
.nav-dropdown-trigger { cursor: pointer; }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: -1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 0.5rem 0;
    min-width: 240px;
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.65rem 1.4rem;
    font-size: 0.88rem;
    color: var(--muted);
    transition: all 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--warm); color: var(--ink); }

.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-light) !important; }

/* HAMBURGER */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 101;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* FOOTER */
.site-footer {
    background: var(--ink) !important;
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.85rem;
}

.site-footer a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover { color: var(--white) !important; }

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-col a {
    display: block;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.footer-logo { margin-bottom: 1rem; }

.footer-logo img {
    height: 30px;
    width: auto;
    opacity: 0.85;
}

.footer-email { margin-top: 1rem; }

.footer-email a {
    color: var(--accent-glow);
    font-weight: 500;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }

    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        z-index: 100;
        padding-top: 5rem;
        overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    nav.menu-open {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: var(--cream);
        border-bottom: none;
    }
    .nav-links a { font-size: 1.15rem; }
    .nav-links .nav-cta {
        margin-top: 0.5rem;
        padding: 0.8rem 2rem;
        border-radius: 8px;
        font-size: 1.05rem;
    }
    .nav-dropdown { text-align: center; }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        display: block;
        min-width: auto;
        padding: 0;
        text-align: center;
    }
    .nav-dropdown-menu::before { display: none; }
    .nav-dropdown-menu a { padding: 0.4rem 0; font-size: 1rem; }
}

@media (max-width: 600px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* Full-width page wrapper with sticky footer */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.site-wrapper .content-area {
    flex: 1;
}

/* Constrained container for content */
.site-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Basic content styling */
.content-area {
    padding: 0;
}

/* Block alignment: wide and full width */
.alignwide {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100vw;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Hide WPForms honeypot anti-spam field */
.wpforms-field-hp,
div.wpforms-field-hp,
.wpforms-field-hp input {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    height: 1px !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Utility classes */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}