/* Andiamo V8.9: mobile and small tablet refinement.
   Add LAST on every page. Existing SEO copy and backend remain untouched. */
.site-header .nav-menu .mobile-services-toggle { display: none; }
@media (max-width: 980px) {
  html { scroll-padding-top: 90px; }
  .site-header { position: sticky; top: 0; z-index: 200; box-shadow: 0 5px 22px rgba(14, 50, 79, .07); }
  .site-header .nav {
    top: 100%; max-height: calc(100dvh - 88px); max-height: calc(100vh - 88px);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 13px 5% 23px;
  }
  .site-header .nav.is-open { display: flex; }
  .site-header .nav > a, .site-header .nav-menu > a { min-height: 45px; display: flex; align-items: center; }
  .site-header .nav .language-link { width: fit-content; min-height: 42px; margin-top: 16px; }
  .site-header .nav-menu { position: relative; }
  .site-header .nav-menu > a { padding-inline-end: 52px; }
  .site-header .nav-menu .mobile-services-toggle {
    position: absolute; inset-inline-end: 0; top: 5px; height: 36px; width: 38px;
    display: grid; place-items: center; padding: 0;
    border: 1px solid #d5e5f2; border-radius: 9px; background: #f4f9fd;
    color: #0c6caf; font-size: 20px; line-height: 1; cursor: pointer;
  }
  .site-header .nav-menu .mobile-services-toggle[aria-expanded="true"] { background: #e5f3ff; }
  html.mobile-menu-ready .site-header .nav-menu .submenu { display: none; }
  html.mobile-menu-ready .site-header .nav-menu .submenu.is-open {
    display: block; position: static; margin: 3px 0 10px; padding: 8px 14px;
    background: #f3f8fc; border-radius: 12px; box-shadow: none;
  }
  .site-header .nav-menu .submenu a { padding: 10px 7px; font-size: 13px; min-height: 40px; }
  /* Avoid any clipped long cards or text at tablet width. */
  .v7-section-head, .v86-section-heading, .v7-gallery-copy,
  .v86-quote-copy, .v7-city-content { min-width: 0; }
  .v86-cities .v86-city-content { padding: 27px 27px 30px; }
}
@media (max-width: 767px) {
  :root { --mobile-side: clamp(17px,5vw,27px); }
  html { scroll-padding-top: 79px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .container { width: auto; max-width: none; margin-inline: var(--mobile-side); }
  .site-header { height: 74px !important; }
  .site-header .nav { top: 100% !important; max-height: calc(100dvh - 74px); }
  .site-header .navrow { min-height: 74px; height: 74px; gap: 9px; }
  .brand-logo-img { width: clamp(115px,32vw,148px) !important; max-height: 68px; height: auto; }
  .site-header .logo { flex: 0 1 auto; min-width: 0; }
  .site-header .nav-cta { min-height: 39px; border-radius: 10px; padding: 10px 12px; font-size: 11px; line-height: 1.1; }
  .site-header .nav-toggle { width: 42px; height: 40px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 10px; }
  [dir="rtl"] .site-header .nav-toggle { order: 3; }
  [dir="rtl"] .site-header .nav-cta { margin-inline-start: auto; }

  /* Homepage: compact readable editorial hero. */
  .ds-hero-shell { padding-top: 30px; padding-bottom: 22px; }
  .ds-eyebrow { font-size: 10px !important; line-height: 1.55 !important; margin-bottom: 17px !important; gap: 9px; }
  .ds-eyebrow-mark { width: 24px; }
  .ds-hero h1 { font-size: clamp(36px,9vw,48px); line-height: 1.1; margin-bottom: 16px !important; text-wrap: balance; }
  .ds-description { max-width: 550px; margin-bottom: 20px !important; font-size: 14px; line-height: 1.75 !important; }
  .ds-hero-actions { margin-bottom: 18px; gap: 9px; }
  .ds-hero-actions a { min-height: 49px; border-radius: 12px; font-size: 13px; }
  .ds-location-note { font-size: 11px; gap: 8px; }
  .ds-hero-photo { height: clamp(285px,88vw,400px); }
  .ds-hero-photo>img { object-position: 51% 42%; }
  .ds-photo-label { bottom: 22px; left: 6%; right: 6%; }
  .ds-photo-label strong { font-size: clamp(22px,6vw,29px); max-width: 330px; }
  [dir="rtl"] .ds-photo-label { right: 6%; left: 6%; }
  .ds-hero-highlights { gap: 11px; padding-block: 14px; }
  .ds-hero-highlights span { min-height: 20px; font-size: 11px; }

  /* Quotations are the primary conversion action: form first, photo after. */
  .v86-quote { padding-top: 57px; padding-bottom: 62px; scroll-margin-top: 88px; }
  .v86-quote .v86-quote-layout { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .v86-quote-copy { display: contents; }
  .v86-quote-copy .v4-section-tag { order: 0; }
  .v86-quote-copy h2 { order: 1; margin: 4px 0 0; font-size: clamp(31px,7.9vw,40px); }
  .v86-quote-copy>p { order: 2; margin: 0; font-size: 14px; line-height: 1.65; }
  .v86-quote .v86-form-panel { order: 3; margin: 0; padding: 23px 18px; border-radius: 22px; }
  .v86-quote-callout { order: 4; height: 165px; margin-top: 2px; }
  .v86-quote-callout-label strong { font-size: 16px; }
  .andiamo-form input:not([type="checkbox"]), .andiamo-form select, .andiamo-form textarea {
    min-height: 48px; font-size: 16px !important; /* prevents iOS Safari focus zoom */
  }
  .andiamo-form textarea { min-height: 94px; }
  .andiamo-form label { line-height: 1.45; }
  .andiamo-form .consent-line { line-height: 1.55; }
  .andiamo-form .submit-btn { min-height: 53px; }
  .andiamo-turnstile { max-width: 100%; }

  /* Cards grow with content to avoid Arabic/text collision. */
  .v88-services { padding: 64px 0 72px; }
  .v88-services .v86-section-heading { margin-bottom: 25px; }
  .v88-services .v88-cards { gap: 16px; }
  .v88-services .v88-card {
    height: auto; min-height: 382px; border-radius: 22px;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding-top: 154px;
  }
  .v88-services .v88-card-photo { object-position: center 38%; }
  .v88-services .v88-card-shade { background: linear-gradient(180deg,rgba(3,32,52,.04) 0%,rgba(3,29,53,.10) 25%,rgba(4,25,47,.67) 58%,rgba(5,24,43,.98) 100%); }
  .v88-services .v88-card-content,
  [dir="rtl"] .v88-services .v88-card-content {
    position: relative; inset: auto; width: 100%; padding: 0 21px 23px; display: block;
  }
  .v88-services .v88-card-number { top: 16px; left: 17px; direction: ltr; unicode-bidi: isolate; }
  [dir="rtl"] .v88-services .v88-card-number { left: auto; right: 17px; }
  .v88-services .v88-card-kicker { margin-bottom: 9px; font-size: 10px; }
  .v88-services .v88-card h3 { font-size: clamp(23px,6vw,29px); line-height: 1.22; margin-bottom: 10px; }
  [dir="rtl"] .v88-services .v88-card h3 { font-size: clamp(24px,6vw,29px); line-height: 1.34; }
  .v88-services .v88-card-description { font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
  .v88-services .v88-card-action { min-height: 37px; }

  /* Location and photo gallery on phones. */
  .v86-cities { padding-top: 66px; padding-bottom: 72px; }
  .v86-cities .v7-city-grid { gap: 18px; }
  .v86-cities .v86-city-card { border-radius: 22px; }
  .v86-cities .v86-city-media { height: clamp(215px,63vw,280px); }
  .v86-cities .v86-city-content { padding: 23px 21px 27px; }
  .v86-cities .v86-city-content h3 { font-size: 23px; }
  .v86-cities .v86-city-content p { font-size: 13px; line-height: 1.7; }
  .v86-gallery { padding-top: 70px; padding-bottom: 70px; }
  .v86-gallery .v7-gallery-grid { gap: 28px; }
  .v86-gallery .v86-gallery-mosaic { gap: 12px; }
  .v86-gallery .v86-mosaic-card.large { min-height: 245px; }
  .v86-gallery .v86-mosaic-card.small { min-height: 210px; }
  .v86-process { padding: 66px 0; }
  .v86-process .v7-process-grid { gap: 12px; }
  .v86-process .v86-process-step { padding: 24px 21px; }
  .v86-faq { padding: 66px 0; }
  .v86-faq .v8-faq-grid details { padding: 18px 19px; }
  .v86-cta { padding: 58px 0 62px; }
  .v86-cta .v86-cta-inner h2 { font-size: clamp(27px,7vw,37px); }
  .footer-top { padding-bottom: 30px; }
  .site-footer { padding-top: 54px; }

  /* Floating contact actions: do not cover drone image, forms or footer. */
  .floating-contact { display: none !important; }
  .andiamo-mobile-actions {
    position: fixed; z-index: 220; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
    align-items: stretch; gap: 10px;
    padding: 10px max(var(--mobile-side),env(safe-area-inset-left,0px)) calc(10px + env(safe-area-inset-bottom,0px));
    background: rgba(255,255,255,.96); border-top: 1px solid #d9e8f2;
    box-shadow: 0 -10px 35px rgba(8,46,77,.11); backdrop-filter: blur(16px);
  }
  .andiamo-mobile-actions a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 9px 10px; border-radius: 12px;
    font-size: 13px; line-height: 1.2; font-weight: 800; text-decoration: none;
    white-space: nowrap;
  }
  .andiamo-mobile-actions:not(.is-shown) { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(110%); }
  .andiamo-mobile-actions.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
  .andiamo-mobile-actions { transition: opacity .25s ease, transform .25s ease, visibility .25s ease; }
  .andiamo-mobile-actions.is-input-active { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(110%); }
  .andiamo-mobile-actions .mobile-action-quote { color: #fff; background: #0a72bb; }
  .andiamo-mobile-actions .mobile-action-whatsapp { color: #fff; background: #0b8f71; }
  .andiamo-mobile-actions a:focus-visible { outline: 3px solid #33a7ef; outline-offset: 2px; }
  [dir="rtl"] .andiamo-mobile-actions { direction: rtl; }
}
@media (max-width: 360px) {
  .site-header .nav-cta { font-size: 10px; padding-inline: 9px; }
  .site-header .brand-logo-img { width: 108px !important; }
  .site-header .navrow { gap: 6px; }
  .ds-hero h1 { font-size: 34px; }
  [dir="rtl"] .ds-hero h1 { font-size: 34px; }
  .v88-services .v88-card { padding-top: 142px; }
  .andiamo-mobile-actions { gap: 7px; }
  .andiamo-mobile-actions a { font-size: 12px; }
  .v86-quote .v86-form-panel { padding-inline: 15px; }
}
@media (min-width: 768px) { .andiamo-mobile-actions { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ds-hero-photo>img, .v88-services .v88-card, .v88-services .v88-card-photo { animation: none !important; transition: none !important; }
}
