/* ==========================================================================
   HomeTransformHub — Main Stylesheet
   Built with Bootstrap 5 (grid) + custom theme
   Palette: Deep Navy · Warm Amber · Soft Ivory
   ========================================================================== */

:root {
  --navy: #0f2e4c;
  --navy-2: #16406a;
  --navy-3: #0a2238;
  --accent: #f2a13c;
  --accent-2: #f6bd60;
  --accent-dark: #d98a1f;
  --bg: #f8f6f1;
  --bg-2: #efe9df;
  --ink: #13283f;
  --body: #5a6472;
  --line: #e7e1d5;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(15, 46, 76, 0.10);
  --shadow-lg: 0 26px 64px rgba(15, 46, 76, 0.18);
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.display-heading, .brand-text {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

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

img { max-width: 100%; }

::selection { background: var(--accent); color: var(--navy-3); }

/* ---------- Utilities ---------- */
.text-accent { color: var(--accent) !important; }
.text-navy { color: var(--navy) !important; }
.bg-soft { background: var(--bg) !important; }
.bg-navy { background: var(--navy) !important; }

.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .9rem; }
.lead-soft { color: var(--body); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; font-family: var(--font-head); padding: .7rem 1.5rem; }

.btn-accent {
  background: var(--accent);
  color: var(--navy-3);
  border: 2px solid var(--accent);
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--navy-3);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(242, 161, 60, .35);
}

.btn-navy { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-2); border-color: var(--navy-2); color: #fff; transform: translateY(-2px); }

.btn-outline-light-soft {
  border: 2px solid rgba(255, 255, 255, .75);
  color: #fff;
}
.btn-outline-light-soft:hover, .btn-outline-light-soft:focus {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover, .btn-outline-navy:focus { background: var(--navy); color: #fff; }

.btn .bi { margin-right: .35rem; }

/* ---------- Navbar ---------- */
#mainNav {
  padding: 1rem 0;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
  z-index: 1030;
}
#mainNav .nav-link {
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
  font-family: var(--font-head);
  font-size: .95rem;
  padding: .5rem .85rem !important;
  position: relative;
}
#mainNav .nav-link::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .15rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: #fff; }
#mainNav .nav-link:hover::after, #mainNav .nav-link.active::after { transform: scaleX(1); }

#mainNav.scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 30px rgba(15, 46, 76, .12);
  padding: .55rem 0;
}
#mainNav.scrolled .nav-link { color: var(--ink); }
#mainNav.scrolled .nav-link:hover, #mainNav.scrolled .nav-link.active { color: var(--navy); }

.brand-mark {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent);
  margin-right: .6rem;
  box-shadow: 0 6px 16px rgba(242, 161, 60, .4);
}
.brand-text { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.brand-text span { color: var(--accent); }
#mainNav.scrolled .brand-text { color: var(--navy); }
#mainNav.scrolled .brand-text span { color: var(--accent-dark); }

.navbar-toggler { border: 0; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
#mainNav.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15,46,76,.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile menu backdrop */
@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background: var(--navy-3);
    margin-top: .9rem;
    border-radius: var(--radius);
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-lg);
  }
  #mainNav.scrolled .navbar-collapse { background: #fff; border: 1px solid var(--line); }
  #mainNav.scrolled .nav-link { color: var(--ink); }
}

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: 8rem 0 5rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(10, 34, 56, .95) 0%, rgba(15, 46, 76, .78) 45%, rgba(15, 46, 76, .35) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  color: #fff;
  font-weight: 800;
  line-height: 1.12;
}
.hero-title .accent { color: var(--accent); }
.hero-sub { max-width: 620px; font-size: 1.12rem; color: rgba(255,255,255,.9); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.95); }
.hero-badge .bi { color: var(--accent); font-size: 1.1rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 9.5rem 0 4.5rem;
  color: #fff;
  background: linear-gradient(120deg, var(--navy-3) 0%, var(--navy) 60%, var(--navy-2) 100%);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,161,60,.25), transparent 70%);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 640px; }

.breadcrumb { margin: 0; }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,.75); font-size: .92rem; }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--accent); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---------- Cards (services / features) ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 8px rgba(15,46,76,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.service-card .card-img { height: 190px; overflow: hidden; }
.service-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .card-img img { transform: scale(1.08); }

.service-card .card-body { padding: 1.5rem; }
.icon-chip {
  width: 52px; height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: rgba(242, 161, 60, .16);
  color: var(--accent-dark);
  margin-top: -3.4rem;
  position: relative;
  z-index: 2;
  border: 3px solid #fff;
}
.service-card .card-title { font-size: 1.1rem; margin: .6rem 0 .5rem; }
.service-card .card-text { font-size: .95rem; }
.link-more { font-weight: 600; color: var(--navy); font-family: var(--font-head); font-size: .95rem; }
.link-more .bi { transition: transform .25s ease; }
.link-more:hover { color: var(--accent-dark); }
.link-more:hover .bi { transform: translateX(4px); }

/* ---------- Feature cards (why choose us) ---------- */
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  height: 100%;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--navy);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.feature-card p { font-size: .95rem; margin-bottom: 0; }

/* ---------- Process steps ---------- */
.step { text-align: center; position: relative; padding: 0 1rem; }
.step-num {
  width: 64px; height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  background: var(--navy);
  color: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.step h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.step p { font-size: .93rem; }

/* ---------- Blog cards ---------- */
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-card .card-img { height: 210px; overflow: hidden; }
.blog-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog-card:hover .card-img img { transform: scale(1.07); }
.blog-card .card-body { padding: 1.5rem; }
.blog-meta { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .82rem; color: var(--body); margin-bottom: .6rem; }
.blog-meta .bi { color: var(--accent-dark); margin-right: .25rem; }
.blog-cat {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(242, 161, 60, .15);
  padding: .22rem .7rem;
  border-radius: 999px;
  margin-bottom: .7rem;
}
.blog-card .card-title { font-size: 1.15rem; line-height: 1.35; }
.blog-card .card-title a { color: var(--ink); }
.blog-card .card-title a:hover { color: var(--navy-2); }

/* ---------- Newsletter band ---------- */
.newsletter-band {
  background: linear-gradient(120deg, var(--navy-3), var(--navy) 70%);
  color: #fff;
  border-radius: 22px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.newsletter-band::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,161,60,.3), transparent 70%);
}
.newsletter-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.newsletter-band p { color: rgba(255,255,255,.85); }

/* ---------- Service detail (services page) ---------- */
.service-block { padding: 3.2rem 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.service-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.service-block h2 { font-size: 1.6rem; margin-bottom: .8rem; }
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li { padding: .35rem 0; display: flex; gap: .7rem; align-items: flex-start; }
.check-list li .bi { color: var(--accent-dark); font-size: 1.1rem; line-height: 1.4; }

/* ---------- About ---------- */
.about-img-wrap { position: relative; }
.about-img-wrap .main-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.about-img-wrap .badge-card {
  position: absolute;
  left: -1.5rem; bottom: 2rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap .badge-card .bi { color: var(--accent); font-size: 1.4rem; }
.about-img-wrap .badge-card strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card .feature-icon { background: rgba(242,161,60,.16); color: var(--accent-dark); }

/* ---------- Contact ---------- */
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.info-card .feature-icon { background: rgba(242,161,60,.16); color: var(--accent-dark); font-size: 1.5rem; }
.info-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.info-card p, .info-card a { font-size: .95rem; color: var(--body); }
.info-card a:hover { color: var(--accent-dark); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.form-label { font-weight: 600; font-family: var(--font-head); font-size: .9rem; color: var(--ink); }
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  padding: .75rem 1rem;
  font-size: .95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(242, 161, 60, .2);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 340px; border: 0; }

/* ---------- Legal pages ---------- */
.legal-body h2 { font-size: 1.3rem; margin: 2.2rem 0 .7rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--body); }
.legal-body ul { padding-left: 1.2rem; }
.legal-updated {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  font-size: .95rem;
}

/* ---------- Subscribe / Unsubscribe ---------- */
.subscribe-wrap { max-width: 620px; margin: 0 auto; }
.subscribe-wrap .form-card { padding: 2.4rem; }
.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit-list li { display: flex; gap: .8rem; align-items: flex-start; padding: .45rem 0; }
.benefit-list .bi { color: var(--accent-dark); font-size: 1.15rem; line-height: 1.5; }

.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(242,161,60,.25); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-3); color: rgba(255,255,255,.75); padding: 4.5rem 0 0; }
.footer .footer-brand .brand-text { color: #fff; }
.footer-about { font-size: .95rem; margin: 1rem 0 1.3rem; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .7rem; font-size: .95rem; }
.footer-contact .bi { color: var(--accent); margin-top: .2rem; }
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-contact a:hover { color: var(--accent); }

.socials { display: flex; gap: .6rem; }
.socials a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.05rem;
  transition: background .25s ease, transform .25s ease;
}
.socials a:hover { background: var(--accent); color: var(--navy-3); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 3rem;
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  justify-content: space-between;
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.legal-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.legal-links a { color: rgba(255,255,255,.72); }
.legal-links a:hover { color: var(--accent); }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: var(--accent);
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .3s ease;
  z-index: 1025;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--accent); color: var(--navy-3); }

/* ---------- Reveal animation ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .section { padding: 4rem 0; }
  .about-img-wrap { margin-bottom: 2rem; }
  .about-img-wrap .badge-card { left: 1rem; bottom: 1rem; }
  .service-block .check-list { margin-bottom: 1.5rem; }
}
@media (max-width: 575.98px) {
  .hero { padding-top: 7rem; }
  .newsletter-band { padding: 2.2rem 1.4rem; }
  .form-card { padding: 1.6rem 1.2rem; }
}
