/* Panama Tour Company — one stylesheet. */
@font-face { font-family: "Archivo"; src: url(../fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/source-sans-3.woff2) format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/source-sans-3-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
	--ink: #10362f;
	--ink-2: #2b5a50;
	--muted: #4a6a62;
	--paper: #f6f8f5;
	--lock: #e3e9e3;
	--sun: #f0b323;
	--sun-2: #ffd56a;
	--sea: #1b5e9b;
	--water: #9fd0c9;
	--line: rgba(16, 54, 47, .16);
	--display: "Archivo", system-ui, sans-serif;
	--body: "Source Sans 3", system-ui, sans-serif;
	--gutter: 16px;
	--r: 8px;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (max-width: 939px) { html { scroll-padding-top: 84px; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--body); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--sea); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.5rem); font-weight: 780; letter-spacing: -.012em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; font-stretch: 105%; }
p { margin: 0 0 1em; }
.small, .fine { font-size: .95rem; color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--ink); padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.site-main { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 6px; font: 700 1rem/1 var(--display); font-stretch: 108%; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, transform .15s; }
.btn-sun { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.btn-sun:hover { background: var(--sun-2); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--lock); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
/* Frozen header: the template-part wrapper is what can stick, not the header inside it. */
.wp-site-blocks > .wp-block-template-part:first-child { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.site-head { box-shadow: 0 1px 0 rgba(16, 54, 47, .04); }
@media (max-width: 939px) { .nav.open { max-height: calc(100vh - 80px - var(--wp-admin--admin-bar--height, 0px)); overflow-y: auto; } }
@media (max-width: 600px) { body.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 0; } }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 760 1.12rem/1 var(--display); font-stretch: 115%; }
.brand .mark { flex: none; }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); background: none; color: var(--ink); border-radius: 6px; font: 700 1rem/1 var(--display); cursor: pointer; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current] { border-bottom-color: var(--sun); }
.nav .lang a { color: var(--sea); }
@media (max-width: 939px) {
	.js .menu-btn { display: inline-flex; align-items: center; }
	.js .nav { display: none; }
	.nav { width: 100%; flex-direction: column; align-items: stretch; padding: 4px 0 18px; }
	.nav.open { display: flex; }
	.nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.nav ul a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Canal profile */
.profile { display: block; width: 100%; color: var(--ink); overflow: visible; }
.profile .pf-hl { fill: var(--sun); opacity: .26; }
.profile .pf-hills { fill: var(--lock); }
.profile .pf-land { fill: var(--ink); }
.profile .pf-water { fill: var(--water); }
.profile .pf-surface { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.profile .pf-gates path { stroke: var(--ink); stroke-width: 5; }
.profile .pf-ship { fill: var(--ink); }
.profile text { font-family: var(--display); font-stretch: 108%; font-size: 20px; font-weight: 600; fill: var(--ink); }
.profile .pf-big { font-size: 26px; font-weight: 760; }
.profile .pf-lbl > text:first-child, .profile .pf-lbl > text:nth-child(2) { fill: var(--paper); }
.profile .pf-cut { font-style: italic; font-weight: 500; fill: var(--muted); }
.profile .pin circle { fill: var(--sun); stroke: var(--ink); stroke-width: 3; }
.profile .pin text { paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.profile .pf-off text { fill: var(--sea); }
@media (max-width: 640px) {
	.profile .minor { display: none; }
	.profile .pf-big { font-size: 44px; }
}
.profile--compact .minor { display: none; }
.profile--compact .pf-big { font-size: 40px; }
@media (prefers-reduced-motion: no-preference) {
	.home-hero .pf-surface { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: pf-draw 1.8s .2s cubic-bezier(.4, 0, .2, 1) forwards; }
	.home-hero .pf-ship { animation: pf-sail 2s .4s ease-out both; }
	@keyframes pf-draw { to { stroke-dashoffset: 0; } }
	@keyframes pf-sail { from { transform: translate(560px, 120px); opacity: 0; } to { transform: translate(800px, 120px); opacity: 1; } }
}

/* Home */
.home-hero { padding: clamp(36px, 6vw, 72px) 0 0; background: linear-gradient(var(--paper) 70%, var(--lock)); }
.home-hero h1 { max-width: 19ch; }
.lede { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem); max-width: 60ch; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.profile-wrap { margin-top: clamp(24px, 4vw, 48px); padding: 0; }
@media (min-width: 1180px) { .profile-wrap { padding: 0 var(--gutter); } }
.section-h { margin-bottom: .8em; }
.home-tours { padding: clamp(48px, 7vw, 88px) 0; }

.tour-groups.is-compact { display: grid; gap: 28px 48px; }
@media (min-width: 860px) { .tour-groups.is-compact { grid-template-columns: 1fr 1fr; } }
.tour-group h2 { font-size: 1.25rem; font-stretch: 112%; padding-bottom: 10px; border-bottom: 3px solid var(--ink); margin-bottom: 0; }
.tour-groups:not(.is-compact) .tour-group { margin-bottom: 44px; }
.tour-rows { list-style: none; margin: 0; padding: 0; }
.tour-rows li { border-bottom: 1px solid var(--line); }
.tour-rows a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 6px; color: var(--ink); text-decoration: none; }
.tour-rows a:hover { background: var(--lock); }
.tr-name { font: 650 1.12rem/1.3 var(--display); font-stretch: 104%; }
.tour-rows a:hover .tr-name { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.tr-dur { font-size: .95rem; color: var(--muted); white-space: nowrap; align-self: start; padding-top: 2px; }
.tr-short { grid-column: 1 / -1; color: var(--ink-2); max-width: 70ch; }

.home-kosher { background: var(--ink); color: var(--paper); padding: clamp(48px, 7vw, 88px) 0; }
.home-kosher h2 { color: var(--paper); }
.home-kosher p { color: #d7e6e1; max-width: 58ch; }
.kosher-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .kosher-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.k-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.k-links a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-left: 6px solid var(--sun); background: rgba(255, 255, 255, .06); color: var(--paper); text-decoration: none; }
.k-links a:hover { background: rgba(255, 255, 255, .12); }
.k-links span { font: 700 1.15rem/1.2 var(--display); font-stretch: 108%; }
.k-links small { color: #bcd3cc; font-size: .98rem; }

.home-steps { padding: clamp(48px, 7vw, 88px) 0; }
.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 24px; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.steps li { counter-increment: s; padding-top: 14px; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(s); display: block; font: 800 2.4rem/1 var(--display); font-stretch: 120%; color: var(--ink); margin-bottom: 10px; -webkit-text-stroke: 0; }
.steps p { color: var(--ink-2); }

.cta-band { background: var(--sun); padding: 28px 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-row p { margin: 0; font: 700 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.25 var(--display); font-stretch: 106%; }

/* Page and tour heroes */
.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); background: var(--lock); }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.tour-hero { background: var(--lock); padding: clamp(28px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); }
.tour-hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 940px) { .tour-hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.tour-cat { margin: 0 0 6px; font-weight: 600; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 20px 0 0; }
.facts div { min-width: 140px; }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 0; font: 650 1.05rem/1.35 var(--display); font-stretch: 104%; max-width: 30ch; }
.tour-hero-art { background: var(--paper); border-radius: var(--r); padding: 16px 12px 8px; border: 1px solid var(--line); }

/* Page body */
.page-body { padding-top: clamp(28px, 5vw, 48px); padding-bottom: clamp(48px, 7vw, 80px); }
.prose { max-width: 760px; }
.prose > * { max-width: 100%; }
.prose h2 { margin-top: 1.6em; }
.prose > p:first-child { font-size: 1.2rem; color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.ticks { list-style: none; padding: 0 !important; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }

.tour-facts { display: grid; gap: 0 40px; margin-top: 12px; }
@media (min-width: 760px) { .tour-facts { grid-template-columns: 1fr 1fr; } .tour-facts .kosher-note { grid-column: 1 / -1; } }
.tour-facts h2 { font-size: 1.3rem; margin-top: 1.2em; }
.kosher-note { background: var(--lock); border-left: 6px solid var(--sun); padding: 16px 20px; margin: 28px 0 8px; border-radius: 0 var(--r) var(--r) 0; }
.kosher-note p { margin: 0; }

/* Forms */
.booking { margin-top: 40px; padding: clamp(20px, 4vw, 32px); background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--ink); border-radius: var(--r); }
.booking h2 { margin-top: 0 !important; }
.pf .grid { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .pf .grid { grid-template-columns: 1fr 1fr; } .pf .span2 { grid-column: 1 / -1; } }
.pf p { margin: 0 0 16px; }
.pf label { display: block; font-weight: 650; margin-bottom: 6px; }
.pf .req { color: #9a3412; }
.pf input[type=text], .pf input[type=email], .pf input[type=tel], .pf input[type=date], .pf input[type=number], .pf select, .pf textarea {
	width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--paper); border: 2px solid rgba(16, 54, 47, .35); border-radius: 6px;
}
.pf textarea { min-height: 110px; resize: vertical; }
.pf input:focus, .pf select:focus, .pf textarea:focus { border-color: var(--sea); outline: 3px solid rgba(27, 94, 155, .25); outline-offset: 0; }
.pf .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 0 0 10px; }
.pf .check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.pf .check-cell { display: flex; align-items: flex-end; }
@media (min-width: 640px) { .pf .check-cell .check { margin-bottom: 14px; } }
.kosher-box { border: 2px solid var(--sun); border-radius: 6px; padding: 12px 16px 6px; margin: 0 0 16px; }
.kosher-box legend { font-weight: 700; padding: 0 6px; }
.more { margin: 0 0 16px; }
.more summary { cursor: pointer; font-weight: 650; color: var(--sea); padding: 8px 0; }
.more[open] summary { margin-bottom: 10px; }
.form-error { background: #fdecea; color: #7a1d10; border-left: 6px solid #b42318; padding: 12px 16px; border-radius: 0 6px 6px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Kosher pages */
.k-cards { list-style: none; margin: 8px 0 32px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .k-cards { grid-template-columns: 1fr 1fr; } }
.k-cards a { display: block; height: 100%; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--sun); border-radius: 0 var(--r) var(--r) 0; color: var(--ink); text-decoration: none; }
.k-cards a:hover { border-color: var(--ink); border-left-color: var(--sun); }
.k-cards h2 { font-size: 1.2rem; margin: 0 0 6px; }
.k-cards p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.jump ul { list-style: none; padding: 0 !important; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 650; }
.jump a:hover { background: var(--lock); }
.k-group { margin-top: 8px; }
.places { list-style: none; padding: 0 !important; margin: 0 0 12px; display: grid; gap: 0 28px; }
@media (min-width: 700px) { .places { grid-template-columns: 1fr 1fr; } }
.places li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.places h3 { margin: 0 0 2px; }
.places p { margin: 0 0 4px; }
.places .area { font-size: .95rem; color: var(--muted); }
.places .links { font-size: .95rem; display: flex; gap: 14px; }
.name-cloud { color: var(--ink-2); }
.checked { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.sources summary { cursor: pointer; font-size: .95rem; color: var(--sea); }
.sources ul { font-size: .95rem; }

/* FAQ and legal */
.faq section { padding: 6px 0 4px; border-bottom: 1px solid var(--line); }
.faq h2 { font-size: 1.2rem; margin: 16px 0 6px !important; }
.legal h2 { font-size: 1.25rem; }

/* Footer */
.site-foot { background: var(--ink); color: #d7e6e1; padding: 52px 0 24px; }
.site-foot a { color: var(--paper); }
.site-foot .brand { color: var(--paper); margin-bottom: 14px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-brand p { max-width: 42ch; font-size: 1rem; }
.foot-h { font: 700 1rem/1.2 var(--display); font-stretch: 110%; color: var(--sun); margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.foot-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .95rem; }
.foot-base p { margin: 0; }

@media print {
	.site-head, .site-foot, .booking, .cta-band { display: none; }
}
.profile--compact .pf-lake { display: none; }
@media (max-width: 939px) {
	.head-row { min-height: 60px; gap: 10px; }
	.brand { font-size: 1rem; gap: 8px; }
	.brand .mark { width: 28px; height: 28px; }
	.menu-btn { min-height: 40px; padding: 0 12px; }
}
