:root {
  --brand: #4CBB17;
  --brand-dark: #2d7a1f;
  --accent: #40a219;
  --bg: #fdfbf6;
  --surface: #ffffff;
  --card: #ffffff;
  --surface-alt: #fff9eb;
  --ink: #1f2933;
  --muted: #52606d;
  --border: #d8dee4;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --header-bg: rgba(255, 255, 255, 0.92);
  --footer-bg: rgba(255, 255, 255, 0.9);
  --link: #234d20;
  --note-green: url('img/sticky-green-crumpled.png');
  --note-cream: url('img/sticky-cream-crumpled.png');
}

html[data-theme="dark"] {
  --bg: #0d1b2a;
  --surface: #16223a;
  --card: #16223a;
  --surface-alt: #1b2b44;
  --ink: #e7ecf5;
  --muted: #9fb4d3;
  --border: #22314f;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  --header-bg: rgba(13, 27, 42, 0.88);
  --footer-bg: rgba(13, 27, 42, 0.92);
  --link: #9dd1ff;
  --note-green: none;
  --note-cream: none;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--brand);
}

a.btn,
.btn,
.btn-brand,
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(76, 187, 23, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

a.btn:hover,
.btn:hover,
.btn-brand:hover,
.btn-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: var(--surface);
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.brand .logo {
  width: 44px;
  height: 44px;
}

.nav nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav a {
  font-weight: 500;
  color: var(--ink);
}

.nav a:hover {
  color: var(--brand);
}

main {
  display: block;
}

.page-hero,
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(160deg, rgba(76, 187, 23, 0.18), rgba(76, 187, 23, 0.05));
}

.page-hero::after,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), transparent 60%);
  opacity: 0.8;
}

html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .hero {
  background: linear-gradient(160deg, rgba(76, 187, 23, 0.12), rgba(21, 45, 72, 0.85));
}

.page-hero > .container,
.hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero h1,
.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.page-hero p,
.hero p {
  margin-top: 0.5rem;
  max-width: 52ch;
  color: var(--muted);
}

.section {
  padding: 3rem 0;
}

.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.sticky-section {
  padding: 3.5rem 0;
}

.sticky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.sticky-note {
  position: relative;
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  box-shadow: var(--shadow);
  transform: rotate(var(--deg, -2deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.sticky-note h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.sticky-note p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.sticky-note .note-icon {
  width: clamp(64px, 30%, 96px);
  height: auto;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.sticky-note::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
}

.sticky-note.note-green {
  background: var(--note-green, var(--surface-alt));
  background-size: cover;
}

.sticky-note.note-cream {
  background: var(--note-cream, var(--surface-alt));
  background-size: cover;
}

html[data-theme="dark"] .sticky-note::before {
  background: var(--surface);
}

.sticky-note:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 24px 36px rgba(15, 23, 42, 0.2);
}

.sticky-note.single {
  max-width: 720px;
  margin: 0 auto;
}

.flip-card {
  perspective: 1200px;
  height: 280px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  background: var(--surface);
}

.flip-card-back {
  transform: rotateY(180deg);
}

@media (max-width: 640px) {
  .flip-card,
  .flip-card-inner {
    height: auto;
  }

  .flip-card-inner,
  .flip-card:hover .flip-card-inner,
  .flip-card:focus-within .flip-card-inner {
    transform: none;
  }

  .flip-card-back {
    position: static;
    transform: none;
  }
}

.cta-banner {
  margin: 3.5rem 0 0;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
}

.cta-banner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.cta-banner p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.form-label {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--ink);
}

.form-input,
.form-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(76, 187, 23, 0.15);
}

.form-textarea {
  min-height: 140px;
}

.upload {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  background: var(--surface-alt);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload.drag {
  border-color: var(--brand);
  background: rgba(76, 187, 23, 0.08);
}

.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface);
}

.progress {
  display: none;
  margin-top: 1rem;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
}

.progress .bar {
  height: 100%;
  width: 0;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  transition: width 0.2s ease;
}

.helper {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.notice {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(76, 187, 23, 0.35);
  background: rgba(76, 187, 23, 0.1);
  color: var(--brand-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 0;
  list-style: none;
}

.area-grid li {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.footer {
  margin-top: 4rem;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--ink);
}

.socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.socials img {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav nav {
    width: 100%;
    justify-content: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
