:root {
  --ink: #14252b;
  --muted: #637174;
  --line: #d9e4df;
  --surface: #ffffff;
  --soft: #f4f7f3;
  --teal: #0f817c;
  --teal-dark: #104b4f;
  --coral: #e76652;
  --green: #668f4a;
  --yellow: #e9b83f;
  --sky: #d8ecf0;
  --shadow: 0 18px 46px rgba(20, 37, 43, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8faf7 0, var(--soft) 420px),
    var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 10;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: white;
  background: var(--teal-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar {
  color: white;
  background: var(--teal-dark);
  font-size: 0.88rem;
}

.topbar__inner,
.nav,
.section,
.quick-links,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.topbar__links,
.nav__menu,
.hero__actions,
.footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.diary-link {
  padding: 5px 12px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(233, 184, 63, 0.22);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 230px;
  gap: 12px;
}

.brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--teal));
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(231, 102, 82, 0.22);
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav__menu a {
  position: relative;
  color: var(--muted);
  font-weight: 700;
}

.nav__menu a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav__menu a:hover {
  color: var(--teal-dark);
}

.nav__menu a:hover::after {
  transform: scaleX(1);
}

.icon-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.icon-button svg {
  width: 24px;
  height: 24px;
}

.hero {
  position: relative;
  min-height: clamp(560px, 72vh, 760px);
  isolation: isolate;
  overflow: hidden;
  background: #edf4ef;
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-settle 900ms ease-out both;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(248, 250, 247, 0.96) 0%, rgba(248, 250, 247, 0.78) 38%, rgba(248, 250, 247, 0.08) 76%),
    linear-gradient(0deg, rgba(15, 129, 124, 0.14), rgba(15, 129, 124, 0.02));
}

.hero__content {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding-top: clamp(96px, 14vh, 150px);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: 5.6rem;
  line-height: 0.96;
}

.hero p {
  max-width: 650px;
  color: #30454a;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
}

.button--primary {
  color: white;
  background: var(--teal);
  box-shadow: 0 14px 28px rgba(15, 129, 124, 0.2);
}

.button--light {
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.button:hover,
.quick-links a:hover,
.news-card:hover,
.tool-grid article:hover,
.project-list article:hover {
  transform: translateY(-3px);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -54px;
  position: relative;
  z-index: 2;
}

.quick-links a,
.news-card,
.tool-grid article,
.project-list article,
.contact-form,
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 38, 43, 0.07);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.quick-links a {
  display: grid;
  gap: 4px;
  min-height: 132px;
  padding: 18px;
  border-top: 4px solid transparent;
}

.quick-links a:hover,
.news-card:hover,
.tool-grid article:hover,
.project-list article:hover {
  border-color: rgba(15, 129, 124, 0.28);
  box-shadow: var(--shadow);
}

.quick-links__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 900;
}

.quick-links small {
  color: var(--muted);
}

.section {
  padding: 72px 0 0;
  animation: section-in 520ms ease both;
}

.section h2 {
  margin: 0 0 18px;
  font-size: 3rem;
  line-height: 1.05;
}

.section--feature {
  max-width: 1180px;
}

.section--feature > div {
  max-width: 930px;
  padding: 18px 0 18px 30px;
  background: transparent;
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  box-shadow: none;
}

.section--feature h2 {
  font-size: 2.65rem;
}

.section--split,
.contact,
.calendar-faq {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: start;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-actions span {
  padding: 9px 12px;
  color: var(--teal-dark);
  background: #eef7f4;
  border: 1px solid #c9e6df;
  border-radius: 8px;
  font-weight: 800;
}

.search {
  display: flex;
  align-items: center;
  width: min(340px, 100%);
  gap: 8px;
  padding: 10px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.filters,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.chip,
.tab {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--teal-dark);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.chip:hover,
.tab:hover {
  transform: translateY(-2px);
}

.chip.is-active,
.tab.is-active {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

.news-grid,
.tool-grid,
.project-list,
.gallery-grid,
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.news-card {
  position: relative;
  min-height: 245px;
  padding: 20px;
  overflow: hidden;
}

.news-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--yellow));
  content: "";
}

.news-card time {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state {
  margin: 18px 0 0;
  padding: 16px 18px;
  color: var(--muted);
  background: white;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  color: white;
  background: var(--coral);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag--green {
  background: var(--green);
}

.tag--yellow {
  color: var(--ink);
  background: var(--yellow);
}

.tab-panel {
  padding: 24px;
  background: white;
  border-left: 6px solid var(--coral);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: panel-in 240ms ease both;
}

.tab-panel h3 {
  margin-top: 0;
}

.tool-grid {
  grid-template-columns: repeat(4, 1fr);
}

.tool-grid article {
  min-height: 210px;
  padding: 22px;
}

.tool-grid a,
.contact a {
  color: var(--teal-dark);
  font-weight: 800;
}

.schedule {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) 1.4fr;
  gap: 28px;
}

.schedule-grid {
  grid-template-columns: repeat(2, 1fr);
}

.schedule-grid div {
  min-height: 128px;
  padding: 20px;
  color: white;
  background: var(--teal-dark);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(20, 37, 43, 0.08);
}

.schedule-grid div:nth-child(2) {
  background: var(--coral);
}

.schedule-grid div:nth-child(3) {
  color: var(--ink);
  background: var(--yellow);
}

.schedule-grid div:nth-child(4) {
  background: var(--green);
}

.schedule-grid h3,
.schedule-grid p {
  margin: 0;
}

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

.project-list article {
  padding: 24px;
}

.project-list span {
  color: var(--coral);
  font-weight: 900;
}

.gallery-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery-grid img,
.photo-tile {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.photo-tile {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.8) 0 12%, transparent 13%),
    linear-gradient(135deg, var(--teal), #69b7b1 46%, var(--yellow));
}

.photo-tile--art {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.72) 0 14%, transparent 15%),
    linear-gradient(135deg, var(--coral), #f0a256 48%, #7fbf8c);
}

.gallery-grid figcaption {
  padding: 12px 14px;
  font-weight: 800;
}

.calendar,
.map-placeholder {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calendar p {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.calendar p:last-child {
  border-bottom: 0;
}

details {
  padding: 16px 18px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

address {
  font-style: normal;
  margin-bottom: 20px;
}

.map-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: var(--teal-dark);
  background:
    linear-gradient(90deg, rgba(19, 123, 122, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(19, 123, 122, 0.18) 1px, transparent 1px),
    #eef6f0;
  background-size: 32px 32px;
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 72px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 4px 0 0;
  color: var(--muted);
}

@keyframes hero-settle {
  from {
    opacity: 0.82;
    transform: scale(1.025);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes section-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .topbar__inner,
  .section__head,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .icon-button {
    display: grid;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav__menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 16px;
  }

  .nav__menu.is-open {
    display: flex;
  }

  .quick-links,
  .news-grid,
  .tool-grid,
  .project-list,
  .gallery-grid,
  .schedule,
  .section--split,
  .contact,
  .calendar-faq {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 4.1rem;
  }

  .section h2 {
    font-size: 2.35rem;
  }
}

@media (max-width: 660px) {
  .topbar__links,
  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    min-height: 680px;
  }

  .hero__overlay {
    background: linear-gradient(0deg, rgba(245, 248, 244, 0.94), rgba(245, 248, 244, 0.75));
  }

  .quick-links,
  .news-grid,
  .tool-grid,
  .project-list,
  .gallery-grid,
  .schedule,
  .schedule-grid,
  .section--split,
  .contact,
  .calendar-faq {
    grid-template-columns: 1fr;
  }

  .quick-links {
    margin-top: 0;
    padding-top: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section h2 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
