/*
Theme Name: RCTech
Theme URI: https://rctech.world
Author: DijiSol Solutions
Author URI: https://dijisol.solutions
Description: Custom WordPress theme for RCTech - two-way radio and communication solutions.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.5
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: rctech
*/

/* ============================================================
   RCTech — Complete Stylesheet
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2c2c2c;
    background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- SECTION TITLES ---------- */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 16px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
}
.section-title--blue { color: #1a3a6c; }
.section-title--blue::after { background: #1a3a6c; }
.section-title--orange { color: #e8651a; }
.section-title--orange::after { background: #e8651a; }

.section-sub {
    text-align: center;
    color: #666;
    max-width: 620px;
    margin: 12px auto 48px;
    font-size: 1.05rem;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.btn--orange {
    background: #e8651a;
    color: #fff;
}
.btn--orange:hover { background: #d05a15; }
.btn--blue {
    background: #1a3a6c;
    color: #fff;
}
.btn--blue:hover { background: #15305a; }
.btn--full { width: 100%; text-align: center; }

/* ============================================================
   AREA 1 — TOP BAR
   ============================================================ */
.top-bar {
    background: #fff;
    padding: 28px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.logo-link { display: inline-block; }
.logo-img { width: 820px; max-width: 95%; }

/* ============================================================
   AREA 2 — NAVIGATION BAR
   ============================================================ */
.nav-bar {
    background: #1a3a6c;
    position: relative;
    z-index: 1000;
    transition: box-shadow .3s;
}
.nav-bar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 64px;
}

.nav-phone {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-links li a {
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 19px 24px;
    display: block;
    transition: background .2s;
    border-radius: 4px;
}
.nav-links li a:hover {
    background: rgba(255,255,255,.12);
}

.nav-mobile-phones {
    display: none;
}

.nav-spacer { height: 0; }
.nav-bar.sticky ~ .nav-spacer,
.nav-spacer.active { height: 64px; }

/* ---------- TAGLINE STRIP ---------- */
.tagline-strip {
    background: #fff;
    text-align: center;
    padding: 18px 0;
}
.tagline-strip p {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a3a6c;
    letter-spacing: 0.5px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   AREA 3 — HERO BANNER
   ============================================================ */
.hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(26,58,108,.82) 0%,
        rgba(26,58,108,.55) 40%,
        rgba(26,58,108,.15) 70%,
        transparent 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 8vh;
}

.hero-text {
    max-width: 560px;
}
.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-text p {
    font-size: 1.15rem;
    color: rgba(255,255,255,.92);
    margin-bottom: 28px;
    max-width: 480px;
    text-shadow: 0 1px 6px rgba(0,0,0,.2);
}

/* Layer 2: Industry thumbnail strip */
.hero-industries {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 24px;
    pointer-events: none;
}
.hero-thumb {
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column-reverse;
}
.hero-industries img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #e8651a;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.hero-thumb figcaption {
    margin-top: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8651a;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* ============================================================
   BRANDS MARQUEE
   ============================================================ */
.brands {
    background: #f5f5f5;
    padding: 56px 0 48px;
}

.marquee-wrap {
    overflow: hidden;
    margin-top: 36px;
    padding: 12px 0;
}

.marquee-track {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.brand-item img {
    height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: .8;
    transition: filter .3s, opacity .3s;
}

.brand-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.brand-subtitle {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.5px;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    background: #e8f1f8;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 40px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border-left: 5px solid #1a3a6c;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,.12);
}

.service-card__img {
    height: 200px;
    overflow: hidden;
}
.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.service-card:hover .service-card__img img {
    transform: scale(1.05);
}
.service-card__img--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafd;
}

.service-card__body {
    padding: 24px 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-card__body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a6c;
    margin-bottom: 8px;
}
.service-card__body p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.read-more {
    display: inline-block;
    background: #1a3a6c;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background .2s, transform .2s;
}
.read-more:hover {
    background: #e8651a;
    transform: translateY(-2px);
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries {
    background: #fff;
    padding: 80px 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.industry-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}
.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.industry-card:hover img {
    transform: scale(1.08);
}
.industry-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(26,58,108,.75) 100%);
    display: flex;
    align-items: flex-end;
    padding: 28px;
    transition: background .4s;
}
.industry-card:hover .industry-card__overlay {
    background: linear-gradient(180deg, rgba(26,58,108,.3) 0%, rgba(26,58,108,.85) 100%);
}
.industry-card__overlay h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* ============================================================
   CUSTOM INSTALLATIONS
   ============================================================ */
.installations {
    background: #fff5ee;
    padding: 80px 0 64px;
}

.gallery-scroll {
    overflow-x: auto;
    padding: 0 24px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #e8651a #ffe8d6;
}
.gallery-scroll::-webkit-scrollbar { height: 8px; }
.gallery-scroll::-webkit-scrollbar-track { background: #ffe8d6; border-radius: 4px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: #e8651a; border-radius: 4px; }

.gallery-track {
    display: flex;
    gap: 24px;
    width: max-content;
}

.gallery-frame {
    flex-shrink: 0;
    width: 340px;
    height: 240px;
    border: 4px solid #1a3a6c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transition: transform .3s;
}
.gallery-frame:hover { transform: scale(1.03); }
.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   RADIO NETWORK EXPLAINER
   ============================================================ */
.explainer {
    background: #e8f1f8;
    padding: 80px 0;
}

.explainer-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 32px;
    align-items: center;
}

.explainer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.explainer-col--center {
    text-align: center;
}

.explainer-diagram img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    max-width: 100%;
}

.explainer-quote {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #1a3a6c;
    font-style: italic;
    line-height: 1.6;
    padding: 0 8px;
}

.range-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .3s, box-shadow .3s;
}
.range-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
.range-card__icon {
    margin-bottom: 12px;
}
.range-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3a6c;
    margin-bottom: 6px;
}
.range-card__range {
    font-size: 1.4rem;
    font-weight: 800;
    color: #e8651a;
    margin-bottom: 6px;
}
.range-card p:last-child {
    font-size: 0.85rem;
    color: #666;
}

/* ============================================================
   ICASA
   ============================================================ */
.icasa {
    background: #fff;
    padding: 80px 0;
}

.icasa-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 36px;
}

.icasa-text p {
    margin-bottom: 16px;
    color: #444;
    line-height: 1.7;
}

.icasa-list {
    margin: 24px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.icasa-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #333;
}
.icasa-list li svg { flex-shrink: 0; }

.icasa-image img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    background: #f0f0f0;
    padding: 80px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: stretch;
}

.contact-form-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group:not(.form-row .form-group) {
    margin-bottom: 20px;
}
.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #333;
}
.form-group input,
.form-group select,
.form-group textarea {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a3a6c;
    box-shadow: 0 0 0 3px rgba(26,58,108,.1);
}
.form-group textarea { resize: vertical; }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .3s;
}
.info-card:hover { transform: translateX(4px); }
.info-card__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: #fff5ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3a6c;
    margin-bottom: 4px;
}
.info-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a3a6c;
    color: #fff;
    padding: 16px 36px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 28px rgba(0,0,0,.2);
    z-index: 9999;
    transition: bottom .4s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
}
.toast.show { bottom: 36px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-accent {
    height: 5px;
    background: linear-gradient(90deg, #e8651a, #1a3a6c);
}

.footer {
    background: #1a2a40;
    color: rgba(255,255,255,.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 56px 24px 40px;
}

.footer-logo {
    width: 200px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: #e8651a;
    border-radius: 2px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    font-size: 0.9rem;
    transition: color .2s, padding-left .2s;
}
.footer-col ul li a:hover {
    color: #e8651a;
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,.5);
}

/* ============================================================
   INTERSECTION OBSERVER — REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 2.2rem; }
    .hero-radios { width: 75%; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .explainer-layout { grid-template-columns: 1fr; }
    .explainer-col--left, .explainer-col--right { flex-direction: row; gap: 20px; }
    .explainer-col--left .range-card, .explainer-col--right .range-card { flex: 1; }
    .icasa-layout { grid-template-columns: 1fr; }
    .icasa-image { order: -1; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
    .nav-phone--left,
    .nav-phone--right { display: none; }

    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a3a6c;
        flex-direction: column;
        padding: 12px 0;
        box-shadow: 0 8px 20px rgba(0,0,0,.2);
    }
    .nav-links.open { display: flex; }
    .nav-links li a {
        padding: 14px 24px;
        border-radius: 0;
    }
    .nav-mobile-phones {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-left: auto;
    }
    .nav-mobile-phone {
        color: rgba(255,255,255,.85);
        font-size: 0.8rem;
        font-weight: 500;
        white-space: nowrap;
    }

    .hero { height: 60vh; min-height: 400px; }
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text p { font-size: 1rem; }
    .hero-radios { width: 90%; }

    .services-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .industries-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .industry-card { height: 220px; }

    .explainer-col--left, .explainer-col--right { flex-direction: column; }
    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .gallery-frame { width: 280px; height: 200px; }

    .hero-industries { display: none; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
    .section-title { font-size: 1.5rem; }
    .section-sub { font-size: 0.92rem; }

    .hero { height: 55vh; min-height: 360px; }
    .hero-text h1 { font-size: 1.5rem; }
    .hero-text p { font-size: 0.9rem; }
    .hero-content { padding-top: 5vh; }
    .hero-radios { width: 100%; }

    .services-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: 1fr; }
    .industry-card { height: 200px; }

    .range-card { padding: 18px 14px; }

    .contact-form-wrap { padding: 24px 18px; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .gallery-frame { width: 260px; height: 180px; }

    .marquee-track { gap: 40px; }
    .marquee-track img { height: 32px; }

}
