/* Pehle Aap: tablet and desktop. */

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
  }

  .wm-urdu {
    display: inline;
  }

  .svc-grid,
  .tile-svcs,
  .pkg-grid,
  .mem-grid,
  .bridal-grid,
  .branch-grid,
  .offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .looks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
  }

  .hero-photo img {
    max-height: 420px;
    height: 46vh;
  }

  .hero-cloth {
    margin-top: -80px;
    padding: 36px 36px 30px;
    max-width: 640px;
  }

  .hero .doors .btn-amber,
  .hero .doors .btn-quiet {
    flex: 0 0 auto;
  }

  .band {
    padding: 88px 0;
  }
}

@media (min-width: 1000px) {
  :root {
    --head: 72px;
    --gutter: 48px;
  }

  .hide-small {
    display: inline;
  }

  .show-small {
    display: none;
  }

  .nav-small {
    display: none;
  }

  .nav-wide {
    display: block;
  }

  .nav-wide ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
  }

  .nav-wide a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    color: var(--kohl);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.96875rem;
  }

  .nav-wide a:hover {
    color: var(--amber);
  }

  .nav-wide a[aria-current="page"] {
    color: var(--amber);
    text-decoration: underline dotted 2px;
    text-underline-offset: 8px;
  }

  .logo {
    margin-right: 12px;
  }

  .nav-wide {
    margin-right: auto;
  }

  .wm-latin {
    font-size: 1.75rem;
  }

  .head-wa {
    padding: 0 10px;
  }

  /* Hero: the photo fills the width; the words sit on a white cloth over the empty wall. */

  .hero {
    height: min(calc(100vh - var(--head)), 60vw);
    min-height: 640px;
    max-height: 980px;
    display: flex;
    flex-direction: column;
  }

  .hero-photo {
    position: absolute;
    inset: 0;
  }

  .hero-photo img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: 22% 55%;
  }

  .hero-wrap {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .hero-cloth {
    margin: 0;
    width: min(46%, 600px);
    max-width: none;
    padding: 48px 44px 36px;
    background: rgba(255, 255, 255, 0.95);
    outline-offset: -12px;
    gap: 18px;
  }

  .hero-arc {
    right: 32px;
    top: -26px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 4.9vw, 5rem);
  }

  .hero .doors .btn-quiet .num {
    display: inline;
  }

  .hero-caption {
    position: absolute;
    right: var(--gutter);
    bottom: 16px;
    width: auto;
    max-width: 40%;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.88);
    margin: 0;
  }

  .section-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 64px;
    align-items: end;
    margin-bottom: 52px;
  }

  .section-head .kicker,
  .section-head h2 {
    grid-column: 1;
  }

  .section-head .lede,
  .section-head .more {
    grid-column: 2;
  }

  .section-head .lede {
    grid-row: 1 / span 2;
    align-self: end;
  }

  .section-head .more {
    grid-row: 3;
  }

  /* Home categories: one row each, photo and name on the left, two services on the right. */

  .cat-tiles {
    gap: 0;
  }

  .cat-tile {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: 48px;
    padding: 36px 0;
    border-top: 1px dashed var(--stitch-dark);
  }

  .cat-tile:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .tile-head {
    grid-row: 1 / span 2;
    align-content: start;
  }

  .tile-line {
    grid-column: 2;
  }

  .tile-svcs {
    grid-column: 2;
  }

  .tile-name {
    font-size: 2.5rem;
  }

  /* Services page: the index stays beside the list */

  .rate-wrap {
    grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
    column-gap: 56px;
    align-items: start;
  }

  .rate-side {
    position: sticky;
    top: calc(var(--head) + 24px);
  }

  .ci-name {
    font-size: 2rem;
  }

  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pkg-grid,
  .bridal-grid,
  .mem-grid,
  .branch-grid,
  .offers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .looks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .bridal-page .looks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 40px;
  }

  .reviews {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .care-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 64px;
  }

  .care-grid .section-head {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
  }

  .care-grid .section-head .lede {
    grid-column: 1;
    grid-row: auto;
  }

  .care-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 48px;
  }

  .branch-list {
    gap: 32px;
  }

  .branch-list .branch {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .branch-list .branch-img {
    height: 100%;
    aspect-ratio: auto;
  }

  .branch-list .branch-body {
    padding: 36px 40px;
  }

  .voucher-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: 72px;
    align-items: center;
  }

  .voucher-grid .section-head {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }

  .voucher-grid .section-head .lede {
    grid-column: 1;
    grid-row: auto;
  }

  .voucher-grid .stitch-list {
    margin-bottom: 28px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 72px;
  }

  .form-aside {
    position: sticky;
    top: calc(var(--head) + 24px);
  }

  .form .unrigid-field-date,
  .form .unrigid-field-select {
    max-width: 100%;
  }

  .page-head {
    padding: 72px 0 48px;
  }

  .closing {
    padding: 104px 0;
  }

  .closing-inner {
    justify-items: center;
    text-align: center;
  }

  .closing-inner h2 {
    font-size: clamp(2.5rem, 4vw, 3.75rem);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 4fr);
    gap: 48px;
  }
}

@media (min-width: 1500px) {
  .wrap {
    max-width: 1440px;
  }

  .seam {
    max-width: 1440px;
  }
}

/* ---- Phone: a shorter home page (full lists live on their own pages) ------------------ */

.price-lines {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  border-top: 1px dashed var(--stitch-dark);
}

.price-lines li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--stitch-dark);
}

.pl-name {
  display: grid;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.25;
}

.pl-note {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
}

.price-lines .price {
  white-space: nowrap;
}

@media (max-width: 599px) {
  .wide-only {
    display: none !important;
  }

  .cat-tiles {
    gap: 0;
    border-top: 1px dashed var(--stitch-dark);
  }

  .cat-tile {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--stitch-dark);
  }

  .tile-head {
    display: contents;
  }

  .tile-img {
    grid-row: 1 / span 3;
    width: 96px;
    margin: 0;
    aspect-ratio: 1;
  }

  .tile-name {
    font-size: 1.5rem;
    align-self: end;
  }

  .tile-line {
    grid-column: 2;
    font-size: 0.9375rem;
  }

  .tile-svcs {
    display: none;
  }

  #team .person:nth-child(n + 5),
  #reviews .review:nth-child(n + 4) {
    display: none;
  }

  .looks {
    margin-bottom: 24px;
  }
}

@media (min-width: 600px) {
  .phone-only {
    display: none !important;
  }
}

/* ---- Desktop refinements ------------------------------------------------------------- */

@media (min-width: 1000px) {
  .hero {
    height: max(680px, min(calc(100vh - var(--head)), 50vw));
    min-height: 0;
    max-height: none;
  }

  .hero-photo img {
    object-position: 30% 55%;
  }

  .mem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-only > .mem-grid {
    margin-top: 16px;
  }

  .portrait img,
  .portrait .initials {
    aspect-ratio: 1;
    object-position: 50% 20%;
  }

  .brands {
    font-size: 1.125rem;
  }
}

@media (min-width: 1000px) and (max-width: 1499px) {
  .hero .doors .btn-quiet .num {
    display: none;
  }
}
