/* ---- Hero section ---- */
.home-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 80px;
  padding-top: 0;
  background-image: url('/static/img/header3_1.jpg');
  background-size: cover;
  background-position: right;
  background-repeat: no-repeat;
  overflow-x: hidden;
  min-height: 600px;
  margin-top: 0;
}
.home-hero-left {
  margin-top: 0;
  width: 410px;
  background-color: rgba(255,255,255,0.75);
  padding: 40px;
  border-radius: 20px;
  margin-left: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
  box-sizing: border-box;
}
.home-hero-title {
  font-size: 20px;
  line-height: 36px;
  color: #544864;
  height: auto;
}
.home-hero-title .brown { color: #A44330; }
.home-hero-desc {
  margin-top: 12px;
  color: #544864;
  font-size: 12px;
  line-height: 138%;
}
/* ---- Forum categories (circles) ---- */
.home-categories {
  padding: 60px 0 30px;
  background-color: #fff;
}
.home-categories-title {
  font-size: 32px;
  font-weight: 700;
  color: #544864;
  text-align: center;
  margin-bottom: 40px;
}
.home-categories-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}
.home-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 160px;
}
.home-cat-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.home-cat-card:hover .home-cat-circle {
  box-shadow: 0 4px 16px rgba(84,72,100,0.2);
}
.home-cat-circle img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.home-cat-label {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #544864;
  text-align: center;
  line-height: 1.3;
}

/* ---- Common sections ---- */
.home-common {
  padding: 30px 0 60px;
  background-color: #F0F0F0;
}
.home-common-title {
  font-size: 32px;
  font-weight: 700;
  color: #544864;
  text-align: center;
  margin-bottom: 40px;
}
.home-common-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}
.home-common-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 160px;
}
.home-common-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #94A3AC;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  padding: 10px;
}
.home-common-card:hover .home-common-circle {
  box-shadow: 0 4px 16px rgba(84,72,100,0.2);
}
.home-common-label {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #544864;
  text-align: center;
  line-height: 1.3;
}

/* ---- Feature items (purple section) ---- */
.feature-item {
    margin-bottom: 28px;
}
.feature-item:last-child {
    margin-bottom: 0;
}
.feature-item h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #D5E0E5;
    margin-bottom: 8px;
}
.feature-icon,
.feature-icon-sm {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #EB826B;
}
.feature-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #c4b8d0;
    margin: 0;
}
/* ---- Measure groups (numbers section) ---- */
.measure-group {
    margin-bottom: 20px;
}
.measure-group:last-child {
    margin-bottom: 0;
}
.measure-group h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #544864;
    margin-bottom: 8px;
}
.measure-group p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 0 22px;
}

/* ---- Purple section ---- */
.home-purple-wrap {
  background-color: #F0F0F0;
  position: relative;
  overflow: visible;
}
.home-purple-main {
  position: relative;
  background-color: #544864;
  padding-top: 50px;
  padding-bottom: 30px;
  min-height: 574px;
  overflow: visible;
}
.home-purple-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 20px 80px;
  position: relative;
  z-index: 2;
}
.home-purple-text-wrap {
  width: 600px;
  flex-shrink: 0;
}
.home-purple-text {
  margin-top: 0;
  color: #D5E0E5;
  line-height: 1.5;
}
.home-purple-text h3 {
  color: #D5E0E5;
  margin-bottom: 10px;
}
.home-purple-phones {
  position: relative;
  width: 480px;
  height: 500px;
  flex-shrink: 0;
  margin-right: -30px;
}
.home-phone-left {
  position: absolute;
  right: 200px;
  top: 10px;
  z-index: 2;
  width: 280px;
  height: auto;
}
.home-phone-right {
  position: absolute;
  right: 0;
  top: 172px;
  z-index: 1;
  width: 280px;
  height: auto;
}
.home-purple-icons {
  position: absolute;
  bottom: -85px;
  left: 70px;
  width: calc(100% - 70px);
  z-index: 1;
}
.home-icon170 {
  position: absolute;
  width: 170px;
  height: 170px;
  z-index: 1;
  bottom: 0;
}
.home-icon-leaves { left: 0px; }
.home-icon-food { left: 220px; }
.home-icon-procedures { left: 440px; }
.home-purple-mobile-bottom { display: none; }
.home-purple-mobile-bottom .home-purple-text {
  font-size: 15px;
  line-height: 1.6;
  color: #c4b8d0;
}

/* ---- Numbers section ---- */
.home-numbers { }
.home-numbers-grey {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #F0F0F0;
}
.home-numbers-content {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 30px 20px 0;
}
.home-numbers-img {
  width: 450px;
  height: auto;
  margin-right: 24px;
  flex-shrink: 0;
}
.home-numbers-text {
  flex: 1;
  letter-spacing: 0.05em;
  color: #443854;
  line-height: 1.5;
}
.home-numbers-text h3 {
  color: #544864;
  margin-bottom: 10px;
}
.home-numbers-purple {
  width: 100%;
  height: 210px;
  background-color: #544864;
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-numbers-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-numbers-box + .home-numbers-box { margin-left: 80px; }
.home-numbers-num {
  font-size: 60px;
  color: #fff;
  font-weight: 700;
}
.home-numbers-label {
  margin-top: 10px;
  color: #fff;
  font-weight: 500;
}

/* ---- Gallery section ---- */
.home-gallery { }
.home-gallery-grey {
  padding-top: 50px;
  padding-bottom: 50px;
  background-color: #F0F0F0;
}
.home-gallery-content {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 30px 20px 0;
}
.home-gallery-img {
  width: 450px;
  height: auto;
  margin-right: 24px;
  flex-shrink: 0;
}
.home-gallery-text {
  flex: 1;
  letter-spacing: 0.05em;
  color: #443854;
  line-height: 1.5;
}
.home-gallery-text h3 {
  color: #544864;
  margin-bottom: 10px;
}

/* ---- Mobile overrides ---- */
@media (max-width: 768px) {
  .wrapper.homepage { padding: 0; }
  .home-categories { padding-left: 20px; padding-right: 20px; }
  .home-common { padding-left: 20px; padding-right: 20px; }
  .home-hero { padding-left: 0; padding-right: 0; }
}
@media (max-width: 600px) {
  .header-wrapper { padding-top: 4px; padding-bottom: 4px; }
}

/* ---- Responsive ---- */
@media (max-width: 1120px) {
  .home-hero { padding-bottom: 60px; min-height: 500px; }
  .home-hero-left { margin-left: 20px; }
  .home-purple-content { flex-direction: column; align-items: center; gap: 40px; padding-bottom: 40px; }
  .home-purple-text-wrap { width: 100%; max-width: 100%; }
  .home-purple-phones { width: 100%; max-width: 500px; height: auto; display: flex; justify-content: center; gap: 20px; margin-right: 0; }
  .home-phone-left, .home-phone-right { position: relative; right: auto; top: auto; }
  .home-phone-left { width: 260px; }
  .home-phone-right { width: 260px; left: -25px; }
  .home-purple-icons { display: none; }
  .home-purple-mobile-bottom { display: block; margin: 40px auto 0; padding: 0 20px; box-sizing: border-box; }
  .home-numbers-grey { padding-top: 40px; padding-bottom: 40px; }
  .home-numbers-content { flex-direction: column; align-items: center; gap: 40px; }
  .home-numbers-img { width: 100%; max-width: 100%; margin-right: 0; }
  .home-numbers-text { width: 100%; max-width: 100%; }
  .home-gallery-grey { padding-top: 40px; padding-bottom: 40px; }
  .home-gallery-content { flex-direction: column; align-items: center; gap: 40px; }
  .home-gallery-img { width: 100%; max-width: 100%; margin-right: 0; }
  .home-gallery-text { width: 100%; max-width: 100%; }
}
@media (max-width: 768px) {
  .home-hero { flex-direction: column; align-items: center; padding-bottom: 30px; min-height: 500px; background-position: center; }
  .home-hero-left { width: calc(100% - 30px); max-width: 650px; padding: 25px; margin: 250px auto 0; margin-left: auto; }
  .home-hero-title { font-size: 18px; line-height: 32px; }
  .home-hero-desc { font-size: 12px; }
  .home-categories { padding: 40px 0 20px; }
  .home-categories-title { font-size: 26px; margin-bottom: 30px; }
  .home-cat-card { width: 130px; }
  .home-cat-circle { width: 90px; height: 90px; }
  .home-cat-circle img { width: 48px; height: 48px; }
  .home-common { padding: 20px 0 40px; }
  .home-common-title { font-size: 26px; margin-bottom: 30px; }
  .home-purple-main { padding-top: 20px; padding-bottom: 20px; }
  .home-purple-content { padding: 0 20px 30px; gap: 30px; }
  .home-numbers-purple { height: 150px; }
  .home-numbers-num { font-size: 30px; }
  .home-numbers-box + .home-numbers-box { margin-left: 40px; }
}
@media (max-width: 600px) {
  .home-hero { min-height: 450px; }
  .home-hero-left { width: calc(100% - 20px); padding: 20px; }
  .home-hero-title { font-size: 16px; line-height: 28px; }
  .home-hero-desc { font-size: 12px; }
  .home-cat-card { width: 100px; }
  .home-cat-circle { width: 72px; height: 72px; }
  .home-cat-circle img { width: 38px; height: 38px; }
  .home-cat-label { font-size: 13px; }
  .home-common-card { width: 100px; }
  .home-common-circle { width: 72px; height: 72px; font-size: 12px; padding: 6px; }
  .home-common-label { font-size: 13px; }
  .home-numbers-purple { height: 120px; }
  .home-numbers-num { font-size: 24px; }
  .home-numbers-box + .home-numbers-box { margin-left: 0; }
  .home-numbers-purple { justify-content: space-around; }
  .home-phone-left { width: 155px; }
  .home-phone-right { width: 155px; left: -15px; }
}
