/* ============================================
   TAKE CARE OF MY - Additional Component Styles
   Version: 1.2 - QUICK WINS UPDATE
   Add to tcom-master-styles.css or load separately
============================================ */

/* ============================================
   FAQ ACCORDION
============================================ */
.tcom-faq {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tcom-faq__item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.tcom-faq__item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tcom-faq__item.active {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tcom-faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1A365D;
  text-align: left;
  transition: color 0.2s ease;
  min-height: 60px;
}

.tcom-faq__question:hover {
  color: #00A3B4;
}

.tcom-faq__question span:first-child {
  flex: 1;
  padding-right: 1rem;
}

.tcom-faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  color: #00A3B4;
  transition: transform 0.3s ease;
}

.tcom-faq__item.active .tcom-faq__icon {
  transform: rotate(45deg);
}

.tcom-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.tcom-faq__answer p {
  padding: 0 1.5rem 1.5rem;
  color: #4A5568;
  line-height: 1.7;
  margin: 0;
}

.tcom-faq__answer p:first-child {
  padding-top: 0;
  border-top: 1px solid #E5E5E5;
  margin-top: 0;
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .tcom-faq__question {
    font-size: 1rem;
    padding: 1rem;
    min-height: 52px;
  }
  
  .tcom-faq__answer p {
    padding: 0 1rem 1rem;
    font-size: 0.9375rem;
  }
}

/* ============================================
   BREADCRUMBS
============================================ */
.tcom-breadcrumbs {
  padding: 0.5rem 0;
}

.tcom-breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.tcom-breadcrumbs__item {
  display: flex;
  align-items: center;
  color: #4A5568;
}

.tcom-breadcrumbs__item:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: #4A5568;
}

.tcom-breadcrumbs__item a {
  color: #4A5568;
  text-decoration: none;
  transition: color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.tcom-breadcrumbs__item a:hover {
  color: #00A3B4;
}

.tcom-breadcrumbs__item--current {
  color: #1A365D;
  font-weight: 500;
}

/* ============================================
   BACK TO TOP BUTTON
============================================ */
.tcom-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #00A3B4;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.tcom-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tcom-back-to-top:hover {
  background: #008C9E;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .tcom-back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

/* ============================================
   MOBILE MENU HAMBURGER
============================================ */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  min-height: 44px;
  justify-content: center;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #1A365D;
  transition: all 0.3s ease;
}

.tcom-header__mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.tcom-header__mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.tcom-header__mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* Mobile nav item for mobile only */
.tcom-header__nav-item--mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .tcom-header__nav-item--mobile-only {
    display: block;
  }
}

/* ============================================
   MODAL STYLES
============================================ */
.tcom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.tcom-modal.active {
  opacity: 1;
  visibility: visible;
}

.tcom-modal__content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.tcom-modal.active .tcom-modal__content {
  transform: scale(1);
}

.tcom-modal__header {
  padding: 1.5rem;
  border-bottom: 1px solid #E5E5E5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tcom-modal__title {
  font-size: 1.5rem;
  margin: 0;
}

.tcom-modal__close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #4A5568;
  transition: color 0.2s ease;
  padding: 0;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tcom-modal__close:hover {
  color: #1A365D;
}

.tcom-modal__body {
  padding: 1.5rem;
}

.tcom-modal__footer {
  padding: 1.5rem;
  border-top: 1px solid #E5E5E5;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Body scroll lock when modal open */
body.modal-open {
  overflow: hidden;
}

/* ============================================
   TAB COMPONENT
============================================ */
.tcom-tabs {
  width: 100%;
}

.tcom-tabs__nav {
  display: flex;
  border-bottom: 2px solid #E5E5E5;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tcom-tabs__tab {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #4A5568;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  min-height: 48px;
}

.tcom-tabs__tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.tcom-tabs__tab:hover {
  color: #1A365D;
}

.tcom-tabs__tab.active {
  color: #00A3B4;
}

.tcom-tabs__tab.active::after {
  background: #00A3B4;
}

.tcom-tabs__panel {
  padding: 1.5rem 0;
}

.tcom-tabs__panel[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .tcom-tabs__tab {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    min-height: 44px;
  }
}

/* ============================================
   ANIMATION READY STATES
============================================ */
.animate-ready {
  opacity: 0;
  transform: translateY(20px);
}

.animate-ready.animated {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

.animate-ready.animated.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-ready.animated.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

/* ============================================
   HEADER SCROLLED STATE
============================================ */
.tcom-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.tcom-header.header-hidden {
  transform: translateY(-100%);
}

/* ============================================
   BODY NAV OPEN (Mobile)
============================================ */
body.nav-open {
  overflow: hidden;
}

/* ============================================
   FORM SUCCESS/ERROR STATES
============================================ */
.tcom-form__success {
  background: #E6FFED;
  border: 1px solid #00D084;
  color: #155724;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.tcom-form__error-message {
  background: #FFF5F5;
  border: 1px solid #FF6B35;
  color: #C53030;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* ============================================
   LOADING SPINNER
============================================ */
.tcom-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #E5E5E5;
  border-top-color: #00A3B4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   BLOG SINGLE POST STYLES
============================================ */
.tcom-blog-single__content blockquote {
  border-left: 4px solid #00A3B4;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #4A5568;
}

.tcom-blog-single__content pre {
  background: #F7FAFC;
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.tcom-blog-single__content code {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
  background: #F7FAFC;
  padding: 2px 6px;
  border-radius: 3px;
}

.tcom-blog-single__content pre code {
  background: none;
  padding: 0;
}

.tcom-blog-single__content img {
  border-radius: 6px;
  margin: 1.5rem 0;
}

/* ============================================
   HOMEPAGE-SPECIFIC STYLES
============================================ */

/* CSS Variables for Homepage */
:root {
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --tcom-deep-blue: #1A365D;
  --tcom-trust-teal: #00A3B4;
  --tcom-light-teal: #E6F7F9;
  --tcom-success-green: #00D084;
  --tcom-innovation-orange: #FF6B35;
  --tcom-neutral-gray: #4A5568;
  --tcom-bg-light: #F7FAFC;
}

/* Homepage Container Styles */
.tcom-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tcom-container--narrow {
  max-width: 900px;
}

.tcom-section {
  padding: 5rem 0;
}

.tcom-section--tint {
  background-color: var(--tcom-bg-light);
}

.tcom-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.tcom-section__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tcom-deep-blue);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.tcom-section__subtitle {
  font-size: 1.25rem;
  color: var(--tcom-neutral-gray);
}

/* Homepage Grid System */
.tcom-grid {
  display: grid;
  gap: 2rem;
}

.tcom-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.tcom-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.tcom-grid--4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 280px));
  gap: 2rem;
  justify-content: center;
}

/* Homepage Card Styles */
.tcom-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.tcom-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tcom-deep-blue);
  margin-bottom: 1rem;
}

.tcom-card__text {
  color: var(--tcom-neutral-gray);
  line-height: 1.6;
}

/* Homepage Button Styles */
.tcom-btn--full {
  width: 100%;
}

.tcom-btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  min-height: 44px;
}

.tcom-btn--ghost {
  background-color: transparent;
  color: var(--tcom-trust-teal);
  border: 2px solid var(--tcom-trust-teal);
}

.tcom-btn--ghost:hover {
  background-color: var(--tcom-deep-blue);
  color: white;
  border-color: var(--tcom-deep-blue);
}

/* Additional Button Hover Effects for Inline Styled Buttons */
a[style*="background: #666"]:hover,
a[style*="background:#666"]:hover {
  background: #888 !important;
}

a[style*="background: #00A3B4"]:hover,
a[style*="background:#00A3B4"]:hover,
button:hover {
  background: #008a9a !important;
  opacity: 1 !important;
}

/* Simple FAQ Styles for Homepage */
.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #4A5568;
  line-height: 1.6;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */

@media (max-width: 1024px) {
  .tcom-container {
    padding: 0 1.5rem;
  }
  
  .tcom-section {
    padding: 3.5rem 0;
  }
  
  .tcom-section__title {
    font-size: 2.125rem;
  }
  
  .tcom-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tcom-container {
    padding: 0 1rem;
  }
  
  .tcom-section {
    padding: 2.5rem 0;
  }
  
  .tcom-section__header {
    margin-bottom: 2rem;
  }
  
  .tcom-section__title {
    font-size: 1.75rem;
  }
  
  .tcom-section__subtitle {
    font-size: 1rem;
  }
  
  .tcom-card {
    padding: 1.5rem;
  }
  
  .tcom-card__title {
    font-size: 1.25rem;
  }
  
  .tcom-grid--2,
  .tcom-grid--3,
  .tcom-grid--4 {
    grid-template-columns: 1fr !important;
  }
  
  .tcom-faq__question {
    font-size: 1rem;
    padding: 1rem;
  }
  
  .tcom-faq__answer p {
    padding: 0 1rem 1rem;
  }
  
  .tcom-back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
  
  .tcom-tabs__nav {
    -webkit-overflow-scrolling: touch;
  }
  
  .tcom-tabs__tab {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.9375rem;
  }
}
