/* Velora V47: responsive polish. Keeps V46 design, content and navigation. */
:where(html, body) { min-width:320px; }
:where(img, svg, video, canvas) { max-width:100%; }
:where(.container, .container-fluid, .container-xl, .row, [class*="col-"]) { min-width:0; }
:where(.hero-title, .section-title, .about-title, h1, h2, h3, p) { overflow-wrap:break-word; }
:where(button, input, select, textarea) { font:inherit; }
.table-responsive { -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
.table-responsive table { width:max-content; min-width:100%; margin-bottom:0; }
.table-responsive th, .table-responsive td { white-space:normal; min-width:100px; vertical-align:middle; }
.table-responsive th:first-child { min-width:155px; }
.table-responsive .table { font-size:clamp(.83rem,1.1vw,1rem); }
.table-wrapper { max-width:100%; overflow-x:auto!important; zoom:1!important; -webkit-overflow-scrolling:touch; }
.table-wrapper table { min-width:630px; }
:where(.form-control,.form-select, input:not([type=checkbox]):not([type=radio]), textarea,select) { max-width:100%; }
/* Reserve intrinsic image space without changing the previews' existing crop. */
.portfolio-static-preview img { max-width:100%; }
.team-portrait-img { flex-shrink:0; }
/* Keep interactive elements usable on touch devices. */
@media (hover:none), (pointer:coarse) {
  .theme-card.service-card:hover { background:#fff; transform:none; }
  .theme-card.service-card:hover h3:not(.another-headings),
  .theme-card.service-card:hover p { display:block!important; color:var(--dark-text-color); }
  .theme-card.service-card:hover .another-headings { display:none!important; }
  .theme-card.service-card:hover .icon-box { background:linear-gradient(135deg,rgba(99,102,241,.12),rgba(6,182,212,.12))!important; }
  .theme-card.service-card:hover .icon-box i { color:var(--primary-color)!important; }
  .portfolio-card:hover, .theme-card:hover, .value-card:hover, .pricing-card:hover { transform:none; }
  .portfolio-card:hover .portfolio-overlay { opacity:0; }
}
@media (max-width:991.98px) {
  .site-header .navbar { min-height:64px; }
  header#global-header .container-fluid { padding-inline:clamp(14px,4vw,26px)!important; }
  .navbar-brand { max-width:min(68vw,235px); margin-right:auto; }
  img.site-logo { width:auto!important; max-width:100%; height:auto; max-height:38px; margin:0!important; object-fit:contain; }
  .navbar-toggler { min-height:44px; min-width:44px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; }
  #mainNavbar { padding:8px 0 16px; max-height:calc(100dvh - 70px); overflow-y:auto; overscroll-behavior:contain; }
  #mainNavbar .navbar-nav { width:100%; align-items:stretch!important; gap:1px; }
  #mainNavbar .nav-link { display:flex; align-items:center; min-height:44px; margin:0; padding:11px 12px; white-space:normal; font-size:15px; line-height:1.4; border-radius:8px; }
  #mainNavbar .nav-link.active { border-bottom:0; background:rgba(99,102,241,.08); }
  #mainNavbar .btn { min-height:44px; margin-top:10px!important; }
  .section-pad { padding-block:clamp(38px,6vw,60px)!important; }
  .section-padding { padding-block:clamp(40px,7vw,66px)!important; }
  .section-title-wrap { margin-bottom:28px; }
  .section-title { font-size:clamp(1.7rem,4.8vw,2.65rem); line-height:1.16; }
  .section-desc { font-size:1rem; line-height:1.65; }
  .about-hero { min-height:auto; padding-block:100px 50px; }
  .about-title { font-size:clamp(2.2rem,6vw,3.5rem); }
  .hero-text { font-size:1.05rem; line-height:1.7; }
  .page-hero { padding:110px 0 55px; }
  .modal-dialog { margin:12px auto; max-width:min(95vw,520px); }
  .modal-body { max-height:calc(100dvh - 170px); overflow-y:auto; -webkit-overflow-scrolling:touch; }
}
@media (max-width:767.98px) {
  .row.g-5 { --bs-gutter-x:1.3rem; --bs-gutter-y:1.8rem; }
  .section-pad, .section-padding { padding-inline:0!important; }
  .section-title { font-size:clamp(1.75rem,7vw,2.3rem); }
  .theme-card { border-radius:18px; }
  .portfolio-static-preview { height:225px!important; }
  .portfolio-website-caption { flex-wrap:wrap; row-gap:5px; }
  .portfolio-website-caption span { min-width:0; }
  .floating-badge { position:relative; inset:auto; left:auto; right:auto; bottom:auto; transform:none!important; width:max-content; max-width:100%; min-width:0; margin:16px auto 0; animation:none!important; }
  .story-content { font-size:1.04rem; line-height:1.75; }
  .team-portrait-card { padding:1.35rem!important; }
  .team-portrait-card h3 { font-size:1.2rem; }
  .team-portrait-card p { font-size:.94rem; }
  .table-responsive { max-width:100%; border-radius:8px; }
  .table-responsive th, .table-responsive td { padding:.7rem .65rem; }
  details summary { align-items:flex-start!important; flex-wrap:wrap; row-gap:.35rem; }
  details summary small { margin-left:0; }
  .cta-section { padding:50px 0; }
  .cta-section h2 { font-size:clamp(1.8rem,7vw,2.5rem); }
  .cta-section p { font-size:1rem; line-height:1.6; }
  .site-footer .row { --bs-gutter-y:1.8rem; }
  .btn-primary-custom, .btn-outline-custom, .btn-white-custom { min-height:44px; }
  .service-card .another-headings { display:none!important; }
  .service-card h3:not(.another-headings), .service-card p { display:block!important; }
}
@media (max-width:575.98px) {
  html { scroll-padding-top:76px; }
  header#global-header { padding:0!important; }
  .site-header .navbar { min-height:62px; padding-block:6px; }
  .navbar-brand { max-width:68vw; }
  img.site-logo { max-height:35px; }
  .hero-section { min-height:0!important; }
  .hero-section .hero-content,
  div#home-banner .hero-content { width:100%!important; padding:100px 0 54px!important; max-width:100%!important; text-align:left!important; }
  .hero-title { font-size:clamp(2rem,8.5vw,2.55rem)!important; line-height:1.13!important; letter-spacing:-.03em; overflow-wrap:anywhere; }
  .hero-animated-text-wrap { display:inline-block; max-width:100%; }
  .hero-content .fs-5 { font-size:1.02rem!important; line-height:1.6; }
  .hero-list { display:flex; flex-wrap:wrap; gap:8px 16px; font-size:.88rem; }
  .hero-content .badge-pill { max-width:100%; flex-wrap:wrap; font-size:.72rem; line-height:1.5; }
  .hero-content .btn { width:100%; font-size:1rem!important; padding:.9rem 1.1rem!important; }
  .section-title-wrap { margin-bottom:24px; }
  .section-pad { padding-block:42px!important; }
  section#portfolio { padding:42px 0!important; }
  section#about,section#pricing,section.section-padding.cta-gradient-section { padding:42px 0!important; }
  section#process,section#why-choose-us,section.section-pad { padding:42px 0!important; }
  .portfolio-static-preview { height:215px!important; }
  .portfolio-website-caption { align-items:flex-start; flex-direction:column; }
  .portfolio-website-caption small { text-align:left; }
  .team-portrait-card .team-portrait-img { width:132px; height:155px; margin-bottom:1rem; }
  .team-portrait-card p { line-height:1.55; }
  .form-control, .form-select, input, textarea, select { font-size:16px!important; }
  .modal-content { max-height:calc(100dvh - 24px); overflow-y:auto; }
  .velora-whatsapp-link { padding:12px 14px; min-height:48px; max-width:calc(100vw - 28px); gap:7px; font-size:12px; }
  .site-footer { padding-bottom:55px; }
  .site-footer .container { padding-inline:18px!important; }
  .site-footer .footer-logo { max-width:210px; height:auto; }
  .table-responsive table { min-width:560px; }
  .table-responsive th:first-child { min-width:145px; }
}
@media (max-width:359.98px) {
  .hero-title { font-size:1.85rem!important; }
  .portfolio-static-preview { height:185px!important; }
  .velora-whatsapp-link { font-size:0; width:49px; height:49px; padding:0; border-radius:50%; }
  .velora-whatsapp-link i { font-size:23px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .hero-bg img, .floating-badge, .portfolio-card img { animation:none!important; transition:none!important; }
}

/* Use a collapsible menu through tablet/small laptop widths to prevent nav overflow. */
@media (max-width:1199.98px) {
  .site-header .navbar { min-height:64px; }
  header#global-header .container-fluid { padding-inline:clamp(14px,3vw,28px)!important; }
  .navbar-brand { max-width:min(68vw,235px); margin-right:auto; }
  img.site-logo { width:auto!important; height:auto!important; max-width:100%; max-height:40px; object-fit:contain; margin:0!important; }
  .navbar-toggler { min-height:44px; min-width:44px; display:inline-flex; align-items:center; justify-content:center; }
  #mainNavbar { padding:8px 0 16px; max-height:calc(100dvh - 70px); overflow-y:auto; overscroll-behavior:contain; }
  #mainNavbar .navbar-nav { align-items:stretch!important; width:100%; }
  #mainNavbar .nav-link { display:flex; align-items:center; min-height:44px; margin:0; padding:11px 12px; white-space:normal; font-size:15px; }
  #mainNavbar .nav-link.active { border-bottom:0; background:rgba(99,102,241,.08); }
  #mainNavbar .btn { min-height:44px; margin-top:10px!important; }
}
@media (min-width:1200px) and (max-width:1399.98px) {
  .navbar-nav .nav-link { margin-inline:.35rem; font-size:13.5px; }
  img.site-logo { max-width:200px; height:auto; max-height:46px; }
  #mainNavbar > .btn { padding-inline:1rem!important; font-size:14px; }
}


/* V50: fix two-column statistics cards on real phones. */
@media (max-width:767.98px) {
  /* Keep the existing two-column layout, but do not use desktop display typography. */
  .stats-row .stat-box,
  .stats-section .stat-box {
    box-sizing:border-box;
    min-width:0;
    width:100%;
    height:100%;
    padding:clamp(12px,3.5vw,18px) clamp(9px,2.5vw,14px)!important;
    border-radius:16px;
  }
  .stats-row .stat-box h3,
  .stats-section .stat-box h3 {
    font-size:clamp(1.15rem,5.5vw,1.55rem)!important;
    line-height:1.2!important;
    letter-spacing:-.025em;
    margin-bottom:8px;
    word-break:normal!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
    white-space:normal;
    text-wrap:balance;
  }
  .stats-row .stat-box p,
  .stats-section .stat-box p {
    font-size:clamp(.82rem,3.5vw,.95rem)!important;
    line-height:1.45!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
    text-wrap:pretty;
  }
  .stats-section .row,
  .stats-row { --bs-gutter-x:14px; --bs-gutter-y:16px; }
  .stats-row > [class*="col-"] { margin-top:var(--bs-gutter-y)!important; }
}
@media (max-width:575.98px) {
  /* Compact WhatsApp shortcut doesn't obscure text, cards or CTAs. */
  .velora-whatsapp-link {
    width:52px!important;
    min-width:52px!important;
    height:52px!important;
    min-height:52px!important;
    max-width:52px!important;
    padding:0!important;
    gap:0!important;
    border-radius:50%!important;
    font-size:0!important;
    white-space:nowrap;
    right:12px;
    bottom:calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .velora-whatsapp-link i { font-size:26px!important; }
  .stats-row .stat-box h3,
  .stats-section .stat-box h3 { font-size:clamp(1.12rem,5.2vw,1.45rem)!important; }
}
