/* ==================================================
   ROOT VARIABLES
================================================== */
:root {
  --bg: #f8fafc;
  --card: #ffffff;

  --text-dark: #1f2937;
  --text-muted: #6b7280;

  --primary: #6d28d9;
  --primary-light: #7c3aed;

  --gradient-main: linear-gradient(135deg, #1f2933, #6d28d9);
}

/* ==================================================
   GLOBAL RESET & BASE
================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  padding-left: 20px;
}

/* ==================================================
   CONTAINER
================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================================================
   HEADER
================================================== */
.site-header {
  position: relative;
  z-index: 10;
  background: transparent;
}


.brand img {
  display: block;
}

/* ==================================================
   HERO (HOME)
================================================== */
.hero {
  background: var(--gradient-main);
  color: #ffffff;
  padding: 60px 20px 100px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
}

.badge {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 14px;
}

/* ==================================================
   PAGE HERO (ABOUT / CONTACT / TERMS / PRIVACY)
================================================== */
.page-hero {
  background: var(--gradient-main);
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: 34px;
  margin-bottom: 6px;
}

.page-hero p {
  opacity: 0.9;
}

/* ==================================================
   CALCULATOR
================================================== */
.calculator-spacer {
  margin-top: -60px;
  padding-bottom: 40px;
}


.calculator-card {
  background: var(--card);
  max-width: 720px;
  margin: 0 auto 60px;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  text-align: center;
}

.calculator-card h2 {
  margin-bottom: 20px;
}

.calculator-card label {
  display: block;
  text-align: left;
  font-weight: 500;
  margin-top: 14px;
}

.calculator-card input,
.calculator-card select {
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 16px;
  text-align: center;
  background: #fff;
}

.calculator-card input:focus,
.calculator-card select:focus {
  border-color: var(--primary);
  outline: none;
}

/* ==================================================
   BUTTONS
================================================== */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

button {
  padding: 15px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  cursor: pointer;
  width: 100%;
}

button.secondary {
  background: #e5e7eb;
  color: #111;
}

/* ==================================================
   RESULT
================================================== */


.price {
  font-size: 30px;
  font-weight: 700;
  color: #1e40af;
}

/* ==================================================
   CALCULATOR INFO CARDS
================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 14px;
  margin-top: 20px;
}

.calc-card {
  background: #f1f5f9;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
}

/* ==================================================
   INFO GRID
================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.info-card {
  background: var(--card);
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* ==================================================
   ARTICLE / CONTENT PAGES
================================================== */
.seo-article {
  padding: 60px 0;
}


.seo-article h1,
.seo-article h2 {
  margin-top: 32px;
}

.seo-article p,
.seo-article li {
  color: var(--text-muted);
}

/* ==================================================
   FORM CARD (CONTACT PAGE)
================================================== */
.form-card {
  background: var(--card);
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ==================================================
   FOOTER
================================================== */
.site-footer {
  background: var(--gradient-main);
  color: #e5e7eb;
  padding: 32px 20px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  font-size: 13px;
  color: #cbd5e1;
}

/* ==============================
   FOOTER SPACING IMPROVEMENT
============================== */

.footer-links {
  margin: 28px 0;
  gap: 32px; /* more space between items */
}

.footer-links li a {
  padding: 8px 14px; /* clickable breathing space */
  border-radius: 8px;
  transition: background 0.2s ease;
}

.footer-links li a:hover {
  background: rgba(255, 255, 255, 0.08);
}


/* ==================================================
   GRID UTILITIES
================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .calculator-card {
    padding: 28px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
}


/* ==============================
   CONTACT FORM FIX
============================== */

.contact-box {
  max-width: 640px;
  margin: 0 auto 80px;
}

.contact-form {
  margin-top: 20px;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

/* Buttons */
.form-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.form-actions button {
  flex: 1;
}

/* Mobile fix */
@media (max-width: 480px) {
  .form-actions {
    flex-direction: column;
  }
}



/* ==============================
   Papge Speed FIX
============================== */

.result {
  min-height: 160px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.hidden {
  display: none;
}


.site-header {
  min-height: 260px; /* safe buffer */
}


.calculator-card {
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}




.brand {
  display: inline-flex;
  width: 55px;
  height: 55px;
}

.brand img {
  width: 55px;
  height: 55px;
}

.article-image {
  aspect-ratio: 3 / 2;
}



html {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}



.article-image img {
  width: 100%;
  height: auto;
  display: block;
}


.hero h1 {
  min-height: 52px;
}

.hero p {
  min-height: 24px;
}


@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

