/*
Theme Name: TravelInTown Kadence Child
Theme URI: https://travelintown.com/
Description: TravelInTown glass editorial child theme for Kadence. Custom homepage template plus automatically styled foundational pages.
Author: TravelInTown
Template: kadence
Version: 0.2.1
Text Domain: travelintown
*/

:root {
  --tit-petrol: #14383d;
  --tit-petrol-2: #1f5055;
  --tit-sea: #7eb8b7;
  --tit-mist: #eef6f5;
  --tit-cloud: #f7faf9;
  --tit-white: #ffffff;
  --tit-ink: #122326;
  --tit-muted: #627377;
  --tit-accent: #f07b57;
  --tit-lime: #dce98e;
  --tit-line: rgba(18,35,38,.11);
  --tit-radius: 22px;
  --tit-radius-lg: 36px;
  --tit-shadow: 0 24px 70px rgba(9,36,40,.13);
}

html { scroll-behavior: smooth; }
body { background: var(--tit-cloud); color: var(--tit-ink); }
a { text-underline-offset: .18em; }

/* Kadence header remains admin-managed; only the visual treatment is supplied here. */
#masthead { background: transparent !important; }
#masthead .site-main-header-wrap { padding-top: 14px; }
#masthead .site-main-header-wrap .site-header-row-container-inner {
  width: min(1420px, calc(100% - 40px));
  margin-inline: auto;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: calc(var(--tit-radius) + 2px);
  background: rgba(247,250,249,.76) !important;
  box-shadow: 0 16px 46px rgba(12,43,47,.11);
  -webkit-backdrop-filter: blur(28px) saturate(128%);
  backdrop-filter: blur(24px) saturate(122%);
}
#masthead .site-header-item,
#masthead .site-branding a,
#masthead .main-navigation a { color: var(--tit-ink); }
#masthead .main-navigation a:hover,
#masthead .main-navigation .current-menu-item > a { color: var(--tit-accent); }

/* Shared */
.tit-wrap { width: min(1420px, calc(100% - 56px)); margin-inline: auto; }
.tit-section { padding-block: clamp(76px, 8vw, 118px); }
.tit-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tit-petrol-2);
}
.tit-muted { color: var(--tit-muted); }
.tit-glass {
  background: rgba(244,249,248,.52);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 24px 64px rgba(7,34,38,.16);
  -webkit-backdrop-filter: blur(28px) saturate(128%);
  backdrop-filter: blur(24px) saturate(122%);
}
.tit-btn,
.tit-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.tit-btn { background: var(--tit-petrol); color: #fff; border: 1px solid var(--tit-petrol); }
.tit-btn:hover { color: #fff; background: var(--tit-petrol-2); transform: translateY(-1px); }
.tit-btn-ghost { color: var(--tit-ink); border: 1px solid rgba(255,255,255,.52); background: rgba(255,255,255,.15); }
.tit-btn-ghost:hover { color: var(--tit-ink); background: rgba(255,255,255,.28); }

/* Custom homepage: independent from the page editor. */
body.home .content-area { margin: 0; }
.tit-home { padding: 28px 0 0; overflow: hidden; }
.tit-home-hero {
  position: relative;
  min-height: min(735px, 80vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--tit-radius-lg);
  background: #0e282c center/cover no-repeat;
  box-shadow: var(--tit-shadow);
}
.tit-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,26,29,.82), rgba(7,26,29,.50) 43%, rgba(7,26,29,.08) 78%);
}
.tit-home-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 420px);
  align-items: end;
  gap: clamp(30px, 5vw, 62px);
  padding: clamp(42px, 5vw, 72px);
}
.tit-home-copy { color: #fff; max-width: 720px; }
.tit-home-copy .tit-kicker { color: var(--tit-lime); }
.tit-home-copy h1 {
  margin: 14px 0 22px;
  color: #fff;
  font-size: clamp(56px, 7vw, 96px);
  line-height: .96;
  letter-spacing: -.055em;
}
.tit-home-copy h1 em {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.035em;
}
.tit-home-copy > p:not(.tit-kicker) {
  max-width: 660px;
  margin: 0 0 28px;
  color: rgba(255,255,255,.82);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}
.tit-home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tit-home-actions .tit-btn { background: rgba(20,56,61,.92); border-color: rgba(255,255,255,.16); }
.tit-home-actions .tit-btn-ghost { color: #fff; }

.tit-home-panel {
  padding: clamp(24px, 3vw, 32px);
  border-radius: calc(var(--tit-radius) + 6px);
}
.tit-home-panel h2 {
  margin: 12px 0 10px;
  color: var(--tit-ink);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.tit-home-panel > p { margin: 0 0 18px; color: var(--tit-muted); }
.tit-cover-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 9px;
  padding: 14px 15px;
  border-radius: 15px;
  border: 1px solid rgba(18,35,38,.08);
  background: rgba(255,255,255,.62);
}
.tit-cover-row strong { font-size: 13px; }
.tit-cover-row span { color: var(--tit-muted); font-size: 11px; text-align: right; }

.tit-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--tit-line);
  border-radius: var(--tit-radius);
  background: var(--tit-line);
  gap: 1px;
}
.tit-proof-item { padding: 20px 22px; background: rgba(255,255,255,.68); }
.tit-proof-item small { display:block; margin-bottom:4px; color:var(--tit-muted); font-size:10px; letter-spacing:.10em; text-transform:uppercase; }
.tit-proof-item strong { font-size: 13px; }

.tit-intro-grid,
.tit-method-grid,
.tit-home-about {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.tit-intro-copy h2,
.tit-method-copy h2,
.tit-home-about h2 {
  margin: 10px 0 18px;
  max-width: 760px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.tit-intro-copy p,
.tit-method-copy p,
.tit-home-about p { color: var(--tit-muted); font-size: 17px; line-height: 1.75; }

.tit-principles { display: grid; gap: 14px; }
.tit-principle {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--tit-line);
}
.tit-principle:first-child { border-top: 0; padding-top: 0; }
.tit-principle-number {
  width: 36px;
  height: 36px;
  display:grid;
  place-items:center;
  border-radius: 50%;
  background: var(--tit-mist);
  color: var(--tit-petrol);
  font-size: 11px;
  font-weight: 800;
}
.tit-principle h3 { margin: 0 0 5px; font-size: 20px; }
.tit-principle p { margin: 0; color: var(--tit-muted); line-height: 1.65; }

.tit-method-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--tit-radius-lg);
  background: linear-gradient(135deg, #123438, #1b4a50);
  color: #fff;
  padding: clamp(34px, 5vw, 58px);
}
.tit-method-shell::after {
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  right:-90px;
  top:-120px;
  border-radius:50%;
  background:rgba(126,184,183,.18);
  filter:blur(8px);
}
.tit-method-shell .tit-kicker { color: var(--tit-lime); }
.tit-method-copy h2 { color: #fff; }
.tit-method-copy p { color: rgba(255,255,255,.72); }
.tit-method-rows { position: relative; z-index:1; }
.tit-method-row {
  display: grid;
  grid-template-columns: 48px minmax(130px,.45fr) minmax(0,1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.tit-method-row:first-child { border-top:0; }
.tit-method-row span:first-child { color: var(--tit-lime); font-size: 12px; font-weight: 800; }
.tit-method-row strong { color:#fff; }
.tit-method-row p { margin:0; color:rgba(255,255,255,.66); line-height:1.6; }

.tit-home-about {
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid rgba(18,35,38,.08);
  border-radius: var(--tit-radius-lg);
  background: rgba(255,255,255,.70);
  box-shadow: 0 18px 54px rgba(9,36,40,.08);
}
.tit-home-about h2 { margin-top: 8px; font-size: clamp(34px, 4vw, 54px); }
.tit-home-about .tit-btn { margin-top: 8px; }

.tit-latest { padding-top: 0; }
.tit-latest-head { display:flex; justify-content:space-between; align-items:end; gap:30px; margin-bottom:30px; }
.tit-latest-head h2 { margin:8px 0 0; font-size:clamp(34px,4vw,50px); letter-spacing:-.04em; }
.tit-latest-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.tit-latest-card { overflow:hidden; border-radius:var(--tit-radius); background:#fff; border:1px solid var(--tit-line); }
.tit-latest-card img { width:100%; aspect-ratio:16/10; object-fit:cover; display:block; }
.tit-latest-card-body { padding:22px; }
.tit-latest-card h3 { margin:5px 0 8px; font-size:20px; line-height:1.2; }
.tit-latest-card h3 a { color:var(--tit-ink); text-decoration:none; }
.tit-latest-card p { margin:0; color:var(--tit-muted); font-size:14px; line-height:1.6; }

/* Foundation page template: automatically applied by slug. */
body.tit-foundation-page .content-area { margin: 0; }
.tit-page-shell { padding: 30px 0 clamp(80px, 9vw, 130px); }
.tit-page-hero {
  padding: clamp(52px, 7vw, 86px);
  border-radius: var(--tit-radius-lg);
  background:
    radial-gradient(circle at 86% 0%, rgba(126,184,183,.28), transparent 36%),
    linear-gradient(135deg, #123438, #1b4a50);
  color: #fff;
  box-shadow: var(--tit-shadow);
}
.tit-page-hero .tit-kicker { color: var(--tit-lime); }
.tit-page-hero h1 {
  max-width: 860px;
  margin: 12px 0 14px;
  color: #fff;
  font-size: clamp(46px, 6vw, 74px);
  line-height: 1;
  letter-spacing: -.05em;
}
.tit-page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.73);
  font-size: 17px;
  line-height: 1.7;
}
.tit-page-card {
  width: min(900px, calc(100% - 48px));
  margin: -36px auto 0;
  position: relative;
  z-index: 2;
  padding: clamp(34px, 5vw, 64px);
  border-radius: calc(var(--tit-radius) + 6px);
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 24px 64px rgba(9,36,40,.10);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.tit-page-card .entry-content { color:#304447; }
.tit-page-card .entry-content > * { max-width: 760px; margin-left:auto; margin-right:auto; }
.tit-page-card .entry-content > .alignwide,
.tit-page-card .entry-content > .alignfull { max-width:none; }
.tit-page-card .entry-content p,
.tit-page-card .entry-content li { font-size: 17px; line-height: 1.78; }
.tit-page-card .entry-content h2 {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--tit-line);
  color: var(--tit-ink);
  font-size: clamp(28px, 3.3vw, 38px);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.tit-page-card .entry-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.tit-page-card .entry-content h3 { margin-top: 32px; color: var(--tit-ink); font-size: 22px; }
.tit-page-card .entry-content a { color: var(--tit-petrol-2); font-weight: 650; }
.tit-page-card .entry-content blockquote {
  margin: 32px auto;
  padding: 22px 24px;
  border-left: 3px solid var(--tit-accent);
  border-radius: 0 var(--tit-radius) var(--tit-radius) 0;
  background: var(--tit-mist);
}
.tit-page-card .entry-content ul,
.tit-page-card .entry-content ol { padding-left: 1.25em; }
.tit-page-meta { margin-top: 16px !important; color: rgba(255,255,255,.56) !important; font-size: 12px !important; }

/* Footer stays Kadence-managed. */
#colophon { margin-top: 0; }
#colophon .site-footer-wrap {
  border-top:1px solid rgba(18,35,38,.08);
  background: rgba(255,255,255,.42);
  padding-block: 20px;
}
#colophon a { color: var(--tit-petrol-2); }

#tit-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.72);
  border-radius:50%;
  background:rgba(20,56,61,.86);
  color:#fff;
  box-shadow:0 14px 34px rgba(9,36,40,.18);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:.2s ease;
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}
#tit-back-to-top.is-visible { opacity:1; visibility:visible; transform:none; }

@media (max-width: 980px) {
  .tit-home-hero-inner,
  .tit-intro-grid,
  .tit-method-grid,
  .tit-home-about { grid-template-columns: 1fr; }
  .tit-home-hero { min-height: auto; }
  .tit-home-panel { max-width: 620px; }
  .tit-latest-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 720px) {
  .tit-wrap { width:min(100% - 28px,1420px); }
  #masthead .site-main-header-wrap { padding-top:9px; }
  #masthead .site-main-header-wrap .site-header-row-container-inner { width:calc(100% - 18px); border-radius:18px; }
  .tit-home { padding-top: 16px; }
  .tit-home-hero { border-radius: 26px; }
  .tit-home-hero-inner { padding: 26px 20px 20px; gap: 28px; }
  .tit-home-copy h1 { font-size: clamp(48px, 15vw, 70px); }
  .tit-home-panel { border-radius: 22px; }
  .tit-cover-row { grid-template-columns:1fr; gap:3px; }
  .tit-cover-row span { text-align:left; }
  .tit-proof-strip { grid-template-columns:1fr; }
  .tit-proof-item { padding:16px 18px; }
  .tit-section { padding-block:68px; }
  .tit-method-shell { border-radius:26px; padding:28px 20px; }
  .tit-method-row { grid-template-columns:34px 1fr; }
  .tit-method-row p { grid-column:2; }
  .tit-home-about { border-radius:26px; padding:30px 22px; }
  .tit-latest-head { display:block; }
  .tit-latest-grid { grid-template-columns:1fr; }
  .tit-page-shell { padding-top:16px; }
  .tit-page-hero { border-radius:26px; padding:48px 22px 66px; }
  .tit-page-hero h1 { font-size:clamp(42px,13vw,62px); }
  .tit-page-card { width:calc(100% - 28px); margin-top:-28px; padding:30px 22px; border-radius:22px; }
  .tit-page-card .entry-content p,
  .tit-page-card .entry-content li { font-size:16px; }
}
