/* VIO — mobile & touch-friendly overrides */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

/* Prevent iOS input zoom */
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Touch-friendly tap targets */
.btn,
.menu-toggle,
.service-arrow,
.service-dots button,
.cookie-banner__button,
.chat-widget,
.nav__links a,
.nav__cta a,
.mobile-menu nav a {
  min-height: 44px;
  min-width: 44px;
}

.menu-toggle {
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
}

/* ── Tablet & below ── */
@media (max-width: 980px) {
  .service-area {
    padding: 48px 0;
    min-height: 0;
    overflow: visible;
  }

  .service-area__panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: min(100% - 24px, 1120px);
  }

  .service-area__copy {
    width: 100%;
    max-width: none;
    order: 1;
  }

  .map-card {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  .map-card img {
    min-height: 280px;
    height: auto;
    max-height: 420px;
    width: 100%;
    object-fit: cover;
  }

  .area-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .brand {
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .brand img {
    height: 56px;
    max-width: min(175px, 42vw);
  }

  .nav__cta .btn.btn--small {
    display: inline-flex !important;
    align-items: center;
    font-size: 9px;
    letter-spacing: 0.06em;
    padding: 0 12px;
    white-space: nowrap;
  }

  .nav__cta {
    gap: 6px;
  }

  .owner__intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .owner__photo img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
  }

  .leilanys-way__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .leilanys-way__media img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
  }

  .service-cta__card {
    text-align: left;
    gap: 20px;
  }

  .service-cta__card .btn {
    width: 100%;
    justify-content: center;
  }

  .airbnb-emergency {
    padding: 48px 0 52px;
  }

  .airbnb-emergency__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .airbnb-emergency__media img {
    height: 280px;
  }

  .airbnb-emergency__actions {
    flex-direction: column;
  }

  .airbnb-emergency__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Phone ── */
@media (max-width: 700px) {
  .container {
    width: min(100% - 20px, 1120px);
  }

  /* Hero — no cutout overlap */
  .hero {
    padding: 28px 0 36px;
  }

  .hero__grid {
    min-height: 0 !important;
    display: block;
  }

  .hero__copy {
    padding-bottom: 0;
  }

  .hero__copy h1 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1;
  }

  .hero__copy > p {
    font-size: 15px;
    line-height: 1.55;
  }

  .quote-form {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0 0 !important;
    padding: 18px 14px 14px !important;
    box-sizing: border-box;
  }

  .quote-form__consent {
    font-size: 11px;
  }

  .reviews {
    padding-top: 48px;
  }

  .section-heading h2 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .testimonials-grid {
    gap: 14px;
  }

  .testimonial-card {
    padding: 18px;
  }

  .owner {
    padding: 48px 0;
  }

  .owner__photo img {
    max-height: 280px;
  }

  .services {
    padding: 40px 0 20px;
  }

  .service-carousel {
    width: 100%;
  }

  .service-block__copy {
    padding: 18px 14px;
  }

  .service-block h3 {
    font-size: 18px;
  }

  .service-block ul {
    font-size: 13px;
    gap: 6px;
  }

  .service-arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .service-arrow--prev {
    left: 4px;
  }

  .service-arrow--next {
    right: 4px;
  }

  .portfolio-grid {
    width: 100%;
    padding-inline: 0;
  }

  .portfolio-card img {
    height: 220px;
    object-fit: cover;
  }

  .work {
    padding: 24px 0 32px;
  }

  .way-list div {
    padding: 14px 0;
  }

  .service-area__copy h2 {
    font-size: clamp(20px, 5.5vw, 24px);
  }

  .map-card img {
    min-height: 260px;
    max-height: 340px;
  }

  .btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 11px;
  }

  .btn--small {
    min-height: 44px;
    padding: 0 14px;
  }

  .mobile-menu .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-banner {
    min-height: 200px;
    border-radius: 0;
  }

  .contact-banner img {
    height: 200px;
    object-fit: cover;
  }

  .contact-banner__copy {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .contact-banner__copy h1 {
    font-size: clamp(26px, 7vw, 32px);
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .request-form .btn {
    width: 100%;
  }

  /* Services page */
  .services-page-hero .contact-banner img {
    height: 200px;
  }

  .services-card-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .services-card img {
    height: 200px;
    object-fit: cover;
  }

  .services-card h2 {
    font-size: 20px;
  }

  .services-card p {
    font-size: 14px;
  }

  /* Footer */
  .site-footer {
    padding: 32px 0 24px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-grid > div:first-child img {
    width: 145px;
    height: auto;
  }

  .footer-bottom {
    text-align: left;
  }

  .footer-bottom p {
    font-size: 12px;
    line-height: 1.5;
  }

  /* Floating widgets */
  .chat-widget {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .cookie-banner {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-width: none;
  }

  /* Legal pages */
  main[style*="padding"] .container {
    padding-inline: 4px;
  }

  main[style*="padding"] h1 {
    font-size: 28px;
  }
}

/* ── Small phones ── */
@media (max-width: 420px) {
  .brand {
    width: auto;
    height: auto;
  }

  .brand img {
    height: 44px;
    max-width: min(140px, 48vw);
  }

  .nav {
    gap: 12px;
  }

  .hero__copy h1 {
    font-size: 26px;
  }

  .quote-form {
    padding: 14px 12px 12px !important;
  }

  .area-pills {
    grid-template-columns: 1fr;
  }

  .map-card img {
    min-height: 240px;
    max-height: 300px;
  }

  .mobile-menu {
    width: min(300px, 92vw);
    padding: 24px 20px;
  }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}
