/*
Theme Name: ellodigital
Theme URI: https://ellodigital.com
Author: ellodigital
Author URI: https://ellodigital.com
Description: A modern, clean email marketing agency theme built for full Elementor compatibility. Every section is editable with Elementor page builder and Theme Builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: ellodigital
Tags: one-column, custom-menu, featured-images, full-site-editing, page-builder, elementor, translation-ready
*/

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

:root {
  --ello-white: #ffffff;
  --ello-off-white: #f8f9fa;
  --ello-ghost: #f1f3f5;
  --ello-light-gray: #e9ecef;
  --ello-mid-gray: #adb5bd;
  --ello-dark: #1a1a2e;
  --ello-darker: #0f0f1a;
  --ello-accent: #0066ff;
  --ello-accent-light: #e8f0ff;
  --ello-accent-glow: rgba(0, 102, 255, 0.12);
  --ello-gradient: linear-gradient(135deg, #0066ff 0%, #5c7cfa 50%, #845ef7 100%);
  --ello-font-display: 'Outfit', sans-serif;
  --ello-font-body: 'DM Sans', sans-serif;
  --ello-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ello-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ello-radius: 20px;
  --ello-radius-sm: 14px;
  --ello-radius-pill: 100px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ello-font-body);
  background: var(--ello-white);
  color: var(--ello-dark);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: var(--ello-accent); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ello-off-white); }
::-webkit-scrollbar-thumb { background: var(--ello-accent); border-radius: 3px; }

/* ─── WordPress Core Alignment ─── */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.aligncenter { text-align: center; }

/* ─── Default Content Styling ─── */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-family: var(--ello-font-display);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 0.5em;
}
.entry-content p { margin-bottom: 1.2em; }

/* ─── Elementor Overrides for Theme Consistency ─── */
body .elementor {
  font-family: var(--ello-font-body);
  color: var(--ello-dark);
}
body .elementor h1,
body .elementor h2,
body .elementor h3,
body .elementor h4,
body .elementor h5,
body .elementor h6 {
  font-family: var(--ello-font-display);
}

/* ─── Elementor Widget Helpers ─── */
.ello-section-tag {
  font-family: var(--ello-font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ello-accent);
}
.ello-gradient-text {
  background: var(--ello-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Fallback Header (when Elementor Theme Builder not active) ─── */
.ello-fallback-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ello-ease-out);
}
.ello-fallback-header.scrolled {
  padding: 14px 48px;
  border-bottom-color: var(--ello-light-gray);
  box-shadow: 0 1px 30px rgba(0,0,0,0.04);
}
.ello-site-logo {
  font-family: var(--ello-font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ello-darker);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ello-site-logo span { color: var(--ello-accent); }
.ello-site-logo svg { flex-shrink: 0; }

/* Fallback Nav Menu */
.ello-nav-menu { display: flex; gap: 32px; align-items: center; list-style: none; }
.ello-nav-menu li a {
  font-family: var(--ello-font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ello-dark);
  position: relative;
}
.ello-nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ello-accent);
  transition: width 0.3s var(--ello-ease-out);
}
.ello-nav-menu li a:hover::after { width: 100%; }
.ello-nav-menu li:last-child a {
  padding: 10px 24px;
  background: var(--ello-dark);
  color: var(--ello-white);
  border-radius: var(--ello-radius-pill);
}
.ello-nav-menu li:last-child a::after { display: none; }
.ello-nav-menu li:last-child a:hover {
  background: var(--ello-accent);
  color: var(--ello-white);
}

/* Mobile hamburger */
.ello-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.ello-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ello-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Fallback Footer ─── */
.ello-fallback-footer {
  background: var(--ello-darker);
  color: var(--ello-white);
  padding: 80px 48px 40px;
}
.ello-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.ello-footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 300px;
}
.ello-fallback-footer h4 {
  font-family: var(--ello-font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.5);
}
.ello-footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ello-footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.ello-footer-links a:hover { color: var(--ello-white); }
.ello-footer-bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}
.ello-footer-socials { display: flex; gap: 16px; }
.ello-footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
}
.ello-footer-socials a:hover {
  border-color: var(--ello-accent);
  color: var(--ello-accent);
  background: rgba(0,102,255,0.1);
}
.ello-footer-socials a svg { width: 16px; height: 16px; }

/* ─── Hero Background Blobs ─── */
.ello-hero-section { position: relative; overflow: hidden; }
.ello-hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--ello-accent-glow) 0%, transparent 70%);
  animation: elloFloat 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.ello-hero-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(132,94,247,0.08) 0%, transparent 70%);
  animation: elloFloat 15s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}
.ello-hero-section > .elementor-container { position: relative; z-index: 1; }
@keyframes elloFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.05); }
  66% { transform: translate(-20px,20px) scale(0.95); }
}

/* ─── Card Hover Effects (used by Elementor HTML widgets) ─── */
.ello-card {
  background: var(--ello-white);
  border: 1px solid var(--ello-light-gray);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ello-ease-out);
}
.ello-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ello-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ello-ease-out);
}
.ello-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,102,255,0.2);
  box-shadow: 0 20px 50px rgba(0,102,255,0.06);
}
.ello-card:hover::before { transform: scaleX(1); }

/* ─── Elementor Section Overrides ─── */
.elementor-section.elementor-section-stretched { max-width: 100vw; }

/* Fix Elementor widget spacing in our sections */
.elementor-widget-html { width: 100%; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .ello-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .ello-fallback-header { padding: 16px 24px; }
  .ello-fallback-header.scrolled { padding: 12px 24px; }
  .ello-hamburger { display: flex; }
  .ello-nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--ello-white);
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }
  .ello-nav-menu.open { display: flex; }
  .ello-nav-menu li a { font-size: 1.2rem; }
  .ello-fallback-footer { padding: 60px 24px 30px; }
  .ello-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .ello-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
