/* ==========================================================================
   Home Value Place — Custom Styles
   Built with Bootstrap 5 grid. Creative, attractive home-renovation theme.
   ========================================================================== */

/* Design tokens */
:root {
  --primary: #1f3a5f;
  --primary-dark: #152c4f;
  --accent: #e8833a;
  --accent-dark: #c96a22;
  --light-bg: #f4f7f9;
  --white: #ffffff;
  --dark: #212529;
  --gray: #6c757d;
  --border: #e2e7ea;
  --shadow: 0 10px 30px rgba(31, 58, 95, 0.10);
  --shadow-hover: 0 18px 40px rgba(31, 58, 95, 0.16);
  --radius: 14px;
  --transition: all 0.35s ease;
}

/* Base */
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--light-bg);
  color: var(--dark);
  line-height: 1.7;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent);
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.section {
  padding: 70px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}
.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title p {
  color: var(--gray);
  margin: 0;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline-custom:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Navbar */
.navbar {
  background: rgba(31, 58, 95, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 16px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand .logo-word {
  color: #fff;
}
.navbar-brand .logo-accent {
  color: var(--accent);
}
.navbar .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  margin: 0 8px;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
  background: rgba(232, 131, 58, 0.15);
}
.navbar .btn-nav {
  background: var(--accent);
  color: #fff !important;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 6px;
}
.navbar .btn-nav:hover {
  background: var(--accent-dark);
  color: #fff !important;
}

/* Logo — one line, same style */
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
}

/* Hero Banner */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(31, 58, 95, 0.78) 0%, rgba(21, 44, 79, 0.82) 100%), url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  padding: 150px 0 140px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(232,131,58,0.15) 0%, transparent 55%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 3.4rem;
  color: #fff;
  margin-bottom: 22px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero p.lead {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 34px;
  max-width: 620px;
  font-weight: 400;
}
.hero-img-wrap {
  display: none;
}

/* Services cards */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
}
.service-image {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--light-bg), #eef3f7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px dashed var(--border);
  transition: var(--transition);
  color: var(--primary);
  font-size: 2.2rem;
  overflow: hidden;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.service-card:hover .service-image img {
  transform: scale(1.05);
}
.service-card h3 {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 14px;
}
.service-card p {
  text-align: center;
  color: var(--gray);
  font-size: 0.98rem;
  margin-bottom: 22px;
  flex: 1;
}
.service-card .btn {
  width: 100%;
  padding: 10px;
  font-size: 0.95rem;
}

/* About */
.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 520px;
  display: block;
  margin: 0 auto;
}
.about-text h2 {
  margin-bottom: 20px;
}
.about-text p {
  margin-bottom: 20px;
  color: var(--gray);
  font-size: 1.05rem;
}
.feature-box {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.feature-box .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(232,131,58,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.feature-box div h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.feature-box div p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray);
}

/* Blog */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: var(--accent);
}
.blog-image {
  height: 220px;
  overflow: hidden;
  background: var(--light-bg);
}
.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.blog-card:hover .blog-image img {
  transform: scale(1.08);
}
.blog-body {
  padding: 24px;
}
.blog-meta {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.blog-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.blog-card p {
  color: var(--gray);
  font-size: 0.98rem;
  margin-bottom: 18px;
}
.blog-detail {
  max-width: 800px;
  margin: 0 auto;
}
.blog-detail .blog-image {
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
  background: var(--light-bg);
}
.blog-detail .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-detail h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}
.blog-detail p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 24px;
}

/* Contact */
.contact-info .info-box {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 30px;
  color: #fff;
  height: 100%;
}
.contact-info .info-box h3 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 1.4rem;
}
.contact-info .info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-info .info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-info .info-item div h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.contact-info .info-item div p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 0.98rem;
}
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-form-wrap .form-control, .contact-form-wrap .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
}
.contact-form-wrap .form-control:focus, .contact-form-wrap .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(232,131,58,0.2);
}
.map-placeholder {
  height: 360px;
  border-radius: var(--radius);
  background: var(--light-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 1rem;
}

/* Subscribe / Unsubscribe */
.newsletter-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 46px 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.newsletter-wrap h2 {
  text-align: center;
  margin-bottom: 10px;
}
.newsletter-wrap p {
  text-align: center;
  color: var(--gray);
  margin-bottom: 30px;
}
.newsletter-wrap .form-control {
  border-radius: 8px;
  padding: 14px 18px;
  border: 1px solid var(--border);
}
.newsletter-wrap .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(232,131,58,0.2);
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 26px;
  margin-top: 0;
}
footer a {
  color: rgba(255,255,255,0.8);
}
footer a:hover {
  color: var(--accent);
}
footer .footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
footer .footer-brand .logo-word { color: #fff; }
footer .footer-brand .logo-accent { color: var(--accent); }
footer h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 20px;
}
footer ul.list-unstyled li {
  margin-bottom: 10px;
}
footer .copyright {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* Utility */
.text-accent { color: var(--accent); }
.bg-accent { background: var(--accent); }
.rounded-img { border-radius: var(--radius); }

@media (max-width: 991.98px) {
  .hero h1 { font-size: 2.5rem; }
  .navbar-collapse {
    background: var(--primary-dark);
    padding: 16px;
    border-radius: 10px;
    margin-top: 10px;
  }
  .navbar .btn-nav { margin-left: 0; margin-top: 10px; width: auto; }
}