/* HomeAI Designer — /home-designer/ landing and /home-designer/house-plans/ shop.
   Moved out of the landing's inline <style> (CSP ratchet: no inline styles). */

:root {
  --primary:      #1a3c5e;
  --primary-dark: #0f2540;
  --accent:       #c89020;
  --accent-dark:  #a07010;
  --warm-bg:      #fef8f0;
  --cream:        #fdf6e3;
  --text:         #2d2d2d;
  --muted:        #6c757d;
  --border:       #e0d8ce;
  --surface:      #ffffff;
  --soft:         #f6f8fa;
}
*, *::before, *::after { box-sizing: border-box; }
body.hd-page { font-family: 'Inter', sans-serif; color: var(--text); font-size: 16px; line-height: 1.65; margin: 0; background: var(--surface); }
.hd-page h1, .hd-page h2, .hd-page h3, .hd-page h4 { font-family: 'Playfair Display', serif; }
.font-serif  { font-family: 'Playfair Display', serif; }
.text-accent { color: var(--accent); }

.section-label {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--accent);
}
.section-title { font-size: 2rem; font-weight: 700; line-height: 1.18; }
.section-lead { max-width: 560px; margin: 0 auto; font-size: .95rem; color: var(--muted); }
.accent-line { width: 50px; height: 3px; background: var(--accent); margin: .6rem 0 1.5rem; }
.accent-line.mx-auto { margin-left: auto; margin-right: auto; }
.hd-section { padding: 5.5rem 0; }
.hd-section--soft { background: var(--soft); }
.hd-section--cream { background: var(--cream); }

/* ── Navbar ── */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(15,37,64,.12);
  transition: background .3s, padding .3s, box-shadow .3s;
}
#mainNav.scrolled, #mainNav.hd-nav--solid {
  background: var(--primary-dark);
  box-shadow: 0 2px 24px rgba(0,0,0,.35); padding: .65rem 0;
}
.hd-brand-mark {
  width: 32px; height: 32px; background: var(--accent); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: .82rem;
}
.navbar-brand .brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.25rem; color: #fff;
}
#mainNav .navbar-nav .nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 500; font-size: .92rem; padding: .4rem .9rem; transition: color .2s;
}
#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active { color: #fff; }
#mainNav .navbar-toggler { color: #fff; }
.btn-nav-cta {
  background: var(--accent); color: #fff; border: none;
  font-weight: 600; font-size: .88rem; padding: .45rem 1.2rem;
  border-radius: 4px; text-decoration: none; transition: background .2s;
  display: inline-block;
}
.btn-nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* ── Buttons ── */
.btn-accent-s, .btn-outline-wh, .btn-dark-l, .btn-outline-dk {
  font-weight: 600; padding: .7rem 1.5rem; border-radius: 4px;
  text-decoration: none; font-size: .95rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn-accent-s { background: var(--accent); border: 2px solid transparent; color: #fff; }
.btn-accent-s:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-wh { border: 2px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-wh:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-dark-l { background: var(--primary-dark); color: #fff; border: 2px solid transparent; }
.btn-dark-l:hover { background: #0a1930; color: #fff; transform: translateY(-1px); }
.btn-outline-dk { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-dk:hover { background: var(--primary); color: #fff; }
.btn-lock { font-size: .78em; opacity: .8; }
.hd-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.hd-link:hover { color: var(--accent-dark); text-decoration: underline; }

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  /* Dark scrim only over the left half (keeps the headline legible);
     the image is left fully un-tinted from the midpoint rightwards. */
  background:
    linear-gradient(180deg, rgba(10,25,47,.55) 0%, rgba(10,25,47,0) 24%),
    linear-gradient(90deg,
      rgba(15,37,64,.92) 0%,
      rgba(18,45,74,.86) 28%,
      rgba(26,60,94,.42) 44%,
      rgba(26,60,94,0) 52%,
      rgba(26,60,94,0) 100%),
    url("../themes/digalu/assets/img/projects/dream-home.ea61360c5277.jpg") center/cover no-repeat;
  display: flex; align-items: center; padding: 6.5rem 0 4rem;
}
.hero-headline {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 700; line-height: 1.12; color: #fff;
}
.hero-sub { font-size: 1rem; color: rgba(255,255,255,.85); line-height: 1.75; max-width: 470px; }
.hero-note { font-size: .8rem; color: rgba(255,255,255,.7); margin: .85rem 0 0; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.5rem; }
.hero-stats > div + div { border-left: 1px solid rgba(255,255,255,.18); padding-left: 1.5rem; }
.hero-stat-val { font-size: 1.6rem; font-weight: 700; color: #fff; font-family: 'Playfair Display', serif; }
.hero-stat-val--text { font-size: 1.15rem; line-height: 2.1rem; }
.hero-stat-lbl { font-size: .78rem; color: rgba(255,255,255,.65); }
.hero-scroll {
  position: absolute; bottom: 0; left: 50%; padding-bottom: 1.5rem;
  color: rgba(255,255,255,.45); font-size: 1.4rem; text-decoration: none;
  animation: hd-bounce 2s infinite;
}
.hero-scroll:hover { color: #fff; }

.hero-form-card {
  background: #fff; border-radius: 8px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 28px 70px rgba(0,0,0,.38);
  scroll-margin-top: 6rem;
}
.hero-form-card .hf-kicker {
  font-family: 'Inter', sans-serif; font-size: .9rem;
  color: var(--muted); font-weight: 400; margin-bottom: .2rem;
}
.hero-form-card .hf-title { font-size: 1.3rem; color: var(--primary); margin-bottom: 1.4rem; }
.hero-form-card .form-control,
.hero-form-card .form-select {
  border: 1.5px solid var(--border); border-radius: 4px;
  padding: .7rem 1rem; font-size: .92rem;
}
.hero-form-card .form-control:focus,
.hero-form-card .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,60,94,.1);
}
.hero-form-card .form-check-label { font-size: .84rem; color: var(--muted); }
.hero-form-card .hf-foot { font-size: .76rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }
.btn-unlock {
  background: var(--primary); border: none; color: #fff;
  font-weight: 600; font-size: 1rem; padding: .85rem;
  border-radius: 4px; width: 100%; cursor: pointer; text-align: center;
  display: block; text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-unlock:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

/* ── How it works ── */
.how-circle {
  width: 88px; height: 88px; border-radius: 50%;
  background: #fff; border: 2px solid #e8edf2;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.how-title { font-size: 1.02rem; font-weight: 700; margin-bottom: .5rem; }
.how-text { font-size: .87rem; line-height: 1.6; color: var(--muted); }

/* ── What you get ── */
.feat-img { width: 100%; height: 420px; object-fit: cover; border-radius: 8px; display: block; box-shadow: 0 16px 45px rgba(0,0,0,.16); }
.feat-bar { width: 28px; height: 2px; background: var(--accent); margin-bottom: .25rem; }
.feat-title { font-family: 'Inter', sans-serif; font-weight: 600; font-size: .95rem; margin: 0 0 .2rem; }
.feat-text { font-size: .85rem; line-height: 1.55; margin: 0; color: var(--muted); }

/* ── Testimonials ── */
.tcard { background: #fff; border-radius: 8px; padding: 1.75rem; height: 100%; box-shadow: 0 4px 22px rgba(0,0,0,.07); }
.tcard-av {
  width: 52px; height: 52px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem; color: #fff; flex-shrink: 0;
}
.tcard-name { font-weight: 700; font-size: .92rem; color: var(--primary); }
.tcard-loc  { font-size: .78rem; color: var(--muted); }
.tcard-body {
  border-left: 3px solid var(--accent); padding-left: 1rem;
  margin-top: .75rem; font-size: .87rem; color: var(--muted);
  font-style: italic; line-height: 1.65;
}

/* ── Final CTA band ── */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 4.5rem 0; color: #fff; text-align: center;
}
.cta-band h2 { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.cta-band p { max-width: 520px; margin: 0 auto 2rem; font-size: .95rem; color: rgba(255,255,255,.7); }

/* ── Footer ── */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.68); padding: 3rem 0 1.5rem; }
.site-footer h6 {
  color: #fff; font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: .76rem; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: .9rem;
}
.site-footer a { color: rgba(255,255,255,.62); text-decoration: none; font-size: .86rem; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: .42rem; }
.site-footer .footer-brand { font-family: 'Playfair Display', serif; font-weight: 700; color: #fff; font-size: 1.05rem; }
.site-footer .footer-blurb { font-size: .86rem; line-height: 1.72; max-width: 300px; }
.site-footer .footer-small { font-size: .78rem; margin: 0; }
.footer-hr { border-top: 1px solid rgba(255,255,255,.1); margin: 1.75rem 0 1rem; }

/* ── House plans shop ── */
.hp-header { background: var(--primary-dark); color: #fff; padding: 7.5rem 0 2.5rem; }
.hp-crumbs { font-size: .8rem; margin-bottom: .75rem; }
.hp-crumbs a { color: rgba(255,255,255,.7); text-decoration: none; }
.hp-crumbs a:hover { color: #fff; }
.hp-crumbs span { color: rgba(255,255,255,.45); margin: 0 .4rem; }
.hp-header h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; margin-bottom: .5rem; }
.hp-header p { color: rgba(255,255,255,.78); max-width: 640px; margin: 0; }
.hp-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.25rem; padding: 0; list-style: none; font-size: .84rem; color: rgba(255,255,255,.85); }
.hp-trust i { color: var(--accent); margin-right: .35rem; }

.hp-chips { display: flex; gap: .5rem; overflow-x: auto; padding: 1.25rem 0 .25rem; scrollbar-width: thin; }
.hp-chip {
  flex: 0 0 auto; border: 1.5px solid var(--border); border-radius: 50px;
  padding: .4rem 1rem; font-size: .86rem; font-weight: 500; color: var(--text);
  text-decoration: none; background: #fff; white-space: nowrap;
}
.hp-chip small { color: var(--muted); margin-left: .25rem; }
.hp-chip:hover { border-color: var(--primary); color: var(--primary); }
.hp-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.hp-chip.is-active small { color: rgba(255,255,255,.75); }

.hp-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem;
}
.hp-count { font-size: .9rem; color: var(--muted); margin: 0; }
.hp-count strong { color: var(--text); }
.hp-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.hp-filters .form-select { width: auto; font-size: .86rem; border-color: var(--border); }
.hp-filters .hd-link { font-size: .86rem; }

.hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.hp-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.hp-card:hover { box-shadow: 0 14px 34px rgba(15,37,64,.14); transform: translateY(-2px); }
.hp-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--primary), #2d6a9f); }
.hp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-card__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: .85rem; }
.hp-card__plate {
  position: absolute; left: .75rem; top: .75rem; background: rgba(15,37,64,.85); color: #fff;
  font-size: .74rem; font-weight: 600; letter-spacing: .5px; padding: .2rem .55rem; border-radius: 4px;
}
.hp-card__badge {
  position: absolute; right: .75rem; top: .75rem; background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  padding: .2rem .55rem; border-radius: 4px;
}
.hp-card__badge--free { background: #059669; }
.hp-card__body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.hp-card__title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .15rem; }
.hp-card__title a { color: var(--primary-dark); text-decoration: none; }
.hp-card__title a:hover { color: var(--accent-dark); }
.hp-card__meta { font-size: .8rem; color: var(--muted); margin: 0 0 .75rem; }
.hp-card__specs { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .84rem; }
.hp-card__specs i { color: var(--accent); margin-right: .3rem; width: 1em; text-align: center; }
.hp-card__cost { font-size: .8rem; color: var(--muted); margin: 0 0 1rem; }
.hp-card__cost strong { color: var(--text); font-weight: 600; }
.hp-card__foot {
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.hp-card__price { font-weight: 700; color: var(--primary-dark); font-size: 1rem; line-height: 1.2; }
.hp-card__price small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.hp-card__price--free { color: #059669; }
.hp-card__cta {
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 600;
  font-size: .84rem; padding: .5rem 1rem; border-radius: 4px; white-space: nowrap;
}
.hp-card__cta:hover { background: var(--primary-dark); color: #fff; }

.hp-empty { text-align: center; padding: 3.5rem 1rem; border: 1.5px dashed var(--border); border-radius: 10px; }
.hp-empty h2 { font-size: 1.4rem; font-weight: 700; }
.hp-empty p { color: var(--muted); max-width: 460px; margin: .5rem auto 1.25rem; }

.hp-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.hp-pager a, .hp-pager span {
  display: inline-flex; min-width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center;
  padding: 0 .75rem; border-radius: 4px; border: 1px solid var(--border);
  font-size: .88rem; text-decoration: none; color: var(--text); background: #fff;
}
.hp-pager a:hover { border-color: var(--primary); color: var(--primary); }
.hp-pager .is-current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.hp-pager .is-disabled { color: var(--muted); background: var(--soft); }

.hp-custom {
  margin-top: 3.5rem; padding: 2rem; border-radius: 10px; background: var(--cream);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.hp-custom h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 .25rem; }
.hp-custom p { margin: 0; color: var(--muted); font-size: .92rem; }

@keyframes hd-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
  .hp-card, .hp-card:hover { transition: none; transform: none; }
}
@media (max-width: 991px) {
  .hero-section {
    padding: 7rem 0 3.5rem; min-height: auto;
    /* Stacked layout puts white text across the full width — restore an even scrim. */
    background:
      linear-gradient(135deg, rgba(15,37,64,.9) 0%, rgba(26,60,94,.8) 55%, rgba(10,25,47,.88) 100%),
      url("../themes/digalu/assets/img/projects/dream-home.ea61360c5277.jpg") center/cover no-repeat;
  }
  #mainNav .navbar-collapse { background: var(--primary-dark); padding: .5rem 1rem 1rem; border-radius: 6px; }
  .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-img { height: 280px; }
}
@media (max-width: 575px) {
  .hp-grid { grid-template-columns: 1fr; }
  .hero-form-card { padding: 1.5rem 1.25rem; }
  .hero-stats > div + div { border-left: 0; padding-left: 0; }
  .hp-toolbar { align-items: stretch; }
  .hp-filters .form-select { flex: 1 1 100%; }
  .hd-section { padding: 4rem 0; }
}
