/*
Theme Name: Techcomm Wireless
Theme URI: https://mjwebexperts.com
Author: MJ Web Experts
Author URI: https://mjwebexperts.com
Description: One-page AI Bot showcase theme for Techcomm Wireless
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: techcomm-wireless
*/

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --color-primary:    #D42029;
  --color-primary-dk: #A81820;
  --color-navy:       #1E2235;
  --color-navy-lt:    #2B3050;
  --color-white:      #FFFFFF;
  --color-light:      #F4F6FB;
  --color-text:       #1E2235;
  --color-muted:      #5A6475;
  --color-border:     #E2E6EE;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,.07);
  --shadow-md: 0 8px 28px rgba(0,0,0,.11);
  --shadow-lg: 0 20px 56px rgba(0,0,0,.16);
}

/* ─── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dk); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--color-navy);
}

/* ─── Utilities ─────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.section-pad { padding: 96px 0; }
.text-center { text-align: center; }

.btn {
  display: inline-block;
  padding: 16px 38px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .22s ease;
  line-height: 1;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dk);
  border-color: var(--color-primary-dk);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212,32,41,.32);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

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

.section-label {
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 18px;
}

.section-sub {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 660px;
  margin: 0 auto 56px;
  line-height: 1.75;
}

/* ─── Header ─────────────────────────────────────────────────
   White background, NO sticky, border-bottom divider          */
.site-header {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.site-logo img,
.site-logo .logo-fallback { height: 56px; width: auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: .92rem;
  font-weight: 600;
  color: var(--color-navy);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.site-nav a:hover,
.site-nav .current-menu-item a {
  color: var(--color-primary);
  background: rgba(212,32,41,.06);
}

.nav-cta a {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm) !important;
}
.nav-cta a:hover {
  background: var(--color-primary-dk) !important;
  color: var(--color-white) !important;
}

/* hamburger — dark lines on white header */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--color-navy); margin: 6px 0;
  transition: .3s;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--color-navy);
  background-image: linear-gradient(140deg, #1E2235 0%, #2B3050 55%, #3d1f28 100%);
  color: var(--color-white);
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,32,41,.22) 0%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(212,32,41,.18);
  border: 1px solid rgba(212,32,41,.45);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: #ff9ea3;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff9ea3;
  flex-shrink: 0;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(1.35); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-title .highlight { color: var(--color-primary); }

.hero-desc {
  font-size: 1.18rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}
.stat-label {
  font-size: .88rem;
  color: rgba(255,255,255,.58);
  margin-top: 4px;
}

/* Chat preview mockup */
.hero-chat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.chat-topbar {
  background: rgba(0,0,0,.28);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.chat-topbar-dots span {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 50%;
  margin-right: 4px;
}
.chat-topbar-dots span:nth-child(1) { background: #ff5f57; }
.chat-topbar-dots span:nth-child(2) { background: #febc2e; }
.chat-topbar-dots span:nth-child(3) { background: #28c840; }
.chat-topbar-title {
  font-size: .84rem;
  font-weight: 700;
  color: rgba(255,255,255,.82);
  font-family: var(--font-heading);
}

.chat-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; min-height: 290px; }

.chat-msg { display: flex; gap: 10px; max-width: 92%; }
.chat-msg.user-msg { margin-left: auto; flex-direction: row-reverse; }

.chat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800;
  font-family: var(--font-heading);
}
.bot-avatar  { background: var(--color-primary); color: white; }
.user-avatar { background: rgba(255,255,255,.22); color: white; }

.chat-bubble {
  padding: 11px 16px;
  border-radius: 18px;
  font-size: .9rem;
  line-height: 1.55;
}
.bot-bubble  { background: rgba(255,255,255,.11); color: rgba(255,255,255,.92); border-bottom-left-radius: 4px; }
.user-bubble { background: var(--color-primary); color: white; border-bottom-right-radius: 4px; }

.chat-input-bar {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; gap: 10px; align-items: center;
}
.chat-input-bar input {
  flex: 1;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: .88rem;
  color: white; outline: none;
}
.chat-input-bar input::placeholder { color: rgba(255,255,255,.38); }

.chat-send-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: white;
  transition: background .2s;
}
.chat-send-btn:hover { background: var(--color-primary-dk); }

.typing-dots span {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  margin-right: 3px;
  animation: bounce .9s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .22s; }
.typing-dots span:nth-child(3) { animation-delay: .44s; }
@keyframes bounce {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-6px); }
}

/* ─── Features ──────────────────────────────────────────────── */
.features { background: var(--color-light); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform .22s, box-shadow .22s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Icon — NO background, just the bare SVG in brand red */
.feature-icon {
  margin-bottom: 22px;
}
.feature-icon svg {
  width: 40px; height: 40px;
  color: var(--color-primary);
  display: block;
}

.feature-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-navy);
}
.feature-desc {
  font-size: .97rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ─── Bot Demo ──────────────────────────────────────────────── */
.bot-demo { background: var(--color-white); }

.bot-demo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.bot-demo-content .section-title { text-align: left; }
.bot-demo-content .section-sub   { text-align: left; margin: 0 0 32px; }

.bot-use-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 40px;
}
.bot-use-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 1.02rem;
}
.bot-use-list .check {
  width: 24px; height: 24px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: white;
  margin-top: 1px;
}
.bot-use-list .check svg { width: 13px; height: 13px; }

.chat-embed-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-navy);
  min-height: 490px;
  position: relative;
}

.chat-embed-topbar {
  background: var(--color-primary);
  padding: 17px 22px;
  display: flex; align-items: center; gap: 13px;
}
.chat-embed-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: .92rem;
  font-family: var(--font-heading);
}
.chat-embed-info { flex: 1; }
.chat-embed-name   { color: white; font-weight: 700; font-size: 1rem; font-family: var(--font-heading); }
.chat-embed-status { font-size: .78rem; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 5px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }

.chat-embed-iframe { width: 100%; height: 430px; border: none; display: block; }

.chat-embed-placeholder {
  padding: 48px 40px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  height: 430px; color: rgba(255,255,255,.45); text-align: center;
}
.chat-embed-placeholder p { font-size: .95rem; line-height: 1.65; }

/* ─── How It Works ──────────────────────────────────────────── */
.how-it-works { background: var(--color-navy); color: var(--color-white); }
.how-it-works .section-title { color: var(--color-white); }
.how-it-works .section-sub   { color: rgba(255,255,255,.62); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 0;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px; left: 18%; right: 18%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), rgba(212,32,41,.25));
}

.step-card { text-align: center; padding: 36px 22px; position: relative; }

.step-number {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 8px rgba(212,32,41,.18);
  position: relative; z-index: 1;
}

.step-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}
.step-desc { font-size: .97rem; color: rgba(255,255,255,.58); line-height: 1.7; }

/* ─── CTA ───────────────────────────────────────────────────── */
.cta-section { background: var(--color-primary); padding: 96px 0; }
.cta-inner { text-align: center; }
.cta-inner h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 16px;
}
.cta-inner p {
  font-size: 1.18rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
}
.cta-inner .btn-outline:hover { color: var(--color-primary); }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #0f1120;
  color: rgba(255,255,255,.55);
  padding: 56px 0 28px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: 36px;
}

.footer-logo img,
.footer-logo .logo-fallback { height: 42px; width: auto; opacity: .88; }

.footer-info { font-size: .92rem; line-height: 1.85; }
.footer-info a { color: rgba(255,255,255,.65); }
.footer-info a:hover { color: white; }

.footer-credit {
  font-size: .82rem;
  color: rgba(255,255,255,.28);
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-credit a { color: rgba(255,255,255,.38); }
.footer-credit a:hover { color: var(--color-primary); }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid,
  .bot-demo-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-chat { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
}

@media (max-width: 620px) {
  .features-grid { grid-template-columns: 1fr; }
  .site-nav {
    display: none;
    position: absolute; top: 82px; left: 0; right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 99;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .nav-toggle { display: block; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .section-pad { padding: 64px 0; }
}
