﻿@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&display=swap');

/* 鍩虹閲嶇疆 */
* {
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  /* overflow: hidden; */ 
  position: relative; /* 娣诲姞鐩稿瀹氫綅浠ユ敮鎸乫ooter瀹氫綅 */
}

body::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(transparent 50%, rgb(0, 0, 0));
  z-index: -1; /* 娓愬彉鏁堟灉鍦ㄨ儗鏅浘涔嬩笂 */
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;  /* 濮嬬粓鍦ㄦ渶搴曞眰 */
}

/* Background-images */

.content img {
  position: absolute;
  bottom: -12%;
}

.background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;  /* 涓巘itle鍚屽眰 */
}

.background-wrapper img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  bottom: -12%;
}

header {
  position: fixed;
  top: 0;
  z-index: 10;  /* 瀵艰埅鏍忓缁堝湪鏈€涓婂眰 */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 5%;
  background-color: rgba(255, 255, 255, 0.15); /* 闄嶄綆閫忔槑搴?*/
  height: 30px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  backdrop-filter: blur(8px); /* 澧炲姞妯＄硦鏁堟灉 */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); /* 澧炲己闃村奖鏁堟灉 */
  animation: topIn 1.2s ease-out forwards;
}

nav a {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgb(53, 53, 53);
  width: 110px;
  text-align: center;
  padding: 15px 0;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.active {
  background-color: #16423c;
  color: white;
  box-shadow: 0 2px 8px rgba(22, 66, 60, 0.4); /* 娣诲姞闃村奖鏁堟灉 */
}

nav a:hover {
  background-color: #16423c;
  color: white;
}

nav:hover > a:not(:hover) {
  background-color: transparent;
  color: rgb(53, 53, 53);
}

/* 鏍囬瀹瑰櫒 */
.title {
  position: absolute;
  top: 45%;
  right: 50%;
  transform: translate(50%, -50%);
}

.title h3 {
  font-size: clamp(0.8rem, 2vw, 3rem);  /* 鏈€灏?.8rem锛屾渶澶?.5rem */
  font-weight: clamp(200, calc(200 + 1vw), 300);  /* 瀛楅噸闅忓瓧浣撳ぇ灏忓彉鍖?*/
  letter-spacing: max(0.8vw, 10px);
  color: white;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2); /* 娣诲姞缁嗗井闃村奖鎻愬崌鍙鎬?*/
  margin-bottom: -10px;
  animation: bottomInText 1.06s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: 0.03s;
}

.title h1 {
  font-size: clamp(1.2rem, 10vw, 15rem);  /* 鏈€灏?rem锛屾渶澶?5rem锛岄粯璁?0vw */
  font-weight: clamp(200, calc(800 - 1vw), 900);  /* 瀛楅噸闅忓瓧浣撳ぇ灏忓彉鍖?*/
  letter-spacing: max(1.6vw, 20px);
  text-transform: uppercase;
  color: white;
  text-align: center;
  margin-bottom: clamp(30px, 4vh, 120px);
  animation: bottomInText 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: 0.08s;
}

p {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  width: 70%;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.info-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 18%;
}

.cta {
  position: absolute;
  bottom: 8%;
  display: flex;
  justify-content: center;
  width: 100%;
}

.cta button {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  height: 50px;
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.cta button:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color:rgb(53, 53, 53);
}

.slider {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.slider i {
  padding: 0 5%;
  font-size: 36px;
  color: rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes bottomIn {
  from {
    transform: translateY(-70px);
    opacity: 0.86;
  }
  to {
    transform: translateY(-180px);
    opacity: 1;
  }
}

.back-1, .back-2, .back-3 {
  position: absolute;
  margin-top: 180px;
  width: 100%;
  height: 100%;
}

.back-1 {
  animation: bottomIn 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.back-2 {
  animation: bottomIn 1.28s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.back-3 {
  animation: bottomIn 1.42s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}


@keyframes bottom_0 {
  from {
    transform: translateY(20px);
    opacity: 0.9;
  }
  to {
    transform: translateY(-90px);
    opacity: 1;
  }
}

.bac-0 {
  animation: bottom_0 1.32s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.content {
  position: absolute;
  width: 100%;
  height: 100%;
}

@keyframes bottomInText {
  from {
    transform: translateY(44px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

h3 {
  animation: bottomInText 0.88s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

h1 {
  animation: bottomInText 1.02s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

p {
  animation: bottomInText 1.04s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: 0.18s;
  opacity: 0;
}

button {
  animation: bottomInText 1.04s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: 0.28s;
  opacity: 0;
}

@keyframes backgroundImage {
  from {
    background-position: top;
  }
  to {
    background-position: 50% 14%;
  }
}

body {
  animation: backgroundImage 1.6s ease-out forwards;
}

@keyframes topIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes zoomOut{
  from {
    transform: scale(1.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

slider {
  animation: zoomOut 1.2s ease-out forwards;
}

/* 鍝嶅簲寮忚璁?*/
@media screen and (max-width: 1200px) {
  .title h1 {
    font-size: 12rem;
    letter-spacing: 34px;
  }

  .title h3 {
    font-size: 1.2rem;
    letter-spacing: 12px;
  }

  p {
    width: 80%;
  }

  .background-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    bottom: -8%;
  }
}

@media screen and (max-width: 1200px) {
  .main-background {
    background-position: 50% 10%;
  }
  .background-wrapper img {
    bottom: -8%;
  }
}

@media screen and (max-width: 768px) {
  .main-background {
    background-position: 50% 5%;
  }
  .background-wrapper img {
    bottom: -5%;
  }
}

@media screen and (max-width: 768px) {
  body {
    height: 100vh;
    overflow-y: auto;
  }

  nav {
    padding: 10px 2%;
  }

  nav a {
    font-size: 16px;
    width: 90px;
    padding: 12px 0;
  }

  .title h1 {
    letter-spacing: max(0.8vw, 10px);
    font-weight: clamp(200, calc(700 - 1vw), 800);  /* 杈冨皬灞忓箷涓嬪噺杞诲瓧閲?*/
  }

  .title h3 {
    letter-spacing: max(0.4vw, 6px);
    font-weight: clamp(200, calc(200 + 0.5vw), 300);  /* 杈冨皬灞忓箷涓嬪井璋冨瓧閲?*/
  }

  p {
    width: 90%;
    font-size: 13px;
  }

  .cta button {
    font-size: 16px;
    width: 250px;
    height: 45px;
  }

  .background-wrapper img {
    bottom: -5%;
  }
}

@media screen and (max-width: 480px) {
  .main-background {
    background-position: 50% 0;
  }
  .background-wrapper img {
    bottom: -3%;
  }
}

@media screen and (max-width: 480px) {
  nav {
    flex-wrap: wrap;
    height: auto;
    justify-content: center;
  }

  .title h1 {
    letter-spacing: max(0.6vw, 8px);
    font-weight: clamp(200, calc(600 - 1vw), 700);  /* 鏇村皬灞忓箷涓嬭繘涓€姝ュ噺杞诲瓧閲?*/
  }

  .title h3 {
    letter-spacing: max(0.3vw, 4px);
  }

  .content img {
    bottom: -8%;
  }

  .info-wrap {
    bottom: 22%;
  }

  .cta {
    bottom: 12%;
  }

  .slider i {
    padding: 0 3%;
    font-size: 24px;
  }

  .background-wrapper img {
    bottom: -3%;
  }
}

/* 澶勭悊妯睆妯″紡 */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .title {
    top: 45%;
  }

  .title h1 {
    font-size: 6rem;
    margin: -10px 0;
  }

  .content img {
    bottom: -20%;
  }

  .info-wrap {
    bottom: 15%;
  }

  .cta {
    bottom: 5%;
  }

  .background-wrapper img {
    bottom: -15%;
    height: 120vh; /* 纭繚鍥剧墖鑳藉畬鍏ㄨ鐩栨í灞忔ā寮?*/
  }
}

@media screen and (max-height: 600px) and (orientation: landscape) {
  .main-background {
    background-position: 50% 20%;
    background-size: auto 120vh; /* 纭繚鍦ㄦí灞忔ā寮忎笅鏈夎冻澶熻鐩?*/
  }
  .background-wrapper img {
    bottom: -15%;
    height: 120vh;
  }
}

/* 涓诲鍣ㄦ牱寮?*/
.main-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 鏈€搴曞眰鑳屾櫙 */
.bac-0 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  animation: bottom_0 1.32s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.bac-0 img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* 淇濇寔鍥剧墖姣斾緥鐨勫悓鏃跺～鍏呮暣涓鍣?*/
  object-position: center;  /* 灞呬腑鏄剧ず */
}

/* 绗簩灞?*/
.bac-3 {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* 绗笁灞?*/
.bac-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* 绗洓灞?*/
.title {
  position: absolute;
  z-index: 4;
}

/* 绗簲灞?*/
.bac-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 5;
}

/* 鏈€涓婂眰鍐呭 */
.content {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 6;
}

/* 鍩虹灞傜骇鏍峰紡 */
.main-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 鍚勫眰绾у熀纭€鏍峰紡 */
.bac-0, .bac-3, .bac-2, .bac-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bac-0 img, .bac-3 img, .bac-2 img, .bac-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 鍝嶅簲寮忚璁?*/
@media screen and (max-width: 1200px) {
  .bac-0 img, .bac-3 img, .bac-2 img, .bac-1 img {
    object-position: 50% 0;
  }
}

@media screen and (max-width: 768px) {
  .main-container {
    height: 100vh;
  }

  .bac-0 img, .bac-3 img, .bac-2 img, .bac-1 img {
    height: 110vh; /* 绋嶅井澧炲姞楂樺害浠ョ‘淇濊鐩?*/
    object-position: 50% 0;
  }
}

@media screen and (max-width: 480px) {
  .bac-0 img, .bac-3 img, .bac-2 img, .bac-1 img {
    height: 120vh;
    object-position: 50% 0;
  }
}

/* 妯睆妯″紡澶勭悊 */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .main-container {
    height: 120vh;
  }

  .bac-0 img, .bac-3 img, .bac-2 img, .bac-1 img {
    height: 140vh;
    object-position: center top;
  }
}

footer {
  position: fixed;
  padding: 10px;
  text-align: center;
  width: 100%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  bottom: 0;
  z-index: 10;
  animation: bottomInText 1.2s ease-out forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 椤甸潰鍐呭鏍峰紡 */
#content-container {
  width: 100%;
  min-height: calc(100vh - 150px); /* 鍑忓幓澶撮儴鍜屽簳閮ㄧ殑楂樺害 */
  position: relative;
}

.page-content {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.page-content.active {
  display: block;
  opacity: 1;
  z-index: 1;
  animation: pageFadeIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

#home-content.page-content.active {
  animation: none;
}

/* 绠€鍗曞鍣ㄦ牱寮?*/
.simple-container {
  max-width: 1200px;
  margin: 100px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
  color: #fff;
}

.simple-container h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.simple-container p {
  font-size: 18px;
  line-height: 1.6;
}

/* 瀵艰埅閾炬帴榧犳爣鏍峰紡 */
.nav-items {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Subpage polish (about / reviews / contacts / gallery)
   Uses home ink-green (#16423c) as the dominant palette.
--------------------------------------------------------------------------- */
@keyframes softRise {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(22, 66, 60, 0.16);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(22, 66, 60, 0);
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lineRevealX {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes lineRevealY {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes cardLiftIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.subpage-active {
  --ink-primary: #16423c;
  --ink-primary-strong: #0f312d;
  --ink-primary-soft: #2b6d64;
  --ink-green-moss: #3a7358;
  --ink-earth: #6f5843;
  --ink-gold: #c49a46;
  --ink-gold-soft: #d9bb73;
  --ink-bg: #e6f0ee;
  --ink-card: #f7fbfa;
  --ink-text: #163a35;
  --ink-muted: #3e605b;
  --ink-line: rgba(22, 66, 60, 0.24);
}

body.subpage-active::after {
  background:
    radial-gradient(circle at 14% 12%, rgba(43, 109, 100, 0.22) 0%, rgba(43, 109, 100, 0) 35%),
    radial-gradient(circle at 86% 10%, rgba(22, 66, 60, 0.28) 0%, rgba(22, 66, 60, 0) 34%),
    linear-gradient(148deg, #eff6f4 0%, #dcebe7 56%, #c7ddd7 100%);
}

body.subpage-active nav {
  background: rgba(236, 246, 243, 0.85);
  border: 1px solid var(--ink-line);
  box-shadow: 0 10px 24px rgba(13, 44, 39, 0.18);
}

body.subpage-active nav a {
  color: var(--ink-text);
}

body.subpage-active nav a:hover,
body.subpage-active nav .active {
  background-color: var(--ink-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 49, 45, 0.35);
}

body.subpage-active nav:hover > a:not(:hover):not(.active) {
  color: var(--ink-text);
}

body.subpage-active nav:hover > a.active:not(:hover) {
  background-color: var(--ink-primary);
  color: #fff;
}

body.subpage-active footer {
  color: rgba(16, 49, 44, 0.9);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.66);
  animation: none;
  opacity: 1;
}

body.subpage-active footer a {
  color: var(--ink-primary);
}

body.subpage-active #content-container {
  min-height: calc(100vh - 110px);
}

body.subpage-active .page-content.active:not(#home-content) {
  position: relative;
  top: auto;
  left: auto;
  min-height: calc(100vh - 140px);
  padding: clamp(88px, 12vh, 132px) 24px 120px;
  overflow: hidden;
}

body.subpage-active .page-content.active:not(#home-content)::before,
body.subpage-active .page-content.active:not(#home-content)::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

body.subpage-active .page-content.active:not(#home-content)::before {
  width: 420px;
  height: 420px;
  right: -160px;
  top: 8%;
  background: radial-gradient(circle, rgba(43, 109, 100, 0.2) 0%, rgba(43, 109, 100, 0) 74%);
}

body.subpage-active .page-content.active:not(#home-content)::after {
  width: 500px;
  height: 500px;
  left: -240px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(22, 66, 60, 0.24) 0%, rgba(22, 66, 60, 0) 74%);
}

body.subpage-active .page-content.active:not(#home-content) > * {
  position: relative;
  z-index: 1;
}

body.subpage-active #about-content {
  --subpage-accent: #16423c;
}

body.subpage-active #reviews-content {
  --subpage-accent: #20574f;
}

body.subpage-active #contacts-content {
  --subpage-accent: #2b6d64;
}

body.subpage-active #gallery-content {
  --subpage-accent: #16423c;
}

body.subpage-active #gallery-content.page-content.active {
  min-height: calc(100vh - 96px);
  padding: clamp(88px, 12vh, 132px) 16px 54px;
}

body.subpage-active #gallery-content .gallery-container {
  height: min(760px, calc(100vh - 168px));
  min-height: 540px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

body.subpage-active .simple-container,
body.subpage-active #gallery-content .gallery-container {
  max-width: min(1100px, 96vw);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 46px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  border: 1px solid var(--ink-line);
  background: linear-gradient(158deg, rgba(247, 251, 250, 0.96) 0%, rgba(229, 242, 239, 0.9) 100%);
  box-shadow: 0 24px 52px rgba(14, 46, 41, 0.18);
  backdrop-filter: blur(10px);
  text-align: left;
  color: var(--ink-text);
  animation: softRise 0.46s ease both;
}

body.subpage-active .simple-container::before,
body.subpage-active #gallery-content .gallery-container::before,
body.subpage-active .simple-container::after,
body.subpage-active #gallery-content .gallery-container::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

body.subpage-active .simple-container::before,
body.subpage-active #gallery-content .gallery-container::before {
  inset: 12px;
  border: 1px solid rgba(22, 66, 60, 0.22);
  border-radius: calc(28px - 8px);
  transform-origin: left;
  animation: lineRevealX 0.95s ease both;
}

body.subpage-active .simple-container::after,
body.subpage-active #gallery-content .gallery-container::after {
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(22, 66, 60, 0.08) 0 1px, transparent 1px 24px),
    linear-gradient(transparent, rgba(22, 66, 60, 0.03));
  opacity: 0.45;
}

body.subpage-active .simple-container > *,
body.subpage-active #gallery-content .gallery-container > * {
  position: relative;
  z-index: 1;
}

body.subpage-active .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(111, 88, 67, 0.26);
  background: linear-gradient(135deg, rgba(22, 66, 60, 0.1) 0%, rgba(217, 187, 115, 0.2) 100%);
  color: var(--ink-primary-strong);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  animation: cardLiftIn 0.5s ease both;
}

body.subpage-active .simple-container h1,
body.subpage-active #gallery-content .gallery-header h1,
body.subpage-active #gallery-content .gallery-intro h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--ink-primary-strong);
  margin-bottom: 14px;
  animation: none;
  opacity: 1;
}

body.subpage-active .lead {
  width: auto;
  max-width: 70ch;
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.9;
  color: var(--ink-muted);
  text-shadow: none;
  opacity: 1;
  margin-bottom: 26px;
  animation: cardLiftIn 0.55s ease both;
  animation-delay: 0.08s;
}

body.subpage-active .simple-container p,
body.subpage-active #gallery-content p {
  width: auto;
  max-width: none;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  text-align: left;
  color: var(--ink-muted);
  text-shadow: none;
  animation: none;
  opacity: 1;
}

body.subpage-active .simple-container h3,
body.subpage-active .simple-container h4,
body.subpage-active #gallery-content h3 {
  color: var(--ink-primary-strong);
  animation: none;
  opacity: 1;
}

body.subpage-active .feature-grid,
body.subpage-active .review-grid,
body.subpage-active .metrics-grid,
body.subpage-active .contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.subpage-active .feature-grid,
body.subpage-active .review-grid,
body.subpage-active .metrics-grid,
body.subpage-active .contact-grid {
  margin-top: 16px;
}

body.subpage-active .feature-card,
body.subpage-active .review-card,
body.subpage-active .metric-card,
body.subpage-active .contact-card,
body.subpage-active #gallery-content .highlight-item {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  padding: 18px;
  box-shadow:
    0 10px 20px rgba(13, 42, 38, 0.1),
    inset 0 1px 0 rgba(217, 187, 115, 0.24);
  animation: cardLiftIn 0.55s ease both;
}

body.subpage-active .feature-grid > *:nth-child(1),
body.subpage-active .review-grid > *:nth-child(1),
body.subpage-active .metrics-grid > *:nth-child(1),
body.subpage-active .contact-grid > *:nth-child(1),
body.subpage-active #gallery-content .photo-layout-frame > *:nth-child(1) {
  animation-delay: 0.05s;
}

body.subpage-active .feature-grid > *:nth-child(2),
body.subpage-active .review-grid > *:nth-child(2),
body.subpage-active .metrics-grid > *:nth-child(2),
body.subpage-active .contact-grid > *:nth-child(2),
body.subpage-active #gallery-content .photo-layout-frame > *:nth-child(2) {
  animation-delay: 0.12s;
}

body.subpage-active .feature-grid > *:nth-child(3),
body.subpage-active .review-grid > *:nth-child(3),
body.subpage-active .metrics-grid > *:nth-child(3),
body.subpage-active .contact-grid > *:nth-child(3),
body.subpage-active #gallery-content .photo-layout-frame > *:nth-child(3) {
  animation-delay: 0.19s;
}

body.subpage-active .feature-card i,
body.subpage-active .contact-card i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #fff;
  background: linear-gradient(
    140deg,
    var(--subpage-accent) 0%,
    var(--ink-primary-soft) 62%,
    var(--ink-gold) 100%
  );
  box-shadow: 0 8px 16px rgba(111, 88, 67, 0.22);
}

body.subpage-active .feature-card h3,
body.subpage-active .contact-card h3,
body.subpage-active .review-card h4 {
  margin-bottom: 8px;
  font-size: 1.06rem;
}

body.subpage-active .feature-card p,
body.subpage-active .contact-card p,
body.subpage-active .review-card p,
body.subpage-active .metric-card p {
  color: var(--ink-muted);
}

body.subpage-active .timeline {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

body.subpage-active .timeline-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.62);
  animation: cardLiftIn 0.55s ease both;
}

body.subpage-active .timeline-item:nth-child(1) {
  animation-delay: 0.08s;
}

body.subpage-active .timeline-item:nth-child(2) {
  animation-delay: 0.16s;
}

body.subpage-active .timeline-item:nth-child(3) {
  animation-delay: 0.24s;
}

body.subpage-active .timeline-item .year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, var(--subpage-accent) 0%, var(--ink-earth) 100%);
  border: 1px solid rgba(217, 187, 115, 0.34);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

body.subpage-active .timeline-item h4,
body.subpage-active .timeline-item p {
  margin: 0;
}

body.subpage-active .timeline-item p {
  margin-top: 4px;
}

body.subpage-active .review-stars {
  color: var(--ink-gold);
  margin-bottom: 10px;
}

body.subpage-active .review-card h4 {
  margin-top: 12px;
}

body.subpage-active .metrics-grid {
  margin-top: 18px;
}

body.subpage-active .metric-card {
  text-align: center;
}

body.subpage-active .metric-card h3 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink-green-moss);
  text-shadow: 0 1px 0 rgba(217, 187, 115, 0.32);
}

body.subpage-active .contact-cta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.subpage-active .contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--subpage-accent) 0%,
    var(--ink-primary-soft) 58%,
    var(--ink-gold-soft) 100%
  );
  box-shadow: 0 10px 18px rgba(14, 49, 43, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.subpage-active .contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(111, 88, 67, 0.26);
}

body.subpage-active .contact-btn.ghost {
  color: var(--subpage-accent);
  border-color: var(--ink-line);
  background: rgba(255, 255, 255, 0.72);
}

/* Gallery */
body.subpage-active #gallery-content .gallery-container {
  padding: clamp(20px, 2.8vw, 30px);
}

body.subpage-active #gallery-content .gallery-top {
  position: relative;
  margin-bottom: 0;
  padding: 0 4px 10px;
}

body.subpage-active #gallery-content .gallery-top::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(22, 66, 60, 0),
    rgba(22, 66, 60, 0.34),
    rgba(22, 66, 60, 0)
  );
}

body.subpage-active #gallery-content .gallery-intro {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

body.subpage-active #gallery-content .gallery-intro h1 {
  margin: 0 0 8px;
}

body.subpage-active #gallery-content .gallery-intro p {
  color: var(--ink-primary-strong);
  max-width: none;
  white-space: nowrap;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

body.subpage-active #gallery-content .gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(22, 66, 60, 0.26);
  border-radius: 20px;
  padding: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.78) 0%, rgba(231, 243, 239, 0.8) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 -34px 60px rgba(22, 66, 60, 0.08);
}

body.subpage-active #gallery-content .gallery-stage::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  border: 1px solid rgba(22, 66, 60, 0.24);
  pointer-events: none;
}

body.subpage-active #gallery-content .gallery-stage::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(22, 66, 60, 0),
    rgba(22, 66, 60, 0.28),
    rgba(22, 66, 60, 0)
  );
  pointer-events: none;
}

body.subpage-active #gallery-content .photo-grid {
  display: grid;
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
}

body.subpage-active #gallery-content .photo-page {
  display: block;
}

body.subpage-active #gallery-content .photo-layout-frame {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

body.subpage-active #gallery-content .photo-layout-frame .slot-a,
body.subpage-active #gallery-content .photo-layout-frame .slot-b,
body.subpage-active #gallery-content .photo-layout-frame .slot-c,
body.subpage-active #gallery-content .photo-layout-frame .slot-d,
body.subpage-active #gallery-content .photo-layout-frame .slot-e {
  grid-area: auto;
}

body.subpage-active #gallery-content .photo-item {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  border: 1px solid rgba(22, 66, 60, 0.24);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 12px 24px rgba(14, 45, 40, 0.14);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

body.subpage-active #gallery-content .photo-item::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  pointer-events: none;
  opacity: 0.75;
}

body.subpage-active #gallery-content .photo-item.landscape,
body.subpage-active #gallery-content .photo-item.portrait {
  aspect-ratio: 3 / 2;
  align-self: auto;
  height: auto;
}

body.subpage-active #gallery-content .photo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(14, 45, 40, 0.22);
}

body.subpage-active #gallery-content .photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

body.subpage-active #gallery-content .photo-item:hover img {
  transform: scale(1.03);
}

body.subpage-active #gallery-content .photo-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 11px 12px;
  background: linear-gradient(180deg, rgba(12, 41, 36, 0) 0%, rgba(8, 35, 31, 0.82) 100%);
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.25s ease;
}

body.subpage-active #gallery-content .photo-item:hover .photo-info {
  opacity: 1;
}

body.subpage-active #gallery-content .photo-info h3 {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

body.subpage-active #gallery-content .gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(22, 66, 60, 0.22);
  color: var(--ink-primary);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  animation: cardLiftIn 0.55s ease both;
  animation-delay: 0.1s;
}

body.subpage-active #gallery-content .gallery-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink-primary-strong);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease, color 0.2s ease;
}

body.subpage-active #gallery-content .gallery-pagination a:hover {
  opacity: 1;
  color: var(--ink-earth);
}

body.subpage-active #gallery-content .gallery-pagination .pagination-separator {
  opacity: 0.72;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 23, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-content {
  position: relative;
  max-width: min(92vw, 1080px);
  max-height: 88vh;
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(22, 66, 60, 0.75);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

.lightbox-caption {
  margin-top: 10px;
  text-align: center;
  color: #fff;
  letter-spacing: 0.06em;
}

@media screen and (max-width: 1100px) {
  body.subpage-active .feature-grid,
  body.subpage-active .review-grid,
  body.subpage-active .metrics-grid,
  body.subpage-active .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.subpage-active #gallery-content .gallery-container {
    height: auto;
    min-height: 0;
    grid-template-rows: auto;
  }

  body.subpage-active #gallery-content .photo-layout-frame {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media screen and (max-width: 740px) {
  body.subpage-active .page-content.active:not(#home-content) {
    padding: 88px 14px 116px;
  }

  body.subpage-active .simple-container,
  body.subpage-active #gallery-content .gallery-container {
    border-radius: 22px;
    padding: 20px;
  }

  body.subpage-active #gallery-content .gallery-container {
    height: auto;
    min-height: 0;
    grid-template-rows: auto;
    gap: 10px;
  }

  body.subpage-active #gallery-content .gallery-stage {
    border-radius: 16px;
    padding: 10px;
  }

  body.subpage-active .feature-grid,
  body.subpage-active .review-grid,
  body.subpage-active .metrics-grid,
  body.subpage-active .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.subpage-active .timeline-item {
    grid-template-columns: 1fr;
  }

  body.subpage-active #gallery-content .gallery-top {
    padding-bottom: 8px;
  }

  body.subpage-active #gallery-content .gallery-intro p {
    white-space: normal;
  }

  body.subpage-active #gallery-content .photo-layout-frame {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    gap: 12px;
  }

  body.subpage-active #gallery-content .photo-item img {
    height: 100%;
  }
}
