/* ============================================================
   Happy Nest Design — Custom Styles
   happynestdesign.com
   ============================================================ */
:root {
  --hn-primary: #1f5f4f;
  --hn-primary-dark: #17473c;
  --hn-primary-light: #e7f0ec;
  --hn-accent: #f2a93b;
  --hn-accent-dark: #d98c1f;
  --hn-cream: #f7f3ec;
  --hn-ink: #22332c;
  --hn-muted: #66756f;
  --hn-white: #ffffff;
  --hn-line: #e6ddd0;
  --hn-radius: 18px;
  --hn-shadow: 0 12px 34px rgba(31, 95, 79, 0.12);
  --hn-shadow-lg: 0 22px 50px rgba(31, 95, 79, 0.18);
}

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  color: var(--hn-ink);
  background: var(--hn-white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .navbar-brand {
  font-family: "Poppins", "Segoe UI", "Inter", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--hn-ink);
}

a { text-decoration: none; }

.text-accent { color: var(--hn-accent) !important; }
.bg-cream { background: var(--hn-cream); }
.bg-primary-deep { background: var(--hn-primary); }
.text-primary-deep { color: var(--hn-primary) !important; }

/* ---------- Buttons ---------- */
.btn-hn {
  background: var(--hn-accent);
  color: var(--hn-ink);
  border: none;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  border-radius: 50px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(242, 169, 59, 0.35);
}
.btn-hn:hover { background: var(--hn-accent-dark); color: #fff; transform: translateY(-2px); }

.btn-outline-hn {
  background: transparent;
  color: var(--hn-primary);
  border: 2px solid var(--hn-primary);
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  transition: all 0.25s ease;
}
.btn-outline-hn:hover { background: var(--hn-primary); color: #fff; transform: translateY(-2px); }

.btn-light-hn {
  background: #fff;
  color: var(--hn-primary);
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  border-radius: 50px;
  transition: all 0.25s ease;
}
.btn-light-hn:hover { background: var(--hn-cream); transform: translateY(-2px); }

/* ---------- Section helpers ---------- */
.section { padding: 5rem 0; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hn-accent-dark);
  margin-bottom: 0.6rem;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.section-lead { color: var(--hn-muted); max-width: 720px; }

/* ---------- Navbar ---------- */
.hn-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 2px 20px rgba(31, 95, 79, 0.08);
  padding: 0.8rem 0;
}
.hn-nav .navbar-brand { font-size: 1.45rem; font-weight: 800; color: var(--hn-primary); }
.hn-nav .navbar-brand span { color: var(--hn-accent); }
.hn-nav .nav-link {
  color: var(--hn-ink);
  font-weight: 500;
  margin: 0 0.2rem;
  position: relative;
}
.hn-nav .nav-link:hover { color: var(--hn-primary); }
.hn-nav .nav-link.active { color: var(--hn-primary); font-weight: 600; }
.hn-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.5rem; right: 0.5rem; bottom: 0.1rem;
  height: 3px; border-radius: 3px;
  background: var(--hn-accent);
}
.brand-logo {
  width: 42px; height: 42px;
  background: var(--hn-primary);
  color: #fff;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(23,71,60,0.92), rgba(31,95,79,0.82)),
    url("../img/hero-home.jpg") center/cover no-repeat;
  color: #fff;
  padding: 7rem 0 8rem;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.15; }
.hero p.lead { color: rgba(255,255,255,0.9); }
.hero .badge-pill {
  background: var(--hn-accent);
  color: var(--hn-ink);
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-weight: 600;
}
.hero-stats .stat-num { font-size: 2rem; font-weight: 800; color: var(--hn-accent); }
.hero-stats .stat-label { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.floating-card {
  background: #fff;
  border-radius: var(--hn-radius);
  box-shadow: var(--hn-shadow-lg);
  padding: 1.4rem;
}
.floating-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--hn-primary-light); color: var(--hn-primary); display:flex; align-items:center; justify-content:center; font-size:1.4rem; }

/* ---------- Cards ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-radius);
  padding: 2rem 1.6rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hn-accent), var(--hn-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--hn-shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .svc-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: var(--hn-primary-light);
  color: var(--hn-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 1.1rem;
}
.service-card h5 { margin-bottom: 0.6rem; }
.service-card p { color: var(--hn-muted); font-size: 0.95rem; }
.service-card .stretched-link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Feature / value cards ---------- */
.value-card { text-align: center; padding: 1.5rem 1rem; }
.value-card .val-icon { width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 50%; background: var(--hn-cream); color: var(--hn-primary); display:flex; align-items:center; justify-content:center; font-size:1.8rem; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--hn-radius);
  box-shadow: var(--hn-shadow);
  padding: 2rem;
  height: 100%;
}
.testimonial-card .quote-icon { color: var(--hn-accent); font-size: 2rem; }
.stars { color: var(--hn-accent); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(120deg, rgba(23,71,60,0.94), rgba(31,95,79,0.86)),
    url("../img/cta-home.jpg") center/cover no-repeat;
  color: #fff;
  padding: 4rem 0;
  border-radius: 24px;
}

/* ---------- Blog ---------- */
.blog-card { background:#fff; border:1px solid var(--hn-line); border-radius: var(--hn-radius); overflow:hidden; height:100%; transition: all .3s ease; }
.blog-card:hover { box-shadow: var(--hn-shadow); transform: translateY(-5px); }
.blog-card .card-body { padding: 1.4rem; }
.blog-card .tag { color: var(--hn-accent-dark); font-weight:600; font-size:.8rem; text-transform:uppercase; letter-spacing:1px; }
.blog-card h5 { font-size:1.1rem; }
.blog-card .meta { color: var(--hn-muted); font-size:.85rem; }
.blog-img { height: 200px; background-size:cover; background-position:center; }

/* ---------- Forms ---------- */
.hn-form .form-control, .hn-form .form-select {
  border-radius: 12px;
  border: 1.5px solid var(--hn-line);
  padding: 0.8rem 1rem;
  background: #fff;
}
.hn-form .form-control:focus, .hn-form .form-select:focus {
  border-color: var(--hn-primary);
  box-shadow: 0 0 0 0.25rem rgba(31, 95, 79, 0.12);
}
.form-success, .form-error { display: none; }
.form-success.show { display: block; }
.form-error.show { display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    linear-gradient(120deg, rgba(23,71,60,0.92), rgba(31,95,79,0.82)),
    url("../img/page-banner.jpg") center/cover no-repeat;
  color: #fff;
  padding: 6rem 0 4.5rem;
}
.page-hero h1 { color: #fff; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,0.6); }
.breadcrumb a, .breadcrumb .active { color: rgba(255,255,255,0.9); text-decoration: none; }

/* ---------- Footer ---------- */
.hn-footer { background: #143a30; color: rgba(255,255,255,0.85); }
.hn-footer a { color: rgba(255,255,255,0.85); }
.hn-footer a:hover { color: var(--hn-accent); }
.hn-footer h6 { color: #fff; font-weight: 700; }
.hn-footer .footer-brand { font-size: 1.5rem; font-weight: 800; color: #fff; }
.hn-footer .footer-brand span { color: var(--hn-accent); }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; transition: all .25s ease;
}
.social-btn:hover { background: var(--hn-accent); color: #143a30; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }

/* ---------- Process / steps ---------- */
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--hn-accent);
  color: var(--hn-ink);
  font-weight: 800; font-size: 1.3rem;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 1rem;
}

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 0.35rem 0; }
.check-list li::before {
  content: "\2713";
  color: var(--hn-primary);
  font-weight: 700;
  margin-right: 0.6rem;
  background: var(--hn-primary-light);
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items:center; justify-content:center;
}

/* ---------- FAQ ---------- */
.accordion-hn .accordion-button { font-weight: 600; color: var(--hn-ink); }
.accordion-hn .accordion-button:not(.collapsed) { background: var(--hn-primary-light); color: var(--hn-primary); }

/* ---------- Contact info cards ---------- */
.info-card { background:#fff; border:1px solid var(--hn-line); border-radius: var(--hn-radius); padding:1.5rem; height:100%; text-align:center; }
.info-card .ic { width:56px; height:56px; border-radius:50%; background: var(--hn-primary-light); color:var(--hn-primary); display:flex; align-items:center; justify-content:center; font-size:1.4rem; margin:0 auto 1rem; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991px) {
  .hero { padding: 5rem 0 6rem; }
  .hero .floating-card { margin-top: 2rem; }
}
