* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  background-color: #ffffff;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  background-color: #fff;
  padding: 0.3rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #d3d3d3;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  height: 155px;
}


.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #333;
  letter-spacing: 1px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1100;
}

.logo span {
  display: inline-block;
  opacity: 0;
  animation: slideInLogo 1s forwards;
}

.logo span:nth-child(1) { animation-delay: 0s; }
.logo span:nth-child(2) { animation-delay: 0.1s; }
.logo span:nth-child(3) { animation-delay: 0.2s; }
.logo span:nth-child(4) { animation-delay: 0.3s; }
.logo span:nth-child(5) { animation-delay: 0.4s; }
.logo span:nth-child(6) { animation-delay: 0.5s; }
.logo span:nth-child(7) { animation-delay: 0.6s; }
.logo span:nth-child(8) { animation-delay: 0.7s; }
.logo span:nth-child(9) { animation-delay: 0.8s; }
.logo span:nth-child(10) { animation-delay: 0.9s; }

@keyframes slideInLogo {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { transform: translateX(10%); opacity: 0.5; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes growLine {
  to { transform: scaleX(1); transform-origin: bottom left; }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  z-index: 1050;
}

.nav-links a {
  color: #665;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #665;
}

.contact-btn a {
  background-color: #007bff; /* blue */
  color: #ffffff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  transition: background-color 0.3s;
}

.contact-btn a:hover {
  background-color: #0056b3;
}

.cta-btn {
  background-color: #007bff; /* blue */
  color: #fff;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background-color: #0056b3;
}

.hero {
  height: 100vh;
  background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0.5)), url("assets/roofing.jpeg") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease-out;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: fadeIn 1.5s ease-out;
  max-width: 800px;
}

.hero-content h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(45deg, #fff, #ddd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: perspective(500px) rotateX(90deg);
  animation: rotateIn 1.5s ease-out forwards, gradientShift 3s infinite alternate;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ddd;
  text-align: center;
  max-width: 600px;
}

.cta-btn {
  background-color: #0056b3;
  color: #fff;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  color: #000000;
}

.about, .services, .testimonials, .contact {
  color: #333333; /* or #000000 */  
  max-width: 1400px;
  margin: 5rem auto;
  padding: 3rem 2rem;
  text-align: center;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.141);
}

.about h2, .services h2, .testimonials h2, .contact h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 2rem;
  color: #000000;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about h2::after, .services h2::after, .testimonials h2::after, .contact h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
 color: #000000;
  margin: 0.5rem auto;
}

.service-cards, .testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1rem;
}

.card, .testimonial-card {
  background-color: #fff;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #665;
  opacity: 0.2;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid #e0e0e0;
  transition: opacity 0.3s;
}

.card img:hover {
  opacity: 0.9;
}

.card h3 {
  margin: 1rem 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #333;
}

.card p {
  color: #665;
  font-size: 1rem;
}

.card-btn {
  display: inline-block;
  margin-top: 1rem;
  color: #333;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  transition: color 0.3s;
}

.card-btn:hover {
  color: #333;
}

.testimonial-card {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  position: relative;
}

.testimonial-card p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

.testimonial-card span {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: #333;
  font-size: 0.9rem;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid #e0e0e0;
}

.contact input, .contact textarea {
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact input:focus, .contact textarea:focus {
  border-color: #665;
}

.contact button {
  padding: 0.8rem;
  background-color: #007bff; /* same blue as Call Now */
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact button:hover {
  background-color: #0056b3;
}

footer {
  background-color: #fff;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  max-width: 1400px;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #333;
}

.footer-links a, .footer-contact p {
  color: #665;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin: 0.5rem 0;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #333;
}

.service-page {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 3rem 2rem;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.service-page h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 2rem;
}

.service-page img {
  width: 100%;
  max-width: 700px;
  margin: 2rem 0;
  border: 1px solid #e0e0e0;
}

.service-page p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgb(255, 255, 255);
}

.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #665;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background-color 0.3s;
  z-index: 1000;
}

.scroll-top-btn:hover {
  background-color: #555;
}

.scroll-top-btn.show {
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes rotateIn {
  from { transform: perspective(500px) rotateX(90deg); }
  to { transform: perspective(500px) rotateX(0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ===== Mobile Styles ===== */
@media (max-width: 1024px) {
  .service-cards, .testimonial-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Make nav stack vertically */
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Logo on left, hamburger on right */
  .logo {
    font-size: 1.5rem;
  }

  /* Hamburger menu styles - you need to add hamburger element with class "hamburger" in HTML */
  .hamburger {
    font-size: 1.8rem;
    cursor: pointer;
    align-self: flex-end;
    margin-right: 1rem;
    user-select: none;
    z-index: 1100;
  }

  /* Nav links hidden by default */
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    width: 220px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    display: none;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
  }
  .nav-links.active {
    display: flex;
  }

  /* Hide call button in top nav bar */
  .contact-btn {
    display: none;
  }

  /* Show call button inside dropdown when active */
  .nav-links.active .contact-btn {
    display: block;
    margin-top: 1rem;
  }

  /* Make call button full width inside dropdown */
  .nav-links .contact-btn a {
    display: inline-block;
    background-color: rgb(255, 255, 255);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    text-align: center;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .service-cards, .testimonial-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
}
@media (max-width: 768px) {
  /* Improve body text spacing for mobile */
  body {
    font-size: 0.95rem;
    line-height: 1.7;
    padding-bottom: 3rem; /* prevent content from hitting bottom edge */
  }

  /* Slight padding boost inside hero for smaller screens */
  .hero {
    padding: 3rem 1rem;
    background-position: center top;
  }

  /* Improve tap target padding for nav links */
  .nav-links a {
    padding: 0.6rem 0;
  }

  /* Reduce section margins for better flow on mobile */
  .about, .services, .testimonials, .contact, .service-page {
    margin: 3rem auto;
    padding: 2rem 1rem;
  }

  /* Contact form spacing boost */
  .contact form {
    padding: 1.5rem 1rem;
  }

  /* Footer spacing and readability */
  .footer-content {
    padding: 1rem;
  }

  .footer-links a,
  .footer-contact p {
    font-size: 0.95rem;
    padding: 0.25rem 0;
  }
}
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  opacity: 0;
}

.hero-bg.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
}
#about,
#services,
#testimonials,
#contact {
  scroll-margin-top: 160px; /* Adjust this number to match your actual header height */
}
.top-contact-bar {
  background-color: #1a1a1a;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
}

.top-contact-wrapper {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.top-contact-bar a {
  color: #fff;
  text-decoration: none;
}

.top-contact-bar a:hover {
  text-decoration: underline;
}
footer {
  background: linear-gradient(to right, #454545, #e2e2e2); /* deep blue gradient */
  color: #fff;
  padding: 4rem 2rem;
  font-family: "Montserrat", sans-serif;
  border-top: 1px solid rgba(254, 254, 254, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-links,
.footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  border-bottom: 1px solid #fff;
  padding-bottom: 0.5rem;
}

.footer-links a {
  display: block;
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact p {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ffffff;
}
.nav-links li a {
  color: #000 !important; /* override white text */
}
.nav-links li a:hover {
  color: #007bff !important;
}
@media (min-width: 769px) {
  .logo {
    margin-left: -2in; /* move logo 2 inches to the left */
  }
}

footer, 
.footer-content,
.footer-logo,
.footer-links a,
.footer-contact p,
.footer-contact h4,
.footer-links h4,
.footer-bottom {
  color: #ffffff;
}
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
}
@keyframes FrontFlip {
  0% {
    transform: rotateX(0deg);
  }
  3% {
    transform: rotateX(360deg); /* 2 full flips */
  }
  100% {
    transform: rotateX(360deg); /* stays in final position */
  }
}
.logo img {
  animation: FrontFlip 60s infinite ease-in-out;
  transform-style: preserve-3d;
}
@media (max-width: 768px) {
  nav {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
  }

  .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Makes sure it takes full width to center properly */
    margin: 0 auto;
  }

  .logo img {
    height: 70px;
    display: block;
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .logo img {
    margin-left: 98px; /* Adjust this value as needed: try 8–12px */
  }
}
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
}
