/* ===== Comfort Nest Hosting — brand system (preview redesign) ===== */
:root {
  --brand: #0e5941;
  --brand-dark: #083527;
  --brand-deep: #062a1f;
  --brand-tint: #e7f2ec;
  --accent: #e9a13b;
  --accent-dark: #c77f1a;
  --cream: #faf6ef;
  --ink: #1d2a25;
  --muted: #5c6b64;
  --card-shadow: 0 10px 30px rgba(8, 53, 39, .08);
  --card-shadow-hover: 0 18px 42px rgba(8, 53, 39, .14);
  --radius: 1.1rem;
  --bs-primary: #0e5941;
  --bs-primary-rgb: 14, 89, 65;
  --bs-link-color: #0e5941;
  --bs-link-hover-color: #083527;
}

html { font-size: 15px; }
@media (min-width: 768px) { html { font-size: 16px; } }
html { position: relative; min-height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-font {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
  color: var(--brand-deep);
}
h4, h5 { color: var(--brand-deep); }

::selection { background: var(--brand); color: #fff; }

/* --- buttons --- */
.btn { border-radius: 999px; font-weight: 600; }
.btn-primary {
  background: var(--brand); border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(14, 89, 65, .25);
}
.btn-primary:hover, .btn-primary:focus { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-accent {
  background: var(--accent); border-color: var(--accent); color: #23180a;
  box-shadow: 0 8px 20px rgba(233, 161, 59, .35);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(14, 89, 65, .45);
}
.form-control, .form-select { border-radius: .65rem; }

/* --- header --- */
.navbar { box-shadow: 0 2px 18px rgba(8, 53, 39, .07); }
.navbar-brand {
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.3rem;
  color: var(--brand-deep) !important; display: inline-flex; align-items: center; gap: .5rem;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: inline-flex; align-items: center; justify-content: center;
}
.navbar-nav .nav-link { font-weight: 500; }
.navbar-nav .nav-link.active {
  font-weight: 700; color: var(--brand) !important;
  border-bottom: 2px solid var(--accent);
}

/* --- hero --- */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(233, 161, 59, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(46, 139, 104, .5), transparent 55%),
    linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #eaf4ee;
  border-radius: 0 0 2rem 2rem;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; }
.hero h1 .accent-word { color: var(--accent); }
.hero .lead { color: #cfe5d8; font-size: 1.13rem; }
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; border-radius: 999px; padding: .35rem .85rem; font-size: .85rem; font-weight: 600;
}
.trust-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.trust-chip {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; padding: .45rem .9rem; font-size: .9rem; font-weight: 600; color: #fff;
}
.trust-chip .star { color: var(--accent); }

.hero-card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28); padding: 1.4rem 1.5rem;
}
.hero-card .stars { color: var(--accent); font-size: 1.05rem; letter-spacing: .12em; }
.hero-card blockquote { font-size: 1.02rem; line-height: 1.55; margin: 0; }
.hero-badge-card {
  background: var(--cream); border: 1px solid #f0e4cd; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 1rem 1.2rem;
}

/* --- section bands --- */
.band-cream { background: var(--cream); border-radius: 2rem; }
.band-tint { background: var(--brand-tint); border-radius: 2rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* --- stat band (TrackRecord) --- */
.stats-band { background: #fff; border: 1px solid #e8eee9; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 1.2rem .5rem .4rem; }
.stats-band .row { justify-content: center; }
.stats-band .fs-4, .stats-band .fs-5 { color: var(--brand); font-family: "Fraunces", Georgia, serif; }

/* --- generic cards --- */
.card {
  border: 1px solid #e8eee9; border-radius: var(--radius) !important;
  box-shadow: var(--card-shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }

.service-icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 1rem;
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 26px; height: 26px; }

/* --- how it works --- */
.step-num {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--brand); color: #fff; font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(14, 89, 65, .3);
}

/* --- reviews --- */
.card .text-warning { color: var(--accent) !important; letter-spacing: .12em; }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: var(--brand) !important; }
.carousel-indicators [data-bs-target] { background-color: var(--brand); }

/* --- pricing --- */
.pricing-scope .price-line .fs-3 { font-family: "Fraunces", Georgia, serif; color: var(--brand-deep); font-size: 2.3rem !important; }
.pricing-scope .card.featured { border: 2px solid var(--brand); box-shadow: var(--card-shadow-hover); }
.pricing-scope .featured-head {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  padding: .7rem 1.25rem; font-weight: 700; letter-spacing: .02em; font-size: .95rem;
}
.badge-soft { background: var(--brand-tint); color: var(--brand-dark); border-radius: 999px; padding: .3rem .7rem; font-size: .8rem; font-weight: 600; }
.city-pill {
  display: inline-block; background: #fff; border: 1px solid #dce7de; color: var(--brand-deep);
  border-radius: 999px; padding: .3rem .8rem; margin: .18rem; font-size: .9rem; font-weight: 500;
  box-shadow: 0 3px 10px rgba(8, 53, 39, .05);
}

/* --- final CTA + footer --- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(233, 161, 59, .3), transparent 60%),
    linear-gradient(135deg, var(--brand-deep), var(--brand));
  border-radius: 2rem; color: #fff;
}
.cta-band h2, .cta-band h3 { color: #fff; }
footer.footer { background: var(--brand-deep); color: #b9d2c4 !important; border-top: none !important; }
footer.footer a { color: #fff; }
footer.footer .fineprint { color: #8fa89a; }

/* --- sticky mobile CTA --- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border-top: 1px solid #e3eae4; padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom));
  display: none; gap: .6rem;
}
@media (max-width: 767.98px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 64px; }
  .hero { border-radius: 0 0 1.4rem 1.4rem; }
}

/* --- property photo placeholders --- */
.photo-slot {
  aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - .2rem) calc(var(--radius) - .2rem) 0 0;
  background:
    radial-gradient(420px 220px at 80% 0%, rgba(233, 161, 59, .35), transparent 60%),
    linear-gradient(140deg, #2e8b68, var(--brand) 55%, var(--brand-deep));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  color: #eaf4ee;
}
.photo-slot .photo-chip {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px; padding: .25rem .75rem; font-size: .8rem; font-weight: 600;
}

.required-marker { color: var(--bs-danger); }
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color); text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* --- live chat widget (from chat feature) --- */

.chat-widget {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1050;
}

.chat-toggle-btn {
  background-color: var(--bs-primary);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.6rem 1.1rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

.chat-panel {
  position: absolute;
  bottom: 3.5rem;
  right: 0;
  width: 320px;
  max-width: 90vw;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel-header {
  background-color: var(--bs-primary);
  color: #fff;
  padding: 0.6rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.chat-panel-body {
  padding: 0.75rem;
  max-height: 320px;
  overflow-y: auto;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-message {
  font-size: 0.875rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  background-color: #f1f3f5;
}

.chat-message-visitor {
  background-color: #d7e9ff;
  align-self: flex-end;
}

.chat-message-time {
  display: block;
  font-size: 0.68rem;
  color: #868e96;
  margin-top: 0.15rem;
}

.chat-panel-footer {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem;
  border-top: 1px solid #e5e5e5;
}

.chat-panel-footer input {
  flex: 1;
}

/* --- live chat widget: brand polish overrides --- */
.chat-panel { border-radius: 1rem; }
.chat-toggle-btn { background-color: var(--brand); box-shadow: 0 14px 34px rgba(8, 53, 39, .35); }
.chat-toggle-btn:hover { background-color: var(--brand-dark); }
.chat-panel-header { background-color: var(--brand); }
@media (max-width: 767.98px) {
  .chat-widget { bottom: 84px; }
}

/* --- sticky site header: main nav stays at the top while scrolling --- */
.site-header { position: sticky; top: 0; z-index: 1020; }

/* --- home page section nav --- */
html { scroll-behavior: smooth; }
.section-anchor { scroll-margin-top: 118px; }
.section-nav {
  position: sticky; top: 56px; z-index: 1010;
  background: rgba(250, 246, 239, .95); backdrop-filter: blur(6px);
  border: 1px solid #eee3cd; border-radius: 999px;
  padding: .35rem .5rem; margin: 1rem 0 0;
  box-shadow: 0 8px 24px rgba(8, 53, 39, .08);
}
.section-nav .nav-link {
  color: var(--ink); font-weight: 600; font-size: .92rem;
  border-radius: 999px; padding: .4rem .85rem; white-space: nowrap;
}
.section-nav .nav-link:hover { background: #fff; color: var(--brand); }
.section-nav-row { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; }
.section-nav-row::-webkit-scrollbar { display: none; }

/* --- photo placeholder: framed, labeled --- */
.photo-slot { position: relative; }
.photo-frame {
  border: 2px dashed rgba(255, 255, 255, .55); border-radius: .9rem;
  padding: 1.4rem 1.8rem; display: flex; flex-direction: column; align-items: center; gap: .55rem;
  background: rgba(255, 255, 255, .06);
}
.photo-name {
  position: absolute; left: 1.1rem; bottom: .85rem;
  font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.1rem; color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
