/*
Theme Name: The Travel Access Foundation
Theme URI: https://thetravelaccess.com/
Author: The Travel Access
Description: Independent, responsive WordPress theme for The Travel Access. Preserves plugin-powered travel search, menus, articles, and the existing WooCommerce store during a staged migration.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tta-foundation
*/
:root {
  --tta-ink: #181d21;
  --tta-muted: #69737c;
  --tta-line: #e8e2da;
  --tta-paper: #ffffff;
  --tta-cream: #faf7f1;
  --tta-warm: #925b35;
  --tta-warm-dark: #6f3d1c;
  --tta-night: #151a20;
  --tta-ring: #c88e49;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tta-foundation { margin: 0; min-width: 320px; color: var(--tta-ink); background: var(--tta-paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6; }
body.tta-foundation a { color: inherit; }
body.tta-foundation img, body.tta-foundation video, body.tta-foundation iframe { max-width: 100%; }
body.tta-foundation img { height: auto; }
body.tta-foundation a:focus-visible, body.tta-foundation button:focus-visible, body.tta-foundation input:focus-visible { outline: 3px solid var(--tta-ring); outline-offset: 3px; }
.tta-skip-link { position: absolute; top: -100px; left: 16px; z-index: 99999; padding: 12px 16px; color: #fff !important; background: #252b31; border-radius: 0 0 8px 8px; }
.tta-skip-link:focus { top: 0; }
.tta-site-header { position: relative; z-index: 999; background: #fff; border-bottom: 1px solid var(--tta-line); }
.tta-header-inner { width: min(1360px, calc(100% - 44px)); min-height: 78px; margin: 0 auto; display: flex; gap: 28px; align-items: center; }
.tta-header-brand { flex: 0 0 auto; min-width: 0; }
.tta-header-brand .custom-logo-link { display: inline-flex; align-items: center; }
.tta-header-brand .custom-logo { display: block; width: auto; max-width: 250px; max-height: 62px; object-fit: contain; }
.tta-brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; white-space: nowrap; letter-spacing: .06em; }
.tta-brand-top { font-size: 11px; font-weight: 700; color: var(--tta-muted); letter-spacing: .19em; }
.tta-brand-bottom { font-size: 22px; font-weight: 900; letter-spacing: -.045em; color: var(--tta-warm-dark); margin-top: 3px; }
.tta-brand-mark { vertical-align: super; font-size: 9px; padding-left: 2px; }
.tta-nav { margin-left: auto; min-width: 0; }
.tta-nav .tta-menu, .tta-nav .sub-menu { list-style: none; padding: 0; margin: 0; }
.tta-nav .tta-menu { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 22px); }
.tta-nav .menu-item { position: relative; }
.tta-nav .menu-item > a { display: inline-flex; align-items: center; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.3; color: #22272c; padding: 16px 0; white-space: nowrap; }
.tta-nav .menu-item > a:hover, .tta-nav .current-menu-item > a, .tta-nav .current-menu-ancestor > a { color: var(--tta-warm); }
.tta-nav .menu-item-has-children > a::after { content: '⌄'; display: inline-block; margin-left: 6px; font-size: 14px; line-height: 1; }
.tta-nav .sub-menu { display: none; position: absolute; top: calc(100% - 2px); left: -16px; width: max-content; min-width: 210px; max-width: min(320px, 90vw); padding: 10px; background: #fff; border: 1px solid var(--tta-line); border-radius: 12px; box-shadow: 0 18px 45px rgba(16, 25, 34, .17); }
.tta-nav .sub-menu .sub-menu { top: -10px; left: calc(100% - 4px); }
/* Right-hand menu groups should open inward rather than creating page overflow. */
.tta-nav .tta-menu > li:nth-last-child(-n+2) > .sub-menu { right: 0; left: auto; }
.tta-nav .tta-menu > li:nth-last-child(-n+2) .sub-menu .sub-menu { right: calc(100% - 4px); left: auto; }
.tta-nav .menu-item:hover > .sub-menu, .tta-nav .menu-item:focus-within > .sub-menu, .tta-nav .menu-item.tta-submenu-open > .sub-menu { display: block; }
.tta-nav .sub-menu li > a { display: block; color: #2d333a; padding: 10px 12px; font-size: 12px; white-space: normal; border-radius: 7px; }
.tta-nav .sub-menu li > a:hover, .tta-nav .sub-menu li > a:focus { color: var(--tta-warm-dark); background: var(--tta-cream); }
.tta-nav .sub-menu li > a::after { float: right; }
.tta-submenu-toggle { display: none; }
.tta-menu-toggle { display: none; align-items: center; gap: 10px; margin-left: auto; padding: 10px 12px; border: 1px solid var(--tta-line); border-radius: 9px; background: #fff; color: var(--tta-ink); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.tta-menu-toggle-icon { display: flex; width: 18px; flex-direction: column; gap: 4px; }
.tta-menu-toggle-icon span { height: 2px; width: 100%; border-radius: 99px; background: currentColor; }
.tta-main { min-height: 50vh; }
.tta-page { width: 100%; }
.tta-page--content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 70px; }
.tta-page--booking { width: 100%; margin: 0; padding: 0; }
.tta-page--booking .tta-page-article { width: 100%; margin: 0; }
.tta-page-article::after, .tta-single-content::after { content: ''; display: table; clear: both; }
.tta-page-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 64px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; margin: 14px 0 25px; }
.tta-page-article > * { max-width: 100%; }
.tta-page-article .alignfull { width: 100%; max-width: none; }
.tta-content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
.tta-listing-header h1, .tta-single-header h1, .tta-not-found h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 60px); line-height: 1.1; font-weight: 500; letter-spacing: -.04em; margin: 0 0 18px; }
.tta-listing-header { padding-bottom: 18px; border-bottom: 1px solid var(--tta-line); margin-bottom: 32px; }
.tta-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.tta-entry-card { min-width: 0; padding: 0 0 25px; border: 1px solid var(--tta-line); border-radius: 12px; overflow: hidden; background: #fff; }
.tta-entry-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.tta-entry-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tta-entry-content { padding: 20px 20px 0; }
.tta-entry-meta { font-size: 12px; color: var(--tta-muted); margin: 0 0 8px; }
.tta-entry-title { font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1.2; margin: 0 0 12px; }
.tta-entry-title a { text-decoration: none; }
.tta-entry-excerpt { font-size: 14px; color: #59646b; }
.tta-entry-readmore { display: inline-block; margin-top: 7px; font-size: 13px; color: var(--tta-warm-dark) !important; font-weight: 700; text-decoration: none; }
.tta-single { max-width: 940px; }
.tta-single-header { margin-bottom: 22px; }
.tta-single-image img { width: 100%; border-radius: 12px; }
.tta-single-content { font-size: 17px; line-height: 1.8; overflow-wrap: break-word; }
.tta-single-content figure { margin: 28px 0; }
.tta-single-content figcaption { font-size: 12px; color: var(--tta-muted); }
.tta-single-content blockquote { padding: 18px 24px; margin: 24px 0; background: var(--tta-cream); border-left: 3px solid var(--tta-warm); }
.tta-single-content a, .tta-page--content a { text-underline-offset: 2px; }
.tta-content .navigation.pagination { margin-top: 38px; }
.tta-content .page-numbers { padding: 8px 11px; border: 1px solid var(--tta-line); border-radius: 6px; text-decoration: none; }
.tta-content .page-numbers.current { color: #fff; background: var(--tta-warm-dark); border-color: var(--tta-warm-dark); }
.tta-site-search { margin: 25px 0; }
.tta-site-search label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.tta-site-search-fields { display: flex; gap: 8px; max-width: 640px; }
.tta-site-search input { flex: 1 1 auto; min-width: 0; border: 1px solid var(--tta-line); border-radius: 8px; padding: 12px 14px; font: inherit; }
.tta-site-search button, .tta-back-home { display: inline-block; padding: 12px 19px; background: var(--tta-warm-dark); border: 0; border-radius: 8px; color: #fff !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.tta-not-found { text-align: center; }
.tta-not-found .tta-site-search { display: inline-block; text-align: left; width: min(600px, 100%); }
.tta-eyebrow { font-size: 12px; color: var(--tta-warm); font-weight: 800; letter-spacing: .18em; }
.tta-post-nav { border-top: 1px solid var(--tta-line); margin-top: 40px; padding-top: 20px; }
.tta-site-footer { color: #edf0f2; background: var(--tta-night); margin-top: auto; padding: 50px 0 0; }
.tta-footer-inner { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 55px; width: min(1360px, calc(100% - 44px)); margin: 0 auto 38px; }
.tta-footer-brand { font-size: 18px; color: #fff; letter-spacing: -.01em; }
.tta-footer-intro p { margin: 10px 0; font-size: 14px; color: #bcc4cb; }
.tta-footer-intro .tta-footer-note { font-size: 12px; color: #9aa4ad; }
.tta-footer-nav .tta-footer-menu, .tta-footer-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.tta-footer-nav .tta-footer-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tta-footer-nav .tta-footer-menu > li > a { display: block; font-size: 13px; font-weight: 800; margin-bottom: 12px; color: #f3f4f5; text-decoration: none; }
.tta-footer-nav .sub-menu li { margin: 0 0 7px; }
.tta-footer-nav .sub-menu a { display: block; font-size: 12px; color: #b6c0c8; text-decoration: none; line-height: 1.4; overflow-wrap: anywhere; }
.tta-footer-nav a:hover, .tta-footer-bottom a:hover { color: #fff; text-decoration: underline; }
.tta-footer-bottom { width: min(1360px, calc(100% - 44px)); padding: 18px 0; margin: auto; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #374047; font-size: 12px; color: #aab2b9; }
.tta-footer-bottom a { text-decoration: none; }
/* Existing WooCommerce shop remains operational during legacy audit. */
.woocommerce .woocommerce-breadcrumb { margin: 24px 0 20px; }
.woocommerce ul.products li.product { min-width: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--tta-ink); font-size: 17px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--tta-warm-dark); color: #fff; border-radius: 7px; }
/* Make native content responsive without overriding styles of [tta_*] plugins. */
.tta-page--content table { display: block; max-width: 100%; overflow-x: auto; }
.tta-page--content pre { max-width: 100%; overflow-x: auto; }
@media (max-width: 1200px) and (min-width: 1001px) {
  .tta-header-inner { gap: 17px; }
  .tta-nav .tta-menu { gap: 12px; }
  .tta-nav .menu-item > a { font-size: 12px; }
  .tta-brand-bottom { font-size: 19px; }
}
@media (max-width: 1000px) {
  .tta-header-inner { width: min(100%, calc(100% - 30px)); min-height: 70px; }
  html.tta-js .tta-menu-toggle { display: inline-flex; }
  .tta-nav { position: absolute; top: 100%; left: 0; right: 0; margin-left: 0; background: #fff; border-bottom: 1px solid var(--tta-line); box-shadow: 0 14px 25px rgba(0,0,0,.08); max-height: calc(100vh - 70px); overflow-y: auto; padding: 10px 20px 22px; }
  html.tta-js .tta-nav { display: none; }
  html.tta-js .tta-site-header.tta-menu-open .tta-nav { display: block; }
  .tta-nav .tta-menu { display: block; max-width: 680px; margin: auto; }
  .tta-nav .tta-menu > li { border-bottom: 1px solid #eee; }
  .tta-nav .menu-item > a { padding: 12px 8px; font-size: 15px; white-space: normal; max-width: calc(100% - 45px); }
  .tta-nav .menu-item-has-children > a::after { display: none; }
  html.tta-js .tta-nav .sub-menu { display: none; }
  html.tta-js .tta-nav .menu-item.tta-submenu-open > .sub-menu { display: block; }
  .tta-nav .sub-menu, .tta-nav .sub-menu .sub-menu { position: static; box-shadow: none; border: 0; border-radius: 0; padding: 3px 0 12px 16px; min-width: 0; max-width: none; width: 100%; }
  .tta-nav .sub-menu li > a { font-size: 13px; padding: 8px; }
  html.tta-js .tta-submenu-toggle { display: inline-flex; position: absolute; right: 0; top: 5px; width: 36px; height: 36px; justify-content: center; align-items: center; border: 1px solid var(--tta-line); background: #fff; color: var(--tta-warm-dark); border-radius: 7px; cursor: pointer; }
  .tta-footer-inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 700px) {
  .tta-header-brand .custom-logo { max-height: 54px; max-width: 205px; }
  .tta-brand-bottom { font-size: 21px; }
  .tta-footer-nav .tta-footer-menu { grid-template-columns: 1fr 1fr; }
  .tta-entry-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .tta-content { width: min(100%, calc(100% - 28px)); padding-top: 30px; }
  .tta-page--content { width: min(100%, calc(100% - 28px)); }
}
@media (max-width: 520px) {
  .tta-footer-nav .tta-footer-menu { grid-template-columns: 1fr; }
  .tta-footer-bottom { flex-direction: column; }
  .tta-entry-grid { grid-template-columns: 1fr; }
  .tta-site-search-fields { flex-direction: column; }
  .tta-menu-toggle { padding: 9px 10px; }
  .tta-brand-top { font-size: 10px; }
  .tta-brand-bottom { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
