:root {
  --green: #76bf24;
  --green-dark: #5a9b1a;
  --green-darker: #436e14;
  --green-light: #eef7e3;
  --text: #212121;
  --text-light: #5a5a5a;
  --white: #ffffff;
  --border: #e6e6e6;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
}

.logo img {
  height: 60px;
  width: auto;
}

.logo strong {
  color: var(--green);
}

.gnb {
  display: flex;
  gap: 32px;
}

.gnb a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.gnb a:hover,
.gnb a.active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 860px) {
  .gnb {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 10px 20px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .gnb.open {
    transform: translateX(0);
  }
  .gnb a {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav-toggle {
    display: block;
  }
  .header-cta .btn-text {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline {
  background: var(--white);
  border-color: var(--green);
  color: var(--green-dark);
}

.btn-outline:hover {
  background: var(--green-light);
}

.btn-kakao {
  background: #fee500;
  color: #191919;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(20, 40, 10, 0.55), rgba(20, 40, 10, 0.55)),
    center / cover no-repeat;
  color: var(--white);
}

.hero .wrap {
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.35;
}

.hero h1 span {
  color: #a4e857;
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Page header (non-home) */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--green-light);
  padding: 56px 0;
  text-align: center;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
  color: var(--green-dark);
  animation: float-bob 6s ease-in-out infinite;
}

.page-hero-decor img,
.page-hero-decor svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-hero-decor.p1 { top: 18%; left: 7%; width: 46px; height: 46px; }
.page-hero-decor.p2 { top: 58%; left: 15%; width: 30px; height: 30px; animation-delay: 0.6s; }
.page-hero-decor.p3 { top: 20%; right: 9%; width: 42px; height: 42px; animation-delay: 0.3s; }
.page-hero-decor.p4 { top: 56%; right: 17%; width: 28px; height: 28px; animation-delay: 0.9s; }

@media (prefers-reduced-motion: reduce) {
  .page-hero-decor {
    animation: none;
  }
}

.page-hero .eyebrow {
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 13px;
}

.page-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin: 8px 0 10px;
}

.page-hero p {
  color: var(--text-light);
  margin: 0;
}

.page-hero.photo {
  background-size: cover;
  background-position: center;
  padding: 84px 0;
}

.page-hero.photo .eyebrow {
  color: #c8ecab;
}

.page-hero.photo h1 {
  color: var(--white);
}

.page-hero.photo p {
  color: rgba(255, 255, 255, 0.9);
}

.page-hero.photo .subnav a {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.page-hero.photo .subnav a:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--white);
  color: var(--white);
}

/* Sections */
section {
  padding: 72px 0;
}

section.tight {
  padding: 48px 0;
}

section.alt {
  background: #fafafa;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head .eyebrow {
  color: var(--green-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  margin: 10px 0 12px;
}

.section-head p {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 780px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split .eyebrow {
  color: var(--green-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
}

.split h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 10px 0 16px;
  line-height: 1.4;
}

.split h2 em {
  font-style: normal;
  color: var(--green);
}

.split p {
  color: var(--text-light);
}

/* Card grid */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

@media (max-width: 860px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.card-body {
  padding: 18px 20px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.card-body p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
}

.card-body p + p {
  margin-top: 10px;
}

.feature {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}

.feature .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--green-dark);
}

.feature .icon img {
  width: 28px;
  height: 28px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  font-size: 13px;
  color: var(--text-light);
}

/* Promo banner */
.promo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  padding: 56px 40px;
  background: linear-gradient(120deg, rgba(15, 30, 5, 0.75), rgba(15, 30, 5, 0.45)), center / cover no-repeat;
}

.promo .tag {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.promo h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
}

.promo h2 span {
  color: #a4e857;
}

.promo p {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 24px;
}

/* Perk list */
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 780px) {
  .perks {
    grid-template-columns: 1fr;
  }
}

.perk {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.perk .num {
  color: var(--green);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 8px;
}

.perk-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.perk h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.perk p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
}

/* Contact CTA */
.contact-cta {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 40px 0;
}

.contact-cta h2 {
  font-size: clamp(19px, 2.6vw, 24px);
  margin: 0 0 6px;
  font-weight: 800;
}

.contact-cta p {
  margin: 0;
}

.contact-cta .phone {
  font-size: 21px;
  font-weight: 800;
  margin: 12px 0 2px;
}

.contact-cta .hours {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-bottom: 16px;
}

.contact-cta .btn {
  padding: 10px 22px;
  font-size: 14px;
}

/* Forms */
.form-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-field {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-light);
  cursor: pointer;
  margin: 0;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--green);
}

.consent-label strong {
  color: #c0392b;
}

.form-msg {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

.form-msg.ok {
  color: var(--green-dark);
}

.form-msg.err {
  color: #c0392b;
}

/* Board list */
.board-list {
  border-top: 2px solid var(--text);
}

.board-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}

.board-row .title {
  font-weight: 600;
}

.board-row .date {
  color: var(--text-light);
  font-size: 13px;
  white-space: nowrap;
  margin-left: 16px;
}

.board-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
}

.pagination button.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table td {
  padding: 10px 0;
  vertical-align: top;
}

.info-table td:first-child {
  width: 90px;
  font-weight: 700;
  color: var(--green-dark);
}

.map-embed {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 780px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  text-align: center;
  padding: 24px;
}

.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 14px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare th,
.compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.compare th {
  background: var(--green-light);
  color: var(--green-darker);
}

.compare tr:last-child td {
  border-bottom: none;
}

.compare td.brand {
  color: var(--green-dark);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: #1d1d1d;
  color: #cfcfcf;
  padding: 48px 0 28px;
  font-size: 14px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-logo {
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-logo strong {
  color: var(--green);
}

.footer-info div {
  margin-bottom: 4px;
}

.footer-sns {
  display: flex;
  gap: 10px;
}

.footer-sns a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2d2d2d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 15px;
}

.footer-sns svg {
  width: 18px;
  height: 18px;
}

.footer-sns a:hover {
  background: var(--green);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  color: #888;
  font-size: 13px;
}

/* Floating quick menu (right, vertically centered) */
.float-stack {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.float-btn:hover {
  transform: translateY(-2px);
}

.float-btn svg {
  width: 24px;
  height: 24px;
}

.float-btn span {
  font-size: 11px;
  font-weight: 700;
}

.float-btn.kakao {
  background: #fee500;
  color: #3a2929;
}

.float-btn.contact {
  background: var(--green);
}

.float-btn.blog {
  background: var(--green-darker);
}

@media (max-width: 780px) {
  .float-stack {
    right: 12px;
  }

  .float-btn {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .float-btn svg {
    width: 20px;
    height: 20px;
  }

  .float-btn span {
    font-size: 9px;
  }
}

/* Product sub navigation (in-page tabs) */
.subnav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.subnav a {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-light);
}

.subnav a:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

/* Hashtag badges */
.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.hashtags span {
  background: var(--green-light);
  color: var(--green-darker);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

/* Greeting signature */
.signature {
  margin-top: 20px;
  font-weight: 700;
  color: var(--text);
}

.signature .name {
  color: var(--green-dark);
  font-size: 17px;
  letter-spacing: 2px;
  margin-left: 6px;
}

/* Certification / award thumbnails */
.cert-thumb {
  text-align: center;
}

.cert-thumb img {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.cert-thumb img:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.cert-thumb p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero floating decorations */
.hero {
  overflow: hidden;
}

.hero-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

.hero-decor svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-decor.d1 {
  top: 14%;
  left: 6%;
  width: 46px;
  height: 46px;
  animation: float-bob 6s ease-in-out infinite;
}

.hero-decor.d2 {
  top: 62%;
  left: 12%;
  width: 28px;
  height: 28px;
  animation: float-bob 5s ease-in-out infinite 0.6s;
}

.hero-decor.d3 {
  top: 22%;
  right: 8%;
  width: 36px;
  height: 36px;
  animation: float-bob 7s ease-in-out infinite 0.3s;
}

.hero-decor.d4 {
  top: 68%;
  right: 16%;
  width: 24px;
  height: 24px;
  animation: float-bob 5.5s ease-in-out infinite 1s;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(10deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-decor {
    animation: none !important;
  }
}

/* Bouncy feature icons */
.feature .icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature:hover .icon {
  transform: scale(1.15) rotate(-6deg);
}

/* Count-up target */
.count-up {
  display: inline-block;
}

/* Floating quick menu attention pulse */
.float-btn.contact {
  animation: gentle-pulse 2.6s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
  50% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(118, 191, 36, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
  .float-btn.contact {
    animation: none;
  }
}

/* Playful button press */
.btn {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

/* Card hover polish */
.card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

/* Auto-advancing certificate carousel */
.cert-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.cert-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: cert-scroll 32s linear infinite;
}

.cert-carousel:hover .cert-track {
  animation-play-state: paused;
}

.cert-track .cert-thumb {
  flex: 0 0 150px;
}

.cert-track .cert-thumb img {
  max-width: 150px;
}

@keyframes cert-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cert-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
}

/* Board row click-to-view */
.board-row.clickable {
  cursor: pointer;
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.board-row.clickable:hover,
.board-row.clickable:focus-visible {
  background: var(--green-light);
  padding-left: 10px;
  outline: none;
}

/* Post detail modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 500;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 36px 32px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--green);
  color: var(--white);
}

.modal-date {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 6px;
}

.modal-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-content {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Sticky header shrink-on-scroll */
.site-header .wrap {
  transition: height 0.25s ease;
}

.logo img {
  transition: height 0.25s ease;
}

.site-header {
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .wrap {
  height: 60px;
}

.site-header.scrolled .logo img {
  height: 44px;
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.15s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--green);
}

/* Card image zoom on hover */
.card img {
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.08);
}

/* Homepage gallery preview: playful photo-stack tilt */
.photo-stack .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-stack .card:nth-child(1) { transform: rotate(-3deg); }
.photo-stack .card:nth-child(2) { transform: rotate(2deg); }
.photo-stack .card:nth-child(3) { transform: rotate(-2deg); }
.photo-stack .card:nth-child(4) { transform: rotate(3deg); }

.photo-stack .card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.05);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header .wrap,
  .logo img,
  .back-to-top,
  .card img,
  .photo-stack .card {
    transition: none !important;
  }
}
