/*
Theme Name: Kadence Child - EdWeb
Template: kadence
Version: 1.0.0
Description: Custom child theme for EdWeb Solutions blog
Author: EdWeb Solutions
*/

/* EdWeb Brand Colors */
:root {
  --edweb-primary: #3c2484;
  --edweb-accent: #ffd943;
  --edweb-text: #374151;
  --edweb-text-light: #6b7280;
  --edweb-gray-100: #f3f4f6;
  --edweb-gray-200: #e5e7eb;
  --edweb-gray-300: #d1d5db;
}

/* Hide default Kadence header/footer - we use custom */
#masthead,
.site-header,
header.entry-header,
.kadence-header-wrap {
  display: none !important;
}

#colophon,
.site-footer-wrap,
footer.site-footer {
  display: none !important;
}

/* Custom Top Bar */
.edweb-topbar {
  background-color: var(--edweb-primary);
  color: white;
  font-size: 12px;
  padding: 6px 0;
}

.edweb-topbar a {
  color: white;
  text-decoration: none;
}

.edweb-topbar a:hover {
  color: var(--edweb-accent);
}

.edweb-topbar .social-icons a {
  margin-right: 12px;
}

/* Custom Header */
.edweb-header {
  background-color: var(--edweb-primary);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.edweb-header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edweb-header .logo-wrap {
  background: white;
  border-radius: 4px;
  padding: 4px;
}

.edweb-header .logo-wrap img {
  height: 40px;
  width: auto;
}

.edweb-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.edweb-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.edweb-nav a:hover {
  color: var(--edweb-accent);
}

.edweb-nav .dropdown {
  position: relative;
}

.edweb-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 8px 0;
  z-index: 1000;
}

.edweb-nav .dropdown:hover .dropdown-menu {
  display: block;
}

.edweb-nav .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--edweb-text);
  font-size: 13px;
}

.edweb-nav .dropdown-menu a:hover {
  background: var(--edweb-gray-100);
  color: var(--edweb-primary);
}

.edweb-cta-btn {
  background: var(--edweb-accent);
  color: var(--edweb-primary) !important;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
}

.edweb-cta-btn:hover {
  background: #e6c33b;
  color: var(--edweb-primary) !important;
}

/* Mobile Menu */
.edweb-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.edweb-mobile-menu {
  display: none;
  background: white;
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.edweb-mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--edweb-text);
  text-decoration: none;
  border-bottom: 1px solid var(--edweb-gray-200);
}

.edweb-mobile-menu a:hover {
  color: var(--edweb-primary);
}

@media (max-width: 1024px) {
  .edweb-nav {
    display: none;
  }

  .edweb-mobile-toggle {
    display: block;
  }

  .edweb-mobile-menu.active {
    display: block;
  }
}

/* Custom Footer */
.edweb-footer {
  background: var(--edweb-gray-100);
  padding: 40px 0 0;
  margin-top: 40px;
}

.edweb-footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.edweb-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .edweb-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .edweb-footer-grid {
    grid-template-columns: 1fr;
  }
}

.edweb-footer h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--edweb-primary);
  margin-bottom: 12px;
}

.edweb-footer p {
  font-size: 12px;
  color: var(--edweb-text-light);
  line-height: 1.6;
}

.edweb-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edweb-footer li {
  margin-bottom: 6px;
}

.edweb-footer a {
  color: var(--edweb-text-light);
  text-decoration: none;
  font-size: 12px;
}

.edweb-footer a:hover {
  color: var(--edweb-primary);
}

.edweb-footer .social-icons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.edweb-footer .social-icons a {
  width: 32px;
  height: 32px;
  background: var(--edweb-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  transition: background 0.2s;
}

.edweb-footer .social-icons a:hover {
  background: var(--edweb-accent);
}

.edweb-footer .contact-box {
  background: var(--edweb-primary);
  color: white;
  padding: 16px;
  border-radius: 8px;
}

.edweb-footer .contact-box h4 {
  color: white;
}

.edweb-footer .contact-box a {
  color: white;
}

.edweb-footer .contact-box a:hover {
  color: var(--edweb-accent);
}

.edweb-footer-bottom {
  border-top: 1px solid var(--edweb-gray-300);
  margin-top: 32px;
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: var(--edweb-text-light);
}

/* Blog specific styles */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
}

.site-main {
  padding: 40px 16px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Better typography */
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Poppins, Inter, sans-serif;
}

/* Font Awesome icons */
.fa {
  font-family: FontAwesome;
}

/* Post CTA Banner */
.edweb-post-cta {
  margin: 40px 0 20px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--edweb-primary), #5b3aad, var(--edweb-primary));
  position: relative;
}

.edweb-post-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 217, 67, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.edweb-post-cta::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.edweb-post-cta-inner {
  position: relative;
  z-index: 1;
  padding: 40px 32px;
  text-align: center;
}

.edweb-post-cta-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  backdrop-filter: blur(4px);
}

.edweb-post-cta-icon .fa {
  font-size: 22px;
  color: var(--edweb-accent);
}

.edweb-post-cta h3 {
  color: white;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  font-family: Poppins, Inter, sans-serif;
}

.edweb-post-cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin: 0 auto 24px;
  max-width: 480px;
  line-height: 1.6;
}

.edweb-post-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.edweb-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--edweb-accent);
  color: var(--edweb-primary) !important;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.edweb-cta-primary:hover {
  background: #e6c33b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 217, 67, 0.3);
}

.edweb-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white !important;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.edweb-cta-phone:hover {
  background: white;
  color: var(--edweb-primary) !important;
  border-color: white;
}

.edweb-cta-phone .fa {
  font-size: 14px;
}

@media (max-width: 480px) {
  .edweb-post-cta-inner {
    padding: 32px 20px;
  }

  .edweb-post-cta h3 {
    font-size: 18px;
  }

  .edweb-post-cta-buttons {
    flex-direction: column;
  }

  .edweb-cta-primary,
  .edweb-cta-phone {
    justify-content: center;
    width: 100%;
  }
}
