/* ================================
   FAQ Page Styles - OPTIMIZED FOR 100% ZOOM
   File: faq-page.css
   Comprehensive FAQ page with accordion sections
   Matching Service Page Accordion Style
   ================================ */

/* ================================
   Variables (Brand Consistent)
   ================================ */
.faq-page-wrapper {
    --color-blue-gray: #2B4150;
    --color-dark-teal: #207C7E;
    --color-bright-teal: #5CC2CF;
    --color-primary-blue: #1D95D1;
    --color-primary-green: #6EB510;
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --color-text-dark: #333333;
    --color-text-medium: #666666;
    --color-border: rgba(43, 65, 80, 0.1);
    
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
    --spacing-xxl: 100px;
    
    --container-max: 1200px;
    --container-padding: 40px;
    
    --font-primary: 'Urbanist', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* UPDATED FOR 100% ZOOM */
    --h1-size: 52px;
    --h1-size-mobile: 40px;
    --h2-size: 36px;
    --h2-size-mobile: 28px;
    --h3-size: 24px;
    --body-size: 16px;
}

/* ================================
   Page Wrapper
   ================================ */
.faq-page-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.faq-page-wrapper .container {
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (min-width: 769px) {
    .faq-page-wrapper .container {
        padding: 0 var(--container-padding);
    }
}

/* ================================
   FAQ Hero Section - WITH ANIMATIONS & LEFT ALIGNED
   ================================ */
.faq-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
    background: radial-gradient(ellipse at 20% 30%, #2B4150 0%, #2B4150 25%, #207C7E 55%, #1D95D1 100%) !important;
}

.faq-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* SVG Pattern - UPDATED SIZE AND POSITIONING */
.faq-hero-pattern {
    position: absolute;
    top: -3%;
    left: 40%;
    right: -10%;
    bottom: -3%;
    overflow: hidden;
    background-image: url('https://arrowheadprstg.wpengine.com/wp-content/uploads/2026/01/subelement.svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 750px;
    opacity: 1;
    z-index: 2;
}

.faq-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 769px) {
    .faq-hero .container {
        padding: 0 var(--container-padding);
    }
}

.faq-hero-content {
    max-width: 750px;
    text-align: left;
    margin: 0;
}

/* 18px Label - Primary Green - REDUCED SIZE */
.faq-hero-label {
    color: #6EB510;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

/* Hero Title - REDUCED SIZE */
.faq-hero-title {
    color: #FFFFFF;
    font-family: 'Urbanist', sans-serif;
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 20px 0;
    max-width: 650px;
    animation: fadeInTyping 1.2s ease-out;
}

/* Typing animation effect */
@keyframes fadeInTyping {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Description - REDUCED SIZE */
.faq-hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ================================
   RESPONSIVE HERO PATTERN
   ================================ */

/* Small to Medium Desktop (1000px - 1400px) - Move pattern further right */
@media (min-width: 1000px) and (max-width: 1400px) {
    .faq-hero-pattern {
        left: 45% !important;
        right: -12% !important;
        background-position: 100% center !important;
    }
}

/* Hide SVG pattern on screens less than 1000px */
@media (max-width: 999px) {
    .faq-hero-pattern {
        display: none !important;
    }
    
    /* Ensure all pseudo-elements are hidden */
    .faq-hero-pattern::before,
    .faq-hero-pattern::after,
    .faq-hero-background::before {
        display: none !important;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .faq-hero-title {
        font-size: 42px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .faq-hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .faq-hero-label {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .faq-hero-title {
        font-size: 40px;
    }
    
    .faq-hero-description {
        font-size: 16px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .faq-hero-title {
        font-size: 40px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .faq-hero-label,
    .faq-hero-title,
    .faq-hero-description {
        animation: none;
    }
}

/* ================================
   Back to Top Button - REDUCED SIZE
   ================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: #5CC2CF;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #6EB510;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.back-to-top:focus {
    outline: 3px solid #6EB510;
    outline-offset: 2px;
}

/* Back to Top Icon - REDUCED SIZE */
.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ================================
   Table of Contents Section
   ================================ */
.faq-toc-section {
    padding: var(--spacing-xxl) 0;
    background: #FFFFFF;
}

/* TOC Title - REDUCED SIZE */
.faq-toc-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 28px !important;
    font-weight: 900;
    color: #2B4150;
    text-align: left;
    margin: 0 0 var(--spacing-xl) 0;
    line-height: 1.2;
}

.faq-toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* TOC Card - REDUCED PADDING */
.faq-toc-card {
    background: #F5F5F5;
    padding: 32px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
}

.faq-toc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: #5CC2CF;
    background: #FFFFFF;
}

/* TOC Icon - REDUCED SIZE */
.faq-toc-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    object-fit: contain;
}

.faq-toc-icon-placeholder {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    color: #5CC2CF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-toc-icon-placeholder svg {
    width: 54px;
    height: 54px;
}

/* TOC Card Title - REDUCED SIZE */
.faq-toc-card-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2B4150;
    margin: 0 0 14px 0;
}

.faq-toc-card-count {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666666;
    margin: 0 0 20px 0;
}

.faq-toc-card-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1D95D1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
}

.faq-toc-card-link::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 12px;
    margin-left: 10px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='12' viewBox='0 0 20 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 1L19 6M19 6L14 11M19 6H1' stroke='%231d95d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.faq-toc-card:hover .faq-toc-card-link {
    color: #5CC2CF;
}

.faq-toc-card:hover .faq-toc-card-link::after {
    transform: translateX(5px);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='12' viewBox='0 0 20 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 1L19 6M19 6L14 11M19 6H1' stroke='%235CC2CF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ================================
   FAQ Content Sections
   ================================ */
.faq-content-section {
    padding: var(--spacing-xxl) 0;
    background: #FAFAFA;
}

.faq-section {
    margin-bottom: var(--spacing-xl);
    scroll-margin-top: 100px;
}

.faq-section:last-child {
    margin-bottom: 0;
}

.faq-section-header {
    text-align: left;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 3px solid #5CC2CF;
}

/* Section Title - REDUCED SIZE */
.faq-section-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #2B4150;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* Section Description - REDUCED SIZE */
.faq-section-description {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #666666;
    margin: 0;
    max-width: 700px;
}

/* ================================
   FAQ Accordion - MATCHING SERVICE PAGE STYLE
   ================================ */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(92, 194, 207, 0.15);
}

/* FAQ Question Button - REDUCED PADDING */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(92, 194, 207, 0.05);
}

.faq-question.active {
    background-color: rgba(92, 194, 207, 0.1);
}

/* FAQ Question Text - REDUCED SIZE */
.faq-question-text {
    color: #2B4150;
    font-family: 'Urbanist', sans-serif;
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    line-height: 1.4;
    margin: 0;
}

/* Icon container - chevron/caret only */
.faq-icon {
    color: #5CC2CF;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

/* Hide plus/minus icon elements if they exist */
.faq-icon-horizontal,
.faq-icon-vertical {
    display: none;
}

/* Show only chevron SVG */
.faq-icon svg {
    width: 20px;
    height: 20px;
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

/* Add teal line above answer content - matching service page - REDUCED PADDING */
.faq-answer-content {
    padding: 20px 32px 60px;
    color: #2B4150;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    border-top: 3px solid #5CC2CF;
}

.faq-answer-content p {
    margin: 0 0 20px 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 20px 0;
    padding-left: var(--spacing-lg);
}

.faq-answer-content li {
    margin-bottom: var(--spacing-sm);
}

/* Remove underlines from links - matching service page */
.faq-answer-content a {
    color: #1D95D1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-answer-content a:hover {
    color: #6EB510;
}

.faq-answer-content strong {
    color: #2B4150;
    font-weight: 700;
}

.faq-answer-content em {
    font-style: italic;
}

.faq-answer-content h3,
.faq-answer-content h4 {
    font-family: 'Urbanist', sans-serif;
    color: #2B4150;
    font-weight: 700;
    margin: 20px 0 14px 0;
}

/* FAQ Answer H3/H4 - REDUCED SIZE */
.faq-answer-content h3 {
    font-size: 18px;
}

.faq-answer-content h4 {
    font-size: 16px;
}

/* ================================
   FAQ CTA Section
   ================================ */
.faq-cta-section {
    background: linear-gradient(135deg, #2B4150 0%, #207C7E 100%);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.faq-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

/* CTA Title - REDUCED SIZE */
.faq-cta-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* CTA Description - REDUCED SIZE */
.faq-cta-description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 var(--spacing-lg) 0;
    line-height: 1.6;
}

/* CTA Button - REDUCED SIZE */
.btn-faq-cta {
    display: inline-block;
    background: #5CC2CF;
    color: #FFFFFF;
    padding: 16px 42px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-faq-cta:hover {
    background: #6EB510;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    color: #FFFFFF;
}

/* ================================
   Utility Classes
   ================================ */
.faq-page-wrapper [hidden] {
    display: none !important;
}

/* ================================
   Responsive Design
   ================================ */
@media screen and (max-width: 968px) {
    .faq-page-wrapper {
        --h1-size: 40px;
        --h2-size: 32px;
    }
    
    .faq-hero {
        padding: var(--spacing-xxl) 0 var(--spacing-xl);
    }
    
    .faq-hero-description {
        font-size: 16px;
    }
    
    .faq-cta-title {
        font-size: 32px;
    }
    
    .faq-toc-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media screen and (max-width: 768px) {
    .faq-page-wrapper {
        --h1-size: var(--h1-size-mobile);
        --h2-size: var(--h2-size-mobile);
        --spacing-xl: 80px;
        --spacing-lg: 32px;
    }
    
    .faq-hero {
        padding: var(--spacing-xl) 0;
    }
    
    .faq-hero-description {
        font-size: 16px;
    }
    
    .faq-toc-section {
        padding: var(--spacing-lg) 0;
    }
    
    .faq-toc-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .faq-toc-card {
        padding: 20px;
    }
    
    .faq-content-section {
        padding: var(--spacing-lg) 0;
    }
    
    .faq-section {
        margin-bottom: var(--spacing-lg);
    }
    
    .faq-section-header {
        margin-bottom: var(--spacing-lg);
        padding-bottom: 20px;
    }
    
    .faq-section-title {
        font-size: 28px;
    }
    
    .faq-section-description {
        font-size: 16px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question-text {
        font-size: 16px;
    }
    
    .faq-icon {
        width: 20px;
        height: 20px;
    }
    
    .faq-answer-content {
        padding: 20px 20px 40px;
        font-size: 16px;
    }
    
    .faq-cta-section {
        padding: var(--spacing-lg) 0;
    }
    
    .faq-cta-title {
        font-size: 28px;
    }
    
    .faq-cta-description {
        font-size: 16px;
    }
    
    .btn-faq-cta {
        width: 100%;
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

@media screen and (max-width: 480px) {
    .faq-hero-title {
        font-size: 40px;
    }
    
    .faq-toc-icon,
    .faq-toc-icon-placeholder {
        width: 44px;
        height: 44px;
    }
    
    .faq-toc-card-title {
        font-size: 18px;
    }
    
    .faq-section-title {
        font-size: 24px;
    }
    
    .faq-question-text {
        font-size: 15px;
    }
    
    .faq-answer-content {
        font-size: 15px;
    }
    
    .faq-cta-title {
        font-size: 24px;
    }
}

/* ================================
   Print Styles
   ================================ */
@media print {
    .faq-hero,
    .faq-toc-section,
    .faq-cta-section,
    .back-to-top {
        display: none;
    }
    
    .faq-question {
        background: transparent !important;
        page-break-inside: avoid;
    }
    
    .faq-answer {
        max-height: none !important;
        page-break-inside: avoid;
    }
    
    .faq-item {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 16px;
        page-break-inside: avoid;
    }
}

/* ================================
   Accessibility Enhancements
   ================================ */
.faq-question:focus {
    outline: 3px solid #5CC2CF;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .faq-page-wrapper *,
    .back-to-top {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}