/* ========================================
   HOMEPAGE SPECIFIC STYLES
   Capital Tuckpointing - index.html
   ======================================== */

/* ========================================
   HOMEPAGE HERO OVERRIDES
   ======================================== */

.hero-content::before {
  content: 'RESIDENTIAL & COMMERCIAL TUCKPOINTING SERVICES';
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* ========================================
   HOMEPAGE CONTENT LAYOUT
   ======================================== */

.content-columns {
  display: flex;
  gap: 40px;
  align-items: stretch;
  justify-content: center;
}

.left-column,
.right-column {
  flex: 1 1 0;
  min-width: 0;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  background: #f8f8f8;
  border-radius: 16px;
  padding: 40px 20px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(42, 63, 80, 0.08);
}

@media (max-width: 1024px) {
  .content-columns {
    flex-direction: column;
    gap: 0;
  }
  .left-column,
  .right-column {
    max-width: 100%;
    margin-bottom: 30px;
  }
}

/* ========================================
   HOMEPAGE PHONE SECTION
   ======================================== */

.main-phone-box {
  background-color: #2a3f50;
  border-radius: 16px;
  padding: 36px 24px 28px 24px;
  margin: 40px 0 0 0;
  text-align: center;
}

.main-phone-label {
  color: #f8f8f8;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.main-phone-number {
  text-align: center;
  margin: 0;
}

.main-phone-number a {
  color: #e6a832;
  text-decoration: none;
  font-weight: 700;
  font-size: 2.2rem;
  transition: color 0.2s, transform 0.2s;
}

.main-phone-number a:hover {
  color: #ffd34e;
  transform: scale(1.08);
}

/* ========================================
   HOMEPAGE SERVICES CAROUSEL SECTION
   ======================================== */

.services-section {
  background-color: #f8f8f8;
  padding: 60px 0;
  margin: 40px 0;
  border-radius: 10px;
}

.services-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #c6402d;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.services-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2a3f50;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

/* Carousel Container */
.services-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Desktop: Keep arrows outside content area */
@media (min-width: 1025px) {
  .services-carousel-container {
    padding: 0 90px; /* More padding for desktop arrows */
  }

  .carousel-navigation {
    left: 20px;
    right: 20px;
  }
}

.services-carousel {
  overflow: hidden;
  border-radius: 15px;
}

.services-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 30px;
}

/* Flip Cards */
.service-flip-card {
  flex: 0 0 auto;
  width: calc(33.333% - 20px);
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  border-radius: 15px;
}

.service-flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(42, 63, 80, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.flip-card-front {
  background: transparent;
  transform: rotateY(0deg);
}

.flip-card-back {
  background: linear-gradient(135deg, #c6402d 0%, #e6a832 100%);
  color: white;
  transform: rotateY(180deg);
  padding: 30px;
  justify-content: center;
  align-items: center;
  text-align: center;
  top: 0;
  left: 0;
}

/* Card Image - Full Height Background (only for front face) */
.flip-card-front .card-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 15px;
  z-index: 1;
}

.flip-card-front .card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
  border-radius: 15px;
}

/* Card Front Layout - Title Overlay */
.flip-card-front {
  position: relative;
  overflow: hidden;
}

.flip-card-front h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  padding: 25px 30px;
  letter-spacing: 0.3px;
  text-align: center;
  background: rgba(0, 0, 0, 0.75);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  z-index: 2;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  max-width: 80%;
}

/* Card Back Text */
.flip-card-back h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.flip-card-back p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Carousel Navigation */
.carousel-navigation {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: -10px;
  right: -10px;
  transform: translateY(-50%);
  padding: 0;
  pointer-events: none;
}

.carousel-btn {
  background: rgba(198, 64, 45, 0.9);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow: 0 4px 15px rgba(42, 63, 80, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: #c6402d;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(42, 63, 80, 0.3);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #c6402d;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: #c6402d;
  transform: scale(1.2);
}

/* ========================================
   HOMEPAGE DIFFERENCE SECTION
   ======================================== */

.difference-section {
  background-color: #ffffff;
  padding: 60px 0;
  margin: 40px 0;
  border-radius: 10px;
}

.difference-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #c6402d;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.difference-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.difference-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2a3f50;
  margin-bottom: 25px;
  text-align: left;
}

.difference-text p:last-child {
  margin-bottom: 0;
  text-align: center;
}

.difference-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.difference-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(42, 63, 80, 0.15);
}

.difference-text-last {
  grid-column: 1 / -1;
  margin-top: 30px;
  text-align: center;
}

/* ========================================
   HOMEPAGE FREE ESTIMATE SECTION
   ======================================== */

.free-estimate-section {
  background-color: #ffffff;
  padding: 60px 0;
  margin: 40px 0;
  border-radius: 10px;
}

.free-estimate-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #c6402d;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.free-estimate-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.free-estimate-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2a3f50;
  text-align: center;
  margin-bottom: 25px;
}

.free-estimate-content p:last-child {
  margin-bottom: 30px;
  font-weight: 500;
}

.free-estimate-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Hover style for the "Call Now" text link */
.free-estimate-content a[href^='tel:'] {
  transition: color 0.2s ease;
}

.free-estimate-content a[href^='tel:']:hover {
  color: #000 !important;
  text-decoration: underline !important;
}

/* ========================================
   HOMEPAGE PHONE SECTION
   ======================================== */

.phone-section {
  text-align: center;
  margin: 50px 0;
  padding: 30px;
  background-color: #2a3f50;
  border-radius: 10px;
}

.phone-label {
  color: #f8f8f8;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.phone-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #e6a832;
  letter-spacing: 2px;
}

.phone-number a {
  color: #e6a832;
  text-decoration: none;
  font-weight: 700;
  font-size: 2.2rem;
  transition: color 0.2s, transform 0.2s;
}

.phone-number a:hover {
  color: #ffd34e;
  transform: scale(1.08);
}

/* ========================================
   HOMEPAGE CONTACT SECTION
   ======================================== */

.contact-section {
  background-color: #f8f8f8;
  padding: 50px 0;
  margin: 40px 0;
  border-radius: 10px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-title {
  font-size: 2rem;
  color: #2a3f50;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

/* ========================================
   HOMEPAGE TAGLINE
   ======================================== */

.tagline {
  font-size: 1.3rem;
  font-style: italic;
  color: #c6402d;
  text-align: center;
  margin: 40px 0;
  font-weight: 500;
}

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

/* Tablet View - 2 cards */
@media (max-width: 1024px) {
  .service-flip-card {
    width: calc(50% - 15px);
  }

  .services-carousel-container {
    padding: 0 60px; /* Add padding to accommodate arrows */
  }

  .carousel-navigation {
    left: 10px;
    right: 10px;
  }

  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 40px 0;
    margin: 30px 0;
  }

  .services-title {
    font-size: 2rem;
    margin-bottom: 25px;
  }

  .services-intro {
    font-size: 1rem;
    margin-bottom: 40px;
    padding: 0 15px;
  }

  /* Mobile View - 1 card */
  .service-flip-card {
    width: 100%;
    height: 350px;
  }

  .services-track {
    gap: 20px;
  }

  .services-carousel-container {
    padding: 0 50px; /* Add padding to accommodate arrows */
  }

  .flip-card-front h3 {
    font-size: 1.2rem;
    padding: 20px 25px;
    max-width: 85%;
  }

  .flip-card-back h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .flip-card-back p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-navigation {
    left: 5px;
    right: 5px;
  }

  .flip-card-back {
    padding: 20px;
  }

  .difference-section {
    padding: 40px 0;
    margin: 30px 0;
  }

  .difference-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .difference-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }

  .difference-text p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .difference-image {
    height: 300px;
  }

  .free-estimate-section {
    padding: 40px 0;
    margin: 30px 0;
  }

  .free-estimate-title {
    font-size: 2rem;
    margin-bottom: 25px;
  }

  .free-estimate-content {
    padding: 0 15px;
  }

  .free-estimate-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .free-estimate-cta-buttons {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .cta-button,
  .cta-button-secondary {
    font-size: 1rem;
    padding: 16px 25px;
  }

  .intro-text {
    font-size: 1rem;
    padding: 0 10px;
  }

  .tagline {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .phone-number {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .main-content,
  .contact-section {
    padding: 30px 20px;
    margin: 20px 0;
  }

  .phone-section {
    padding: 20px;
    margin: 30px 0;
  }

  .form-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .services-title {
    font-size: 1.7rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .service-card {
    padding: 20px;
    text-align: center;
  }

  .difference-title {
    font-size: 1.7rem;
  }

  .difference-content {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 10px;
  }

  .difference-image {
    height: 250px;
  }

  .free-estimate-title {
    font-size: 1.7rem;
  }

  .free-estimate-content {
    padding: 0 10px;
  }

  .phone-number {
    font-size: 1.5rem;
  }
}
