/* 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;
  --tp-common-yellow: #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;
}

/* Fix currency toggle link colors on light backgrounds (inner pages and sticky headers) */
.tp-header-inner-style .tp-header-lang a,
.sticky-white-bg .tp-header-lang a {
  color: rgba(0, 0, 0, 0.6) !important;
}

.tp-header-inner-style .tp-header-lang a.active,
.tp-header-inner-style .tp-header-lang a:hover,
.sticky-white-bg .tp-header-lang a.active,
.sticky-white-bg .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;
}

/* --- Footer Large Copyright Text Size & Wrapping Overrides --- */
.tp-copyright-big-text {
  white-space: nowrap !important;
}

@media (min-width: 1700px) {
  .tp-copyright-big-text {
    font-size: 130px !important;
    letter-spacing: -6px !important;
  }
}

@media (min-width: 1400px) and (max-width: 1699px) {
  .tp-copyright-big-text {
    font-size: 110px !important;
    letter-spacing: -5px !important;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .tp-copyright-big-text {
    font-size: 90px !important;
    letter-spacing: -4px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .tp-copyright-big-text {
    font-size: 70px !important;
    letter-spacing: -3px !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .tp-copyright-big-text {
    font-size: 55px !important;
    letter-spacing: -2px !important;
  }
}

@media (max-width: 767px) {
  .tp-copyright-big-text {
    font-size: 38px !important;
    letter-spacing: -1px !important;
    white-space: normal !important; /* Allow wrapping on very small screens to avoid horizontal scrollbars */
  }
}

/* --- Footer Bottom Copyright & Links Alignment --- */
@media (min-width: 992px) {
  .tp-copyright-bottom {
    margin-top: 35px !important; /* Push below the massive text */
    padding-bottom: 45px !important;
  }
  .tp-copyright-left {
    padding-left: 0 !important; /* Align flush left with container edge */
  }
  .tp-copyright-right {
    padding-right: 0 !important; /* Align flush right with container edge */
  }
  .tp-copyright-right a:not(:first-child) {
    margin-left: 40px !important; /* Standard professional link spacing */
  }
}

/* --- Footer Rotatable Star Icon Color (Branded Red) --- */
.tp-copyright-img {
  filter: invert(24%) sepia(98%) saturate(5796%) hue-rotate(351deg) brightness(101%) contrast(108%) !important;
  opacity: 1 !important; /* Make the red color vibrant and clearly visible */
}

/* --- Contact Form Inputs Visibility Overrides --- */
.tp-contact-form-input input, 
.tp-contact-form-input textarea,
.postbox-details-input input,
.postbox-details-input textarea {
  background-color: #FBFBFC !important;
  border: 1.5px solid #D2D2D7 !important; /* Premium visible gray border */
  color: #1D1D1F !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  padding: 12px 18px !important;
  transition: all 0.2s ease-in-out !important;
}

/* Ensure placeholder texts are also clean and readable */
.tp-contact-form-input input::placeholder, 
.tp-contact-form-input textarea::placeholder,
.postbox-details-input input::placeholder,
.postbox-details-input textarea::placeholder {
  color: #86868B !important;
  opacity: 1 !important;
}

.tp-contact-form-input input:focus, 
.tp-contact-form-input textarea:focus,
.postbox-details-input input:focus,
.postbox-details-input textarea:focus {
  background-color: #FFFFFF !important;
  border-color: #FF2D2D !important; /* Accent brand red focus border */
  box-shadow: 0 0 0 4px rgba(255, 45, 45, 0.15) !important;
  outline: none !important;
}

/* --- Disable Custom Magic Cursor (Pointer Dot/Trail) --- */
#magic-cursor {
  display: none !important;
}

/* --- Premium Full White pulsing Preloader --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-inner {
  text-align: center;
  position: relative;
}

.preloader-logo img {
  width: 150px;
  height: auto;
  animation: preloaderPulse 1.8s infinite ease-in-out;
}

/* Premium pulse animation */
@keyframes preloaderPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
}

/* --- Fix Navbar Logo Flash / Layout Shifts on Load --- */
.tp-header-logo img,
.tp-offcanvas-logo img {
  width: 120px !important;
  height: auto !important;
}
/* --- Ziply Custom Asymmetric Showcase Layout --- */
.badge-red-outline {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #FF2D2D;
  border: 1px solid #FF2D2D;
  border-radius: 4px;
  padding: 4px 10px;
  margin-right: 6px;
  margin-bottom: 8px;
  transition: all 0.2s ease-in-out;
}

.badge-red-outline:hover {
  background-color: #FF2D2D;
  color: #FFFFFF;
}

.ziply-custom-content {
  padding-right: 30px;
}

.ziply-custom-thumb img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

@media (max-width: 991px) {
  .ziply-custom-content {
    padding-right: 0;
    padding-left: 0 !important;
    margin-top: 30px;
  }
}

/* --- Premium Tab Styling for Pricing Page --- */
.ai-price-tab-custom ul {
  display: inline-flex;
  padding: 6px;
  border-radius: 40px;
  background: #1a1b1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.ai-price-tab-custom ul li {
  display: inline-block;
}

.ai-price-tab-custom ul li button {
  padding: 9px 30px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6) !important;
  border: none;
  background: transparent;
  border-radius: 40px;
  transition: all 0.3s ease-in-out;
}

.ai-price-tab-custom ul li button.active {
  background: var(--tp-common-white) !important;
  color: var(--tp-common-black) !important;
}

.ai-price-tab-custom ul li button:hover:not(.active) {
  color: var(--tp-common-white) !important;
}

/* --- Premium Red Theme Overrides for Gradient Buttons --- */
.tp-btn-gradient {
  background: linear-gradient(230deg, #FF5C5C 0%, #FF2D2D 50%, #B30000 100%) !important;
  color: var(--tp-common-white) !important;
  border: none !important;
}

.tp-btn-gradient:hover {
  background: linear-gradient(230deg, #FF7575 0%, #FF4D4D 50%, #D60000 100%) !important;
  color: var(--tp-common-white) !important;
  border: none !important;
}




