/* [otc_home]: the homepage. Builds on stays.css and plays.css so it matches the Plays and Stays pages.
   v0.10.0: golf-only homepage. Main Mobile Golf Simulator tile + two smaller tiles (Sim Room, Large groups). */

/* The theme's "Home" title and its top spacing: not needed on this page. */
.otc-home-page .entry-hero,
.otc-home-page .entry-header,
.otc-home-page .entry-content-wrap > .entry-header { display: none !important; }
.otc-home-page .content-area { margin-top: 0 !important; }
.otc-home-page .entry-content-wrap { padding-top: 0 !important; }
.otc-home-page .entry-content { margin-top: 0 !important; } /* Kadence's 32px gap showed as a beige strip under the header */

.otc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Headline with rotating words */
.otc-home { padding-inline: clamp(16px, 4vw, 48px); } /* keeps tiles off the screen edges on full-width pages */
.otc-home__hero, .otc-home__tiles { max-width: 1240px; margin-inline: auto; }
.otc-home__hero { padding: 56px 0 8px; text-align: center; }
.otc-home__title { margin: 0; font: 800 clamp(34px, 5vw, 60px)/1.08 var(--font-display); color: var(--dusk); letter-spacing: -0.01em; }
.otc-rot__window { display: inline-grid; overflow: hidden; padding: 4px 20px; margin-bottom: 8px; line-height: 1.15; border-radius: 12px; background: var(--tangerine); color: var(--dusk); vertical-align: bottom; }
.otc-rot__word { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(100%); transition: transform 0.5s ease, opacity 0.5s ease; }
.otc-rot__word.is-active { opacity: 1; transform: translateY(0); }
.otc-rot__word.is-leaving { opacity: 0; transform: translateY(-100%); }
.otc-rot__static { display: block; }
.otc-home__sub { margin: 0 auto; padding: 24px 0 32px; max-width: 70ch; text-wrap: balance; font: 400 18px/28px var(--font-sans); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .otc-rot__word { transition: none; } }

/* v0.10.0 layout: the Mobile Golf Simulator tile on the left (2/3), Sim Room and Large groups stacked on the right.
   Tablets: main tile full width, the two smaller tiles side by side under it. Phones: one column. */
.otc-home__tiles { padding-bottom: 48px; }
.otc-home__layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.otc-home__main, .otc-home__side { display: grid; gap: 24px; min-width: 0; }
.otc-home__side { grid-template-rows: 1fr 1fr; }
@media (max-width: 1080px) {
  .otc-home__layout { grid-template-columns: minmax(0, 1fr); }
  .otc-home__side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
}
@media (max-width: 600px) {
  .otc-home__side { grid-template-columns: minmax(0, 1fr); }
  .otc-home__hero { padding: 32px 0 4px; }
  .otc-home__sub { padding: 16px 0 24px; font-size: 16px; line-height: 24px; }
}

.otc-hcard { height: 100%; }
.otc-hcard .otc-media { aspect-ratio: auto; height: 130px; } /* fixed band so tiles and buttons fit above the fold at any width */
.otc-hcard .otc-ph img { width: 76px; height: 76px; }
.otc-hcard .otc-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.otc-hcard .otc-card__title { font-size: 24px; line-height: 30px; }
.otc-hcard .otc-card__where { margin: 0; color: var(--ink); }
.otc-hcard .otc-card__btns { margin-top: auto; padding-top: 10px; }
.otc-hcard a.otc-card__link { color: inherit; text-decoration: none; }
.otc-hcard a.otc-card__link:hover { text-decoration: underline; text-decoration-color: var(--tangerine); text-underline-offset: 4px; }

/* Tile colors follow the brand's lines of business */
.otc-ph--room::after { background: var(--lake); }
.otc-ph--events::after { background: var(--tangerine); }

/* Smaller tiles: shorter picture band */
.otc-home__side .otc-hcard .otc-media { height: 96px; }
.otc-home__side .otc-hcard .otc-ph img { width: 60px; height: 60px; }
.otc-home__side .otc-hcard .otc-card__title { font-size: 21px; line-height: 27px; }

/* Main tile: the two simulators side by side */
.otc-hcard--golf .otc-card__title { font-size: 30px; line-height: 36px; }
.otc-hopts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
@media (max-width: 600px) { .otc-hopts { grid-template-columns: minmax(0, 1fr); gap: 12px; } .otc-hcard--golf .otc-card__title { font-size: 26px; line-height: 32px; } }
.otc-hopt { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius, 12px); background: var(--shell, #F9EBDD); border-top: 4px solid var(--marigold, #FFB938); }
.otc-hopt + .otc-hopt { border-top-color: var(--lake, #1F6F86); }
.otc-hopt__kicker { margin: 0; font: 700 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted, #5E5366); }
.otc-hopt__name { margin: 0; font: 700 20px/26px var(--font-display); color: var(--dusk, #36214A); }
.otc-hopt__text { margin: 0; font: 400 15px/22px var(--font-sans); color: var(--ink, #241A2B); }
.otc-hopt__group { margin: 4px 0 0; font: 700 15px/22px var(--font-sans); color: var(--lake, #1F6F86); }
.otc-hopt__group span { display: block; font-weight: 600; color: var(--dusk, #36214A); }
.otc-hopt__link { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; min-height: 32px; font: 700 15px/20px var(--font-sans); color: var(--dusk, #36214A); text-decoration: underline; text-decoration-color: var(--tangerine, #F26B3A); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.otc-hopt__link:hover { color: var(--lake, #1F6F86); }
.otc-hopt__link:focus-visible { outline: 3px solid var(--lake, #1F6F86); outline-offset: 2px; border-radius: 4px; }

/* Read more */
.otc-hmore summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font: 600 15px/20px var(--font-sans); color: var(--lake); }
.otc-hmore summary::-webkit-details-marker { display: none; }
.otc-hmore summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.otc-hmore[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.otc-hmore .otc-hmore__close, .otc-hmore[open] .otc-hmore__open { display: none; }
.otc-hmore[open] .otc-hmore__close { display: inline; }
.otc-hmore p { margin: 6px 0 0; font: 400 15px/23px var(--font-sans); color: var(--ink); }
.otc-hmore__list { margin: 8px 0 0; padding: 0 0 0 20px; font: 400 15px/23px var(--font-sans); color: var(--ink); }
.otc-hmore__list li { margin: 0 0 8px; }
.otc-hmore__list li::marker { color: var(--tangerine, #F26B3A); }
.otc-hmore__list strong { display: block; font-weight: 700; color: var(--dusk, #36214A); }
.otc-hmore__group { display: block; margin-top: 2px; font-weight: 700; color: var(--lake, #1F6F86); }
.otc-hmore .otc-hmore__note { font-weight: 600; }
.otc-hmore summary:focus-visible { outline: 3px solid var(--lake); outline-offset: 2px; border-radius: 4px; }

/* Phones: shorter picture band so each tile and its button fit on one screen */
@media (max-width: 600px) { .otc-hcard .otc-media { height: 120px; } .otc-hcard .otc-ph img { width: 64px; height: 64px; } }
@media (min-width: 601px) { .otc-hcard--golf .otc-card__btns .otc-btn { flex: 0 1 320px; } }
