/*
Theme Name: Tinas Rum
Theme URI: https://tinasrum.dk
Author: Tinas Rum
Description: Et varmt, roligt og skræddersyet tema til Tinas Rum.
Version: 1.0.0
Text Domain: tinas-rum
*/

:root {
  --tr-ink: #24302b;
  --tr-ink-soft: #4f5d55;
  --tr-forest: #425a4d;
  --tr-sage: #87998c;
  --tr-moss: #657b6c;
  --tr-clay: #ad775d;
  --tr-sand: #d9c9b4;
  --tr-paper: #f8f5ef;
  --tr-cream: #eee7dc;
  --tr-white: #fffdf9;
  --tr-line: rgba(36, 48, 43, .14);
  --tr-shadow: 0 30px 80px rgba(34, 48, 41, .12);
  --tr-serif: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --tr-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tr-shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tr-white);
  color: var(--tr-ink);
  font-family: var(--tr-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .65em; font-family: var(--tr-serif); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); }
h2 { font-size: clamp(2.25rem, 4.4vw, 4.5rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 2.15rem); }
p { margin: 0 0 1.3em; }
::selection { background: var(--tr-sand); color: var(--tr-ink); }

.tr-shell { width: var(--tr-shell); margin-inline: auto; }
.tr-narrow { width: min(780px, calc(100% - 48px)); margin-inline: auto; }
.tr-skip { position: fixed; z-index: 9999; left: 16px; top: -80px; padding: 12px 18px; background: var(--tr-ink); color: #fff; }
.tr-skip:focus { top: 16px; }
.tr-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--tr-moss); font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.tr-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.tr-lead { max-width: 760px; color: var(--tr-ink-soft); font-family: var(--tr-serif); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.45; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.tr-btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 13px 23px; border: 1px solid transparent; border-radius: 99px; text-decoration: none; font-size: .84rem; font-weight: 750; letter-spacing: .02em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.tr-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(36, 48, 43, .15); }
.tr-btn--primary { background: var(--tr-forest); color: #fff; }
.tr-btn--light { background: var(--tr-white); color: var(--tr-forest); }
.tr-btn--line { border-color: currentColor; color: inherit; }
.tr-btn--clay { background: var(--tr-clay); color: #fff; }

.site-header { position: sticky; z-index: 1000; top: 0; border-bottom: 1px solid transparent; background: rgba(255, 253, 249, .9); backdrop-filter: blur(18px); transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-color: var(--tr-line); box-shadow: 0 8px 30px rgba(36, 48, 43, .06); }
.header-inner { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand strong { font-family: var(--tr-serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -.02em; }
.brand small { margin-top: 7px; color: var(--tr-moss); font-size: .56rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a { position: relative; text-decoration: none; font-size: .79rem; font-weight: 700; }
.site-nav > a:not(.tr-btn)::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--tr-forest); transform: scaleX(0); transform-origin: right; transition: transform .22s; }
.site-nav > a:hover::after, .site-nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-dropdown { position: relative; }
.nav-dropdown > button { border: 0; background: transparent; color: inherit; font-size: .79rem; font-weight: 700; cursor: pointer; }
.nav-dropdown-panel { position: absolute; top: calc(100% + 18px); left: -24px; display: grid; width: 245px; padding: 15px; border: 1px solid var(--tr-line); border-radius: 18px; background: var(--tr-white); box-shadow: var(--tr-shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }
.nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown:focus-within .nav-dropdown-panel { opacity: 1; pointer-events: auto; transform: none; }
.nav-dropdown-panel a { padding: 9px 11px; border-radius: 9px; }
.nav-dropdown-panel a:hover { background: var(--tr-paper); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--tr-line); border-radius: 50%; background: transparent; color: var(--tr-ink); cursor: pointer; }

.tr-hero { position: relative; min-height: min(820px, calc(100vh - 84px)); display: grid; align-items: center; overflow: hidden; background: var(--tr-ink); color: #fff; }
.tr-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 32, 28, .86) 0%, rgba(23, 32, 28, .62) 43%, rgba(23, 32, 28, .08) 75%); z-index: 1; }
.tr-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 58%; filter: saturate(.7) contrast(.93); }
.tr-hero-copy { position: relative; z-index: 2; width: min(760px, 72%); padding-block: 110px; }
.tr-hero h1 { max-width: 760px; }
.tr-hero .tr-lead { max-width: 650px; color: rgba(255,255,255,.83); }
.tr-hero .tr-eyebrow { color: #ead8c2; }
.tr-hero-note { position: absolute; z-index: 2; right: max(24px, calc((100vw - 1180px)/2)); bottom: 34px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.82); font-family: var(--tr-serif); font-size: 1rem; font-style: italic; }
.tr-hero-note::before { content: ""; width: 45px; height: 1px; background: currentColor; }

.tr-section { padding: clamp(78px, 10vw, 140px) 0; }
.tr-section--paper { background: var(--tr-paper); }
.tr-section--forest { background: var(--tr-forest); color: #fff; }
.tr-section--cream { background: var(--tr-cream); }
.tr-section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr); align-items: end; gap: 65px; margin-bottom: 62px; }
.tr-section-head p { color: var(--tr-ink-soft); }
.tr-section--forest .tr-section-head p { color: rgba(255,255,255,.72); }
.tr-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tr-card { position: relative; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; border: 1px solid var(--tr-line); border-radius: 24px; background: var(--tr-white); text-decoration: none; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.tr-card:hover { transform: translateY(-7px); box-shadow: var(--tr-shadow); }
.tr-card-number { color: var(--tr-clay); font-family: var(--tr-serif); font-size: .9rem; }
.tr-card p { color: var(--tr-ink-soft); font-size: .95rem; }
.tr-card-arrow { display: inline-grid; width: 43px; height: 43px; place-items: center; border-radius: 50%; background: var(--tr-paper); transition: background .2s, color .2s; }
.tr-card:hover .tr-card-arrow { background: var(--tr-forest); color: #fff; }
.tr-card--image { min-height: 450px; justify-content: flex-end; color: #fff; }
.tr-card--image::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(0deg, rgba(26,37,31,.8), transparent 65%); }
.tr-card--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tr-card--image:hover img { transform: scale(1.035); }
.tr-card--image > * { position: relative; z-index: 2; }

.tr-split { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(45px, 7vw, 100px); align-items: center; }
.tr-split-media { position: relative; }
.tr-split-media img { width: 100%; min-height: 590px; object-fit: cover; border-radius: 220px 220px 24px 24px; filter: saturate(.78); }
.tr-split-media::after { content: ""; position: absolute; z-index: -1; inset: 25px -25px -25px 25px; border: 1px solid var(--tr-sage); border-radius: 220px 220px 24px 24px; }
.tr-quote { margin: 38px 0 0; padding: 28px 0 0 30px; border-left: 1px solid var(--tr-sage); color: var(--tr-ink); font-family: var(--tr-serif); font-size: clamp(1.3rem,2vw,1.85rem); font-style: italic; line-height: 1.45; }
.tr-checks { display: grid; gap: 13px; margin: 28px 0; padding: 0; list-style: none; }
.tr-checks li { position: relative; padding-left: 31px; }
.tr-checks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 15px; height: 8px; border-bottom: 2px solid var(--tr-clay); border-left: 2px solid var(--tr-clay); transform: rotate(-45deg); }

.tr-banner { position: relative; min-height: 540px; display: grid; align-items: center; overflow: hidden; color: #fff; }
.tr-banner::before { content: ""; position: absolute; z-index: 1; inset: 0; background: rgba(28, 40, 34, .56); }
.tr-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-banner-copy { position: relative; z-index: 2; width: min(780px, 100%); padding-block: 90px; }

.tr-session-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.tr-session { padding: clamp(35px,5vw,62px); border: 1px solid var(--tr-line); border-radius: 26px; background: var(--tr-white); }
.tr-session-time { display: inline-flex; align-items: baseline; gap: 7px; margin-bottom: 32px; color: var(--tr-clay); }
.tr-session-time strong { font-family: var(--tr-serif); font-size: clamp(3.4rem,7vw,6rem); font-weight: 400; line-height: .8; }
.tr-session-time span { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.tr-cta { display: grid; grid-template-columns: 1.3fr .7fr; gap: 55px; align-items: end; padding: clamp(45px,7vw,85px); border-radius: 32px; background: var(--tr-ink); color: #fff; }
.tr-cta p { color: rgba(255,255,255,.7); }

.page-hero { padding: clamp(85px,12vw,155px) 0 80px; background: var(--tr-paper); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(300px,.7fr); gap: 70px; align-items: center; }
.page-hero h1 { font-size: clamp(3.2rem,6vw,6rem); }
.page-hero-media { height: 520px; overflow: hidden; border-radius: 240px 240px 24px 24px; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.page-content { overflow: hidden; }
.content-section { padding: clamp(70px,9vw,120px) 0; }
.content-section + .content-section { border-top: 1px solid var(--tr-line); }
.content-grid { display: grid; grid-template-columns: .45fr 1fr; gap: 70px; }
.content-label { color: var(--tr-clay); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.content-copy { max-width: 800px; }
.content-copy > p, .content-copy li { color: var(--tr-ink-soft); }
.content-copy > p { font-size: 1.08rem; }
.content-copy h2 { margin-bottom: .65em; }
.topic-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 34px; }
.topic-links a { padding: 20px 22px; border: 1px solid var(--tr-line); border-radius: 14px; background: var(--tr-white); text-decoration: none; font-weight: 700; transition: .2s; }
.topic-links a:hover { border-color: var(--tr-sage); background: var(--tr-paper); transform: translateX(4px); }
.booking-wrap { min-height: 480px; margin-top: 45px; padding: clamp(20px,4vw,48px); border: 1px solid var(--tr-line); border-radius: 28px; background: #fff; box-shadow: 0 22px 70px rgba(36,48,43,.08); }
.booking-note { margin-top: 25px; padding: 18px 22px; border-radius: 14px; background: var(--tr-paper); color: var(--tr-ink-soft); font-size: .88rem; }
.contact-card { padding: clamp(35px,5vw,60px); border-radius: 28px; background: var(--tr-forest); color: #fff; }
.contact-card a { font-family: var(--tr-serif); font-size: clamp(1.55rem,3vw,2.5rem); }

.site-footer { padding: 80px 0 30px; background: #1f2a25; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 55px; }
.footer-brand { max-width: 430px; }
.footer-brand p, .footer-col a, .footer-meta { color: rgba(255,255,255,.65); }
.footer-col { display: grid; align-content: start; gap: 8px; }
.footer-col h3 { margin-bottom: 15px; font-family: var(--tr-sans); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 65px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); font-size: .75rem; }
.footer-admin { display: inline-flex; align-items: center; gap: 8px; }
.footer-admin::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tr-sand); }

.tr-reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .75s cubic-bezier(.2,.72,.2,1); }
.tr-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .site-nav { position: fixed; inset: 84px 0 auto; display: none; max-height: calc(100vh - 84px); align-items: stretch; padding: 28px 24px 40px; background: var(--tr-white); box-shadow: 0 24px 60px rgba(36,48,43,.14); overflow: auto; }
  .site-nav.is-open { display: grid; }
  .site-nav a, .nav-dropdown > button { width: 100%; padding: 8px 0; text-align: left; font-size: 1rem; }
  .nav-dropdown-panel { position: static; width: auto; padding: 8px 0 0 15px; border: 0; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .tr-hero-copy { width: min(760px, 86%); }
  .tr-section-head, .page-hero-grid, .footer-grid { grid-template-columns: 1fr; }
  .tr-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tr-split { gap: 55px; }
  .tr-split-media img { min-height: 480px; }
  .content-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero-media { height: 400px; }
}

@media (max-width: 720px) {
  :root { --tr-shell: min(100% - 30px, 1180px); }
  body { font-size: 16px; }
  .header-inner { min-height: 74px; }
  .site-nav { inset: 74px 0 auto; }
  .tr-hero { min-height: 720px; }
  .tr-hero::before { background: linear-gradient(0deg, rgba(23,32,28,.88), rgba(23,32,28,.32)); }
  .tr-hero-image { object-position: 60% 50%; }
  .tr-hero-copy { width: 100%; align-self: end; padding: 100px 0 90px; }
  .tr-hero h1 { font-size: clamp(3.1rem,14vw,4.8rem); }
  .tr-hero-note { display: none; }
  .tr-section { padding-block: 80px; }
  .tr-section-head { gap: 20px; margin-bottom: 40px; }
  .tr-card-grid, .tr-session-grid, .tr-split, .tr-cta, .topic-links { grid-template-columns: 1fr; }
  .tr-card { min-height: 280px; }
  .tr-card--image { min-height: 420px; }
  .tr-split-media { width: calc(100% - 18px); }
  .tr-split-media img { min-height: 460px; }
  .tr-cta { gap: 15px; padding: 36px 28px; border-radius: 22px; }
  .page-hero { padding: 70px 0 55px; }
  .page-hero-grid { gap: 40px; }
  .page-hero-media { height: 360px; }
  .content-section { padding-block: 70px; }
  .footer-grid { gap: 38px; }
  .footer-bottom { flex-direction: column; margin-top: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tr-reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 3px solid var(--tr-clay); outline-offset: 4px; }
