/*
Theme Name: Rocky Mountain Heat Cable
Theme URI: https://rockymountainheatcable.com
Author: Rocky Mountain Heat Cable
Author URI: https://rockymountainheatcable.com
Description: A custom WordPress theme for Rocky Mountain Heat Cable.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rocky-mountain-heat-cable
*/

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  font-size: 1.5rem;
  color: #002147;
}
.site-nav ul {
  list-style: none;
  display: flex;
}
.site-nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #002147;
  font-weight: 500;
}
.site-nav a.active {
  text-decoration: underline;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  display: inline-block;
}
.btn-primary {
  background: #ff6b00;
  color: #fff;
}
.btn-secondary {
  background: #002147;
  color: #fff;
}

/* Hero */
.hero {
  background: url('images/hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Hide the default page title on the front page */
.home .entry-title {
  display: none !important;
}

/* Features (“Why Choose Us”) */
section.features.container {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin: 4rem 0;
}
section.features.container .feature-item {
  flex: 1 1 30%;
  max-width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}
section.features.container .feature-item img {
  width: 60px;
  margin-bottom: 0.5rem;
}
section.features.container .feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #002147;
}
section.features.container .feature-item p {
  color: #555;
}

/* Services Preview */
.services-preview {
  text-align: center;
  margin-bottom: 4rem;
}
.services-preview h2 {
  color: #002147;
  margin-bottom: 1rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.service-card img {
  width: 100%;
  border-radius: 4px;
}
.service-card h4 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: #002147;
}
.service-card p {
  color: #555;
  font-size: 0.95rem;
}

/* Gallery Preview */
.gallery-preview {
  text-align: center;
  margin-bottom: 4rem;
}
.gallery-preview h2 {
  color: #002147;
  margin-bottom: 1rem;
}
.before-after {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
}
.before-after .side img {
  width: 100%;
  max-width: 300px;
  border-radius: 4px;
}
.before-after .side p {
  margin-top: 0.5rem;
  font-weight: bold;
}

/* Testimonials */
.testimonials {
  background: #f9f9f9;
  padding: 4rem 1rem;
  text-align: center;
}
.testimonials h2 {
  color: #002147;
  margin-bottom: 1rem;
}
.testimonials blockquote {
  font-style: italic;
  max-width: 700px;
  margin: auto;
  color: #555;
}
.testimonials cite {
  display: block;
  margin-top: 1rem;
  color: #002147;
  font-weight: bold;
}

/* CTA Section */
.cta {
  text-align: center;
  margin: 4rem 0;
}
.cta h2 {
  margin-bottom: 1rem;
  color: #002147;
}

/* Footer */
.site-footer {
  background: #002147;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}
.site-footer a {
  color: #ff6b00;
  text-decoration: none;
}

/* Responsive */

/* Features stack on mobile */
@media (max-width: 768px) {
  section.features.container {
    flex-direction: column;
  }
  section.features.container .feature-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .site-nav ul {
    flex-direction: column;
  }
  .before-after {
    flex-direction: column;
  }
}

/* ─── FORCE “Why Choose Us” FLEX LAYOUT ─── */
body.home section.features.container {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-around !important;  /* or space-between, whichever you prefer */
}

body.home section.features.container .feature-item {
  flex: 1 1 30% !important;
  max-width: 30% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

body.home section.features.container .feature-item img {
  width: 60px !important;
  height: auto !important;
  margin-bottom: 0.5rem !important;
}

/* --- DEBUG: show banner if this CSS is live --- */
body.home::before {
  content: "CSS LOADED";
  position: fixed;
  top: 0;
  left: 0;
  background: #ff6b00;
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 14px;
  z-index: 9999;
}

