/* Vallejo Home Improvements — theme aligned with Fllopi / construction reference */
:root {
  --primary: #00bbd5;
  --primary-dark: #0099b0;
  --dark: #222d35;
  --dark-2: #1a2228;
  --gray-bg: #f7f7f7;
  --gray-mid: #777777;
  --gray-light: #e8e8e8;
  --white: #ffffff;
  --text: #555555;
  --heading: #222d35;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1170px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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 {
  color: var(--heading);
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.container {
  width: min(100% - 30px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--gray-bg);
}

.section-dark {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title .subtitle {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title h2 {
  font-size: clamp(26px, 4vw, 36px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title p {
  max-width: 640px;
  margin: 12px auto 0;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--primary);
  color: var(--white);
}

/* Top bar */
.top-bar {
  background: var(--dark-2);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  padding: 10px 0;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.social-links {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 14px;
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.top-bar-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-bar-links a {
  color: rgba(255, 255, 255, 0.75);
}

.top-bar-links a:hover {
  color: var(--primary);
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.logo {
  background: var(--primary);
  padding: 10px 16px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px 22px;
}

.main-nav a {
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--dark);
  padding: 4px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: var(--dark) url("../images/hero.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34, 45, 53, 0.88) 0%, rgba(34, 45, 53, 0.45) 55%, rgba(34, 45, 53, 0.3) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(28px, 4.5vw, 42px);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-content .tag {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 12px;
  display: block;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-form {
  background: rgba(34, 45, 53, 0.92);
  padding: 32px;
  border-top: 4px solid var(--primary);
}

.hero-form h3 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 18px;
  margin-bottom: 20px;
}

/* CTA strip */
.cta-strip {
  background: var(--primary);
  padding: 28px 0;
}

.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
}

.cta-strip-inner h3 {
  color: var(--white);
  margin: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-strip-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-strip .btn-outline {
  border-color: var(--white);
}

.cta-strip .btn-dark {
  background: var(--dark);
}

/* About block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-bottom: 4px solid var(--primary);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.feature-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--dark);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-box h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.feature-box p {
  margin: 0;
  font-size: 13px;
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0, 187, 213, 0.9));
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h4 {
  color: var(--white);
  margin: 0;
  font-size: 16px;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 32px 24px;
  border: 1px solid var(--gray-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(0, 187, 213, 0.12);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--dark);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .number {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item h4 {
  color: var(--white);
  margin-top: 8px;
  font-size: 15px;
  text-transform: uppercase;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-light);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card .info {
  padding: 20px 16px;
}

.team-card h4 {
  margin-bottom: 4px;
}

.team-card span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .body {
  padding: 24px;
}

.date-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  margin-top: -40px;
  position: relative;
  margin-left: 20px;
}

/* Testimonial */
.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-slider .avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--primary);
}

.testimonial-slider blockquote {
  font-size: 18px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.testimonial-nav button {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
}

/* Newsletter bar */
.newsletter-bar {
  background: var(--primary);
  padding: 40px 0;
}

.newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.newsletter-inner h3 {
  color: var(--white);
  margin: 0;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  flex: 1;
  max-width: 480px;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border: none;
  font-size: 14px;
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--dark);
  color: var(--white);
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-grid h5 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-grid h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-about .logo-footer {
  height: 44px;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-post {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-post img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.footer-post h6 {
  color: var(--white);
  font-size: 13px;
  margin: 0 0 4px;
  line-height: 1.4;
}

.footer-bottom {
  background: #0d1216;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--heading);
}

.form-group label .req {
  color: #e74c3c;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-light);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-control.error {
  border-color: #e74c3c;
}

.form-error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.form-success.visible {
  display: block;
}

/* Checkbox alignment */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group label a {
  text-decoration: underline;
}

.hero-form .form-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.hero-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero-form label {
  color: rgba(255, 255, 255, 0.9);
}

.hero-form .form-error {
  color: #ff8a8a;
}

.hero-form .form-success {
  color: #155724;
  background: #d4edda;
  border-color: #c3e6cb;
}

.checkbox-group .form-error {
  flex-basis: 100%;
  margin-left: 30px;
}

/* Page banner */
.page-banner {
  background: var(--dark) url("../images/hero.jpg") center/cover;
  padding: 100px 0 80px;
  position: relative;
  text-align: center;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 45, 53, 0.85);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 40px);
  text-transform: uppercase;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 12px;
}

.breadcrumb a {
  color: var(--primary);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  text-align: center;
  padding: 40px 28px;
  transition: transform var(--transition), border-color var(--transition);
}

.pricing-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  transform: scale(1.03);
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
}

.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-light);
  font-size: 14px;
}

.pricing-card li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  margin-right: 8px;
}

/* Legal content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 36px;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 28px;
}

.legal-content p,
.legal-content li {
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 1.25rem;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-box {
  background: var(--gray-bg);
  padding: 32px;
  margin-bottom: 20px;
}

.contact-info-box h4 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-primary {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .blog-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .main-nav.open {
    max-height: 420px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 16px 20px 24px;
  }

  .site-header .container {
    position: relative;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .team-grid,
  .services-grid,
  .blog-grid,
  .pricing-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }
}