:root {
  /* Main Site Colors */
  --primary-color: #ff85a2;      /* Vibrant Pink */
  --secondary-color: #9e78e8;    /* Soft Purple */
  --secondary-light: #d5c8ff;    /* A lighter shade for decorations */
  --text-color: #4a4a4a;         /* Dark Gray */
  --text-color-light: #888888;    /* Medium-Dark Gray */
  --bg-color: #f8f8f8;           /* Very Light Gray */
  --light-gray: #ffffff;         /* White for sections/cards */
  --border-color: #e0e0e0;       /* Medium Gray Accent */
  
  --header-bg: var(--primary-color);
  --header-text: #FFFFFF;
  --footer-bg: #4a4a4a;           /* Dark Gray */
  --footer-text: #FFFFFF;

  /* App Colors (Unchanged as requested) */
  --app-primary-color: #00796B;
  --app-secondary-color: #4DB6AC;
  --app-bg-color: #F4F8F7;
  --app-border-color: #B2DFDB;
  --app-bg-hover: #E0F2F1;
  --app-text-color-light: #546E7A;
  --app-header-bg: var(--app-primary-color);
  --app-header-text: #FFFFFF;
  --app-btn-disabled-bg: #A5B4B9;
  --app-btn-disabled-text: #CFD8DC;
  
  /* System Colors */
  --success-color: #28a745;
  --error-color: #dc3545;

  /* Other vars */
  --header-height: 100px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-section > .container > h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-top {
  border-bottom: 1px solid var(--border-color);
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-color);
}
.logo-link:hover { text-decoration: none; }

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phone-link span {
  font-size: 1.2rem;
  font-weight: 700;
}

.header-bottom {
  height: 50px;
  background-color: var(--header-bg);
}

.header-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  color: var(--header-text);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--header-text);
    text-decoration: none;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--header-text);
    transition: width 0.3s ease;
}

.main-nav a:hover::before, .main-nav a.active::before {
    width: 100%;
}

/* Desktop separator for specific nav links */
.nav-item--separator {
    margin-left: 0.75rem;
    padding-left: 1.5rem;
    border-left: 4px solid rgba(255, 255, 255, 0.4);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--header-text);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--border-color);
}
.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  list-style: none;
  padding: 0;
}
.breadcrumbs li[aria-current="page"] {
  font-weight: 600;
  color: var(--text-color-light);
}

/* Reusable Page Hero Section */
.page-hero {
    position: relative;
    padding: 4rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 133, 162, 0.05), rgba(158, 120, 232, 0.05));
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}
.page-hero .hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.page-hero .hero-decoration {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.2;
    animation: float 8s ease-in-out infinite;
}
.page-hero .hero-decoration:nth-child(2) { animation-delay: -2s; }
.page-hero .hero-decoration:nth-child(3) { animation-delay: -4s; }
.page-hero .hero-decoration:nth-child(4) { animation-delay: -6s; }
.page-hero .hero-decoration:nth-child(5) { animation-delay: -1s; }
.page-hero .hero-decoration:nth-child(6) { animation-delay: -3s; }

.page-hero__title, .page-hero__content, .page-hero .hero-actions {
    position: relative;
    z-index: 2;
}
.page-hero__title {
    font-size: 2.8rem;
    color: var(--text-color);
}
.page-hero__content {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
    color: var(--text-color-light);
    line-height: 1.7;
}
.page-hero .hero-actions {
    margin-top: 2rem;
}

/* Old Hero Section (kept for compatibility if needed elsewhere) */
.hero {
  position: relative;
  padding: 3rem 0;
  text-align: center;
  background: radial-gradient(ellipse at center, #ffffff 0%, #f8f8f8 100%);
  color: var(--text-color);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  animation: gold-sparkle 10s ease-in-out infinite;
}
.hero > .container,
.hero > .hero-content {
    position: relative;
    z-index: 2;
}
.hero h1 {
  font-size: 2.2rem;
}
.hero p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0.5rem auto 0;
  opacity: 0.9;
}

/* Main Content Section */
main {
  display: flex; /* For IE11 */
  flex-direction: column;
  flex-grow: 1;
}

section.page-section {
    padding: 2.5rem 0;
    text-align: center;
}

#app-section-wrapper {
    padding-top: 5.25rem;
    padding-bottom: 5.25rem;
}

section.page-section:nth-of-type(odd) {
    background-color: var(--light-gray);
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 1.5rem 0;
  text-align: center;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0.75rem;
}
.social-links a {
  color: var(--footer-text);
  font-size: 1.8rem;
  transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--primary-color);
}

.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.footer__copyright {
    order: 2;
    font-size: 1rem;
    margin: 0;
}
.footer__social {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.footer__social-link {
    color: var(--footer-text);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer__social-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Tools/Apps page - Interlinks */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 120px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background-color: var(--light-gray);
    transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    gap: 0.5rem;
    text-align: center;
}
.tool-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    text-decoration: none;
    background-color: #fff;
}
.tool-card i {
    font-size: 2rem;
    margin-bottom: 0;
    color: var(--primary-color);
}
.tool-card span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--header-text);
}
.btn-primary:hover:not(:disabled) {
    background-color: #e5678a;
    border-color: #e5678a;
}
.btn-secondary {
    background-color: var(--text-color-light);
    color: var(--header-text);
}
.btn-secondary:hover:not(:disabled) {
    background-color: #5a6268;
}
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    gap: 0.4rem;
}

/* Add vertical space in CTA sections */
section.page-section:not(.not-found-section) p + .btn {
    margin-top: 1.5rem;
}

/* Unified Badge Styles */
.badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    left: auto;
    transform: none;
    padding: 0.3rem 0.8rem;
    background-color: var(--primary-color);
    color: var(--header-text);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px; /* Pill shape */
    z-index: 2;
    white-space: nowrap;
    border: none;
}

.badge--optimal {
    background-color: var(--success-color);
    color: white;
}


/* Responsive Styles */
@media (max-width: 992px) {
}

/* Tablet Only: Hide desktop-specific helper text */
@media (max-width: 992px) and (min-width: 769px) {
    .info-desktop-text {
        display: none;
    }
}


@media (max-width: 768px) {
  .header-top .container {
    height: auto;
    padding: 0.5rem 1rem;
    justify-content: space-between;
  }
  .logo-link {
    font-size: 1rem;
    margin: 0;
  }
  .phone-link {
    display: flex; /* Show phone on mobile */
  }
  .phone-link span {
      font-size: 1rem;
      font-weight: 600;
  }
  
  .header-bottom {
    overflow: visible; /* Fix for cropped mobile menu */
    position: relative; /* Make this the positioning context */
  }
  
  .header-bottom .container {
    justify-content: flex-end;
    position: static; /* Remove positioning context from container */
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .main-nav {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    /* Dropdown animation */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  .main-nav.is-open {
    max-height: 600px; /* Animate open to this height */
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 0.5rem 0;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 1.5rem;
    width: 100%;
    color: var(--text-color);
  }
  .main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
  }

  .main-nav a::before { 
    display: none; 
  }

  /* Mobile separator for specific nav links */
  .nav-item--separator {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    
    width: 80%;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--border-color);
  }

  .hero h1, .page-hero__title { font-size: 1.8rem; }
  .hero p, .page-hero__content { font-size: 1rem; }
  
  .hero, .page-hero {
      padding: 2.5rem 1rem;
  }
}

@media (max-width: 576px) {
  .logo-text {
    display: none;
  }
}

/* 404 Page */
.not-found-section {
    padding: 4rem 1rem 4rem; /* Adjusted padding, removing min-height makes bottom padding the primary spacer */
    text-align: center;
    /* min-height: 80vh; --- REMOVED to allow sticky footer to control the spacing */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    align-items: center; /* Horizontally center the container's children */
}
.not-found-icon {
    font-size: 4rem; /* Slightly smaller icon */
    color: var(--primary-color);
    margin-bottom: 1rem; /* Reduced from 1.5rem */
}
.not-found-section h1 {
    font-size: 5rem; /* Slightly smaller text */
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem; /* Reduced from 0.5rem */
    line-height: 1; /* Added for compactness */
}
.not-found-section h2 {
    font-size: 1.8rem; /* Slightly smaller text */
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    font-weight: 600;
    line-height: 1.2; /* Added for compactness */
}
.not-found-section p {
    max-width: 600px;
    margin: 0 auto 1.5rem; /* Reduced bottom margin from 2rem */
    font-size: 1.1rem;
    color: var(--text-color-light);
}
.not-found-section .btn {
    font-size: 1rem;
    padding: 0.9rem 2rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--initial-rotate, 0deg)); }
    50% { transform: translateY(-20px) rotate(calc(var(--initial-rotate, 0deg) + 10deg)); }
}

@keyframes gold-sparkle {
  0%, 100% {
    box-shadow: 
        5vw 80vh 3px #d5c8ff, 94vw 38vh 2px rgba(255,255,255,0.8), 2vw 91vh 3px #d5c8ff, 
        45vw 83vh 2px #d5c8ff, 23vw 2vh 2px rgba(255,255,255,0.8), 13vw 36vh 3px #d5c8ff, 
        78vw 3vh 2px #d5c8ff, 16vw 70vh 2px rgba(255,255,255,0.8), 56vw 84vh 3px #d5c8ff, 
        68vw 68vh 2px #d5c8ff, 80vw 10vh 3px rgba(255,255,255,0.8), 10vw 20vh 2px #d5c8ff;
    opacity: 0.8;
  }
  50% {
    box-shadow: 
        23vw 82vh 2px #d5c8ff, 18vw 60vh 3px rgba(255,255,255,0.8), 74vw 16vh 2px #d5c8ff, 
        93vw 32vh 3px #d5c8ff, 7vw 6vh 2px rgba(255,255,255,0.8), 79vw 80vh 2px #d5c8ff, 
        42vw 36vh 3px #d5c8ff, 16vw 91vh 2px rgba(255,255,255,0.8), 52vw 10vh 3px #d5c8ff, 
        8vw 15vh 2px #d5c8ff, 90vw 50vh 3px rgba(255,255,255,0.8), 30vw 90vh 2px #d5c8ff;
    opacity: 1;
  }
}