:root {
  --primary: #0F6E56;
  --primary-hover: #0a5240;
  --bg-color: #ffffff;
  --text-main: #1a1a1a;
  --text-muted: #6b7280;
  --card-bg: #F5FAF7;
  --card-border: #D8EDDF;
  --error: #dc2626;
  --calc-accent: #EFF8F2;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--card-border);
  padding: 0.5rem 2rem; /* Changed top/bottom from 1rem to 0.5rem to make it thinner */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-img {
  height: 60px !important; /* Forces the browser to apply this height */
  width: auto !important;
  display: block;
}

.footer-logo-img {
  height: 60px !important;
  width: auto !important;
  display: block;
  margin-left: -30px; /* Pulls just the image 10 pixels to the left */
}


.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Dropdown */
.nav-more {
  position: relative;
}

.nav-more-btn {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 220px;
  padding: 0.5rem;
  z-index: 200;
}

.nav-more-menu.open {
  display: block;
}

.nav-more-menu a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--text-main);
  transition: background 0.15s, color 0.15s;
}

.nav-more-menu a:hover {
  background: var(--card-bg);
  color: var(--primary);
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.nav-link:hover {
  background: var(--card-bg);
}

.nav-link.active {
  background: var(--primary);
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
  }
  .nav-links.show {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

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

.hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.search-bar {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.search-bar:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(15, 110, 86, 0.2);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  border-color: var(--card-border);
  background: #fff;
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--card-bg);
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .cta-buttons {
    flex-direction: column;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
}

/* Grid */
.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.calc-card {
  background: #E8F5EE;
  border: 1.5px solid #A8D8BA;
  border-top: 3px solid var(--primary);
  border-radius: 0.625rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 110, 86, 0.18);
  background: #D4EDE0;
  border-color: var(--primary);
  border-top-color: var(--primary);
}

.calc-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
}

.calc-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 1024px) {
  .calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Calculator Page Layout */
.calc-page {
  max-width: 800px;
  margin: 0 auto;
}

.calc-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.calc-page .intro {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.content-section {
  margin-top: 3rem;
}

.content-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.5rem;
}

.content-section p, .content-section ul {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.content-section ul {
  padding-left: 1.5rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.footer {
  margin-top: 4rem;
  background: #F0F9F4;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.footer-brand .footer-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin-bottom: 0.875rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 1.5rem;
  }
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== ABOUT / CONTACT PAGES ===== */
.static-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.static-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.static-page .lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.static-page h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 2.5rem 0 0.875rem;
}

.static-page p, .static-page li {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.875rem;
}

.static-page ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form .form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}

.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 1rem;
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.value-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.value-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: var(--text-main);
}

.value-card p {
  font-size: 0.8375rem;
  margin: 0;
}

/* ===== HOMEPAGE HERO ===== */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: #111;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.search-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border-radius: 9999px;
  border: 1.5px solid var(--card-border);
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.12);
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===== CALC GRID SECTION ===== */
.calc-grid-section {
  padding-top: 0;
  padding-bottom: 3rem;
}

.section-heading {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.calc-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.calc-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(15, 110, 86, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background 0.2s;
}

.calc-card:hover .calc-card-icon {
  background: rgba(15, 110, 86, 0.28);
}

.calc-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.calc-card-body p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.calc-card:hover .calc-card-body h3 {
  color: var(--primary);
}

.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
  font-size: 1rem;
}

/* ===== RELATED SECTION ===== */
.related-section {
  padding-top: 0;
  padding-bottom: 3rem;
}

.related-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.related-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.related-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.related-links a:hover {
  border-bottom-color: var(--primary);
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.25rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
  .related-links { flex-direction: column; gap: 0.5rem; }
}
