/*
  Carla's, A Classic Design: mobile fixes.
  Additive only. Load last in <head>, after the Next CSS.

  How the tap target rules work:
  Each small control gets a transparent, absolutely positioned pseudo element
  that sits around it. It has no background, border or content, so nothing new
  is painted, and because it is absolutely positioned it takes no space, so
  nothing moves. A tap on the pseudo element counts as a tap on its control.
  Where a control already uses ::before or ::after for its look, the other
  pseudo element is used. Where links sit close together in a list, the hit
  area stops at the middle of the gap, so a tap always goes to the nearest link.

  All tap target rules only apply on touch devices and on screens up to 1024px
  wide, so desktop at 1440 is unchanged.
*/

@media (max-width: 1024px), (pointer: coarse) {

  /* Shared: hide the grey iOS tap flash on the enlarged controls only.
     Without this the flash would show the larger invisible box. */
  [class*="Nav_drawerToggle__"],
  [class*="Footer_link__"],
  [class*="Footer_legalNav__"] a,
  [class*="Footer_madeBy__"] a,
  [class*="Breadcrumbs_item__"] a,
  [class*="Hero_meta__"] a,
  [class*="HeroSlides_step__"],
  [class*="HeroSlides_pause__"],
  [class*="HeroSlides_seg__"],
  #site-menu [class*="Menu_social__"] a,
  [class*="Intro_panelMore__"],
  [class*="ServicesList_more__"],
  [class*="ServiceStack_relatedLink__"],
  [class*="ChapterFilm_index__"] button,
  [class*="VisitCta_howFar__"],
  [class*="Visit_copy__"],
  [class*="ContactDetails_copy__"],
  [class*="ContactDetails_phone__"],
  [class*="Lightbox_close__"] {
    -webkit-tap-highlight-color: transparent;
  }

  /* Anchor for the hit area. These were position: static, which has no visual
     effect here because none of them uses top, left, z-index or holds an
     absolutely positioned child. Footer_link and HeroSlides_seg are already
     relative and are left alone. */
  [class*="Nav_drawerToggle__"],
  [class*="Footer_legalNav__"] a,
  [class*="Footer_madeBy__"] a,
  [class*="Breadcrumbs_item__"] a,
  [class*="Hero_meta__"] a,
  [class*="HeroSlides_step__"],
  [class*="HeroSlides_pause__"],
  #site-menu [class*="Menu_social__"] a,
  [class*="Intro_panelMore__"],
  [class*="ServicesList_more__"],
  [class*="ServiceStack_relatedLink__"],
  [class*="ChapterFilm_index__"] button,
  [class*="VisitCta_howFar__"],
  [class*="Visit_copy__"],
  [class*="ContactDetails_copy__"],
  [class*="ContactDetails_phone__"] {
    position: relative;
  }

  /* 1. Menu toggle "MENU" (76x20). Becomes 92x44. Nothing else is near it
     in the 108px tall bar. */
  [class*="Nav_drawerToggle__"]::before {
    content: "";
    position: absolute;
    top: calc(50% - 22px);
    bottom: calc(50% - 22px);
    left: -8px;
    right: -8px;
  }

  /* 2. Footer links (19px tall). ::after is the gold underline, so ::before
     is used. In the stacked Explore list the links are about 34px apart, so
     each hit area reaches the middle of the gap to its neighbour. The first
     link can reach up toward the column title and the last link down toward
     the next column, since neither of those is tappable. */
  [class*="Footer_list__"] [class*="Footer_link__"]::before {
    content: "";
    position: absolute;
    top: -7.5px;
    bottom: -7.5px;
    left: -8px;
    right: -8px;
  }
  [class*="Footer_list__"] li:first-child [class*="Footer_link__"]::before {
    top: -12.5px;
  }
  [class*="Footer_list__"] li:last-child [class*="Footer_link__"]::before {
    bottom: -12.5px;
  }

  /* Social links in the Hours column wrap into rows with a small gap, so the
     hit area stops halfway across that gap. Sideways the gap is 17.6px, so
     8px each side never meets the next link. */
  [class*="Footer_social__"] [class*="Footer_link__"]::before {
    content: "";
    position: absolute;
    top: -5.5px;
    bottom: -5.5px;
    left: -8px;
    right: -8px;
  }
  [class*="Footer_social__"] li:last-child [class*="Footer_link__"]::before {
    bottom: -12.5px;
  }

  /* "Get directions": a Footer_link placed straight in the column under the
     phone number. Stops halfway to the phone above, grows freely below. */
  [class*="Footer_col__"] > [class*="Footer_link__"]::before {
    content: "";
    position: absolute;
    top: -7px;
    bottom: calc(100% - 37px);
    left: 0;
    right: 0;
  }

  /* 3. Footer legal links (20px). Only 4px upward in case the row wraps on a
     very narrow phone (row gap is 8px). Downward it stops halfway to the
     credit line. Sideways it splits the 24px gap. */
  [class*="Footer_legalNav__"] a::before {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -7px;
    left: -12px;
    right: -12px;
  }
  /* From 360px wide the four legal links always fit on one row, so the hit
     area can also grow up into the space below the copyright line. */
  @media (min-width: 360px) {
    [class*="Footer_legalNav__"] a::before {
      top: -12px;
    }
  }

  /* Credit link (15px). Halfway up to the legal links, then down into the
     empty footer padding. Total 44px. */
  [class*="Footer_madeBy__"] a::before {
    content: "";
    position: absolute;
    top: -7px;
    bottom: -22px;
    left: -8px;
    right: -8px;
  }

  /* 4. Breadcrumb links (18px). Breadcrumbs have 12px of empty padding above
     and below, so 44px fits. Sideways only 4px, half the gap to the "/". */
  [class*="Breadcrumbs_item__"] a::before {
    content: "";
    position: absolute;
    top: calc(50% - 22px);
    bottom: calc(50% - 22px);
    left: -4px;
    right: -4px;
  }

  /* 5. Hero phone link (23px). Up to halfway toward the buttons above, down
     into the plain address text. Total 44px. */
  [class*="Hero_meta__"] a::before {
    content: "";
    position: absolute;
    top: -9px;
    bottom: -12px;
    left: -8px;
    right: -8px;
  }

  /* 6. Hero slideshow arrows and pause (36x36 round). Become 44x44 centred.
     The gap between controls is 8px, so 4px each side just meets the
     neighbour and never covers it. */
  [class*="HeroSlides_step__"]::before,
  [class*="HeroSlides_pause__"]::before {
    content: "";
    position: absolute;
    top: calc(50% - 22px);
    bottom: calc(50% - 22px);
    left: calc(50% - 22px);
    right: calc(50% - 22px);
  }

  /* Slide segment buttons (31x28). ::before draws the thin line, so ::after
     is used. 44px tall, and 3px each side splits the 6px gap. */
  [class*="HeroSlides_seg__"]::after {
    content: "";
    position: absolute;
    top: calc(50% - 22px);
    bottom: calc(50% - 22px);
    left: -3px;
    right: -3px;
  }

  /* 7. Menu drawer social links (19px). Stacked with a small gap, so the hit
     area stops at the middle. First and last grow into the free space. */
  #site-menu [class*="Menu_social__"] a::before {
    content: "";
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: -8px;
    right: -8px;
  }
  #site-menu [class*="Menu_social__"] li:first-child a::before {
    top: -12.5px;
  }
  #site-menu [class*="Menu_social__"] li:last-child a::before {
    bottom: -12.5px;
  }

  /* 8. Underlined text links that stand alone (24 to 26px).
     Each becomes 44px tall, centred. */
  [class*="Intro_panelMore__"]::before,
  [class*="ServicesList_more__"]::before {
    content: "";
    position: absolute;
    top: calc(50% - 22px);
    bottom: calc(50% - 22px);
    left: 0;
    right: 0;
  }

  /* Related service links (24px) wrap in rows 8px apart and 19px apart
     sideways, so the hit area splits both gaps. */
  [class*="ServiceStack_relatedLink__"]::before {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: -9px;
    right: -9px;
  }

  /* 9. About page chapter buttons (29px). Rows 6.4px apart, 19.2px sideways,
     so the hit area splits both gaps. */
  [class*="ChapterFilm_index__"] button::before {
    content: "";
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: -9px;
    right: -9px;
  }

  /* 10. Pill and text buttons at 35 to 37px. Each becomes 44px tall,
     centred. The space around each one is wider than the 4px added. */
  [class*="VisitCta_howFar__"]::before,
  [class*="Visit_copy__"]::before,
  [class*="ContactDetails_copy__"]::before,
  [class*="ContactDetails_phone__"]::before {
    content: "";
    position: absolute;
    top: calc(50% - 22px);
    bottom: calc(50% - 22px);
    left: 0;
    right: 0;
  }

  /* 11. Lightbox "Close" text button (11px text, about 18px tall). Only shown
     after JS opens a photo, so it was not in the audit. It is already
     position: absolute, so it needs no anchor. Nothing else is near it;
     around it is only the dark backdrop. Becomes 44px tall. */
  [class*="Lightbox_close__"]::before {
    content: "";
    position: absolute;
    top: calc(50% - 22px);
    bottom: calc(50% - 22px);
    left: -8px;
    right: -8px;
  }
}

/* 2026-11-30 SEO audit fix (mobile LCP): keep the home hero text visible from
   first paint. The entrance animation still slides it in (transform only);
   only the fade from opacity 0 is overridden. Remove this block to roll back. */
[class*="Hero_eyebrow__"],
[class*="Hero_copy__"],
[class*="Hero_ctas__"],
[class*="Hero_meta__"] { opacity: 1 !important; }
