/*
 Theme Name:   F5R
 Theme URI:    https://www.force5roofing.com/
 Description:  A child theme for Divi, customized for Force 5 Roofing services in Greater Denver, featuring drone soft wash window cleaning.
 Author:       Force 5 Roofing
 Author URI:   https://www.force5roofing.com/
 Template:     Divi
 Version:      1.0.0
 Text Domain:  f5r
*/

/* Import Divi parent theme styles */
@import url('../Divi/style.css');

/* Global Styles */
body {
  font-family: 'Roboto', sans-serif;
  color: #333;
}

.container-base {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.card-base {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.card-base:hover {
  transform: translateY(-5px);
}
.card-base h3 {
  font-size: 1.4em;
  color: #003087;
  margin-bottom: 10px;
}
.card-base p {
  font-size: 1em;
  color: #555;
}

/* Hero Section */
.hero-section {
  @extend .container-base;
  background: linear-gradient(135deg, #003087 0%, #005566 100%);
  color: #fff;
  margin-bottom: 40px;
}
.hero-section h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}
.hero-section h2 {
  font-size: 1.8em;
  font-weight: 300;
  margin-bottom: 20px;
}
.hero-section p {
  max-width: 800px;
  margin: 0 auto;
}

/* Why Choose Us Section */
.why-choose-section {
  @extend .container-base;
  background: #f9f9f9;
  margin-bottom: 40px;
}
.why-choose-section h2 {
  font-size: 2em;
  margin-bottom: 30px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.feature-card {
  @extend .card-base;
  text-align: center;
}

/* Video Grid Section */
.video-grid-container {
  @extend .container-base;
}
.video-grid-container h2 {
  font-size: 2em;
  margin-bottom: 20px;
}
.video-grid-container p {
  max-width: 800px;
  margin: 0 auto 30px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}
.video-card {
  @extend .card-base;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-description {
  padding: 15px 0;
}

/* Sidebar Container */
.sidebar-container {
  max-width: 300px;
  margin: 0 auto;
  padding: 20px;
}

.sidebar-video-card {
  @extend .card-base;
  margin-bottom: 20px;
}
.sidebar-video-card .video-embed {
  @extend .video-embed;
}
.sidebar-video-card .video-description {
  padding: 10px 0;
}
.sidebar-video-card h3 {
  font-size: 1.3em;
  margin-bottom: 8px;
}
.sidebar-video-card p {
  font-size: 0.95em;
}

.sidebar-table-card {
  @extend .card-base;
  margin-bottom: 20px;
}
.sidebar-table-card h3 {
  font-size: 1.3em;
  margin-bottom: 15px;
  text-align: center;
}
.service-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}
.service-comparison-table th,
.service-comparison-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.service-comparison-table th {
  background: #f9f9f9;
  font-weight: 700;
}
.service-comparison-table td {
}
.service-comparison-table tr:last-child td {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2em;
  }
  .hero-section h2 {
    font-size: 1.5em;
  }
  .why-choose-section h2 {
    font-size: 1.8em;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .video-grid-container h2 {
    font-size: 1.8em;
  }
  .video-grid-container p {
    font-size: 1.1em;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-container {
    max-width: 100%;
    padding: 15px;
  }
  .sidebar-video-card h3,
  .sidebar-table-card h3 {
    font-size: 1.2em;
  }
  .service-comparison-table {
    font-size: 0.85em;
  }
  .service-comparison-table th,
  .service-comparison-table td {
    padding: 6px;
  }
}

/* New Service Banner */
.et_pb_slide_4::before {
  content: "NEW";
  position: absolute;
  top: 58px;
  left: -35px;
  background-color: #ffc107;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 1.2em;
  font-weight: 700;
  padding: 5px 45px;
  transform: rotate(-45deg);
  transform-origin: 0 0;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .et_pb_slide_4::before {
    top: 58px;
    left: -35px;
    font-size: 1em;
    padding: 3px 45px;
  }
}