/*
Theme Name: Brightn8
Theme URI:  https://brightn8.com/brightn8
Author: Brightn8
Author URI: https://brightn8.com
Description: Brightn8 — a high-converting, AI-powered WordPress theme for service-based businesses. Designed to create smart landing pages, optimized funnels, and automated workflows that drive leads, bookings, and sales. Built with a clean, user-friendly structure, fully integrated with AI automation tools to streamline operations and enhance customer engagement.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brightn8
Tags: custom-background, custom-logo, blog, e-commerce, responsive-layout, accessibility-ready
*/

/* --- Theme styles follow --- */

/* 
 * This file is required by WordPress to recognize the theme.
 * All styles are loaded from assets/css/main.css via functions.php
 */
/* ============================
   GLOBAL DARK BACKGROUND FIX
   ============================ */

/* Main sections */
body,
.hero,
.section,
.contact-section {
  background-color: #0b1220 !important;
  color: #ffffff;
}

/* Hero text adjustments */
.hero-title,
.section-title,
.hero-subtitle,
.section-subtitle,
p,
li {
  color: #e5e7eb;
}

/* Light gradient hero override */
.hero[style*="linear-gradient"] {
  background: #0b1220 !important;
}

/* ============================
   GLOBAL BUTTON STYLE (ONE COLOR)
   ============================ */

:root {
  --brightn8-primary: #38bdf8; /* Brightn8 brand blue */
  --brightn8-primary-hover: #0ea5e9;
}

/* All buttons & CTA links */
button,
.btn,
.audit-btn-dark,
.cta-box button,
a.btn,
a.btn-primary,
a.btn-secondary {
  background-color: var(--brightn8-primary) !important;
  color: #000 !important;
  border: none !important;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.25s ease;
}

/* Hover state */
button:hover,
.btn:hover,
.audit-btn-dark:hover,
.cta-box button:hover,
a.btn:hover {
  background-color: var(--brightn8-primary-hover) !important;
  color: #000 !important;
}

/* Remove conflicting inline colors */
.audit-btn-dark {
  box-shadow: 0 0 0 0 transparent !important;
}
/* ============================
   AI AUDIT SECTION – LIGHT STYLE
   ============================ */

.ai-audit-section-light {
  background-color: #171c26; 
  padding: 70px 20px;
  text-align: center;
}

/* Headings inside light section */
.ai-audit-section-light h1,
.ai-audit-section-light p {
  color: #0b1220;
}

/* CTA button – Brightn8 brand */
.audit-btn-dark {
  background-color: #38bdf8; /* Brightn8 blue */
  color: #000;
  padding: 18px 42px;
  font-size: 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: 0.25s ease;
}

.audit-btn-dark:hover {
  background-color: #0ea5e9;
}

.portfolio-slider {
    position: relative;
    max-width: 1100px;
    margin: 60px auto 0;
    overflow: hidden;
    border-radius: 20px;
}

.slider-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.portfolio-slide {
    min-width: 100%;
    background: #0f172a;
    color: #fff;
}

.portfolio-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.slide-content {
    padding: 30px;
    text-align: center;
}

.slide-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 16px;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto 15px;
}

.portfolio-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tag {
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
}

/* Buttons */
.slider-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 50%;
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.slider-dots span {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.4;
}
/* ============================
   RESPONSIVE – MOBILE & TABLET
   ============================ */

/* Container */
.container {
  max-width: 1200px;
  width: 100%;
  padding: 16px;
  margin: auto;
}

/* Hero Title */
.hero-title {
  font-size: 48px;
  line-height: 1.2;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 12px;
}

/* Section spacing */
.section {
  padding: 80px 40px;
}

/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
}

/* Base = mobile */
body {
  font-size: 16px;
}

/* ============================
   MOBILE (≤ 768px)
   ============================ */
@media (max-width: 768px) {

  .hero-title {
    font-size: 28px;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 40px 16px;
  }

  .chat-widget {
    bottom: 80px !important;
  }
}

/* ============================
   TABLET & UP (≥ 768px)
   ============================ */
@media (min-width: 768px) {
  body {
    font-size: 18px;
  }
}
/* ============================
   RESPONSIVE IMAGE — FINAL
   ============================ */

/* Works for all images inside hero / sections */
.hero-image img,
.section img,
img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Mobile safety guard */
@media (max-width: 768px) {
  .hero-image img {
    max-height: 65vh;
  }
}
/* ============================
   BRIGHTN8 HERO SWIPE SLIDER
   ============================ */

.brightn8-hero-slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  touch-action: pan-y;
}

.brightn8-hero-slider img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: none;
  object-fit: contain;
}

.brightn8-hero-slider img.active {
  display: block;
}

/* Mobile guard */
@media (max-width: 768px) {
  .brightn8-hero-slider img {
    max-height: 65vh;
  }
}

