/**
 * Remodel.one Modern Cost Guides Hub Styles
 * Scoped to .modern-costs to align with modern.css
 */

.modern-costs {
  background: var(--paper) !important;
  color: var(--ink);
  font-family: var(--font-body);
}

/* ==========================================================================
   Costs Hero
   ========================================================================== */
.modern-costs .costs-hero {
  background: var(--primary-deep);
  min-height: 400px;
  overflow: hidden;
  position: relative;
  padding: clamp(60px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
}

.modern-costs .costs-hero__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
  opacity: 0.38;
}

.modern-costs .costs-hero__wash {
  background:
    linear-gradient(180deg, rgba(6, 40, 56, 0.94) 0%, rgba(6, 56, 79, 0.88) 100%),
    radial-gradient(circle at 85% 15%, rgba(157, 218, 230, 0.16), transparent 45%);
  inset: 0;
  position: absolute;
}

.modern-costs .costs-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.modern-costs .costs-hero .modern-eyebrow {
  color: var(--sky);
  margin-bottom: 16px;
}

.modern-costs .costs-hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.modern-costs .costs-hero h1 em {
  color: #9ddae6;
  font-style: italic;
  font-weight: 600;
}

.modern-costs .costs-hero__subtitle {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 28px;
}

.modern-costs .costs-hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 600;
}

.modern-costs .costs-hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modern-costs .costs-hero__trust i {
  color: #9ddae6;
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */
.modern-costs .costs-filter-section {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 4px 20px rgba(16, 62, 82, 0.04);
}

.modern-costs .costs-filter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.modern-costs .costs-filter-wrap::-webkit-scrollbar {
  display: none;
}

.modern-costs .costs-filter-btn {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 18px;
  transition: all 180ms ease;
  white-space: nowrap;
}

.modern-costs .costs-filter-btn:hover {
  background: var(--sky);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.modern-costs .costs-filter-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(10, 123, 177, 0.28);
}

/* ==========================================================================
   Cost Guides Grid
   ========================================================================== */
.modern-costs .costs-main-section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.modern-costs .costs-grid-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .modern-costs .costs-grid-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.modern-costs .costs-grid-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink);
  margin: 0;
}

.modern-costs .costs-grid-count {
  font-size: 0.95rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.modern-costs .costs-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .modern-costs .costs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .modern-costs .costs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Cost Guide Modern Card */
.modern-costs .costs-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  height: 100%;
}

.modern-costs .costs-card:hover {
  border-color: rgba(10, 123, 177, 0.35);
  box-shadow: 0 20px 40px -8px rgba(6, 79, 115, 0.16);
  transform: translateY(-4px);
}

.modern-costs .costs-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--mist);
}

.modern-costs .costs-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 350ms ease;
  display: block;
}

.modern-costs .costs-card:hover .costs-card__media img {
  transform: scale(1.03);
}

.modern-costs .costs-card__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.modern-costs .costs-card__meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.modern-costs .costs-card__tag {
  background: rgba(6, 56, 79, 0.08);
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.modern-costs .costs-card__price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sky);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 0;
}

.modern-costs .costs-card__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  transition: color 180ms ease;
}

.modern-costs .costs-card:hover .costs-card__title {
  color: var(--primary);
}

.modern-costs .costs-card__caption {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.modern-costs .costs-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.modern-costs .costs-card__footer i {
  transition: transform 180ms ease;
}

.modern-costs .costs-card:hover .costs-card__footer i {
  transform: translateX(4px);
}

/* ==========================================================================
   Bottom Conversion Estimate Dock
   ========================================================================== */
.modern-costs .costs-estimate-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: clamp(60px, 8vw, 96px) 0;
}

.modern-costs .costs-dock {
  background: var(--primary-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.modern-costs .costs-dock::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(157, 218, 230, 0.18), transparent 70%);
  pointer-events: none;
}

.modern-costs .costs-dock__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.modern-costs .costs-dock__header h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.modern-costs .costs-dock__header p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.modern-costs .costs-dock__form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .modern-costs .costs-dock__form-row {
    flex-direction: row;
    align-items: center;
  }
}

.modern-costs .costs-dock__field {
  flex: 1;
  position: relative;
}

.modern-costs .costs-dock__field i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.modern-costs .costs-dock__input {
  width: 100%;
  height: 54px;
  padding: 0 16px 0 44px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 180ms ease;
}

.modern-costs .costs-dock__input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.35);
}

.modern-costs .costs-dock__submit {
  height: 54px;
  padding: 0 28px;
  border-radius: 999px !important;
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
}

.modern-costs .costs-dock__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 600;
}

.modern-costs .costs-dock__trust i {
  color: #9ddae6;
}
