/*
Theme Name: WebbedUp
Theme URI: https://webbedup.com
Author: WebbedUp
Author URI: https://webbedup.com
Description: Executive Authority Platform theme. Built for Elementor with a refined editorial aesthetic — bold Playfair Display typography, gold accents, and a clean charcoal/cream/white palette inspired by First Round Capital and a16z.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webbedup
Tags: elementor, business, portfolio, custom-logo, custom-menu, featured-images, threaded-comments, full-width-template, editor-style
*/

/* ═══════════════════════════════════════════════
   WEBBEDUP THEME — BASE STYLES
   These complement Elementor. All design work
   is done in Elementor; this file handles
   resets, typography defaults, and utility classes.
═══════════════════════════════════════════════ */

:root {
  --wu-black:        #0a0a0a;
  --wu-charcoal:     #1a1a1a;
  --wu-ink:          #2d2d2d;
  --wu-mid:          #6b6b6b;
  --wu-light:        #b0b0b0;
  --wu-rule:         #e0dbd4;
  --wu-cream:        #f8f5f0;
  --wu-white:        #ffffff;
  --wu-accent:       #c4913a;
  --wu-accent-light: #e8c97a;
  --wu-accent-dark:  #9a6e28;

  --wu-ff-display: 'Playfair Display', Georgia, serif;
  --wu-ff-body:    'DM Sans', sans-serif;
  --wu-ff-mono:    'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--wu-ff-body);
  background: var(--wu-white);
  color: var(--wu-ink);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--wu-ff-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--wu-ink);
}

h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p { color: var(--wu-mid); margin-top: 0; }

a { color: var(--wu-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--wu-accent-dark); }

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

/* Remove default WordPress margins on Elementor pages */
.elementor-page .site-content,
.elementor-page #content { padding: 0; margin: 0; }

/* ─── UTILITY CLASSES ─── */
.wu-label {
  font-family: var(--wu-ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wu-accent);
  display: block;
}

.wu-rule {
  width: 2.5rem;
  height: 2px;
  background: var(--wu-accent);
  display: block;
  margin-bottom: 1.5rem;
}

.wu-mono {
  font-family: var(--wu-ff-mono);
}

/* ─── BUTTONS ─── */
.wu-btn,
.elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-family: var(--wu-ff-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  border-radius: 0 !important;
}

.wu-btn--primary,
.elementor-button.wu-btn--primary {
  background: var(--wu-accent);
  color: var(--wu-white) !important;
}
.wu-btn--primary:hover { background: var(--wu-accent-dark); transform: translateY(-1px); }

.wu-btn--outline {
  background: transparent;
  color: var(--wu-ink);
  border: 1.5px solid var(--wu-ink) !important;
}
.wu-btn--outline:hover { background: var(--wu-ink); color: var(--wu-white) !important; }

.wu-btn--outline-light {
  background: transparent;
  color: var(--wu-white) !important;
  border: 1.5px solid rgba(255,255,255,0.4) !important;
}
.wu-btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--wu-white) !important;
}

/* ─── SECTION BACKGROUNDS ─── */
.wu-bg-white    { background: var(--wu-white) !important; }
.wu-bg-cream    { background: var(--wu-cream) !important; }
.wu-bg-charcoal { background: var(--wu-charcoal) !important; }
.wu-bg-black    { background: var(--wu-black) !important; }

.wu-bg-charcoal *,
.wu-bg-black * { color: rgba(255,255,255,0.7); }
.wu-bg-charcoal h1,.wu-bg-charcoal h2,.wu-bg-charcoal h3,
.wu-bg-charcoal h4,.wu-bg-charcoal h5,.wu-bg-charcoal h6,
.wu-bg-black h1,.wu-bg-black h2,.wu-bg-black h3,
.wu-bg-black h4,.wu-bg-black h5,.wu-bg-black h6 {
  color: var(--wu-white);
}
.wu-bg-charcoal .wu-label,
.wu-bg-black .wu-label { color: var(--wu-accent-light); }

/* ─── STAT CARDS ─── */
.wu-stat-big {
  font-family: var(--wu-ff-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--wu-accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ─── NAVIGATION (non-Elementor fallback) ─── */
.wu-nav-logo {
  font-family: var(--wu-ff-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wu-black);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wu-nav-logo span { color: var(--wu-accent); }

/* ─── ELEMENTOR OVERRIDES ─── */

/* Remove Elementor default radius */
.elementor-widget-button .elementor-button {
  border-radius: 0 !important;
}

/* Form inputs */
.elementor-field-group input,
.elementor-field-group select,
.elementor-field-group textarea {
  font-family: var(--wu-ff-body) !important;
  border-radius: 0 !important;
  border: 1.5px solid var(--wu-rule) !important;
  padding: 0.75rem 1rem !important;
  transition: border-color 0.2s !important;
}
.elementor-field-group input:focus,
.elementor-field-group select:focus,
.elementor-field-group textarea:focus {
  border-color: var(--wu-accent) !important;
  outline: none !important;
}

/* Dividers */
.elementor-divider-separator {
  border-color: var(--wu-rule) !important;
}

/* ─── CUSTOM ELEMENTOR WIDGET STYLES ─── */

/* Bar Chart Widget */
.wu-bar-chart { display: flex; flex-direction: column; gap: 1.1rem; }
.wu-bar-row { display: flex; flex-direction: column; gap: 0.4rem; }
.wu-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--wu-mid);
  font-family: var(--wu-ff-mono);
}
.wu-bar-label strong { color: var(--wu-ink); font-weight: 500; }
.wu-bar-track { height: 8px; background: var(--wu-cream); position: relative; overflow: hidden; }
.wu-bar-fill {
  height: 100%;
  background: var(--wu-accent);
  width: 0;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.wu-bar-fill--gradient { background: linear-gradient(90deg, var(--wu-accent), var(--wu-accent-light)); }
.wu-bar-fill--dim { background: var(--wu-rule); }

/* Stat Counter Widget */
.wu-counter-widget {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--wu-rule);
}
.wu-counter-widget:last-child { border-right: none; }

/* Pricing Card */
.wu-pricing-card {
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3rem 2.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s;
}
.wu-pricing-card:hover { border-color: var(--wu-accent); }
.wu-pricing-card--featured {
  border-color: var(--wu-accent);
  background: rgba(196,145,58,0.06);
}

/* Pillar Cards */
.wu-pillar {
  padding: 2.75rem 2.25rem;
  border-right: 1px solid var(--wu-rule);
  transition: background 0.25s;
}
.wu-pillar:hover { background: var(--wu-cream); }

/* Step Cards */
.wu-step {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

/* Blog Post Cards */
.wu-blog-card {
  padding: 2.25rem;
  border-right: 1px solid var(--wu-rule);
  display: flex;
  flex-direction: column;
  transition: background 0.22s;
  cursor: pointer;
}
.wu-blog-card:hover { background: var(--wu-cream); }

/* Proof Cards */
.wu-proof-card {
  padding: 2.25rem;
  background: var(--wu-white);
  border: 1px solid var(--wu-rule);
}

.wu-proof-result {
  font-family: var(--wu-ff-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--wu-ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Trust badges */
.wu-badge {
  font-family: var(--wu-ff-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.75rem;
  background: rgba(196,145,58,0.12);
  color: var(--wu-accent);
  border: 1px solid rgba(196,145,58,0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
}

/* ─── HERO DIAGONAL BG ─── */
.wu-hero-section {
  position: relative;
  overflow: hidden;
}
.wu-hero-section::before {
  content: '';
  position: absolute;
  top: 0; right: -10%;
  width: 55%;
  height: 100%;
  background: var(--wu-cream);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
  pointer-events: none;
}
.wu-hero-section .elementor-container { position: relative; z-index: 1; }

/* ─── ABOUT QUOTE BOX ─── */
.wu-quote-box {
  background: var(--wu-black);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.wu-quote-box::before {
  content: '\201C';
  position: absolute;
  top: -1rem; left: 2rem;
  font-family: var(--wu-ff-display);
  font-size: 10rem;
  color: rgba(255,255,255,0.04);
  font-weight: 900;
  line-height: 1;
}

/* ─── ANIMATIONS ─── */
.wu-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.wu-fade-in.wu-visible {
  opacity: 1;
  transform: none;
}

/* ─── STICKY NAV ─── */
.elementor-sticky--active.wu-nav-sticky {
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .wu-hero-section::before { display: none; }
  .wu-pillar,
  .wu-step,
  .wu-blog-card { border-right: none; border-bottom: 1px solid var(--wu-rule); }
  .wu-counter-widget { border-right: none; border-bottom: 1px solid var(--wu-rule); }
  .wu-pricing-card { margin-bottom: 1.5rem; }
}

/* ═══════════════════════════════════════════
   NAVIGATION — Full Implementation
═══════════════════════════════════════════ */

.wu-site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--wu-rule);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.wu-site-header.wu-nav-scrolled {
    box-shadow: 0 2px 32px rgba(0,0,0,0.08);
}

.wu-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.wu-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}

/* Logo */
.wu-nav-logo {
    font-family: var(--wu-ff-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wu-black);
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.wu-nav-logo span { color: var(--wu-accent); }
.wu-nav-logo:hover { color: var(--wu-black); }

/* Nav Links */
.wu-nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.wu-nav-links li { position: relative; }

.wu-nav-links a,
.wu-nav-links li > a {
    display: block;
    font-family: var(--wu-ff-body);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--wu-mid);
    padding: 0.4rem 0.85rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.wu-nav-links a:hover,
.wu-nav-links li:hover > a,
.wu-nav-links .wu-nav-current > a,
.wu-nav-links .current-menu-item > a,
.wu-nav-links .current_page_item > a {
    color: var(--wu-black);
}

.wu-nav-links .wu-nav-current > a::after,
.wu-nav-links .current-menu-item > a::after,
.wu-nav-links .current_page_item > a::after {
    content: '';
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--wu-accent);
    margin-top: 2px;
}

/* Dropdown */
.wu-nav-links .wu-dropdown,
.wu-nav-links .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: var(--wu-white);
    border: 1px solid var(--wu-rule);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    z-index: 100;
}

.wu-nav-links li:hover > .wu-dropdown,
.wu-nav-links li:hover > .sub-menu,
.wu-nav-links li:focus-within > .wu-dropdown,
.wu-nav-links li:focus-within > .sub-menu { display: block; }

.wu-nav-links .wu-dropdown a,
.wu-nav-links .sub-menu a {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

.wu-dropdown-arrow {
    font-size: 0.6rem;
    margin-left: 0.3rem;
    opacity: 0.5;
}

/* CTA Buttons */
.wu-nav-ctas {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.wu-nav-ghost-btn {
    font-family: var(--wu-ff-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--wu-mid);
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.wu-nav-ghost-btn:hover { color: var(--wu-black); }

.wu-nav-apply-btn {
    font-size: 0.82rem !important;
    padding: 0.6rem 1.3rem !important;
    white-space: nowrap;
}

/* Hamburger */
.wu-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
}

.wu-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}
.wu-hamburger span {
    display: block;
    height: 1.5px;
    width: 100%;
    background: var(--wu-ink);
    transition: all 0.25s ease;
    transform-origin: center;
}

.wu-menu-toggle[aria-expanded="true"] .wu-hamburger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.wu-menu-toggle[aria-expanded="true"] .wu-hamburger span:nth-child(2) {
    opacity: 0; transform: scaleX(0);
}
.wu-menu-toggle[aria-expanded="true"] .wu-hamburger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Drawer */
.wu-mobile-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--wu-white);
    border-bottom: 1px solid var(--wu-rule);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
    z-index: 999;
}
.wu-mobile-drawer.wu-drawer-open { display: block; }

.wu-mobile-nav-links {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    border-top: 1px solid var(--wu-rule);
}
.wu-mobile-nav-links li { border-bottom: 1px solid var(--wu-rule); }
.wu-mobile-nav-links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem;
    color: var(--wu-ink);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}
.wu-mobile-nav-links a:hover { color: var(--wu-accent); }

.wu-mobile-ctas { display: flex; flex-direction: column; gap: 0.75rem; }

/* Body offset for fixed header */
body { padding-top: 72px; }
.elementor-page body,
body.is-elementor-page { padding-top: 72px; }

/* Page banner (used on interior pages) */
.wu-page-banner {
    background: var(--wu-cream);
    padding: 5rem 0 3.5rem;
    border-bottom: 1px solid var(--wu-rule);
}
.wu-page-banner .wu-page-banner-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3.5rem);
}
.wu-page-banner h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 0.75rem;
}
.wu-page-banner p {
    font-size: 1.05rem;
    max-width: 55ch;
}

/* Page content wrapper */
.wu-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem clamp(1.25rem, 5vw, 3.5rem) 6rem;
}

/* ─── RESPONSIVE NAV ─── */
@media (max-width: 1100px) {
    .wu-nav-links { gap: 0; }
    .wu-nav-links a { padding: 0.4rem 0.65rem; font-size: 0.82rem; }
}

@media (max-width: 960px) {
    .wu-nav-links { display: none; }
    .wu-nav-ghost-btn { display: none; }
    .wu-nav-apply-btn { display: none; }
    .wu-menu-toggle { display: flex; }
}

@media (max-width: 480px) {
    .wu-nav-inner { height: 62px; }
    body { padding-top: 62px; }
}
