/* ==========================================================================
   Urmi Lifesciences — responsive layer
   Breakpoints mirror the approved design reference:
   1600 · 1190 · 990 · 760 · 380, plus print and reduced-motion.
   ========================================================================== */

/* --------------------------------------------------------- large screens -- */
@media (min-width: 1600px) {
  .hero-main { min-height: 720px; }
  .hero h1 { font-size: 70px; }
}

/* ------------------------------------------------------- small desktop ---- */
@media (max-width: 1190px) {
  .container-urmi { width: calc(100% - 64px); }
  .urmi-nav .nav-item { margin-right: 19px; }
  .urmi-nav .nav-link { font-size: 11px; }
  .wordmark-logo { height: 30px; }
  .hero-main { min-height: 620px; }
  .hero-copy { max-width: 62%; }
  .hero h1 { font-size: 57px; }
  .cap { padding: 0 15px; gap: 9px; }
  .cap-icon { width: 34px; height: 34px; }
  .cap-icon i { font-size: 15px; }
  .cap h3 { font-size: 11px; }
  .cap p { font-size: 8px; }
  .product-visual img { height: 203px; }
  .product-info { padding: 19px 16px 16px; }
  .studio-grid { gap: 50px; }
  .quality-grid, .faq-grid { gap: 50px; }
  .contact-grid { gap: 55px; }
  .gallery { grid-template-rows: 270px 245px; }
}

/* --------------------------------------------------------- tablets --------- */
/* Bootstrap's lg breakpoint is 992px while the design collapses at 990px. The
   navbar rules are keyed to 991.98px so the inline links and the hamburger swap
   exactly where .navbar-expand-lg itself switches - otherwise a one-pixel band
   exists in which no navigation is rendered at all. Everything else in the
   tablet tier keeps the design's own 990px breakpoint. */
@media (max-width: 991.98px) {
  .urmi-nav .navbar-collapse { flex-grow: 1; }
  .urmi-nav .navbar-toggler { display: flex; }
  .urmi-nav .navbar-nav { align-items: stretch; padding: 8px 0 0; }
  .urmi-nav .nav-item { margin-right: 0; }
  .urmi-nav .nav-link { display: block; padding: 11px 0; font-size: 15px; }
  .urmi-nav .nav-link::after { display: none; }
  .urmi-nav .nav-cta-item { padding: 13px 0 4px; }
  .urmi-nav .navbar-toggler { margin-left: auto; }
  .urmi-nav .navbar-collapse { border-top: 1px solid var(--line); margin-top: 12px; }
}

@media (max-width: 990px) {
  .wordmark small { font-size: 7px; }
  .wordmark-logo { height: 29px; }

  .hero-copy { max-width: 66%; }
  .hero h1 { font-size: 52px; }
  .hero-coordinate { display: none; }
  .hero .photo-story { max-width: 210px; bottom: 70px; }
  .photo-story strong { font-size: 18px; }
  .hero-main { min-height: 590px; }
  .hero::before { background: linear-gradient(90deg, #061b30f5, #061b30d9 37%, #061b3066 80%, #061b3044); }

  .cap { padding: 0 8px; align-items: flex-start; gap: 9px; }
  .cap-icon { width: 28px; height: 28px; }
  .cap-icon i { font-size: 13px; }
  .cap p { display: none; }
  .cap h3 { font-size: 10px; margin-top: 5px; }

  .section { padding: 76px 0; }
  .product-visual img { height: 230px; }
  .product-info { padding: 21px 24px; }
  .section-heading { gap: 30px; }
  .section-heading > div:last-child:not(:first-child) { max-width: 300px; font-size: 12px; }

  .gallery { grid-template-rows: 240px 230px; gap: 12px; }
  .gallery-rail { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
  .product-grid > .col { flex: 0 0 50%; max-width: 50%; }
  .product-grid { --bs-gutter-y: 23px; }
  .gallery-small { height: 120px; }
  .gallery-small figcaption { left: 10px; right: 10px; bottom: 11px; }
  .gallery-small figcaption strong { font-size: 10px; }

  .studio-grid { gap: 35px; }
  .studio-art { padding: 30px; min-height: 450px; }
  .studio-art::before { inset: 17px; }
  .corner-text { left: 30px; top: 31px; }
  .studio-art .image-note { left: 30px; right: 30px; bottom: 30px; }
  .studio-logo { font-size: 9px; right: 19px; top: 80px; }

  .quality-grid { gap: 35px; }
  .contact-grid { gap: 40px; }
  .quote-form { padding: 26px; }
  .form-grid { --bs-gutter-x: 13px; --bs-gutter-y: 13px; }
  .contact-copy h2 { font-size: 43px; }
  .contact-address a, .contact-address span { font-size: 10px; }
  .faq-grid { gap: 40px; }
  .footer-summary { display: none; }
  .footer-nav { gap: 18px; }
}

/* ---------------------------------------------------------- phones --------- */
@media (max-width: 760px) {
  .container-urmi { width: calc(100% - 40px); }

  .topbar .container-urmi { height: 28px; font-size: 8px; }
  .topbar-right { display: none !important; }

  .urmi-nav .navbar-brand { padding: 12px 0; }
  .wordmark { gap: 3px; }
  .wordmark-logo { height: 27px; }
  .wordmark small { font-size: 6.5px; letter-spacing: .06em; }

  /* Hero becomes a stacked layout with the photograph below the copy */
  .hero { display: flex; flex-direction: column; }
  .hero-main { min-height: 0; padding-top: 45px; padding-bottom: 35px; display: block; order: 0; }
  .hero-copy { width: 100%; max-width: 100%; }
  .hero-copy .eyebrow { font-size: 8px; margin-bottom: 23px; letter-spacing: .16em; }
  .hero h1 { font-size: clamp(37px, 9.9vw, 57px); line-height: 1.11; max-width: 620px; }
  .hero-description { font-size: 12px; line-height: 1.85; max-width: 450px; margin-top: 21px; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .hero-actions .btn-urmi { font-size: 11px; min-height: 46px; padding: 12px 15px; gap: 12px; }
  .hero-micro { font-size: 8px; gap: 16px; margin-top: 22px; }
  .hero-photo { position: relative; height: auto; aspect-ratio: 1280 / 591; z-index: 0; order: 1; object-fit: contain; width: 100%; }
  .hero::before { display: none; }
  .photo-story {
    position: relative; right: auto; bottom: auto !important; max-width: none !important;
    margin-top: 27px; padding: 0; background: none; backdrop-filter: none; border-left: 0;
    display: flex; justify-content: space-between; align-items: center; gap: 15px;
  }
  .photo-story > span { display: none; }
  .photo-story strong { font-size: 12px; font-family: inherit; font-weight: 500; margin: 0; color: #b0c7da; }
  .photo-story button { font-size: 9px; gap: 8px; }
  .hero-pagination { display: none; }

  .cap-grid { padding: 19px 0; --bs-gutter-y: 19px; --bs-gutter-x: 10px; }
  .cap-grid > .col { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .cap { border: 0; padding: 0; gap: 9px; }
  .cap:first-child { padding: 0; }
  .cap h3 { font-size: 10px; margin-top: 5px; }
  .cap-icon { width: 28px; height: 28px; }

  .section { padding: 61px 0; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading .eyebrow { margin-bottom: 17px; font-size: 8px; }
  .section-heading > div:last-child:not(:first-child) { max-width: 450px; margin-top: 19px; font-size: 12px; }
  .section-heading > div:last-child .text-link { margin-top: 10px; font-size: 11px; }
  .title { font-size: 38px; line-height: 1.14; }

  .filter-row { display: block; margin-bottom: 20px; }
  .filters { gap: 6px; }
  .filter { font-size: 9px; padding: 8px 11px; min-height: 33px; }
  .product-note { text-align: left; margin-top: 13px; font-size: 8px; line-height: 1.6; max-width: 360px; }

  .product-visual { padding: 9px 4px 4px; }
  .product-topline { padding: 0 7px 6px; font-size: 6px; letter-spacing: .09em; }
  .product-topline .number { font-size: 12px; }
  .product-visual img { height: 166px; }
  .product-info { padding: 15px 12px 12px; }
  .product-info h3 { font-size: 15px; line-height: 1.3; margin-bottom: 7px; }
  .product-info p { font-size: 9px; line-height: 1.7; min-height: 33px; }
  .product-cta { font-size: 9px; margin-top: 14px; padding-top: 12px; gap: 8px; }
  .product-cta i { font-size: 12px; }
  .product-bottomline { display: block; font-size: 9px; margin-top: 20px; }
  .product-bottomline .text-link { margin-top: 11px; font-size: 10px; }

  .facility .section-heading > div:last-child { font-size: 12px; max-width: 440px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 195px 215px 195px; gap: 10px; }
  .gallery-main { grid-column: 1 / -1; grid-row: 1; }
  .gallery-portrait { grid-column: 1; grid-row: 2 / 4; }
  .gallery-qc { grid-column: 2; grid-row: 2; }
  .gallery-packaging { grid-column: 2; grid-row: 3; }
  .gallery-card figcaption { left: 12px; right: 12px; bottom: 14px; }
  .gallery-card figcaption span { font-size: 6px; }
  .gallery-card figcaption strong { font-size: 12px; }
  .gallery-card figcaption i { font-size: 12px; }
  .gallery-rail { --bs-gutter-x: 10px; --bs-gutter-y: 10px; margin-top: 10px; }
  .gallery-rail > .col, .process-grid > .col { flex: 0 0 50%; max-width: 50%; }
  .process-grid { --bs-gutter-x: 24px; --bs-gutter-y: 30px; }
  .market-grid > .col { flex: 0 0 100%; max-width: 100%; }
  .market-grid { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
  .product-grid { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
  .gallery-small { height: 142px; }
  .gallery-small figcaption strong { font-size: 11px; }
  .gallery-caption { display: block; font-size: 8px; }
  .gallery-caption > span:last-child { display: block; margin-top: 7px; }

  .studio-grid { display: flex; flex-direction: column; gap: 29px; align-items: stretch; }
  .studio-copy > p:not(.eyebrow) { font-size: 12px; margin-top: 20px; }
  .studio-tabs { margin: 22px 0 18px; gap: 7px; }
  .studio-tab { font-size: 10px; padding: 9px 11px; min-height: 39px; }
  .studio-details { min-height: 137px; padding-top: 18px; }
  .studio-details h3 { font-size: 16px; }
  .studio-details p { font-size: 11px; }
  .studio-art { min-height: 370px; padding: 50px 35px; }
  .studio-art img { width: 280px; max-height: 242px; margin: 8px 0; }
  .corner-text { top: 32px; }
  .studio-logo { font-size: 9px; top: 62px; right: 20px; }
  .studio-float { bottom: 57px; right: 22px; font-size: 8px; }
  .studio-art .image-note { bottom: 27px; font-size: 8px; }

  .process { padding: 45px 0; }
  .process-top { display: block; margin-bottom: 29px; }
  .process-top h2 { font-size: 29px; max-width: 340px; }
  .process-top > p { margin-top: 14px; font-size: 11px; }
  .process-step { padding-top: 18px; }
  .process-step h3 { font-size: 12px; margin: 11px 0 7px; }
  .process-step p { font-size: 10px; }
  .step-number { font-size: 23px; }

  .quality-grid { display: block; }
  .quality-copy > p:not(.eyebrow) { font-size: 12px; max-width: 460px; }
  .quality-copy .text-link { font-size: 11px; }
  .credential-list { margin-top: 28px; }
  .credential { padding: 19px 0; }
  .credential h3 { font-size: 12px; }
  .credential p { font-size: 11px; }
  .quality-note { font-size: 8px; }

  .markets { padding: 46px 0; }
  .market-intro { display: block; margin-bottom: 23px; }
  .market-intro h2 { font-size: 32px; }
  .market-intro > p { margin-top: 15px; font-size: 11px; max-width: 430px; }
  .market-card { padding: 21px; display: grid; grid-template-columns: 50px 1fr; gap: 4px 16px; }
  .market-icon { font-size: 24px; grid-row: 1 / 4; margin: 0; }
  .market-card h3 { font-size: 13px; margin: 0 0 4px; }
  .market-card p { font-size: 11px; }
  .market-card a.text-link { font-size: 10px; margin-top: 6px; justify-self: start; }

  .faq-grid { display: block; }
  .faq-intro > p:not(.eyebrow) { font-size: 11px; max-width: 360px; margin-top: 15px; }
  .urmi-accordion { margin-top: 29px; }
  .urmi-accordion .accordion-button { font-size: 12px; padding: 18px 0; line-height: 1.7; }
  .urmi-accordion .accordion-body { font-size: 11px; }

  .contact-grid { display: block; }
  .contact-copy h2 { font-size: 46px; }
  .contact-copy > p:not(.eyebrow) { font-size: 12px; max-width: 390px; }
  .contact-address { margin-top: 26px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 16px; max-width: none; }
  .contact-address a, .contact-address span { font-size: 11px; }
  .contact-copy .form-disclaimer { font-size: 9px; max-width: 430px; margin-top: 19px; }
  .quote-form { padding: 23px 19px; margin-top: 31px; border-radius: 6px; }
  .form-grid { --bs-gutter-x: 14px; --bs-gutter-y: 14px; }
  .form-top { margin-bottom: 22px; }
  .field label { font-size: 9px; }
  .form-control, .form-select { font-size: 16px; padding: 11px 10px; min-height: 45px; }
  .field-trap input { font-size: 12px; }
  .form-control::placeholder { font-size: 11px; }
  .form-grid select { font-size: 12px; }
  .form-grid textarea { font-size: 12px; }
  .form-actions .btn-urmi { font-size: 12px; }

  .footer { padding: 31px 0 25px; }
  .footer-top { display: block; padding-bottom: 25px; }
  .footer-nav { margin-top: 27px; gap: 18px; font-size: 10px; }
  .footer-bottom { display: block; font-size: 8px; line-height: 1.85; }
  .footer-bottom .motion-toggle { font-size: 9px; margin-top: 13px; }

  /* On phones the WhatsApp bubble carries the conversion, so the bar stays hidden */
  .sticky-cta.visible { bottom: 15px; }
  body.has-sticky-cta { padding-bottom: 65px; }

  .lightbox-modal .modal-dialog { width: calc(100% - 20px); margin: 10px auto; }
  .lightbox-modal .modal-content { max-height: calc(100vh - 20px); }
  .lightbox-top { padding: 15px; }
  .lightbox-top h2 { font-size: 20px; line-height: 1.2; }
  .lightbox-top p { font-size: 8px; margin-top: 6px; }
  .lightbox-footer { display: block; padding: 15px; }
  .lightbox-footer p { font-size: 9px; }
  .lightbox-controls { margin-top: 13px; justify-content: flex-end; }
  .lightbox-img { max-height: 58vh; }

  .wa-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .wa-float i { font-size: 25px; }
}

/* --------------------------------------------------- very small phones ---- */
@media (max-width: 380px) {
  .container-urmi { width: calc(100% - 32px); }
  .wordmark-logo { height: 24px; }
  .wordmark small { font-size: 6px; }
  .hero h1 { font-size: 36px; }
  .hero-micro { font-size: 7px; gap: 11px; }
  .cap { gap: 6px; }
  .cap h3 { font-size: 9px; }
  .product-visual img { height: 142px; }
  .product-info { padding: 13px 10px 11px; }
  .product-info h3 { font-size: 14px; }
  .product-cta { font-size: 8px; }
  .gallery { grid-template-rows: 170px 200px 180px; }
  .gallery-card figcaption strong { font-size: 11px; }
  .title { font-size: 34px; }
  .form-grid { --bs-gutter-x: 14px; }
  .form-grid > [class*="col-"], .form-grid > .col { flex: 0 0 100%; max-width: 100%; }
  .hero-actions .btn-urmi { font-size: 10px; gap: 9px; padding: 12px 13px; }
  .photo-story strong { font-size: 10px; }
  .contact-copy h2 { font-size: 41px; }
}

/* --------------------------------------------------------- preferences ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------- print ----- */
@media print {
  .topbar, .urmi-nav, .hero-pagination, .navbar-toggler, .filters, .sticky-cta,
  .wa-float, .motion-toggle, .lightbox-modal { display: none !important; }
  .hero { color: #000; background: #fff; }
  .hero::before, .hero-photo, .photo-story { display: none; }
  .hero-copy { max-width: 100%; width: 100%; }
  .hero-main { min-height: 0; padding: 25px 0; }
  .hero-description, .hero-micro { color: #333; }
  .hero h1 em { color: #155993; }
  .section { padding: 30px 0; }
  .facility, .contact, .footer { background: #fff; color: #092744; }
  .contact-grid { display: block; }
  .quote-form { display: none; }
  .container-urmi { width: 95%; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .gallery-card { break-inside: avoid; }
  a[href]::after { content: none; }
}
