/*
Theme Name: Isaac Recovery
Theme URI: 
Author: Antigravity
Author URI: 
Description: A mobile-first, highly-optimized WordPress theme for Isaac Recovery, featuring glassmorphism, emergency UX, and high conversion design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: isaac-recovery
Tags: mobile-first, full-site-editing, custom-colors, custom-menu, featured-images, flexible-header, translation-ready

Isaac Recovery Theme
*/

/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #F5B900;
  /* Brand Action Yellow */
  --color-secondary: #ffcc00;
  /* Lighter Accent Yellow */
  --color-bg: #FFFFFF;
  /* White for content blocks */
  --color-text: #333333;
  /* Dark Gray for readable text */
  --color-cta: #F5B900;
  /* Button Action Yellow */
  --color-white: #ffffff;
  --color-dark: #1a1a1a;
  /* Almost Black Backgrounds */

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --glass-blur: blur(10px);

  /* Typography */
  --font-main: 'Figtree', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --mobile-bar-height: 70px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  padding-bottom: var(--mobile-bar-height);
  /* For mobile sticky bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
    /* Remove padding when desktop */
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  font-weight: 700;
  margin-top: 0;
  color: var(--color-dark);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Home - Hero Section (Modern Black & Yellow)
   ========================================================================== */
.hero-modern {
  position: relative;
  background-image: url('assets/images/placeholder-towing.jpg');
  /* User should replace this with real image */
  background-size: cover;
  background-position: center;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 160px 0 180px;
  /* Extra bottom padding for overlap */
  text-align: center;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  /* Darker smooth transparent layer */
  z-index: 1;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: 0;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-title span {
  color: var(--color-primary);
  font-weight: 800;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

.btn-hero-primary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  padding: 15px 40px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-hero-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-dark);
}

.btn-hero-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  font-size: clamp(0.75rem, 3.5vw, 1.1rem);
  font-weight: 800;
  padding: 12px 20px;
  margin-bottom: 20px;
  color: var(--color-dark) !important;
  white-space: nowrap;
  max-width: 100%;
}

.btn-hero-whatsapp svg {
  width: clamp(18px, 5vw, 24px);
  height: clamp(18px, 5vw, 24px);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .btn-hero-whatsapp {
    padding: 15px 35px;
    gap: 10px;
  }
}

/* Overlapping Contact Ribbon */
.hero-contact-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.ribbon-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  flex: 1;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ribbon-yellow {
  background-color: var(--color-primary);
  color: var(--color-dark);
}

.ribbon-dark {
  background-color: #151515;
  color: var(--color-primary);
}

.ribbon-icon {
  font-size: 24px;
  margin-right: 12px;
  display: flex;
}

.ribbon-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ribbon-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 2px;
}

.ribbon-value {
  font-size: 15px;
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-contact-ribbon {
    flex-direction: row;
  }

  .ribbon-item {
    padding: 25px 20px;
  }

  .ribbon-icon {
    font-size: 32px;
    margin-right: 15px;
  }

  .ribbon-label {
    font-size: 13px;
  }

  .ribbon-value {
    font-size: 18px;
  }

  .ribbon-left {
    clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
  }

  .ribbon-center {
    clip-path: polygon(30px 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
    margin-left: -30px;
  }

  .ribbon-right {
    clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -30px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--color-cta);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(220, 88, 42, 0.4);
}

.btn-primary:hover {
  background-color: #c94c21;
  /* Slightly darker */
  box-shadow: 0 6px 20px rgba(220, 88, 42, 0.6);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   Header (Glassmorphism)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: var(--container-width);
  height: var(--header-height);
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  border-radius: 40px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: rgba(26, 26, 26, 0.98);
}

@media (min-width: 768px) {
  .site-header {
    top: 20px;
    padding: 0 30px;
  }
}

.desktop-split-header {
  display: none;
}

@media (min-width: 992px) {
  .desktop-split-header {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
  }

  .absolute-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }

  .single-menu-centered {
    width: 100%;
  }

  .single-menu-centered ul,
  .single-menu-centered div>ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  /* Create a gap in the center for the logo by pushing the 4th item away from the 3rd */
  .single-menu-centered ul>li:nth-child(3) {
    margin-right: 220px;
  }

  .single-menu-centered ul li a {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .single-menu-centered ul li a:hover {
    color: var(--color-primary);
  }
}

.header-logo a {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo svg {
  height: 50px;
  width: auto;
  color: var(--color-primary);
}

.header-logo img {
  height: 50px;
  width: auto;
}

/* Mobile Layout */
.mobile-header-panel {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

/* Desktop Layout Hidden by Default */
.desktop-split-header {
  display: none;
}

/* Mobile Menu Icon */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--color-primary);
}

.mobile-menu-toggle svg {
  width: 30px;
  height: 30px;
}

/* ==========================================================================
   Mobile Menu Overlay
   ========================================================================== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 26, 26, 0.98);
  /* Dark glass */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-in-out;
}

.mobile-menu-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

.mobile-menu-overlay .close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.3s ease;
}

.mobile-menu-overlay .close-btn:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--color-cta);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  width: 100%;
}

.mobile-nav-list li {
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu-overlay.active .mobile-nav-list li {
  animation: slideUpFadeIn 0.5s ease forwards;
}

/* Stagger animations for list items */
.mobile-menu-overlay.active .mobile-nav-list li:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav-list li:nth-child(2) {
  animation-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-nav-list li:nth-child(3) {
  animation-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-nav-list li:nth-child(4) {
  animation-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-nav-list li:nth-child(5) {
  animation-delay: 0.5s;
}

.mobile-menu-overlay.active .mobile-nav-list li:nth-child(6) {
  animation-delay: 0.6s;
}

.mobile-nav-list a {
  display: inline-block;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  color: var(--color-white);
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-list a:hover {
  color: var(--color-cta);
  transform: scale(1.05);
}

.mobile-menu-contact {
  margin-top: 50px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu-overlay.active .mobile-menu-contact {
  animation: slideUpFadeIn 0.5s ease forwards 0.5s;
}

.mobile-menu-contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop Menu */
.desktop-menu {
  display: none;
}

@media (min-width: 992px) {
  .mobile-header-panel {
    display: none;
    /* Hide mobile toggles and mobile logo */
  }

  .desktop-split-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .center-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }

  .desktop-menu {
    display: block;
    flex: 1;
    /* allow menus to take up space equally */
  }

  .desktop-menu-left ul {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: flex-end;
    /* Align right towards the logo */
    margin: 0;
    padding: 0;
    list-style: none;
    padding-right: 50px;
    /* Space from center logo */
  }

  .desktop-menu-right ul {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: flex-start;
    /* Align left towards the logo */
    margin: 0;
    padding: 0;
    list-style: none;
    padding-left: 50px;
    /* Space from center logo */
  }

  .desktop-menu a {
    color: var(--color-white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
  }

  .desktop-menu a:hover {
    color: var(--color-cta);
  }

  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ==========================================================================
   Mobile Bottom Bar (Sticky)
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--mobile-bar-height);
  background: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.mobile-bottom-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  flex: 1;
}

.mobile-bottom-bar a svg {
  width: 24px;
  height: 24px;
  color: var(--color-secondary);
}

.mobile-bottom-bar a.active {
  color: var(--color-primary);
}

.mobile-bottom-bar a.active svg {
  color: var(--color-primary);
}

.mobile-bottom-bar .whatsapp-link {
  position: relative;
  top: -20px;
  background-color: var(--color-cta);
  color: var(--color-dark);
  border-radius: 50%;
  width: 65px;
  height: 65px;
  max-width: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(245, 185, 0, 0.4);
  border: 4px solid var(--color-bg);
  flex: none;
  z-index: 1000;
  margin: 0 auto;
}

.mobile-bottom-bar .whatsapp-link svg {
  color: var(--color-dark);
  width: 30px;
  height: 30px;
}

.mobile-bottom-bar .whatsapp-link span {
  /* hide text if any, or size it */
  display: none;
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 4rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.mt-5 {
  margin-top: 5rem;
}

.mb-5 {
  margin-bottom: 5rem;
}

.section-padding {
  padding: 80px 0;
}

@media (max-width: 767px) {
  .section-padding {
    padding: 50px 0;
  }
}

/* ==========================================================================
   WhatsApp Fast Form Modal Styles
   ========================================================================== */
.wa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wa-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.wa-modal-container {
  background: var(--color-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 30px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  color: #fff;
  max-height: 90vh;
  overflow-y: auto;
}

.wa-modal-overlay.active .wa-modal-container {
  transform: translateY(0);
}

.wa-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-modal-close:hover {
  background: #ff4444;
  color: #fff;
}

.wa-modal-header h3 {
  margin-top: 0;
  color: #25D366;
  /* WhatsApp Green */
  font-size: 1.4rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.wa-modal-header p {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 20px;
}

.wa-form-row {
  display: flex;
  gap: 15px;
}

.wa-form-row .wa-form-group {
  flex: 1;
}

.wa-form-group {
  margin-bottom: 15px;
}

.wa-form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 5px;
  color: #ccc;
  font-weight: 500;
}

.wa-form-group input,
.wa-form-group select {
  width: 100%;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.wa-form-group input:focus,
.wa-form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.wa-form-group select option {
  background: var(--color-dark);
  color: #fff;
}

.wa-submit-btn {
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  margin-top: 10px;
}

.wa-submit-btn:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .wa-form-row {
    flex-direction: column;
    gap: 0;
  }
}