/* ===================================================
   JP Brothers — style.css
   全新干净版本，不含任何遗留残缺代码
   =================================================== */

/* ---------- CSS 变量 ---------- */
:root {
  --primary:      #c8a96e;   /* 金色 */
  --primary-dark: #a8883e;
  --black:        #0a0a0a;
  --dark:         #111111;
  --dark2:        #1a1a1a;
  --gray:         #888888;
  --light-gray:   #eeeeee;
  --white:        #ffffff;
  --text:         #222222;
  --text-light:   #666666;

  --font-main:  'Noto Sans SC', 'Inter', sans-serif;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-full: 9999px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.18);

  --nav-h:      72px;
  --transition: .3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }


/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  z-index: 1000;
}
.navbar.scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.nav-container {
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--white);
  transition: color var(--transition);
}
.navbar.scrolled .nav-logo { color: var(--black); }
.nav-logo-img { width: 36px; height: 36px; object-fit: contain; }
.nav-logo-text { font-size: 1.1rem; font-weight: 600; letter-spacing: .05em; }

.nav-menu {
  display: flex; gap: 8px;
  margin: 0 auto;
}
.nav-link {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}
.navbar.scrolled .nav-link {
  color: rgba(0,0,0,.6);
}
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--black);
  background: rgba(0,0,0,.06);
}

.nav-right { display: flex; align-items: center; gap: 16px; }


.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  width: 28px;
}
.nav-toggle span {
  display: block; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Section 通用 ---------- */
.section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-line {
  width: 60px; height: 3px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--black);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/backgrounds/bg-documentary.jpg') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.7) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; color: var(--white);
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero-title {
  font-size: clamp(3.6rem, 10vw, 7.2rem);
  font-weight: 800;
  letter-spacing: .12em;
  color: #8F1D22;
  text-shadow: 0 4px 40px rgba(143,29,34,.5);
  margin: 0 0 28px 0;
  line-height: 1.1;
}
.hero-divider {
  width: 48px;
  height: 2px;
  background: rgba(255,255,255,.35);
  margin: 0 auto 28px;
}

.hero-logo {
  width: clamp(160px, 28vw, 320px);
  height: auto;
  display: block;
  margin: 0 auto 28px;
  animation: heroLogoIn 1.4s ease-out forwards;
  opacity: 0;
}
@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  color: rgba(255,255,255,.85);
  letter-spacing: .35em;
  font-weight: 300;
  margin: 0;
}
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}
.mouse {
  width: 26px; height: 40px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 13px;
  display: flex; justify-content: center; padding-top: 7px;
}
.wheel {
  width: 4px; height: 8px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  animation: wheelScroll 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@keyframes wheelScroll {
  0%    { opacity: 1; transform: translateY(0); }
  100%  { opacity: 0; transform: translateY(8px); }
}

/* ---------- About ---------- */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h3 {
  font-size: 1.5rem; font-weight: 600;
  color: var(--dark); margin-bottom: 20px;
}
.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-stats {
  display: flex; gap: 40px; margin-top: 36px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2.2rem; font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: 4px;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.about-image:hover img { transform: scale(1.04); }

/* ---------- Services ---------- */
/* 整个 services-section 不再需要内边距，卡片自己是全屏的 */
.services-section {
  background: var(--black);
  padding: 0 !important;
}
/* 隐藏 section-header（标题由每张卡片内部呈现） */
.services-section .section-header { display: none; }

.services-grid {
  display: flex;
  flex-direction: column;
}

/* 每张卡片 = 100vh 全屏 */
.service-card {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 背景图铺满 */
.service-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.service-card.in-view .service-bg { transform: scale(1); }

/* 渐变遮罩：底部加深，顶部微暗 */
.service-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.35) 0%,
    rgba(0,0,0,.15) 40%,
    rgba(0,0,0,.55) 75%,
    rgba(0,0,0,.80) 100%
  );
}

/* 内容居中 */
.service-content {
  position: relative; z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 clamp(24px, 8vw, 120px);
  max-width: 720px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.service-card.in-view .service-content {
  opacity: 1;
  transform: translateY(0);
}

/* 编号角标 */
.service-num {
  font-size: .7rem;
  letter-spacing: .25em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
}

.service-title {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 20px;
  line-height: 1.1;
}

/* 分割线 */
.service-line {
  width: 40px; height: 2px;
  background: var(--primary);
  margin: 0 auto 24px;
}

.service-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(255,255,255,.82);
  line-height: 1.9;
  font-weight: 300;
}

.service-detail {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,.6);
  line-height: 1.9;
  margin-top: 20px;
}

/* 页面序号指示器（右侧竖排） */
.service-index {
  position: absolute; right: 32px; bottom: 40px;
  font-size: .65rem; letter-spacing: .2em;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}

/* ---------- Portfolio ---------- */
.portfolio-section { background: var(--light-gray); }

.portfolio-track-wrap {
  overflow: hidden;
  position: relative;
}
.portfolio-track {
  display: flex;
  gap: 20px;
  transition: transform .4s ease;
  /* 桌面端：直接换行展示 */
  flex-wrap: wrap;
  justify-content: center;
}
.portfolio-card {
  flex: 0 0 calc(20% - 16px);
  min-width: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.portfolio-poster {
  aspect-ratio: 9/16;
  overflow: hidden;
}
.portfolio-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.portfolio-card:hover .portfolio-poster img { transform: scale(1.06); }
.portfolio-info {
  padding: 12px;
}
.portfolio-title {
  font-size: .9rem; font-weight: 600;
  color: var(--dark); margin-bottom: 4px;
}
.portfolio-meta {
  font-size: .75rem;
  color: var(--text-light);
}
/* 桌面端不显示小圆点 */
.portfolio-dots { display: none; }

/* ---------- Team ---------- */
.team-section { background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: transform .3s ease, box-shadow .3s ease;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.team-photo {
  width: 100px; height: 100px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--primary);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.team-name {
  font-size: 1.2rem; font-weight: 700;
  color: var(--dark); margin-bottom: 4px;
}
.team-role {
  font-size: .8rem;
  color: var(--primary); font-weight: 600;
  letter-spacing: .05em; margin-bottom: 6px;
}
.team-title {
  font-size: .85rem;
  color: var(--text-light); margin-bottom: 10px;
}
.team-highlight {
  display: inline-block;
  font-size: .75rem;
  color: var(--primary-dark);
  background: rgba(200,169,110,.1);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

/* ---------- Contact ---------- */
.contact-section { background: var(--white); }
.contact-section .section-title { color: var(--black); }
.contact-section .section-line  { background: var(--primary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.5rem; font-weight: 600;
  color: var(--black); margin-bottom: 12px;
}
.contact-info > p {
  color: rgba(0,0,0,.55);
  margin-bottom: 28px; line-height: 1.8;
}
.office-list { margin-bottom: 24px; }
.office-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(0,0,0,.6);
  font-size: .9rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.office-item i { color: var(--primary); width: 16px; }
.contact-links { margin-bottom: 20px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(0,0,0,.55);
  font-size: .9rem;
  transition: color var(--transition);
}
.contact-link:hover { color: var(--primary); }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,.45);
  font-size: 1rem;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  flex: 1;
  background: #f5f5f5;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--black);
  font-family: var(--font-main);
  font-size: .9rem;
  transition: border-color var(--transition);
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(0,0,0,.3); }
.contact-form select option { background: var(--white); color: var(--black); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem; font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: .05em;
  transition: background var(--transition), transform var(--transition);
  align-self: flex-start;
}
.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Footer Bar */
.footer-bar {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  color: rgba(255,255,255,.3);
  font-size: .8rem;
}

/* ---------- Back to Top ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--dark2);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: scale(.95);
  transition: transform var(--transition);
  color: var(--white);
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 1;
}
.modal-close:hover { background: rgba(255,255,255,.25); }
.modal-inner { padding: 40px; }
.modal-poster {
  width: 100%; border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 28px;
  aspect-ratio: 16/9;
}
.modal-poster img { width: 100%; height: 100%; object-fit: cover; }
.modal-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.modal-meta  {
  color: var(--primary); font-size: .9rem;
  margin-bottom: 20px; font-weight: 500;
}
.modal-desc  { color: rgba(255,255,255,.7); line-height: 1.8; font-size: .95rem; }

/* Contact Hero - 确保不被navbar遮挡 */
.hero.contact-hero { z-index: 1; }
.hero.contact-hero .hero-content { z-index: 1001; }
.hero.contact-hero .hero-logo { z-index: 1001; }


/* Contact page - solid black background */
.hero.contact-hero .hero-bg { display: none; }
.hero.contact-hero { background: #0a0a0a; }
.hero.contact-hero .hero-overlay { background: rgba(0,0,0,.7); }


/* Hero subtitle for contact - 和首页一样 */

/* Hero subtitle for contact - 粗体，向上移动 */
.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  letter-spacing: .35em;
  font-weight: 500;
  margin-top: 24px;
  color: #8F1D22;
}

/* Contact email - 小30%，向下移动 */
.hero.contact-hero .hero-tagline {
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  letter-spacing: .2em;
  margin-top: 72px;
}
.hero.contact-hero .hero-tagline a {
  color: rgba(255,255,255,.7);
  text-decoration: underline;
}
