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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  background-color: #f9f7fd; /* warm lavender */
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
  display: block;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ------------------------------
   Animations
------------------------------ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }
.delay-6 { animation-delay: 1.2s; }

/* ------------------------------
   Header
------------------------------ */
header {
  background-color: #fff;
  border-bottom: 1px solid #e1dbf1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 1rem 2rem; /* desktop header height */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.logo {
  max-width: 120px;
}

.logo img {
  width: 100%;
  height: auto;
}

/* Navigation */
nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #2a2a2a;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #5e4b8b;
  transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #5e4b8b;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ------------------------------
   Footer
------------------------------ */
footer {
  background-color: #fff;
  border-top: 1px solid #e1dbf1;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.08);
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.footer-flex {
  display: flex;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: space-between;
}

footer p {
  margin: 1.5rem;

}

/* ------------------------------
   Headings
------------------------------ */
h2 {
  margin-bottom: 1rem;
  color: #5e4b8b;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #444;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

h4 {
  margin-bottom: 1rem;
  color: #5e4b8b;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* ------------------------------
   Text
------------------------------ */
p {
  margin-bottom: 1.25rem;
  color: #444;
  font-size: 1rem;
  line-height: 1.75;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
}

li {
  margin-bottom: 0.5em;
}

/* ------------------------------
   Buttons
------------------------------ */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #5e4b8b;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background: #4a386f;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.home-buttons-div {
  justify-content: flex-end;
  margin-top: 1rem;
  display: flex;
}

.home-buttons {
  margin: 0 1rem 0 0.5rem;
  text-align: center;
}

.free-call-side .button {
  float: none;
  margin: 1rem;
}

.contact-options {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-email a {
  color: #444;
  text-decoration: none;
}

.contact-email a:hover {
  color: #4a386f;
  text-decoration: underline;
}

/* ------------------------------
   Sections
------------------------------ */
.service,
.intro,
.pricing-card,
.free-call-side,
.faq-item,
.about-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.about-card {
  margin-top: 2rem;
  padding: 1.5rem;
}

.logo-landing img {
  max-width: 350px;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
}

.intro {
  margin: 2rem 1rem;
  padding: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
}

.intro p {
  margin-top: 1rem;
}

.home-dropdown-item {
  margin-top: 1rem;
  text-align: left;
}

.home-dropdown-item p {
  text-align: left;
  margin-top: 1rem;
}

.home-dropdown-item summary {
  font-weight: 600;
  cursor: pointer;
}

.home-dropdown-item summary:hover {
  color: #5e4b8b;
}

/* ------------------------------
   Bubble List
------------------------------ */
.bubble-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-content: center;
}

.bubble-list li {
  padding: 1rem;
  text-align: center;
  line-height: 1.4;
  border-radius: 0px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  background: #f9f7fd;
  width: 230px;
  height: 140px;
  opacity: 0;
  animation: fadeInBubble 0.8s ease forwards;
}

@keyframes fadeInBubble {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bubble-list li:nth-child(1) { transform: rotate(-2deg) translateX(10px); animation-delay: 0.2s; }
.bubble-list li:nth-child(2) { transform: rotate(2deg); animation-delay: 0.5s; }
.bubble-list li:nth-child(3) { transform: rotate(-1.5deg) translateX(-10px); animation-delay: 0.8s; }
.bubble-list li:nth-child(4) { transform: rotate(1.5deg) translateX(150px) translateY(-25px); animation-delay: 1.1s; }
.bubble-list li:nth-child(5) { transform: rotate(-2deg) translateX(150px) translateY(-15px); animation-delay: 1.4s; }

/* ------------------------------
   Pricing Grid
------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.pricing-card,
.free-call-side {
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card .price {
  font-size: 1rem;
  font-weight: bold;
  color: #5e4b8b;
  margin: 1rem 0;
}

.pricing-card .price span {
  font-size: 1.6rem;
  font-weight: bold;
  color: #5e4b8b;
  margin: 1rem 0;
}

/* ------------------------------
   FAQ
------------------------------ */
.faq {
  margin-top: 2.5rem;
}

.faq-item {
  border-left: 4px solid #5e4b8b;
  padding: 1rem;
  margin-bottom: 1rem;
}

.faq-item:hover {
  background: #f0e9ff;
  transform: translateY(-2px);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}

.faq-item p {
  margin-top: 0.5rem;
}

/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 768px) {
  /* Header for mobile */
  header {
    padding: 0.75rem 1rem;
  }

  .header-flex {
    flex-direction: column;
    align-items: center;
  }

  h3 {
    text-align: center;
  }

  .logo {
    order: 1;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
  }

  nav {
    order: 2;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 0.75rem;
  }

  nav a {
    margin: 0;
    font-size: 1.1rem;
    padding: 0.25rem 0;
  }

  /* Footer adjustments */
  footer {
    padding: 0.75rem 1rem; /* mobile footer matches header */
  }

  .footer-flex {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  footer p {
    margin: 0.25rem 0;
    line-height: 1.4;
  }

  /* Other mobile tweaks */
  .pricing-grid { grid-template-columns: 1fr; }
  .home-buttons-div { display: block; }
  .button { float: none; display: block; margin: 1rem auto 0;}

  details[open] .bubble-list {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 1rem;
  }

  details[open] .bubble-list li {
    transform: none !important;
    width: 100%;
    max-width: 300px;
  }
}
