@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,650..850&display=swap");

:root {
  --ink: #17221f;
  --body: #3c4944;
  --muted: #6d7771;
  --paper: #faf8f0;
  --surface: #ffffff;
  --line: #dfe4dc;
  --green: #003b6f;
  --green-dark: #013261;
  --blue: #006ac6;
  --terracotta: #bd6046;
  --gold: #c89635;
  --soft-green: #e0edff;
  --soft-blue: #ecf3fd;
  --soft-terracotta: #fff0ea;
  --shadow: 0 16px 42px rgba(23, 34, 31, 0.12);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--body);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
}

body.menu-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

body.nav-scrolled .site-header,
body.menu-open .site-header {
  background: rgba(250, 248, 240, 0.94);
  border-bottom-color: rgba(223, 228, 220, 0.86);
  box-shadow: 0 12px 30px rgba(23, 34, 31, 0.08);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: clamp(142px, 14vw, 190px);
  color: #fff;
  text-decoration: none;
  transition: color 220ms ease, opacity 220ms ease;
}

body:not(.nav-scrolled):not(.menu-open) .brand {
  opacity: 0;
  pointer-events: none;
}

.brand img {
  width: clamp(142px, 14vw, 190px);
  height: auto;
  max-height: 54px;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.brand > span {
  display: none;
}

body.nav-scrolled .brand,
body.menu-open .brand {
  color: var(--ink);
}

body.nav-scrolled .brand img,
body.menu-open .brand img {
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  outline: none;
}

body.nav-scrolled .nav-links a,
body.menu-open .nav-links a {
  color: var(--body);
}

body.nav-scrolled .nav-links a:hover,
body.nav-scrolled .nav-links a:focus-visible,
body.nav-scrolled .nav-links a.active,
body.menu-open .nav-links a:hover,
body.menu-open .nav-links a:focus-visible,
body.menu-open .nav-links a.active {
  background: var(--soft-green);
  color: var(--green);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

body.nav-scrolled .menu-button,
body.menu-open .menu-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 10px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(33, 77, 56, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--green);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.7);
}

.button.outline {
  color: var(--green);
  background: var(--surface);
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 35, 28, 0.74), rgba(17, 35, 28, 0.42), rgba(17, 35, 28, 0.12)),
    url("assets/european-village-aerial-hero.webp") center / cover;
}

.hero.architecture {
  min-height: 420px;
  background:
    linear-gradient(90deg, rgba(17, 35, 28, 0.88), rgba(17, 35, 28, 0.50)),
    url("assets/european-village-architecture.webp") center / cover;
}

.hero.marketing-hero {
  min-height: 500px;
  background:
    linear-gradient(90deg, rgba(17, 35, 28, 0.9), rgba(17, 35, 28, 0.55), rgba(17, 35, 28, 0.2)),
    url("assets/european-village-hero.webp") center 56% / cover;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 740px;
  padding: 132px 0 88px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  font-weight: 750;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.section {
  position: relative;
  isolation: isolate;
  padding: 82px 0;
}

.section:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  height: 1px;
  background: rgba(0, 59, 111, 0.13);
  transform: translateX(-50%);
  pointer-events: none;
}

.section.compact {
  padding: 58px 0;
}

.section.surface {
  background: var(--surface);
}

.village-day-section {
  z-index: 2;
  min-height: 820px;
  display: grid;
  align-items: center;
  overflow: visible;
  padding: 128px 0 176px;
}

.village-day-section .section-header {
  margin-bottom: 42px;
}

.village-day-section + .section.soft-green {
  padding-top: 152px;
}

.section.soft-green {
  background: var(--soft-green);
}

.section.soft-blue {
  background: var(--soft-blue);
}

.section-header {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-header.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-header h2,
.content-block h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.06;
  font-weight: 740;
  letter-spacing: 0;
}

.section-header p,
.content-block p {
  margin: 16px 0 0;
  color: var(--body);
  font-size: 18px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.experience-card {
  min-height: 245px;
  padding: 0;
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  background: var(--green);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.experience-card:hover {
  transform: none;
}

.experience-card + .experience-card {
  border-left: 0;
}

.experience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 35, 28, 0.05), rgba(17, 35, 28, 0.84));
}

.experience-card.food {
  background: url("assets/businesses/red-clover-bg.png") center / cover;
}

.experience-card.retail {
  background: url("assets/businesses/blooming-flowers-bg.png") center / cover;
}

.experience-card.services {
  background: url("assets/european-village-architecture.webp") center / cover;
}

.experience-card-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 132px;
  padding: 20px 24px 22px;
  background: rgba(10, 22, 19, 0.76);
  box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
}

.experience-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 28px);
  line-height: 1.08;
  font-weight: 740;
  color: #fff;
}

.experience-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.village-signup {
  width: min(780px, 100%);
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 5;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(0, 59, 111, 0.14);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 22px 54px rgba(23, 34, 31, 0.08);
  transform: translate(-50%, 50%);
}

.village-signup-copy,
.village-signup-field {
  min-width: 0;
}

.village-signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  align-items: center;
  gap: 24px;
}

.village-signup-copy {
  padding: 12px 8px 12px 14px;
}

.village-signup-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.08;
  font-weight: 740;
}

.village-signup-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.village-signup-field {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(0, 59, 111, 0.15);
  border-radius: 8px;
  background: #fff;
}

.village-signup-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  padding: 0 12px;
}

.village-signup-field input::placeholder {
  color: rgba(60, 73, 68, 0.58);
}

.village-signup-field button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
}

.village-signup .form-note {
  grid-column: 1 / -1;
  margin: -2px 8px 8px 14px;
}

.directory-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 20px;
  align-items: center;
}

.directory-count {
  color: var(--body);
  font-size: 15px;
  white-space: nowrap;
}

.search-field,
.select-field,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 132px;
  padding: 12px 14px;
  resize: vertical;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pills button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--body);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.filter-pills button.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.business-card {
  min-height: 380px;
  border: 1px solid rgba(223, 228, 220, 0.9);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 34, 31, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.business-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 59, 111, 0.18);
  box-shadow: 0 18px 36px rgba(23, 34, 31, 0.12);
}

.business-media {
  min-height: 172px;
  position: relative;
  background: var(--soft-blue);
  overflow: hidden;
}

.business-media img.cover {
  width: 100%;
  height: 172px;
  object-fit: cover;
  transform: scale(var(--image-scale, 1));
  transform-origin: center center;
}

.business-logo {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(223, 228, 220, 0.95);
  box-shadow: 0 10px 20px rgba(23, 34, 31, 0.13);
  display: grid;
  place-items: center;
  padding: 8px;
}

.business-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.business-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
}

.business-body h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.14;
  font-weight: 740;
}

.business-body p {
  margin: 10px 0 0;
  color: var(--body);
  font-size: 15px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.business-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}

.business-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.business-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.business-actions a:first-child {
  color: #fff;
  background: var(--green);
}

.business-actions a:last-child {
  color: var(--green);
  background: var(--soft-green);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
}

.image-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.image-frame img,
.image-frame iframe {
  width: 100%;
  border: 0;
}

.map-frame img {
  width: 100%;
  background: var(--surface);
}

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

.event-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 34, 31, 0.08);
}

.event-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
}

.event-card h2,
.event-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 740;
}

.event-card p {
  margin: 10px 0 0;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: var(--surface);
  border-radius: 8px;
}

.form-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 34, 31, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.form-note {
  display: none;
  margin-top: 14px;
  color: var(--green);
  font-weight: 750;
}

.form-note.visible {
  display: block;
}

.site-footer {
  flex-shrink: 0;
  padding: 44px 0;
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.82);
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition-property: opacity, transform;
  transition-duration: 720ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-ready .hero [data-reveal],
.reveal-ready .page-hero [data-reveal] {
  transform: translate3d(0, 18px, 0);
}

.reveal-ready .is-visible [data-reveal] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-ready .village-signup[data-reveal] {
  transform: translate(-50%, calc(50% + 24px));
}

.reveal-ready .is-visible .village-signup[data-reveal] {
  transform: translate(-50%, 50%);
}

.reveal-ready .is-visible .business-card:hover,
.reveal-ready .is-visible .experience-card:hover {
  transform: translateY(-3px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-grid strong {
  color: #fff;
}

.footer-grid a {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #fff;
}

@media (max-width: 920px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 82px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .experience-grid,
  .business-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .village-signup {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 620px;
  }

  .split,
  .event-card {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .directory-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .directory-count {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .nav,
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 128px;
    height: auto;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 600px;
    background:
      linear-gradient(90deg, rgba(17, 35, 28, 0.58), rgba(17, 35, 28, 0.24), rgba(17, 35, 28, 0.04)),
      url("assets/european-village-aerial-hero.webp") 68% center / cover;
  }

  .hero.architecture {
    min-height: 520px;
  }

  .hero.marketing-hero {
    min-height: 540px;
  }

  .hero-copy {
    padding: 58px 0 70px;
  }

  .section {
    padding: 58px 0;
  }

  .village-day-section {
    min-height: 900px;
    padding: 86px 0 180px;
  }

  .village-day-section + .section.soft-green {
    padding-top: 190px;
  }

  .village-signup {
    width: min(100% - 28px, 620px);
    padding: 8px;
  }

  .village-signup-copy {
    padding: 10px 10px 2px;
    text-align: center;
  }

  .village-signup-field {
    grid-template-columns: 1fr;
  }

  .village-signup-field input {
    min-height: 44px;
    text-align: center;
  }

  .hero-actions,
  .section-actions,
  .business-actions {
    flex-direction: column;
  }

  .button,
  .business-actions a {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-ready .village-signup[data-reveal] {
    transform: translate(-50%, 50%);
  }
}
