/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Roboto:wght@400;700&display=swap');

/* --- CSS Variables (Color Palette) --- */
:root {
  --primary-color: #0062ff; /* Vibrant blue for CTAs and links */
  --secondary-color: #00a896; /* A supportive teal/green */
  --dark-color: #2c3e50; /* Dark, for text */
  --light-color: #ffffff; /* White */
  --gray-bg: #f8f9fa; /* Light gray background */
  --gray-border: #e0e0e0;
  --header-height: 70px;
}

/* --- Base & Reset Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.7;
  color: var(--dark-color);
  background-color: var(--light-color);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: #004ecc;
}

ul {
  list-style: none;
}

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

/* --- Utility Classes --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-bg {
  background-color: var(--gray-bg);
}

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

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--light-color);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.site-logo img {
  height: 45px; /* Adjust as-needed for your logo */
  width: auto;
}

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

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  font-weight: 700;
  padding: 0.5rem;
  color: var(--dark-color);
  position: relative;
}

.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

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

/* --- Hamburger Menu (Mobile) --- */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

/* --- Call-to-Action (CTA) Button --- */
.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #004ecc;
  color: var(--light-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* --- Hero Section (Home Page) --- */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero.jpeg?text=Modern+Home+Exterior');
  background-size: cover;
  background-position: center;
  color: var(--light-color);
  padding: 7rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* --- Services Grid (Home Page) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--light-color);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- THIS IS THE RECTIFIED STYLE FOR ICONS --- */
.service-card .service-icon {
  font-size: 4.5rem; /* Increased size */
  color: var(--primary-color); /* Sets color to blue */
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  color: var(--primary-color);
}

/* --- Reviews Section (Service Page) --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.review-card {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 2rem;
}

.review-card blockquote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.review-card blockquote::before {
  content: '“';
  font-family: 'Times New Roman', Times, serif;
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  left: -10px;
  top: -10px;
}

.review-card .author {
  font-weight: 700;
  color: var(--dark-color);
  text-align: right;
}

.author-stars {
  color: #f39c12; /* Yellow for stars */
  margin-bottom: 0.5rem;
}

/* --- General Page Styles --- */
.page-header {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  color: var(--light-color);
}

.content-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.content-section h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--gray-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.content-section ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--gray-border);
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
}

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

.contact-form button {
  width: 100%;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--dark-color);
  color: #adb5bd;
  padding: 3rem 0 1rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
}

.site-footer .container {
  text-align: center;
}

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--light-color);
  margin: 0 0.75rem;
  font-weight: 700;
}

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

.company-info {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.company-info strong {
  color: var(--light-color);
}

.disclaimer {
  font-style: italic;
  font-size: 0.8rem;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  color: #999;
}

.copyright {
  border-top: 1px solid #444;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  color: #777;
}

/* --- Responsive Design --- */

/* Tablets */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.2rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    border-bottom: 1px solid var(--gray-border);
    flex-direction: column;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-links li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1.2rem;
    border-bottom: 1px solid var(--gray-bg);
  }
  
  .nav-links a::after {
    display: none; /* Disable underline effect on mobile nav */
  }

  .hamburger {
    display: block;
  }

  /* Hamburger 'X' animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .hero {
    padding: 5rem 1rem;
  }

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

  .section {
    padding: 3rem 0;
  }
  
  .content-section {
    margin: 2rem auto;
  }
  
  .footer-links a {
    display: block;
    margin: 0.5rem 0;
  }
}