/* Miro Teknik Servis — UI refinement layer, 2026-09-18 */
:root {
  --ui-blue: #075f98;
  --ui-blue-dark: #084d77;
  --ui-ink: #091927;
  --ui-soft: #f3f8fb;
  --ui-line: #d8e4eb;
  --ui-focus: #ffbf47;
  --ui-shadow: 0 18px 50px rgba(9, 25, 39, .09);
}

html { scroll-padding-top: 92px; }
body { color: var(--ui-ink); text-rendering: optimizeLegibility; }

/* Header and navigation */
.site-header { background: rgba(255, 255, 255, .93); backdrop-filter: blur(16px) saturate(140%); }
.header-inner { min-height: 76px; gap: 24px; }
.brand img { width: 190px; }
.nav-list { gap: 5px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
}
.nav-link:hover { background: #f0f6f9; }
.nav-link::after { display: none; }

/* A consistent, calm interaction language */
.btn { min-height: 46px; border-radius: 12px; letter-spacing: -.01em; }
.btn-primary { background: var(--ui-blue); box-shadow: 0 8px 22px rgba(7, 95, 152, .16); }
.btn-primary:hover { background: var(--ui-blue-dark); transform: translateY(-1px); }
.btn-whatsapp { box-shadow: 0 8px 22px rgba(15, 122, 65, .14); }
.btn-whatsapp:hover { transform: translateY(-1px); }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ui-focus) !important;
  outline-offset: 3px;
}

/* Home hero: more confident hierarchy, less template-like decoration */
.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(10, 103, 163, .11), transparent 28rem),
    linear-gradient(180deg, #f7fbfd 0%, #fff 86%);
}
.hero::before { display: none; }
.hero-grid { gap: clamp(38px, 5vw, 70px); }
.hero h1 { max-width: 760px; font-size: clamp(2.6rem, 4.45vw, 4.35rem); line-height: 1.01; }
.hero-lead { max-width: 620px; }
.hero-frame { border: 0; border-radius: 28px 28px 28px 8px; box-shadow: var(--ui-shadow); }
.hero-info { border: 1px solid rgba(216, 228, 235, .9); box-shadow: 0 12px 30px rgba(9, 25, 39, .1); }
.hero-chip { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 14px; }
.quick-request { margin-top: -26px; }

/* Cards and sections */
.section { padding-block: clamp(62px, 7vw, 98px); }
.section-head { margin-bottom: 34px; }
.section-title { max-width: 760px; text-wrap: balance; }
.services-grid { gap: 16px; }
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 26px;
  box-shadow: none;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ui-blue), #65a7cf);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover::before { opacity: 1; }
.service-card a, .section-link a, .footer-links a, .footer-grid a, .breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.process-card, .guide-card, .answer-card, .contact-card, .aside-card, .request-panel { box-shadow: none; }
.answer-card, .contact-card, .aside-card, .request-panel { border-color: var(--ui-line); }
.blue-surface { background: #edf6fb; }

/* Inner templates are visually distinct by intent */
body[data-page-type="service"] .service-hero {
  background: linear-gradient(135deg, #f3f9fc 0%, #fff 64%);
  border-top: 5px solid rgba(7, 95, 152, .16);
}
body[data-page-type="region"] .service-hero,
body[data-page-type="location"] .service-hero,
body[data-page-type="location_service"] .service-hero {
  background: linear-gradient(135deg, #f7faf8 0%, #fff 62%);
  border-top: 5px solid rgba(15, 122, 65, .14);
}
.service-hero-copy h1, .inner-hero h1 { text-wrap: balance; }
.service-hero-media { border-radius: 24px 24px 24px 7px; box-shadow: var(--ui-shadow); }
.service-aside { top: 92px; }
.breadcrumb { margin-bottom: 28px; }
.breadcrumb a, .breadcrumb span { min-height: 44px; align-items: center; }

/* Lead pages: focused conversion without looking disconnected */
.lp-header { background: rgba(255, 255, 255, .94); }
.lp-hero { background: linear-gradient(135deg, #f2f8fb 0%, #fff 58%, #e9f4f9 100%); }
.lp-hero h1 { font-size: clamp(2.7rem, 5.1vw, 4.65rem); text-wrap: balance; }
.lp-media { border-radius: 26px 26px 26px 8px; box-shadow: var(--ui-shadow); }
.lp-checks li { min-height: 32px; }

/* Forms: visible state and recovery */
.request-panel input, .request-panel select, .request-panel textarea {
  min-height: 48px;
  border-color: #bfcfd9;
}
.request-panel textarea { min-height: 118px; }
.request-panel [aria-invalid="true"], .quick-request [aria-invalid="true"] {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .1) !important;
}
.ui-form-error {
  margin: 8px 0 0;
  color: #9f2018;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.45;
}
.ui-form-error:empty { display: none; }

/* Mobile disclosure keeps long directory pages scannable without removing content */
.ui-disclosure {
  display: none;
  width: fit-content;
  min-height: 44px;
  margin: 22px auto 0;
  padding: 10px 16px;
  border: 1px solid #b8ccd8;
  border-radius: 11px;
  background: #fff;
  color: var(--ui-blue-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* Drawer is a real modal surface on small screens */
.mobile-drawer { overscroll-behavior: contain; }
.drawer-head { min-height: 76px; }
.drawer-head img { width: 160px; height: auto !important; max-height: 54px; object-fit: contain; }
.drawer-links a, .drawer-service-grid a { min-height: 46px; display: flex; align-items: center; }
.drawer-close, .mobile-menu-btn { width: 46px; height: 46px; align-items: center; justify-content: center; }

/* Footer and lower-priority navigation */
.site-footer { padding-top: 54px; }
.footer-brand img, .footer-logo { width: 190px; height: auto !important; }
.footer-links { gap: 2px; }
.footer-grid > div > a { padding-block: 3px; }

@media (max-width: 1050px) {
  .header-inner { min-height: 72px; }
  .brand img { width: 176px; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 78px; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .site-header { backdrop-filter: blur(14px); }
  .header-inner { min-height: 70px; }
  .brand img { width: 158px; }
  .mobile-menu-btn { display: inline-flex; }
  .mobile-drawer { padding-bottom: env(safe-area-inset-bottom); }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3.25rem); }
  .hero-frame { border-radius: 22px 22px 22px 7px; }
  .quick-request { margin-top: 0; }
  .section { padding-block: 60px; }
  .service-card a, .footer-links a, .footer-grid a, .breadcrumb a { min-height: 44px; }
  .ui-disclosure { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-sticky {
    min-height: 62px;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 28px rgba(9, 25, 39, .13);
  }
  .mobile-sticky a { min-height: 58px; }
}

@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
  .hero-links { margin-top: 22px; }
  .service-hero-copy h1, .inner-hero h1, .lp-hero h1 { letter-spacing: -.04em; }
  .service-hero-media, .lp-media { border-radius: 19px 19px 19px 6px; }
  .service-card { padding: 22px; }
  .request-panel { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .service-card, .service-card::before { transition: none !important; transform: none !important; }
  html { scroll-behavior: auto !important; }
}
