/* 
* WellFixThat.com - Professional Home Repair Services
* SEO-optimized, fully responsive CSS
*/

/* Base Variables and Settings */
:root {
  --primary: #FF6B35;     /* Warm orange */
  --secondary: #F7C59F;   /* Light peach */
  --accent: #004E89;      /* Deep blue */
  --background: #EFEFD0;  /* Light cream */
  --dark: #2C3E50;        /* Dark slate */
  --light: #F8F9FA;       /* Off-white */
  --text: #333333;        /* Near black */
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius: 8px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
  color: var(--dark);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  margin-bottom: 2rem;
}

h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 3px;
  width: 60px;
  background-color: var(--primary);
}

.text-center h2:after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

/* Utility Classes */
.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.btn:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-3px);
}

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

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

.section {
  padding: 5rem 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light);
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header-scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

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

.logo-image {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  flex-direction: column;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--primary);
}

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

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

.nav-item {
  margin-left: 30px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark);
  position: relative;
}

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

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

.nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 5px;
}

.nav-toggle svg {
  fill: var(--dark);
  width: 30px;
  height: 30px;
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0.1;
}

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

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.hero-subheadline {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--light);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  color: var(--primary);
}

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

/* Testimonials */
.testimonials {
  background-color: var(--dark);
  color: var(--light);
}

.testimonials h2 {
  color: var(--light);
}

.testimonials h2:after {
  background-color: var(--secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
}

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

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-name {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.testimonial-position {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* News Section */
.news {
  background-color: var(--light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.news-card {
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 3px solid var(--primary);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-content {
  padding: 20px;
}

.news-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.news-links {
  list-style: none;
  padding-left: 0;
}

.news-links li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.news-links li:last-child {
  border-bottom: none;
}

.news-links a {
  display: block;
  transition: var(--transition);
  padding-left: 15px;
  position: relative;
}

.news-links a:before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 3rem;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  margin-right: 15px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.contact-details h4 {
  margin-bottom: 5px;
  color: var(--dark);
}

.contact-details p {
  margin-bottom: 0;
  color: var(--text);
}

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

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

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 4rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
}

.footer-logo-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.footer-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

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

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

.footer-heading {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

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

.footer-links li {
  margin-bottom: 10px;
}

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

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

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-headline {
    font-size: 2.5rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    grid-row: 1;
    margin-bottom: 30px;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }
  
  .nav-list.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .nav-item {
    margin: 10px 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .services-grid,
  .testimonials-grid,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero {
    padding: 7rem 0 3rem;
  }
  
  .hero-headline {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}
