/*
 * Troncoso Roofing Solutions
 *
 * This stylesheet provides the base styling for the
 * roofing and construction lead‑generation site. It uses a
 * clean, modern layout that works on both desktop and mobile
 * devices. Utility classes help keep the markup concise.
 */

/* Reset some basic elements */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

a {
  color: #0074d9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

header {
  background: #001f3f;
  color: #fff;
}

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

header .logo a {
  font-weight: bold;
  font-size: 1.25rem;
  color: #fff;
}

header nav ul {
  display: flex;
  gap: 20px;
}

header nav a {
  color: #fff;
  font-weight: bold;
  transition: opacity 0.2s;
}

header nav a:hover {
  opacity: 0.8;
}

header .cta-phone {
  background: #ff4136;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
}

/* Hero Section */
.hero {
  /* Use a gradient background instead of an external image so the
   * hero renders correctly even without internet access. */
  background: linear-gradient(135deg, #001f3f 0%, #004080 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

/* Remove the pseudo element overlay used for darkening an image; it's
 * unnecessary when using a solid gradient background. */
.hero::after {
  content: none;
}

/* Keep the container positioning for layering relative to the hero */
.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.buttons .btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn.primary {
  background: #ffdc00;
  color: #001f3f;
}

.btn.primary:hover {
  background: #ffca00;
}

.btn.secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn.secondary:hover {
  background: rgba(255,255,255,0.1);
}

.trust-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.trust-icons li {
  font-size: 0.9rem;
}

/* Section base styles */
section {
  padding: 60px 0;
}

section.dark {
  background: #f7f7f7;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* Trust section cards */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.trust-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
}

.trust-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #001f3f;
}

/* Services cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  padding: 20px;
  border-radius: 4px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #001f3f;
}

.service-card p {
  flex-grow: 1;
  margin: 10px 0;
}

.service-card a {
  align-self: flex-start;
  font-weight: bold;
  color: #0074d9;
  margin-top: 10px;
}

.service-card a:hover {
  text-decoration: underline;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background: #fff;
  padding: 20px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
}

.review-card p {
  font-style: italic;
}

.review-card .stars {
  color: #ffdc00;
  margin-bottom: 10px;
}

/* Service areas */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.areas-grid a {
  background: #fff;
  border: 1px solid #e2e2e2;
  padding: 15px;
  border-radius: 4px;
  display: block;
  text-align: center;
  color: #001f3f;
  font-weight: bold;
}

.areas-grid a:hover {
  background: #f0f0f0;
}

/* FAQs */
.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: #001f3f;
}

/* Forms */
.lead-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.lead-form button {
  background: #0074d9;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lead-form button:hover {
  background: #005fa3;
}

/* Footer */
footer {
  background: #001f3f;
  color: #fff;
  padding: 40px 0;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

footer h4 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #ffdc00;
}

footer p,
footer li,
footer a {
  color: #fff;
  font-size: 0.9rem;
}

footer a:hover {
  text-decoration: underline;
}

footer .copy {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    gap: 10px;
  }
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  section h2 {
    font-size: 1.6rem;
  }
}