/* Afflatus Realty — homepage redesign (corporate advisory style) */
.afx {
  --navy: #273038;
  --navy-deep: #1c232a;
  --red: #C7241E;
  --red-dark: #a51d18;
  --slate: #3A4653;
  --teal: #3F6B72;
  --gold: #A87C2B;
  --body: #56626E;
  --card: #EDEFF2;
  --rule: #D9DEE3;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
.afx *, .afx *::before, .afx *::after { box-sizing: border-box; }
.afx h1, .afx h2, .afx h3, .afx h4 { color: var(--navy); margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.afx p { margin: 0; }
.afx a { text-decoration: none; transition: all .25s ease; }
.afx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.afx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.afx-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.afx-section { padding: 96px 0; }
.afx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.afx-head h2 { font-size: 40px; margin-top: 14px; max-width: 640px; }
.afx-head p { max-width: 440px; }
.afx-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; font-weight: 600; font-size: 15px; border-radius: 2px; border: 2px solid transparent; }
.afx-btn-red { background: var(--red); color: #fff !important; }
.afx-btn-red:hover { background: var(--red-dark); }
.afx-btn-line { border-color: rgba(255,255,255,.7); color: #fff !important; }
.afx-btn-line:hover { background: #fff; color: var(--navy) !important; }
.afx-btn-navy { background: var(--navy); color: #fff !important; }
.afx-btn-navy:hover { background: var(--slate); }
.afx-link { font-weight: 600; color: var(--navy) !important; display: inline-flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--red); padding-bottom: 3px; }
.afx-link:hover { color: var(--red) !important; gap: 12px; }
.afx-arrow { display: inline-block; transition: transform .25s; }

/* HERO */
.afx-hero { position: relative; min-height: 88vh; display: flex; align-items: center; background-size: cover; background-position: center; color: #fff; }
.afx-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(28,35,42,.94) 0%, rgba(39,48,56,.78) 45%, rgba(39,48,56,.2) 100%); }
.afx-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34%; height: 6px; background: var(--red); }
.afx-hero .afx-wrap { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 140px; }
.afx-hero .afx-eyebrow { color: #fff; }
.afx-hero .afx-eyebrow::before { background: var(--red); }
.afx-hero h1 { color: #fff; font-size: 62px; font-weight: 700; max-width: 820px; margin: 22px 0 24px; }
.afx-hero h1 span { color: #ff5a4f; white-space: nowrap; }
.afx-hero p.lead { font-size: 19px; color: rgba(255,255,255,.85); max-width: 600px; margin-bottom: 38px; }
.afx-hero .afx-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* QUICK BAR */
.afx-quick { position: relative; z-index: 2; margin-top: -64px; }
.afx-quick-inner { background: #fff; box-shadow: 0 18px 50px rgba(28,35,42,.16); display: grid; grid-template-columns: 170px repeat(5, 1fr); }
.afx-quick-label { background: var(--navy); color: #fff; padding: 26px 24px; font-weight: 700; font-size: 19px; display: flex; align-items: center; }
.afx-quick a { padding: 24px 20px; border-left: 1px solid var(--rule); color: var(--navy); display: flex; flex-direction: column; gap: 4px; }
.afx-quick a strong { font-size: 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; line-height: 1.3; }
.afx-quick a.afx-quick-join { background: var(--red); border-left-color: var(--red); color: #fff; }
.afx-quick a.afx-quick-join span { color: rgba(255,255,255,.85); }
.afx-quick a.afx-quick-join:hover { background: var(--red-dark); }
.afx-quick a.afx-quick-join:hover strong { color: #fff; }
.afx-quick a span { font-size: 13px; color: var(--body); }
.afx-quick a:hover { background: var(--card); }
.afx-quick a:hover strong { color: var(--red); }

/* INTRO + STATS */
.afx-intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.afx-intro h2 { font-size: 38px; margin: 14px 0 22px; }
.afx-intro p { margin-bottom: 16px; font-size: 17px; }
.afx-intro .afx-link { margin-top: 12px; }
.afx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--rule); border: 1px solid var(--rule); }
.afx-stat { background: #fff; padding: 34px 30px; }
.afx-stat b { display: block; font-size: 44px; color: var(--navy); line-height: 1; font-weight: 700; }
.afx-stat b em { color: var(--red); font-style: normal; }
.afx-stat span { display: block; margin-top: 10px; font-size: 14px; }

/* SERVICES */
.afx-services { background: var(--card); }
.afx-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.afx-svc { background: #fff; display: flex; flex-direction: column; border-top: 4px solid transparent; transition: all .3s ease; color: var(--body) !important; }
.afx-svc:hover { border-top-color: var(--red); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(28,35,42,.12); }
.afx-svc-img { height: 200px; overflow: hidden; }
.afx-svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; display: block; }
.afx-svc:hover .afx-svc-img img { transform: scale(1.06); }
.afx-svc-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.afx-svc-num { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: .1em; }
.afx-svc h3 { font-size: 22px; margin: 8px 0 12px; }
.afx-svc p { font-size: 15px; flex: 1; margin-bottom: 20px; }
.afx-svc .more { font-weight: 600; color: var(--navy); font-size: 14px; }
.afx-svc:hover .more { color: var(--red); }
.afx-svc:hover .afx-arrow { transform: translateX(6px); }

.afx-svc-grid.afx-svc-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.afx-svc-grid-4 .afx-svc-img { height: 170px; }
.afx-svc-grid-4 .afx-svc-body { padding: 24px 22px 26px; }
.afx-svc-grid-4 .afx-svc h3 { font-size: 20px; }
.afx-svc-cta { background: var(--navy); color: rgba(255,255,255,.8) !important; justify-content: center; }
.afx-svc-cta .afx-svc-body { justify-content: center; }
.afx-svc-cta h3 { color: #fff; font-size: 24px !important; }
.afx-svc-cta .afx-svc-num { color: #ff6b61; letter-spacing: .12em; font-size: 12px; }
.afx-svc-cta .more { color: #fff; }
.afx-svc-cta:hover { background: var(--red); border-top-color: var(--navy); }
.afx-svc-cta:hover .more, .afx-svc-cta:hover .afx-svc-num { color: #fff; }
@media (max-width: 1199px) { .afx-svc-grid.afx-svc-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .afx-svc-grid.afx-svc-grid-4 { grid-template-columns: 1fr; } }

.afx-svc-img { position: relative; }
.afx-svc-img.has-badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,35,42,.25), rgba(28,35,42,.45)); pointer-events: none; }
.afx-svc-badge { position: absolute; z-index: 1; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: rgba(199,36,30,.92); box-shadow: 0 0 0 8px rgba(199,36,30,.25), 0 10px 30px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; transition: transform .35s ease; }
.afx-svc-badge svg { width: 54px; height: 54px; }
.afx-svc:hover .afx-svc-badge { transform: scale(1.08); }

/* ADVISORY FEATURE */
.afx-feature { background: var(--navy); color: rgba(255,255,255,.82); }
.afx-feature-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.afx-feature-img { background-size: cover; background-position: center; position: relative; }
.afx-feature-img::after { content: ""; position: absolute; right: 0; top: 0; width: 6px; height: 40%; background: var(--red); }
.afx-feature-body { padding: 88px 72px; display: flex; flex-direction: column; justify-content: center; }
.afx-feature-body .afx-eyebrow { color: #ff6b61; }
.afx-feature-body h2 { color: #fff; font-size: 38px; margin: 14px 0 20px; }
.afx-feature-list { list-style: none; padding: 0; margin: 10px 0 36px; }
.afx-feature-list li { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); display: flex; gap: 18px; }
.afx-feature-list li b { color: #fff; display: block; font-size: 17px; margin-bottom: 4px; }
.afx-feature-list li i { color: var(--gold); font-style: normal; font-weight: 700; min-width: 28px; }

/* SECTORS */
.afx-sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--rule); border: 1px solid var(--rule); }
.afx-sector { background: #fff; padding: 34px 28px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; color: var(--navy) !important; position: relative; overflow: hidden; }
.afx-sector::before { content: ""; position: absolute; inset: 0; background: var(--navy); transform: translateY(101%); transition: transform .35s ease; }
.afx-sector > * { position: relative; }
.afx-sector small { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--red); }
.afx-sector strong { font-size: 22px; display: flex; justify-content: space-between; align-items: flex-end; }
.afx-sector:hover::before { transform: translateY(0); }
.afx-sector:hover strong, .afx-sector:hover { color: #fff !important; }
.afx-sector:hover small { color: #ff6b61; }
.afx-sector-cta { background: var(--red); color: #fff !important; }
.afx-sector-cta small { color: rgba(255,255,255,.8); }
.afx-sector-cta::before { background: var(--red-dark); }

/* LISTINGS */
.afx-listings { background: var(--card); }
.afx-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.afx-card { background: #fff; color: var(--body) !important; display: block; transition: all .3s; }
.afx-card:hover { box-shadow: 0 20px 40px rgba(28,35,42,.12); transform: translateY(-4px); }
.afx-card-img { position: relative; height: 240px; overflow: hidden; }
.afx-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.afx-card:hover .afx-card-img img { transform: scale(1.06); }
.afx-tag { position: absolute; left: 0; top: 20px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; }
.afx-card-body { padding: 24px 26px 28px; }
.afx-card-body small { font-size: 13px; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.afx-card-body h3 { font-size: 21px; margin: 8px 0 10px; }
.afx-card-body p { font-size: 15px; }

/* ABOUT */
.afx-about-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.afx-about-quote { grid-column: span 3; font-size: 30px; font-weight: 600; color: var(--navy); line-height: 1.35; border-left: 6px solid var(--red); padding-left: 32px; margin-bottom: 24px; max-width: 900px; }
.afx-about-item { border-top: 2px solid var(--navy); padding-top: 24px; }
.afx-about-item h3 { font-size: 20px; margin-bottom: 10px; }

/* CAREERS */
.afx-careers { background: linear-gradient(110deg, var(--red) 0%, #9e1c17 100%); color: rgba(255,255,255,.9); padding: 80px 0; }
.afx-careers-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.afx-careers h2 { color: #fff; font-size: 38px; margin: 14px 0 18px; }
.afx-careers .afx-eyebrow { color: #fff; }
.afx-careers ul { list-style: none; padding: 0; margin: 0; }
.afx-careers li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 500; }
.afx-careers li::before { content: "\2014"; margin-right: 12px; opacity: .7; }
.afx-careers .afx-btn { margin-top: 28px; background: #fff; color: var(--red) !important; }
.afx-careers .afx-btn:hover { background: var(--navy); color: #fff !important; }

/* CONTACT */
.afx-contact { background: var(--navy-deep); color: rgba(255,255,255,.8); padding: 88px 0; }
.afx-contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.afx-contact h2 { color: #fff; font-size: 42px; margin: 14px 0 16px; }
.afx-contact .afx-eyebrow { color: #ff6b61; }
.afx-contact-box { border: 1px solid rgba(255,255,255,.15); padding: 34px; }
.afx-contact-box a.row { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff !important; font-size: 18px; font-weight: 600; }
.afx-contact-box a.row small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 600; }
.afx-contact-box a.row:hover { color: #ff6b61 !important; }
.afx-contact-box .afx-btn { margin-top: 24px; width: 100%; justify-content: center; }

/* Hide old homepage leftovers if theme adds spacing */
#ismain-homes .afx + p:empty { display: none; }

/* RESPONSIVE */
@media (max-width: 991px) {
  .afx-section { padding: 72px 0; }
  .afx-hero h1 { font-size: 44px; }
  .afx-quick-inner { grid-template-columns: 1fr 1fr; }
  .afx-quick-label { grid-column: span 2; padding: 20px 24px; }
  .afx-quick a { border-top: 1px solid var(--rule); }
  .afx-quick a.afx-quick-join { grid-column: span 2; }
  .afx-intro-grid, .afx-feature-grid, .afx-careers-grid, .afx-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .afx-feature-img { min-height: 320px; }
  .afx-feature-body { padding: 64px 32px; }
  .afx-svc-grid, .afx-list-grid { grid-template-columns: 1fr 1fr; }
  .afx-sector-grid { grid-template-columns: 1fr 1fr; }
  .afx-about-grid { grid-template-columns: 1fr; }
  .afx-about-quote { grid-column: span 1; font-size: 24px; }
}
@media (max-width: 600px) {
  .afx-wrap { padding: 0 18px; }
  .afx-hero { min-height: auto; }
  .afx-hero .afx-wrap { padding-top: 90px; padding-bottom: 110px; }
  .afx-hero h1 { font-size: 34px; }
  .afx-hero p.lead { font-size: 16px; }
  .afx-head h2, .afx-intro h2, .afx-feature-body h2, .afx-careers h2, .afx-contact h2 { font-size: 28px; }
  .afx-quick-inner { grid-template-columns: 1fr; }
  .afx-quick-label { grid-column: span 1; }
  .afx-quick a { border-left: 0; }
  .afx-quick a.afx-quick-join { grid-column: span 1; }
  .afx-svc-grid, .afx-list-grid { grid-template-columns: 1fr; }
  .afx-stat b { font-size: 34px; }
  .afx-stat { padding: 24px 20px; }
}
