/* ==========================================================================
   Prime Edge Build - Global Modern Minimalist Stylesheet (2026)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* Utility Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; width: 100%; }

/* Unified Typography */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--dark); font-weight: 400; }

/* Shared Buttons */
.btn-primary {
  display: inline-block; padding: 0.9rem 2.25rem; background: var(--gold); color: var(--white);
  text-decoration: none; font-size: 0.88rem; font-weight: 500; letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  display: inline-block; padding: 0.85rem 2.25rem; background: transparent; color: var(--dark);
  border: 1px solid var(--dark); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.5px; transition: all 0.2s;
}
.btn-outline:hover { background: var(--dark); color: var(--white); }

/* Global Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* 关键：用真实 border，不用 pseudo */
  border-top: 2px solid var(--gold);
  border-bottom: 5px solid var(--gold);
}

/* ----------------------------------------------*/
.header-inner { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 1.5rem 0; /* 在这里控制内部间距，不要在 header 上加 padding-bottom */
}

.logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--dark); text-decoration: none; letter-spacing: 0.5px; }
.logo span { color: var(--gold); }
nav { display: flex; gap: 2rem; }
nav a { font-size: 0.88rem; color: var(--dark); text-decoration: none; transition: color 0.2s; font-weight: 400; }
nav a:hover, nav a.active { color: var(--gold); }

/* Global Footer Styles */
footer { background: var(--dark); color: var(--white); padding: 2rem 0 2.5rem 0; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 4rem; margin-bottom: 1rem; }
.footer-brand .logo { color: var(--white); display: inline-block; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--white); font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 1.5rem; letter-spacing: 0.5px; font-family: 'DM Sans', sans-serif; font-weight: 500; }
.footer-col a { display: block; color: var(--white); text-decoration: none; font-size: 0.88rem; margin-bottom: 0.75rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 3px solid rgba(255,255,255,0.06); padding-top: 1rem; display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--white); }
@media(max-width: 992px) { 
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; } 
}

body {
  margin: 0;
}

/* --- Body Header Section Styles --- */
.bodyheader-section {
    padding-top: 7rem;
    padding-bottom: 3rem;
	background: var(--white)
}

.bodyheader-label {
    color: var(--gold) !important;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.bodyheader-title {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.bodyheader-description {
    color: var(--muted);
    max-width: 600px;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* --- Services Page Layout Styles starts--- */
.service-row { padding: 6rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.service-row:nth-child(even) .service-grid { direction: rtl; }
.service-row:nth-child(even) .service-text { direction: ltr; }
.service-text h3 { font-size: 2.2rem; margin-bottom: 1.25rem; }
.service-text p { color: var(--text); margin-bottom: 1.5rem; font-size: 0.98rem; }
.spec-list { list-style: none; margin-bottom: 2rem; }
.spec-list li { font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--muted); display: flex; gap: 0.5rem; }
.spec-list li::before { content: "✓"; color: var(--gold); font-weight: bold; }
.portfolio-label { color: var(--gold) !important; font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 0.5rem; }

/* services 图片轮播 */
/* --- Carousel Styling (统一处理) --- */
.carousel { 
	position: relative; 
	height: 400px; 
	width: 100%; 
	background: #f8f8f8; 
	overflow: hidden; 
	border-radius: 4px; 
	cursor: pointer; 
}
.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}
.carousel-inner img { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: contain; /* 确保图片完整显示且比例不变 */
  object-position: center; 
  opacity: 0; transition: opacity 0.8s ease-in-out; 
}
.carousel-inner img.active { opacity: 1; }
.carousel-btn { 
  position: absolute; top: 50%; transform: translateY(-50%); 
  background: rgba(0,0,0,0.5); color: white; border: none; padding: 10px 15px; 
  cursor: pointer; z-index: 2; border-radius: 50%; 
}
.prev { left: 10px; }
.next { right: 10px; }
/* service page end */

/* project page starts */
  .filter-bar { 
		display: flex; 
		gap: 0.75rem; 
		flex-wrap: wrap; 
		margin: 3rem 0 2.5rem; 
		max-width: 1200px; /* 确保与容器最大宽度对齐 */
	}
  .filter-btn { padding: 0.5rem 1.5rem; border: 1px solid rgba(26,26,24,0.15); background: transparent; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; cursor: pointer; color: var(--text); transition: all 0.25s; }
  .filter-btn:hover, .filter-btn.active { background: var(--dark); color: var(--white); border-color: var(--dark); }
  /*----*/
.projects-showcase-grid { 
    display: grid; 
    /* 使用 auto-fill 配合 max-width 限制，强制最大两列 */
    /* grid-template-columns: repeat(auto-fill, 400px); */
	grid-template-columns: repeat(2, 1fr);
    /* 核心：让项目在剩余空间内居中，而不是拉伸铺满 */
    justify-content: starts; 
    gap: 2.5rem; 
    min-height: 300px;
    width: 100%;
	max-width: 1200px; /* 限制网格总宽度，使其与上方按钮组对齐 */
  }

 .project-item { 
    background: var(--white); 
    display: flex; 
    flex-direction: column; 
	width: 100%; /* 填充 Grid 的每一个单元 */
	margin-bottom: 1rem;
	border-top: 3px solid var(--gold);  /* 加这一行 */
  }
/* 确保项目容器在一行显示 */
.project-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
  /* 删除 white-space: nowrap — 改在子元素上单独控制 */
  gap: 1rem; /* 加一个间距保证左右不贴在一起 */
}

.project-title {
  font-weight: bold;
  font-size: 1.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* 仅标题不换行 */
  flex: 1;             /* 占据剩余空间，而不是用 flex-shrink */
  min-width: 0;        /* ⚠️ 关键：flex 子元素 overflow hidden 生效必须加这个 */
  margin-right: 0;     /* gap 已经处理间距，删掉 margin-right */
}

.project-meta {
  font-weight: bold;
  font-size: 1.1rem;
  color: #1a1a18;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap; /* 右侧 owner + location 不换行 */
  padding-right: 15px;
}
.project-item-img { height: 380px; background: var(--charcoal); position: relative; }
.project-item-info { padding: 1.75rem; background: var(--white); flex-grow: 1; border: 1px solid rgba(26,26,24,0.04); border-top: none; }
.project-item-info span { color: var(--gold); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; display: block; margin-bottom: 0.5rem; }
.project-item-info h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--dark); font-weight: 400; line-height: 1.4; }
@media(max-width: 768px) { 
	.projects-showcase-grid { 
		grid-template-columns: 1fr; 
		gap: 1.5rem; 
	} 
}
	
/* 4. 图片容器上间距 */
.carousel-wrapper {
  margin-top: 10px;      /* 额外保险：增加图片距离 */
}
/* project page ends */

/* About page Style */
/* --- Features Section Grid Styles --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 6rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-top: 3px solid var(--gold);
}

.feature-icon {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* 响应式适配：在移动端改为单列显示 */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* About page ends */

.bodyheader-about-grid {
	padding-top: 3rem;
	display: grid; 
	grid-template-columns: 1fr 1fr; 
	gap: 5rem; 
	align-items: center;
}

/* testimonials page starts */
  .testimonials-grid { 
    display: grid; 
	grid-template-columns: 
	repeat(3, 1fr); gap: 1.5rem; 
	margin-top: 3rem; 
  }
  /* 头部区域固定在上方 */
  .header-meta { 
    margin-bottom: 1.5rem; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 1rem; 
    display: flex !important;      /* 强制启用 flex */
    flex-direction: row;           /* 确保横向排列 */
    justify-content: space-between; /* 左右两端对齐 */
    align-items: center;           /* 垂直居中 */
    width: 100%;                   /* 占据父容器全部宽度 */
    margin-top: 3px;              /* 稍微加一点间距 */
}
  .testimonial-card { 
    background: var(--white); 
	padding: 2.5rem 2rem; 
	border-left: 3px solid var(--gold); 
	box-shadow: 0 4px 15px rgba(0,0,0,0.02); 
	display: flex; 
	flex-direction: column; 
	justify-content: space-between; 
	Height: 100%;
   }
  .stars { 
    color: var(--gold); 
	font-size: 0.85rem; 
	margin-bottom: 0 !important; 
	letter-spacing: 2px; 
	white-space: nowrap;           /* 确保星星评分不会换行 */
	align-items: center;
  }
  .testimonial-card blockquote { 
    font-size: 0.92rem; 
	color: var(--text); 
	line-height: 1.8; 
	font-style: italic; 
	margin-bottom: 1.5rem; 
	border: none; 
	padding: 0; 
  }
/* 如果想让 author 在最左，location 靠右但还在 author-meta 内部 */
/* 确保内部容器不会被撑爆 */
.author-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;             /* 禁止换行 */
}
  .author-meta strong { 
    display: block; 
	font-size: 0.95rem; 
	color: var(--dark); 
	margin-bottom: 0.5rem;
  }
  .author-meta span { 
    font-size: 0.8rem; 
	color: var(--muted); 
  }
  /* 评论文本占据剩余空间 */
  .review-text { 
      flex-grow: 1; 
      margin: 0 !important; 
      font-size: 0.95rem; 
      color: var(--text); 
      line-height: 1.7; 
  }
  
  @media(max-width: 992px) { .testimonials-grid { grid-template-columns: 1fr; } }
/* testimonials ends */

/* contact page starts */
.contact-grid { 
	display: grid; 
	grid-template-columns: 1fr 1fr; 
	gap: 5rem; 
	align-items: start; 
	padding: 12rem 0 6rem; 
}
.contact-info-panel { 
	display: flex; 
	flex-direction: column; 
	gap: 2rem; 
	margin-top: 2rem; 
}
.info-block {
	display: flex; 
	gap: 1.25rem; 
}
.info-icon {
	width: 44px;
	height: 44px; 
	background: rgba(184,147,74,0.1); 
	border: 1px solid rgba(184,147,74,0.25); 
	display: flex; 
	align-items: center; 
	justify-content: center; 
	color: var(--gold); 
	font-size: 1.1rem; 
}
.info-text strong {
	display: block; 
	ont-size: 0.95rem; 
	color: var(--dark); 
	margin-bottom: 0.25rem; 
}
.info-text span {
	font-size: 0.9rem; 
	color: var(--muted); 
	display: block; 
}
.contact-form {
	background: var(--stone); 
	padding: 3rem;
}
.form-row {
	display: grid; 
	grid-template-columns: 1fr 1fr;
	gap: 1rem; 
	margin-bottom: 1rem;
}
.contact-form input, .contact-form select, .contact-form textarea {
	width: 100%; 
	padding: 0.85rem 1rem; 
	background: var(--white); 
	border: 1px solid rgba(0,0,0,0.08); 
	font-family: 'DM Sans', sans-serif; font-size: 0.88rem; 
	outline: none; 
}
.contact-form textarea {
	height: 120px; 
	resize: none; 
	margin-bottom: 1.5rem; 
}
@media(max-width: 992px) {
	.contact-grid {
		grid-template-columns: 1fr; 
		gap: 3rem;
	}
	.contact-form {
		padding: 2rem;
	}
	.form-row {
		grid-template-columns: 1fr; 
	} 
}

/* contact page ends */

/* Home page starts */
/* --- 基础设置与配色 --- */
:root {
  --gold: #B8934A;
  --dark: #1A1A18;
  --stone: #F5F3EE;
  --text: #3A3A38;
  --white: #FFFFFF;
}

/* --- 精致 Hero 样式 --- */
.hero-refined {
    padding: 12rem 0 8rem;
    background-color: var(--stone);
    position: relative;
}
.label-gold {
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: 4rem;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}
.hero-desc {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* --- 内容区通用布局 --- */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.img-placeholder {
    height: 440px;
    background: #e0ded9; /* 柔和的占位色 */
    border-radius: 4px;
}

/* --- 按钮样式 --- */
.btn-primary {
    background: var(--gold); color: white;
    padding: 1rem 2rem; text-decoration: none; font-size: 0.9rem;
}
.btn-outline {
    border: 1px solid var(--dark); color: var(--dark);
    padding: 1rem 2rem; text-decoration: none; font-size: 0.9rem;
}

/* Home page ends */
