/* ============================================================
   Remodel Home Design — remodelhomedesign.com
   Custom design layer over Bootstrap 5
   ============================================================ */

:root {
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --ink: #22322b;
  --pine: #1d3a31;
  --pine-deep: #12241d;
  --terra: #d4562c;
  --terra-dark: #b0421f;
  --terra-soft: #f6dfd3;
  --gold: #c98a3d;
  --sage: #8fae9d;
  --line: rgba(34, 50, 43, 0.14);
  --shadow: 0 24px 60px -30px rgba(18, 36, 29, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

::selection { background: var(--terra); color: var(--cream); }

h1, h2, h3, h4, h5, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

img { max-width: 100%; }

/* ---------- Eyebrows, headings, accents ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  color: var(--pine-deep);
}
.section-title em { font-style: italic; color: var(--terra); }
.lead-soft { color: rgba(34, 50, 43, 0.72); font-size: 1.06rem; line-height: 1.75; }

/* ---------- Buttons ---------- */
.btn-terra, .btn-ghost, .btn-cream {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}
.btn-terra { background: var(--terra); color: #fff; box-shadow: 0 14px 30px -14px rgba(212, 86, 44, 0.65); }
.btn-terra:hover { background: var(--pine-deep); color: var(--cream); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(34, 50, 43, 0.28); color: var(--pine-deep); }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra); transform: translateY(-2px); }
.btn-cream { background: var(--cream); color: var(--pine-deep); }
.btn-cream:hover { background: var(--terra); color: #fff; transform: translateY(-2px); }
.btn-ghost-cream { border-color: rgba(246, 241, 231, 0.4); color: var(--cream); display: inline-flex; align-items: center; gap: .55rem; border-radius: 999px; padding: .8rem 1.7rem; font-weight: 700; transition: all .25s ease; }
.btn-ghost-cream:hover { border-color: var(--terra); color: var(--terra); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr, a:hover > .arr { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; color: var(--terra); font-size: .95rem;
}
.link-arrow .arr { transition: transform .25s ease; }
.link-arrow:hover .arr { transform: translateX(5px); }

/* ---------- Navbar ---------- */
.navbar-rhd {
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  transition: box-shadow .3s ease;
}
.navbar-rhd.scrolled { box-shadow: 0 10px 30px -18px rgba(18, 36, 29, 0.35); }

.brand-lockup { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 2.1vw, 1.35rem);
  color: var(--pine-deep);
  white-space: nowrap;           /* logo stays on one line */
  letter-spacing: 0.005em;
  line-height: 1;
}
.brand-text .accent { color: var(--terra); }

.navbar-rhd .nav-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0 0.35rem;
  position: relative;
  padding: 0.4rem 0.6rem;
}
.navbar-rhd .nav-link::after {
  content: "";
  position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--terra);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.navbar-rhd .nav-link:hover::after,
.navbar-rhd .nav-link.active::after { transform: scaleX(1); }
.navbar-rhd .nav-link.active { color: var(--terra); }
.nav-cta { margin-left: .5rem; padding: .55rem 1.3rem; }

.navbar-toggler { border: none; box-shadow: none !important; }
.navbar-toggler:focus { box-shadow: none; outline: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--pine) 0%, var(--pine-deep) 78%);
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(560px 340px at 88% 8%, rgba(212, 86, 44, 0.28), transparent 65%),
    radial-gradient(480px 320px at 4% 92%, rgba(143, 174, 157, 0.16), transparent 65%);
  pointer-events: none;
}
.hero .grain {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(246,241,231,.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.3rem);
  line-height: 1.06;
  font-weight: 600;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero-lead { color: rgba(246, 241, 231, 0.82); font-size: 1.08rem; line-height: 1.8; max-width: 34rem; }

.hero-visual { position: relative; }
.hero-arch {
  border-radius: 340px 340px 26px 26px;
  overflow: hidden;
  border: 6px solid rgba(246, 241, 231, 0.16);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.6;
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }

.float-badge {
  position: absolute;
  background: var(--paper);
  color: var(--pine-deep);
  border-radius: 18px;
  padding: .8rem 1.1rem;
  display: flex; align-items: center; gap: .7rem;
  font-weight: 800; font-size: .85rem;
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.float-badge .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--terra-soft); color: var(--terra); }
.float-badge.badge-a { left: -3.2rem; top: 16%; }
.float-badge.badge-b { right: -2.4rem; bottom: 12%; animation-delay: 2.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-chip {
  border: 1px solid rgba(246,241,231,.28);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .8rem; font-weight: 700;
  color: rgba(246,241,231,.85);
  display: inline-flex; align-items: center; gap: .45rem;
}
.hero-chip svg { color: var(--gold); }

/* ---------- Marquee ribbon ---------- */
.ribbon {
  background: var(--terra);
  color: var(--cream);
  overflow: hidden;
  padding: 0.9rem 0;
  border-block: 3px solid var(--pine-deep);
}
.ribbon-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  white-space: nowrap;
  padding: 0 1.1rem;
  display: inline-flex; align-items: center; gap: 2.2rem;
}
.ribbon-track i { font-style: normal; color: var(--pine-deep); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Service cards ---------- */
.svc-card {
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.svc-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.svc-card:hover .svc-media img { transform: scale(1.07); }
.svc-icon {
  position: absolute; left: 1.2rem; bottom: -1.35rem;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--terra); color: #fff;
  display: grid; place-items: center;
  border: 4px solid var(--paper);
  z-index: 2;
}
.svc-body { padding: 2.1rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.svc-body h3 { font-size: 1.28rem; color: var(--pine-deep); }
.svc-body p { color: rgba(34,50,43,.7); font-size: .93rem; line-height: 1.7; flex: 1; }
.svc-body .btn { align-self: flex-start; padding: .55rem 1.25rem; font-size: .86rem; }

/* ---------- Value / step tiles ---------- */
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem 1.6rem;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.tile .ico {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--terra-soft); color: var(--terra);
  margin-bottom: 1.2rem;
}
.tile h3 { font-size: 1.2rem; color: var(--pine-deep); }
.tile p { color: rgba(34,50,43,.7); font-size: .93rem; line-height: 1.7; margin: 0; }

/* ---------- Split feature ---------- */
.img-arch-sm { border-radius: 220px 220px 22px 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/4.4; }
.img-arch-sm img, .img-round img { width: 100%; height: 100%; object-fit: cover; }
.img-round { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }

.collage-back { position: relative; }
.collage-back::after {
  content: ""; position: absolute; z-index: -1;
  width: 70%; height: 70%; right: -1.4rem; bottom: -1.4rem;
  border: 3px solid var(--terra); border-radius: 26px;
}

/* ---------- Blog cards ---------- */
.blog-card {
  background: var(--paper); border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); height: 100%;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.blog-media { aspect-ratio: 16/9.6; overflow: hidden; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.blog-card:hover .blog-media img { transform: scale(1.06); }
.blog-body { padding: 1.6rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: .8rem; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(34,50,43,.55); }
.blog-meta .tag { background: var(--terra-soft); color: var(--terra); padding: .3rem .8rem; border-radius: 999px; }
.blog-body h3 { font-size: 1.3rem; line-height: 1.3; color: var(--pine-deep); }
.blog-body h3 a { color: inherit; transition: color .2s; }
.blog-body h3 a:hover { color: var(--terra); }
.blog-body p { color: rgba(34,50,43,.7); font-size: .93rem; line-height: 1.7; flex: 1; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--pine) 0%, var(--pine-deep) 90%);
  border-radius: 30px;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(460px 260px at 90% 10%, rgba(212,86,44,.3), transparent 65%);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.cta-band h2 em { color: var(--gold); font-style: italic; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--pine) 0%, var(--pine-deep) 100%);
  color: var(--cream);
  padding: 5.2rem 0 4.2rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 300px at 85% 0%, rgba(212,86,44,.26), transparent 65%);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { background: var(--gold); }
.crumbs { font-size: .85rem; font-weight: 700; color: rgba(246,241,231,.65); }
.crumbs a { color: rgba(246,241,231,.85); }
.crumbs a:hover { color: var(--gold); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 3rem);
}
.form-label { font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(34,50,43,.65); }
.form-control, .form-select {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: .75rem 1rem;
  background: #fff;
  font-size: .95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 .25rem rgba(212,86,44,.12);
}
.form-note { font-size: .82rem; color: rgba(34,50,43,.55); }
.form-success {
  display: none;
  background: #eef6ef;
  border: 2px solid #bcd9bd;
  color: #22543c;
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  font-weight: 700;
}
.form-success.show { display: flex; }

/* ---------- Info card (contact) ---------- */
.info-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 22px; padding: 1.8rem 1.6rem; height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.info-card .ico {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--terra-soft); color: var(--terra);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.info-card h3 { font-size: 1.15rem; color: var(--pine-deep); }
.info-card p, .info-card a { color: rgba(34,50,43,.75); font-size: .95rem; line-height: 1.7; }
.info-card a:hover { color: var(--terra); }

/* ---------- Blog article ---------- */
.article-body { font-size: 1.02rem; line-height: 1.9; color: rgba(34,50,43,.82); }
.article-body h2 { font-size: 1.6rem; color: var(--pine-deep); margin: 2.2rem 0 1rem; }
.article-body h3 { font-size: 1.25rem; color: var(--pine-deep); margin: 1.8rem 0 .8rem; }
.article-body p { margin-bottom: 1.15rem; }
.article-body blockquote {
  border-left: 4px solid var(--terra);
  background: var(--paper);
  border-radius: 0 18px 18px 0;
  padding: 1.4rem 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--pine-deep);
  margin: 1.8rem 0;
}
.article-cover { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 21/9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Legal ---------- */
.legal-card { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(1.8rem, 4vw, 3.4rem); }
.legal-card h2 { font-size: 1.45rem; color: var(--pine-deep); margin: 2rem 0 .8rem; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card p, .legal-card li { color: rgba(34,50,43,.75); line-height: 1.8; font-size: .97rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--pine-deep);
  color: rgba(246,241,231,.78);
  padding: 4.5rem 0 0;
  position: relative;
}
.footer h5 { color: var(--cream); font-size: 1.02rem; margin-bottom: 1.2rem; }
.footer a { color: rgba(246,241,231,.72); font-size: .93rem; transition: color .2s, padding-left .2s; }
.footer a:hover { color: var(--gold); padding-left: 4px; }
.footer .brand-text { color: var(--cream); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-bottom { border-top: 1px solid rgba(246,241,231,.14); margin-top: 3.4rem; padding: 1.4rem 0; font-size: .85rem; }
.socials { display: flex; gap: .6rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(246,241,231,.08);
  transition: background .25s, transform .25s;
}
.socials a:hover { background: var(--terra); transform: translateY(-3px); padding-left: 0; }

/* ---------- Newsletter band ---------- */
.news-band {
  background: var(--terra);
  color: #fff;
  border-radius: 26px;
  padding: 2.6rem 2.4rem;
  position: relative; overflow: hidden;
}
.news-band::after {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  border: 26px solid rgba(255,255,255,.12);
}
.news-band h3 { font-size: 1.6rem; }
.news-band .form-control { border: none; border-radius: 999px; padding: .85rem 1.4rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

/* ---------- Helpers ---------- */
.section-pad { padding: 5.5rem 0; }
.section-pad-sm { padding: 4rem 0; }
.bg-paper { background: var(--paper); }
.text-mute { color: rgba(34,50,43,.6); }

@media (max-width: 991.98px) {
  .navbar-collapse { background: var(--paper); border-radius: 18px; padding: 1rem; margin-top: .8rem; border: 1px solid var(--line); }
  .float-badge.badge-a { left: 0; }
  .float-badge.badge-b { right: 0; }
  .hero-arch { aspect-ratio: 4/3.4; border-radius: 200px 200px 22px 22px; }
}
@media (max-width: 575.98px) {
  .brand-text { font-size: 1.02rem; }
  .float-badge { display: none; }
}
