/* PETHRAX Custom Apple-Style Light Premium Theme Overrides */

:root {
  /* Override template color variables to Pethrax premium red */
  --tp-theme-green: #FF2D2D !important;
  --tp-theme-pink: #FF2D2D !important;
  --tp-theme-yellow: #FF2D2D !important;
  --tp-common-red: #FF2D2D !important;
  --tp-common-red-2: #FF2D2D !important;
  --tp-common-red-3: #FF2D2D !important;
  --tp-common-sky: #FF2D2D !important;
  --tp-common-yellow-green: #FF2D2D !important;
  --tp-common-green-regular: #FF2D2D !important;
  --tp-common-green-light: #FF2D2D !important;
}

/* --- Horizontal Layout Breathing Space Overrides --- */
@media (min-width: 1400px) {
  .container, 
  .container-lg, 
  .container-md, 
  .container-sm, 
  .container-xl, 
  .container-xxl {
    max-width: 1320px !important;
  }
  /* Narrow down wide containers to create side margins/breathing space */
  .container-1750 {
    max-width: 1380px !important;
  }
  .container-1800 {
    max-width: 1420px !important;
  }
  .container-1830 {
    max-width: 1450px !important;
  }
}

/* --- Header Navigation Spacing Overrides for Responsiveness --- */
@media (min-width: 1200px) {
  .tp-header-menu > nav > ul > li {
    margin: 0 12px !important; /* Reduce margins to fit 9 items in one row */
  }
  .tp-header-menu > nav > ul > li > a {
    font-size: 15px !important; /* Slightly smaller text size */
    padding: 30px 0 !important;
  }
  .tp-header-btn-box {
    margin-left: 15px !important; /* Fit languages and start button */
  }
}

/* --- Hero Title Responsive Scaling Overrides --- */
.tp-hero-title {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}

@media (min-width: 1700px) {
  .tp-hero-title {
    font-size: 170px !important; /* Scale down from 220px to prevent wrapping in container-1380 */
  }
}

@media (min-width: 1400px) and (max-width: 1699px) {
  .tp-hero-title {
    font-size: 140px !important; /* Scale down from 160px/180px */
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .tp-hero-title {
    font-size: 110px !important; /* Scale down from 120px */
  }
}

/* --- Hero Sidebar Testimonial Layout Overrides --- */
@media (min-width: 1200px) {
  /* Prevent vertical overlap by adding bottom margin to the text block */
  .tp-hero-info {
    margin-bottom: 60px !important;
  }
  
  /* Align the testimonial card wrapper to the right of the column to prevent line overlap */
  .tp-hero-more-info-wrap {
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}



/* --- Link and Accent Colors --- */
a:hover {
  color: #FF2D2D !important;
}

.tp-header-lang a.active,
.tp-header-lang a:hover {
  color: #FF2D2D !important;
}

/* --- Buttons and Interactive Hovers --- */
.tp-btn:hover {
  background-color: #FF2D2D !important;
  border-color: #FF2D2D !important;
  color: #FFFFFF !important;
}

/* Fix gooey buttons hover so they retain their rounded fluid shape instead of showing a red rectangle */
.tp-btn-black:hover .tp-btn-black-text,
.tp-btn-black:hover .tp-btn-black-circle {
  background-color: #FF2D2D !important;
}

/* Red CTA Button (Header & Main CTAs) */
.tp-btn-black.btn-red-bg .tp-btn-black-text {
  background-color: #FF2D2D !important;
  color: #FFFFFF !important;
}
.tp-btn-black.btn-red-bg .tp-btn-black-circle {
  background: #FF2D2D !important;
}
.tp-btn-black.btn-red-bg .tp-btn-black-circle svg {
  color: #FFFFFF !important;
}

/* Apple-style Premium Red Hover Transitions */
.tp-btn-black.btn-red-bg:hover .tp-btn-black-text,
.tp-btn-black.btn-red-bg:hover .tp-btn-black-circle {
  background-color: #E50914 !important;
}

/* Scroll-to-top button */
.back-to-top-btn {
  background-color: #FF2D2D !important;
  color: #FFFFFF !important;
  border-color: #FF2D2D !important;
}
.back-to-top-btn:hover {
  background-color: #E50914 !important;
  border-color: #E50914 !important;
}

/* --- Hover Highlight Overrides --- */
.tp-service-item:hover,
.tp-service-3-item:hover {
  border-color: #FF2D2D !important;
}

.tp-service-category span:hover,
.tp-project-category span:hover {
  background-color: #FF2D2D !important;
  border-color: #FF2D2D !important;
  color: #FFFFFF !important;
}

/* --- Testimonial Card Centering --- */
.tp-hero-more-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  padding: 30px 20px 65px 20px !important;
  box-sizing: border-box !important;
}

.tp-hero-more-info p {
  padding: 0 !important;
  margin-bottom: 20px !important;
  text-align: center !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
}

.tp-hero-link {
  padding: 0 !important;
  text-align: center !important;
  width: 100% !important;
}

.tp-hero-link a {
  display: inline-block !important;
}

/* Fix footer link text color on hover (avoid invisible text on red backgrounds) */
.tp-footer-widget-menu ul li a:hover,
.tp-footer-widget-social a:hover {
  color: #FFFFFF !important;
}
