﻿/*
Theme Name: Intra Modern
Theme URI: https://intrabc.com
Author: Intra Systems
Author URI: https://intrabc.com
Description: Modern, slick WordPress theme for Intra Systems with dark design and smooth animations
Version: 1.0.1
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: intra-modern
*/

/* ===================================================================
   GLOBAL STYLES & RESET
   =================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --secondary: #00D9FF;
    --dark: #0A0E27;
    --dark-light: #1A1F3A;
    --text: #FFFFFF;
    --text-muted: #A0A5B8;
    --accent: #FF6B35;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================================================
   LIGHT MODE
   =================================================================== */

body.light-mode {
    --dark: #F0F4FF;
    --dark-light: #E0E7FF;
    --text: #0A0E27;
    --text-muted: #4A5280;
    background: var(--dark);
    color: var(--text);
}

body.light-mode nav.main-nav {
    background: rgba(240, 244, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode nav.main-nav.scrolled {
    background: rgba(240, 244, 255, 0.98);
}

body.light-mode .nav-links a {
    color: var(--text);
}

body.light-mode .floating-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .service-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 102, 255, 0.12);
}

body.light-mode .service-card:hover {
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15);
}

body.light-mode .contact-form-container {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .wpcf7-form input[type="text"],
body.light-mode .wpcf7-form input[type="email"],
body.light-mode .wpcf7-form input[type="tel"],
body.light-mode .wpcf7-form textarea,
body.light-mode .wpcf7-form select {
    background: rgba(240, 244, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text);
}

body.light-mode footer {
    background: #0A0E27 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode footer .footer-brand p,
body.light-mode footer .footer-section a,
body.light-mode footer .footer-bottom {
    color: #A0A5B8;
}

body.light-mode footer .footer-section h4,
body.light-mode footer .logo {
    color: #FFFFFF;
}

body.light-mode footer .social-links a {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

body.light-mode .logo-ticker {
    background: #E0E7FF;
}

body.light-mode .logo-item img {
    filter: grayscale(100%) brightness(0.4);
}

body.light-mode .social-links a {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text);
}

body.light-mode .card-title {
    color: var(--primary);
}

body.light-mode .service-card h3 {
    color: var(--primary);
}

body.light-mode .cta-section,
body.light-mode .cta-content h2,
body.light-mode .cta-content p {
    color: #FFFFFF;
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.theme-toggle:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .theme-toggle:hover {
    background: rgba(0, 102, 255, 0.1);
}

/* ===================================================================
   NAVIGATION
   =================================================================== */

nav.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

nav.main-nav.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 14, 39, 0.98);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo,
.site-title a {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50px;
    color: white !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
    color: white !important;
}

/* ===================================================================
   HERO SECTION
   =================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
	pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.secondary-button {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.secondary-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    width: 230px;
    min-height: 210px;
    box-sizing: border-box;
    animation: float 6s ease-in-out infinite;
	z-index: 10;
	cursor: pointer;
}

/* These float continuously on their own - never subject to the
   scroll-reveal fade/rise treatment even if a future selector change
   would otherwise catch them. */
.floating-card.reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 22%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 38%;
    left: 12%;
    animation-delay: 4s;
}

.card-4 {
    bottom: 26%;
    right: 25%;
    animation-delay: 6s;
}

a.floating-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: absolute;
    z-index: 10;
    pointer-events: all;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===================================================================
   STATS SECTION
   =================================================================== */

.stats {
    padding: 6rem 5%;
    background: var(--dark-light);
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===================================================================
   SERVICES SECTION
   =================================================================== */

.services {
    padding: 8rem 5%;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* The homepage Video Services grid only has 2 cards (TV Installation,
   Surveillance) - force a fixed 2-column layout so they fill the row
   instead of leaving a blank third track. */
#video .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* Homepage "Comprehensive Business Solutions" - 4 services side by side
   on desktop/tablet. Scoped to a min-width so mobile keeps stacking to
   1 column via the existing responsive rule below. */
@media (min-width: 769px) {
    #services .services-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ---- Welcome popup ---- */
.intra-welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.intra-welcome-overlay.is-visible {
    opacity: 1;
}
.intra-welcome-overlay .intra-welcome-box {
    transform: translateY(12px) scale(0.98);
    transition: transform 0.3s ease;
}
.intra-welcome-overlay.is-visible .intra-welcome-box {
    transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
    .intra-welcome-overlay,
    .intra-welcome-overlay .intra-welcome-box {
        transition: none;
    }
}

.intra-welcome-box {
    background: var(--dark-light);
    color: var(--text);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.intra-welcome-box h2 {
    margin-top: 0;
    color: var(--text);
    font-size: 1.4rem;
}

.intra-welcome-box p {
    color: var(--text-muted);
    line-height: 1.7;
    text-align: left;
}

.intra-welcome-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}
.intra-welcome-close:hover {
    color: var(--text);
}

.intra-welcome-ok {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s ease;
}
.intra-welcome-ok:hover {
    background: var(--primary-dark);
}

.service-card {
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 217, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--text);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.8;
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.service-features {
    margin-top: 1.5rem;
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
}

/* ===================================================================
   CTA SECTION
   =================================================================== */

.cta-section {
    padding: 8rem 5%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite alternate;
	 pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.white-button {
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.white-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ===================================================================
   VOICE SECTION
   =================================================================== */

.voice-section {
    padding: 8rem 5%;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
    position: relative;
	scroll-margin-top: 80px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ===================================================================
   DATA SECTION
   =================================================================== */

.data-section {
    padding: 8rem 5%;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
    position: relative;
	scroll-margin-top: 80px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ===================================================================
   VIDEO SECTION
   =================================================================== */

.video-section {
    padding: 8rem 5%;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
    position: relative;
	scroll-margin-top: 80px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ===================================================================
   FOOTER
   =================================================================== */

footer {
    background: var(--dark);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text);
}

/* Services heading is a link (linking to /services); without this it
   inherits the muted .footer-section a color below instead of reading
   white like the plain-text "Company"/"Contact" headings. */
.footer-section h4 a {
    color: inherit;
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===================================================================
   PAGE WRAPPER (for internal pages)
   =================================================================== */

.page-wrapper {
    min-height: 100vh;
    background: var(--dark);
}

.page-hero {
    padding: 10rem 5% 4rem;
    background: linear-gradient(135deg, var(--dark-light), var(--dark));
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text);
    background: linear-gradient(135deg, var(--text), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.page-content p {
    margin-bottom: 1.5rem;
}

/* ===================================================================
   CONTACT FORMS
   =================================================================== */

.contact-form-section {
    padding: 6rem 5%;
    background: var(--dark-light);
}

.contact-form-container {
    max-width: 90%;
    margin: 0 auto;
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
}

.wpcf7-form label {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
}

.wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* ===================================================================
   WORDPRESS SPECIFIC FIXES
   =================================================================== */

.site-header {
    display: none;
}

.site-content {
    margin: 0;
    padding: 0;
}

.entry-header {
    display: none;
}

.entry-content {
    margin: 0;
}

/* Remove default WordPress styling */
.wp-block-group,
.wp-block-columns {
    margin: 0;
}

/* Ensure WordPress admin bar doesn't overlap */
body.admin-bar nav.main-nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar nav.main-nav {
        top: 46px;
    }
}

a.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ===================================================================
   IMAGE BANNER
   =================================================================== */

.image-banner {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Fallback photo if a page doesn't set its own background-image
   inline - keeps old markup working during rollout to other pages. */
.image-banner:not([style*="background-image"]) {
    background-image: url('https://new.intrabc.com/wp-content/uploads/2026/03/alejandro-luengo-SR5KNZTT9jM-unsplash-scaled.jpg');
}

.image-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.85), rgba(0, 102, 255, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-banner-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.image-banner-content h2 {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.image-banner-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .image-banner {
        background-attachment: scroll;
        min-height: 300px;
    }

    .image-banner-content h2 {
        font-size: 2rem;
    }
}

/* ===================================================================
   PAGE ACCENTS
   Lightweight, reusable pieces for breaking up inner-page content -
   drop into any page's content so pages don't all read as one long
   grey block, without one-off custom work per page.
   =================================================================== */

/* Contained (not full-bleed) version of .image-banner sized for
   dropping inside a page's content area rather than a full hero. */
.page-banner {
    min-height: 260px;
    border-radius: 20px;
    margin: 3rem 0;
    overflow: hidden;
}

.page-banner .image-banner-content h2 {
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    .page-banner {
        min-height: 200px;
    }
}

/* Soft blue-tinted band for a short highlight/benefits block. */
.accent-band {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 217, 255, 0.06));
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2.5rem 0;
}

.accent-band h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.accent-band ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accent-band li {
    color: var(--text-muted);
    padding-left: 1.75rem;
    position: relative;
}

.accent-band li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

body.light-mode .accent-band {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.06), rgba(0, 217, 255, 0.04));
    border-color: rgba(0, 102, 255, 0.12);
}

@media (max-width: 768px) {
    .accent-band {
        padding: 1.25rem;
    }
}

/* ===================================================================
   ANGLED SECTION DIVIDERS
   =================================================================== */

.video-section {
    clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 100%);
    margin-top: -4vw;
    padding-top: calc(8rem + 4vw);
}

/* On mobile, sections stack much taller relative to their width, so the
   same 8% clip-path cut eats far more actual vertical pixels and intrudes
   into the section title. Drop the angled-divider effect below desktop
   widths and fall back to a plain rectangular section. */
@media (max-width: 768px) {
    .video-section {
        clip-path: none;
        margin-top: 0;
        padding-top: 8rem;
    }
}

/* ===================================================================
   LOGO TICKER
   =================================================================== */

.logo-ticker {
    padding: 3rem 0;
    background: var(--dark-light);
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-ticker-inner {
    position: relative;
    overflow: hidden;
    /* Fade edges left and right */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: ticker 45s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused; /* pauses on hover */
}

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.logo-item img {
    max-height: 50px;
    max-width: 160px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}
}
/* ===================================================================
   Page-content links: the theme's global reset (a { text-decoration:
   none; color: inherit; }) made plain links invisible with no hover
   affordance at all. Give them a real color and a clear hover state.
   =================================================================== */
.page-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.2s ease;
}
.page-content a:hover {
    color: var(--secondary);
    text-decoration-color: currentColor;
}
.page-content p,
.page-content li {
    font-size: 1.1rem;
}

/* Manufacturer guide lists: bigger, clearly clickable rows instead of
   plain bulleted links. */
.guide-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.guide-list li {
    border-bottom: 1px solid rgba(128, 140, 160, 0.2);
}
.guide-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.guide-list li a:hover {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    padding-left: 1rem;
}

.manufacturer-logo {
    display: block;
    max-height: 80px;
    max-width: 260px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 2rem;
}

.guide-video-wrap {
    position: relative;
    padding-bottom: 33.75%;
    height: 0;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
}
.guide-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* ===================================================================
   Nav dropdowns (sub-categories under Voice / Data / Video / Audio /
   Product Guides), rendered by WP's default walker's nested <ul>.
   =================================================================== */
.nav-links li.menu-item-has-children {
    position: relative;
}
.nav-links li.menu-item-has-children > a::before {
    content: "\25BE";
    font-size: 0.65em;
    margin-left: 0.35em;
    display: inline-block;
    vertical-align: middle;
}
.nav-links ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    padding-top: 0.75rem;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    list-style: none;
    z-index: 1001;
}
.nav-links li.menu-item-has-children:hover > ul.sub-menu {
    display: block;
}
.nav-links ul.sub-menu li {
    width: 100%;
}
.nav-links ul.sub-menu li a {
    display: block;
    padding: 0.65rem 1.25rem;
    white-space: nowrap;
    font-weight: 400;
    font-size: 0.95rem;
}
.nav-links ul.sub-menu li a::after {
    display: none;
}
.nav-links ul.sub-menu li a:hover {
    background: rgba(0, 102, 255, 0.12);
    color: var(--secondary);
}
body.light-mode .nav-links ul.sub-menu {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
/* ===================================================================
   Second-level nav flyout: Services > Voice/Data/Video/Audio > their
   own sub-pages. The level-1 dropdown already opens below the parent;
   nested items flyout to the side instead of stacking below.
   =================================================================== */
.nav-links ul.sub-menu li.menu-item-has-children {
    position: relative;
}
.nav-links ul.sub-menu li.menu-item-has-children > ul.sub-menu {
    top: -0.5rem;
    left: 100%;
    transform: none;
    margin-top: 0;
    margin-left: 0;
    padding-left: 0.4rem;
}
.nav-links > li.menu-item-has-children > a::before {
    content: "\25BE";
}
.nav-links ul.sub-menu li.menu-item-has-children > a::before {
    content: "\25B8";
}
/* ===================================================================
   SVG icons replacing emoji: font-size doesn't scale an <svg>, so size
   and color it explicitly. stroke="currentColor" in the markup picks
   up this color automatically.
   =================================================================== */
.service-icon svg {
    width: 2.75rem;
    height: 2.75rem;
    color: var(--primary);
}
.card-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}
/* ===================================================================
   Swapped emoji icons for clean line-style SVGs (brand blue, sized to
   match the existing .service-icon / .card-icon font-size via 1em).
   =================================================================== */
.service-icon, .card-icon {
    color: var(--primary);
}
.service-icon svg, .card-icon svg {
    display: inline-block;
    vertical-align: middle;
}
/* ===================================================================
   MOBILE NAVIGATION (hamburger + accordion submenu)
   =================================================================== */

/* JS-injected chevron (.submenu-toggle) is only sized/shown for the
   mobile accordion below; without this it renders at the browser's
   unstyled default SVG size next to the desktop ::before arrow. */
.submenu-toggle {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(10px);
        padding: 0.5rem 5% 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    /* .nav-links a already switches to a dark text color in light mode
       (see the light-mode block near the top of this file), but this
       panel's background stayed hardcoded dark, making the mobile menu
       unreadable (dark text on a dark background) after toggling to
       light mode. */
    body.light-mode .nav-links {
        background: rgba(240, 244, 255, 0.98);
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }

    body.light-mode .nav-links > li > a {
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links > li > a {
        display: block;
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links .cta-button {
        display: block;
        text-align: center;
        margin: 1rem 0;
    }

    .nav-links .theme-toggle {
        margin: 0.5rem 0 0;
    }

    .nav-links li.menu-item-has-children {
        position: relative;
    }

    .nav-links li.menu-item-has-children > a::before {
        display: none;
    }

    .submenu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text);
    }

    .submenu-toggle svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
        pointer-events: none;
    }

    .nav-links li.menu-item-has-children.submenu-open > .submenu-toggle svg {
        transform: rotate(180deg);
    }

    .nav-links ul.sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
        padding-left: 1rem;
        min-width: 0;
        width: 100%;
        margin: 0;
    }

    .nav-links li.menu-item-has-children.submenu-open > ul.sub-menu {
        display: block;
    }

    .nav-links ul.sub-menu li.menu-item-has-children > ul.sub-menu {
        left: 0;
    }

    .nav-links ul.sub-menu li a {
        padding: 0.7rem 0;
    }
}

/* ---- Scroll reveal (fade + rise into view) ---- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s ease, transform 1.1s ease;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
