/* ============================================================
   Bennington Home Search — Main Stylesheet
   Premium orange & navy theme for electronics + home services
   ============================================================ */

:root {
  --primary: #FF6B00;
  --primary-dark: #E55A00;
  --primary-light: #FF8533;
  --navy: #0F172A;
  --navy-light: #1E293B;
  --navy-mid: #101935;
  --text: #334155;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --success: #16A34A;
  --danger: #DC2626;
  --warning: #F59E0B;
  --font: "Poppins", system-ui, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.14);
  --transition: 0.3s ease;
  --header-offset: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

ul { padding-left: 1.25rem; }

.section-padding {
  padding: 90px 0;
}

.section-padding-sm {
  padding: 60px 0;
}

.bg-gray {
  background: var(--gray-50);
}

.bg-navy {
  background: var(--navy);
  color: var(--white);
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 12px 28px;
  transition: all var(--transition);
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
}

.btn-primary,
.btn-orange {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-orange:hover,
.btn-orange:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.35);
}

.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

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

.btn-outline-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: var(--white);
  color: var(--navy);
}

.btn-outline-orange {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-orange:hover,
.btn-outline-orange:focus {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
}

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  margin-bottom: 50px;
}

.section-header.text-start .section-desc {
  margin-left: 0;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  padding: 10px 0;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
  color: var(--primary);
}

.top-bar .social-links a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

.top-bar .top-meta span {
  margin-right: 20px;
}

.top-bar .top-meta i {
  color: var(--primary);
  margin-right: 6px;
}

/* ---------- Main Header ---------- */
.main-header {
  background: var(--white);
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
}

.site-logo img {
  height: 52px;
  width: auto;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-contact-item .icon-box {
  width: 46px;
  height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.header-contact-item .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.header-contact-item .value {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.3;
}

/* ---------- Navigation ---------- */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow var(--transition);
}

.main-nav.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

.main-nav .navbar {
  padding: 0;
}

.main-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 18px 16px !important;
  position: relative;
}

.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--primary);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  transform: scaleX(1);
}

.main-nav .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-hover);
  border-radius: var(--radius-lg);
  padding: 12px 0;
  margin-top: 0;
  min-width: 220px;
}

.main-nav .dropdown-item {
  padding: 10px 22px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.main-nav .dropdown-item:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.nav-actions .nav-icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.05rem;
  position: relative;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-actions .nav-icon-btn:hover {
  color: var(--primary);
  background: var(--gray-50);
}

.nav-actions .badge-count {
  position: absolute;
  top: 4px;
  right: 2px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.navbar-toggler {
  border: 1px solid var(--gray-200);
  padding: 8px 10px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ---------- Page Hero / Breadcrumb Banner ---------- */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 12px;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.page-hero .breadcrumb-item.active {
  color: var(--primary);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}

/* ---------- Home Hero ---------- */
.home-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.55) 70%, rgba(15, 23, 42, 0.4) 100%);
}

.home-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 120px;
}

.home-hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  max-width: 700px;
  margin-bottom: 1.25rem;
}

.home-hero .hero-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-search-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(50%);
  z-index: 2;
}

.hero-search-inner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-hover);
}

.hero-search-inner .form-control,
.hero-search-inner .form-select {
  height: 52px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.hero-search-inner .btn {
  height: 52px;
  width: 100%;
}

/* ---------- Feature / Check lists ---------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 500;
}

.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary);
  font-size: 0.875rem;
}

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-card .icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 22px;
  transition: all var(--transition);
}

.service-card:hover .icon {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card h3 a {
  color: var(--text-dark);
}

.service-card h3 a:hover {
  color: var(--primary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 18px;
}

.learn-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.learn-more:hover {
  color: var(--primary);
}

.learn-more i {
  font-size: 0.75rem;
  transition: transform var(--transition);
}

.learn-more:hover i {
  transform: translateX(4px);
}

/* ---------- Product Cards ---------- */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition: all var(--transition);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.product-card .img-wrap {
  position: relative;
  background: var(--gray-100);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .img-wrap img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius);
  color: var(--white);
}

.product-badge.sale { background: var(--danger); }
.product-badge.new { background: #0EA5E9; }

.product-card .body {
  padding: 18px 20px 22px;
}

.product-card .rating {
  color: #FBBF24;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.product-card .rating span {
  color: var(--text-muted);
  margin-left: 4px;
  font-size: 0.8rem;
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.product-card h3 a {
  color: var(--text-dark);
}

.product-card h3 a:hover {
  color: var(--primary);
}

.product-card .price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.product-card .price .old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 8px;
}

.product-card .add-btn {
  margin-top: 14px;
  width: 100%;
}

/* ---------- Stats ---------- */
.stats-section {
  background: var(--navy);
  padding: 70px 0;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-item .number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-item .number .plus {
  color: var(--primary);
}

.stat-item .label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- Process Steps ---------- */
.process-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step .step-num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.process-step h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.process-step p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9375rem;
}

.process-grid .process-box {
  text-align: center;
  padding: 20px;
  position: relative;
}

.process-grid .process-box .icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.75rem;
  position: relative;
}

.process-grid .process-box .badge-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Why Choose / Feature boxes ---------- */
.feature-box {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.feature-box .icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-box h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.why-grid-item {
  text-align: center;
  padding: 24px 16px;
}

.why-grid-item .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--primary);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
}

.why-grid-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.why-grid-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  height: 100%;
}

.testimonial-card .stars {
  color: #FBBF24;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card .quote {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author .name {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.testimonial-author .role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  height: 100%;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover,
.pricing-card.popular {
  box-shadow: var(--shadow-hover);
}

.pricing-card.popular {
  border-color: var(--primary);
}

.pricing-card .popular-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius);
}

.pricing-card .plan-name {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.pricing-card .plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.pricing-card .plan-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card .plan-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pricing-card .features {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  list-style: none;
}

.pricing-card .features li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
}

.pricing-card .features li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.8rem;
}

/* ---------- Blog Cards ---------- */
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition: all var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.blog-card .img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .img-wrap img {
  transform: scale(1.05);
}

.blog-card .date-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius);
  text-align: center;
  line-height: 1.3;
}

.blog-card .body {
  padding: 24px;
}

.blog-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-weight: 500;
}

.blog-card .meta span {
  color: var(--primary);
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.blog-card h3 a {
  color: var(--text-dark);
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ---------- Team ---------- */
.team-card {
  text-align: center;
  transition: all var(--transition);
}

.team-card .img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 3 / 4;
  background: var(--gray-100);
}

.team-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .img-wrap img {
  transform: scale(1.05);
}

.team-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ---------- FAQ Accordion ---------- */
.faq-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid var(--gray-200);
  background: transparent;
}

.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--text-dark);
  background: transparent;
  box-shadow: none;
  padding: 22px 0;
  font-size: 1.05rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: transparent;
  box-shadow: none;
}

.faq-accordion .accordion-button::after {
  background-image: none;
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  width: auto;
  height: auto;
  color: var(--text-dark);
  transform: none;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  content: "−";
  color: var(--primary);
}

.faq-accordion .accordion-body {
  padding: 0 0 22px;
  color: var(--text-muted);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 60px 40px;
}

.cta-banner.full-bleed {
  border-radius: 0;
}

.cta-split {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.cta-split .cta-img {
  flex: 1;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.cta-split .cta-content {
  flex: 1;
  background: var(--navy);
  color: var(--white);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-split .cta-content h2 {
  color: var(--white);
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
  height: 52px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

textarea.form-control {
  height: auto;
  min-height: 140px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-box {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.invalid-feedback {
  font-size: 0.8125rem;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: var(--danger);
}

.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: var(--success);
}

.alert-success-custom {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: none;
}

.alert-success-custom.show {
  display: block;
}

/* ---------- Sidebar Widgets ---------- */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
}

.sidebar-widget h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.sidebar-widget.navy-widget {
  background: var(--navy);
  border: none;
  color: rgba(255, 255, 255, 0.92);
}

.sidebar-widget.navy-widget h4 {
  color: var(--white);
  border-bottom-color: var(--primary);
}

.sidebar-widget.navy-widget .check-list li,
.sidebar-widget.navy-widget p,
.sidebar-widget.navy-widget .why-grid-item p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.sidebar-widget.navy-widget .check-list li::before {
  color: var(--primary);
}

.bg-navy .check-list li,
.navy-widget .check-list li {
  color: rgba(255, 255, 255, 0.9);
}

.service-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9375rem;
}

.service-menu li:last-child a {
  border-bottom: none;
}

.service-menu li a:hover,
.service-menu li a.active {
  color: var(--primary);
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 10px;
}

.category-list label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}

.category-list input {
  margin-right: 10px;
  accent-color: var(--primary);
}

.recent-post {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.recent-post img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.recent-post h5 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  line-height: 1.4;
}

.recent-post h5 a {
  color: var(--text-dark);
}

.recent-post h5 a:hover {
  color: var(--primary);
}

.recent-post .date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tag-cloud a {
  display: inline-block;
  padding: 6px 12px;
  background: var(--gray-100);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius);
  margin: 0 6px 8px 0;
  transition: all var(--transition);
}

.tag-cloud a:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------- Cart ---------- */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  background: var(--gray-50);
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-200);
}

.cart-table td {
  padding: 20px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-100);
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-product img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--gray-100);
}

.cart-product h4 {
  font-size: 1rem;
  margin: 0;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.qty-control button {
  width: 36px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 1rem;
  cursor: pointer;
}

.qty-control input {
  width: 48px;
  height: 40px;
  border: none;
  text-align: center;
  font-weight: 600;
  color: var(--text-dark);
}

.qty-control input:focus {
  outline: none;
}

.cart-summary {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.cart-summary h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 500;
}

.cart-summary-row.total {
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
  margin-top: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty i {
  font-size: 3.5rem;
  color: var(--gray-300);
  margin-bottom: 20px;
}

/* ---------- Product Detail ---------- */
.product-gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
}

.product-detail-info .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.product-detail-info .price .old {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 10px;
  font-weight: 500;
}

.product-meta-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.product-meta-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9375rem;
}

.product-meta-list li strong {
  color: var(--text-dark);
  min-width: 120px;
  display: inline-block;
}

/* ---------- Marquee / Ticker ---------- */
.ticker-bar {
  background: var(--primary);
  color: var(--white);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  font-weight: 600;
  font-size: 0.95rem;
}

.ticker-item i {
  font-size: 0.6rem;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Partner Logos ---------- */
.partner-logo {
  opacity: 0.45;
  filter: grayscale(100%);
  transition: all var(--transition);
  max-height: 48px;
  margin: 0 auto;
}

.partner-logo:hover {
  opacity: 1;
  filter: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
}

.footer-newsletter {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 50px 0;
}

.footer-newsletter h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.footer-newsletter .form-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
  color: var(--white);
}

.footer-main {
  padding: 70px 0 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 48px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9375rem;
}

.footer-contact-item i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  margin-right: 8px;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 16px;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 1050;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
}

/* ---------- Search Modal ---------- */
.search-modal .modal-content {
  background: transparent;
  border: none;
}

.search-modal .form-control {
  height: 64px;
  font-size: 1.25rem;
  border-radius: var(--radius-lg);
}

/* ---------- Content helpers ---------- */
.content-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.content-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-play-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.img-play-wrap img {
  width: 100%;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.45);
}

.play-btn:hover {
  background: var(--primary-dark);
  transform: translate(-50%, -50%) scale(1.08);
  color: var(--white);
}

.experience-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--primary);
  color: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}

.experience-badge .num {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.experience-badge .txt {
  font-size: 0.8rem;
  font-weight: 500;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.related-grid .product-card,
.related-grid .service-card {
  margin-bottom: 0;
}

.toolbar-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 28px;
}

.pagination .page-link {
  color: var(--text-dark);
  border: none;
  background: var(--gray-100);
  margin: 0 4px;
  border-radius: var(--radius) !important;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  color: var(--white);
}

.pagination .page-link:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------- Blog list (default style) ---------- */
.blog-list-item {
  margin-bottom: 48px;
}

.blog-list-item .img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 16 / 9;
}

.blog-list-item .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list-item .meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-list-item .meta span {
  color: var(--primary);
}

.blog-list-item h2 {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.blog-list-item h2 a {
  color: var(--text-dark);
}

.blog-list-item h2 a:hover {
  color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .header-contact {
    gap: 16px;
  }

  .header-contact-item .value {
    font-size: 0.8rem;
  }
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 70px 0;
  }

  .main-header .header-contact,
  .main-header .header-cta {
    display: none !important;
  }

  .main-nav .nav-link {
    padding: 12px 0 !important;
  }

  .main-nav .nav-link::after {
    display: none;
  }

  .main-nav .navbar-collapse {
    background: var(--white);
    padding: 16px 0 24px;
    border-top: 1px solid var(--gray-100);
  }

  .nav-actions {
    margin: 12px 0 0;
  }

  .home-hero {
    min-height: 520px;
  }

  .home-hero .container {
    padding-bottom: 140px;
  }

  .hero-search-bar {
    position: relative;
    transform: none;
    margin-top: -40px;
    margin-bottom: 40px;
  }

  .cta-split {
    flex-direction: column;
  }

  .cta-split .cta-img {
    min-height: 240px;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 16px;
    padding: 12px;
  }

  .cart-table td {
    border: none;
    padding: 8px 0;
    text-align: left !important;
  }

  .cart-table td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 55px 0;
  }

  .top-bar .top-meta span {
    display: none;
  }

  .top-bar .top-meta span:first-child {
    display: inline;
  }

  .page-hero {
    min-height: 220px;
  }

  .home-hero h1 {
    font-size: 2rem;
  }

  .form-box,
  .cta-banner {
    padding: 28px 20px;
  }

  .footer-main {
    padding: 50px 0 30px;
  }

  .footer-bottom .text-md-end {
    text-align: left !important;
    margin-top: 10px;
  }

  .footer-bottom a {
    margin-left: 0;
    margin-right: 16px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .stat-item {
    margin-bottom: 28px;
  }
}

@media (max-width: 575.98px) {
  .hero-actions .btn {
    width: 100%;
  }

  .toolbar-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Print */
@media print {
  .top-bar,
  .main-header,
  .main-nav,
  .site-footer,
  .back-to-top {
    display: none !important;
  }
}
