/* 
   Looper Roofing Website Styles
   Created: April 2025
*/

/* ===== GLOBAL STYLES ===== */
:root {
  --primary-red: #d12026;
  --primary-black: #000000;
  --gradient-start: #d12026;
  --gradient-end: #f9c922;
  --accent-blue: #0a2d7b;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;
  --white: #ffffff;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-black);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-red);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-red);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-blue);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--accent-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-red);
}

.section {
  padding: 80px 0;
}

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

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

/* ===== HEADER STYLES ===== */
.header {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

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

.logo img {
  max-height: 60px;
}

.contact-info {
  display: flex;
  align-items: center;
}

.phone {
  margin-right: 20px;
  font-weight: 600;
}

.phone i {
  color: var(--primary-red);
  margin-right: 5px;
}

/* ===== NAVIGATION STYLES ===== */
.nav {
  background-color: var(--accent-blue);
}

.nav-container {
  display: flex;
  justify-content: center;
}

.nav-menu {
  list-style: none;
  display: flex;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 15px 20px;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: var(--primary-red);
  color: var(--white);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  min-width: 200px;
  display: none;
  z-index: 1;
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--accent-blue);
  border-bottom: 1px solid var(--medium-gray);
}

.dropdown-item:hover {
  background-color: var(--light-gray);
  color: var(--primary-red);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent-blue);
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-top: 106px; /* Header height */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--white);
}

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

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  flex: 1 1 300px;
  max-width: 350px;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

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

.service-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 20px;
}

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

.service-text {
  margin-bottom: 20px;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose {
  background-color: var(--white);
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.feature {
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
  padding: 20px;
}

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

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  background-color: var(--light-gray);
}

.testimonials-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial {
  flex: 1 1 300px;
  max-width: 350px;
  background-color: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
}

/* ===== CTA SECTION ===== */
.cta {
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.cta-title {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-text {
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  background-color: var(--white);
  color: var(--primary-red);
}

.cta-btn:hover {
  background-color: var(--accent-blue);
  color: var(--white);
}

/* ===== ABOUT PAGE STYLES ===== */
.about-section {
  padding: 80px 0;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.about-content {
  flex: 1 1 500px;
}

.about-image {
  flex: 1 1 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.timeline {
  margin-top: 50px;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--primary-red);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 15px;
  width: 1px;
  height: calc(100% + 15px);
  background-color: var(--medium-gray);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-year {
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 5px;
}

/* ===== SERVICES PAGES STYLES ===== */
.service-detail {
  padding: 80px 0;
}

.service-detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.service-detail-content {
  flex: 1 1 600px;
}

.service-detail-sidebar {
  flex: 1 1 300px;
}

.service-list {
  list-style: none;
  margin-bottom: 30px;
}

.service-list-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--medium-gray);
  position: relative;
  padding-left: 30px;
}

.service-list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: 700;
}

.service-cta {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 8px;
  margin-top: 30px;
}

/* ===== GALLERY STYLES ===== */
.gallery {
  padding: 80px 0;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

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

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

.gallery-title {
  color: var(--white);
  text-align: center;
  padding: 0 20px;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact {
  padding: 80px 0;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info-container {
  flex: 1 1 300px;
}

.contact-form-container {
  flex: 1 1 600px;
}

.contact-info-item {
  margin-bottom: 30px;
}

.contact-info-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.contact-info-title i {
  color: var(--primary-red);
  margin-right: 10px;
}

.contact-form {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 8px;
}

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

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.service-areas {
  margin-top: 40px;
}

.areas-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-item {
  background-color: var(--light-gray);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* ===== FOOTER STYLES ===== */
.footer {
  background-color: var(--accent-blue);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1 1 250px;
}

.footer-title {
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-red);
}

.footer-contact-item {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-contact-icon {
  color: var(--primary-red);
  margin-right: 10px;
  min-width: 20px;
}

.footer-links {
  list-style: none;
}

.footer-link-item {
  margin-bottom: 10px;
}

.footer-link {
  color: var(--white);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .contact-info {
    width: 100%;
    justify-content: center;
    margin-top: 15px;
  }
  
  .nav-container {
    position: relative;
  }
  
  .mobile-menu-btn {
    display: block;
    position: absolute;
    right: 15px;
    top: 15px;
  }
  
  .nav-menu {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--accent-blue);
    display: none;
  }
  
  .nav-menu.active {
    display: block;
  }
  
  .dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    display: none;
  }
  
  .nav-item.active .dropdown {
    display: block;
  }
  
  .hero {
    height: 500px;
    margin-top: 152px; /* Updated header height */
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .service-card,
  .feature,
  .testimonial {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 400px;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
