/*
Theme Name: SmartAdsWorks
Theme URI: https://smartadsworks.com
Author: SmartAdsWorks
Author URI: https://smartadsworks.com
Description: Professional digital marketing agency theme for SmartAdsWorks. Fully compatible with Elementor Pro. Features dark theme with lime-green accents, animated sections, and mobile-first responsive design.
Version: 1.0.0
Requires at least: 6.0
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: smartadsworks
Tags: elementor, dark, marketing, agency, one-page, responsive
*/

/* ===================================================
   THEME DESIGN TOKENS
   =================================================== */
:root {
  --saw-bg-primary:    #0F2437;
  --saw-bg-secondary:  #17344D;
  --saw-bg-dark:       #050505;
  --saw-accent-lime:   #A0FF00;
  --saw-accent-blue:   #2F68E2;
  --saw-accent-amber:  #FDBE19;
  --saw-text-white:    #FEFEFE;
  --saw-text-muted:    rgba(161,161,170,1);
  --saw-border-subtle: rgba(255,255,255,0.08);
  --saw-font-main:     'DM Sans', 'Inter', sans-serif;
  --saw-font-display:  'DM Serif Display', serif;
  --saw-radius-card:   2rem;
  --saw-radius-sm:     0.75rem;
  --saw-transition:    0.3s cubic-bezier(0.16,1,0.3,1);
}

/* ===================================================
   GLOBAL RESET & BASE
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--saw-font-main);
  background-color: var(--saw-bg-primary);
  color: var(--saw-text-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--saw-transition); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===================================================
   TYPOGRAPHY
   =================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--saw-font-main);
  font-weight: 800;
  line-height: 1.15;
  color: var(--saw-text-white);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

p { color: var(--saw-text-muted); line-height: 1.75; }

.saw-accent { color: var(--saw-accent-lime) !important; }
.saw-accent-blue { color: var(--saw-accent-blue) !important; }

/* ===================================================
   LAYOUT UTILITIES
   =================================================== */
.saw-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.saw-section {
  padding: 5rem 0;
}

.saw-section-sm { padding: 3rem 0; }
.saw-section-lg { padding: 8rem 0; }

/* ===================================================
   HEADER / NAVIGATION
   =================================================== */
#saw-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(15, 36, 55, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--saw-border-subtle);
  transition: background var(--saw-transition), box-shadow var(--saw-transition);
}

#saw-header.scrolled {
  background: rgba(15, 36, 55, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.saw-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.saw-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--saw-text-white);
}

.saw-logo span { color: var(--saw-accent-lime); }

.saw-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.saw-nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--saw-transition);
}

.saw-nav-links a:hover,
.saw-nav-links a.active { color: var(--saw-text-white); }

.saw-btn-audit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--saw-accent-lime);
  color: #000 !important;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 100px;
  transition: all var(--saw-transition);
}

.saw-btn-audit:hover {
  background: #84D319;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(160,255,0,0.4);
}

.saw-btn-pill {
  background: #000;
  color: var(--saw-accent-lime);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 100px;
}

/* Mobile hamburger */
.saw-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}

.saw-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--saw-text-white);
  border-radius: 2px;
  transition: all var(--saw-transition);
}

/* Mobile menu */
.saw-mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--saw-bg-primary);
  border-bottom: 1px solid var(--saw-border-subtle);
  padding: 1.5rem;
  z-index: 999;
}

.saw-mobile-menu.open { display: block; }

.saw-mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--saw-border-subtle);
  color: rgba(255,255,255,0.8);
}

.saw-mobile-menu a:last-child { border-bottom: none; }

/* ===================================================
   BUTTONS
   =================================================== */
.saw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all var(--saw-transition);
  cursor: pointer;
}

.saw-btn-primary {
  background: var(--saw-accent-lime);
  color: #000;
  box-shadow: 0 4px 20px rgba(160,255,0,0.25);
}

.saw-btn-primary:hover {
  background: #84D319;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(160,255,0,0.4);
}

.saw-btn-outline {
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--saw-text-white);
}

.saw-btn-outline:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

.saw-btn-blue {
  background: var(--saw-accent-blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(47,104,226,0.3);
}

.saw-btn-blue:hover {
  background: #1A4BBA;
  transform: translateY(-2px);
}

/* ===================================================
   CARDS
   =================================================== */
.saw-card {
  background: var(--saw-bg-primary);
  border: 1px solid var(--saw-border-subtle);
  border-radius: var(--saw-radius-card);
  padding: 2rem;
  transition: border-color var(--saw-transition), transform var(--saw-transition);
  position: relative;
  overflow: hidden;
}

.saw-card:hover {
  border-color: rgba(160,255,0,0.3);
  transform: translateY(-4px);
}

.saw-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--saw-text-white);
  margin-bottom: 0.75rem;
}

.saw-card-desc {
  font-size: 0.95rem;
  color: var(--saw-text-muted);
  line-height: 1.7;
}

/* Metric box */
.saw-metric-box {
  background: #FFFFFF;
  border: 1px solid rgba(15,37,55,0.12);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(15,37,55,0.06);
}

.saw-metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--saw-bg-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.saw-metric-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--saw-bg-primary);
  margin-top: 0.35rem;
}

/* Tag pills */
.saw-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.375rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(212,212,216,1);
}

/* Section badge */
.saw-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: rgba(160,255,0,0.1);
  border: 1px solid rgba(160,255,0,0.2);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--saw-accent-lime);
  margin-bottom: 1.5rem;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.saw-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.saw-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(47,104,226,0.15), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(160,255,0,0.08), transparent 50%);
  pointer-events: none;
}

.saw-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.saw-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--saw-accent-lime);
  margin-bottom: 1.25rem;
}

.saw-hero-title {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.saw-hero-subtitle {
  font-size: 1.1rem;
  color: var(--saw-text-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* Lead form */
.saw-lead-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.saw-lead-form h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.saw-form-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--saw-text-white);
  font-family: var(--saw-font-main);
  transition: border-color var(--saw-transition);
  margin-bottom: 1rem;
}

.saw-form-input::placeholder { color: rgba(255,255,255,0.35); }
.saw-form-input:focus {
  outline: none;
  border-color: var(--saw-accent-lime);
}

/* ===================================================
   STATS BAND
   =================================================== */
.saw-stats-band {
  background: var(--saw-bg-secondary);
  border-top: 1px solid var(--saw-border-subtle);
  border-bottom: 1px solid var(--saw-border-subtle);
  padding: 2.5rem 0;
}

.saw-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.saw-stat-item {
  text-align: center;
}

.saw-stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--saw-accent-lime);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.saw-stat-label {
  font-size: 0.8rem;
  color: var(--saw-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===================================================
   SERVICES GRID
   =================================================== */
.saw-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.saw-service-card-wide {
  grid-column: span 2;
}

/* ===================================================
   TEAM CARDS
   =================================================== */
.saw-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.saw-team-card {
  background: var(--saw-bg-primary);
  border: 1px solid var(--saw-border-subtle);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: border-color var(--saw-transition), transform var(--saw-transition);
}

.saw-team-card:hover {
  border-color: rgba(160,255,0,0.3);
  transform: translateY(-4px);
}

.saw-team-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--saw-bg-secondary);
}

.saw-team-card-body {
  padding: 1.25rem;
}

.saw-team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--saw-accent-lime);
  margin-bottom: 0.25rem;
}

.saw-team-role {
  font-size: 0.8rem;
  color: var(--saw-text-muted);
}

/* ===================================================
   FOOTER
   =================================================== */
#saw-footer {
  background: var(--saw-bg-dark);
  border-top: 1px solid var(--saw-border-subtle);
  padding: 5rem 0 2rem;
  position: relative;
}

.saw-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.saw-footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--saw-text-white);
  margin-bottom: 1rem;
  display: inline-block;
}

.saw-footer-logo span { color: var(--saw-accent-lime); }

.saw-footer-desc {
  font-size: 0.875rem;
  color: var(--saw-text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.saw-footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--saw-text-white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.saw-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.saw-footer-links a {
  font-size: 0.875rem;
  color: var(--saw-text-muted);
  transition: color var(--saw-transition);
}

.saw-footer-links a:hover { color: var(--saw-text-white); }

.saw-footer-bottom {
  border-top: 1px solid var(--saw-border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.saw-footer-bottom p,
.saw-footer-bottom a {
  font-size: 0.8rem;
  color: rgba(113,113,122,1);
}

.saw-footer-bottom a:hover { color: var(--saw-text-white); }

/* Social icons */
.saw-social-links {
  display: flex;
  gap: 0.75rem;
}

.saw-social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--saw-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--saw-text-white);
  transition: all var(--saw-transition);
}

.saw-social-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

/* ===================================================
   WHATSAPP WIDGET
   =================================================== */
.saw-whatsapp-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.saw-whatsapp-bubble {
  background: #fff;
  color: #27272A;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  max-width: 200px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
}

.saw-whatsapp-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.saw-whatsapp-btn {
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--saw-transition);
  cursor: pointer;
}

.saw-whatsapp-btn:hover {
  background: #20BD5A;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

/* ===================================================
   ELEMENTOR OVERRIDES
   =================================================== */
.elementor-section { position: relative; }
.elementor-widget-wrap { position: relative; }

/* Ensure Elementor respects our dark theme */
.elementor-page {
  background-color: var(--saw-bg-primary);
  color: var(--saw-text-white);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .saw-hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .saw-services-grid { grid-template-columns: 1fr 1fr; }
  .saw-service-card-wide { grid-column: span 1; }
  .saw-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .saw-nav-links { display: none; }
  .saw-hamburger { display: flex; }
  .saw-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .saw-services-grid { grid-template-columns: 1fr; }
  .saw-footer-grid { grid-template-columns: 1fr; }
  .saw-footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .saw-stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .saw-stat-value { font-size: 2rem; }
}

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes saw-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes saw-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.saw-animate-fade-up {
  animation: saw-fade-up 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

.saw-animate-fade-in {
  animation: saw-fade-in 0.5s ease both;
}

/* Scroll reveal */
.saw-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.saw-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
