/* Shared alignment and mobile layout. Loaded after the colour palettes. */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 28px var(--gutter);
  font-size: 14px;
  line-height: 1.5;
}
.site-footer > * { min-width: 0; }
.footer-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.footer-brand { font-size: 14px; line-height: 1.5; }
.footer-copyright { white-space: nowrap; }
.footer-socials, .menu-socials { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
.footer-socials a, .menu-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-tagline { text-align: right; text-wrap: balance; }
.footer-socials a:hover, .menu-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-footer { align-items: center; flex-wrap: wrap; gap: 12px 28px; font-size: 16px; }
.menu-footer > * { min-width: 0; }
.menu-email a { overflow-wrap: anywhere; }
.menu-phone a { white-space: nowrap; }
.contact-area { max-width: 100%; font-size: 14px; line-height: 1.6; letter-spacing: .025em; margin-bottom: 22px; }
.about-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 2rem 0; padding: 1.5rem 0; border-block: 1px solid var(--about-line, rgba(28,91,107,.15)); }
.about-two-cols > *, .contact-option, .service-tile, .blog-card { min-width: 0; }

@media (max-width: 1100px) {
  .site-footer { grid-template-columns: 1fr; justify-items: center; gap: 10px; padding-block: 30px; text-align: center; }
  .footer-identity { justify-content: center; }
  .footer-tagline { text-align: center; }
}

@media (max-width: 700px) {
  :root { --gutter: clamp(20px, 5vw, 28px); }
  .site-header, .site-header.is-fixed {
    position: fixed;
    padding: 12px var(--gutter);
    gap: 8px 10px;
    animation: none;
  }
  .service-page .site-header, .blog-page .site-header, .pricing-page .site-header { position: fixed; }
  .brand-mark, .site-header.is-fixed .brand-mark { width: 44px; height: 44px; }
  .brand-name, .site-header.is-fixed .brand-name { font-size: 13px; }
  .brand { gap: 9px; min-width: 0; }
  .theme-toggle { width: 44px; height: 44px; padding: 10px; }
  .menu-toggle { min-width: 44px; min-height: 44px; padding: 10px 0; justify-content: center; }
  .menu-toggle > span:first-child { display: none; }
  .menu-toggle:hover .menu-lines { width: 26px; }
  .header-quote, .site-header.is-fixed .header-quote { min-height: 44px; padding: 10px 12px; font-size: 14px; line-height: 1.35; gap: 9px; }
  .service-landing { padding-top: calc(var(--header-height, 121px) + 30px); padding-bottom: 36px; }
  .service-main, .blog-main, .pricing-main { padding-top: var(--header-height, 121px); }
  section[id], #o-nas { scroll-margin-top: calc(var(--header-height, 121px) + 16px) !important; }
  .landing-heading h1 { font-size: clamp(30px, 7.5vw, 40px); line-height: 1.15; }
  .landing-location { margin-top: 14px; }
  .landing-bottom > a { min-height: 44px; flex-wrap: wrap; gap: 4px 12px; }
  .landing-bottom strong { font-size: 18px; }
  .section-pad { padding-block: 52px; }
  .eyebrow, .landing-heading .eyebrow, .section-kicker { font-size: 14px; }
  .display-title { font-size: clamp(35px, 9vw, 52px); line-height: 1.12; }
  .intro-copy { font-size: 18px; line-height: 1.6; letter-spacing: 0; }
  .intro-copy p + p { font-size: 16px; line-height: 1.7; }
  .about-stats { gap: 12px; }
  .about-stats > div > span:first-child { font-size: clamp(29px, 8vw, 42px) !important; }
  .services-layout { gap: 28px; }
  .service summary { min-height: 64px; padding-block: 20px; }
  .service summary h3 { font-size: 24px; line-height: 1.25; }
  .estimate-start > strong { font-size: 27px; }
  .blog-section-heading h2, .estimate-process-heading h2 { font-size: 36px; line-height: 1.15; }
  .blog-all { white-space: normal; line-height: 1.5; min-height: 44px; }
  .blog-card { padding: 24px 20px; }
  .blog-card h3 { font-size: 26px; line-height: 1.2; }
  .blog-card > p { line-height: 1.65; }
  .contact-area { font-size: 14px; margin-bottom: 20px; max-width: 31ch; }
  .contact .contact-title { font-size: clamp(34px, 9vw, 54px); line-height: 1.12; }
  .contact-lead { font-size: 17px; line-height: 1.65; }
  .contact-options { gap: 18px; }
  .contact-option { padding: 26px 20px; }
  .contact-option h3 { font-size: 27px; line-height: 1.2; }
  .contact-option-label { font-size: 14px; margin-bottom: 18px; }
  .contact-number { font-size: clamp(30px, 9vw, 40px); }
  .contact-email { max-width: 100%; font-size: clamp(18px, 5.3vw, 24px); }
  .contact-action { font-size: 16px; min-height: 48px; padding: 14px 12px; }
  .contact-email-note { font-size: 14px; }
  .contact-return { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
  .site-footer { gap: 10px; padding: 28px var(--gutter); }
  .footer-identity { gap: 6px 12px; }
  .footer-socials { gap: 6px 24px; }
  .footer-tagline { max-width: 32ch; }
  .menu-dialog { padding: 20px var(--gutter) max(24px, env(safe-area-inset-bottom)); }
  .menu-header { font-size: 13px; gap: 18px; }
  .dialog-close { min-width: 44px; min-height: 44px; }
  .menu-dialog nav { gap: 4px; padding: 22px 0; }
  .menu-dialog nav a { display: flex; align-items: center; min-height: 48px; padding: 6px 0; font-size: clamp(30px, 8vw, 40px); line-height: 1.15; }
  .menu-dialog nav a:hover { transform: none; }
  .menu-footer { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; padding-top: 14px; font-size: 16px; text-align: center; }
  .menu-phone { grid-row: 2; }
  .menu-socials { gap: 6px 24px; font-size: 14px; }
  .service-intro h1, .article-header h1, .blog-page-heading h1 { font-size: clamp(32px, 8.5vw, 44px); line-height: 1.15; overflow-wrap: break-word; }
  .feature-item h3 { text-wrap: initial; }
  .article-contact { padding: 26px 20px; }
  .article-contact > div > a { min-height: 48px; text-align: center; }
  .blog-topic-nav { display: grid; grid-template-columns: minmax(0, 1fr); }
  .blog-topic-nav a { justify-content: space-between; min-height: 48px; }
}

@media (max-width: 540px) {
  .service-tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .service-tile { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; grid-template-rows: auto auto; gap: 6px 14px; min-height: 104px; padding: 20px 16px; align-items: center; border-radius: 10px; }
  .tile-icon { grid-column: 1; grid-row: 1 / 3; width: 44px; height: 44px; margin: 0; }
  .service-tile h2 { grid-column: 2; font-size: 21px; line-height: 1.2; max-width: 100%; align-self: end; }
  .service-tile p { grid-column: 2; font-size: 15px; line-height: 1.45; margin: 0; align-self: start; }
  .tile-more { position: static; grid-column: 3; grid-row: 1 / 3; width: 24px; height: 24px; font-size: 20px; }
  .service-tile:hover { transform: none; }
}

@media (max-width: 360px) {
  .about-stats { grid-template-columns: 1fr; gap: 18px; }
  .about-stats > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; }
  .about-stats > div > span:first-child { margin-bottom: 0 !important; }
  .service-tile { grid-template-columns: 36px minmax(0, 1fr) 22px; gap: 6px 10px; }
  .tile-icon { width: 36px; height: 36px; }
  .tile-icon svg { width: 28px; height: 28px; }
  .service-tile h2 { font-size: 20px; }
}
