/* 
 * Kenny's Home Renovations & Repairs - Modern Stylesheet
 * Created: August 10, 2025
 */

/* ===== COLOR SCHEME ===== */
:root {
  /* Primary color scheme */
  --primary-color: #0a2e52; /* Navy blue for trust */
  --secondary-color: #e6d7c3; /* Warm beige for homey feel */
  --accent-color: #3a7d44; /* Green for growth/renewal */
  
  /* Additional colors */
  --dark-bg: #1a2a3a; /* Dark background */
  --light-text: #f8f9fa; /* Light text for dark backgrounds */
  --off-white: #f5f5f5; /* Off-white for backgrounds */
  --cta-color: #e07a5f; /* Orange-ish for CTA buttons */
  --text-color: #333333; /* Main text color */
  
  /* Transparent variants */
  --primary-transparent: rgba(10, 46, 82, 0.9);
  --dark-transparent: rgba(26, 42, 58, 0.9);
}

/* ===== TYPOGRAPHY ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Georgia:wght@400;700&display=swap');

body {
  font-family: 'Georgia', serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
}

h1, h2, h3, h4, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

/* ===== LAYOUT & STRUCTURE ===== */

/* Sticky header */
.sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
  color: var(--light-text);
}
/* Sticky header */
.sticky-header a{ 
  color: var(--light-text);
}
.sticky-header.scrolled {
  background-color: var(--dark-transparent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Hero section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  position: relative;
  z-index: 200;
  margin: auto;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1;
}
.black-text li{
    color: var(--dark-text) !important;
    background-color: var(--text-color);

}
.black-text{
    color: var(--dark-text) !important;
    background-color: var(--text-color);

}
.hero-section h1 {
  font-size: 3.5rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

.dropdown{
    color: var(--dark-text) !important;
}
.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Parallax effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ===== COMPONENTS ===== */

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 4px;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--light-text);
}

.btn-primary:hover {
  background-color: #083a6a;
  border-color: #083a6a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: #d8c9b5;
  border-color: #d8c9b5;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-cta {
  background-color: var(--cta-color);
  border-color: var(--cta-color);
  color: white;
  font-size: 1.1rem;
  padding: 0.85rem 1.75rem;
}

.btn-cta:hover {
  background-color: #d06a4e;
  border-color: #d06a4e;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Cards */
.service-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.service-card-header {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
}

.service-card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.service-card-footer {
  padding: 1rem 1.5rem 1.5rem;
}

/* Testimonial cards */
.testimonial-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.testimonial-author h5{
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--dark-text);
}

.testimonial-author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

/* ===== SECTIONS ===== */

/* Services section */
.services-section {
  padding: 5rem 0;
  background-color: var(--off-white);
}

/* Portfolio section */
.portfolio-section {
  padding: 5rem 0;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.portfolio-filter button {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  margin: 0 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-filter button.active,
.portfolio-filter button:hover {
  background-color: var(--primary-color);
  color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 100%;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 46, 82, 0.8);
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-overlay h4 {
  margin: 0;
  font-size: 1.25rem;
  color: #ffcc00;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-before-after {
  position: relative;
  width: 100%;
  height: 300px;
}

.portfolio-before-after .before,
.portfolio-before-after .after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease;
}

.portfolio-before-after .after {
  opacity: 0;
}

.navbar-toggler-icon-white{
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
    
}
.navbar-toggler{
    border-color: #f5f5f5;
}
.portfolio-before-after:hover .before {
  opacity: 0;
}

.portfolio-before-after:hover .after {
  opacity: 1;
}

/* Side by side before-after comparison */
.before-after-container {
  margin-bottom: 10px;
}

.comparison-image {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  height: 100%;
}

.comparison-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Clickable images */
.clickable-image {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-label {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  padding: 4px 8px;
  border-bottom-right-radius: 5px;
  z-index: 10;
  font-weight: 500;
}

/* About section */
.about-section {
  padding: 5rem 0;
  background-color: var(--off-white);
}

.margin-bottom-150{
    margin-bottom: 350px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.about-section .container {
  display: grid;
}

@media (max-width: 768px) {
  .about-section .container {
    grid-template-columns: 1fr;
  }
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.stat-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 1.5rem;
  margin-right: 1rem;
  margin-bottom: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #777;
}

/* Contact section */
.contact-section {
  padding: 5rem 0;
  background-color: var(--dark-bg);
  color: var(--light-text);
  position: relative;
}

.contact-section h2,
.contact-section h3 {
  color: var(--light-text);
}

.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(10, 46, 82, 0.25);
}

.contact-info {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
}

.contact-info-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.contact-info-icon {
  margin-right: 1rem;
  width: 20px;
  text-align: center;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 4rem 0 2rem;
}

.footer a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* ===== ANIMATIONS & MICRO-INTERACTIONS ===== */

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Button glow effect */
.btn-cta {
  position: relative;
  overflow: hidden;
}

.btn-cta:after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
  transition: transform 0.5s ease;
}

.btn-cta:hover:after {
  transform: rotate(30deg) translate(-10%, -10%);
}

/* ===== ACCESSIBILITY ===== */

/* Focus styles */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background-color: var(--primary-color);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {
  h1 {
    font-size: 2.75rem;
  }
  h2 {
    font-size: 2.25rem;
  }
  .hero-section h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .hero-section h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .hero-section h1 {
    font-size: 2.25rem;
  }
  .hero-section p {
    font-size: 1.1rem;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .hero-section h1 {
    font-size: 1.75rem;
  }
  .btn {
    padding: 0.6rem 1.2rem;
  }
  
  /* Responsive before-after for very small screens */
  .before-after-container .row {
    margin-left: -5px;
    margin-right: -5px;
  }
  .before-after-container .col-6 {
    padding-left: 5px;
    padding-right: 5px;
  }
  .image-label {
    font-size: 12px;
    padding: 3px 6px;
  }
}

/* Thank You Page Styles */
.thank-you-section {
  padding: 60px 0;
}

.thank-you-icon {
  color: var(--primary-color);
}

.thank-you-content {
  max-width: 800px;
  margin: 0 auto;
}

.step-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 25px 15px;
  height: 100%;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 15px;
}
