/* Deferred main styles */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--background);
  z-index: 99;
  padding: 1.25rem 1rem 2rem;
  overflow: auto;
  border-top: 1px solid var(--border);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.mobile-menu a {
  display: block;
  padding: 0.85rem 0.25rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-cta { display: grid; gap: 0.65rem; }
body.menu-open { overflow: hidden; }

.section { padding: 3.25rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-title { margin: 0 0 0.5rem; font-size: clamp(1.45rem, 3vw, 1.85rem); }
.section-intro { margin: 0 0 1.75rem; color: var(--muted); max-width: 52ch; }

.page-hero {
  padding: 2rem 0 1.25rem;
  background:
    linear-gradient(135deg, #f5f5f5 0%, var(--background) 50%, #faf0f0 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.2;
}
.page-lead { margin: 0; color: var(--muted); max-width: 48ch; }

.breadcrumbs { margin-bottom: 0.75rem; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--secondary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.prose h2 { margin-top: 0; font-size: 1.45rem; }
.prose h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.prose p, .prose li { color: var(--text); }
.prose .muted, .muted { color: var(--muted); }

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}

.media-block {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f0f0f0;
}
.media-block picture { display: block; }
.media-block img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-link {
  display: block;
  height: 100%;
  padding: 1.45rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}
.service-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s ease;
}
.service-link:hover {
  border-color: #f0c4c4;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-link:hover::before { transform: scaleY(1); }
.service-link h2,
.service-link h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  color: var(--primary);
}
.service-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.service-grid-lg .service-link { padding: 1.6rem 1.4rem; }
.service-grid-lg .service-link h2 { font-size: 1.2rem; }

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}
.process-list li {
  position: relative;
  padding-left: 3rem;
}
.process-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.process-list h3 { margin: 0.15rem 0 0.25rem; }
.process-list p { margin: 0; color: var(--muted); }

.check-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.7rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.7rem;
  height: 0.35rem;
  border-left: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
  transform: rotate(-45deg);
}

.faq-list { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0.75rem 0 0.25rem;
  color: var(--muted);
}

.cta-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2a2a2a 55%, #7f1d1d 100%);
  color: #fff;
  padding: 2.75rem 0;
}
.cta-band-inner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
.cta-band h2 { margin: 0 0 0.4rem; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,0.88); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
@media (min-width: 800px) {
  .cta-band-inner { grid-template-columns: 1.4fr auto; }
}

.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.86);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-logo {
  margin: 0 0 0.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.footer-text { margin: 0; color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f87171;
}
.footer-links, .footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.footer-links a, .footer-contact a {
  color: rgba(255,255,255,0.86);
  text-decoration: none;
}
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.footer-bottom p { margin: 0; }

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0.65rem 1rem 0.65rem 0.75rem;
  border-radius: 999px;
  background: #1fad4c;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.22);
  transition: transform 0.15s ease, background 0.15s ease;
}
.wa-float:hover {
  color: #fff;
  background: #18963f;
  transform: translateY(-2px);
}
.wa-float-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.wa-float-text { padding-right: 0.15rem; }

.mobile-cta {
  display: none;
}

@media (max-width: 860px) {
  .wa-float { display: none; }
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #141414;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.55rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom));
  }
  .mobile-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    margin: 0 0.25rem;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
  }
  .mobile-cta-phone { background: #1f1f1f; border: 1px solid rgba(255,255,255,0.14); }
  .mobile-cta-wa { background: #1fad4c; }
  body.has-mobile-cta {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }
  body.has-mobile-cta .site-footer {
    padding-bottom: 0.5rem;
  }
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.blog-card a {
  display: block;
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
}
.blog-card a:hover { border-color: var(--secondary); }
.blog-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--primary);
}
.blog-card time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.blog-card p { margin: 0 0 0.75rem; color: var(--muted); }
.read-more { font-weight: 650; color: var(--secondary); font-size: 0.92rem; }

.article-header { margin-bottom: 1.5rem; }
.article-header h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.25;
}
.article-header time { color: var(--muted); font-size: 0.9rem; }
.article-cover {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.article-body { margin-bottom: 2rem; }
.article-back a { font-weight: 600; text-decoration: none; }

.contact-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .contact-layout { grid-template-columns: 1.05fr 0.95fr; align-items: stretch; }
}
.contact-card, .map-panel, .map-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card h2,
.map-panel h2 {
  margin: 0 0 1.1rem;
  font-size: 1.25rem;
}
.map-note {
  margin: -0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 1.05rem;
}
.contact-list li {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.contact-list .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-value {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.45;
}
a.contact-value:hover { color: var(--secondary); }
.contact-cta { margin-top: 0.25rem; }
.notice {
  background: #faf0f0;
  border: 1px solid #f0c4c4;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}
.map-lazy { display: grid; gap: 0.75rem; }
.map-frame {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--light);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.map-placeholder p { margin: 0 0 0.5rem; color: var(--muted); }

.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;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--light);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
