/* =======================================================
   ReelsXpress Base Styles
   -------------------------------------------------------
   Global reset, body, typography, accessibility helpers,
   media defaults and container basics only.

   Do not put component styles here.
   Do not put section-specific layouts here.
   Do not define root brand tokens here.
   ======================================================= */

/* =======================================================
   Reset / Box Model
   ======================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--rx-color-page-bg, var(--rx-champagne));
  color: var(--rx-color-body, var(--rx-noir));
  font-family: var(--rx-body-font);
  font-size: var(--rx-type-body);
  font-weight: 500;
  line-height: var(--rx-leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-menu-open,
body.is-booking-open {
  overflow: hidden;
  touch-action: none;
}

/* =======================================================
   Media / Embedded Content
   ======================================================= */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
picture,
video,
canvas {
  height: auto;
}

img {
  border-style: none;
}

svg {
  flex-shrink: 0;
}

iframe,
embed,
object {
  max-width: 100%;
  border: 0;
}

figure {
  margin: 0;
}

/* =======================================================
   Form Element Normalization
   ======================================================= */

button,
input,
select,
textarea {
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

input,
select,
textarea {
  width: 100%;
}

textarea {
  resize: vertical;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* =======================================================
   Links / Selection / Focus
   ======================================================= */

a {
  color: inherit;
  text-decoration: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--rx-color-cta, var(--rx-ruby));
  color: var(--rx-color-on-accent, var(--rx-white));
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--rx-color-highlight, var(--rx-gold));
  outline-offset: 3px;
}

.rx-site-header :focus-visible,
.rx-site-footer :focus-visible,
.rx-floating-ctas :focus-visible {
  outline-offset: 4px;
}

/* =======================================================
   Global Typography
   ======================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--rx-color-heading, var(--rx-noir));
}

h1,
h2,
.rx-display-heading {
  font-family: var(--rx-heading-font);
  font-weight: 700;
  line-height: var(--rx-leading-display);
  letter-spacing: var(--rx-tracking-heading);
}

h1 {
  font-size: var(--rx-type-hero);
}

h2 {
  font-size: var(--rx-type-section);
}

h3,
h4,
h5,
h6 {
  font-family: var(--rx-body-font);
  line-height: var(--rx-leading-subheading);
  letter-spacing: var(--rx-tracking-ui);
}

h3 {
  font-size: var(--rx-type-subsection);
  font-weight: 800;
}

h4 {
  font-size: 1.125rem;
  font-weight: 750;
}

h5 {
  font-size: var(--rx-type-body-small);
  font-weight: 700;
}

h6 {
  font-size: var(--rx-type-caption);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: var(--rx-tracking-eyebrow);
}

p {
  margin: 0;
  color: var(--rx-color-muted, var(--rx-slate));
}

small {
  font-size: var(--rx-type-caption);
}

strong,
b {
  font-weight: 800;
}

em,
.rx-editorial-serif {
  font-family: var(--rx-serif-font);
  font-style: italic;
  font-weight: 700;
  color: var(--rx-serif-color, var(--rx-gold));
  letter-spacing: 0;
}

ul,
ol {
  margin-top: 0;
}

hr {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--rx-border);
}

/* =======================================================
   Layout Basics
   ======================================================= */

.rx-container {
  width: min(var(--rx-container-max), calc(100% - (var(--rx-container-pad) * 2)));
  margin-inline: auto;
}

.rx-container--narrow {
  max-width: 1080px;
}

.rx-main,
.rx-front-page .rx-main,
.rx-home-main {
  background: var(--rx-color-page-bg, var(--rx-champagne));
}

[hidden] {
  display: none;
}

/* =======================================================
   Accessibility Helpers
   ======================================================= */

.screen-reader-text,
.sr-only,
.rx-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.screen-reader-text:focus,
.sr-only:focus,
.rx-skip-link:focus {
  z-index: var(--rx-z-modal, 10000);
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  clip-path: none;
  background: var(--rx-color-card-bg, var(--rx-white));
  color: var(--rx-color-heading, var(--rx-noir));
  border: 1px solid var(--rx-border-strong);
  border-radius: var(--rx-radius-sm);
  box-shadow: var(--rx-shadow-clean);
}

.skip-link {
  position: absolute;
  z-index: var(--rx-z-modal, 10000);
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: var(--rx-radius-sm);
  background: var(--rx-color-card-bg, var(--rx-white));
  color: var(--rx-color-heading, var(--rx-noir));
  box-shadow: var(--rx-shadow-clean);
  transition: transform var(--rx-motion-fast, 180ms) var(--rx-ease-standard, ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* =======================================================
   WordPress / Admin Bar Compatibility
   ======================================================= */

.admin-bar .rx-site-header {
  margin-top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .rx-site-header {
    margin-top: 46px;
  }
}

/* =======================================================
   WordPress Content Defaults
   ======================================================= */

.rx-content > * + * {
  margin-top: 1rem;
}

.rx-content a {
  color: var(--rx-color-cta, var(--rx-ruby));
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

.rx-content ul,
.rx-content ol {
  padding-left: 1.25rem;
}

.rx-content li + li {
  margin-top: 0.45rem;
}

.rx-content img {
  border-radius: var(--rx-radius);
}

/* =======================================================
   Reduced Motion Baseline
   Extra component-specific reduced motion remains in responsive.css.
   ======================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: 1ms;
  }
}
