/*
Theme Name: MarketingSite
Theme URI: https://marketingsite.demo.sbarron.com
Author: Pneuma
Author URI: https://sbarron.com
Description: A professional marketing/business theme with clean, modern design. Built with Tailwind CDN, Alpine.js, and GSAP animations.
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: marketingsite
*/

/* === Base Reset & Typography === */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap");

:root {
  --royal: #1e40af;
  --navy: #0f172a;
  --light: #f8fafc;
  --accent: #3b82f6;
  --accent-light: #dbeafe;
  --gold: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  color: #1e293b;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

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

/* === Visibility for GSAP === */
.gs-reveal { visibility: hidden; }
body.gsap-ready .gs-reveal { visibility: visible; }

/* === WordPress Core === */
.alignleft { float: left; margin: 0 1.5em 1.5em 0; }
.alignright { float: right; margin: 0 0 1.5em 1.5em; }
.aligncenter { display: block; margin: 1.5em auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

/* === Navigation === */
.nav-link {
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--royal);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* === Hero === */
.hero-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 40%, var(--royal) 100%);
  position: relative;
  overflow: hidden;
}
.hero-gradient::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-gradient::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(255,255,255,0.05), transparent);
  pointer-events: none;
}

/* === Cards === */
.service-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--royal), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.12);
  border-color: transparent;
}
.service-card:hover::before {
  transform: scaleX(1);
}

/* === Icon Circles === */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.service-card:hover .icon-circle {
  background: var(--royal);
  transform: scale(1.1) rotate(-5deg);
}
.service-card:hover .icon-circle svg {
  color: #fff;
}

/* === Blog Cards === */
.blog-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: all 0.4s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15,23,42,0.1);
}
.blog-card .card-img {
  height: 220px;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  position: relative;
  overflow: hidden;
}
.blog-card .card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.3), transparent);
}

/* === Testimonials === */
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  position: relative;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
}
.testimonial-card .quote-mark {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--accent-light);
  line-height: 1;
  pointer-events: none;
}

/* === Pricing === */
.pricing-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--royal);
  box-shadow: 0 20px 60px rgba(30,64,175,0.15);
  transform: scale(1.05);
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.1);
}
.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--royal), var(--accent));
  color: #fff;
  padding: 0.35rem 1.5rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === FAQ Accordion === */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: var(--accent);
}
.faq-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: color 0.3s ease;
}
.faq-btn:hover { color: var(--royal); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: #64748b;
  line-height: 1.8;
}

/* === Contact Form === */
.form-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fff;
}
.form-input:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
}

/* === Team Cards === */
.team-card {
  text-align: center;
  transition: all 0.3s ease;
}
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--accent-light), #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--royal);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}
.team-card:hover .team-avatar {
  border-color: var(--royal);
  transform: scale(1.08);
}

/* === Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--royal);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30,64,175,0.3);
  color: #fff;
}
.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

/* === Section Styles === */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--royal);
  margin-bottom: 1rem;
}
.section-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--royal);
}

/* === Footer === */
.footer-link {
  color: #94a3b8;
  transition: color 0.3s ease;
  display: block;
  padding: 0.25rem 0;
}
.footer-link:hover {
  color: #fff;
}

/* === Sidebar === */
.sidebar-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-light);
}

/* === Blog Single === */
.post-content {
  font-size: 1.1rem;
  line-height: 1.9;
}
.post-content p { margin-bottom: 1.5rem; }
.post-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}
.post-content h3 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}
.post-content ul, .post-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote {
  border-left: 4px solid var(--royal);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #475569;
}
.post-content img {
  border-radius: 12px;
  margin: 2rem 0;
}
.post-content a {
  color: var(--royal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover {
  color: var(--accent);
}

/* === Stat Counter === */
.stat-number {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--royal);
  line-height: 1;
}

/* === Smooth scroll === */
html { scroll-behavior: smooth; }

/* === Mobile Nav === */
@media (max-width: 768px) {
  .stat-number { font-size: 2.25rem; }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-8px); }
}
