/* ============================================================
   GLOBAL STYLES - Polyphronetic Block Theme
   ============================================================ */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #E5E0F0;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Site logo + title */
.wp-block-site-logo img { width: 52px; height: 52px; object-fit: contain; }
.wp-block-site-title a {
    font-family: 'Tilt Neon', system-ui, sans-serif !important;
    font-size: 1.35rem !important;
    color: #6C3BAA !important;
    text-decoration: none !important;
}

/* ============================================================
   NAVIGATION + DROPDOWN
   ============================================================ */
.wp-block-navigation > ul,
.wp-block-navigation__container {
    display: flex !important;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-block-navigation-item__content {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6C3BAA;
    text-decoration: none;
    padding: 0;
}

.wp-block-navigation-item__content:hover { opacity: 0.7; }

.wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
    border-bottom: 2px solid #6C3BAA;
}

/* Dropdown */
.wp-block-navigation-item {
    position: relative;
}

.wp-block-navigation-item .wp-block-navigation__submenu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #E5E0F0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 8px 0;
    z-index: 200;
    list-style: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

.wp-block-navigation-item:hover > .wp-block-navigation__submenu-container {
    display: flex;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    display: block;
    padding: 10px 18px;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    color: #454A5D;
    white-space: nowrap;
    border-bottom: none;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
    background: #F8F7FC;
    color: #6C3BAA;
}

/* Hide submenu toggle arrow */
.wp-block-navigation__submenu-icon { display: none; }

/* CTA button */
.btn-cta .wp-block-button__link {
    background: #E8503A !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 10px 22px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.2s;
}

.btn-cta .wp-block-button__link:hover {
    background: #C63D27 !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1E1B4B;
    color: rgba(255,255,255,0.75);
    padding: 40px 24px;
    text-align: center;
}

.site-footer p { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin: 0; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: underline; }
.site-footer a:hover { color: #ffffff; }

/* ============================================================
   POST CARDS (archive)
   ============================================================ */
.post-card {
    border: 1px solid #E5E0F0;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #ffffff;
}

.post-card:hover {
    box-shadow: 0 8px 32px rgba(108,59,170,0.1);
    transform: translateY(-4px);
}

.post-card .wp-block-post-title a {
    color: #6C3BAA;
    text-decoration: none;
}

.post-card .wp-block-post-title a:hover { text-decoration: underline; }

/* ============================================================
   BUTTONS
   ============================================================ */
.wp-block-button__link {
    transition: all 0.2s;
}

.wp-block-button__link:hover {
    transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .site-header { height: auto; padding: 16px 24px; }
    .header-inner { flex-wrap: wrap; gap: 16px; }

    .wp-block-navigation > ul,
    .wp-block-navigation__container {
        gap: 16px;
    }

    .wp-block-post-template.is-flex-container.is-flex-container.columns-3 {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #454A5D;
    font-family: 'Hanken Grotesk', sans-serif;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 1rem;
    color: #454A5D;
    background: #ffffff;
    border: 1.5px solid #E5E0F0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6C3BAA;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* ============================================================
   HIDE PAGE TITLE ON FRONT PAGE
   ============================================================ */
.home .wp-block-post-title,
.page-template-home .wp-block-post-title {
    display: none;
}

/* ============================================================
   HOME PAGE HERO IMAGE FALLBACK
   ============================================================ */
.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #EDE8F7;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6C3BAA;
    font-size: 0.9rem;
}
