/* home-modern.css — styles for the redesigned homepage.
   Load AFTER theme-etemaad.css. Uses the --et-* tokens from that file. */

.section { padding: 80px 0; }
@media (min-width: 992px) { .section { padding: 110px 0; } }

.hm-kicker { display: block; color: var(--et-blue-soft); font-size: .72rem; font-weight: 500;
             letter-spacing: .35em; text-transform: uppercase; margin-bottom: .8rem; }
.hm-h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 1.2rem; }

/* Hero copy */
.hm-hero-copy { padding-top: 56px !important; padding-bottom: 110px !important; }

/* Floating glass stats overlapping the hero */
.hm-stats-wrap { position: relative; z-index: 5; margin-top: -64px; }
.hm-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: rgba(17, 26, 48, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--et-line); border-radius: 20px; box-shadow: var(--et-glow); overflow: hidden;
}
html[data-theme="light"] .hm-stats { background: rgba(255, 255, 255, .85); }
.hm-stat { padding: 28px 14px; text-align: center; border-right: 1px solid var(--et-line); border-bottom: 1px solid var(--et-line); }
.hm-stat:nth-child(2n) { border-right: 0; }
.hm-stat:nth-last-child(-n+2) { border-bottom: 0; }
.hm-stat .num { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 200; letter-spacing: .06em; color: var(--et-head); line-height: 1.1; }
.hm-stat .lbl { margin-top: .4rem; font-size: .66rem; letter-spacing: .25em; text-transform: uppercase; color: var(--et-muted); }
@media (min-width: 768px) {
  .hm-stats { grid-template-columns: repeat(4, 1fr); }
  .hm-stat, .hm-stat:nth-child(2n) { border-right: 1px solid var(--et-line); border-bottom: 0; }
  .hm-stat:last-child { border-right: 0; }
}

/* About */
.hm-checks { list-style: none; padding: 0; margin: 0; }
.hm-checks li { display: flex; gap: .7rem; align-items: center; margin-bottom: .75rem; color: var(--et-text); font-size: .92rem; }
.hm-checks i { color: var(--et-blue-soft); font-size: 1.2rem; }
.hm-about-img { position: relative; border-radius: 22px; }
.hm-about-img img { width: 100%; border-radius: 22px; border: 1px solid var(--et-line); box-shadow: var(--brand-shadow); display: block; }
.hm-about-img::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border: 1px solid var(--et-blue);
                        border-radius: 22px; opacity: .5; z-index: -1; }
.hm-float-badge { position: absolute; left: -12px; bottom: 28px; display: flex; align-items: center; gap: .8rem;
                  background: var(--et-blue); color: #fff; padding: 14px 20px; border-radius: 16px; box-shadow: var(--et-glow); }
.hm-float-badge b { font-size: 2.2rem; font-weight: 200; line-height: 1; }
.hm-float-badge span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1.35; }

/* Experiences */
.hm-exp-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .hm-exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .hm-exp-grid { grid-template-columns: repeat(5, 1fr); } }
.hm-exp { position: relative; padding: 34px 22px 28px; text-align: center; overflow: hidden;
          background: var(--et-card); border: 1px solid var(--et-line); border-radius: 18px;
          transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.hm-exp:hover { transform: translateY(-6px); border-color: var(--et-blue); box-shadow: var(--et-glow); }
.hm-exp-no { position: absolute; top: 10px; right: 16px; font-size: 2.4rem; font-weight: 200; color: var(--et-blue); opacity: .18; line-height: 1; }
.hm-exp > i { font-size: 1.9rem; color: var(--et-blue-soft); display: inline-grid; place-items: center; width: 64px; height: 64px;
              border: 1px solid var(--et-line); border-radius: 50%; margin-bottom: 1rem; transition: all .3s ease; }
.hm-exp:hover > i { background: var(--et-blue); color: #fff; border-color: var(--et-blue); }
.hm-exp h3 { font-size: 1rem; letter-spacing: .25em; margin-bottom: .5rem; }
.hm-exp p { font-size: .82rem; color: var(--et-muted); margin: 0; }

/* Payment plans */
.hm-plan { position: relative; text-align: center; padding: 44px 30px; height: 100%; overflow: hidden;
           background: var(--et-card); border: 1px solid var(--et-line); border-radius: 22px;
           transition: transform .3s ease, box-shadow .3s ease; }
.hm-plan:hover { transform: translateY(-6px); box-shadow: var(--et-glow); }
.hm-plan::after { content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 2px;
                  background: linear-gradient(90deg, transparent, var(--et-blue), transparent); }
.hm-plan > i { font-size: 1.6rem; color: var(--et-blue-soft); }
.hm-plan-big { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 200; line-height: 1; color: var(--et-head); margin: .6rem 0 .2rem; }
.hm-plan-big small { display: block; font-size: .7rem; letter-spacing: .35em; text-transform: uppercase; color: var(--et-blue-soft); margin-top: .5rem; }
.hm-plan h3 { font-size: 1rem; letter-spacing: .2em; margin-top: 1rem; }
.hm-plan p { color: var(--et-muted); font-size: .88rem; margin: .4rem 0 0; }
.hm-plan-alt { background: linear-gradient(160deg, #0b3a7a 0%, var(--et-card) 100%); }
.hm-plan-alt p { color: #b9c1d4; }

/* Unit cards */
.hm-unit-img { position: relative; overflow: hidden; }
.hm-unit-img img { transition: transform .5s ease; }
.hm-unit:hover .hm-unit-img img { transform: scale(1.06); }
.hm-unit-status { position: absolute; top: 14px; left: 14px; }
.hm-unit-title { font-weight: 600; font-size: 1.05rem; color: var(--et-head); letter-spacing: .05em; margin-bottom: .2rem; }
.hm-unit-title small { color: var(--et-muted); font-weight: 400; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; margin-left: .4rem; }
.hm-price { font-weight: 600; color: var(--et-blue-soft); font-size: 1rem; }

/* Gallery bento */
.hm-bento { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
.hm-bento .gallery-item { height: 100%; border-radius: 16px; }
.hm-bento .gallery-item img { height: 100%; aspect-ratio: auto; }
.hm-bento .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
@media (min-width: 992px) {
  .hm-bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
}

/* News */
.hm-news-title { font-size: 1rem; letter-spacing: .06em; text-transform: none !important; font-weight: 500; }

/* CTA */
.hm-cta { position: relative; padding: 100px 0; overflow: hidden; border-top: 1px solid var(--et-line);
          background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(30, 111, 217, .35), transparent 70%), #070a14; }
.hm-cta h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.5rem); margin-bottom: .8rem; }
.hm-cta p { color: #b9c1d4; margin-bottom: 2rem; }
.hm-cta .btn-gold, .hm-cta .btn-outline-gold { color: #fff !important; }

/* ---- Overflow fixes: keep everything inside the viewport ---- */
html, body { max-width: 100%; }
section, .hero, .hm-cta { overflow-x: clip; }
.hm-about-img::before { display: none; }
.hm-float-badge { left: 14px; }
@media (min-width: 992px) {
  .hm-about-img::before { display: block; inset: 16px -10px -10px 16px; }
  .hm-float-badge { left: -12px; }
}
img, video, iframe { max-width: 100%; }