@view-transition {
  navigation: auto;
}

/* Global */

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Header */

.header {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.15);
}

.site-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.7);
}

.site-logo-link {
  text-decoration: none;
}

/* Desktop nav */

.desktop-nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link-item {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-link-item:hover {
  color: #dcfce7;
  transform: scale(1.08);
}

/* Dropdown */

.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  margin-top: 8px;
  overflow: hidden;
}

.dropdown.open .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: #4a5568;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  font-size: 14px;
}

.dropdown-content a:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  padding-left: 28px;
}

/* Mobile menu button */

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
}

/* Mobile menu overlay */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 1100;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu-panel {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  border-bottom-right-radius: 24px;
  padding: 18px 20px 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(-105%);
  animation: slideDownMenu 0.25s ease-out forwards;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mobile-menu-title {
  color: #dcfce7;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #f9fafb;
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.mobile-menu-links a {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  color: #ecfdf5;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.mobile-menu-links a:hover {
  background-color: rgba(6, 95, 70, 0.9);
}

/* Page hero */

.page-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'><path d='M0,0 Q300,60 600,30 T1200,0 L1200,120 L0,120 Z' fill='rgba(255,255,255,0.05)'/></svg>")
    repeat-x bottom;
  background-size: 1200px 120px;
  opacity: 0.3;
}

.page-header h1 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.24);
  animation: slideInDown 0.6s ease;
}

.page-header p {
  font-size: 18px;
  position: relative;
  z-index: 1;
  animation: slideInUp 0.6s ease;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Main layout */

.budget-container {
  max-width: 1400px;
  margin: -60px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.budget-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.6s ease;
  margin-bottom: 24px;
}

.card-title {
  font-size: 26px;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sections and inputs */

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 3px solid #10b981;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-label {
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-field {
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.input-field:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Summary boxes */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.summary-box {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  padding: 24px;
  border-radius: 16px;
  border-left: 5px solid #10b981;
  transition: all 0.3s ease;
}

.summary-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.summary-box.negative {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-left-color: #ef4444;
}

.summary-box.warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left-color: #f59e0b;
}

.summary-label {
  font-weight: 600;
  color: #4a5568;
  font-size: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  font-weight: 900;
  color: #1e293b;
  font-size: 32px;
}

.summary-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

/* Progress bars and categories */

.progress-bar-container {
  background: #e2e8f0;
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.progress-bar.warning {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.progress-bar.danger {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.category-item {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.category-item:hover {
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.category-name {
  font-weight: 700;
  color: #2d3748;
  font-size: 16px;
}

.category-amount {
  font-weight: 800;
  color: #10b981;
  font-size: 18px;
}

.category-percentage {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

/* Download buttons */

.download-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.download-btn {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Health score & recommendations */

.health-score {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 20px;
  color: white;
  margin-bottom: 32px;
}

.health-score-value {
  font-size: 72px;
  font-weight: 900;
  margin: 20px 0;
}

.health-score-label {
  font-size: 24px;
  font-weight: 600;
  opacity: 0.9;
}

.recommendations {
  background: #fffbeb;
  padding: 24px;
  border-radius: 16px;
  border-left: 5px solid #f59e0b;
  margin-top: 24px;
}

.recommendations h3 {
  font-size: 20px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 16px;
}

.recommendations ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommendations li {
  padding: 12px 0;
  color: #78350f;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.recommendations li::before {
  content: '💡';
  flex-shrink: 0;
}

/* Blog / SEO section */

.blog-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.blog-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

.blog-content h2 {
  font-size: 32px;
  font-weight: 900;
  color: #1a202c;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  margin-top: 28px;
  margin-bottom: 16px;
}

.blog-content h4 {
  font-size: 20px;
  font-weight: 600;
  color: #4a5568;
  margin-top: 24px;
  margin-bottom: 12px;
}

.blog-content p {
  color: #4a5568;
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.9;
}

.blog-content ul,
.blog-content ol {
  color: #4a5568;
  margin-left: 24px;
  margin-bottom: 18px;
}

.blog-content li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.blog-content strong {
  color: #10b981;
  font-weight: 700;
}

.blog-content a {
  color: #059669;
  text-decoration: underline;
}

.blog-content a:hover {
  color: #047857;
}

.highlight-box {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid #10b981;
  margin: 32px 0;
}

.example-box {
  background: #f0fdf4;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #10b981;
  margin: 24px 0;
}

/* FAQ */

.faq-section {
  margin: 80px auto 40px;
  padding: 0 20px;
}

.faq-heading {
  max-width: 900px;
  margin: 0 auto 24px;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  color: #1f2933;
}

.faq-items {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  border-left: 4px solid #10b981;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #111827;
  outline: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  font-weight: 700;
  color: #10b981;
}

.faq-item[open] summary::after {
  content: '–';
}

.faq-item p {
  margin-top: 8px;
  font-size: 15px;
  color: #4b5563;
}

/* Footer */

.footer {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: white;
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-column h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #cbd5e0;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.footer-column ul li a:hover {
  color: #10b981;
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 30px;
  text-align: center;
  color: #a0aec0;
}

/* Animations */

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownMenu {
  from {
    transform: translateY(-105%);
  }
  to {
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 1024px) {
  .desktop-nav-center {
    position: static;
    transform: none;
  }
}

@media (max-width: 768px) {
  /* Hide desktop nav completely on tablets & phones */
  .nav-links {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .page-header p {
    font-size: 16px;
  }

  .calculator-card {
    padding: 24px;
  }

  .blog-content {
    padding: 32px 24px;
  }

  .blog-content h2 {
    font-size: 30px;
  }

  .blog-content h3 {
    font-size: 22px;
  }

  .download-buttons {
    flex-direction: column;
  }

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

  .service-quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
/* When mobile menu is open, never show desktop links */
body.mobile-menu-open .nav-links {
  display: none !important;
}

    
}
