/* Makhanley mobile layout layer.
   Desktop composition is left intact; these rules only improve small-screen
   flow, touch targets, typography, media sizing, and vertical rhythm. */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 767px) {
  body {
    padding-top: var(--site-header-height, 76px);
  }

  /* -------------------------
     Header
     ------------------------- */
  .site-header__inner {
    min-height: var(--site-header-height, 76px);
    padding-inline: .75rem;
  }

  .site-header__brand {
    width: 106px;
    height: 64px;
  }

  .site-header__brand img {
    width: 100px;
    height: 60px;
  }

  .site-header__actions {
    gap: .4rem;
  }

  .site-header__cta {
    min-height: 42px;
    padding: .65rem .85rem;
    font-size: .8rem;
    white-space: nowrap;
  }

  .site-header__toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .site-header__mobile {
    max-height: calc(100svh - var(--site-header-height, 76px));
    overflow-y: auto;
  }

  .site-header__mobile-links {
    gap: 0;
    padding: .35rem .9rem .75rem;
  }

  .site-header__mobile-links a {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: .65rem .35rem;
    border-bottom: 1px solid rgb(26 59 40 / 9%);
  }

  .site-header__mobile-links a:last-child {
    border-bottom: 0;
  }

  /* -------------------------
     Homepage
     ------------------------- */
  .home-page #home {
    height: auto;
    min-height: calc(100svh - var(--site-header-height, 76px));
    padding-block: 3.25rem 4.5rem;
  }

  .home-page #home > .z-10 {
    width: min(100%, 35rem);
    padding-inline: 1.25rem;
  }

  .home-page #home > .z-10 > span {
    margin-bottom: .9rem !important;
    font-size: .7rem;
    line-height: 1.35;
  }

  .home-page #home h1 {
    margin-bottom: 1.25rem !important;
    font-size: clamp(2.65rem, 11.5vw, 3.35rem) !important;
    line-height: 1.02 !important;
  }

  .home-page #home h1 + p {
    margin-bottom: 1.5rem !important;
    font-size: 1rem;
    line-height: 1.7;
  }

  .home-page #home .flex.flex-col {
    gap: .75rem !important;
  }

  .home-page #home .flex.flex-col a {
    min-height: 46px;
    padding-inline: 1.1rem;
  }

  .home-page #home > a.absolute {
    bottom: 1rem;
  }

  .home-page #roots,
  .home-page #journey {
    padding-block: 4.25rem !important;
  }

  .home-page #roots > .grid,
  .home-page #bulk-capability-home > .max-w-7xl,
  .home-page #journey > .max-w-7xl {
    padding-inline: 1.25rem;
  }

  .home-page #roots .grid {
    gap: 2.5rem;
  }

  .home-page #roots h2,
  .home-page #bulk-capability-home h2,
  .home-page #journey h2 {
    font-size: clamp(2rem, 9vw, 2.55rem) !important;
    line-height: 1.08;
  }

  .home-page #roots .w-16 {
    margin-bottom: 1.35rem !important;
  }

  .home-page #roots .lg\:col-span-5 > p {
    margin-bottom: 1.25rem !important;
    font-size: 1rem;
    line-height: 1.7;
  }

  .home-page #roots .lg\:col-span-5 > p + p {
    margin-bottom: 1.5rem !important;
  }

  .home-page #roots .lg\:col-span-5 > .grid {
    gap: 1.25rem;
    padding-top: 1.25rem !important;
  }

  .home-page #roots .lg\:col-span-5 > .grid h4 {
    font-size: 1.05rem;
  }

  .home-page #roots .lg\:col-span-5 > .grid p {
    font-size: .82rem;
    line-height: 1.45;
  }

  .home-page #roots .lg\:col-span-7 {
    width: 100%;
    height: 360px !important;
  }

  .home-page #roots .lg\:col-span-7 > div:first-child {
    width: 82%;
    height: 78%;
  }

  .home-page #roots .lg\:col-span-7 > div:nth-child(2) {
    width: 54%;
    height: 52%;
  }

  .home-page #roots .lg\:col-span-7 > div:last-child {
    right: -.5rem;
    bottom: -.75rem;
    font-size: 5.5rem;
  }

  .home-page #bulk-capability-home .max-w-2xl {
    margin-bottom: 2rem;
  }

  .home-page #bulk-capability-home .grid {
    gap: .9rem;
  }

  .home-page #bulk-capability-home article {
    padding: 1.2rem 1.1rem;
  }

  .home-page #bulk-capability-home article h3 {
    margin-top: .75rem !important;
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .home-page #bulk-capability-home article p:last-child {
    font-size: .92rem;
    line-height: 1.6;
  }

  .home-page #journey > .max-w-7xl > .max-w-2xl {
    margin-bottom: 2rem !important;
  }

  .home-page #journey > .max-w-7xl > .max-w-2xl p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .home-page .journey-step {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: .7rem;
    padding-block: .8rem;
  }

  .home-page .journey-step__marker {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 4px;
    font-size: .7rem;
  }

  .home-page .journey-step__content video,
  .home-page .journey-step__content > img {
    height: 205px;
  }

  .home-page .journey-step__copy {
    padding: 1.05rem;
  }

  .home-page .journey-step__copy h3 {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .home-page .journey-step__copy p:last-child {
    font-size: .9rem;
    line-height: 1.6;
  }

  /* -------------------------
     Shared content pages
     ------------------------- */
  .content-page .simple-hero {
    width: min(100% - 2rem, 1100px);
    padding: 2.5rem 0 2.75rem;
  }

  .content-page .simple-hero h1 {
    margin-top: .55rem;
    font-size: clamp(2.45rem, 11vw, 3rem);
    line-height: 1.02;
  }

  .content-page .simple-hero > p:last-child {
    margin-top: 1.15rem;
    font-size: .98rem;
    line-height: 1.7;
  }

  .content-page .paper-section {
    padding-block: 3.5rem;
  }

  .content-page .split {
    width: min(100% - 2rem, 1100px);
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-page .split h2,
  .content-page .three-col h2 {
    font-size: 1.9rem;
    line-height: 1.12;
  }

  .content-page .split p,
  .content-page .three-col p {
    font-size: .95rem;
    line-height: 1.7;
  }

  .content-page .split .button,
  .content-page .article-body .button {
    margin-top: 1.25rem;
    min-height: 46px;
    padding: .8rem 1.1rem;
  }

  .content-page .three-col {
    width: min(100% - 2rem, 1100px);
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: 3.75rem;
  }

  .content-page .three-col article + article {
    padding-top: 1.75rem;
    border-top: 1px solid #d8d2c5;
  }

  .content-page .article-body {
    width: min(100% - 2rem, 1000px);
    padding-block: 3.5rem 4.25rem;
  }

  .content-page .article-body h2 {
    font-size: 1.65rem;
    line-height: 1.15;
    margin-bottom: .8rem;
  }

  .content-page .article-body h2:not(:first-child) {
    margin-top: 2rem;
  }

  .content-page .article-body p {
    font-size: .94rem;
    line-height: 1.75;
    margin-bottom: 1rem;
  }

  .content-page .process-list {
    width: min(100% - 2rem, 1100px);
    gap: 1rem;
    padding-bottom: 3.75rem;
  }

  .content-page .process-list article {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem;
  }

  .content-page .process-list article video,
  .content-page .process-list article > img {
    min-height: 0;
    height: 205px;
    border-radius: .75rem;
  }

  .content-page .process-list h2 {
    font-size: 1.65rem;
    line-height: 1.15;
  }

  .content-page .process-list p {
    font-size: .92rem;
    line-height: 1.7;
  }

  .content-page .table-wrap {
    max-width: 100%;
    margin-block: 1.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .content-page .article-body table {
    min-width: 560px;
    font-size: .88rem;
  }

  .content-page .article-body th,
  .content-page .article-body td {
    padding: .7rem .65rem;
  }

  /* -------------------------
     Bulk supply
     ------------------------- */
  .bulk-page .bulk-container {
    width: min(calc(100% - 2rem), var(--bulk-container));
  }

  .bulk-page .bulk-section--contact {
    padding-block: 2.75rem 2.5rem;
  }

  .bulk-page .bulk-section--capability,
  .bulk-page .bulk-section--sizes,
  .bulk-page .bulk-section--enquiry {
    padding-block: 3.75rem;
  }

  .bulk-page .bulk-hero-title {
    font-size: clamp(2.35rem, 11vw, 3.15rem);
    line-height: 1.03;
  }

  .bulk-page .bulk-hero-copy {
    margin-top: 1.15rem;
    font-size: .96rem;
    line-height: 1.7;
  }

  .bulk-page .bulk-info-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .bulk-page .bulk-premises img {
    max-height: 19rem;
    object-fit: cover;
  }

  .bulk-page .bulk-credentials {
    gap: 1.2rem;
    padding-block: 1.25rem;
  }

  .bulk-page .bulk-contact-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
  }

  .bulk-page .bulk-map iframe {
    height: 14.5rem;
  }

  .bulk-page .bulk-map__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .bulk-page .bulk-section-title {
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.08;
  }

  .bulk-page .bulk-section-copy {
    margin-top: 1rem;
    font-size: .95rem;
    line-height: 1.7;
  }

  .bulk-page .bulk-feature-grid,
  .bulk-page .bulk-size-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
    margin-top: 1.75rem;
  }

  .bulk-page .bulk-feature {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bulk-line);
  }

  .bulk-page .bulk-feature:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .bulk-page .size-card img {
    height: 12.5rem;
  }

  .bulk-page .size-card__body {
    padding: 1.25rem;
  }

  .bulk-page .size-card h3 {
    font-size: 1.75rem;
  }

  .bulk-page .bulk-enquiry-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bulk-page .bulk-enquiry-copy {
    max-width: none;
  }

  .bulk-page .enquiry-heading {
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.12;
  }

  .bulk-page .bulk-enquiry-copy__body {
    margin-top: 1rem;
    font-size: .95rem;
    line-height: 1.65;
  }

  .bulk-page .bulk-form-card {
    width: 100%;
    padding: 1.25rem;
  }

  .bulk-page .bulk-form-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
  }

  .bulk-page .field-input,
  .bulk-page .field-select,
  .bulk-page .field-textarea {
    font-size: 16px;
  }

  .bulk-page .bulk-submit {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  /* -------------------------
     Products catalogue
     ------------------------- */
  .products-page .products-intro {
    width: min(100% - 2rem, 1280px) !important;
    padding: 2.5rem 0 2.25rem !important;
  }

  .products-page .products-intro h1 {
    font-size: clamp(2.35rem, 10.5vw, 3rem) !important;
    line-height: 1.05 !important;
  }

  .products-page .products-intro > p:last-child {
    margin-top: 1rem !important;
    font-size: .95rem !important;
    line-height: 1.7 !important;
  }

  .products-page main > section:first-of-type {
    padding: 3.5rem 1rem !important;
  }

  .products-page .product-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .products-page .catalog-card {
    width: min(100%, 22rem);
    margin-inline: auto;
  }

  .products-page .catalog-card__image {
    height: 18rem;
    padding: 1rem;
  }

  .products-page .catalog-card__body {
    padding: 1.25rem;
  }

  .products-page .catalog-card h3 {
    font-size: 1.4rem;
  }

  .products-page .catalog-card__bottom {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .products-page main > section:last-of-type {
    width: min(100% - 2rem, 900px) !important;
    padding: 3.5rem 0 4rem !important;
  }

  .products-page main > section:last-of-type h2 {
    font-size: 2rem !important;
    line-height: 1.12 !important;
  }

  .products-page main > section:last-of-type p {
    margin-top: 1rem !important;
    font-size: .95rem !important;
    line-height: 1.7 !important;
  }

  .products-page main > section:last-of-type > a[href*="bulk-makhana"] {
    min-height: 46px;
    margin-top: 1.25rem !important;
    padding: .8rem 1.15rem !important;
  }

  /* -------------------------
     Product detail
     ------------------------- */
  .product-detail-page .product-page {
    width: min(100% - 1.5rem, 1280px);
    padding-top: 1.75rem;
    padding-bottom: 3.5rem;
  }

  .product-detail-page .product-breadcrumb {
    gap: .45rem;
    margin-bottom: 1rem;
    font-size: .76rem;
    line-height: 1.4;
  }

  .product-detail-page .product-overview {
    gap: 1.75rem;
  }

  .product-detail-page .product-gallery__main {
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  .product-detail-page .product-gallery__controls {
    grid-template-columns: 2.4rem minmax(0,1fr) 2.4rem;
    gap: .4rem;
  }

  .product-detail-page .product-gallery__controls > button {
    width: 2.4rem;
    height: 2.4rem;
  }

  .product-detail-page .product-gallery__thumbnail {
    flex-basis: 66px;
    width: 66px;
    height: 66px;
  }

  .product-detail-page .product-summary h1 {
    font-size: clamp(2.25rem, 11vw, 2.7rem);
    line-height: 1.04;
  }

  .product-detail-page .product-purchase-row {
    align-items: center;
    gap: .75rem;
    margin-block: 1.25rem .85rem;
  }

  .product-detail-page .product-buy-button {
    min-height: 46px;
    margin-top: .6rem;
  }

  .product-detail-page .product-description {
    margin-block: 1.25rem;
    font-size: .93rem;
    line-height: 1.7;
  }

  .product-detail-page .product-highlights {
    gap: .5rem;
    margin-block: 1.25rem 1.5rem;
  }

  .product-detail-page .product-highlight {
    min-height: 68px;
    padding: .6rem .35rem;
    font-size: .63rem;
  }

  .product-detail-page .nutrition-section {
    gap: .9rem;
    margin-top: 2.75rem;
    padding-top: 1.75rem;
  }

  .product-detail-page .nutrition-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-detail-page .nutrition-table {
    min-width: 320px;
  }

  /* -------------------------
     404
     ------------------------- */
  .error-page .error-main {
    padding: 2.75rem 1rem 4rem;
  }

  .error-page .error-card h1 {
    font-size: clamp(3.6rem, 18vw, 5rem);
  }

  .error-page .error-card h2 {
    margin-top: 1rem;
    font-size: 1.65rem;
    line-height: 1.1;
  }

  .error-page .error-card p {
    font-size: .94rem;
    line-height: 1.7;
  }

  .error-page .error-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.4rem;
  }

  .error-page .error-actions a {
    width: 100%;
    min-height: 46px;
  }

  /* -------------------------
     Footer
     ------------------------- */
  .site-footer {
    padding: 1.75rem 1rem .9rem;
  }

  .site-footer__top {
    gap: 1.25rem;
    margin-bottom: 1.1rem;
  }

  .site-footer__brand p {
    max-width: 100%;
    font-size: .86rem;
    line-height: 1.5;
  }

  .site-footer__top > div:nth-child(2) ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: .2rem;
  }

  .site-footer__top > div:nth-child(2) li,
  .site-footer__top > div:nth-child(3) li {
    min-width: 0;
    font-size: .82rem;
    line-height: 1.4;
  }

  .site-footer__top > div:nth-child(3) {
    padding-top: .25rem;
  }

  .site-footer__top > div:nth-child(3) a {
    overflow-wrap: anywhere;
  }

  .site-footer__bottom {
    gap: .5rem;
    font-size: .72rem;
  }

  .site-footer__bottom div {
    flex-wrap: wrap;
    gap: .9rem;
  }
}

@media (max-width: 380px) {
  .site-header__brand {
    width: 96px;
  }

  .site-header__brand img {
    width: 92px;
  }

  .site-header__cta {
    min-height: 40px;
    padding-inline: .72rem;
    font-size: .76rem;
  }

  .site-header__toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .home-page #home {
    padding-top: 2.75rem;
  }

  .home-page #roots .lg\:col-span-7 {
    height: 320px !important;
  }

  .products-page .catalog-card__image {
    height: 16rem;
  }

  .product-detail-page .product-highlights {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .content-page .process-list article {
    width: 100%;
    min-width: 0;
  }

  .content-page .process-list article > div,
  .content-page .process-list article > img,
  .content-page .process-list article > video {
    min-width: 0;
  }

  .products-page {
    margin: 0;
  }
}

@media (max-width: 767px) {
  body,
  body *,
  body *::before,
  body *::after {
    box-sizing: border-box;
  }
}
