/* gotour.ge — site styles (2026 redesign). No build step: plain CSS. */

:root {
  --ink: #12324a;        /* Black Sea navy: text, headings */
  --ink-soft: #4b6175;   /* secondary text */
  --paper: #ffffff;
  --mist: #f2f6f9;       /* section background */
  --line: #d8e1e8;
  --orange: #ec6528;     /* brand accent: underlines, marks (not for text: 3.25:1 on white) */
  --orange-ink: #b5450f; /* orange for text and button fills: 5.5:1 on white, 5.1:1 on mist */
  --orange-ink-hover: #96390b;
  --blue: #2289f2;       /* brand: links, focus */
  --blue-dark: #0f6bcc;
  --field: #7d91a3;      /* input borders, 3.3:1 on white */
  --ok: #1f7a4a;
  --ok-bg: #e7f4ec;
  --error: #b3261e;
  --error-bg: #fbeceb;
  --selection: #fbd9c6;
  --shadow: 0 12px 28px rgba(18, 50, 74, .12);
  --tap: 44px;
  --on-accent: #ffffff;
  --scroll-thumb: #b7c5d1;

  --serif: "Noto Serif Georgian", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans Georgian", "Noto Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* type scale, ratio ≈ 1.25 */
  --fs-small: .875rem;
  --fs-body: 1rem;
  --fs-lead: 1.1875rem;
  --fs-h3: 1.1875rem;
  --fs-h2: 1.625rem;
  --fs-h1: 2.25rem;
  --fs-hero: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);

  --radius: 6px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
::selection { background: var(--selection); color: var(--ink); }
html { scrollbar-color: var(--scroll-thumb) var(--mist); accent-color: var(--orange-ink); }
body {
  caret-color: var(--orange-ink);
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--on-accent); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Header: row 1 logo / search / languages, row 2 menu ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__bar { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; padding-top: 10px; }
.logo img { width: 108px; height: auto; }
.search-link {
  order: 2; margin-left: auto; width: var(--tap); height: var(--tap); display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); border-radius: 50%;
}
.search-link:hover { background: var(--mist); color: var(--orange-ink); }
.lang-switch { order: 3; display: flex; gap: 2px; }
.lang-switch a {
  min-width: var(--tap); min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px; font-size: var(--fs-small); color: var(--ink-soft); text-decoration: none; border-radius: var(--radius);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { color: var(--ink); background: var(--mist); font-weight: 600; }
.nav-toggle { display: none; }
.site-nav { order: 5; flex-basis: 100%; margin-top: 6px; }
.site-nav__list { display: flex; flex-wrap: wrap; gap: 0 6px; list-style: none; margin: 0 0 0 -10px; padding: 0; }
.site-nav__item { position: relative; }
.site-nav__item > a {
  display: block; padding: 10px 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  white-space: nowrap; border-bottom: 3px solid transparent;
}
.site-nav__item > a:hover { color: var(--orange-ink); }
.site-nav__item > a[aria-current="page"] { border-bottom-color: var(--orange); }
.site-nav__sub {
  display: none; position: absolute; left: 0; top: 100%; min-width: 240px; list-style: none; margin: 0; padding: 6px 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.site-nav__sub a { display: block; padding: 8px 16px; color: var(--ink); text-decoration: none; }
.site-nav__sub a:hover, .site-nav__sub a[aria-current="page"] { background: var(--mist); color: var(--orange-ink); }
.has-children:hover > .site-nav__sub, .has-children:focus-within > .site-nav__sub { display: block; }

@media (max-width: 860px) {
  .site-header__bar { padding-bottom: 8px; column-gap: 2px; }
  .logo img { width: 88px; }
  .lang-switch a { min-width: 40px; padding: 0 4px; }
  .nav-toggle {
    order: 4; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: "";
  }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; margin: 0; }
  .site-nav__item > a { padding: 12px 2px; border-bottom: 1px solid var(--line); white-space: normal; }
  .site-nav__item > a[aria-current="page"] { border-bottom-color: var(--line); color: var(--orange-ink); }
  .site-nav__sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
}

/* ---------- Home hero: destination index ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); background: var(--paper); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.hero__title { font-size: var(--fs-hero); font-weight: 700; max-width: 18ch; }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-soft); margin: 18px 0 28px; max-width: 46ch; }
.destinations ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.destinations a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 2px;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.destinations__name { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; }
.destinations__count { font-size: var(--fs-small); color: var(--ink-soft); white-space: nowrap; }
.destinations a:hover .destinations__name { color: var(--orange-ink); }
.destinations a:hover .destinations__count { color: var(--orange-ink); }
.hero__photo { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: var(--on-accent); text-decoration: none; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(to top, rgba(10,30,46,.82), rgba(10,30,46,0));
}
.hero__caption-title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.hero__caption-price { align-self: flex-start; background: var(--orange-ink); color: var(--on-accent); padding: 3px 10px; border-radius: var(--radius); font-weight: 600; font-size: var(--fs-small); }
.hero__photo:hover { color: var(--on-accent); }
.hero__photo:hover .hero__caption-title { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo img { aspect-ratio: 4 / 3; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(36px, 5vw, 64px) 0; }
.section--tight { padding-top: 28px; }
.section--mist { background: var(--mist); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__title { font-size: var(--fs-h2); }
.section__more { font-weight: 600; white-space: nowrap; }

/* ---------- Tour cards ---------- */
.tour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
@media (max-width: 900px) { .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tour-grid { grid-template-columns: 1fr; } }
.tour { display: flex; flex-direction: column; }
.tour__link { color: var(--ink); text-decoration: none; }
.tour__media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.tour__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tour__title { font-size: var(--fs-h3); font-weight: 500; margin-top: 14px; }
.tour__link:hover .tour__title { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tour__price { margin: 6px 0 0; font-weight: 600; color: var(--orange-ink); }
.tour__price--ask { color: var(--ink-soft); font-weight: 400; }

/* featured strip */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 3); gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px;
}
.strip::-webkit-scrollbar { display: none; }
.strip > .tour { scroll-snap-align: start; }
@media (max-width: 900px) { .strip { grid-auto-columns: calc((100% - 28px) / 2); } }
@media (max-width: 560px) { .strip { grid-auto-columns: 82%; } }
.strip-nav { display: flex; gap: 8px; }
.strip-nav__btn {
  width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--field); background: var(--paper); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.strip-nav__btn svg, .pager svg { width: 18px; height: 18px; }
.strip-nav__btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange-ink); }
.strip-nav__btn:disabled { opacity: .35; cursor: default; }

/* ---------- Page heads ---------- */
.page-head { padding: clamp(28px, 4vw, 48px) 0 0; }
.page-title { font-size: var(--fs-h1); max-width: 26ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-small); margin-bottom: 12px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a + a::before { content: "/"; margin-right: 6px; color: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: var(--fs-small);
}
.chips a:hover { border-color: var(--orange); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-accent); }

/* ---------- Pager ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pager a, .pager span {
  min-width: var(--tap); height: var(--tap); display: inline-flex; align-items: center; justify-content: center; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.pager a:hover { border-color: var(--orange); color: var(--orange-ink); }
.pager span[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--on-accent); }

/* ---------- News ---------- */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.is-home .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
@media (max-width: 760px) { .is-home .news-list { grid-template-columns: 1fr; } }
.news-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.news-item__media img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.news-item__date { font-size: var(--fs-small); color: var(--ink-soft); }
.news-item__title { font-size: var(--fs-h3); font-weight: 500; margin: 2px 0 6px; }
.news-item__title a { color: var(--ink); text-decoration: none; }
.news-item__title a:hover { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.news-item__excerpt { color: var(--ink-soft); font-size: .95rem; margin: 0; max-width: 62ch; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.review { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.review blockquote {
  margin: 0; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere;
}
.review blockquote::before {
  content: "\201C" / ""; display: block; font-family: var(--serif); font-size: 3.25rem; line-height: .9; height: .55em;
  color: var(--orange); margin-bottom: 4px;
}
.review figcaption { display: flex; flex-direction: column; font-size: var(--fs-small); color: var(--ink-soft); }
.review__name { color: var(--ink); font-weight: 600; }

/* ---------- Article / prose ---------- */
.article { max-width: 820px; padding-top: clamp(28px, 4vw, 48px); padding-bottom: 64px; }
.article__date { display: block; color: var(--ink-soft); margin: 10px 0 20px; }
.article__figure { margin: 0 0 24px; }
.article__figure img { border-radius: var(--radius); max-height: 520px; width: auto; }
.article__gallery { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.article__gallery img { border-radius: var(--radius); }
.article > .page-title { margin-bottom: 20px; }
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.7; overflow-wrap: anywhere; }
.prose::after { content: ""; display: table; clear: both; }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose img { max-width: 100%; height: auto !important; border-radius: var(--radius); }
.prose img[style*="float: left"], .prose img[align="left"] { margin: 4px 20px 12px 0 !important; max-width: 45%; }
.prose img[style*="float: right"], .prose img[align="right"] { margin: 4px 0 12px 20px !important; max-width: 45%; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; margin: 0 0 1em; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose [style*="font-size"] { font-size: inherit !important; }
.prose [style*="font-family"] { font-family: inherit !important; }
@media (max-width: 560px) {
  .prose img[style*="float"], .prose img[align] { float: none !important; max-width: 100%; margin: 0 0 12px !important; }
}

/* ---------- Tour page ---------- */
.page-head--tour .page-title { max-width: 32ch; }
.tour-jump { display: none; margin-top: 16px; }
@media (max-width: 940px) { .tour-jump { display: inline-flex; } }
.booking { scroll-margin-top: 90px; }
.tour-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); padding-top: 28px; padding-bottom: 72px; align-items: start; }
@media (max-width: 940px) { .tour-page { grid-template-columns: 1fr; } }
.gallery { margin-bottom: 32px; }
.gallery__main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.gallery__thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--radius); background: none; cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--orange); }
.gallery__thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.tour-page__aside { position: sticky; top: 128px; }
@media (max-width: 940px) { .tour-page__aside { position: static; } }
.booking { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper); }
.facts { margin: 0 0 8px; }
.facts__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts__row dt { color: var(--ink-soft); font-size: var(--fs-small); padding-top: 2px; }
.facts__row dd { margin: 0; text-align: right; font-weight: 600; }
.facts__row dd small { font-weight: 400; color: var(--ink-soft); }
.facts__row--price dd { color: var(--orange-ink); font-size: 1.25rem; font-family: var(--serif); }
.booking__title { font-size: 1.25rem; margin: 20px 0 14px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; font-size: var(--fs-small); color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--field); border-radius: var(--radius); padding: 10px 12px; min-height: var(--tap);
}
.field textarea { resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid rgba(34,137,242,.25); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  background: var(--orange-ink); color: var(--on-accent); border: 0; border-radius: var(--radius); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--orange-ink-hover); color: var(--on-accent); }
.notice { padding: 14px 16px; border-radius: var(--radius); margin: 16px 0 0; }
.notice ul { margin: 0; padding-left: 1.1em; }
.notice--ok { background: var(--ok-bg); color: var(--ok); }
.notice--error { background: var(--error-bg); color: var(--error); margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: 28px; padding-bottom: 72px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__form { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact__form .booking__title { margin-top: 0; }

/* ---------- Search ---------- */
.search-big { display: flex; gap: 10px; margin-top: 20px; max-width: 640px; }
.search-big input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border: 1px solid var(--field); border-radius: var(--radius); min-height: 46px; }
.results-count { color: var(--ink-soft); }
.results { list-style: none; padding: 0; margin: 0; }
.results li { padding: 18px 0; border-top: 1px solid var(--line); }
.results__title { font-size: var(--fs-h3); font-weight: 500; margin-bottom: 4px; }
.results p { color: var(--ink-soft); margin: 0; max-width: 70ch; }
.empty { color: var(--ink-soft); font-size: var(--fs-lead); }
.not-found { padding-bottom: 96px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__logo { width: 96px; height: auto; margin-bottom: 10px; }
.site-footer__tagline { color: var(--ink-soft); max-width: 28ch; }
.site-footer__links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.site-footer__links li { margin-bottom: 8px; break-inside: avoid; }
.site-footer__links a, .site-footer__social a { color: var(--ink); text-decoration: none; }
.site-footer__links a:hover, .site-footer__social a:hover { color: var(--orange-ink); text-decoration: underline; }
.site-footer__social { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 16px; }
.site-footer__copy { margin-top: 32px; color: var(--ink-soft); font-size: var(--fs-small); }

@media (prefers-reduced-motion: reduce) {
  .strip { scroll-behavior: auto; }
}
