/* 
  Smart Paisa Tools - Global Styles 
  Theme: Trustworthy Blue (#1E3A8A), Green (#16A34A), White (#FFFFFF)
*/

:root {
  --primary: #1E3A8A;
  --secondary: #16A34A;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #334155;
  --text-light: #64748B;
  --border: #E2E8F0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 12px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

/* HEADER */
.site-header {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  background: var(--secondary);
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.1rem;
}

.logo-accent {
  color: var(--primary);
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-list a {
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-list a:hover, .nav-list a.active {
  color: var(--primary);
}

/* HERO SECTION */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, #172554 100%);
  color: white;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.highlight-text {
  color: #fbbf24; /* Yellow pop */
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 500px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--secondary);
  color: white;
}

.hero-graphic {
  flex: 1;
  position: relative;
  height: 300px;
  display: none;
}

@media (min-width: 768px) {
  .hero-graphic {
    display: block;
  }
}

.floating-card {
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  position: absolute;
}

.floating-card .icon { font-size: 2rem; }
.floating-card .title { display: block; color: var(--text-light); font-size: 0.875rem; }
.floating-card .value { display: block; color: var(--text); font-weight: 800; font-size: 1.25rem; }

.c1 { top: 20%; right: 10%; animation: float 6s ease-in-out infinite; }
.c2 { bottom: 20%; left: 10%; animation: float 6s ease-in-out infinite reverse; }

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* TOOLS GRID */
.tools-section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--text);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.tool-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  color: inherit;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.tool-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.bg-blue { background: #3b82f6; }
.bg-green { background: #10b981; }
.bg-purple { background: #8b5cf6; }
.bg-orange { background: #f97316; }
.bg-teal { background: #14b8a6; }
.bg-red { background: #ef4444; }

.tool-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.tool-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* AD SENSE BANNER */
.ad-banner {
  margin: 2rem auto;
  display: none; /* Hidden for now to boost UX & SEO */
}
.ad-placeholder {
  background: #e2e8f0;
  border: 1px dashed #94a3b8;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  border-radius: 8px;
  display: none; /* Hidden for now to boost UX & SEO */
}

/* CALCULATOR INTERNAL PAGES */
.calc-page-wrapper {
  padding: 3rem 0;
}

.calc-page-header {
  margin-bottom: 2rem;
}

.calc-page-header h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.calc-page-header p {
  color: var(--text-light);
}

/* Flex Grid for Input + Output side-by-side */
.spt-calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

@media (min-width: 768px) {
  .spt-calc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.spt-input-group {
  margin-bottom: 1.5rem;
}

.spt-input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.spt-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.spt-symbol {
  padding: 0.75rem;
  background: var(--bg);
  color: var(--text-light);
  font-weight: 600;
  border-right: 1px solid var(--border);
}
.spt-symbol.right { border-left: 1px solid var(--border); border-right: none; }

.spt-input {
  flex: 1;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  outline: none;
  width: 100%;
}

input[type="range"].spt-slider {
  width: 100%;
  margin-top: 0.75rem;
  accent-color: var(--primary);
}

/* Results Display */
.spt-result-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
}

.spt-result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
}
.spt-result-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.spt-result-label {
  color: var(--text-light);
  font-weight: 500;
}

.spt-result-value {
  font-weight: 700;
  font-size: 1.125rem;
}

.spt-result-value.highlight {
  color: var(--secondary);
  font-size: 1.5rem;
}

/* FEATURES SECTION */
.features-section {
  padding: 4rem 0;
}
.bg-light { background: white; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
}

.f-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.feature-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* FOOTER */
.site-footer {
  background: #0f172a;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: #94a3b8;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* MOBILE RESPONSIVE */
.mobile-menu-btn { display: none; }
@media (max-width: 768px) {
  .hero-container, .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .nav-list { display: none; }
  .mobile-menu-btn {
    display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  }
  .mobile-menu-btn span {
    width: 25px; height: 3px; background: var(--border); display: block;
  }
}
