/* ==========================================================================
   STATIC PAGES STYLES - Privacy Policy, Terms of Service, FAQ, About Us
   ========================================================================== */

/* CSS Variables */
:root {
    --static-primary: #ffbe4d;
    --static-primary-hover: #ffa726;
    --static-bg: #0a0a0b;
    --static-bg-card: #1a1a1b;
    --static-bg-card-hover: #2a2a2b;
    --static-text: #ffffff;
    --static-text-muted: rgba(255, 255, 255, 0.7);
    --static-text-dim: rgba(255, 255, 255, 0.5);
    --static-border: rgba(255, 255, 255, 0.1);
    --static-shadow: rgba(0, 0, 0, 0.3);
}

/* Light Mode Variables */
body:not(.dark-mode) {
    --static-bg: #f5f5f5;
    --static-bg-card: #ffffff;
    --static-bg-card-hover: #fafafa;
    --static-text: #1a1a1b;
    --static-text-muted: #666666;
    --static-text-dim: #888888;
    --static-border: rgba(0, 0, 0, 0.1);
    --static-shadow: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

.static-page {
    min-height: 100vh;
    background: var(--static-bg);
    color: var(--static-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.wod-static-page {
    position: relative;
    min-height: 100vh;
    padding: 100px 20px 60px;
    overflow: hidden;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.static-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.static-logo {
    display: inline-block;
    margin-bottom: 24px;
}

.static-logo img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--static-shadow);
}

.static-header h1 {
    font-family: 'Rubik', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 12px 0;
    /* color: var(--static-text-muted); */
}

.static-header p {
    font-size: 18px;
    color: var(--static-text-dim);
    margin: 0;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.static-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.static-card {
    background: var(--static-bg-card);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--static-border);
    box-shadow: 0 4px 20px var(--static-shadow);
    transition: all 0.3s ease;
}

.static-card:hover {
    border-color: var(--static-primary);
    box-shadow: 0 8px 30px var(--static-shadow);
}

.static-card h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--static-primary);
    margin: 0 0 16px 0;
}

.static-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--static-text);
    margin: 24px 0 12px 0;
}

.static-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--static-text);
    margin: 16px 0 8px 0;
}

.static-card p {
    color: var(--static-text-muted);
    margin: 0 0 16px 0;
}

.static-card p:last-child {
    margin-bottom: 0;
}

.static-card ul,
.static-card ol {
    color: var(--static-text-muted);
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.static-card li {
    margin-bottom: 8px;
}

.static-card li:last-child {
    margin-bottom: 0;
}

.static-card strong {
    color: var(--static-text);
    font-weight: 600;
}

.static-card a {
    /* color: var(--static-primary); */
    text-decoration: none;
    transition: color 0.3s ease;
}

.static-card a:hover {
    /* color: var(--static-primary-hover); */
    /* text-decoration: underline; */
}

/* ==========================================================================
   FEATURE GRID (About Page)
   ========================================================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.feature-item {
    background: var(--static-bg-card-hover);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--static-border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--static-primary);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--static-primary) 0%, var(--static-primary-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #040405;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--static-text);
    margin: 0 0 8px 0;
}

.feature-item p {
    font-size: 14px;
    color: var(--static-text-muted);
    margin: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--static-primary) 0%, var(--static-primary-hover) 100%);
    color: #040405;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 190, 77, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 190, 77, 0.4);
}

.btn-text {
    display: inline-block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.static-footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--static-border);
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--static-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--static-primary);
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* ==========================================================================
   BACKGROUND DECORATION
   ========================================================================== */

.static-bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bg-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.bg-gradient-1 {
    width: 600px;
    height: 600px;
    background: var(--static-primary);
    top: -200px;
    right: -200px;
}

.bg-gradient-2 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: -100px;
    left: -100px;
}

.bg-gradient-3 {
    width: 300px;
    height: 300px;
    background: #10b981;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

body:not(.dark-mode) .bg-gradient {
    opacity: 0.08;
}

/* ==========================================================================
   FAQ ACCORDION STYLES (WordPress Blocks & Custom)
   ========================================================================== */

/* WordPress FAQ Block Styles */
.wp-block-details,
.faq-item,
.accordion-item {
    background: var(--static-bg-card) !important;
    border: 1px solid var(--static-border) !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wp-block-details:hover,
.faq-item:hover,
.accordion-item:hover {
    border-color: var(--static-primary) !important;
}

.wp-block-details summary,
.faq-question,
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px !important;
    background: transparent !important;
    color: var(--static-text) !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    border: none !important;
    transition: all 0.3s ease;
}

.wp-block-details summary::-webkit-details-marker {
    display: none;
}

.wp-block-details summary::marker {
    display: none;
    content: '';
}

/* FAQ Expand/Collapse Icon */
.wp-block-details summary::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

body:not(.dark-mode) .wp-block-details summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a1a1b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.wp-block-details[open] summary::after {
    transform: rotate(180deg);
}

.wp-block-details summary:hover::after,
.wp-block-details[open] summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffbe4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.wp-block-details summary:hover,
.faq-question:hover,
.accordion-header:hover {
    color: var(--static-primary) !important;
}

.wp-block-details[open] summary,
.faq-item.active .faq-question,
.accordion-item.active .accordion-header {
    color: var(--static-primary) !important;
    border-bottom: 1px solid var(--static-border) !important;
}

.wp-block-details>*:not(summary),
.faq-answer,
.accordion-content {
    padding: 20px 24px !important;
    color: var(--static-text-muted) !important;
    background: transparent !important;
    line-height: 1.7;
}

/* FAQ Details Inner Content */
.wp-block-details p,
.wp-block-details ul,
.wp-block-details ol {
    color: var(--static-text-muted) !important;
    margin: 0 0 12px 0;
}

.wp-block-details p:last-child,
.wp-block-details ul:last-child,
.wp-block-details ol:last-child {
    margin-bottom: 0;
}

.wp-block-details ul,
.wp-block-details ol {
    padding-left: 20px;
}

.wp-block-details li {
    margin-bottom: 8px;
}

.wp-block-details li:last-child {
    margin-bottom: 0;
}

.wp-block-details strong {
    color: var(--static-text);
    font-weight: 600;
}

.wp-block-details a {
    color: var(--static-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.wp-block-details a:hover {
    color: var(--static-primary-hover);
    text-decoration: underline;
}

/* FAQ Section Headers */
.faq-section,
.wp-block-group {
    margin-bottom: 32px;
}

.faq-section-title,
.wp-block-heading {
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--static-primary) !important;
    margin: 0 0 16px 0 !important;
    padding-left: 4px;
}

/* FAQ Container Styling */
.faq-container,
.wp-block-group__inner-container {
    background: var(--static-bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--static-border);
    margin-bottom: 24px;
}

/* ==========================================================================
   WORDPRESS BLOCK OVERRIDES FOR LIGHT MODE
   ========================================================================== */

/* General block text colors */
body:not(.dark-mode) .wp-block-details,
body:not(.dark-mode) .wp-block-group,
body:not(.dark-mode) .wp-block-paragraph,
body:not(.dark-mode) .wp-block-heading,
body:not(.dark-mode) .wp-block-list {
    color: var(--static-text-muted) !important;
}

body:not(.dark-mode) .wp-block-details summary {
    color: var(--static-text) !important;
}

body:not(.dark-mode) .wp-block-details[open] summary {
    color: var(--static-primary) !important;
}

/* Entry content area */
body:not(.dark-mode) .entry-content,
body:not(.dark-mode) .page-content,
body:not(.dark-mode) .post-content {
    color: var(--static-text-muted);
}

body:not(.dark-mode) .entry-content h1,
body:not(.dark-mode) .entry-content h2,
body:not(.dark-mode) .entry-content h3,
body:not(.dark-mode) .entry-content h4,
body:not(.dark-mode) .entry-content h5,
body:not(.dark-mode) .entry-content h6 {
    color: var(--static-text);
}

/* ==========================================================================
   PAGE SPECIFIC STYLES - FAQ PAGE
   ========================================================================== */

.page-template-default.page,
.frequently-asked-questions,
.faq-page {
    background: var(--static-bg) !important;
}

/* FAQ page hero section */
.faq-hero,
.page-header {
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
    z-index: 1;
}

.faq-hero-icon {
    width: 64px;
    height: 64px;
    background: var(--static-bg-card);
    border: 2px solid var(--static-primary);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--static-primary);
}

.faq-hero h1,
.page-title {
    font-family: 'Rubik', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--static-text-muted) !important;
    margin: 0 0 12px 0;
}

.faq-hero p,
.page-description {
    font-size: 18px;
    color: var(--static-text-dim);
    margin: 0;
}

/* ==========================================================================
   GUTENBERG BLOCK FIXES
   ========================================================================== */

/* Reset WordPress block backgrounds for theme consistency */
.has-background {
    background-color: var(--static-bg-card) !important;
}

.has-white-background-color,
.has-pale-cyan-blue-background-color,
.has-light-gray-background-color {
    background-color: var(--static-bg-card) !important;
}

/* Text color fixes */
.has-text-color {
    color: var(--static-text-muted) !important;
}

/* Dark colored text should stay visible in dark mode */
body.dark-mode .has-black-color,
body.dark-mode .has-dark-gray-color {
    color: var(--static-text) !important;
}

/* ==========================================================================
   INPUT FIELDS (Contact Page)
   ========================================================================== */

.static-page input[type="text"],
.static-page input[type="email"],
.static-page input[type="tel"],
.static-page textarea,
.static-page select {
    width: 100%;
    padding: 14px 16px;
    background: var(--static-bg-card-hover);
    border: 1px solid var(--static-border);
    border-radius: 12px;
    color: var(--static-text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.static-page input[type="text"]:focus,
.static-page input[type="email"]:focus,
.static-page input[type="tel"]:focus,
.static-page textarea:focus,
.static-page select:focus {
    outline: none;
    border-color: var(--static-primary);
    box-shadow: 0 0 0 3px rgba(255, 190, 77, 0.15);
}

.static-page input[type="text"]::placeholder,
.static-page input[type="email"]::placeholder,
.static-page textarea::placeholder {
    color: var(--static-text-dim);
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 768px) {
    .wod-static-page {
        padding: 80px 16px 40px;
    }

    .static-header h1 {
        font-size: 32px;
    }

    .static-header p {
        font-size: 16px;
    }

    .static-card {
        padding: 24px 20px;
    }

    .static-card h2 {
        font-size: 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .wp-block-details summary,
    .faq-question,
    .accordion-header {
        padding: 14px 18px !important;
        font-size: 15px;
    }

    .wp-block-details>*:not(summary),
    .faq-answer,
    .accordion-content {
        padding: 16px 18px !important;
    }

    .faq-hero h1,
    .page-title {
        font-size: 32px;
    }

    .faq-container,
    .wp-block-group__inner-container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .wod-static-page {
        padding: 70px 12px 30px;
    }

    .static-header h1 {
        font-size: 28px;
    }

    .static-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .static-card h2 {
        font-size: 18px;
    }

    .static-card h3 {
        font-size: 16px;
    }

    .btn-submit {
        width: 100%;
        padding: 14px 24px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {

    .static-bg-decoration,
    .static-footer,
    .nav-menu {
        display: none !important;
    }

    .wod-static-page {
        padding: 20px;
    }

    .static-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}