/* Shared responsive layout for the booking Site. The separate no-booking Site
   has its own repository and styles. Keep this after styles.css and booking.css. */
@media screen {
  :root {
    --page-gutter: clamp(16px, 4vw, 48px);
    --gutter-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
    --gutter-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
    --anchor-offset: 128px;
    --quick-contact-height: 0px;
  }

  html {
    scroll-padding-top: var(--anchor-offset);
    scroll-padding-bottom: calc(var(--quick-contact-height) + 16px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body { overflow-wrap: break-word; }
  .wrap { width: min(1200px, calc(100% - var(--gutter-left) - var(--gutter-right))); }
  .hero, .about-layout, .booking-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero > *, .about-layout > *, .booking-layout > *, .section-heading > *,
  .contact-heading > *, .footer-top > *, .booking-selection > *,
  .calendar-heading > *, .booking-field { min-width: 0; }

  .button { max-width: 100%; white-space: normal; text-align: center; }
  .text-link, .service-book, .contact-action, .back-top, .footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .contact-main, .contact-secondary { display: flex; align-items: center; min-height: 44px; }
  .menu-toggle, .nav-book { display: none; }
  .main-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .main-nav .nav-book { display: none; }
  .menu-toggle:focus-visible { outline: 3px solid #b27532; outline-offset: 4px; }
  .wordmark { min-width: 0; }
  .hero { gap: clamp(32px, 4.5vw, 64px); }
  .hero-visual img { height: clamp(400px, 42vw, 520px); }
  .strip-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip-inner span { padding-inline: 12px; }
  .about-layout { gap: clamp(32px, 5vw, 80px); }
  .booking-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); }
  .booking-panel { min-width: 0; }
  .booking-field select, .booking-field input { font-size: 1rem; max-width: 100%; }
  .booking-selected { overflow-wrap: anywhere; }
  .booking-selection button { min-height: 44px; flex-shrink: 0; }
  .calendar-heading a { display: inline-flex; align-items: center; min-height: 44px; }
  .calendar-embed, .calendar-embed iframe { min-width: 0; max-width: 100%; }
  .booking-confirmation { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
}

/* Tablets and small laptops: room for readable cards and contact details. */
@media screen and (max-width: 1100px) {
  .header-inner { gap: 20px; }
  .main-nav { gap: 20px; }
  .header-call { margin-left: 0; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-help { grid-column: auto; min-height: 0; padding: 28px; }
  .service-help p br { display: none; }
  .card-description { min-height: 3.3em; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .contact-item:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media screen and (min-width: 769px) and (max-width: 900px) {
  .header-inner { gap: 0; }
  .main-nav { gap: 36px; }
  .hero { gap: 24px; }
  .hero h1 { font-size: clamp(2.5rem, 5.5vw, 3.1rem); }
  .hero-visual img { height: 410px; }
  .section-heading, .contact-heading { gap: 28px; }
  .section-heading > p, .contact-heading > p { flex: 0 1 280px; }
  .booking-layout { grid-template-columns: 1fr; gap: 28px; }
  .booking-panel { max-width: none; }
}

/* Phones and portrait tablets: one reading column and a compact header. */
@media screen and (max-width: 768px) {
  :root {
    --anchor-offset: 96px;
    --quick-contact-height: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  .topline-inner { justify-content: center; padding-block: 6px; font-size: .75rem; }
  .topline-inner [lang=hi] { display: none; }
  .site-header { max-height: 100vh; max-height: 100dvh; overflow-y: auto; }
  .header-inner { min-height: 78px; padding-block: 12px; gap: 12px; flex-wrap: wrap; }
  .site-header .wordmark { flex: 1 1 0; }
  .site-header .wordmark > span { font-size: clamp(1.3rem, 5vw, 1.75rem); }
  .site-header .wordmark small { font-size: .625rem; letter-spacing: .06em; margin-top: 5px; }
  .header-call { display: none; }
  .menu-toggle {
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px;
    font: inherit;
    font-size: .875rem;
    font-weight: 600;
    color: var(--navy);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
  }
  .navigation-ready .menu-toggle { display: inline-flex; }
  .main-nav {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 8px 0 0;
    border-top: 1px solid var(--line);
    gap: 0;
    flex-direction: column;
    font-size: 1rem;
  }
  .main-nav a { padding: 12px; min-height: 48px; border-radius: 4px; }
  .main-nav a:hover { background: var(--paper); border-color: transparent; }
  .main-nav .nav-book { display: inline-flex; justify-content: space-between; color: var(--burgundy); font-weight: 600; }
  .navigation-ready .main-nav { display: none; }
  .navigation-ready.menu-open .main-nav { display: flex; }
  .menu-open .menu-toggle { border-color: var(--burgundy); color: var(--burgundy); }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 32px 40px; }
  .hero-copy { padding: 0; }
  .hero .eyebrow { font-size: .6875rem; letter-spacing: .1em; gap: 10px; }
  .hero .short-rule { display: block; width: 22px; flex-basis: 22px; }
  .hero h1 { font-size: clamp(2.2rem, 8.6vw, 3.7rem); line-height: 1.08; margin: 20px 0; }
  .hero-description { max-width: 36rem; font-size: 1rem; line-height: 1.7; }
  .hero-actions { display: flex; flex-direction: row; align-items: center; gap: 12px 20px; margin-top: 24px; }
  .hero-actions .button { min-height: 52px; padding: 14px 20px; font-size: 1rem; }
  .hero-actions .text-link { font-size: .9375rem; }
  .hero-local { max-width: none; margin-top: 24px; padding-top: 20px; }
  .hero-local p { font-size: .875rem; }
  .hero-visual img { height: auto; aspect-ratio: 4 / 3; max-height: 400px; object-position: center 56%; }
  .hero-visual figcaption { padding: 18px 20px; gap: 12px; }
  .hero-visual figcaption > div { min-width: 0; }
  .hero-visual figcaption strong { font-size: 1rem; }
  .hero-visual figcaption [lang=hi] { font-size: .875rem; }
  .caption-mark { display: block; font-size: 2rem; }
  .strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; padding-block: 20px; font-size: .8125rem; }
  .strip-inner span:nth-child(3) { border-left: 0; }

  .section-space { padding-block: clamp(44px, 8vw, 64px); }
  h2 { font-size: clamp(2rem, 7.7vw, 3rem); line-height: 1.15; }
  .section-heading, .contact-heading { display: block; margin-bottom: 28px; }
  .section-heading > p, .contact-heading > p { max-width: 36rem; margin-top: 18px; font-size: 1rem; }
  .section-heading .eyebrow, .about .eyebrow, .contact .eyebrow { margin-bottom: 14px; }
  .service-card summary { padding: 22px 20px 0; }
  .service-card h3 { font-size: 1.125rem; }
  .card-description { min-height: 0; font-size: 1rem; line-height: 1.65; }
  .card-body { padding: 0 20px 22px; }
  .card-body li { font-size: 1rem; }
  .card-body .text-link, .service-book { font-size: .9375rem; }
  .service-book { margin-top: 8px; }
  .service-help { padding: 26px 22px; }
  .service-help h3 { font-size: 2rem; }
  .service-help p { font-size: 1rem; }
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .large-copy { font-size: 1.5rem; }
  .proprietor { display: grid; grid-template-columns: 49px minmax(0, 1fr); gap: 6px 14px; }
  .proprietor .initials { grid-row: span 2; }
  .since { width: auto; grid-column: 2; margin-left: 0; }

  .booking-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .booking-intro > p:not(.eyebrow) { max-width: 36rem; margin-top: 18px; }
  .booking-hours { margin-top: 22px; padding-top: 20px; }
  .booking-panel { max-width: none; padding: 24px; }
  .booking-panel .button { font-size: 1rem; gap: 10px; padding-inline: 14px; }
  .booking-field select, .booking-field input { min-height: 52px; }
  .booking-selection { flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; padding: 16px; }
  .booking-selection button { padding: 8px 0; flex-shrink: 1; text-align: left; }
  .calendar-heading { gap: 4px 16px; }
  .calendar-heading h3 { font-size: 1.125rem; }
  .calendar-heading a { font-size: .9375rem; }
  .calendar-embed {
    width: calc(100% + var(--gutter-left) + var(--gutter-right));
    max-width: none;
    margin-left: calc(0px - var(--gutter-left));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .booking-confirmation { width: calc(100% - 32px); max-width: 480px; padding: 24px 20px; }

  .footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding-bottom: 24px; }
  .footer-top p { grid-column: 1 / -1; grid-row: 2; }
  .site-footer .wordmark > span { font-size: 1.5rem; }
  .site-footer .wordmark small { font-size: .6875rem; letter-spacing: .06em; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .site-footer { padding-bottom: calc(var(--quick-contact-height) + 28px); }
  .mobile-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -5px 24px #1123370b;
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  }
  .mobile-contact a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 60px;
    padding: 12px 8px;
    gap: 8px;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
  }
  .mobile-contact a span { min-width: 0; }
  .mobile-contact a:first-child { background: white; color: var(--navy); }
  .mobile-contact a:last-child { background: var(--burgundy); color: white; }
  .mobile-contact .icon { width: 18px; height: 18px; flex-basis: 18px; }
  /* Let the page use the short landscape viewport instead of pinning two bars. */
  @media (max-height: 500px) {
    .site-header { position: static; max-height: none; }
    .mobile-contact { position: static; }
    .site-footer { padding-bottom: 28px; }
  }
}

@media screen and (min-width: 641px) and (max-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 640px) {
  .services-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { gap: 0; }
  .contact-item, .contact-item + .contact-item { padding: 24px 0; border-left: 0; }
  .contact-item + .contact-item { border-top: 1px solid var(--line); }
  .contact-main.email { font-size: clamp(1.1rem, 4.7vw, 1.25rem); }
  .booking-hours { grid-template-columns: minmax(0, 1fr); }
  .booking-panel { padding: 22px 18px; }
  .service-card h3 { font-size: 1.2rem; }
}

@media screen and (max-width: 480px) {
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { justify-content: center; padding-block: 10px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-top p { grid-row: auto; }
  .back-top { margin-left: 0; }
}

@media screen and (max-width: 380px) {
  .menu-toggle { padding-inline: 10px; gap: 6px; }
  .hero-visual figcaption { padding-inline: 16px; }
  .caption-mark { display: none; }
  .strip-inner span { padding-inline: 6px; }
}

@media print {
  .menu-toggle, .main-nav .nav-book { display: none; }
}
