/* Trewornan Manor | Stage 1: header, mobile menu and homepage video.
   Keep in its own stylesheet so the supplied Tailwind/SCSS build isn't overwritten. */
:root { --tm-ink: #272028; --tm-blue: #8fbcee; --tm-pale: #e7f1fb; --tm-header-height: 84px; }
html { scroll-behavior: smooth; }
body.tm-menu-open { overflow: hidden; }
.site-header { position: relative; z-index: 50; width: 100%; background: #fff; color: var(--tm-ink); }
.tm-header-inner { height: var(--tm-header-height); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tm-site-logo { display: block; width: 116px; flex-shrink: 0; }
.tm-site-logo img { width: 100%; height: auto; }
.tm-header-actions { display: flex; align-items: center; gap: .65rem; }
.tm-book-link { border: 1px solid var(--tm-blue); color: var(--tm-ink); background: #fff; padding: .6rem 1rem; text-decoration: none; font-size: 1rem; line-height: 1.2; border-radius: 4px; white-space: nowrap; }
.tm-book-link:hover, .tm-book-link:focus-visible { background: var(--tm-pale); }
.site-header .menuopen { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--tm-blue); background: #fff; }
.site-header .menuopen img { width: 20px; height: auto; filter: brightness(0) saturate(100%) opacity(.8); }
.site-header a:focus-visible, .site-header button:focus-visible, .mainnavigation button:focus-visible, .mainnavigation a:focus-visible { outline: 3px solid #467fc2; outline-offset: 3px; }
@media (min-width: 768px) { :root { --tm-header-height: 104px; } .tm-site-logo { width: 150px; } .tm-header-actions { gap: 1rem; } }
/* Cover the hero completely when the menu is open. There must be no see-through text. */
.mainnavigation { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; gap: 1.5rem; width: 100%; height: 100dvh; padding: 20px max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: #fff; color: var(--tm-ink); opacity: 0; visibility: hidden; pointer-events: none; overflow-y: auto; transition: opacity .15s ease, visibility .15s ease; }
.mainnavigation.active { z-index: 1000; opacity: 1; visibility: visible; pointer-events: auto; }
.tm-menu-top { display: flex; justify-content: flex-end; flex-shrink: 0; }
.mainnavigation .closebutton { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; padding: 6px; }
.mainnavigation .closebutton img { width: 100%; height: auto; }
.mainnavigation .mainmenu { display: block; flex: 1 0 auto; }
.mainnavigation .mainmenu ul { margin: 0; padding: 0; list-style: none; }
.mainnavigation .mainmenu li { margin-bottom: .35rem; }
.mainnavigation .mainmenu a { display: inline-flex; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(1.6rem, 6vw, 2.6rem); line-height: 1.28; letter-spacing: .01em; color: var(--tm-ink); text-transform: none; padding: .15rem 0; }
.mainnavigation .mainmenu a:hover, .mainnavigation .mainmenu a:focus-visible, .mainnavigation .mainmenu .current-menu-item a { color: #356fae; }
.tm-menu-contact { display: flex; flex-direction: column; gap: .55rem; padding-top: 1rem; border-top: 1px solid #ddd; font-size: .95rem; line-height: 1.35; overflow-wrap: anywhere; }
.tm-menu-contact > a { color: var(--tm-ink); text-decoration: none; }
.tm-menu-social { display: flex; gap: 1.3rem; align-items: center; padding-top: .5rem; }
.tm-menu-social a { display: inline-flex; width: 32px; height: 32px; align-items: center; }
.tm-menu-social img { max-height: 24px; max-width: 24px; }
@media (min-width: 768px) { .mainnavigation { padding: 48px clamp(30px, 6vw, 95px); gap: 2rem; } .mainnavigation .mainmenu a { font-size: clamp(2rem, 3.5vw, 3.15rem); } .tm-menu-contact { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; } }
/* Video fills the first mobile viewport BELOW the new header, preserving the immersive opening. */
.tw-home-video-hero { position: relative; isolation: isolate; height: calc(100vh - var(--tm-header-height)); height: calc(100svh - var(--tm-header-height)); min-height: 460px; overflow: hidden; background-image: var(--tm-hero-poster); background-size: cover; background-position: center; background-color: #36463e; color: white; }
.tw-home-video-hero .video, .tw-home-video, .tw-home-video-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.tw-home-video { object-fit: cover; }
.tw-home-video-shade { background: linear-gradient(to bottom, rgba(0,0,0,.42),rgba(0,0,0,.19) 54%,rgba(0,0,0,.44)); pointer-events: none; }
.tw-home-hero-inner { position: relative; z-index: 2; display: flex; align-items: flex-start; height: 100%; padding-top: clamp(54px, 12svh, 110px); }
.tw-home-hero-copy { max-width: 650px; width: 100%; color: white; }
.tw-home-hero-eyebrow { margin: 0 0 1rem; font-family: Georgia,'Times New Roman',serif; font-size: clamp(1.1rem, 4.5vw, 1.5rem); line-height: 1.3; }
.tw-home-hero-title { margin: 0; color: white; font-family: Georgia,'Times New Roman',serif; font-size: clamp(2.25rem, 8.4vw, 4.25rem); line-height: 1.02; font-weight: normal; text-transform: uppercase; text-wrap: balance; }
.tw-home-hero-description { max-width: 425px; margin-top: clamp(1.4rem, 4svh, 3rem); font-size: clamp(1rem, 3.2vw, 1.15rem); line-height: 1.5; color: white; }
.tm-scroll-cue { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 3; color: white; text-decoration: none; font-size: 2rem; line-height: 1; padding: .3rem 1rem; border: 1px solid rgba(255,255,255,.8); border-radius: 100px; }
.tm-scroll-cue:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.tm-scroll-target { height: 0; }
@media (min-width: 768px) { .tw-home-video-hero { height: min(78svh, 880px); min-height: 540px; } .tw-home-hero-inner { padding-top: clamp(70px, 11vh, 155px); } .tw-home-hero-eyebrow { font-size: 1.5rem; } .tw-home-hero-title { font-size: clamp(3.5rem, 6vw, 6.8rem); } .tw-home-hero-description { font-size: 1.125rem; margin-top: 2rem; } }
@media (max-width: 400px) { .tm-site-logo { width: 99px; } .tm-header-actions { gap: .4rem; } .tm-book-link { padding: .5rem .6rem; font-size: .91rem; } .tw-home-hero-inner { padding-top: 36px; } .tw-home-hero-title { font-size: clamp(2rem, 8vw, 3rem); } }
@media (max-height: 650px) and (max-width: 767px) { .tw-home-video-hero { min-height: 400px; } .tw-home-hero-inner { padding-top: 24px; } .tw-home-hero-description { margin-top: 1rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tw-home-video { display: none; } .mainnavigation { transition: none; } }


/* Stage 2: desktop links, logo breathing room and a gentler menu transition. */
.site-header .tm-header-inner { gap: clamp(1rem, 2.5vw, 2.5rem); }
.tm-site-logo img { display: block; width: 100%; height: auto; max-height: 64px; object-fit: contain; }
.tm-desktop-nav { display: none; min-width: 0; margin-left: auto; }
.tm-desktop-links { display: flex; gap: clamp(1.1rem, 2.4vw, 2.3rem); align-items: center; list-style: none; margin: 0; padding: 0; }
.tm-desktop-links a { display: inline-block; padding: .75rem 0; color: var(--tm-ink); text-decoration: none; font-family: "gill-sans-nova", "Gill Sans", sans-serif; font-size: clamp(.98rem, 1.05vw, 1.1rem); font-weight: 400; letter-spacing: .035em; white-space: nowrap; }
.tm-desktop-links a:hover, .tm-desktop-links a:focus-visible, .tm-desktop-links .current-menu-item > a { color: #356fae; }
@media (min-width: 768px) { :root { --tm-header-height: 118px; } .tm-site-logo { width: 142px; } .tm-site-logo img { max-height: 94px; } }
@media (min-width: 1024px) { .tm-desktop-nav { display: block; } }
@media (max-width: 767px) { .tm-site-logo img { max-height: 62px; } }
.mainnavigation {
  transition: opacity .32s ease, visibility .32s ease;
}
.mainnavigation .mainmenu, .mainnavigation .tm-menu-contact {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .32s ease, transform .32s cubic-bezier(.22,1,.36,1);
}
.mainnavigation.active .mainmenu, .mainnavigation.active .tm-menu-contact {
  opacity: 1;
  transform: translateY(0);
}
/* Respect visitors who prefer immediate, nonanimated navigation. */
@media (prefers-reduced-motion: reduce) {
  .mainnavigation, .mainnavigation .mainmenu, .mainnavigation .tm-menu-contact { transition: none; }
}


/* Stage 2 typography: Adobe Fonts kit ucq5mrg.
   STIX Two Text Regular/Italic; Gill Sans Nova Book/SemiBold.
   The browser uses fallback fonts if Adobe Fonts is temporarily unavailable. */
:root {
  --tm-font-display: "stix-two-text", Georgia, "Times New Roman", serif;
  --tm-font-body: "gill-sans-nova", "Gill Sans", Arial, sans-serif;
}
body,
body.font-gillsans,
.site-header,
.tm-menu-contact { font-family: var(--tm-font-body); }
h1, h2, h3, h4, h5, h6,
.tw-home-hero-title,
.tw-home-hero-eyebrow,
.mainnavigation .mainmenu a { font-family: var(--tm-font-display); }
.tm-desktop-links a,
.tm-book-link,
.site-header .menuopen { font-family: var(--tm-font-body); }
