/*
Theme Name: WanderFlow 2026
Author: IT Economy
Version: 1.0.4
Text Domain: wanderflow2026
*/

:root {
  --green-900: #073f2a;
  --green-700: #167044;
  --green-100: #e9f5ee;
  --sky-100: #eaf6fb;
  --sun-300: #f2c95f;
  --coral-500: #d9684a;
  --ink: #163026;
  --muted: #5d6e66;
  --line: #dce7e2;
  --paper: #ffffff;
  --soft: #f7fbf9;
  --shadow: 0 18px 42px rgba(7, 63, 42, 0.12);
  --shadow-soft: 0 14px 34px rgba(7, 63, 42, 0.1);
  --font: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, #fbfdfb 62%, #f6faf7 100%);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: 0;
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(22, 48, 38, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

body.admin-bar .site-header {
  top: 32px;
}

.site-header-inner,
.section,
.footer-inner,
.content-page,
.archive-intro,
.tour-detail {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-width: 154px;
  color: var(--green-900);
  font-size: 1.45rem;
  font-weight: 900;
  text-decoration: none;
}

.site-brand img,
.brand-logo {
  width: 168px;
  max-height: 58px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-text {
  display: inline-block;
  letter-spacing: 0;
}

body.admin-bar {
  scroll-padding-top: 110px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--coral-500);
}

.mobile-menu {
  position: relative;
}

.mobile-menu summary {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-900);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu .site-nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 210px;
  gap: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-menu .site-nav a {
  padding: 10px 12px;
}

.hero-simple {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 54px;
}

.hero-simple > .wp-block-group__inner-container {
  display: grid;
  gap: 26px;
}

.hero-copy {
  align-self: center;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--green-900);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 2.35rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.hero-copy p,
.archive-intro p,
.contact-section p,
.about-section p,
.tour-hero p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.button-row {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.button,
.wf-button,
.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--green-900);
  border-radius: 8px;
  background: var(--green-900);
  color: #fff;
  font: 800 0.95rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
}

.button-row .button {
  width: 100%;
}

.button:hover,
.button:focus-visible,
.wf-button:hover,
.wf-button:focus-visible,
.comment-form .submit:hover,
.comment-form .submit:focus-visible {
  background: var(--green-700);
  border-color: var(--green-700);
}

.button-secondary {
  background: #fff;
  color: var(--green-900);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--green-100);
  color: var(--green-900);
}

.wf-menu-anchor {
  display: block;
  height: 0;
  overflow: hidden;
  scroll-margin-top: 112px;
}

.hero-image {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section {
  padding: clamp(48px, 7vw, 78px) 0;
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

.text-link {
  color: var(--coral-500);
  font-weight: 800;
  text-decoration: none;
}

.tour-list {
  display: grid;
  gap: 18px;
}

.past-tour-reports {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.past-tour-reports h2 {
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.wf-tour-carousel {
  position: relative;
}

.wf-tour-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.wf-tour-carousel .tour-card {
  flex: 0 0 min(82vw, 342px);
  scroll-snap-align: start;
}

.wf-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(22, 48, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(7, 63, 42, 0.14);
  color: var(--green-900);
  cursor: pointer;
  transform: translateY(-50%);
}

.wf-carousel-arrow:hover,
.wf-carousel-arrow:focus-visible {
  border-color: rgba(22, 112, 68, 0.34);
  background: #fff;
}

.wf-carousel-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.wf-carousel-prev {
  left: -12px;
}

.wf-carousel-next {
  right: -12px;
}

.tour-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(7, 63, 42, 0.02);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tour-card:hover {
  border-color: rgba(22, 112, 68, 0.24);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.tour-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tour-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.tour-date {
  color: var(--green-700);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tour-card h3 a {
  text-decoration: none;
}

.tour-card p {
  color: var(--muted);
}

.tour-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.tour-status {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--sun-300);
  color: #3b3313;
  font-size: 0.85rem;
  font-weight: 800;
}

.empty-state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.empty-state p {
  margin: 10px 0 16px;
  color: var(--muted);
}

.about-section {
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(56px, 7vw, 82px);
  padding-bottom: clamp(56px, 7vw, 82px);
}

.about-section > .wp-block-group__inner-container {
  display: grid;
  gap: 24px;
  align-items: center;
}

.about-section figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.about-section img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-section p + p {
  margin-top: 14px;
}

.narrow {
  max-width: 920px;
}

.instagram-box {
  min-height: 140px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky-100);
}

.contact-section {
  gap: 20px;
  margin-bottom: 36px;
  padding: clamp(26px, 5vw, 42px);
  border-radius: 8px;
  background: var(--green-900);
  color: #fff;
  box-shadow: 0 20px 48px rgba(7, 63, 42, 0.16);
}

.contact-section > .wp-block-group__inner-container {
  display: grid;
  gap: 24px;
  align-items: center;
}

.contact-section .wp-block-group {
  max-width: 560px;
}

.contact-section h2,
.contact-section p {
  color: #fff;
}

.contact-section h2 {
  max-width: 520px;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.contact-links,
.wf-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 15px;
  border: 1px solid rgba(22, 48, 38, 0.13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 9px 20px rgba(7, 63, 42, 0.09);
  color: var(--green-900);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
}

.contact-section .contact-button {
  border-color: rgba(255, 255, 255, 0.24);
}

.contact-button-email .contact-icon {
  color: #a75242;
}

.contact-button-phone .contact-icon {
  color: #286f7d;
}

.contact-button-whatsapp .contact-icon {
  color: #128a50;
}

.contact-button:hover,
.contact-button:focus-visible {
  border-color: rgba(22, 112, 68, 0.34);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 63, 42, 0.13);
}

.contact-button:focus-visible {
  outline: 3px solid rgba(242, 201, 95, 0.55);
  outline-offset: 3px;
}

.contact-button:active {
  transform: translateY(1px);
  box-shadow: 0 5px 12px rgba(7, 63, 42, 0.1), inset 0 2px 4px rgba(7, 63, 42, 0.12);
}

.contact-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
}

.contact-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon svg path:first-child {
  fill: none;
}

.archive-intro {
  padding: 42px 0 14px;
}

.tour-detail {
  padding: 28px 0 48px;
}

.tour-hero {
  display: grid;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.tour-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.tour-detail-grid {
  display: grid;
  gap: 26px;
}

.tour-content {
  font-size: 1.05rem;
}

.tour-content > * + * {
  margin-top: 18px;
}

.tour-content h2,
.tour-content h3 {
  margin-top: 30px;
}

.tour-content ul,
.tour-content ol {
  padding-left: 1.3rem;
}

.tour-sidebar {
  align-self: start;
}

.wf-registration-form,
.wf-notice {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.wf-registration-form {
  display: grid;
  gap: 16px;
}

.wf-form-grid {
  display: grid;
  gap: 12px;
}

.wf-registration-form label,
.comment-form label {
  display: grid;
  gap: 6px;
  color: var(--green-900);
  font-size: 0.92rem;
  font-weight: 800;
}

.wf-registration-form input,
.wf-registration-form textarea,
.comment-form input,
.comment-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd9d2;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 1rem/1.4 var(--font);
}

.wf-registration-form textarea,
.comment-form textarea {
  resize: vertical;
}

.wf-form-wide,
.wf-button,
.wf-contact-hint {
  grid-column: 1 / -1;
}

.wf-contact-hint {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.wf-contact-hint p {
  margin: 6px 0 10px;
  color: var(--muted);
}

.wf-hidden,
.wf-hp {
  position: absolute;
  left: -9999px;
}

.wf-notice {
  color: var(--green-900);
}

.wf-notice-success {
  border-color: #b8dfc5;
  background: var(--green-100);
}

.wf-notice-error {
  border-color: #efc4b7;
  background: #fff0eb;
}

.tour-gallery {
  margin-top: 34px;
}

.tour-gallery > div {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.tour-gallery a {
  display: inline-flex;
  flex: 0 1 auto;
  height: clamp(150px, 19vw, 230px);
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: 0 1px 0 rgba(7, 63, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tour-gallery a:hover,
.tour-gallery a:focus-visible {
  border-color: rgba(22, 112, 68, 0.28);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.tour-gallery img {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

body.wf-lightbox-open {
  overflow: hidden;
}

.wf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 18px;
  background: rgba(7, 24, 17, 0.86);
}

.wf-lightbox.is-open {
  display: flex;
}

.wf-lightbox img {
  max-width: min(1120px, 92vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.wf-lightbox button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--green-900);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.wf-lightbox button svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wf-lightbox-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
}

.wf-lightbox-arrow {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
}

.wf-lightbox-prev {
  left: 16px;
}

.wf-lightbox-next {
  right: 16px;
}

.comments-section {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.comment-list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.comment-body {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comment-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.comment-form .form-submit {
  margin: 0;
}

.comment-form .submit {
  width: auto;
}

.content-page {
  max-width: 820px;
  padding: 44px 0;
}

.content-page article > * + * {
  margin-top: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-inner {
  display: grid;
  gap: 28px;
  padding: 34px 0;
}

.footer-inner h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-inner .site-brand img {
  width: 150px;
}

.footer-inner .site-nav {
  display: grid;
  gap: 8px;
}

@media (min-width: 700px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .button-row {
    display: flex;
    flex-wrap: wrap;
  }

  .button-row .button {
    width: auto;
  }

  .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
  }

  .tour-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wf-carousel-arrow {
    display: grid;
  }

  .about-section > .wp-block-group__inner-container,
  .contact-section > .wp-block-group__inner-container {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .contact-section .contact-links {
    justify-content: flex-end;
  }

  .wf-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1.3fr 0.7fr 1fr;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (min-width: 920px) {
  .site-header-inner > .site-nav {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }

  .hero-simple {
    min-height: 610px;
    padding: 46px 0 62px;
  }

  .hero-simple > .wp-block-group__inner-container {
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 500px;
    align-items: center;
  }

  .tour-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tour-detail-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .tour-sidebar {
    position: sticky;
    top: 92px;
  }
}

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