/* ============================================================
   CCS Cleaning — Sector Page Styles (Tailwind + Legacy)
   Colors: Primary #0b1f15 | Accent #d4ee5e | Surface #f4f6f5
   ============================================================ */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #0b1f15;
    --secondary-color: #d4ee5e;
    --accent-color: rgba(212, 238, 94, 0.1);
    --text-dark: #2d3732;
    --text-muted: #6b7280;
    --bg-light: #f4f6f5;
    --white: #ffffff;
    --gradient-hero: linear-gradient(135deg, #07140e 0%, #0b1f15 100%);
    --gradient-accent: linear-gradient(135deg, #e4fb73 0%, #d4ee5e 100%);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 25px rgba(0,0,0,0.12);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s ease;
}

/* ===== GLOBAL RESET: Kill all blue defaults ===== */
*, *::before, *::after {
    --tw-ring-color: #d4ee5e !important;
}
a, a:visited, a:hover, a:active {
    color: inherit;
    text-decoration: none;
}

/* Force focus ring to lime green everywhere */
*:focus, *:focus-visible {
    outline-color: #d4ee5e !important;
    --tw-ring-color: #d4ee5e !important;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid #d4ee5e !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(212, 238, 94, 0.3) !important;
}

/* Override any WordPress/theme blue button or link styles */
.sector-page a, .bg-surface a, .bg-primary a {
    color: inherit;
}
button:focus {
    outline-color: #d4ee5e !important;
}

/* ===== Material Symbols ===== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ===== Glassmorphism ===== */
.glass-nav {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ===== Smooth scrollbar hide ===== */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }


/* ============================================================
   SCROLL-TRIGGERED REVEAL ANIMATIONS
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== Stagger children animation ===== */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }


/* ============================================================
   HERO ENTRANCE KEYFRAMES
   ============================================================ */

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroBadgePop {
    from { opacity: 0; transform: scale(0.7) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.hero-animate-badge { animation: heroBadgePop 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero-animate-h1    { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
.hero-animate-p     { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }
.hero-animate-cta   { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both; }

/* ===== Parallax subtle float ===== */
@keyframes floatSubtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.float-animation {
    animation: floatSubtle 4s ease-in-out infinite;
}

/* ===== Number counter ===== */
.stat-counter {
    display: inline-block;
}


/* ============================================================
   FAQ ACCORDION (Tailwind template version)
   ============================================================ */

.faq-item {
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover {
    border-color: #d4ee5e;
    box-shadow: 0 2px 12px rgba(212, 238, 94, 0.12);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 16px;
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}
.faq-chevron {
    transition: transform 0.3s ease;
}


/* ============================================================
   CARD HOVER ANIMATIONS
   ============================================================ */

.bento-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(11, 31, 21, 0.15);
}


/* ============================================================
   LEGACY SECTOR-PAGE STYLES (Bootstrap version, kept for hub)
   ============================================================ */

.sector-page {
    font-family: 'Inter', 'DM Sans', sans-serif;
    color: var(--text-dark);
}

/* Typography */
.sector-page h1, .sector-page h2, .sector-page h3, .sector-page h4, .sector-page h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Hero Section */
.sector-hero {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.sector-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--white);
    transform: skewY(-2deg);
    z-index: 1;
}

.sector-hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.sector-hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-geo-highlight {
    color: var(--secondary-color);
}

.sector-hero-subcopy {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 800px;
}

/* Buttons */
.btn-premium {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.btn-primary-premium {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 238, 94, 0.3);
    color: var(--primary-color);
}

.btn-secondary-premium {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-3px);
}

/* Stats Row */
.stats-section {
    padding: 40px 0;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Common */
.section-padding {
    padding: 80px 0;
}

.section-bg-light {
    background: var(--bg-light);
}

.section-badge {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Deep Dive & Features */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 24px;
    flex-shrink: 0;
}

.feature-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0;
    align-self: center;
    color: var(--primary-color);
}

/* Image styling */
.image-premium {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

/* Bento Services Grid (Legacy) */
.bento-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.bento-card:hover .bento-icon {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

.bento-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.bento-desc {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Why Choose List */
.why-list {
    list-style: none;
    padding: 0;
}

.why-item {
    margin-bottom: 25px;
}

.why-item-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 8px;
}

.why-item-title i {
    color: var(--primary-color);
    background: var(--secondary-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.emergency-note {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-top: 30px;
    font-weight: 500;
}

/* FAQ Accordion (Legacy Bootstrap version) */
.premium-accordion .accordion-item {
    border: none;
    background: var(--white);
    border-radius: var(--border-radius) !important;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.premium-accordion .accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    padding: 20px 25px;
    background: var(--white);
    box-shadow: none !important;
}

.premium-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: var(--bg-light);
}

.premium-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230b1f15'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.premium-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230b1f15'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    transform: rotate(180deg);
}

.premium-accordion .accordion-body {
    padding: 0 25px 25px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* FAQ Sidebar */
.faq-sidebar {
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
}

.faq-sidebar h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.audit-card {
    background: rgba(212, 238, 94, 0.1);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    border: 1px solid rgba(212, 238, 94, 0.2);
}

.audit-card h5 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Facilities Covered */
.facilities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.facility-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.facility-item:hover {
    border-color: var(--secondary-color);
}

/* Offices & Contact */
.contact-wrapper {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.office-info {
    padding: 50px;
    background: var(--bg-light);
    height: 100%;
}

.office-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.form-premium .form-control, .form-premium .form-select {
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--bg-light);
    margin-bottom: 20px;
}

.form-premium .form-control:focus, .form-premium .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 238, 94, 0.15);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .sector-hero h1 {
        font-size: 2.5rem;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .section-padding {
        padding: 50px 0;
    }
}
