/* ===================================
   Janava Theme - Main Stylesheet
   Based on Divi WordPress Theme
   =================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Matching Divi Colors */
:root {
  --color-primary: #8386fe;
  --color-primary-dark: #6b6ef0;
  --color-primary-light: #9d9fff;
  --color-secondary: #e2e3ff;
  --color-accent: #d1fb79;
  --color-text: #4e4e4e;
  --color-text-dark: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-light: #f8f8f8;
  --color-bg-section: #f5f5f5;
  --color-border: #e2e2e2;
  --font-body: 'Open Sans', Arial, sans-serif;
  --max-width: 1080px;
  --content-width: 823px;
  --header-height: 80px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7em;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-dark);
  padding-bottom: 10px;
  line-height: 1em;
  font-weight: 500;
  margin-bottom: 1rem;
}

h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
  padding-bottom: 1em;
}

p:last-of-type {
  padding-bottom: 0;
}

strong {
  font-weight: 700;
}

/* Container */
.container {
  width: 80%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

/* Buttons - Divi Style */
.btn {
  display: inline-block;
  font-size: 20px;
  font-weight: 500;
  padding: 0.3em 1em;
  line-height: 1.7em !important;
  background-color: transparent;
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
  border: 2px solid;
  border-radius: 3px;
  transition-duration: 0.2s;
  transition-property: all !important;
  cursor: pointer;
  position: relative;
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
}

.btn-lg {
  font-size: 22px;
  padding: 0.4em 1.5em;
}

/* ===================================
   Header - Divi Style
   =================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo img {
  height: 45px;
  width: auto;
}

.logo-text {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: var(--color-text-dark);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.header-cta {
  padding: 0.5em 1.5em;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
}

/* ===================================
   Hero Section - Divi Style
   =================================== */
.hero {
  padding: calc(var(--header-height) + 60px) 0 60px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 40px;
  line-height: 1.2em;
  margin-bottom: 20px;
  color: var(--color-text-dark);
}

.hero-content p {
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.7em;
}

.hero-image img {
  border-radius: 8px;
}

/* ===================================
   Pain Points Section
   =================================== */
.pain-points {
  padding: 80px 0;
  text-align: center;
}

.pain-points h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7em;
}

.solutions {
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: left;
}

.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--color-bg-light);
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
}

.check-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.solution-item p {
  margin: 0;
  line-height: 1.6em;
}

.solutions-outcome {
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.7em;
}

/* ===================================
   Services Section
   =================================== */
.services {
  padding: 80px 0;
  background: var(--color-bg-section);
}

.services h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.7em;
}

.service-link {
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.service-link:hover {
  color: var(--color-primary-dark);
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
  padding: 80px 0;
}

.testimonials h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--color-bg-light);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.7em;
  padding: 0;
  border: none;
}

.testimonial-author strong {
  display: block;
  color: var(--color-text-dark);
  margin-bottom: 3px;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ===================================
   About Section
   =================================== */
.about {
  padding: 80px 0;
  background: var(--color-bg-section);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.7em;
}

.about-image img {
  border-radius: 8px;
}

/* ===================================
   Blog Preview Section
   =================================== */
.blog-preview {
  padding: 80px 0;
}

.blog-preview h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 10px;
}

.blog-preview .section-subtitle {
  text-align: center;
  margin-bottom: 40px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.post-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.post-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.post-content h3 a {
  color: var(--color-text-dark);
}

.post-content h3 a:hover {
  color: var(--color-primary);
}

.post-content time {
  font-size: 13px;
  color: var(--color-text-light);
}

.blog-preview .btn-secondary {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
  padding: 80px 0;
  background: var(--color-primary);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  font-size: 32px;
  margin-bottom: 15px;
}

.cta-section > .container > p {
  font-size: 16px;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7em;
}

.cta-content h3 {
  color: white;
  font-size: 22px;
  margin-bottom: 15px;
}

.cta-content p {
  opacity: 0.95;
  line-height: 1.7em;
}

.cta-content .btn-primary {
  background: white;
  color: var(--color-primary);
  border-color: white;
  margin: 25px 0;
}

.cta-content .btn-primary:hover {
  background: var(--color-bg-light);
  border-color: var(--color-bg-light);
}

.cta-note {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.6em;
}

/* ===================================
   Footer - Divi Style
   =================================== */
.site-footer {
  background: #2b2b2b;
  color: white;
  padding: 50px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-brand .logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.footer-nav a {
  color: white;
  opacity: 0.8;
  font-size: 14px;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-cta {
  text-align: right;
}

.footer-cta .btn-primary {
  background: white;
  color: #2b2b2b;
  border-color: white;
  font-size: 14px;
  padding: 0.3em 1.2em;
}

.footer-cta .btn-primary:hover {
  background: var(--color-bg-light);
  border-color: var(--color-bg-light);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 25px;
}

.footer-links a {
  color: white;
  opacity: 0.7;
  font-size: 13px;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.footer-social a {
  color: white;
  opacity: 0.7;
  font-size: 13px;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  opacity: 0.6;
  margin: 0;
}

/* ===================================
   Post Page
   =================================== */
.post-full {
  padding-top: var(--header-height);
}

.post-header {
  padding: 60px 0 30px;
  text-align: center;
}

.post-tag {
  display: inline-block;
  padding: 5px 15px;
  background: var(--color-primary);
  color: white;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.post-header h1 {
  font-size: 36px;
  max-width: 800px;
  margin: 0 auto 15px;
}

.post-meta {
  color: var(--color-text-light);
  font-size: 14px;
}

.reading-time {
  margin-left: 15px;
}

.post-feature-image {
  margin-bottom: 40px;
}

.post-feature-image img {
  border-radius: 8px;
  max-height: 500px;
  width: 100%;
  object-fit: cover;
}

.post-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-bottom: 40px;
}

.post-content img {
  border-radius: 8px;
  margin: 25px 0;
}

.post-content blockquote {
  border-left: 5px solid var(--color-primary);
  padding-left: 20px;
  margin: 25px 0;
  font-style: italic;
  color: var(--color-text);
}

.post-tags {
  padding: 25px 0;
  border-top: 1px solid var(--color-border);
}

.post-tags a {
  display: inline-block;
  padding: 5px 12px;
  background: var(--color-bg-light);
  color: var(--color-text);
  border-radius: 3px;
  font-size: 13px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 0;
  border-top: 1px solid var(--color-border);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info strong {
  display: block;
  margin-bottom: 3px;
}

.author-info p {
  color: var(--color-text-light);
  margin: 0;
  font-size: 14px;
}

.related-posts {
  padding: 60px 0;
  background: var(--color-bg-section);
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* ===================================
   Page Template
   =================================== */
.page {
  padding-top: var(--header-height);
}

.page-header {
  padding: 60px 0 30px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
}

.page-feature-image {
  margin-bottom: 40px;
}

.page-feature-image img {
  border-radius: 8px;
  max-height: 400px;
  width: 100%;
  object-fit: cover;
}

.page-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-bottom: 60px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 980px) {
  .hero-inner,
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image,
  .about-image {
    order: -1;
  }

  .services-grid,
  .testimonials-slider,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-cta {
    text-align: center;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 13px;
  }

  h1 { font-size: 26px; }
  h2 { font-size: 22px; }

  .main-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav.active {
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav ul {
    list-style: none;
    text-align: center;
  }

  .mobile-nav li {
    margin-bottom: 15px;
  }

  .mobile-nav a {
    color: var(--color-text-dark);
    font-weight: 600;
  }

  .footer-nav ul,
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .container {
    width: 90%;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }

  .hero {
    padding: calc(var(--header-height) + 30px) 0 30px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .btn-lg {
    font-size: 18px;
    padding: 0.3em 1.2em;
  }
}

/* ===================================
   Koenig Editor - Required Classes
   =================================== */
.kg-width-wide {
  max-width: 1080px;
  margin-left: calc(50% - min(540px, 50vw));
  margin-right: calc(50% - min(540px, 50vw));
}

.kg-width-full {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.kg-width-wide img,
.kg-width-full img {
  width: 100%;
  border-radius: 0;
}

/* Ghost Cards */
.kg-card {
  margin: 1.5em 0;
}

.kg-image-card img {
  border-radius: 8px;
}

.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kg-gallery-row {
  display: flex;
  gap: 8px;
}

.kg-gallery-image img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.kg-bookmark-card {
  margin: 1.5em 0;
}

.kg-bookmark-container {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.kg-bookmark-content {
  flex: 1;
  padding: 20px;
}

.kg-bookmark-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 5px;
}

.kg-bookmark-description {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.5em;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-light);
}

.kg-bookmark-icon {
  width: 20px;
  height: 20px;
}

.kg-bookmark-thumbnail img {
  width: 200px;
  height: 100%;
  object-fit: cover;
}