/* Global reset & base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f6f2ea;
  color: #222222;
  line-height: 1.6;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(246, 242, 234, 0.92);
  border-bottom: 1px solid rgba(205, 183, 144, 0.35);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: #8a5b22;
}

.brand-logo-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffe6a8, #f29b30);
  box-shadow: 0 0 0 3px rgba(228, 167, 80, 0.4);
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
}

.site-nav a {
  color: #5d4b34;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: rgba(255, 245, 225, 0.9);
  color: #8a5b22;
}

/* Layout wrapper */
.page {
  min-height: 100vh;
  max-width: 1120px;
  margin: 24px auto 40px;
  padding: 16px;
}

/* Hero card layout */
.hero-card {
  background: #fffaf1;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 10, 5, 0.12);
  display: flex;
  gap: 32px;
  padding: 28px 32px;
  align-items: stretch;
}

/* Left side image */
.hero-media {
  flex: 1 1 46%;
  display: flex;
  align-items: stretch;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tag {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(22, 18, 13, 0.78);
  color: #fdf7ea;
}

/* Right side text content */
.hero-content {
  flex: 1 1 54%;
  display: flex;
  flex-direction: column;
}

.brand-label {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c28134;
  margin: 2px 0 8px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #1f160f;
}

.hero-lead {
  font-size: 16px;
  margin: 0 0 6px;
}

.hero-body {
  font-size: 14px;
  color: #5b4a38;
  margin: 0 0 16px;
}

/* Pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff3dd;
  color: #7b4c1d;
  border: 1px dashed rgba(197, 135, 59, 0.6);
}

/* Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f5a623, #f0932b);
  color: #3d2205;
  box-shadow: 0 10px 20px rgba(172, 92, 4, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(130, 70, 3, 0.35);
}

.btn-secondary {
  background: #fff5e1;
  color: #8a5a20;
  border-color: rgba(196, 140, 71, 0.6);
}

.btn-secondary:hover {
  background: #ffecc9;
}

.small-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: #8a7a64;
}

/* General content sections */
.content-section {
  margin-top: 28px;
  background: #fffaf1;
  border-radius: 24px;
  padding: 22px 24px 24px;
  box-shadow: 0 16px 34px rgba(15, 10, 5, 0.08);
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #2b1a0a;
}

.section-header p {
  margin: 0 0 18px;
  font-size: 14px;
  color: #5f4b33;
}

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

.about-block {
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: #fffdf7;
  border: 1px solid rgba(223, 193, 143, 0.7);
}

.about-block h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #3a2410;
}

.about-block p {
  margin: 0;
  font-size: 13px;
  color: #5f4b37;
}

.cn-intro {
  margin-top: 18px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: #fff9ee;
  border: 1px dashed rgba(210, 160, 96, 0.9);
  font-size: 13px;
  color: #4f3924;
}

.cn-intro h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #8a5b22;
}

/* Gallery */
.gallery-section {
  background: #fffef9;
}

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

.gallery-item {
  margin: 0;
  background: #fffdf7;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(223, 193, 143, 0.6);
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.gallery-item figcaption {
  padding: 8px 10px 10px;
  font-size: 12px;
  color: #5b4732;
}

/* Social section */
.social-section {
  margin-top: 28px;
  background: #fffaf1;
  border-radius: 24px;
  padding: 22px 24px 24px;
  box-shadow: 0 16px 34px rgba(15, 10, 5, 0.08);
}

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

.social-card {
  background: #fffdf7;
  border-radius: 18px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(223, 193, 143, 0.7);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.social-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.social-text {
  margin: 0 0 10px;
  font-size: 13px;
  color: #5e4b37;
}

.social-link {
  font-size: 14px;
  color: #b06a12;
  text-decoration: none;
  margin-bottom: 10px;
  word-break: break-all;
}

.social-link:hover {
  text-decoration: underline;
}

.qr-image {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background: #f2e4cf;
  padding: 8px;
  align-self: center;
}

/* Contact section */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 18px;
  align-items: flex-start;
}

.contact-card {
  background: #fffdf7;
  border-radius: 18px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(223, 193, 143, 0.7);
}

.contact-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.contact-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #5b4735;
}

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

.contact-form {
  background: #fffdf7;
  border-radius: 18px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(223, 193, 143, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #4b3823;
  gap: 4px;
}

.contact-form input,
.contact-form textarea {
  border-radius: 10px;
  border: 1px solid rgba(195, 170, 128, 0.9);
  padding: 8px 9px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  background: #fffaf3;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(243, 162, 58, 0.5);
  outline-offset: 1px;
}

.form-submit {
  align-self: flex-start;
  margin-top: 6px;
}

.form-note {
  margin: 2px 0 0;
  font-size: 11px;
  color: #8a7a64;
}

/* Lightbox overlay for gallery images */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 50;
  padding: 16px;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  background: #fdf8ee;
  border-radius: 18px;
  padding: 10px 10px 12px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.65);
  z-index: 52;
  display: flex;
  flex-direction: column;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 64vh;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-inner figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: #5b4732;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 53;
  border: none;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 26, 16, 0.85);
  color: #fdf4dd;
}

/* Footer */
.site-footer {
  text-align: center;
  font-size: 12px;
  color: #8d7a61;
  margin: 12px 0 24px;
}

.footer-text {
  margin: 0;
}

/* Responsive styles */
@media (max-width: 960px) {
  .hero-card {
    flex-direction: column;
    padding: 22px 18px;
  }

  .hero-media,
  .hero-content {
    flex: 1 1 auto;
  }

  .hero-title {
    font-size: 28px;
  }

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

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

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

  .hero-card {
    border-radius: 0;
    box-shadow: none;
    padding: 16px;
    margin: 0 -16px;
  }

  .social-section,
  .content-section {
    border-radius: 0;
    box-shadow: none;
    padding: 16px;
    margin: 16px -16px 0;
  }

  .page {
    margin-top: 12px;
  }

  .hero-title {
    font-size: 24px;
  }

  .pill-row {
    gap: 6px;
  }

  .pill {
    font-size: 11px;
  }

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

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

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

  .qr-image {
    width: 120px;
    height: 120px;
  }
}
