/* iOS-style mobile app UI — professional native feel */

.header-call,
.header-whatsapp,
.header-actions,
.app-tabbar {
  display: none;
}

@media (max-width: 720px) {
  :root {
    --header-h: 50px;
    --tabbar-h: 52px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-5: 40px;
    --ios-bg: #f2f2f7;
    --ios-card: #ffffff;
    --ios-separator: rgba(60, 60, 67, 0.14);
    --ios-radius: 14px;
    --ios-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }

  html {
    scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px);
    overflow-x: clip;
  }

  body.is-mobile {
    font-size: 15px;
    line-height: 1.5;
    background: var(--ios-bg);
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
    overflow-x: clip;
  }

  body.is-mobile > main {
    padding-top: 0;
  }

  .scroll-progress { display: none; }

  .container {
    width: min(100% - 20px, var(--container));
  }

  /* Typography */
  h1 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
  }

  h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  h3 { font-size: 0.95rem; font-weight: 600; }

  .eyebrow {
    font-size: 0.7rem;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
    text-transform: none;
    font-weight: 600;
  }

  .lead {
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.5;
    color: var(--text-body);
  }

  .section-head { margin-bottom: 14px; }

  .section-head--center::after { display: none; }

  .section-head__desc {
    font-size: 0.84rem;
    margin-top: 4px;
    line-height: 1.45;
  }

  /* Horizontal scroll sliders — less vertical scrolling */
  .mobile-hscroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    padding: 2px 2px 10px;
  }

  .mobile-hscroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-hscroll > * {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .mobile-hscroll--bleed {
    width: calc(100% + 20px);
    margin-left: -10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .hscroll-hint::after {
    content: 'Swipe to explore →';
    display: block;
    margin-top: 6px;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
  }

  .section-head--center.hscroll-hint::after {
    margin-left: auto;
    margin-right: auto;
  }

  /* iOS navigation bar — fixed on scroll */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 250;
    height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--ios-separator);
    box-shadow: none;
    animation: none;
    will-change: background, border-color;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .header::before {
    display: block;
    height: 2px;
    top: env(safe-area-inset-top, 0px);
  }

  .header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(60, 60, 67, 0.22);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  }

  .header__inner {
    height: var(--header-h);
    justify-content: space-between;
    gap: 8px;
  }

  .brand { gap: 8px; }

  .brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    padding: 5px;
    box-shadow: none;
    border-color: rgba(35, 189, 184, 0.2);
  }

  .brand:hover .brand__mark { transform: none; }

  .brand__name {
    font-size: 0.95rem;
    font-weight: 700;
  }

  .brand__tagline {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }

  .nav { display: none; }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .header-call,
  .header-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ios-bg);
    flex-shrink: 0;
  }

  .header-call {
    color: var(--accent-green);
  }

  .header-whatsapp {
    color: #25d366;
  }

  .header-call svg,
  .header-whatsapp svg { width: 17px; height: 17px; }

  .header-call:active,
  .header-whatsapp:active { transform: scale(0.92); opacity: 0.7; }

  /* iOS tab bar */
  .app-tabbar {
    display: flex;
    position: fixed;
    inset: auto 0 0;
    z-index: 200;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid var(--ios-separator);
    box-shadow: none;
  }

  .app-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px 4px;
    font-size: 0.58rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s ease;
    user-select: none;
  }

  .app-tabbar__item::before { display: none; }

  .app-tabbar__item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.7;
    transition: transform 0.15s ease;
  }

  .app-tabbar__item.active {
    color: var(--accent-green);
  }

  .app-tabbar__item.active svg {
    transform: none;
    stroke-width: 2.2;
  }

  .app-tabbar__item--whatsapp {
    color: #25d366;
  }

  .app-tabbar__item--whatsapp svg {
    fill: currentColor;
    stroke: none;
    stroke-width: 0;
  }

  .app-tabbar__item--whatsapp.active {
    color: #1ebe57;
  }

  .app-tabbar__item:active { opacity: 0.55; }

  /* App screens */
  .section {
    padding: 16px 0;
    background: transparent;
  }

  .section--alt { background: transparent; }

  .section--contact {
    padding: 20px 0 24px;
    background: transparent;
  }

  /* Hero — app home */
  .hero {
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px) 0 16px;
    background: var(--ios-card);
    border-bottom: 0.5px solid var(--ios-separator);
  }

  .hero__bg::before {
    background: linear-gradient(180deg, #fff 0%, var(--ios-bg) 100%);
  }

  .hero__orbs { display: none; }

  .hero__grid { gap: 14px; }

  .hero__actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero__actions .btn {
    width: 100%;
    padding: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
  }

  .hero__actions .btn--primary {
    box-shadow: 0 4px 14px rgba(34, 156, 72, 0.28);
  }

  .hero__panel { margin-top: 0; }

  .hero__panel-card {
    padding: 0;
    background: var(--ios-bg);
    border: none;
    border-radius: var(--ios-radius);
    box-shadow: none;
    overflow: visible;
  }

  .hero__panel-label {
    font-size: 0.65rem;
    padding: 10px 14px 0;
    margin-bottom: 4px;
    color: var(--text-muted);
  }

  .hero__panel-list {
    display: flex;
    flex-direction: row;
    gap: 0;
  }

  .hero__panel-list li {
    flex: 0 0 42%;
    max-width: 160px;
    padding: 12px 14px;
    font-size: 0.75rem;
    border-bottom: none;
    border-right: 0.5px solid var(--ios-separator);
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .hero__panel-list li:last-child {
    border-right: none;
  }

  .hero__panel-list li:nth-child(odd) {
    border-right: 0.5px solid var(--ios-separator);
  }

  .hero__panel-list li:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .hero__panel-list span {
    font-size: 1.1rem;
    min-width: auto;
  }

  /* Value strip */
  .strip {
    padding: 12px 0;
    background: transparent;
    border: none;
  }

  .strip__grid article {
    flex: 0 0 78%;
    max-width: 280px;
    padding: 14px;
    background: var(--ios-card);
    border: none;
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-shadow);
  }

  .strip h3 {
    font-size: 0.88rem;
    margin-bottom: 4px;
  }

  .strip p {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  /* About */
  .about__grid { gap: 12px; }

  .about__content {
    background: var(--ios-card);
    border-radius: var(--ios-radius);
    padding: 16px;
    box-shadow: var(--ios-shadow);
  }

  .about__content p {
    font-size: 0.86rem;
    margin-bottom: 10px;
    line-height: 1.5;
  }

  .checklist {
    margin-top: 10px;
    background: var(--ios-bg);
    border-radius: 10px;
    overflow: hidden;
  }

  .checklist li {
    font-size: 0.82rem;
    padding: 10px 12px 10px 36px;
    margin-bottom: 0;
    border-bottom: 0.5px solid var(--ios-separator);
  }

  .checklist li:last-child { border-bottom: none; }

  .checklist li::before {
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    left: 12px;
  }

  .about__aside {
    gap: 10px;
  }

  .about__aside .info-card {
    flex: 0 0 78%;
    max-width: 280px;
  }

  .info-card {
    padding: 14px 16px;
    border-radius: var(--ios-radius);
    border: none;
    box-shadow: var(--ios-shadow);
  }

  .info-card--accent {
    background: var(--ios-card);
    border: none;
  }

  .info-card h4 {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .info-card p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  /* Services — horizontal card slider */
  #services {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #services .section-head {
    margin-bottom: 12px;
    text-align: left;
  }

  #services .section-head h2 {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  #services .section-head__desc {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  #services .cards--app.mobile-hscroll {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  #services .cards--app .card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 78%;
    max-width: 280px;
    width: auto;
    min-height: 200px;
    padding: 16px;
    border-radius: var(--ios-radius);
    border: 0.5px solid var(--ios-separator);
    box-shadow: var(--ios-shadow);
    background: var(--ios-card);
    position: relative;
  }

  #services .cards--app .card:last-child {
    border-bottom: 0.5px solid var(--ios-separator);
  }

  #services .cards--app .card::before,
  #services .cards--app .card::after {
    display: none;
  }

  #services .cards--app .card:active {
    background: var(--bg-subtle);
  }

  #services .cards--app .card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(34, 156, 72, 0.12), rgba(35, 189, 184, 0.16));
    border: 1px solid rgba(35, 189, 184, 0.22);
    color: var(--accent-green);
  }

  #services .cards--app .card__icon svg {
    width: 20px;
    height: 20px;
  }

  #services .cards--app .card h3 {
    margin-bottom: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.3;
    padding-top: 0;
  }

  #services .cards--app .card p {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-body);
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  /* Approach — horizontal step slider */
  #approach {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #approach .section-head {
    margin-bottom: 12px;
    text-align: left;
  }

  #approach .section-head h2 {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .steps--timeline {
    position: relative;
    gap: 12px;
    padding: 2px 0 10px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .steps--timeline::before {
    display: none;
  }

  .steps--timeline .step {
    display: flex;
    flex-direction: column;
    flex: 0 0 78%;
    max-width: 280px;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    margin-left: 0;
    background: var(--ios-card);
    border: 0.5px solid var(--ios-separator);
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-shadow);
    position: relative;
    z-index: 1;
  }

  .steps--timeline .step:last-child {
    border-bottom: 0.5px solid var(--ios-separator);
  }

  .steps--timeline .step:active {
    transform: scale(0.99);
    background: var(--bg-subtle);
  }

  .steps--timeline .step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-green);
    -webkit-text-fill-color: #fff;
    background-clip: border-box;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(34, 156, 72, 0.28);
    align-self: flex-start;
  }

  .steps--timeline .step__body {
    padding-top: 0;
  }

  .steps--timeline .step__body h3 {
    margin-bottom: 4px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.25;
  }

  .steps--timeline .step__body p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-body);
    margin: 0;
  }

  /* Metrics — horizontal slider */
  .metrics {
    padding: 16px 0;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    background: transparent;
  }

  .metrics .container {
    width: 100%;
    padding: 0;
    overflow: visible;
  }

  .metrics__grid {
    gap: 10px;
    padding-bottom: 4px;
  }

  .metrics__grid .metric {
    flex: 0 0 44%;
    max-width: 180px;
    padding: 16px 12px;
    background: var(--gradient-green);
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-shadow);
  }

  .metric__value { font-size: 1.5rem; }

  .metric__suffix { font-size: 0.95rem; }

  .metric__label {
    font-size: 0.68rem;
    margin-top: 2px;
  }

  /* CTA */
  .cta {
    padding: 16px 0;
    background: transparent;
  }

  .cta::before { display: none; }

  .cta .container {
    background: var(--text-heading);
    border-radius: var(--ios-radius);
    padding: 20px 16px;
    box-shadow: var(--ios-shadow);
  }

  .cta__inner {
    flex-direction: column;
    text-align: left;
    gap: 14px;
  }

  .cta h2 {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }

  .cta p { font-size: 0.82rem; }

  .cta .btn--white {
    width: 100%;
    padding: 13px;
    font-size: 0.88rem;
    border-radius: 12px;
  }

  /* Contact */
  .contact__top { margin-bottom: 12px; }

  .contact__intro h2 { margin-bottom: 4px; }

  .contact__intro-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .contact__top .contact__intro::after {
    content: 'Swipe contact cards →';
    display: block;
    margin-top: 6px;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
  }

  .contact { gap: 12px; }

  /* iOS inset grouped cells — horizontal on mobile */
  .app-inset-group {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    gap: 10px;
  }

  .app-inset-group .contact-card {
    flex: 0 0 72%;
    max-width: 260px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: var(--ios-card);
    border: none;
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-shadow);
    border-bottom: none;
    position: relative;
    padding-right: 16px;
  }

  .app-inset-group .contact-card:last-child {
    border-bottom: none;
  }

  .app-inset-group .contact-card::after {
    display: none;
  }

  .app-inset-group .contact-card:active {
    background: var(--ios-bg);
  }

  .app-inset-group .contact-card--wide {
    grid-column: auto;
  }

  .contact-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .contact-card__icon svg {
    width: 15px;
    height: 15px;
  }

  .contact-card__body h4 {
    font-size: 0.62rem;
    margin-bottom: 1px;
  }

  .contact-card__body span {
    font-size: 0.84rem;
    font-weight: 500;
  }

  .app-inset-card.form {
    padding: 16px;
    border-radius: var(--ios-radius);
    border: none;
    box-shadow: var(--ios-shadow);
    background: var(--ios-card);
  }

  .form__field { margin-bottom: 12px; }

  .form__field label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .form__field input,
  .form__field textarea {
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    background: var(--ios-bg);
  }

  .form__field input:focus,
  .form__field textarea:focus {
    box-shadow: 0 0 0 2px rgba(34, 156, 72, 0.25);
    background: #fff;
  }

  .form__field textarea { min-height: 88px; }

  .form .btn--primary {
    width: 100%;
    padding: 14px;
    font-size: 0.9rem;
    border-radius: 12px;
    margin-top: 4px;
  }

  .form .btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }

  .form__error,
  .form__success {
    margin-top: 10px;
    font-size: 0.8rem;
  }

  /* Footer */
  .footer {
    background: linear-gradient(180deg, #0e314c 0%, #091f30 100%);
    margin-top: 8px;
  }

  .footer__inner {
    padding: 20px 0 14px;
  }

  .footer__columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer__brand-link { margin-bottom: 8px; }

  .footer__mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    padding: 5px;
  }

  .footer__title { font-size: 0.92rem; }

  .footer__desc {
    font-size: 0.78rem;
    max-width: none;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .footer__nav,
  .footer__contact { display: none; }

  .footer__actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .footer__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 11px 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
  }

  .footer__action svg {
    width: 20px;
    height: 20px;
    color: var(--accent-teal-light);
  }

  .footer__action--whatsapp svg {
    color: #25d366;
  }

  .footer__action:active {
    transform: scale(0.96);
    background: rgba(35, 189, 184, 0.14);
  }

  .footer__bar-inner {
    flex-direction: column;
    text-align: center;
    padding: 10px 0 12px;
    gap: 4px;
    font-size: 0.68rem;
  }

  .footer__top-link { display: none; }

  .go-top { display: none; }

  .btn:active { transform: scale(0.97); opacity: 0.85; }

  /* FAQ */
  .faq { gap: 10px; }

  .faq__item {
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-shadow);
    border: 0.5px solid var(--ios-separator);
  }

  .faq__item summary {
    padding: 14px 16px;
    font-size: 0.88rem;
  }

  .faq__answer {
    padding: 0 16px 14px;
  }

  .faq__answer p { font-size: 0.82rem; }

  .info-card__address {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  @media (max-width: 390px) {
    .app-tabbar__item {
      font-size: 0.52rem;
      gap: 2px;
    }

    .app-tabbar__item svg {
      width: 20px;
      height: 20px;
    }
  }
}
