/*
Theme Name: HandymanPro
Description: Professional WordPress theme for handyman and home service businesses. Clean, responsive design with project showcase, service cards, Google Reviews integration, floating chat widget, and mobile-first CTA bars. Part of the HandymanPro CRM platform.
Author: HandymanPro
Version: 1.0.0
Text Domain: bespoke
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* CSS Variables for Color Palette */
:root {
  --primary-dark: #3d5a6e;
  --primary-medium: #4a7c8f;
  --cta-blue: #2e86ab;
  --cta-green: #4CAF50;
  --gold-tan: #c4a35a;
  --body-text: #555555;
  --heading-text: #333333;
  --light-bg: #f5f7fa;
  --white: #ffffff;
  --footer-bg: #2d3e4a;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Open Sans', sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  line-height: 1.6;
  font-size: 16px;
  margin-top: 0; /* Hero sits behind fixed header */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading-text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--cta-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-medium);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-light {
  background-color: var(--light-bg);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--cta-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-medium);
  color: var(--white);
}

.btn-green {
  background-color: var(--cta-green);
  color: var(--white);
}

.btn-green:hover {
  background-color: #45a049;
  color: var(--white);
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 10px 0;
}

/* Offset body content below fixed header */
body {
  padding-top: 100px;
}
body.home {
  padding-top: 0;
}

.header-content {
  display: grid;
  grid-template-columns: 200px auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 60px;
}

.site-logo {
  justify-self: start;
}

.site-logo img {
  max-height: 60px;
  width: auto;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  justify-self: center;
}

.phone-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.phone-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--white);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.phone-btn.call {
  background-color: var(--cta-blue);
}

.phone-btn.sms {
  background-color: var(--cta-green);
}

.phone-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.phone-btn svg {
  width: 14px;
  height: 14px;
}

.estimate-btn {
  padding: 6px 16px;
  font-size: 13px;
  white-space: nowrap;
}

/* Navigation Styles */
.main-navigation {
  justify-self: end;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 15px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-navigation a {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--heading-text);
  font-size: 13px;
  padding: 10px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-navigation a:hover {
  color: var(--cta-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-top: 10px;
}

.hamburger,
.hamburger:before,
.hamburger:after {
  content: '';
  display: block;
  height: 3px;
  width: 25px;
  background: var(--heading-text);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger:before {
  top: -8px;
}

.hamburger:after {
  top: 5px;
}

.mobile-menu-toggle.active .hamburger {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger:before {
  top: 0;
  transform: rotate(0deg);
}

.mobile-menu-toggle.active .hamburger:after {
  top: -3px;
  transform: rotate(90deg);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: auto;
  min-height: 700px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(61, 90, 110, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.hero-content h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
  opacity: 0.95;
}

.hero-cta {
  margin-bottom: 60px;
  margin-top: 2rem;
}

.hero-cta .btn {
  font-size: 1.1rem;
  padding: 18px 40px;
}

/* Tab Bar */
.tab-bar {
  background-color: var(--primary-medium);
  padding: 0;
}

.tab-bar-content {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.tab-link {
  flex: 1;
  text-align: center;
  padding: 20px 30px;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: background-color 0.3s ease;
}

.tab-link:last-child {
  border-right: none;
}

.tab-link:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--white);
}

/* White Glove Section */
.white-glove-section {
  background: linear-gradient(135deg, var(--light-bg) 0%, #e8edf2 100%);
}

.white-glove-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}

.glove-image img {
  max-width: 300px;
  border-radius: 10px;
}

.value-props {
  list-style: none;
}

.value-prop {
  margin-bottom: 2rem;
  padding-left: 40px;
  position: relative;
}

.value-prop:before {
  content: attr(data-number);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--cta-blue);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.value-prop h4 {
  margin-bottom: 0.5rem;
  color: var(--heading-text);
}

/* What We Do Section */
.what-we-do-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.work-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.work-photo img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cta-blue);
  margin-bottom: 1rem;
}

/* Feature Cards */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/* Services Section - Card Grid */

/* Service Cards Grid */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--body-text);
  transition: all 0.3s ease;
  display: block;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-tan);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(61, 90, 110, 0.15);
  border-color: var(--gold-tan);
  color: var(--body-text);
  text-decoration: none;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--cta-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
  background: linear-gradient(135deg, var(--gold-tan), #d4b76a);
  transform: scale(1.1);
}

.service-card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.service-card h4 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: var(--body-text);
}

/* Responsive */
@media (max-width: 768px) {
  .service-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .service-card {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .service-cards-grid {
    grid-template-columns: 1fr;
  }
}



/* About Section - Redesigned */
.about-content-redesign {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.about-photo-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(61, 90, 110, 0.2);
}

.about-photo-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-tan), var(--cta-blue));
}

.about-photo-frame img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.about-name-plate {
  text-align: center;
  margin-top: 1.25rem;
}

.about-name-plate h3 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin: 0;
  font-size: 1.5rem;
}

.about-name-plate span {
  color: var(--gold-tan);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.about-text-col h2 {
  margin-bottom: 1rem;
}

.about-text-col p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Trust Badges */
.about-trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e8ecf0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--light-bg);
  border-radius: 10px;
  border-left: 3px solid var(--gold-tan);
}

.trust-badge-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, var(--primary-dark), var(--cta-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-badge-icon svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.trust-badge-text {
  display: flex;
  flex-direction: column;
}

.trust-badge-text strong {
  color: var(--primary-dark);
  font-size: 0.95rem;
  line-height: 1.2;
}

.trust-badge-text span {
  color: var(--body-text);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .about-content-redesign {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .about-photo-col {
    max-width: 250px;
    margin: 0 auto;
  }
  .about-trust-badges {
    grid-template-columns: 1fr;
  }
  .about-text-col .section-label,
  .about-text-col h2 {
    text-align: center;
  }
}


/* Service Area Section */
.service-area-section {
  background: linear-gradient(135deg, var(--primary-medium) 0%, var(--cta-blue) 100%);
  color: var(--white);
  text-align: center;
}

.service-area-section h1 {
  color: var(--white);
  margin-bottom: 3rem;
}

.service-area-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.community-list {
  list-style: none;
  text-align: left;
}

.community-list li {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-left: 30px;
  position: relative;
}

.community-list li:before {
  content: "📍";
  position: absolute;
  left: 0;
}

.map-embed {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Testimonials */
.testimonials-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  position: relative;
  text-align: center;
}

.testimonial-card:before {
  content: """;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--cta-blue);
  font-family: Georgia, serif;
}

.testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
}

.testimonial-name {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: var(--heading-text);
}

.testimonial-title {
  color: var(--cta-blue);
  font-size: 14px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.6;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item strong {
  color: var(--heading-text);
}

.review-icons {
  margin-top: 2rem;
}

.review-icons a {
  display: inline-block;
  margin-right: 15px;
  font-size: 2rem;
}

/* Footer Styles */
.site-footer {
  background-color: var(--footer-bg);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 0;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-column h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.footer-tagline {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.footer-social a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.footer-social a:hover {
  color: var(--white);
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column ul li {
  margin-bottom: 10px;
}
.footer-column ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}
.footer-column ul li a:hover {
  color: var(--white);
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}
.footer-contact li svg {
  flex-shrink: 0;
  margin-top: 2px;
  fill: rgba(255,255,255,0.5);
}
.footer-contact li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-contact li a:hover {
  color: var(--white);
}
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
@media (max-width: 767px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .footer-contact li {
    justify-content: center;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}
/* Push inner page content below fixed header */
.page-content, .kitchen-content-wrapper, .estimate-content-wrapper, .project-content-wrapper, .site-main > .container {
  padding-top: 20px;
}
/* Homepage hero needs padding to clear fixed header */
body.home .site-main > .container {
  padding-top: 0;
}
body.home .hero-section {
  padding-top: 220px;
  padding-bottom: 80px;
}

/* Hide Thrive injected elements when Bespoke theme is active */
.thrv_header, .thrv_footer, .tve-leads-ribbon {
  display: none !important;
}


/* Breadcrumbs */
.breadcrumbs {
  background: var(--section-light);
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: 1px solid #e0e0e0;
}
.breadcrumbs .container {
  padding-top: 0;
}
.breadcrumbs a {
  color: var(--cta-blue);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs .separator {
  margin: 0 6px;
  color: var(--text-light);
}


/* Google Reviews Testimonials */
.google-reviews-badge {
  text-align: center;
  margin-bottom: 40px;
}
.google-reviews-badge .review-stars {
  color: #FBBC05;
  font-size: 1.8rem;
  letter-spacing: 4px;
  margin-right: 10px;
}
.google-reviews-badge .review-source {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
}
.testimonials-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  text-align: center;
}
.testimonial-stars {
  color: #FBBC05;
  font-size: 1.3rem;
  letter-spacing: 3px;
  margin-bottom: 15px;
}
.testimonial-text {
  font-style: italic;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.testimonial-name {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 4px;
}
.testimonial-source {
  font-size: 0.85rem;
  color: var(--text-light);
}
@media (max-width: 767px) {
  .testimonials-content {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .testimonials-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* Testimonial photos */
.testimonial-photo {
  margin-bottom: 10px;
}
.testimonial-photo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

/* Scroll offset for fixed header on anchor links */
section[id] {
  scroll-margin-top: 120px;
}

/* Fix for WP admin bar pushing fixed header */
.admin-bar .site-header {
  top: 32px;
}
.admin-bar body {
  padding-top: 132px;
}
.admin-bar body.home {
  padding-top: 32px;
}
.admin-bar .hero-section {
  padding-top: 220px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
  .admin-bar body {
    padding-top: 146px;
  }
  .admin-bar body.home {
    padding-top: 46px;
  }
}

/* Testimonial Dates */
.testimonial-date {
  font-size: 0.8rem;
  color: #999;
  margin-top: 2px;
}

.google-logo-sm {
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}

/* Review CTA Links */
.review-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.review-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.review-link-google {
  background: #fff;
  border: 2px solid #e8ecf0;
  color: var(--heading-text);
}

.review-link-google:hover {
  border-color: #4285f4;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--heading-text);
}

.review-link-facebook {
  background: #1877f2;
  border: 2px solid #1877f2;
  color: #fff;
}

.review-link-facebook:hover {
  background: #166fe5;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

/* Nextdoor Review Button */
.review-link-nextdoor {
  background: #8ed500;
  border: 2px solid #8ed500;
  color: #fff;
}

.review-link-nextdoor:hover {
  background: #7ec200;
  box-shadow: 0 4px 12px rgba(142, 213, 0, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

/* Recent Projects Section */
.recent-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 2rem;
}

.recent-project-card {
  text-decoration: none;
  color: var(--body-text);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: block;
}

.recent-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(61, 90, 110, 0.18);
  text-decoration: none;
  color: var(--body-text);
}

.recent-project-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.recent-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recent-project-card:hover .recent-project-image img {
  transform: scale(1.08);
}

.recent-project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61, 90, 110, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recent-project-card:hover .recent-project-overlay {
  opacity: 1;
}

.view-project {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 20px;
  border: 2px solid #fff;
  border-radius: 6px;
}

.recent-project-info {
  padding: 1rem 1.25rem;
}

.recent-project-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-tan);
}

.recent-project-info h4 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-size: 1rem;
  margin: 0.25rem 0 0;
  line-height: 1.3;
}

/* Outline button style */
.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .recent-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .recent-projects-grid {
    grid-template-columns: 1fr;
  }
  .recent-project-image {
    height: 200px;
  }
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--primary-dark);
  padding: 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.sticky-mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sticky-cta-call {
  color: #fff !important;
  background: var(--primary-dark);
}

.sticky-cta-estimate {
  color: #fff !important;
  background: var(--cta-green);
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: flex;
  }
  .sticky-mobile-cta a {
    flex: 1;
  }
  /* Add bottom padding to body so footer content isn't hidden behind sticky bar */
  body {
    padding-bottom: 56px;
  }
}

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

@media (max-width: 768px) {
  
  /* --- HEADER --- */
  .header-content {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0;
    padding: 8px 16px;
    min-height: auto;
  }
  
  .site-logo {
    grid-column: 1;
    grid-row: 1;
  }
  
  .site-logo img {
    max-height: 45px;
  }
  
  .header-center {
    display: none; /* Hide on mobile — sticky CTA handles this */
  }
  
  .main-navigation {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-navigation ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 12px 12px;
    flex-direction: column;
    gap: 0;
    min-width: 250px;
    padding: 8px 0;
    z-index: 1000;
  }
  
  .main-navigation.active ul {
    display: flex;
  }
  
  .main-navigation a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .main-navigation li:last-child a {
    border-bottom: none;
  }
  
  /* --- BODY PADDING --- */
  body {
    padding-top: 65px;
  }
  
  body.home .hero-section {
    padding-top: 65px;
  }
  
  /* --- HERO --- */
  .hero-section {
    min-height: 500px;
    height: 70vh;
    background-attachment: scroll; /* Fixed BG breaks on mobile */
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content h3 {
    font-size: 0.95rem;
  }
  
  /* --- TAB BAR --- */
  .tab-bar-content {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .tab-link {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  
  /* --- WHITE GLOVE --- */
  .white-glove-content {
    flex-direction: column;
  }
  
  .glove-image {
    max-width: 200px;
    margin: 0 auto;
  }
  
  /* --- WHAT WE DO / WHY WE DO IT --- */
  .what-we-do-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .work-photos {
    grid-template-columns: 1fr;
  }
  
  /* --- FEATURE CARDS --- */
  .feature-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* --- SECTIONS GENERAL --- */
  .section {
    padding: 3rem 0;
  }
  
  .container {
    padding: 0 16px;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .section-label {
    font-size: 0.8rem;
  }

  /* --- SERVICE AREA --- */
  .service-area-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .service-area-section h1 {
    font-size: 1.5rem;
  }
  
  .map-embed iframe {
    height: 300px !important;
  }
  
  /* --- TESTIMONIALS --- */
  .testimonials-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* --- CONTACT --- */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* --- FOOTER --- */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-review-links {
    text-align: center;
  }
  
  .footer-review-links div {
    justify-content: center !important;
  }
  
  /* --- REVIEW BUTTONS --- */
  .review-links {
    flex-direction: column;
    align-items: center;
  }
  
  .review-link-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Small phones */
@media (max-width: 375px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .service-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .about-trust-badges {
    grid-template-columns: 1fr;
  }
}

/* White Glove Mobile Fix */
@media (max-width: 768px) {
  .white-glove-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .glove-image {
    text-align: center;
  }
  .glove-image img {
    max-width: 180px;
    margin: 0 auto;
  }
  .value-prop {
    padding-left: 40px;
    margin-bottom: 1.5rem;
  }
  .value-prop h4 {
    font-size: 1rem;
  }
  .value-prop p {
    font-size: 0.9rem;
  }
  .white-glove-section .container {
    overflow: hidden;
  }
  .white-glove-section h2 {
    font-size: 1.4rem;
  }
}
html, body { overflow-x: hidden; }
