/* =========================================================
   Data Recovery Doctor — main stylesheet
   Primary color: Blue (professional / trust / technical)
   ========================================================= */

:root {
    --navy: #0A1F44;          /* darkest — topbar, footer */
    --primary: #1656C9;       /* main brand blue — buttons, links, icons */
    --primary-dark: #0E3E93;  /* hover states */
    --sky: #EEF4FF;           /* light section backgrounds */
    --sky-line: #DCE7FB;      /* soft borders on light bg */
    --accent: #F5A623;        /* amber — used ONLY for high-priority CTAs */
    --accent-dark: #D98C10;
    --text: #17202E;
    --text-light: #5B6478;
    --white: #FFFFFF;
    --border: #E4E9F1;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(10, 31, 68, 0.08);
    --shadow-lg: 0 20px 50px rgba(10, 31, 68, 0.14);
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.2;
    font-weight: 800;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--sky);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.text-accent { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* =========================================================
   Top utility bar
   ========================================================= */
.topbar {
    background: var(--navy);
    color: #C9D6EE;
    font-size: 0.85rem;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.topbar-right { display: flex; gap: 22px; }
.topbar-right a { color: #C9D6EE; }
.topbar-phone { font-weight: 700; color: var(--white) !important; }

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(10,31,68,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 40px; width: 40px; object-fit: contain; }
.logo-text {
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--navy);
}
.logo-text strong { color: var(--primary); }

.nav-menu { position: relative; }
.nav-menu .nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-menu a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    padding: 8px 0;
    position: relative;
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}
.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 2px;
    background: var(--primary);
}

/* Two nav states: MINIMAL shows at the top of the page, FULL shows once
   scrolled. Body.page-scrolled (added by JS) flips which is visible.
   The whole <nav> briefly fades via .nav-fading (added/removed by JS)
   so the swap feels like a crossfade instead of an instant jump. */
.nav-menu .nav-list.nav-list-full { display: none; }
body.page-scrolled .nav-menu .nav-list.nav-list-minimal { display: none; }
body.page-scrolled .nav-menu .nav-list.nav-list-full { display: flex; }
.nav-menu { opacity: 1; transition: opacity 0.18s ease; }
.nav-menu.nav-fading { opacity: 0; }

/* Topbar collapses away once the page is scrolled */
.topbar {
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    overflow: hidden;
    max-height: 60px;
}
body.page-scrolled .topbar { max-height: 0; opacity: 0; padding: 0; }

/* Navbar itself tightens up + deepens its shadow once scrolled */
.navbar { transition: box-shadow 0.3s ease; }
.navbar-inner { transition: padding 0.3s ease; }
body.page-scrolled .navbar-inner { padding: 10px 0; }
body.page-scrolled .navbar { box-shadow: 0 4px 20px rgba(10,31,68,0.12); }

/* Services trigger — plain button styling, arrow rotates when panel is open */
.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: 5px; }
.dropdown-arrow { font-size: 0.6rem; transition: transform 0.25s ease; }
.has-dropdown > a.menu-open .dropdown-arrow { transform: rotate(180deg); }

/* Full-width panel, sits right under the navbar, spans the entire header width */
.mega-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.mega-menu-panel.open {
    max-height: 600px;
    opacity: 1;
}

.mega-menu-inner { padding: 34px 0 40px; }

.mega-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border);
}
.mega-menu-eyebrow {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
}
.mega-menu-head h3 { font-size: 1.3rem; }
.mega-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.mega-menu-close:hover { background: var(--sky); color: var(--primary); border-color: var(--primary); }

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 40px;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 12px;
    border-radius: 10px;

    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.15s ease;
}
.mega-menu-panel.open .mega-item { opacity: 1; transform: translateY(0); }
.mega-item:hover { background: var(--sky); }

.mega-item-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--sky);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mega-item-icon img { width: 26px; height: 26px; }
.mega-viewall .mega-item-icon { font-size: 1.3rem; font-weight: 800; color: var(--primary); background: transparent; border-style: dashed; }

.mega-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 3px;
}
.mega-item:hover h4 { color: var(--primary); }
.mega-item p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Dimmed backdrop behind the open panel — click it to close */
.mega-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 68, 0.35);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.mega-menu-backdrop.open { opacity: 1; visibility: visible; }

/* =========================================================
   MOBILE SLIDE-IN SIDEBAR
   Separate from the desktop nav entirely — the hamburger opens this,
   not the desktop <nav>, which stays hidden on small screens.
   ========================================================= */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--white);
    z-index: 300;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(10,31,68,0.2);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-sidebar.open { transform: translateX(0); }

.mobile-sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-sidebar-logo { font-family: var(--font-head); font-weight: 700; color: var(--navy); }

.mobile-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
}
.mobile-sidebar-nav > a {
    padding: 14px 12px;
    border-radius: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.mobile-sidebar-nav > a:hover { background: var(--sky); color: var(--primary); }

.mobile-accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 14px 12px;
    border-radius: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
}
.mobile-accordion-trigger:hover { background: var(--sky); color: var(--primary); }
.mobile-accordion-arrow { transition: transform 0.25s ease; font-size: 0.7rem; }
.mobile-accordion-trigger.open .mobile-accordion-arrow { transform: rotate(180deg); }

.mobile-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-left: 12px;
}
.mobile-accordion-panel.open { max-height: 400px; }
.mobile-accordion-panel a {
    padding: 10px 12px;
    font-size: 0.88rem;
    color: var(--text-light);
    border-radius: 6px;
}
.mobile-accordion-panel a:hover { background: var(--sky); color: var(--primary); }

.mobile-sidebar-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--border);
}
.mobile-sidebar-footer a {
    display: block;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
}

.mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 68, 0.45);
    z-index: 290;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.mobile-sidebar-backdrop.open { opacity: 1; visibility: visible; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 26px; height: 3px;
    background: var(--navy);
    border-radius: 3px;
}

/* =========================================================
   Floating WhatsApp / Call buttons
   ========================================================= */
.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.float-btn {
    width: 54px; height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}
.float-whatsapp { background: #25D366; }
.float-call { background: var(--primary); }
.float-btn img { width: 26px; height: 26px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    padding: 70px 0;
    color: var(--white);
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}
.hero h1 {
    color: var(--white);
    font-size: 2.7rem;
    margin: 14px 0 18px;
}
.hero .text-accent { color: #8FC1FF; }
.hero-sub { color: #D7E3FA; font-size: 1.05rem; max-width: 520px; margin-bottom: 24px; }

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}
.hero-badges .badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}
.hero-float-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    color: var(--navy);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.hero-float-card strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--primary); }
.hero-float-card span { font-size: 0.8rem; color: var(--text-light); }

/* =========================================================
   Trust strip
   ========================================================= */
.trust-strip { padding: 50px 0; background: var(--sky); }
.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-item img { width: 44px; height: 44px; flex-shrink: 0; }
.trust-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.trust-item p { color: var(--text-light); font-size: 0.9rem; }

/* =========================================================
   About / Founder strip
   ========================================================= */
.about-strip { padding: 80px 0; }
.about-strip-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: center;
}
.founder-photo {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.about-strip-text h2 { font-size: 2rem; margin-bottom: 16px; }
.about-strip-text p { color: var(--text-light); margin-bottom: 18px; }
.about-points li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
    font-weight: 500;
}
.about-points li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* =========================================================
   Process
   ========================================================= */
.process { padding: 80px 0; background: var(--sky); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-head h2 { font-size: 2rem; }

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.process-step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--text-light); }

/* =========================================================
   Services grid
   ========================================================= */
.services-grid-section { padding: 80px 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.service-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--white);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden; /* crops the image to the card's rounded corners */
}
.service-card img {
    display: block;
    width: 100%;
    height: 180px;      /* every photo forced to this exact height */
    object-fit: cover;  /* crops to fill the box, never stretches/distorts */
    object-position: center;
}
.service-card h3 { padding: 18px 18px 6px; font-size: 1.1rem; }
.service-card p { padding: 0 18px 20px; color: var(--text-light); font-size: 0.9rem; }

/* =========================================================
   Pickup form
   ========================================================= */
.pickup-section { padding: 80px 0; background: var(--navy); color: var(--white); }
.pickup-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}
.pickup-text h2 { color: var(--white); font-size: 2rem; margin-bottom: 14px; }
.pickup-text p { color: #C9D6EE; margin-bottom: 18px; }
.pickup-text .about-points li { color: #E4ECFA; }
.pickup-text .about-points li::before { color: #8FC1FF; }

.pickup-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.pickup-form input,
.pickup-form select,
.pickup-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--sky);
}
.pickup-form textarea { margin-bottom: 18px; resize: vertical; }
.pickup-form input:focus,
.pickup-form select:focus,
.pickup-form textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

/* =========================================================
   Stats band
   ========================================================= */
.stats-band { padding: 50px 0; background: var(--sky); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2.1rem;
    color: var(--primary);
}
.stat span { color: var(--text-light); font-size: 0.9rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy); color: #C9D6EE; padding-top: 60px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-logo { height: 38px; margin-bottom: 16px; }
.footer-about p { font-size: 0.9rem; color: #A9BADB; margin-bottom: 18px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials img { width: 20px; height: 20px; }
.footer-socials a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.site-footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 18px;
}
.site-footer ul li { margin-bottom: 10px; font-size: 0.9rem; }
.site-footer a { color: #C9D6EE; }
.site-footer a:hover { color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #A9BADB;
}
.footer-legal { display: flex; gap: 20px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
    .hero-inner,
    .about-strip-inner,
    .pickup-inner { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
    .trust-strip-grid,
    .process-grid,
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .topbar-left { display: none; }
    .nav-toggle { display: flex; }
    .nav-menu { display: none; } /* replaced entirely by .mobile-sidebar on mobile */

    .hero h1 { font-size: 2rem; }
    .trust-strip-grid,
    .process-grid,
    .services-grid,
    .footer-grid,
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   PRICING PAGES
   ========================================================= */

/* Reuses the .hero gradient look but shorter, for pricing pages */
.pricing-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    padding: 60px 0 50px;
    color: var(--white);
}
.pricing-hero h1 { color: var(--white); font-size: 2.2rem; margin: 10px 0 12px; }

/* Three "what determines cost" factor cards */
.pricing-factors { padding: 60px 0; background: var(--sky); }
.pricing-factors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.factor-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
}
.factor-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.factor-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.factor-card p { font-size: 0.88rem; color: var(--text-light); }

/* Per-service pricing cards on the overview page */
.pricing-cards-section { padding: 80px 0; }
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.pricing-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pricing-card-icon { width: 40px; height: 40px; margin: 0 auto 14px; }
.pricing-card h3 { font-size: 1rem; margin-bottom: 8px; }
.pricing-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 18px; min-height: 40px; }

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }

/* Failure-type tabs on the per-service detail page */
.failure-tabs-section { padding: 80px 0; background: var(--sky); }
.failure-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.failure-tab-btn {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 22px;
    border-radius: 30px;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}
.failure-tab-btn:hover { border-color: var(--primary); }
.failure-tab-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.failure-tab-panel { display: none; background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.failure-tab-panel.active { display: block; }

.failure-desc { color: var(--text-light); margin-bottom: 24px; max-width: 760px; }

.failure-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 26px;
}
.failure-col h4 { font-size: 0.95rem; margin-bottom: 12px; color: var(--primary); }

.failure-audio {
    background: var(--sky);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 24px;
}
.failure-audio-label { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }
.failure-audio audio { width: 100%; }

.failure-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}
.capacity-badge {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--sky);
    padding: 6px 14px;
    border-radius: 20px;
}

/* FAQ accordion, shared by pricing.php and pricing-detail.php */
.faq-section { padding: 80px 0; }
.faq-accordion { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 4px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--navy);
    cursor: pointer;
}
.faq-toggle {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 14px;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 4px 18px; color: var(--text-light); font-size: 0.92rem; }

@media (max-width: 960px) {
    .pricing-factors-grid,
    .pricing-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .failure-columns { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .pricing-factors-grid,
    .pricing-cards-grid { grid-template-columns: 1fr; }
    .failure-tab-panel { padding: 22px; }
}