/* ============================================================
   Home Living Idea — custom styles
   Palette: deep evergreen + warm terracotta on soft cream
   ============================================================ */

:root {
  --brand-dark: #12322a;
  --brand: #1d5a49;
  --brand-soft: #e7f1ec;
  --accent: #dd8349;
  --accent-dark: #c26a31;
  --accent-soft: #fbeee3;
  --cream: #faf7f1;
  --ink: #22302b;
  --muted: #5e6d65;
  --line: #e7e1d6;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(18, 50, 42, 0.08);
  --shadow-md: 0 18px 44px rgba(18, 50, 42, 0.14);
  --radius: 18px;
  --font-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .font-serif {
  font-family: var(--font-serif);
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { text-decoration: none; transition: color .2s ease; }

img, svg { max-width: 100%; }

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

/* ---------- Logo (always one line) ---------- */
.navbar-brand.logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  white-space: nowrap;
  flex-wrap: nowrap;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--brand-dark);
  line-height: 1;
}
.navbar-brand.logo .logo-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(18, 50, 42, .28);
}
.navbar-brand.logo .logo-text { white-space: nowrap; }
.navbar-brand.logo .logo-text em {
  font-style: normal;
  color: var(--accent);
}

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow .25s ease, background .25s ease;
}
.navbar {
  padding: .85rem 0;
  background: rgba(250, 247, 241, .92);
  backdrop-filter: blur(12px);
}
.site-header.scrolled .navbar {
  box-shadow: 0 10px 30px rgba(18, 50, 42, .10);
}
.navbar .nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  padding: .5rem .95rem !important;
  position: relative;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .95rem;
  right: .95rem;
  bottom: .35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--brand); }
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: none; padding: .4rem .55rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-border-radius: 50px;
  font-weight: 600;
  padding: .72rem 1.7rem;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-dark);
  --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
  --bs-btn-disabled-bg: var(--accent);
  --bs-btn-disabled-border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(221, 131, 73, .32);
}
.btn-outline-brand {
  color: var(--brand);
  border: 2px solid var(--brand);
  background: transparent;
}
.btn-outline-brand:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}
.btn-light-pill {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
}
.btn-light-pill:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(221, 131, 73, .16), transparent 60%),
    radial-gradient(760px 460px at -8% 110%, rgba(29, 90, 73, .14), transparent 60%),
    var(--cream);
  padding: 5.2rem 0 4.5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #f3d6c0;
  padding: .42rem .95rem;
  border-radius: 50px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.12;
  margin: 1.1rem 0;
}
.hero h1 .accent-word { color: var(--accent); }
.hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.hero-art {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform: rotate(1.2deg);
  border: 6px solid #fff;
  background: #fff;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.hero-badge {
  position: absolute;
  left: -14px;
  bottom: 26px;
  background: #fff;
  border-radius: 14px;
  padding: .8rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: .7rem;
  align-items: center;
  font-weight: 600;
  color: var(--brand-dark);
  font-size: .9rem;
}
.hero-badge .dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  flex: 0 0 auto;
}
.trust-row { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; margin-top: 1.8rem; padding: 0; list-style: none; }
.trust-row li { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .93rem; color: var(--brand-dark); }
.trust-row svg { color: var(--accent); flex: 0 0 auto; }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
.section-tight { padding: 3.6rem 0; }
.section-soft { background: #fff; }
.section-brand {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #dfeee7;
}
.section-brand h2, .section-brand h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { margin-bottom: .9rem; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-brand .section-head p { color: #b9d2c7; }

/* ---------- Service cards ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card .card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-card .card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.service-card:hover .card-img-wrap img { transform: scale(1.06); }
.service-card .card-img-wrap .tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.92);
  color: var(--brand-dark);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .32rem .75rem;
  border-radius: 50px;
}
.service-card .card-body {
  padding: 1.5rem 1.5rem 1.65rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card h3 {
  font-size: 1.28rem;
  margin-bottom: .55rem;
}
.service-card p {
  color: var(--muted);
  font-size: .94rem;
  margin-bottom: 1.35rem;
  flex: 1;
}
.service-card .btn { align-self: flex-start; padding: .58rem 1.35rem; }

/* ---------- Feature tiles ---------- */
.feature-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1.15rem;
}
.feature-icon.accent { background: var(--accent-soft); color: var(--accent-dark); }
.feature-tile h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.feature-tile p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Blog ---------- */
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.blog-card .card-img-wrap { aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.blog-card:hover .card-img-wrap img { transform: scale(1.06); }
.blog-card .card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .7rem;
}
.blog-meta .cat {
  background: var(--accent-soft);
  padding: .25rem .7rem;
  border-radius: 50px;
}
.blog-card h3 { font-size: 1.25rem; line-height: 1.35; margin-bottom: .6rem; }
.blog-card h3 a { color: var(--brand-dark); }
.blog-card h3 a:hover { color: var(--accent-dark); }
.blog-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.read-more {
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
}
.read-more:hover { color: var(--accent-dark); gap: .7rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 26px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 58%, #2c7a63 100%);
  color: #eaf4ef;
  padding: 3.4rem 3rem;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -90px; top: -90px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(221, 131, 73, .25);
}
.cta-band::before {
  content: "";
  position: absolute;
  left: -60px; bottom: -110px;
  width: 230px; height: 230px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.cta-band h2 { color: #fff; position: relative; z-index: 1; }
.cta-band p { color: #c4ddd3; position: relative; z-index: 1; margin-bottom: 0; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 360px at 90% -20%, rgba(221,131,73,.18), transparent 60%),
    linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #dcece5;
  padding: 4.2rem 0 3.6rem;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .8rem; }
.page-hero p { color: #bdd6cc; max-width: 680px; margin: 0 auto; }
.breadcrumb { justify-content: center; margin-bottom: 1.1rem; font-size: .88rem; }
.breadcrumb a { color: #f0c9ab; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-item.active { color: #cfe3da; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.45); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow-sm);
}
.form-label { font-weight: 600; color: var(--brand-dark); font-size: .92rem; }
.form-control, .form-select {
  border-radius: 12px;
  border: 1.5px solid var(--line);
  padding: .72rem 1rem;
  background: #fdfcfa;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .22rem rgba(221,131,73,.18);
  background: #fff;
}
.info-card {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.info-card .ic {
  width: 50px; height: 50px; flex: 0 0 auto;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.info-card h3 { font-size: 1.06rem; margin-bottom: .3rem; }
.info-card p, .info-card a { color: var(--muted); font-size: .93rem; margin: 0; word-break: break-word; }
.info-card a:hover { color: var(--accent-dark); }

.form-success {
  display: none;
  background: var(--brand-soft);
  border: 1px solid #bcd9cd;
  color: var(--brand-dark);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  margin-top: 1.2rem;
  font-weight: 600;
}
.form-success.show { display: flex; gap: .7rem; align-items: flex-start; }

/* ---------- Prose / legal ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.55rem; margin: 2.4rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose a { color: var(--accent-dark); font-weight: 600; }
.updated-note {
  background: var(--accent-soft);
  border: 1px solid #f2d3bb;
  color: #8a4d24;
  border-radius: 14px;
  padding: 1rem 1.3rem;
  font-weight: 600;
}

/* ---------- Article ---------- */
.article-hero-img { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 2.4rem; }
.article-hero-img img { width: 100%; display: block; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 1.6rem; margin: 2.3rem 0 .8rem; }
.article-body p { color: #43524b; font-size: 1.04rem; }
.article-body ul { padding-left: 1.25rem; }
.article-body li { color: #43524b; margin-bottom: .5rem; font-size: 1.04rem; }
.article-quote {
  border-left: 4px solid var(--accent);
  background: #fff;
  border-radius: 0 14px 14px 0;
  padding: 1.3rem 1.6rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--brand-dark);
  font-style: italic;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

/* ---------- Newsletter pages ---------- */
.newsletter-visual {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid #fff;
}
.perk-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.perk-list li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; color: var(--ink); font-weight: 500; }
.perk-list .tick {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: .15rem;
}

/* ---------- About ---------- */
.about-img { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md); border: 6px solid #fff; }
.value-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: .7rem 1.3rem;
  font-weight: 600;
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.value-pill svg { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-dark);
  color: #b7cfc5;
  padding: 4.4rem 0 0;
  font-size: .94rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.site-footer a { color: #b7cfc5; }
.site-footer a:hover { color: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .65rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .5rem; }
.footer-brand p { color: #93b2a6; margin: 1rem 0 1.3rem; max-width: 320px; }
.footer-brand .logo { color: #fff; }
.social-row { display: flex; gap: .7rem; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: #d8e8e1;
}
.social-row a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .85rem; align-items: flex-start; }
.footer-contact svg { flex: 0 0 auto; margin-top: .25rem; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 3.2rem;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  color: #88a89c;
  font-size: .88rem;
}
.footer-bottom a { color: #b7cfc5; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .25s ease;
  z-index: 1020;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero { padding: 3.4rem 0 3rem; }
  .hero-art { margin-top: 2.6rem; transform: none; }
  section { padding: 3.8rem 0; }
  .cta-band { padding: 2.4rem 1.6rem; }
}
@media (max-width: 575.98px) {
  .form-card { padding: 1.6rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}
