/* =============================================================================
   TAKE CARE OF MY - MASTER STYLESHEET
   Version: 8.8 - QUICK WINS UPDATE
   Description: Complete stylesheet for TakeCareOfMy.com with enhanced mobile responsiveness
============================================================================= */

/* CSS VARIABLES */
:root {
  /* Brand Colors */
  --tcom-deep-blue: #1A365D;
  --tcom-trust-teal: #00A3B4;
  --tcom-light-teal: #E6F7F9;
  --tcom-energy-orange: #FF6B35;
  --tcom-success-green: #00D084;
  --tcom-neutral-gray: #4A5568;
  --tcom-light-gray: #E5E5E5;
  --tcom-off-white: #F7FAFC;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-accent: 'Lora', serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Container */
  --container-width: 1400px;
  --container-narrow: 900px;
}

/* BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tcom-neutral-gray);
  background: white;
  overflow-x: hidden;
}

/* CONTAINER */
.tcom-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.tcom-container--narrow {
  max-width: var(--container-narrow);
}

@media (max-width: 768px) {
  .tcom-container {
    padding: 0 1rem;
  }
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--tcom-deep-blue);
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.625rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.75rem !important; }
  h3 { font-size: 1.5rem !important; }
  h4 { font-size: 1.25rem !important; }
}

p {
  margin-bottom: 1rem;
}

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

.tcom-section--tint {
  background: var(--tcom-off-white);
}

.tcom-section--blue {
  background: var(--tcom-deep-blue);
  color: white;
}

.tcom-section--gradient {
  background: linear-gradient(135deg, var(--tcom-deep-blue), var(--tcom-trust-teal));
  color: white;
}

@media (max-width: 1024px) {
  .tcom-section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 768px) {
  .tcom-section {
    padding: 2.5rem 0 !important;
  }
}

/* SECTION HEADERS */
.tcom-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

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

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

@media (max-width: 768px) {
  .tcom-section__header {
    margin-bottom: 2rem;
  }
  
  .tcom-section__title {
    font-size: 1.75rem;
  }
  
  .tcom-section__subtitle {
    font-size: 1rem;
  }
}

/* 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 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .tcom-grid {
    gap: 1.5rem;
  }
  
  .tcom-grid--3,
  .tcom-grid--4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .tcom-grid {
    gap: 1rem;
  }
  
  .tcom-grid--2,
  .tcom-grid--3,
  .tcom-grid--4 {
    grid-template-columns: 1fr !important;
  }
}

/* CARDS */
.tcom-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tcom-card__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.tcom-card__title {
  font-size: 1.25rem;
  color: var(--tcom-deep-blue);
  margin-bottom: 0.75rem;
}

.tcom-card__text {
  font-size: 1rem;
  color: var(--tcom-neutral-gray);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .tcom-card {
    padding: 1.5rem;
  }
  
  .tcom-card__title {
    font-size: 1.125rem;
  }
}

/* TESTIMONIAL CARDS */
.tcom-card--testimonial {
  text-align: center;
}

.tcom-testimonial__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
}

.tcom-testimonial__photo--xlarge {
  width: 200px;
  height: 200px;
}

.tcom-testimonial__quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--tcom-neutral-gray);
  margin-bottom: 1rem;
}

.tcom-testimonial__author {
  font-weight: 700;
  color: var(--tcom-deep-blue);
  margin-bottom: 0.25rem;
}

.tcom-testimonial__role {
  font-size: 0.875rem;
  color: var(--tcom-trust-teal);
}

@media (max-width: 768px) {
  .tcom-testimonial__photo--xlarge {
    width: 150px;
    height: 150px;
  }
}

/* BADGES */
.tcom-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tcom-badge--teal {
  background: var(--tcom-light-teal);
  color: var(--tcom-trust-teal);
}

.tcom-badge--orange {
  background: #FFE5DD;
  color: var(--tcom-energy-orange);
}

/* BUTTONS */
.tcom-btn {
  display: inline-block;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.4;
}

.tcom-btn--primary {
  background: var(--tcom-energy-orange);
  color: white;
}

.tcom-btn--primary:hover {
  background: #E55A2B;
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.tcom-btn--secondary {
  background: var(--tcom-trust-teal);
  color: white;
}

.tcom-btn--secondary:hover {
  background: #008C9E;
}

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

.tcom-btn--ghost:hover {
  background: var(--tcom-trust-teal);
  color: white;
}

.tcom-btn--sm {
  padding: 10px 20px;
  min-height: 44px;
  font-size: 0.9375rem;
}

.tcom-btn--full {
  width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .tcom-btn {
    padding: 12px 24px;
    min-height: 44px;
    font-size: 0.9375rem;
  }
  
  .tcom-btn--full {
    width: 100%;
  }
}

/* Inline styled buttons - mobile touch targets */
a[style*="padding"],
button[style*="padding"] {
  min-height: 44px !important;
}

@media (max-width: 768px) {
  a[style*="padding"],
  button[style*="padding"] {
    padding: 12px 24px !important;
    font-size: 0.9375rem !important;
  }
}

/* HERO BACKGROUND */
.tcom-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
}

/* SCARCITY COUNTER */
.tcom-scarcity-count {
  font-weight: 700;
  color: inherit;
}

/* RESPONSIVE UTILITIES */
@media (max-width: 768px) {
  .tcom-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .tcom-hide-desktop {
    display: none !important;
  }
}

/* CALCULATOR SECTION SPECIFIC STYLES */
#calculator {
  scroll-margin-top: 100px;
}

#calculator .tcom-container > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 1024px) {
  #calculator .tcom-container > div {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
}

#detailedResults {
  margin-top: 2rem;
}

/* JUMP AHEAD MENU */
#jump-ahead-menu {
  position: fixed;
  right: 15px;
  top: 270px;
  width: 200px;
  z-index: 1000;
}

#jump-ahead-menu.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.jump-ahead-content {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: white;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.jump-ahead-content nav a {
  color: #4A5568;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
  display: block;
  font-size: 0.875rem;
}

.jump-ahead-content nav a:hover {
  background: var(--tcom-light-teal);
  color: var(--tcom-trust-teal);
}

/* Mobile Jump Menu */
@media (max-width: 1024px) {
  #jump-ahead-menu {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  
  .jump-ahead-hamburger {
    display: block !important;
    pointer-events: all;
  }
  
  .jump-ahead-content {
    position: fixed;
    right: -100%;
    top: 0;
    width: 280px;
    height: 100%;
    transition: right 0.3s ease;
    pointer-events: all;
    overflow-y: auto;
  }
  
  .jump-ahead-content.menu-open {
    right: 0;
  }
  
  .jump-ahead-close {
    display: block !important;
  }
  
  body.jump-menu-open {
    overflow: hidden;
  }
}

/* Hero 3-card problem grid - responsive */
@media (max-width: 1024px) {
  #hero .tcom-container > div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    max-width: 500px !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Bounce animation for scroll indicator */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* What You Get - Responsive */
@media (max-width: 1024px) {
  #what-you-get .tcom-container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* About Dale - Responsive */
@media (max-width: 768px) {
  #founder .tcom-container > div > div[style*="grid-template-columns: 200px 1fr"] {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  
  #founder .tcom-container > div > div img {
    margin: 0 auto 1rem !important;
  }
}

/* Sub-Navigation */
.tcom-sub-nav {
  background: #F7FAFC;
  border-bottom: 1px solid #E5E5E5;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.tcom-sub-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}

.tcom-sub-nav a {
  color: #4A5568;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-block;
  min-height: 44px;
  line-height: 2;
}

.tcom-sub-nav a:hover {
  color: #00A3B4;
  background: rgba(0,163,180,0.1);
  border-radius: 4px;
}

.tcom-sub-nav-separator {
  color: #CBD5E0;
  margin: 0 0.25rem;
  user-select: none;
}

@media (max-width: 768px) {
  .tcom-sub-nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  .tcom-sub-nav-separator {
    display: none;
  }
}

/* Images - responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Tables - responsive */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
