/* Home page refresh — scoped to .home-modern so other pages are unaffected */
.home-modern {
  --brand: #b72025;
  --brand-dark: #8f171b;
  --ink: #1b2430;
  --muted: #6b7686;
  --surface: #f5f7fa;
  --card-shadow: 0 6px 24px rgba(27, 36, 48, .08);
  --card-shadow-hover: 0 14px 36px rgba(27, 36, 48, .16);
}

/* ---------- Hero ---------- */
.home-modern .hero-slide .item { position: relative; }
.home-modern .hero-slide .item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 16, 28, .82) 0%, rgba(10, 16, 28, .55) 50%, rgba(10, 16, 28, .15) 100%);
}
.home-modern .hero-slide .item img {
  width: 100%;
  min-height: 420px;
  max-height: 640px;
  object-fit: cover;
}
.home-modern .hero-slide .container { z-index: 2; }
.home-modern .hero-slide .carousel-caption { width: 62%; padding: 0; }
.home-modern .hero-slide .carousel-caption small {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .14);
  letter-spacing: 2px;
  font-weight: 600;
}
.home-modern .hero-slide .carousel-caption .phone {
  margin-top: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.home-modern .hero-slide .carousel-caption h1,
.home-modern .hero-slide .carousel-caption h2 {
  font-size: 54px;
  line-height: 1.1;
  margin: 18px 0 16px;
}
.home-modern .hero-slide .carousel-caption .lead {
  color: rgba(255, 255, 255, .88);
  font-size: 19px;
  max-width: 560px;
  margin-bottom: 26px;
}
.home-modern .hero-cta .btn {
  border-radius: 30px;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: .3px;
  margin-right: 10px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.home-modern .hero-cta .btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(183, 32, 37, .4);
}
.home-modern .hero-cta .btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.home-modern .hero-cta .btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .7);
}
.home-modern .hero-cta .btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.home-modern .hero-slide .carousel-indicators li {
  border: 2px solid #fff;
  opacity: .6;
}

/* ---------- Trust strip ---------- */
.home-modern .trust-strip {
  position: relative;
  z-index: 3;
  margin-top: -44px;
}
.home-modern .trust-strip .strip {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow-hover);
  overflow: hidden;
}
.home-modern .trust-item {
  flex: 1 1 25%;
  min-width: 200px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  border-right: 1px solid #eef1f5;
}
.home-modern .trust-item:last-child { border-right: 0; }
.home-modern .trust-item i {
  flex: 0 0 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  border-radius: 50%;
  background: rgba(183, 32, 37, .1);
  color: var(--brand);
  font-size: 20px;
  margin-right: 14px;
}
.home-modern .trust-item strong { display: block; color: var(--ink); font-size: 15px; }
.home-modern .trust-item span { color: var(--muted); font-size: 13px; }

/* ---------- Section headings ---------- */
.home-modern .section-padding { padding: 80px 0; }
.home-modern .section-title {
  color: var(--ink);
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 10px;
}
.home-modern .section-sub { color: var(--muted); font-size: 16px; }

/* ---------- Services ---------- */
.home-modern .service-home { background: var(--surface); padding-top: 90px; }
.home-modern .service-blocks { margin-top: 40px; }
.home-modern .service-blocks .row { display: flex; flex-wrap: wrap; }
.home-modern .service-blocks .row > [class*="col-"] { display: flex; margin-bottom: 30px; }
.home-modern .service-block {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 30px 26px 26px;
  box-shadow: var(--card-shadow);
  border-bottom: 3px solid transparent;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.home-modern .service-block:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-bottom-color: var(--brand);
}
.home-modern .service-block .service-icon {
  float: none;
  width: 68px;
  height: 68px;
  margin: 0 0 18px;
  border-radius: 16px;
  background: rgba(183, 32, 37, .08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-modern .service-block .service-icon img { max-width: 40px; max-height: 40px; }
.home-modern .service-block .service-content { float: none; padding: 0; width: auto; }
.home-modern .service-block h3 {
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
}
.home-modern .service-block p { color: var(--muted); min-height: 44px; }
.home-modern .service-block .read-morebtn {
  color: var(--brand);
  font-weight: 600;
}
.home-modern .service-block .read-morebtn i { margin-left: 6px; transition: margin .2s; }
.home-modern .service-block:hover .read-morebtn i { margin-left: 12px; }

/* ---------- Other sections ---------- */
.home-modern .feature-section h2 { color: var(--ink); font-weight: 700; text-align: center; margin-bottom: 20px; }
.home-modern .testimonial-section .testimonial-content p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.home-modern .testimonial-section .client-title { color: var(--brand); font-weight: 600; }
.home-modern .counter-section .counter-block {
  text-align: center;
  padding: 18px 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .home-modern .hero-slide .carousel-caption { width: 80%; }
  .home-modern .hero-slide .carousel-caption h1 { font-size: 38px; }
  .home-modern .trust-item { flex-basis: 50%; border-bottom: 1px solid #eef1f5; }
}
@media (max-width: 767px) {
  .home-modern .section-padding { padding: 56px 0; }
  .home-modern .section-title { font-size: 28px; }
  .home-modern .hero-slide .carousel-caption { width: 100%; padding: 0 20px; text-align: center; }
  .home-modern .hero-slide .carousel-caption h1, .home-modern .hero-slide .carousel-caption h2 { font-size: 26px; }
  .home-modern .hero-slide .carousel-caption .lead { font-size: 15px; margin-left: auto; margin-right: auto; }
  .home-modern .hero-slide .item::before { background: rgba(10, 16, 28, .65); }
  .home-modern .hero-cta .btn { padding: 9px 18px; font-size: 13px; margin: 0 4px 8px; }
  .home-modern .trust-strip { margin-top: -24px; }
  .home-modern .trust-item { flex-basis: 100%; border-right: 0; padding: 14px 18px; }
  .home-modern .service-blocks .row > [class*="col-"] { display: block; }
}
@media (max-width: 320px) {
  .home-modern .hero-slide { display: block; }
}

/* ================= Extended portfolio design ================= */
.home-modern { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; color: var(--ink); }
.home-modern h1, .home-modern h2, .home-modern h3, .home-modern h4 { font-family: 'Inter', sans-serif; }

.home-modern .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.home-modern .eyebrow.light { color: #ff8a8e; }
.home-modern .section-title.left { text-align: left; }
.home-modern .section-sub::after { display: none; }

.home-modern .btn-brand {
  background: var(--brand);
  color: #fff;
  border-radius: 30px;
  padding: 12px 28px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(183, 32, 37, .3);
  transition: transform .2s, background .2s;
}
.home-modern .btn-brand:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.home-modern .btn-brand i { margin-left: 8px; }

/* Hero polish */
.home-modern .hero-slide .carousel-caption h1,
.home-modern .hero-slide .carousel-caption h2 { letter-spacing: -1px; font-weight: 800; }
.home-modern .hero-slide .carousel-caption small { color: #fff; border: 1px solid rgba(255,255,255,.25); text-transform: uppercase; }

/* Intro */
.home-modern .intro-section { padding-top: 110px; }
.home-modern .intro-row { display: flex; flex-wrap: wrap; align-items: center; }
.home-modern .intro-text { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 18px 0; }
.home-modern .check-list { list-style: none; padding: 0; margin: 0 0 28px; }
.home-modern .check-list li { padding: 7px 0; color: var(--ink); }
.home-modern .check-list i {
  width: 22px; height: 22px; line-height: 22px; text-align: center;
  border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; margin-right: 10px;
}
.home-modern .intro-visual { position: relative; padding: 0 0 30px 30px; }
.home-modern .intro-visual::before {
  content: ""; position: absolute; left: 0; bottom: 0; right: 30px; top: 30px;
  border-radius: 18px; background: linear-gradient(135deg, var(--brand), #1b2430); opacity: .12;
}
.home-modern .intro-visual img {
  position: relative; width: 100%; border-radius: 18px; box-shadow: var(--card-shadow-hover);
}
.home-modern .float-card {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: center;
  background: #fff; border-radius: 12px; padding: 16px 20px; box-shadow: var(--card-shadow-hover);
  max-width: 290px;
}
.home-modern .float-card i { font-size: 26px; color: var(--brand); margin-right: 14px; }
.home-modern .float-card strong { display: block; font-size: 14px; }
.home-modern .float-card span { font-size: 12px; color: var(--muted); }

/* Process */
.home-modern .process-row { margin-top: 50px; }
.home-modern .process-step {
  position: relative; padding: 34px 26px 26px; margin-bottom: 30px;
  background: #fff; border: 1px solid #e8ecf1; border-radius: 14px; height: calc(100% - 30px);
  transition: border-color .25s, transform .25s;
}
.home-modern .process-step:hover { border-color: var(--brand); transform: translateY(-4px); }
.home-modern .process-step b {
  display: block; font-size: 44px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand); margin-bottom: 14px;
}
.home-modern .process-step h4 { font-weight: 700; margin: 0 0 8px; }
.home-modern .process-step p { color: var(--muted); margin: 0; }
@media (min-width: 992px) { .home-modern .process-row > div { display: flex; } .home-modern .process-step { width: 100%; height: auto; } }

/* Hosting wrapper keeps its legacy styling, just breathe */
.home-modern.hosting-wrap .feature-section { padding: 80px 0; }

/* Why us (dark) */
.home-modern .why-us-setion {
  background: radial-gradient(circle at 20% 0%, #26334a 0%, #111826 60%);
  color: #fff;
}
.home-modern .why-us-setion .section-title { color: #fff; }
.home-modern .why-row { margin-top: 50px; }
.home-modern .why-card {
  height: 100%; margin-bottom: 30px; padding: 32px 26px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px; transition: background .25s, transform .25s;
}
.home-modern .why-card:hover { background: rgba(255, 255, 255, .1); transform: translateY(-5px); }
.home-modern .why-card i {
  width: 54px; height: 54px; line-height: 54px; text-align: center; font-size: 22px;
  border-radius: 14px; background: var(--brand); color: #fff; margin-bottom: 18px;
}
.home-modern .why-card h4 { color: #fff; font-weight: 700; margin: 0 0 10px; }
.home-modern .why-card p { color: rgba(255, 255, 255, .72); margin: 0; line-height: 1.7; }
@media (min-width: 768px) { .home-modern .why-row { display: flex; flex-wrap: wrap; } .home-modern .why-row > div { display: flex; } .home-modern .why-card { width: 100%; } }

/* Testimonials + clients */
.home-modern .testimonial-section { background: #fff; }
.home-modern .testimonial-content { max-width: 760px; margin: 30px auto 10px; padding: 0 20px 30px; }
.home-modern .testimonial-content > i { font-size: 34px; color: var(--brand); opacity: .35; margin-bottom: 14px; }
.home-modern .testimonial-section .carousel-indicators { bottom: -10px; }
.home-modern .testimonial-section .carousel-indicators li { border-color: var(--brand); }
.home-modern .testimonial-section .carousel-indicators li.active { background: var(--brand); }
.home-modern .partner-section { margin-top: 70px; padding-top: 40px; border-top: 1px solid #eef1f5; }
.home-modern .partner-carousel img { filter: grayscale(1); opacity: .65; transition: filter .25s, opacity .25s; }
.home-modern .partner-carousel a:hover img { filter: none; opacity: 1; }

/* Counters */
.home-modern .counter-section { padding: 60px 0; }
.home-modern .counter-section .count-description { font-weight: 600; letter-spacing: .5px; }
.home-modern .counter-section .timer { font-size: 54px; font-weight: 800; display: block; }

/* CTA */
.home-modern .cta-banner {
  padding: 80px 0;
  background: linear-gradient(120deg, var(--brand) 0%, #6d1014 100%);
  color: #fff;
}
.home-modern .cta-banner h2 { font-size: 36px; font-weight: 800; margin: 0 0 12px; color: #fff; }
.home-modern .cta-banner p { font-size: 18px; opacity: .9; margin-bottom: 28px; }
.home-modern .cta-banner .btn { border-radius: 30px; padding: 13px 32px; font-weight: 600; margin: 0 6px 8px; }
.home-modern .cta-banner .btn-light { background: #fff; color: var(--brand); }
.home-modern .cta-banner .btn-outline { border: 2px solid rgba(255,255,255,.8); color: #fff; background: transparent; }
.home-modern .cta-banner .btn-outline:hover { background: #fff; color: var(--brand); }

@media (max-width: 767px) {
  .home-modern .intro-section { padding-top: 80px; }
  .home-modern .intro-visual { margin-top: 40px; padding-left: 0; }
  .home-modern .float-card { position: relative; margin-top: -20px; }
  .home-modern .cta-banner h2 { font-size: 26px; }
}

/* ---- fixes after visual check ---- */
.home-modern .hero-slide .carousel-inner,
.home-modern .hero-slide .item { min-height: 560px; }
.home-modern .hero-slide .item img { height: 560px; max-height: none; min-height: 560px; }
.home-modern .hero-slide .item::before { background: linear-gradient(90deg, rgba(10,16,28,.9) 0%, rgba(10,16,28,.7) 55%, rgba(10,16,28,.35) 100%); }
.home-modern .hero-slide .carousel-caption { padding-bottom: 20px; }
.home-modern .hero-slide .carousel-control { z-index: 3; background: none; }

.home-modern .counter-section {
  background: linear-gradient(120deg, #111826 0%, #26334a 100%);
  padding: 64px 0;
}
.home-modern .counter-section .count-description { padding: 0; text-align: center; display: block; font-size: 16px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.8); }
.home-modern .counter-section .count-description:before { display: none; }
.home-modern .counter-section .timer { color: #fff; line-height: 1.1; margin-bottom: 6px; }

@media (max-width: 767px) {
  .home-modern .hero-slide .carousel-inner,
  .home-modern .hero-slide .item,
  .home-modern .hero-slide .item img { min-height: 460px; height: 460px; }
}

/* ================= Compact layout ================= */
.home-modern .section-padding { padding: 56px 0; }
.home-modern .intro-section { padding-top: 80px; }
.home-modern .section-title { font-size: 30px; margin-bottom: 6px; }
.home-modern .service-home { padding-top: 56px; }
.home-modern .service-blocks { margin-top: 26px; }
.home-modern .service-blocks .row > [class*="col-"] { margin-bottom: 20px; }
.home-modern .service-block { padding: 22px 22px 20px; }
.home-modern .service-block .service-icon { width: 54px; height: 54px; margin-bottom: 12px; }
.home-modern .service-block .service-icon img { max-width: 32px; max-height: 32px; }
.home-modern .service-block h3 { font-size: 17px; }
.home-modern .service-block p { min-height: 0; margin-bottom: 10px; font-size: 14px; }
.home-modern .process-row, .home-modern .why-row { margin-top: 28px; }
.home-modern .process-step { padding: 22px 20px 18px; margin-bottom: 20px; }
.home-modern .process-step b { font-size: 34px; margin-bottom: 8px; }
.home-modern .process-step p, .home-modern .why-card p { font-size: 14px; }
.home-modern .why-card { padding: 24px 20px; margin-bottom: 20px; }
.home-modern .why-card i { width: 44px; height: 44px; line-height: 44px; font-size: 18px; margin-bottom: 12px; }
.home-modern .hero-slide .carousel-inner, .home-modern .hero-slide .item,
.home-modern .hero-slide .item img { min-height: 440px; height: 440px; }
.home-modern .hero-slide .carousel-caption h1,
.home-modern .hero-slide .carousel-caption h2 { font-size: 44px; margin: 14px 0 12px; }
.home-modern .hero-slide .carousel-caption .lead { font-size: 17px; margin-bottom: 20px; }
.home-modern .trust-item { padding: 14px 18px; }
.home-modern .trust-strip { margin-top: -34px; }
.home-modern .partner-section { margin-top: 36px; padding-top: 24px; }
.home-modern .testimonial-content { margin-top: 16px; padding-bottom: 24px; }
.home-modern .counter-section { padding: 40px 0; }
.home-modern .counter-section .timer { font-size: 42px; }
.home-modern .cta-banner { padding: 50px 0; }
.home-modern .cta-banner h2 { font-size: 28px; }
.home-modern .cta-banner p { font-size: 16px; margin-bottom: 20px; }
.home-modern .intro-text { margin: 12px 0; }
.home-modern .check-list { margin-bottom: 20px; }
@media (max-width: 767px) {
  .home-modern .hero-slide .carousel-inner, .home-modern .hero-slide .item,
  .home-modern .hero-slide .item img { min-height: 400px; height: 400px; }
  .home-modern .hero-slide .carousel-caption h1, .home-modern .hero-slide .carousel-caption h2 { font-size: 26px; }
}

/* ================= Hosting plans ================= */
.home-modern .hosting-section { background: var(--surface); }
.home-modern .hp-row { margin-top: 28px; display: flex; flex-wrap: wrap; }
.home-modern .hp-row > [class*="col-"] { display: flex; margin-bottom: 24px; }
.home-modern .hp-card {
  position: relative; width: 100%; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e6eaf0; border-radius: 16px; padding: 26px 24px 24px;
  transition: transform .25s, box-shadow .25s;
}
.home-modern .hp-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.home-modern .hp-card.featured {
  background: linear-gradient(160deg, #1b2430 0%, #2b3a55 100%); border-color: transparent; color: #fff;
  box-shadow: 0 18px 40px rgba(27, 36, 48, .28);
}
@media (min-width: 992px) {
  .home-modern .hp-card.featured { transform: translateY(-10px); }
  .home-modern .hp-card.featured:hover { transform: translateY(-16px); }
}
.home-modern .hp-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px; white-space: nowrap;
}
.home-modern .hp-card h3 { margin: 0; font-size: 20px; font-weight: 800; color: inherit; }
.home-modern .hp-tag { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.home-modern .hp-card.featured .hp-tag { color: rgba(255,255,255,.65); }
.home-modern .hp-price { font-size: 40px; font-weight: 800; line-height: 1; padding-bottom: 16px; border-bottom: 1px solid rgba(128,140,160,.25); }
.home-modern .hp-price sup { font-size: 15px; font-weight: 600; top: -1em; margin-right: 3px; }
.home-modern .hp-price small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.home-modern .hp-card.featured .hp-price small { color: rgba(255,255,255,.65); }
.home-modern .hp-card ul { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; }
.home-modern .hp-card li { padding: 5px 0; font-size: 14px; }
.home-modern .hp-card li i { color: var(--brand); margin-right: 9px; font-size: 12px; }
.home-modern .hp-card.featured li i { color: #ff8a8e; }
.home-modern .hp-btn {
  display: block; text-align: center; padding: 11px; border-radius: 30px; font-weight: 600;
  border: 2px solid var(--brand); color: var(--brand); transition: background .2s, color .2s;
}
.home-modern .hp-btn:hover, .home-modern .hp-card.featured .hp-btn { background: var(--brand); color: #fff; text-decoration: none; }
.home-modern .hp-card.featured .hp-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.home-modern .intro-visual img { max-height: 320px; object-fit: contain; background: #fff; }
