@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap");


/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */

:root {
  --primary-color: #c40001;
  --text-dark: #333333;
  --text-light: #666666;
  --link-color: #2ea3f2;
  --bg-light: #f3f3f3;
  --white: #ffffff;
  --font-family: "Open Sans", Arial, sans-serif;
  --heading-font: "Playfair Display", Georgia, "Times New Roman", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7em;
  color: var(--text-light);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3em;
  margin-bottom: 15px;
}

h1 {
  font-size: 42px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 26px;
}

h4 {
  font-size: 20px;
}

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

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

p {
  margin-bottom: 20px;
  color: #000000;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  color: #ffffff;
}

/* ==========================================================================
   Header Section
   ========================================================================== */

.site-header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 50px;
  width: auto;
  transition: all 0.3s ease;
}

.site-header.scrolled .logo img {
  max-height: 42px;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  align-items: center;
}

.main-nav .nav-list>li {
  position: relative;
  margin-left: 20px;
}

.main-nav .nav-list>li>a {
  color: #00000099;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
}

.main-nav .nav-list>li>a.active,
.main-nav .nav-list>li>a:hover {
  color: var(--primary-color);
}

.main-nav .nav-list>li.nav-cta>a {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.main-nav .nav-list>li.nav-cta>a:hover {
  background-color: #a00001;
  color: var(--white);
}

/* Dropdown */

.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 25px;
  background: transparent;
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 22px);
  left: 0;
  background-color: var(--white);
  min-width: 240px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px 0;
  border-top: 3px solid var(--primary-color);
}

.site-header.scrolled .has-dropdown .dropdown {
  top: calc(100% + 14px);
}

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-light);
  font-size: 14px;
}

.dropdown li a.active,
.dropdown li a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
}


/* =========================================
   GET ESTIMATE PAGE STYLES
   ========================================= */
.estimate-hero-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../images/GCR-banner-2.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.estimate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.estimate-info-sidebar ul li {
  font-size: 16px;
  font-weight: 500;
}

.estimate-services-section .grid-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}


/* Estimate Button Header Override */
.nav-estimate {
  margin-left: 10px;
}

.nav-estimate .btn {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 15px !important;
  font-size: 14px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
}

.nav-estimate .btn:hover {
  background-color: #333333 !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  padding: 120px 0;
  position: relative;
  color: var(--white);
  text-align: center;
}

/* Overlay to darken background image if needed */

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-section h1 {
  color: var(--white);
  font-size: 70px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.heading-separator {
  margin: 20px 0;
  max-width: 231px;
}

.hero-section h2 {
  color: var(--white);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-stars {
  margin-top: 50px;
  max-width: 280px;
}

/* ==========================================================================
   Features Bar
   ========================================================================== */

.features-bar {
  padding: 40px 0;
  background-color: #171717;
  border-bottom: 1px solid #171717;
}

.features-bar h4 {
  margin: 0;
  font-size: 20px;
  color: #ffffff;
}

.features-bar .dot {
  color: var(--primary-color);
  margin: 0 10px;
}

/* ==========================================================================
   Intro Section
   ========================================================================== */

.intro-section {
  padding: 80px 0;
  background-color: var(--white);
}

.intro-section h2 {
  font-size: 32px;
  color: #333333;
}

.intro-section p a {
  color: inherit;
  font-weight: normal;
}

.intro-section p a[href^="tel:"] {
  color: var(--primary-color);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ==========================================================================
   CTA Band
   ========================================================================== */

.cta-band {
  background-color: #171717;
  padding: 30px 0;
}

.cta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-band h3 {
  color: var(--white);
  margin: 0;
}

/* ==========================================================================
   Services Overview
   ========================================================================== */

.services-overview {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.service-box {
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.service-box h3 {
  margin: 0;
  font-size: 26px;
  color: var(--white);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-section {
  padding: 80px 0;
  background-color: var(--white);
}

.testimonials-section h2 {
  color: #333333;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.testimonial-box {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 4px;
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1);
  color: #000000;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.testimonial-box p {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #000000;
}

.stars-img {
  max-width: 140px;
  margin: 0 auto;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.contact-section h3 {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 30px;
  color: #333333;
  padding-bottom: 10px;
}

.contact-section h2,
.contact-section h2 a {
  font-family: "Playfair Display", Georgia, "Times New Roman";
  font-size: 44px;
  color: #c40001;
  padding-bottom: 10px;
  text-decoration: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.contact-image img {
  max-width: 100%;
  border-radius: 4px;
}

.contact-form-container {
  background-color: transparent;
  padding: 20px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.contact-form-container p {
  text-align: center;
}

/* ==========================================================================
   Gallery Snippet Section
   ========================================================================== */

.gallery-snippet-section {
  padding: 60px 0;
  background-color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: var(--text-dark);
  color: var(--white);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 25px;
  font-family: var(--font-family);
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group input:hover,
.form-group textarea:focus,
.form-group textarea:hover,
.captcha-input:focus,
.captcha-input:hover {
  outline: none;
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
}

.captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.captcha-input {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  text-align: center;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-footer .btn-submit {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
}

.form-footer .btn-submit:hover {
  background-color: var(--text-dark);
}

.input-error {
  border: 1px solid #c40001 !important;
}

/* ==========================================================================
   SEO Section
   ========================================================================== */

.seo-section {
  padding: 80px 0;
  background-color: var(--white);
}

.seo-section a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: #222222;
  color: var(--white);
  padding-top: 60px;
}

.footer-widget p {
  line-height: 1.8;
  font-size: 14px;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widget h2 {
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--primary-color);
  font-size: 18px;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: disc;
  color: var(--primary-color);
  padding-left: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
}

.footer-links a:hover {
  color: #cccccc;
}

.footer-bottom {
  background-color: #00000052;
  padding: 20px 0;
  text-align: left;
}

.footer-bottom p {
  color: #666666;
  font-size: 16px;
  margin: 0;
}

/* Responsive additions */

/* Gallery Hover Effect */

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-plus {
  width: 50px;
  height: 50px;
  background-color: #c40001;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  line-height: 1;
}

.view-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
}

.gallery-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 14px;
}

.view-gallery-btn:hover {
  background-color: var(--primary-color);
  color: white;
  opacity: 0.9;
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

.contact-form-container {
  width: 80%;
  margin: 0 auto;
}

.form-submit-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.form-submit-wrapper .captcha-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.form-submit-wrapper span {
  font-size: 16px;
  color: #000;
}

.form-submit-wrapper input {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 16px;
  padding: 0;
}

.form-submit-wrapper button {
  background-color: #c00 !important;
  color: #fff !important;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  padding: 15px 30px;
  font-size: 18px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.captcha {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.captcha span {
  white-space: nowrap;
  font-size: 16px;
  color: #000;
}

.captcha-input-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 16px;
  padding: 0;
  box-sizing: border-box;
}

.gallery-item-hidden {
  display: none !important;
}

.load-more-container {
  text-align: center;
  margin-top: 40px;
  padding-bottom: 20px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (min-width: 993px) {
  .header-right {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .mobile-call-btn {
    display: inline-flex !important;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    align-items: center;
    gap: 6px;
    margin-right: 15px;
  }

  .mobile-call-btn:hover {
    color: var(--white);
  }

  .site-header {
    padding: 15px 0;
  }

  .header-container {
    position: static;
  }

  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
  }

  .mobile-nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #c40001 !important;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* Hamburger Animation */
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
  }

  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
  }

  /* Main Nav Mobile Styles */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 0;
    padding-top: 25px;
    padding-bottom: 20px;
    border-top: 1px solid #eee;

    display: none;
  }

  .main-nav.active {
    display: block !important;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-15px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav .nav-list>li {
    margin: 0;
    width: 100%;
  }

  .main-nav .nav-list>li>a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
  }

  .main-nav .nav-list>li>a:hover,
  .dropdown li a:hover {
    background-color: transparent !important;
  }

  .main-nav .nav-list>li.nav-estimate {
    margin-left: 0;
    padding: 15px 20px;
  }

  .main-nav .nav-list>li.nav-estimate>a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 15px !important;
    border-bottom: none !important;
  }

  .main-nav .nav-list>li.nav-cta {
    display: none !important;
  }

  /* Mobile Dropdown overrides */
  .has-dropdown:hover .dropdown {
    display: none;
  }

  .has-dropdown .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background-color: #fafafa;
    padding: 0;
    min-width: 100%;
  }

  .has-dropdown.active .dropdown {
    display: block !important;
  }

  .dropdown li a {
    padding: 10px 20px 10px 30px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    -webkit-tap-highlight-color: transparent;
  }

  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
    /* We'll add mobile nav logic later */
  }

  .mobile-nav-toggle {
    display: block;
  }

  .mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--link-color);
    margin: 5px 0;
  }

  .hero-section h1 {
    font-size: 40px;
  }

  .hero-section h2 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {

  .intro-section,
  .gallery-snippet-section {
    padding: 30px 0;
  }

  .cta-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .estimate-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  .estimate-grid .grid-item {
    padding: 20px 10px !important;
  }

  .estimate-grid .grid-item h4 {
    font-size: 14px !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-image {
    text-align: center;
  }

  .form-row {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-container {
    width: 100% !important;
  }

  .form-submit-wrapper {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 20px;
  }

  .form-submit-wrapper .captcha-container {
    justify-content: center;
  }

  .form-submit-wrapper button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .form-footer {
    flex-direction: column !important;
    width: 100%;
  }

  .form-footer .captcha {
    margin-bottom: 15px;
    justify-content: center;
  }

  .form-footer .btn-submit {
    width: 100%;
  }

  .contact-form-container div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .contact-form-container div[style*="display: flex"]>button {
    width: 100% !important;
    margin-top: 15px;
  }
}

/* Button Hover Overrides */
.estimate-form-container .btn-primary {
  background-color: var(--primary-color, #c00);
  transition: background-color 0.3s ease;
}

.estimate-form-container .btn-primary:hover {
  background-color: #a00000 !important;
}

.estimate-info-sidebar .btn {
  transition: all 0.3s ease;
}

.estimate-info-sidebar .btn:hover {
  background-color: #fff !important;
  color: #1a1a1a !important;
}