/* Vincewooera Home Improvements — Fllopi-inspired theme */
:root {
  --navy: #001F3F;
  --navy-dark: #001529;
  --orange: #FF851B;
  --orange-dark: #e67300;
  --white: #ffffff;
  --gray-50: #F8F9FA;
  --gray-100: #eef1f4;
  --gray-300: #c5cdd6;
  --gray-600: #5a6470;
  --gray-800: #2d343c;
  --font: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
  --radius-pill: 50px;
  --radius: 6px;
  --shadow: 0 10px 40px rgba(0, 31, 63, 0.08);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
}

.container {
  width: min(1170px, 92%);
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title .icon-badge {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.section-title p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--gray-600);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-orange:hover {
  background: var(--orange-dark);
  color: var(--white);
}

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

.btn-white:hover {
  background: var(--gray-100);
  color: var(--navy);
}

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

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

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

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

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
}

.site-header.scrolled,
.site-header.inner-header {
  position: fixed;
  background: rgba(0, 31, 63, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 12px 0;
}

.site-header:not(.inner-header) .logo-dark { display: none; }
.site-header:not(.inner-header) .logo-light { display: block; }
.site-header.inner-header .logo-dark,
.site-header.scrolled .logo-dark { display: none; }
.site-header.inner-header .logo-light,
.site-header.scrolled .logo-light { display: block; }

.logo-light { display: none; }

.site-header.inner-header {
  position: fixed;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 44px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: center;
}

.main-nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  text-transform: capitalize;
  padding: 6px 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--orange);
}

.header-cta .btn {
  padding: 12px 24px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--navy) center/cover no-repeat;
  padding-top: 100px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 31, 63, 0.92) 0%, rgba(0, 31, 63, 0.55) 55%, rgba(0, 31, 63, 0.35) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--orange);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-figure {
  text-align: center;
}

.hero-figure img {
  margin-inline: auto;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Orange feature bar */
.feature-bar {
  background: var(--orange);
  padding: 28px 0;
}

.feature-bar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}

.feature-bar-item {
  color: var(--white);
}

.feature-bar-item i {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.feature-bar-item span {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Service cards */
.cards-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-bottom: 4px solid var(--orange);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card .num {
  color: var(--gray-300);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.service-card .icon {
  color: var(--orange);
  font-size: 36px;
  margin-bottom: 12px;
}

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

/* About split */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-section img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  min-height: 380px;
}

.progress-list {
  margin-top: 28px;
}

.progress-item {
  margin-bottom: 18px;
}

.progress-item label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 8px;
}

.progress-bar {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 4px;
  width: 0;
  transition: width 1.2s ease;
}

/* Contact CTA section */
.contact-cta {
  background: var(--navy);
  padding: 80px 0;
}

.contact-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #c0392b;
}

.error-msg {
  color: #c0392b;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.form-group.has-error .error-msg {
  display: block;
}

/* Checkbox alignment */
.checkbox-group {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  margin-bottom: 20px;
  align-items: start;
  width: 100%;
}

.checkbox-group input[type="checkbox"] {
  grid-column: 1;
  grid-row: 1;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--orange);
  cursor: pointer;
  place-self: start start;
}

.checkbox-group label {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-800);
  cursor: pointer;
  margin: 0;
  padding: 0;
  font-weight: 400;
  text-align: left;
}

.checkbox-group label a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-group .error-msg {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.checkbox-group.has-error label {
  color: #c0392b;
}

.checkbox-group.has-error .error-msg {
  display: block;
}

.form-success {
  display: none;
  padding: 20px;
  background: #d4edda;
  color: #155724;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
}

.form-success.show {
  display: block;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item i {
  font-size: 42px;
  color: var(--orange);
  margin-bottom: 12px;
}

.stat-item .count {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.stat-item p {
  margin: 8px 0 0;
  color: var(--gray-600);
  font-size: 14px;
}

/* Portfolio */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.filter-tabs button {
  background: transparent;
  border: 2px solid var(--gray-300);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: var(--navy);
  transition: var(--transition);
}

.filter-tabs button.active,
.filter-tabs button:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 31, 63, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay span {
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}

/* Testimonials */
.testimonial-section {
  background: linear-gradient(180deg, #e8eef3 0%, var(--gray-50) 100%);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  display: none;
}

.testimonial-card.active {
  display: block;
}

.testimonial-card img.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--orange);
}

.stars {
  color: var(--orange);
  margin-bottom: 16px;
  font-size: 18px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  cursor: pointer;
  padding: 0;
}

.slider-dots button.active {
  background: var(--orange);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.faq-box {
  padding: 36px 28px;
  border-radius: var(--radius);
  min-height: 200px;
}

.faq-box.orange { background: var(--orange); color: var(--white); }
.faq-box.white { background: var(--white); box-shadow: var(--shadow); }
.faq-box.navy { background: var(--navy); color: var(--white); }

.faq-box h3 {
  color: inherit;
  font-size: 1.1rem;
  margin-top: 16px;
}

.faq-box.orange h3,
.faq-box.navy h3 { color: var(--white); }

.faq-box i {
  font-size: 32px;
}

/* Map */
.map-section {
  position: relative;
  height: 420px;
  background: var(--gray-100);
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%);
}

.map-card {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 24px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  z-index: 2;
  max-width: 90%;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

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

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

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid a:hover {
  color: var(--orange);
}

.footer-about .logo-footer {
  margin-bottom: 16px;
}

.footer-about img {
  height: 40px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--orange);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

.footer-legal {
  margin-top: 8px;
  font-size: 13px;
}

.footer-legal a {
  margin: 0 8px;
}

/* Page banner */
.page-banner {
  background: var(--navy) center/cover no-repeat;
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 31, 63, 0.85);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--orange);
}

/* Content pages */
.content-block {
  max-width: 900px;
  margin: 0 auto;
}

.content-block h2 {
  margin-top: 40px;
  font-size: 1.5rem;
}

.content-block h3 {
  margin-top: 28px;
  font-size: 1.2rem;
}

.content-block ul, .content-block ol {
  padding-left: 1.25rem;
}

.content-block li {
  margin-bottom: 8px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card .info {
  padding: 24px 16px;
}

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

.team-card span {
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--gray-300);
  transition: var(--transition);
}

.pricing-card.featured {
  border-top-color: var(--orange);
  transform: scale(1.03);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
}

.pricing-card .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.pricing-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}

.pricing-card li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 700;
  margin-right: 10px;
}

/* Services list */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-detail {
  display: flex;
  gap: 20px;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-detail .icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

/* Two column contact page */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--gray-50);
  padding: 24px;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}

.info-card i {
  color: var(--orange);
  font-size: 24px;
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-bar-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--navy);
    padding: 80px 24px 24px;
    transition: right var(--transition);
    overflow-y: auto;
  }

  .main-nav.open { right: 0; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .header-cta { display: none; }

  .hero .container,
  .split-section,
  .contact-cta-grid,
  .contact-page-grid,
  .cards-three,
  .portfolio-grid,
  .faq-grid,
  .pricing-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure { order: -1; }
  .hero { min-height: auto; padding-bottom: 60px; }
  .feature-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
