/* ============================================================
   Naanilam Integrated Farms — Premium Neomorphic Theme
   Deep forest green · Champagne gold · Ivory cream
   Leafy accents · Entrance animations
   ============================================================ */

:root {
  --beige: #f1ecdf;
  --beige-light: #f7f2e7;
  --beige-lighter: #fdfaf3;
  --beige-dark: #e4dcc8;
  --shadow-dark: #d1c5ab;
  --shadow-light: #ffffff;
  --ink: #2b2a25;
  --ink-soft: #6e6656;
  --accent: #a67f2f;
  --accent-deep: #24483a;
  --gold: #c9a24a;
  --leaf: #6e9461;
  --leaf-deep: #47674e;
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-script: 'Great Vibes', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.5), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(201,162,74,.12), transparent 45%),
    var(--beige);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- Neomorphic utilities ---------- */
.neu-raise {
  background: var(--beige);
  border-radius: var(--radius);
  box-shadow: 10px 10px 28px var(--shadow-dark),
              -10px -10px 28px var(--shadow-light);
}

.neu-inset {
  background: var(--beige);
  border-radius: var(--radius);
  box-shadow: inset 6px 6px 14px var(--shadow-dark),
              inset -6px -6px 14px var(--shadow-light);
}

.neu-btn {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--accent-deep);
  background: var(--beige);
  border: none;
  border-radius: 40px;
  padding: .9rem 2.1rem;
  cursor: pointer;
  box-shadow: 8px 8px 20px var(--shadow-dark),
              -8px -8px 20px var(--shadow-light);
  transition: all .25s ease;
}
.neu-btn:hover {
  color: var(--accent);
  box-shadow: 5px 5px 14px var(--shadow-dark),
              -5px -5px 14px var(--shadow-light);
  transform: translateY(-2px);
}
.neu-btn:active {
  box-shadow: inset 5px 5px 12px var(--shadow-dark),
              inset -5px -5px 12px var(--shadow-light);
  transform: translateY(0);
}

/* ---------- Leafy side decorations ---------- */
.leafy-left,
.leafy-right {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 60;
  pointer-events: none;
}
.leafy-left { left: 0; }
.leafy-right { right: 0; }

.leafy-branch {
  position: absolute;
  width: 150px;
  opacity: .5;
  animation: sway 7s ease-in-out infinite alternate;
  transform-origin: top center;
}
.leafy-left .leafy-branch { top: 6vh; left: 8px; }
.leafy-right .leafy-branch { top: 6vh; right: 8px; transform: scaleX(-1); }

.leafy-leaf {
  position: absolute;
  width: 46px;
  opacity: .45;
  animation: sway 6s ease-in-out infinite alternate;
  transform-origin: center;
}
.leafy-left .l1 { top: 34vh; left: 18px; animation-delay: .6s; }
.leafy-left .l2 { top: 58vh; left: 8px; width: 40px; animation-delay: 1.2s; }
.leafy-right .r1 { top: 32vh; right: 18px; transform: scaleX(-1); animation-delay: .3s; }
.leafy-right .r2 { top: 56vh; right: 8px; width: 40px; transform: scaleX(-1); animation-delay: 1.5s; }

@keyframes sway {
  0%   { transform: rotate(-4deg) translateY(0); }
  100% { transform: rotate(4deg) translateY(8px); }
}

/* ---------- Entrance animations ---------- */
body.loaded .navbar { animation: navIn .8s ease both; }
body.loaded .hero-slider { animation: heroIn 1.1s cubic-bezier(.2, .9, .3, 1) both; }
body.loaded .hero-scroll { animation: fadeUp 1s .5s ease both; }
body.loaded .leafy-left { animation: leafLIn 1.2s .3s ease both; }
body.loaded .leafy-right { animation: leafRIn 1.2s .3s ease both; }

@keyframes navIn {
  from { opacity: 0; transform: translateY(-28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(50px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes leafLIn {
  from { opacity: 0; transform: translateX(-90px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes leafRIn {
  from { opacity: 0; transform: translateX(90px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- Logo intro popup ---------- */
.logo-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(253,250,243,.92), rgba(241,236,223,.62)),
    rgba(241, 236, 223, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 1;
  visibility: visible;
  transition: opacity .7s ease, visibility .7s ease;
}
.logo-popup.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.logo-popup-inner {
  text-align: center;
  animation: logoPop .9s cubic-bezier(.22, 1.2, .36, 1) both;
}
@keyframes logoPop {
  0% { transform: scale(.4); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.logo-badge {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badgeSpin 2.2s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes badgeSpin {
  0% { transform: rotate(-180deg) scale(.5); opacity: 0; }
  100% { transform: rotate(0) scale(1); opacity: 1; }
}
.logo-badge img { width: 100px; height: 100px; object-fit: contain; }
.logo-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: .04em;
}
.logo-tag {
  font-weight: 500;
  letter-spacing: .5em;
  text-transform: uppercase;
  font-size: .7rem;
  color: var(--ink-soft);
  margin: .3rem 0 1.1rem;
}
.logo-leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 1.6rem;
}
.logo-leaf-divider .d-line {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.logo-leaf-divider img { width: 26px; height: 26px; opacity: .8; }
.logo-enter { margin-top: .4rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1rem 0;
  transition: all .35s ease;
}
.navbar.scrolled {
  padding: .45rem 0;
  background: rgba(241, 236, 223, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(46, 66, 55, .18);
}
.nav-inner {
  width: min(1180px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.nav-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-img img { width: 38px; height: 38px; object-fit: contain; }
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-deep);
  line-height: 1.05;
}
.nav-logo-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: .4rem;
}
.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .86rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .55rem 1.15rem;
  border-radius: 40px;
  transition: all .25s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent-deep);
  box-shadow: inset 4px 4px 10px var(--shadow-dark),
              inset -4px -4px 10px var(--shadow-light);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .6rem;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent-deep);
  transition: all .3s ease;
}

/* ---------- Hero slider (half screen) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slider {
  position: relative;
  width: min(1180px, 94%);
  height: 62vh;
  min-height: 440px;
  border-radius: 34px;
  overflow: hidden;
  background: var(--beige);
  box-shadow: 18px 18px 45px var(--shadow-dark),
              -18px -18px 45px var(--shadow-light);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 1.3s ease, visibility 1.1s;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59, 50, 40, .62), rgba(59, 50, 40, .08) 55%);
}
.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2.4rem 2.8rem;
  color: #fdf9f1;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.slide-eyebrow {
  display: inline-block;
  letter-spacing: .42em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 600;
  margin-bottom: .6rem;
  color: #efe4cf;
}
.slide-caption h1,
.slide-caption h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: .5rem;
}
.slide-caption p {
  font-weight: 400;
  font-size: clamp(.85rem, 1.5vw, 1.05rem);
  color: rgba(253, 249, 241, .92);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--beige-lighter);
  background: rgba(241, 236, 223, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all .35s cubic-bezier(.2,.9,.3,1);
  opacity: 0;
}
.hero:hover .hero-arrow,
.hero-slider:hover .hero-arrow,
.hero-arrow:focus-visible { opacity: 1; }
.hero-arrow svg {
  width: 26px;
  height: 26px;
  transition: transform .35s cubic-bezier(.2,.9,.3,1);
}
.hero-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,0) 50%);
  opacity: 0;
  transition: opacity .35s ease;
}
.hero-arrow:hover {
  background: linear-gradient(135deg, var(--gold), var(--accent-deep));
  box-shadow: 0 10px 26px rgba(36, 72, 58, .5);
  transform: translateY(-50%) translateY(-2px);
}
.hero-arrow:hover::before { opacity: 1; }
.hero-arrow.prev:hover svg { transform: translateX(-3px); }
.hero-arrow.next:hover svg { transform: translateX(3px); }
.hero-arrow.prev { left: 1.8rem; }
.hero-arrow.next { right: 1.8rem; }
.hero-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: .6rem;
}
.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(253, 249, 241, .55);
  cursor: pointer;
  transition: all .3s ease;
}
.hero-dots span.active {
  width: 30px;
  border-radius: 10px;
  background: #fdf9f1;
}

/* ---------- Empty hero placeholder ---------- */
.hero-slider.solo .hero-arrow,
.hero-slider.solo .hero-dots { display: none; }
.hero-slider.solo .slide::after { display: none; }
.hero-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  color: var(--ink-soft);
}
.hero-placeholder img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  cursor: default;
  opacity: .55;
  animation: leafFloat 4s ease-in-out infinite;
}
.hero-placeholder-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: .02em;
}
.hero-placeholder-sub {
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}
.scroll-wheel {
  display: block;
  width: 30px;
  height: 50px;
  border-radius: 18px;
  position: relative;
}
.scroll-wheel::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  width: 5px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: var(--accent);
  animation: wheel 1.6s ease infinite;
}
@keyframes wheel {
  0% { top: 9px; opacity: 1; }
  100% { top: 30px; opacity: 0; }
}

/* ---------- Sections ---------- */
section { padding: 5.5rem 0; }

.section-head { text-align: center; margin-bottom: 3.4rem; }
.section-eyebrow {
  display: block;
  letter-spacing: .4em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 600;
  color: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--accent-deep);
  margin-top: .5rem;
}
.section-title .block {
  display: block;
  font-size: .7em;
  font-weight: 600;
  margin-top: .15em;
}
.section-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 240px;
  margin: 1.2rem auto 0;
}
.section-rule span {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-rule .rule-leaf {
  width: 24px;
  height: 24px;
  opacity: .85;
  animation: leafFloat 4s ease-in-out infinite;
}
@keyframes leafFloat {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(6deg) translateY(-4px); }
}

/* ---------- About ---------- */
.about { padding-top: 3rem; }
.about-text {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 3.2rem;
  text-align: center;
}
.about-motto {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.about-text p { color: var(--ink-soft); margin-bottom: 1rem; }
.about-text strong { color: var(--accent-deep); }
.about-address {
  display: inline-flex;
  align-items: flex-start;
  gap: .8rem;
  font-style: normal;
  text-align: left;
  margin-top: 1.4rem;
  padding: 1.4rem 2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(228,220,200,.4));
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.9;
}
.addr-pin { font-size: 1.3rem; line-height: 1.3; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.feature-card {
  padding: 2.2rem 2.2rem;
  transition: transform .35s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,148,97,.18), transparent 70%);
}
.feature-card:hover { transform: translateY(-8px); }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--accent-deep);
  margin-bottom: .7rem;
  padding-right: 1.6rem;
}
.feature-card ul {
  list-style: none;
}
.feature-card ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .92rem;
  color: var(--ink-soft);
  margin-bottom: .55rem;
}
.feature-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55rem;
  width: 8px;
  height: 8px;
  background: url('../images/leaf.svg') center/contain no-repeat;
}
.feature-divider {
  height: 1px;
  margin: 1.1rem 0 1.3rem;
  background: linear-gradient(90deg, transparent, rgba(201,162,74,.6), transparent);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  padding: .9rem;
  transition: transform .35s ease, box-shadow .35s ease;
}
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 16px 16px 36px var(--shadow-dark),
              -16px -16px 36px var(--shadow-light);
}
.gallery-item img {
  border-radius: calc(var(--radius) - 10px);
  height: 240px;
  width: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: #fdf9f1;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  opacity: 0;
  transform: translateY(8px);
  transition: all .35s ease;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Empty gallery placeholder ---------- */
.gallery-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  text-align: center;
  padding: 4.5rem 2rem;
  border: 1.5px dashed var(--gold);
}
.gallery-empty img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  opacity: .55;
  animation: leafFloat 4s ease-in-out infinite;
}
.gallery-empty h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-deep);
}
.gallery-empty p {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 3rem;
  text-align: center;
}
.contact-logo {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-logo img { width: 68px; height: 68px; object-fit: contain; }
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-deep);
  margin-bottom: .4rem;
}
.contact-tag {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.contact-card address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 2;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 3rem 0 2.4rem;
  text-align: center;
}
.footer-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
}
.footer-logo {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo img { width: 54px; height: 54px; object-fit: contain; }
.footer-rule img {
  width: 30px;
  height: 30px;
  margin: 0 auto .8rem;
  opacity: .8;
}
.footer-tag {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-deep);
}
.footer-copy {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .4rem;
}

/* ---------- Lightbox popup ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  background: rgba(59, 50, 40, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(88vw, 980px);
  max-height: 76vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  animation: lbZoom .45s ease both;
}
@keyframes lbZoom {
  0% { transform: scale(.82); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
#lbCaption {
  color: #efe4cf;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: .02em;
}
.lightbox-close {
  position: absolute;
  top: 1.6rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fdf9f1;
  font-size: 2.6rem;
  cursor: pointer;
  line-height: 1;
  transition: transform .25s ease;
}
.lightbox-close:hover { transform: rotate(90deg) scale(1.15); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fdf9f1;
  font-size: 2.4rem;
  cursor: pointer;
  padding: .6rem 1rem;
  border-radius: 50%;
  transition: background .25s ease;
}
.lightbox-nav:hover { background: rgba(241, 236, 223, .18); }
.lightbox-nav.prev { left: 1.6rem; }
.lightbox-nav.next { right: 1.6rem; }

/* ---------- Lightbox maximize toggle ---------- */
.lightbox-toggle {
  position: absolute;
  top: 1.7rem;
  right: 5.4rem;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(253, 249, 241, .22);
  border-radius: 14px;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fdf9f1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s cubic-bezier(.2,.9,.3,1);
}
.lightbox-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform .3s cubic-bezier(.2,.9,.3,1);
}
.lightbox-toggle:hover {
  background: linear-gradient(135deg, var(--gold), var(--accent-deep));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transform: translateY(-2px);
}
.lightbox-toggle:hover svg { transform: scale(1.12); }
.lightbox-toggle .ico-min { display: none; }
.lightbox-toggle.active .ico-max { display: none; }
.lightbox-toggle.active .ico-min { display: block; }

/* Fullscreen (maximized) lightbox state */
.lightbox.max { background: rgba(8, 8, 6, .96); }
.lightbox.max img {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  background: #000;
}
.lightbox.max #lbCaption { display: none; }
.lightbox.max .lightbox-close,
.lightbox.max .lightbox-nav,
.lightbox.max .lightbox-toggle { z-index: 20; }
.lightbox.max .lightbox-toggle.active {
  background: linear-gradient(135deg, var(--accent-deep), var(--gold));
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: .9rem;
  position: relative;
  overflow: hidden;
  color: var(--accent-deep);
  transition: color .3s ease;
}
.theme-toggle svg { width: 24px; height: 24px; }
.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  position: absolute;
  transition: transform .5s cubic-bezier(.2,.9,.3,1), opacity .5s ease;
}
html[data-theme='light'] .theme-toggle .moon-icon { transform: translateY(40px) rotate(90deg); opacity: 0; }
html[data-theme='light'] .theme-toggle .sun-icon { transform: translateY(0); opacity: 1; }
html[data-theme='dark'] .theme-toggle .moon-icon { transform: translateY(0); opacity: 1; }
html[data-theme='dark'] .theme-toggle .sun-icon { transform: translateY(-40px) rotate(-90deg); opacity: 0; }
.theme-toggle.spin { animation: toggleSpin .5s ease; }
@keyframes toggleSpin {
  0% { transform: rotate(0) scale(1); }
  50% { transform: rotate(180deg) scale(.85); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ============================================================
   Dark theme
   ============================================================ */
html[data-theme='dark'] {
  --beige: #17211c;
  --beige-light: #202d25;
  --beige-lighter: #28362d;
  --beige-dark: #101713;
  --shadow-dark: #0d130f;
  --shadow-light: #223029;
  --ink: #f2ecdd;
  --ink-soft: #b8b098;
  --accent: #cfab52;
  --accent-deep: #e2c16c;
  --gold: #d2ab55;
  --leaf: #93ae7c;
  --leaf-deep: #6c8b60;
}
html[data-theme='dark'] body {
  background:
    radial-gradient(circle at 15% 20%, rgba(211,171,82,.08), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(147,174,124,.07), transparent 45%),
    var(--beige);
}
html[data-theme='dark'] .navbar.scrolled {
  background: rgba(23, 33, 28, .85);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
html[data-theme='dark'] .logo-popup {
  background:
    radial-gradient(circle at 50% 45%, rgba(40,54,45,.92), rgba(23,33,28,.7)),
    rgba(23, 33, 28, .6);
}
html[data-theme='dark'] .nav-links {
  background: rgba(23, 33, 28, .96);
  box-shadow: -18px 0 40px rgba(0,0,0,.45);
}
html[data-theme='dark'] .about-address {
  background: linear-gradient(135deg, rgba(40,54,45,.6), rgba(16,23,19,.5));
}
html[data-theme='dark'] .marquee {
  background: linear-gradient(90deg, var(--accent), var(--gold), #d6b464);
}
html[data-theme='dark'] .hero-arrow {
  color: var(--beige-lighter);
  background: rgba(0,0,0,.22);
}
html[data-theme='dark'] .feature-card::before {
  background: radial-gradient(circle, rgba(147,174,124,.16), transparent 70%);
}

/* ============================================================
   Extraordinary animations
   ============================================================ */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  z-index: 1200;
  background: linear-gradient(90deg, var(--leaf), var(--gold), var(--leaf-deep));
  box-shadow: 0 0 12px rgba(201,162,74,.7);
  border-radius: 0 4px 4px 0;
}

/* ---------- Leaf particles canvas ---------- */
.leaf-canvas {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}

/* ---------- Flying butterfly ---------- */
.butterfly {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 6px 14px rgba(59,50,40,.35));
}
.butterfly img {
  width: 44px;
  height: 33px;
  animation: flutter .5s ease-in-out infinite alternate;
}
@keyframes flutter {
  from { transform: rotate(-8deg) scaleX(1); }
  to   { transform: rotate(8deg) scaleX(1); }
}

/* ---------- Custom cursor ---------- */
.cursor-leaf {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1300;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.cursor-leaf-icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  background: var(--accent-deep);
  -webkit-mask: url('../images/leaf-gold.svg') center / contain no-repeat;
  mask: url('../images/leaf-gold.svg') center / contain no-repeat;
  animation: cursorSpin 6s linear infinite;
}
@keyframes cursorSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button, body.has-cursor .pop-trigger, body.has-cursor .gallery-item, body.has-cursor .feature-card { cursor: none; }
body.has-cursor .cursor-leaf { opacity: 1; }

/* ---------- Marquee ribbon ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--gold));
  box-shadow: 0 14px 34px rgba(36,72,58,.3);
  transform: rotate(-1.4deg) scale(1.02);
  margin: 1.6rem 0 -1.4rem;
  z-index: 5;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: .12em;
  color: var(--beige-lighter);
  white-space: nowrap;
}
.marquee-track img { width: 20px; height: 20px; opacity: .85; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Shimmer title ---------- */
.shimmer-title {
  background: linear-gradient(110deg,
    #fdf9f1 25%,
    #f6e6b8 42%,
    #fdf9f1 58%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Gallery shimmer sweep ---------- */
.gallery-item { position: relative; overflow: hidden; }
.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(253,250,243,.55), transparent);
  transform: skewX(-20deg);
  transition: left .9s ease;
}
.gallery-item:hover::after { left: 140%; }

/* ---------- Feature card corner glow on hover ---------- */
.feature-card { transition: transform .45s cubic-bezier(.2,.9,.3,1), box-shadow .45s ease; }
.feature-card:hover {
  box-shadow: 14px 14px 34px var(--shadow-dark),
              -14px -14px 34px var(--shadow-light),
              0 0 0 1px rgba(201,162,74,.28);
}

/* ---------- Reveal direction variants ---------- */
.reveal-left,
.reveal-right,
.reveal-zoom {
  opacity: 0;
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.9,.3,1);
}
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-zoom { transform: scale(.88); }
.reveal-left.visible,
.reveal-right.visible,
.reveal-zoom.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Bounce-in gallery ---------- */
.bounce-in { transition: opacity .7s ease, transform .7s cubic-bezier(.34,1.56,.64,1); }

/* ---------- Section title pop ---------- */
.section-head .section-title {
  display: inline-block;
  transition: transform .4s ease;
}
.section-head:hover .section-title { transform: translateY(-3px); }

/* ============================================================
   Responsive (extended)
   ============================================================ */
@media (max-width: 900px) {
  .butterfly { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .leafy-left, .leafy-right { width: 70px; }
  .leafy-left .leafy-branch, .leafy-right .leafy-branch { width: 100px; }
  .leafy-leaf { width: 34px; }
}
@media (max-width: 900px) {
  .leafy-left, .leafy-right { display: none; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    background: rgba(241, 236, 223, .96);
    backdrop-filter: blur(14px);
    box-shadow: -18px 0 40px rgba(46, 66, 55, .2);
    transition: right .4s ease;
    border-radius: 34px 0 0 34px;
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1rem; }
  .nav-toggle { display: flex; z-index: 10; }
  .hero-slider { height: 54vh; }
  .hero-arrow.prev { left: .7rem; }
  .hero-arrow.next { right: .7rem; }
  .slide-caption { padding: 1.6rem 1.2rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-slider { height: 48vh; min-height: 340px; }
  .about-text { padding: 2rem 1.4rem; }
}
