@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --primary: #FF6B35;
  --secondary: #004E89;
  --accent: #F7B801;
  --dark: #1A1A2E;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

/* Header - Compact */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero - Compact */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.95;
}

.cta-btn {
  display: inline-block;
  padding: 12px 35px;
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

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

/* Section - Compact */
.section {
  padding: 50px 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--secondary);
}

/* Calculator Grid - Compact */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.calc-card {
  background: var(--white);
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.calc-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.calc-card input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.calc-card input:focus {
  outline: none;
  border-color: var(--primary);
}

.calc-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

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

.result {
  margin-top: 15px;
  padding: 15px;
  background: #F0F9FF;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  display: none;
}

.result.show {
  display: block;
}

.result h4 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.result p {
  margin: 5px 0;
  font-size: 0.95rem;
}

.result-value {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Features - Compact */
.features-section {
  background: var(--white);
}

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

.feature {
  text-align: center;
  padding: 20px;
}

.icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--secondary);
}

.feature p {
  color: #666;
  font-size: 0.9rem;
}

/* Products - Compact */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1rem;
  padding: 15px 15px 8px;
  color: var(--secondary);
}

.price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0;
}

.buy-btn {
  display: inline-block;
  margin: 15px;
  padding: 10px 25px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
}

.disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
}

/* Links Section - Compact */
.links-section {
  background: var(--white);
}

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

.link-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.link-card ul {
  list-style: none;
}

.link-card li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.link-card a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}

.link-card a:hover {
  color: var(--primary);
}

/* Ad Banner */
.ad-banner {
  margin: 30px auto;
  max-width: 800px;
  min-height: 100px;
  background: #F8F9FA;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer - Compact */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 25px 20px;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.9;
}

footer a {
  color: var(--white);
  text-decoration: underline;
  opacity: 0.8;
  margin: 0 8px;
}

footer a:hover {
  opacity: 1;
}

/* Cookie Banner - Compact */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 15px 20px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner button {
  padding: 8px 25px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 35px 15px;
  }
  
  .calc-grid,
  .features-grid,
  .products-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Content Box for Text Pages */
.content-box {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.content-box h2 {
  color: var(--secondary);
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
}

.content-box h2:first-child {
  margin-top: 0;
}

.content-box h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-top: 25px;
  margin-bottom: 12px;
  font-weight: 600;
}

.content-box p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #555;
}

.content-box ul, .content-box ol {
  margin: 15px 0 15px 25px;
  line-height: 1.8;
}

.content-box li {
  margin-bottom: 8px;
  color: #555;
}

.content-box a {
  color: var(--primary);
  text-decoration: underline;
}

.content-box a:hover {
  color: var(--secondary);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card .icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.contact-card h3 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.contact-card p {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* FAQ Items */
.faq-item {
  background: #F8F9FA;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  border-left: 4px solid var(--accent);
}

.faq-item h3 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.faq-item p {
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.article-card {
  background: var(--white);
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.article-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.article-card h3 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.article-card p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.article-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 15px !important;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s;
}

.read-more:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Calculator Result Box - FORCE SHOW */
.result {
  background: #F0F9FF;
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
  border-left: 4px solid var(--primary);
  display: none;
  animation: slideIn 0.3s ease;
}

.result.show {
  display: block !important;
}

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

.result h4 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.result p {
  margin: 5px 0;
  color: #555;
}

.result-value {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
}
