/* --- CSS Variables for Easy Themeing --- */
:root {
  --primary-color: #007bff;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --text-color: #333;
  --light-text-color: #555;
  --body-bg-color: #ffffff;
}

/* --- General & Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.7;
  background-color: var(--body-bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* --- Background Image & Overlay --- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/modern-wall-tv.png") center center/cover no-repeat;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: -1;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--dark-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header & Navigation --- */
header {
  background-color: rgba(44, 62, 80, 0.9);
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.white {
  color: white;
}

header h1 {
  color: #fff;
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  margin: 0.5rem 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  /* For mobile */
}

/* --- Main Content Layout --- */
main {
  flex: 1;
  padding-top: 40px;
}

/* --- Hero Section (Homepage & Contact Info) --- */
.hero-section {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 0 auto; /* This correctly centers it again */
}

.hero-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-section .subtitle {
  font-size: 1.2rem;
  color: var(--light-text-color);
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.hero-section .expert-pitch {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.why-diy-section,
.problem-section,
.process-section,
.why-us-section,
.final-cta-section,
.learn-more-section {
  max-width: 1000px; /* Matches .hero-section width */
  margin: 0 auto 4rem auto; /* Centers horizontally and adds space below */
  border-radius: 8px; /* The rounded corners! */
  padding: 3rem; /* Adds inner spacing, like .hero-section */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Adds the same shadow */
}

.desktop-contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark-color);
  flex-wrap: wrap;
}

.contact-item i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.mobile-contact-buttons {
  display: none; /* Hidden by default on large screens */
}

/* --- Call to Action (CTA) Button Styles --- */
.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 300;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.cta-button i {
  margin-right: 0.5rem;
}

/* --- Services Section (Homepage) --- */
.services-section {
  padding: 4rem 0;
}

.services-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--light-text-color);
  font-size: 0.95rem;
}

/* --- Contact Form Styles --- */
.contact-form-section {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 2rem 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
  margin: 2rem auto 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Specific style to make the form's submit button full-width and larger */
.contact-form .cta-button {
  width: 100%;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
}

.honeypot {
  display: none;
}

/* --- Footer --- */
footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 1.5rem 0;
  width: 100%;
  margin-top: auto;
}

footer a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  margin-bottom: 0.5rem;
}

.header-logo a img {
  max-height: 70px; /* Adjust this value as needed */
  width: auto; /* This ensures the image scales proportionally */
}

/* --- Landing Page Specific Styles (For Networking, TV, etc.) --- */

/* General Section Styling for Landing Pages */
.landing-section {
  padding: 3rem 0; /* A consistent internal padding for top and bottom */
  margin-bottom: 1.8rem;
}

.landing-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

.why-diy-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

.landing-section.dark-bg {
  background-color: var(--dark-color);
}
.landing-section.dark-bg h2,
.landing-section.dark-bg p {
  color: #fff;
}

/* Landing Page Hero */
.hero-landing {
  text-align: center;
  padding: 5rem 0;
  color: #fff;
}
.hero-landing h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-landing .subtitle {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  color: rgba(255, 255, 255, 0.9);
}

/* NEW: Specific background for the TV Hero */
.hero-landing.tv-hero {
  position: relative;
  z-index: 1;
}
.hero-landing.tv-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-landing.tv-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0); /* Overlay specific to this hero */
  z-index: -1;
}

/* Problem Section Grid */
.problem-section {
  background-color: var(--light-color);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.problem-item {
  text-align: center;
}
.problem-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.problem-item p {
  color: var(--light-text-color);
}

/* Process Section Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.process-step {
  text-align: center;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.process-step .step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem auto;
}
.process-step h3 {
  margin-bottom: 1rem;
}
.process-step p {
  color: var(--light-text-color);
}

/* Why-Us Section Grid */
.why-diy-section,
.why-us-section {
  background-color: var(--light-color);
}
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  padding: 1.5rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.feature-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 5px;
}
.feature-item h3 {
  margin-bottom: 0.5rem;
}
.feature-item p {
  color: var(--light-text-color);
}

/* Final CTA Section */
.final-cta-section {
  max-width: 1000px; /* Constrains the width */
  margin: 2rem auto 2rem auto; /* TOP/BOTTOM auto LEFT/RIGHT 0 BOTTOM auto */
  padding: 3rem; /* Adds inner spacing */
  border-radius: 8px; /* The rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* The shadow */
  text-align: center;
  background-color: var(--light-color); /* Your white background */
}
.final-cta-section h2 {
  color: var(--dark-color); /* Your dark text color */
}
.final-cta-section p {
  max-width: 600px; /* Constrain the paragraph width for readability */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem; /* Add space below the paragraph */
  color: var(--dark-color); /* Your dark text color */
}
/* Style desktop contact info for light background */
.final-cta-section .desktop-contact-info {
  color: var(--dark-color); /* Your dark text color */
}

/* Specific styles for the mobile buttons in the final CTA remain the same */
.final-cta-section .mobile-contact-buttons .cta-button {
  border-color: var(--primary-color);
  color: #fff;
}
.final-cta-section .mobile-contact-buttons .cta-button:hover {
  background-color: var(--primary-color);
}
.problem-item .problem-icon {
  width: 50px; /* Adjust size as needed */
  height: 50px; /* Adjust size as needed */
  margin-bottom: 0.35rem;
  margin-top: -0.35rem;
}

/* --- Learn More Section (for linking to articles) --- */
.learn-more-section {
  background-color: var(--light-color);
}

.learn-more-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.learn-more-box p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--light-text-color);
}

.learn-more-section {
  background-color: var(--light-color); /* The light grey background */
  text-align: center;
}

.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* --- NEW STYLES FOR THE BUTTON GRID --- */
.learn-more-box .button-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Creates 3 equal-width columns */
  gap: 0.2rem; /* The space between the buttons */
  max-width: 600px; /* Optional: Constrain the max width of the grid */
  margin: 0 auto; /* Center the grid if max-width is used */
}

/* This rule ensures all buttons inside the grid behave correctly */
.learn-more-box .button-group .cta-button {
  padding: 1rem 0.5rem; /* Adjust padding for a good fit */
  text-align: center; /* Ensure text is centered */
  font-weight: 300;
}

.cta-button.secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 300;
  margin: 20px;
}

.cta-button.secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.process-tagline {
  font-family: "Montserrat", sans-serif; /* Use the heading font */
  font-weight: 700;
  text-align: center; /* Center it under the paragraph */
  color: var(--primary-color); /* Use your brand's blue */
  font-size: 1.1rem;
  margin-top: 1.5rem; /* Add some space above it */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px S10px rgba(0, 0, 0, 0.1);
  background-color: #fff; /* Ensure a white background for the caption */
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block; /* Removes any bottom space */
}

.gallery-item .caption {
  padding: 1rem;
  text-align: center;
  font-weight: 500;
  color: var(--dark-color);
}

.gallery-section h2 {
  color: white;
}

/* --- Styling for DIY vs Pro Section Icons --- */

/* Targets the Question Icon in the DIY column */
.comparison-column:first-child h3 i.fa-question-circle {
  color: #e67e22; /* A cautionary orange */
}

/* Targets the Shield Icon in the Pro column */
.comparison-column:last-child h3 i.fa-shield-alt {
  color: var(--primary-color); /* Your brand's blue */
}

/* Re-using the checkmark/cross for the list items */
.comparison-column:first-child li::before {
  content: "\f00d"; /* Font Awesome cross icon */
  color: #c0392b; /* Red */
}

.comparison-column:last-child li::before {
  content: "\f00c"; /* Font Awesome check icon */
  color: #27ae60; /* Green */
}

.comparison-grid ul {
  list-style-type: none !important; /* Force the removal of default bullets */
  padding-left: 0 !important; /* Force the removal of default padding */
  margin: 0;
}

.comparison-grid li {
  position: relative;
  padding-left: 2.5rem; /* A bit more space for the icon */
  margin-bottom: 1.5rem;
  list-style-type: none !important; /* Force removal on the LI as well, just in case */
}

.comparison-grid li::before {
  content: "" !important; /* Ensure no other pseudo-elements are trying to be a bullet */
}

.comparison-grid li i {
  position: absolute;
  left: 0;
  top: 7px; /* Fine-tune vertical alignment */
  font-size: 1.2rem;
  width: 2rem; /* Give the icon a defined space */
  text-align: center; /* Center the icon within its space */
}

.comparison-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 0.75rem; /* Tighter space below the main headline */
}

/* Controls the subtitle paragraph */
.comparison-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto; /* Centers it and adds a large gap below */
  font-size: 1.1rem;
  color: var(--light-text-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--light-text-color);
  padding-bottom: 2rem;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

/* Controls the headlines for each column */
.comparison-column h3 {
  font-size: 1.4rem;
  margin-bottom: 2rem; /* Creates a nice gap above the list */
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.additional-service-note {
  max-width: 800px;
  margin: 0 auto 2.5rem auto; /* Sits above the final CTA */
  padding: 1.5rem;
  border: 1px dashed #ccc; /* Dashed border makes it look like a side note */
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
}
.additional-service-note i {
  font-size: 2.5rem;
  color: var(--primary-color);
}
.additional-service-note p {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.article-image {
  width: 100%;
  max-width: 600px; /* Control the max size of the images */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Allows for auto margins */
  margin: 0 auto 2rem auto; /* Centers the image and adds space below */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- NEW: Media Object for Article Lists (Image + Text) --- */
.media-object {
  display: flex; /* The core of the side-by-side layout */
  align-items: flex-start; /* Aligns items to the top */
  gap: 1.5rem; /* The space between the image and the text */
  margin-bottom: 3rem; /* Space below each entire item */
}

.media-object .media-image {
  flex-shrink: 0; /* Prevents the image from shrinking */
  width: 120px; /* The width of your small image */
  height: auto;
  border-radius: 8px;
}

.media-object .media-body {
  flex-grow: 1; /* Allows the text to take up the remaining space */
}

.media-object .media-body h3 {
  margin-bottom: 0.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  header {
    position: relative;
  }

  header h1 {
    font-size: 1rem;
    font-weight: 500;
  }

  .container {
    padding: 0 1rem;
  }

  /* Mobile Navigation */
  .nav-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: rgba(52, 73, 94, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    margin: 0;
  }

  nav a {
    display: block;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav a::after {
    display: none;
  }

  nav a:hover,
  nav a.active {
    background-color: var(--primary-color);
  }

  /* Mobile Hero Section */

  main {
    flex: 1;
    padding: 1rem 0;
    margin-top: 1rem;
  }

  .hero-section {
    padding: 2rem 1.5rem;
  }

  .hero-section h2 {
    font-size: 1.5rem;
  }

  .hero-section .subtitle {
    font-size: 1rem;
  }

  .desktop-contact-info {
    display: none;
  }

  /* Mobile Contact Buttons */
  .mobile-contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* Overriding .cta-button specifically for mobile hero */
  .mobile-contact-buttons .cta-button {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    padding: 1.25rem 0.5rem;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .mobile-contact-buttons .cta-button i {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }

  .mobile-contact-buttons .cta-button .cta-text {
    font-size: 0.9rem;
    line-height: 1;
  }

  .mobile-contact-buttons .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  /* Mobile Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Contact Form */
  .contact-form-section {
    padding: 2rem 1.5rem;
  }
  /* --- Mobile Styles for Landing Pages --- */
  .hero-landing h1 {
    font-size: 2rem;
  }

  .hero-landing .subtitle {
    font-size: 1.1rem;
  }

  .problem-grid,
  .process-grid,
  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .problem-section h2 {
    font-size: 1.5rem;
    padding: 0 2em 0 2em;
  }
  .why-us-section h2 {
    font-size: 1.5rem;
    padding: 0 2em 0 2em;
  }

  /* Mobile Services Grid */

  /* --- ADD THE NEW CODE BLOCK HERE --- */
  /* --- Mobile Styles for Why-Us Section --- */
  .feature-item {
    flex-direction: column; /* STACKS the icon on top of the text div */
    align-items: center; /* Centers the icon horizontally */
    text-align: center; /* Centers the h3 and p text */
    gap: 0.75rem; /* Reduces the space between the icon and text */
  }

  .feature-item i {
    margin-top: 0; /* Resets the icon's top margin for the new layout */
  }

  .learn-more-box .button-group {
    grid-template-columns: 1fr; /* Stack the buttons into a single column on mobile */
  }

  header h3 {
    display: none;
  }

  .article-section h1 {
    font-size: 1.7rem !important;
  }

  .article-section h2 {
    text-align: center;
    font-size: 1rem !important;
  }

  .article-section .intro-text {
    font-size: 1rem !important;
  }

  .article-section ul {
    font-size: 0.8rem !important;
  }

  .breadcrumb a {
    font-size: 0.7rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .media-object {
    flex-direction: column; /* Stack image and text vertically */
    align-items: center; /* Center the image */
    text-align: center; /* Center the text */
  }

  .media-object .media-image {
    width: 150px; /* You can make the image a bit bigger on mobile */
    margin-bottom: 1rem;
  }
}
