/* =====================================================
   page-components.css
   Shared, theme-aware component library for all pages.
   All colors reference CSS vars from header.php so
   both Bright Coastal (light) and Dark Glassmorphism
   modes render with full legibility.
   ===================================================== */

/* @keyframes used by hero background */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ─── SERVICE-HERO ─── */
.service-hero {
    position: relative;
    padding: 180px 5% 100px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--bg-color), transparent 20%) 0%,
        var(--bg-color) 100%);
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle,
        color-mix(in srgb, var(--accent-primary), transparent 85%) 0%,
        transparent 60%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

.service-hero > * {
    position: relative;
    z-index: 1;
}

.service-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-main), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.service-hero p.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

/* ─── GLOWING CTA BUTTON ─── */
.btn-glow {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px color-mix(in srgb, var(--accent-primary), transparent 60%);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px color-mix(in srgb, var(--accent-primary), transparent 40%);
    color: #ffffff;
}

/* ─── SERVICE SECTION (main content wrapper) ─── */
.service-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ─── ALTERNATING ROWS ─── */
.alternating-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: center;
}

@media (min-width: 900px) {
    .alternating-row {
        grid-template-columns: 1fr 1fr;
    }
    .alternating-row:nth-child(even) .text-col {
        order: 2;
    }
    .alternating-row:nth-child(even) .img-col {
        order: 1;
    }
}

/* ─── TEXT COLUMN (theme-aware!) ─── */
.text-col h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text-main);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.text-col h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.text-col h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.text-col p,
.text-col ul {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.text-col ul {
    padding-left: 20px;
}

.text-col li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* ─── IMAGE COLUMN ─── */
.img-col img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.img-col img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--accent-primary), transparent 70%);
}

/* ─── GLASS PANEL ─── */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.glass-panel h2 {
    color: var(--text-main);
}

/* ─── FAQ CONTAINER ─── */
.faq-container {
    max-width: 900px;
    margin: 0 auto 80px;
}

.faq-container h2 {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 40px;
    color: var(--text-main);
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--accent-primary), transparent 85%);
}

.faq-item summary {
    padding: 25px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item .faq-answer,
.faq-item > div {
    padding: 0 25px 25px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ─── GALLERY GRID ─── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px color-mix(in srgb, var(--accent-primary), transparent 70%);
}

/* ─── CTA SECTION ─── */
.cta-section {
    text-align: center;
    padding: 100px 5%;
    background: linear-gradient(to top,
        color-mix(in srgb, var(--accent-primary), transparent 90%),
        transparent);
}

.cta-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.cta-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--text-main);
}

.cta-card p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ─── PRICING CARDS (replaces bare "$299" headings) ─── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px color-mix(in srgb, var(--accent-primary), transparent 75%);
}

.pricing-card .price {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.pricing-card .price-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.pricing-card .price-desc {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* ─── CONTENT DIVIDER ─── */
.content-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    margin: 60px auto;
}

/* ─── EMBEDDED VIDEO WRAPPER ─── */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    margin: 30px 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ─── RESPONSIVE OVERRIDES ─── */
@media (max-width: 900px) {
    .service-hero {
        padding: 140px 5% 70px;
    }
    .service-hero h1 {
        font-size: 2.5rem;
    }
    .alternating-row {
        margin-bottom: 40px;
        gap: 30px;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .service-hero {
        padding: 120px 5% 50px;
    }
    .service-section {
        padding: 50px 5%;
    }
    .glass-panel {
        padding: 25px;
    }
    .cta-card {
        padding: 40px 25px;
    }
}
