/*
* BuildMaster Construction - Custom Styles
* Author: v0
* Version: 1.0
*/

/* ===== VARIABLES ===== */
:root {
  --primary-color: #e67e22;
  --secondary-color: #2c3e50;
  --dark-color: #1a1a1a;
  --light-color: #f8f9fa;
  --text-color: #333333;
  --text-light: #777777;
  --white: #ffffff;
  --border-color: #eeeeee;
  --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 10px;
  --border-radius-sm: 5px;
  --border-radius-lg: 15px;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Accounts for fixed header */
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

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

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

a:hover {
  color: darken(var(--primary-color), 10%);
}

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

.btn {
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  text-transform: capitalize;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

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

.btn-outline-secondary {
  color: var(--text-color);
  border-color: #ddd;
}

.btn-outline-secondary:hover {
  background-color: #f8f9fa;
  color: var(--text-color);
}

.section-subtitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* ===== ACCESSIBILITY ===== */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== HEADER SECTION ===== */
.header-section {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
  padding: 1rem 0;
}

.logo {
  max-height: 50px;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.navbar-nav .nav-link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
  width: 30px;
}

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

.header-cta .btn {
  padding: 0.5rem 1.5rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  padding: 5rem 0 0;
  background-color: var(--light-color);
  overflow: hidden;
}

.category-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-buttons .btn {
  padding: 0.75rem 2rem;
  margin: 0 0.5rem 1rem;
}

.hero-image-container {
  margin-top: 3rem;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.hero-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-image-container .category-badge {
  position: absolute;
  top: 20px;
  right: 20px;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.service-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
  text-align: center;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(230, 126, 34, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
  font-size: 2rem;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-description {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.service-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-block;
}

.service-link:hover {
  color: darken(var(--primary-color), 10%);
}

/* ===== LEGACY SECTION ===== */
.legacy-section {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.legacy-content {
  padding-right: 2rem;
}

.legacy-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.legacy-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.legacy-list li i {
  color: var(--primary-color);
  margin-right: 1rem;
}

.legacy-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.project-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-content {
  padding: 1.5rem;
}

.project-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 0;
}

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 4rem 0;
  background-color: var(--primary-color);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* ===== TEAM SECTION ===== */
.team-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.team-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-image {
  position: relative;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: var(--transition);
}

.team-content {
  padding: 1.5rem;
  text-align: center;
}

.team-name {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.team-position {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-specialty {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.team-social .social-link {
  width: 35px;
  height: 35px;
  background-color: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 0.9rem;
  transition: var(--transition);
}

.team-social .social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ===== VISION SECTION ===== */
.vision-section {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.vision-content {
  padding-right: 2rem;
}

.vision-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-circle {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.team-circle img {
  width: 100%;
  height: auto;
}

.testimonial-slider {
  margin-top: 2rem;
}

.testimonial-item {
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 1rem;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1rem;
}

.author-name {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.author-position {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ===== PROMO SECTION ===== */
.promo-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.promo-box {
  background-color: var(--primary-color);
  padding: 3rem;
  border-radius: var(--border-radius);
  color: var(--white);
}

.promo-title {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.promo-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.promo-box .btn {
  background-color: var(--white);
  color: var(--primary-color);
  border: none;
  font-weight: 600;
}

.promo-box .btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* ===== BLOG SECTION ===== */
.blog-section {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-date {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.blog-author {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.blog-excerpt {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.blog-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-block;
}

.blog-link:hover {
  color: darken(var(--primary-color), 10%);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(230, 126, 34, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 1rem;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-text p {
  margin-bottom: 0;
}

.contact-social {
  display: flex;
  gap: 0.5rem;
}

.contact-social .social-link {
  width: 40px;
  height: 40px;
  background-color: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-social .social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.contact-form-container {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-control {
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

/* ===== FOOTER SECTION ===== */
.footer-section {
  background-color: var(--secondary-color);
  color: var(--white);
}

.footer-main {
  padding: 5rem 0 3rem;
}

.footer-logo {
  max-height: 50px;
  margin-bottom: 1.5rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

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

.footer-social .social-link:hover {
  background-color: var(--primary-color);
}

.footer-title {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

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

.footer-newsletter-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-newsletter .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  border-radius: 30px 0 0 30px;
}

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

.footer-newsletter .btn {
  border-radius: 0 30px 30px 0;
  padding: 0.75rem 1.5rem;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.back-to-top:hover {
  background-color: darken(var(--primary-color), 10%);
  color: var(--white);
}

/* ===== MODALS ===== */
.modal-content {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--box-shadow);
}

.modal-header {
  border-bottom: 1px solid #eee;
}

.modal-footer {
  border-top: 1px solid #eee;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .legacy-content,
  .vision-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }

  .header-cta {
    margin-top: 1rem;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-buttons .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .contact-form-container {
    margin-top: 2rem;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 3rem 0 0;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-description {
    font-size: 0.95rem;
  }

  .promo-box {
    padding: 2rem;
    text-align: center;
  }

  .promo-box .btn {
    margin-top: 1rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    bottom: 20px;
    right: 20px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}
