/* CSS Variables */
:root {
  --color-primary: #2E4B3F;
  --color-secondary: #E3D3B8;
  --color-background: #F5F7F8;
  --color-text: #1a1a1a;
  --color-text-light: #666;
  --color-accent: #8A9670;
  --color-neutral: #C8CBCD;
  --font-primary: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: var(--space-md);
}

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

a:hover {
  color: var(--color-accent);
}

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

/* Header */
.site-header {
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-neutral);
  padding: var(--space-md) var(--space-lg);
  position: relative;
  transition: transform var(--transition-fast);
  z-index: 1000;
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-md);
  position: relative;
}

.brand-name {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

nav {
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
  flex-wrap: wrap;
}

.nav-menu li a {
  font-size: 1rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.nav-menu li a:hover {
  background-color: var(--color-secondary);
}

.burger-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  font-size: 1.5rem;
  color: var(--color-primary);
  order: 999;
  flex-shrink: 0;
  margin-left: auto;
}

.burger-button:hover {
  color: var(--color-accent);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .burger-button {
    display: block;
  }

  .header-container {
    flex-wrap: nowrap;
  }

  .brand-name {
    flex: 1;
    min-width: 0;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
  }

  .nav-menu {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-neutral);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: block;
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }
}

/* Main Content */
main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
}

.section {
  margin-bottom: var(--space-xl);
  padding: var(--space-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-background) 100%);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.hero-image {
  width: 100%;
  max-width: 900px;
  margin: var(--space-lg) auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.footer-section a{
    color: white;
}

.btn:hover {
    color: white;
  background-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--color-neutral);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

/* Banner */
.banner-section {
  position: relative;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.banner-content {
  text-align: center;
  color: white;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.6);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  max-width: 90%;
  backdrop-filter: blur(4px);
}

.banner-title {
  color: white;
  margin-bottom: var(--space-md);
}

.banner-text {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--color-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-neutral);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

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

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.checkbox-input {
  margin-top: 4px;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-neutral);
}

.comparison-table th {
  background-color: var(--color-primary);
  color: white;
  font-weight: 600;
}

.comparison-table tr:hover {
  background-color: var(--color-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Material Icons */
.material-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

/* Difficulty Badge */
.difficulty-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.difficulty-easy {
  background-color: #d4edda;
  color: #155724;
}

.difficulty-medium {
  background-color: #fff3cd;
  color: #856404;
}

.difficulty-hard {
  background-color: #f8d7da;
  color: #721c24;
}

/* Step Guide */
.step-guide {
  margin: var(--space-lg) 0;
}

.step-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step-content h4 {
  margin-bottom: var(--space-sm);
}

/* Calculator Section */
.calculator-section {
  background-color: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

.calculator-input-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.calculator-result {
  display: none;
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--color-secondary);
  border-radius: var(--radius-md);
  text-align: center;
}

.result-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: var(--space-sm);
}

/* Savings Chart */
.savings-chart {
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.chart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-neutral);
}

.chart-item:last-child {
  border-bottom: none;
}

.chart-label {
  font-weight: 500;
}

.chart-value {
  color: var(--color-accent);
  font-weight: 600;
}

/* Map Container */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-xl) var(--space-lg);
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: var(--space-sm);
}

.footer-menu a {
  color: var(--color-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-secondary);
}

/* Privacy Popup */
.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.privacy-popup.active {
  display: flex;
}

.popup-content {
  background-color: white;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
  padding: var(--space-sm);
  line-height: 1;
}

.popup-close:hover {
  color: var(--color-primary);
}

.popup-title {
  margin-bottom: var(--space-lg);
}

.popup-text {
  color: var(--color-text-light);
  line-height: 1.8;
}

/* Thank You Page */
.thank-you-section {
  text-align: center;
  padding: var(--space-xl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: var(--space-xl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.error-message {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.date {
  font-style: italic;
  color: var(--color-text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: var(--space-md);
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 0.875rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-sm);
  }

  .calculator-input-group {
    grid-template-columns: 1fr;
  }

  .step-item {
    flex-direction: column;
  }

  .banner-image {
    height: 300px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero-section {
    padding: var(--space-lg) var(--space-md);
  }

  .form-container {
    padding: var(--space-lg);
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

