/* ================================================================= */
/* Main stylesheet (ASCII-clean header for cPanel parser)            */
/* Version: 2.0.0 | Optimized: January 2025                         */
/* ================================================================= */

/* ========== CSS VARIABLES ========== */
:root {
  --primary: #FF7A00;
  --primary-dark: #E55A2B;
  --secondary: #28a745;
  --dark: #1A1A2E;
  --text: #2d3748;
  --muted: #5a5a5a;
  --light: #fff5f0;
  --radius: 12px;
  /* Transition tokens - avoid `transition: all` for performance */
  --transition-duration: 0.35s;
  --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: transform var(--transition-duration) var(--transition-easing), box-shadow var(--transition-duration) var(--transition-easing), background-color var(--transition-duration) var(--transition-easing);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(255,122,0,0.2);
  /* centralized z-index tokens to avoid collisions */
  --z-header: 1000;
  --z-sticky: 900;
  --z-skiplink: 1100;
}

/* CRITICAL CSS moved to full definitions below. Removed duplicated compressed critical block to avoid double-application. */
/* Critical styles are defined below in full form to avoid duplication. */
/* Critical above-the-fold rules are defined in the main sections below to avoid duplication. */
/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui;
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
  color: var(--text);
  line-height: 1.6;
  /* reserve space for sticky CTA to avoid layout shift when it's shown */
  padding-bottom: 120px;
}

/* ========== KALKULATOR PAGE LAYOUT OVERRIDES ========== */
body.kalkulator-page {
  background: #fff5f0;
  padding-bottom: 40px;
}

body.kalkulator-page header {
  position: static;
  box-shadow: none;
}

body.kalkulator-page .container {
  max-width: 720px;
  margin: 2rem auto 1rem;
}

body.kalkulator-page section {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
  z-index: 10000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 6px;
}

/* ========== HEADER ========== */
header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 800;
}

.header-cta {
  background: var(--secondary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  min-height: 44px;
  transition: var(--transition-fast);
}

@media (hover: hover) {
  .header-cta:hover,
  .header-cta:focus {
    background: #218838;
    transform: translateY(-2px);
  }
}

.header-cta:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========== LANGUAGE SELECTOR ========== */
.language-selector {
  text-align: center;
  padding: 10px 0;
  background: var(--dark);
  margin-bottom: 20px;
}

.language-selector button,
.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  margin: 0 5px;
  width: 36px;
  height: 36px;
  min-width: 44px;
  min-height: 44px;
}

@media (hover: hover) {
  .language-selector button:hover,
  .lang-btn:hover {
    transform: scale(1.08);
  }
}

/* ========== DROPDOWN ========== */
.dropdown {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.dropbtn {
  background: linear-gradient(135deg, #0b84ff, #084caa);
  color: #fff;
  padding: 15px 25px;
  border: none;
  border-radius: var(--radius);
  font-size: 1.3em;
  cursor: pointer;
  max-width: 400px;
  width: calc(100% - 2em);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  min-height: 44px;
}

@media (hover: hover) {
  .dropbtn:hover {
    transform: translateY(-2px);
  }
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 250px;
  box-shadow: var(--shadow-md);
  z-index: 10;
  border-radius: var(--radius);
  left: 50%;
  transform: translateX(-50%);
  margin-top: 5px;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

@media (hover: hover) {
  .dropdown-content a:hover {
    background: var(--light);
  }
}

/* ========== NAVIGATION ========== */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  margin: 20px 0;
}

nav li {
  flex-grow: 1;
  text-align: center;
}

nav a {
  color: #fff;
  display: block;
  padding: 15px 10px;
  text-decoration: none;
  font-weight: 700;
  min-height: 44px;
}

@media (hover: hover) {
  nav a:hover {
    background: var(--primary-dark);
  }
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 12px 0;
  background: var(--light);
  border-radius: var(--radius);
  margin: 15px 0;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--muted);
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(135deg, #e6ffe6, #c8e6c9);
  border: 3px solid var(--secondary);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 1200px;
  margin: 2rem auto;
  /* Reserve vertical space to avoid CLS on font swap or image load */
  min-height: 420px;
}

.hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 800;
  /* Reserve space for up to two lines to reduce CLS when fonts swap */
  line-height: 1.05;
  min-height: 88px;
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0.5rem;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
  }
  
  .btn-primary:hover::before {
    left: 100%;
  }
}

.btn-primary:focus {
  outline: 3px solid var(--primary-dark);
  outline-offset: 3px;
}

/* ========== SECTIONS ========== */
section {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

section h2 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* ========== SERVICE LIST ========== */
.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 1rem;
  border-left: 4px solid var(--primary);
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--light);
}

@media (hover: hover) {
.service-list li:hover,
.service-list li:focus-within {
    transform: translateX(8px);
    background: #fff;
  }
}

.service-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.service-list a:hover {
  text-decoration: underline;
}

/* ========== AREA GRID ========== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 1rem;
}

.area-card {
  padding: 1.5rem;
  background: linear-gradient(135deg, #fff5f0, #ffe8dc);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  min-height: 44px;
}

@media (hover: hover) {
  .area-card:hover,
  .area-card:focus-within {
    transform: scale(1.05) translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

/* ========== PRICES GRID ========== */
.prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.price-card {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) {
  .price-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

.price-card .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.5rem 0;
}

/* ========== IMPORTANT INFO ========== */
.important-info {
  background: linear-gradient(135deg, #fff3e6, #fff0de);
  border-left: 6px solid var(--primary-dark);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

/* ========== IMAGE GALLERY ========== */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.image-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) {
  .image-gallery img:hover {
    transform: scale(1.03);
  }
}

/* ========== FAQ ========== */
.faq-item {
  background: var(--light);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  cursor: pointer;
}

@media (hover: hover) {
  .faq-item:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
  }
}

.faq-item summary {
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

/* ========== REVIEWS ========== */
.review-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) {
  .review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
}

/* ========== PRICES INFO ========== */
.prices-info {
  background: linear-gradient(135deg, #fff3e6, #fff0de);
  border-left: 6px solid var(--primary-dark);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

/* ========== FINAL CTA ========== */
.final-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 2.5rem;
  border-radius: 20px;
  margin: 2rem 0;
}

.final-cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.final-cta .btn-primary {
  background: white;
  color: var(--primary);
}

/* ========== STICKY CTA ========== */
.sticky-cta {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  gap: 10px;
  justify-content: center;
  z-index: 999;
}

.sticky-cta a {
  flex: 1;
  max-width: 220px;
  background: var(--primary);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-md);
  min-height: 48px;
}

@media (hover: hover) {
  .sticky-cta a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
  }
}

/* ========== FOOTER ========== */
footer {
  background: var(--dark);
  color: #f8f9fa;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

footer h3 {
  color: #FF9A3C;
  margin-bottom: 1rem;
  font-weight: 700;
}

footer h4 {
  color: #f8f9fa;
  font-weight: 700;
}

footer p {
  color: #e9ecef;
  line-height: 1.8;
}

footer a {
  color: #e9ecef;
  text-decoration: none;
  font-weight: 500;
}

@media (hover: hover) {
  footer a:hover {
    color: #FFB366;
    text-decoration: underline;
  }
}

footer i.fas,
footer i.fab {
  color: #FF9A3C;
  margin-right: 8px;
}

.footer-social a i {
  color: #fff;
}

.footer-hours {
  color: #2ECC71 !important;
  font-weight: 800 !important;
}

.footer-certificate {
  background: rgba(255, 154, 60, 0.15) !important;
  border: 1px solid rgba(255, 154, 60, 0.3) !important;
  color: #f8f9fa !important;
}

.footer-copyright {
  color: #dee2e6 !important;
  opacity: 1 !important;
}

footer span {
  color: #e9ecef;
}

/* ========== CALCULATOR PAGE COMPONENTS ========== */
body.kalkulator-page header {
  text-align: center;
}

body.kalkulator-page header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

body.kalkulator-page header p {
  max-width: 720px;
  margin: 0.25rem auto 0;
}

.kalkulator-page .form-group {
  margin: 1.5rem 0;
}

.kalkulator-page .form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1.05rem;
}

.kalkulator-page .form-group input,
.kalkulator-page .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  min-height: 48px;
}

.kalkulator-page .form-group input:focus,
.kalkulator-page .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18);
}

.kalkulator-page #extra-title {
  margin: 2.5rem 0 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: left;
}

.kalkulator-page .checkbox-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.kalkulator-page .checkbox-group input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  min-width: 24px;
  flex-shrink: 0;
}

.kalkulator-page .checkbox-group label {
  flex: 1;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.kalkulator-page .number-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  border: 2px solid #e2e8f0;
}

.kalkulator-page .number-input button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) {
  .kalkulator-page .number-input button:hover {
    background: var(--primary-dark);
  }
}

.kalkulator-page .number-input input {
  width: 50px;
  text-align: center;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0;
  min-height: auto;
}

.kalkulator-page .calc-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--secondary), #1e7e34);
  color: #fff;
  padding: 18px 32px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  margin-top: 2rem;
  min-height: 56px;
}

@media (hover: hover) {
  .kalkulator-page .calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.3);
  }
}

.kalkulator-page .calc-btn:focus {
  outline: 3px solid #1e7e34;
  outline-offset: 3px;
}

.kalkulator-page .result {
  display: none;
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 20px;
  border: 3px solid var(--secondary);
}

.kalkulator-page .result h3 {
  text-align: center;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.kalkulator-page .final-price-card {
  background: linear-gradient(135deg, var(--secondary), #1e7e34);
  color: #fff;
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.kalkulator-page .final-price-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.kalkulator-page .price {
  font-size: 3rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.kalkulator-page .price-small {
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.95;
}

.kalkulator-page .breakdown {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.kalkulator-page .breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
}

.kalkulator-page .breakdown-item:last-child {
  border-bottom: none;
  font-size: 1.2rem;
  color: var(--primary);
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--primary);
}

.kalkulator-page .call-now {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  min-height: 56px;
}

@media (hover: hover) {
  .kalkulator-page .call-now:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
  }
}

.kalkulator-page .sticky-phone {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--secondary);
  color: #fff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(40, 167, 69, 0.4);
  z-index: 999;
  text-decoration: none;
}

@media (hover: hover) {
  .kalkulator-page .sticky-phone:hover {
    transform: scale(1.1);
  }
}

@media (max-width: 768px) {
  .kalkulator-page .checkbox-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .kalkulator-page .number-input {
    align-self: flex-end;
  }

  .kalkulator-page .price {
    font-size: 2.2rem;
  }

  .kalkulator-page .sticky-phone {
    width: 56px;
    height: 56px;
    bottom: 15px;
    right: 15px;
  }
}

/* ========== KALKULATOR SEO SECTION TITLE ========== */
.kalkulator-page section.container > article > header h2 {
  color: #000000;
}

.kalkulator-page section.container > article > header p {
  color: #000000;
}

/* ========== PARTNERS ========== */
.partners-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding: 0;
}

.partner-link {
  padding: 1rem;
  background: var(--light);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text);
  text-decoration: none;
  display: block;
}

@media (hover: hover) {
  .partner-link:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

/* ========== NEARBY AREAS (NEW) ========== */
.nearby-distance {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
  }

  .sticky-cta {
    bottom: 0.5rem;
    gap: 6px;
    padding: 0.5rem;
    flex-direction: column;
  }

  .sticky-cta a {
    font-size: 0.9rem;
    padding: 10px 8px;
    min-height: 44px;
    max-width: 100%;
  }

  .hero {
    padding: 1.5rem;
  }

  .prices-grid,
  .area-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  header, .sticky-cta, .language-selector, footer, nav, .breadcrumb, .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
