/* =====================================================
   BYLO CONSTRUCTIONS LTD - STYLESHEET
   Modern, Clean, Responsive Construction Website
   ===================================================== */

/* ===================== RESET & BASE ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary: #ff6b00;
  --primary-dark: #e55f00;
  --primary-light: #ff8533;
  --dark: #1a1a1a;
  --dark-gray: #2a2a2a;
  --medium-gray: #666;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-md: rgba(0, 0, 0, 0.15);
  --shadow-lg: rgba(0, 0, 0, 0.2);
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

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

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

.section-sub {
  font-size: 1.1rem;
  color: var(--medium-gray);
  max-width: 700px;
  margin: 0 auto;
}

.accent {
  color: var(--primary);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

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

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

/* "Get a Quote" nav button — always orange */
.btn-nav {
  padding: 10px 24px;
  font-size: 0.95rem;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(255, 107, 0, 0.3);
}

.btn-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(255, 107, 0, 0.4);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Footer logo is slightly bigger */
.footer-brand .logo-img {
  height: 70px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(255, 107, 0, 0.3)),
              url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920&q=80') center/cover no-repeat;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  opacity: 1;
  color: #ffe0c2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-sub {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint span {
  display: block;
  width: 2px;
  height: 40px;
  background: var(--white);
  animation: scrollHint 2s infinite;
}

@keyframes scrollHint {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

/* ===================== SECTIONS ===================== */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* ===================== ABOUT ===================== */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px var(--shadow-md);
}

.about-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--primary);
  color: var(--white);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

.badge-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.badge-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 5px;
}

.about-text {
  margin-bottom: 20px;
  color: var(--medium-gray);
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  text-align: center;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 8px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
  display: block;
}

.stat-suffix {
  font-size: 2rem;
  color: var(--primary);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

/* ===================== SERVICES ===================== */
.services {
  background: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-md);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-desc {
  color: var(--medium-gray);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.service-link:hover {
  gap: 12px;
}

/* ===================== PROJECTS ===================== */
.projects {
  background: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 20px var(--shadow);
  cursor: pointer;
}

.project-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
  display: flex;
  align-items: flex-end;
  padding: 30px;
  opacity: 0;
  transition: var(--transition);
}

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

.project-overlay-content {
  color: var(--white);
  width: 100%;
}

.project-category {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 8px;
}

.project-name {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.project-zoom {
  background: var(--primary);
  color: var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
  margin-top: 10px;
}

.project-zoom:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: var(--white);
  color: var(--dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10001;
}

.lightbox-close:hover {
  background: var(--primary);
  color: var(--white);
  transform: rotate(90deg);
}

.lightbox-inner {
  max-width: 1200px;
  width: 100%;
  animation: zoomIn 0.3s ease;
}

.lightbox-inner img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.lightbox-caption {
  text-align: center;
  color: var(--white);
}

.lightbox-caption span {
  display: block;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.lightbox-caption h3 {
  font-size: 2rem;
  color: var(--white);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===================== WHY US ===================== */
.whyus {
  background: #fff8f3;
  color: var(--dark);
}

.whyus .section-title {
  color: var(--dark);
}

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.whyus-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 12px;
  transition: var(--transition);
  border: 1px solid #ffe5cc;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.06);
}

.whyus-card:hover {
  background: var(--white);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.12);
}

.whyus-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.whyus-card h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.whyus-card p {
  color: var(--medium-gray);
  line-height: 1.7;
}

/* ===================== CONTACT ===================== */
.contact {
  background: var(--light-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-intro {
  color: var(--medium-gray);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-details li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-details strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--dark);
}

.contact-details span {
  color: var(--medium-gray);
}

.contact-details span a {
  color: var(--medium-gray);
  text-decoration: none;
}

.contact-details span a:hover {
  color: var(--primary);
}

.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px var(--shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

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

.form-error {
  color: #e74c3c;
  font-size: 0.85rem;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #e74c3c;
}

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

.form-success {
  background: #27ae60;
  color: var(--white);
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

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

/* ===================== FOOTER ===================== */
.footer {
  background: #f9f9f9;
  color: var(--dark);
  padding: 60px 0 0;
  border-top: 1px solid #e8e8e8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
}

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

.footer-tagline {
  color: var(--medium-gray);
  margin-bottom: 25px;
  line-height: 1.7;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: #efefef;
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-links h5 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--medium-gray);
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--medium-gray);
  font-size: 0.95rem;
}

.footer-contact li a {
  color: var(--medium-gray);
  text-decoration: none;
}

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

.footer-contact i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 2px;
}

.footer-bottom {
  padding: 25px 0;
  text-align: center;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 5px 20px rgba(255, 107, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

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

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

/* ===================== ANIMATIONS ===================== */
.fade-up,
.fade-left,
.fade-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up {
  transform: translateY(30px);
}

.fade-left {
  transform: translateX(-30px);
}

.fade-right {
  transform: translateX(30px);
}

.fade-up.visible,
.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .about-grid {
    gap: 50px;
  }
  
  .contact-grid {
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
    gap: 25px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px var(--shadow-lg);
  }
  
  .nav-links.active {
    right: 0;
  }

  /* Get a Quote button in mobile menu — full width looks good here */
  .nav-links .btn-nav {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* Hero */
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-sub {
    font-size: 1rem;
  }

  /* Hero buttons — side by side, auto width, centered */
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .hero-actions .btn {
    width: auto;
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  /* Sections */
  .section-title {
    font-size: 2rem;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-badge {
    bottom: 20px;
    right: 20px;
    padding: 20px;
  }
  
  .badge-number {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-form-wrap {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }

  /* Buttons — compact, never full width unless .btn-full */
  .btn {
    padding: 11px 20px;
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .hero-actions .btn {
    padding: 11px 20px;
    font-size: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}
