/*
 Theme Name: Divi Butter Dark
 Description: Linear.app-inspired dark theme for Butter video production agency
 Template: Divi
 Version: 1.0.0
 Author: Jarvis
*/

/* ============================================
   BUTTER DARK — LINEAR-INSPIRED REDESIGN
   Accent: #F9D333 (Butter Yellow)
   Background: #0F0F0F (Near Black)
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  --bg-primary: #0F0F0F;
  --bg-secondary: #141414;
  --bg-card: #1A1A1A;
  --bg-card-hover: #1F1F1F;
  --accent: #F9D333;
  --accent-glow: rgba(249, 211, 51, 0.15);
  --accent-glow-strong: rgba(249, 211, 51, 0.25);
  --text-primary: #EDEDED;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(249, 211, 51, 0.3);
  --glass-bg: rgba(15, 15, 15, 0.80);
  --glass-border: rgba(255,255,255,0.08);
  --radius: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --- BASE --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body,
body.et_divi_builder {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  font-family: var(--font) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ============================================
   HEADER — FROSTED GLASS
   ============================================ */

#main-header,
#main-header.et-fixed-header,
.et_fixed_nav #main-header {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 24px rgba(0,0,0,0.4) !important;
  transition: all 0.3s ease !important;
}

#main-header .nav li a,
.et_mobile_menu li a {
  color: var(--text-secondary) !important;
  font-family: var(--font) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  transition: color 0.2s ease !important;
  text-transform: none !important;
}

#main-header .nav li a:hover,
#main-header .nav li.current-menu-item > a {
  color: var(--text-primary) !important;
}

.et_mobile_menu {
  background: rgba(15,15,15,0.97) !important;
  border: 1px solid var(--border) !important;
  backdrop-filter: blur(12px) !important;
}

/* ============================================
   LAYOUT
   ============================================ */

#page-container,
#main-content {
  background: var(--bg-primary) !important;
}

/* ============================================
   SECTIONS
   ============================================ */

.et_pb_section {
  background-color: var(--bg-primary) !important;
  position: relative;
}

.et_pb_section:nth-child(even) {
  background-color: var(--bg-secondary) !important;
}

.et_pb_section:first-of-type {
  background: linear-gradient(180deg, #0F0F0F 0%, #111111 100%) !important;
  position: relative;
  overflow: hidden;
}

.et_pb_section:first-of-type::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(249,211,51,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.et_pb_row {
  position: relative;
  z-index: 1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6,
.et_pb_module h1,
.et_pb_module h2,
.et_pb_module h3,
.et_pb_module h4,
.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3 {
  font-family: var(--font) !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
}

h1, .et_pb_module h1 {
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}

h2, .et_pb_module h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
}

h3, .et_pb_module h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem) !important;
  font-weight: 600 !important;
}

p,
.et_pb_text p,
.et_pb_module p {
  font-family: var(--font) !important;
  color: var(--text-secondary) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

a, .et_pb_module a {
  color: var(--accent) !important;
  text-decoration: none !important;
  transition: color 0.2s ease, opacity 0.2s ease !important;
}

a:hover { opacity: 0.85 !important; }

/* ============================================
   BUTTONS
   ============================================ */

.et_pb_button,
a.et_pb_button {
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-transform: none !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
}

.et_pb_button:hover,
a.et_pb_button:hover {
  background: var(--bg-card) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  transform: translateY(-1px) !important;
}

/* Primary button (first in hero) */
.et_pb_section:first-of-type .et_pb_button,
.et_pb_cta .et_pb_button,
.et_pb_promo .et_pb_button {
  background: var(--accent) !important;
  color: #0F0F0F !important;
  border-color: transparent !important;
}

.et_pb_section:first-of-type .et_pb_button:hover,
.et_pb_cta .et_pb_button:hover,
.et_pb_promo .et_pb_button:hover {
  background: #FFE566 !important;
  color: #0F0F0F !important;
  box-shadow: 0 0 30px var(--accent-glow-strong) !important;
  transform: translateY(-2px) !important;
}

.et_pb_button::after { display: none !important; }

/* ============================================
   BLURB CARDS
   ============================================ */

.et_pb_blurb {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 32px !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.et_pb_blurb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,211,51,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.et_pb_blurb:hover {
  border-color: var(--border-accent) !important;
  background: var(--bg-card-hover) !important;
  box-shadow: 0 0 0 1px var(--border-accent), 0 8px 40px rgba(0,0,0,0.4) !important;
  transform: translateY(-3px) !important;
}

.et_pb_blurb:hover::before { opacity: 1; }

.et_pb_blurb_title {
  font-family: var(--font) !important;
  color: var(--text-primary) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

.et_pb_blurb_content p { color: var(--text-secondary) !important; font-size: 15px !important; }

/* ============================================
   TESTIMONIALS
   ============================================ */

.et_pb_testimonial {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 32px !important;
  position: relative !important;
}

.et_pb_testimonial::before {
  content: "\201C";
  position: absolute;
  top: 20px;
  left: 32px;
  font-size: 80px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.et_pb_testimonial_description {
  color: var(--text-secondary) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  font-style: italic !important;
}

.et_pb_testimonial_author { color: var(--text-primary) !important; font-weight: 600 !important; }
.et_pb_testimonial_company { color: var(--text-muted) !important; font-size: 14px !important; }

/* ============================================
   FORMS
   ============================================ */

.et_pb_contact_form_container {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 40px !important;
}

.et_pb_contact_field input,
.et_pb_contact_field textarea,
.et_pb_contact_field select {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  font-family: var(--font) !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  transition: border-color 0.2s ease !important;
}

.et_pb_contact_field input:focus,
.et_pb_contact_field textarea:focus {
  border-color: var(--accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

.et_pb_contact_field label {
  color: var(--text-secondary) !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

.et_contact_bottom_container button,
.et_pb_contact_submit {
  background: var(--accent) !important;
  color: #0F0F0F !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 32px !important;
  font-family: var(--font) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.et_contact_bottom_container button:hover,
.et_pb_contact_submit:hover {
  background: #FFE566 !important;
  box-shadow: 0 0 20px var(--accent-glow-strong) !important;
  transform: translateY(-1px) !important;
}

/* ============================================
   VIDEO & MEDIA
   ============================================ */

.et_pb_video {
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
  border: 1px solid var(--border) !important;
}

.et_pb_image { border-radius: var(--radius) !important; overflow: hidden !important; }
.et_pb_image img { border-radius: var(--radius) !important; transition: transform 0.4s ease !important; }
.et_pb_image:hover img { transform: scale(1.02) !important; }

/* ============================================
   CTA SECTIONS
   ============================================ */

.et_pb_promo,
.et_pb_cta {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a1a 100%) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 60px !important;
  position: relative !important;
  overflow: hidden !important;
}

.et_pb_promo::after,
.et_pb_cta::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   FULLWIDTH HEADER (HERO)
   ============================================ */

.et_pb_fullwidth_header {
  position: relative;
  overflow: hidden;
}

.et_pb_fullwidth_header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.et_pb_fullwidth_header_subhead {
  font-family: var(--font) !important;
  color: var(--text-secondary) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

.et_pb_fullwidth_header_title {
  font-family: var(--font) !important;
  color: var(--text-primary) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}

/* ============================================
   FOOTER
   ============================================ */

#main-footer,
#footer-bottom {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border) !important;
}

#footer-widgets .footer-widget h4,
#footer-widgets .footer-widget .title {
  color: var(--text-primary) !important;
  font-family: var(--font) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}

#footer-widgets .footer-widget ul li a,
#footer-widgets .footer-widget p {
  color: var(--text-muted) !important;
  font-family: var(--font) !important;
  font-size: 14px !important;
  transition: color 0.2s ease !important;
}

#footer-widgets .footer-widget ul li a:hover { color: var(--text-primary) !important; }

#footer-info {
  color: var(--text-muted) !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  padding: 20px 0 !important;
}

#footer-info a { color: var(--text-muted) !important; }
#footer-info a:hover { color: var(--accent) !important; }

/* ============================================
   DIVIDER
   ============================================ */

.et_pb_divider { border-color: var(--border) !important; }

/* ============================================
   COUNTER / STATS
   ============================================ */

.et_pb_counter_container {
  background: var(--bg-card) !important;
  border-radius: var(--radius) !important;
  padding: 32px !important;
  border: 1px solid var(--border) !important;
}

.et_pb_counter_amount {
  color: var(--accent) !important;
  font-family: var(--font) !important;
  font-weight: 800 !important;
  font-size: 3rem !important;
  letter-spacing: -0.04em !important;
}

.et_pb_counter_title { color: var(--text-secondary) !important; font-family: var(--font) !important; }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.et_pb_module { animation: fadeUp 0.5s ease both; }
.et_pb_column:nth-child(2) .et_pb_module { animation-delay: 0.1s; }
.et_pb_column:nth-child(3) .et_pb_module { animation-delay: 0.2s; }
.et_pb_column:nth-child(4) .et_pb_module { animation-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 980px) {
  h1, .et_pb_module h1 { font-size: clamp(2rem, 8vw, 3rem) !important; }
  .et_pb_blurb { padding: 24px !important; }
  .et_pb_promo, .et_pb_cta { padding: 40px 24px !important; }
}

/* ============================================
   CLIENT LOGOS
   ============================================ */

.et_pb_image img[alt*="logo"],
.client-logo img {
  filter: grayscale(100%) brightness(0.5) !important;
  opacity: 0.5 !important;
  transition: all 0.3s ease !important;
}

.et_pb_image:hover img[alt*="logo"],
.client-logo:hover img {
  filter: grayscale(0%) brightness(1) !important;
  opacity: 1 !important;
}
