/* ============================================
   聖麒科技 - Saint Kirin Tech
   Color Palette:
   - Dark Brown:  #4b2203
   - Cream:       #eee8dd
   - Orange:      #e26d12
   - Light Green: #d8eb98
   - Gray:        #adaead
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #eee8dd;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Container */
.container {
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Block 1: Hero Section
   ============================================ */
.hero {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 1080px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bottom-gradient {
  position: absolute;
  left: 0;
  bottom: -200px;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-bottom-gradient img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.1) 60%,
      rgba(0, 0, 0, 0.85) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.05) 100%
    );
}

/* ============================================
   Top Navigation
   ============================================ */
.top-nav {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  background-color: #fff;
}

.nav-container {
  width: 100%;
  max-width: 1880px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 70px;
  width: auto;
}

/* Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu ul li a {
  font-weight: 500;
  color: #4b2203;
  font-size: 20px;
  padding: 8px 38px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-menu ul li a:hover {
  color: #e26d12;
}

/* Search Button */
.nav-search {
  background: none;
  border: none;
  color: #4b2203;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
  transition: color 0.3s ease;
}

.nav-search:hover {
  color: #e26d12;
}

/* ============================================
   Hero Content
   ============================================ */
.hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1720px;
  margin: 0 auto;
  padding: 380px 20px 40px;
  width: 100%;
}

.hero-text {
  max-width: 1100px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 50px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-title {
  color: #fff;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.hero-title-underline {
  background: linear-gradient(to top, #e26d12 30%, transparent 30%);
  padding: 0 4px;
}

.hero-desc {
  color: #fff;
  font-size: 25px;
  line-height: 1.2;
  max-width: 870px;
}

/* CTA Box */
.hero-cta-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 40px;
  padding: 5px 10px;
  align-self: center;
  margin-top: auto;
  margin-bottom: 90px;
}

/* CTA Bar */
.cta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e26d12;
  border-radius: 35px;
  padding: 0px 5px;
  gap: 0;
  transition: background-color 0.3s ease;
}

.cta-bar:hover {
  background-color: #c95e0e;
}

.cta-bar a {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
  white-space: nowrap;
  padding: 8px 41px;
  border-radius: 18px;
  transition: all 0.3s ease;
}

.cta-bar a.cta-active {
  background-color: #fff;
  color: #e26d12;
  padding: 2px 30px;
  margin: -2px 0;
}

/* C Decoration */
.hero-deco {
  position: absolute;
  right: -150px;
  top: 10%;
  width: 800px;
  z-index: 1;
  pointer-events: none;
}

.hero-c {
  width: 100%;
  height: auto;
  opacity: 0.7;
}

/* ============================================
   Block 2: 碳有價時代
   ============================================ */
.block2 {
  position: relative;
  z-index: 2;
  width: 100%;
}

.block2-transition {
  position: absolute;
  top: -230px;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.block2-transition img {
  width: 100%;
  height: auto;
  display: block;
}

.block2-transition-2 {
  top: -690px;
}

.block2-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.block2-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block2-content {
  position: relative;
  z-index: 3;
  padding: 40px 0 250px;
}

.block2-connect-lines {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: calc(100% - 290px);
  pointer-events: none;
  z-index: 5;
}

/* Block 2 Header */
.block2-header {
  margin-bottom: 30px;
}

.block2-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 40px;
  letter-spacing: 2px;
  margin-bottom: 0;
  font-weight: 400;
}

.block2-title {
  color: #d8eb98;
  font-size: 90px;
  font-weight: 700;
  letter-spacing: 6px;
}

/* C Rock - centered, spans sections */
.block2-c-rock {
  position: absolute;
  left: 50%;
  transform: translateX(-55%);
  top: 430px;
  width: 720px;
  z-index: 1;
  pointer-events: none;
}

.block2-c-rock img {
  width: 100%;
  height: auto;
}

/* Block 2 Sections */
.block2-section {
  position: relative;
  z-index: 2;
}

.block2-section-title {
  color: #fff;
  font-size: 50px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.block2-orange-line {
  height: 3px;
  background-color: #d8eb98;
  margin-bottom: 16px;
}

.block2-section-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 25px;
  line-height: 1.6;
  letter-spacing: -0.5px;
}

.block2-section-img {
  position: relative;
  margin-top: 10px;
}

.hex-img {
  width: 240px;
  height: auto;
  display: block;
}

/* Hex border - rounded hex with green outline */
.hex-border {
  display: inline-block;
  position: relative;
  width: 400px;
  height: 355px;
  background-color: #d8eb98;
  clip-path: url(#hex-clip);
}

.hex-border .hex-img {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  clip-path: url(#hex-clip);
}

/* Section 1: 左側上方 */
.block2-section-1 {
  max-width: 750px;
  margin-bottom: 0;
}


.block2-section-1 .block2-orange-line {
  width: 100%;
}

.block2-section-1 .block2-section-desc {
  max-width: 600px;
}

/* Section 2: 右側中間（C 開口處） */
.block2-section-2 {
  margin-left: 55%;
  max-width: 750px;
  margin-top: -150px;
  margin-bottom: 20px;
  text-align: right;
}


.block2-section-2 .block2-orange-line {
  width: 90%;
  margin-left: auto;
}

.block2-section-2 .block2-section-desc {
  max-width: 665px;
  margin-left: auto;
}

.block2-section-2 .block2-section-img {
  display: flex;
  justify-content: flex-end;
}

/* Section 3: 左側下方 */
.block2-section-3 {
  max-width: 900px;
  margin-top: -160px;
  margin-bottom: 0;
}


.block2-section-3 .block2-orange-line {
  width: 92%;
}

.block2-section-3 .block2-section-desc {
  max-width: 830px;
}


/* Dashed Lines */
.block2-dashed {
  position: relative;
  z-index: 5;
  margin-top: -200px;
  margin-left: auto;
  margin-right: 100px;
  width: 320px;
  height: 167px;
  opacity: 0.5;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    transparent,
    transparent 38px,
    #e26d12 38px,
    #e26d12 40px
  );
  -webkit-mask-image: repeating-linear-gradient(
    to bottom,
    #000 0px,
    #000 12px,
    transparent 12px,
    transparent 18px
  );
  mask-image: repeating-linear-gradient(
    to bottom,
    #000 0px,
    #000 12px,
    transparent 12px,
    transparent 18px
  );
}

/* ============================================
   Block 3: 聖麒實力
   ============================================ */
.block3 {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0;
  overflow: visible;
  margin-top: -80px;
  margin-bottom: 0;
  background: url(../images/block3-cream-bg.png) center top / 110% auto no-repeat;
  padding-bottom: 150px;
}

.block3-transition {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.block3-transition img {
  width: 100%;
  display: block;
}

.block3-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 150px;
}

.block3-label {
  font-size: 50px;
  color: #000;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 900;
}

.block3-title {
  font-size: 70px;
  font-weight: 700;
  color: #e26d12;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.block3-desc {
  font-size: 30px;
  color: #000;
  line-height: 1.8;
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================
   Block 4: 三大服務模組
   ============================================ */
.block4 {
  position: relative;
  z-index: 2;
  background-color: #000;
}

.block4-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.block4-bg-img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -450px;
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 75%, transparent 95%);
}

.block4-title {
  color: #fff;
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 60px;
  margin-left: 40px;
}

.block4-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 120px;
}

.block4-content::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 100px;
  height: 1300px;
  width: 3px;
  background-color: #e26d12;
  z-index: 0;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 100px;
  margin-left: 0;
  position: relative;
}

.service-row:last-child {
  margin-bottom: 0;
}


.service-number {
  flex-shrink: 0;
  width: 360px;
  text-align: center;
}

.service-number img {
  width: auto;
  height: 150px;
  margin: 0 auto;
}

.service-info {
  flex: 1;
  margin-left: 2rem;
}

.service-bar {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 290px;
  padding: 40px 50px;
  gap: 80px;
  border: none;
  border-radius: 22px;
  overflow: hidden;
}

.service-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #e26d12;
  border-radius: 22px;
  -webkit-mask-image: linear-gradient(to right, #000 30%, transparent 100%);
  mask-image: linear-gradient(to right, #000 30%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.service-bar-img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: fill;
  border-radius: 10px;
  z-index: 0;
}

.service-name {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
  min-width: 345px;
}

.service-items {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  padding-left: 50px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.service-items p {
  color: #000;
  font-size: 30px;
}

/* Block 4 Gallery (下半部) */
.block4-gallery {
  position: relative;
  margin-top: 25rem;
  display: flex;
  gap: 30px;
}

.block4-vline {
  display: none;
}

.gallery-col {
  flex: 1;
}

.gallery-col-right {
  padding-top: 0;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.gallery-item.gallery-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 110px;
  margin-top: 60px;
}

.gallery-item.gallery-brand img {
  width: 70%;
  height: auto;
  border-radius: 0;
}

.gallery-label {
  position: relative;
  z-index: 1;
  margin-top: -120px;
  padding: 0px 30px 10px;
}

.gallery-label h4 {
  color: #d8eb98;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-label p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
}

/* ============================================
   Block 6: 永續學問
   ============================================ */
.block6 {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.block6-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.block6-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block6-content {
  position: relative;
  z-index: 1;
  padding: 0 0 100px;
  text-align: center;
  width: 100%;
}

.block6-title {
  color: #e26d12;
  font-size: 70px;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 5rem;
}

.block6-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 28px;
  line-height: 1.8;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.block6-stages {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 180px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.block6-stage {
  flex: 1;
  text-align: center;
  max-width: 400px;
}

.stage-label {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.stage-card {
  position: relative;
  background: transparent;
  border: none;
  border-top: 2px solid #e26d12;
  border-radius: 20px 20px 0 0;
  padding: 40px 25px 65px;
}

.stage-card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 2px;
  height: calc(100% - 10px);
  background: linear-gradient(to bottom, #e26d12 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  pointer-events: none;
}

.stage-card::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 0;
  width: 2px;
  height: calc(100% - 10px);
  background: linear-gradient(to bottom, #e26d12 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  pointer-events: none;
}

.stage-card h4 {
  color: #fff;
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: none;
  background-image: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.4) 20%, rgba(255, 255, 255, 0.4) 80%, transparent 100%);
  background-size: 100% 1px;
  background-position: bottom;
  background-repeat: no-repeat;
}

.stage-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 26px;
}

.block6-btn {
  display: inline-block;
  padding: 20px 60px;
  background-color: #fff;
  color: #e26d12;
  font-size: 28px;
  font-weight: 700;
  border-radius: 40px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.block6-btn:hover {
  background-color: #eee8dd;
}

.block6-bottom-gradient {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.block6-bottom-gradient img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Block 7: 顧問觀點
   ============================================ */
.block7 {
  position: relative;
  background-color: #eee8dd;
  padding: 150px 0;
  overflow: visible;
}

.section-gradient {
  position: relative;
  margin-bottom: -206px;
  z-index: 5;
  pointer-events: none;
}

.section-gradient img {
  width: 100%;
  height: auto;
  display: block;
}

.block7-content {
  position: relative;
  z-index: 3;
}

.block7-title {
  font-size: 70px;
  font-weight: 700;
  color: #4b2203;
  text-align: center;
  margin-bottom: 100px;
}

.block7-grid {
  display: flex;
  gap: 30px;
}

.block7-card {
  flex: 1;
  background: transparent;
}

.block7-card-img-wrap {
  overflow: hidden;
  border-radius: 16px;
}

.block7-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.5s ease, filter 0.5s ease;
  cursor: pointer;
}

.block7-card img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.block7-card h4 {
  font-size: 22px;
  color: #4b2203;
  font-weight: 700;
  padding: 16px 0 8px;
  line-height: 1.5;
}

.block7-card p {
  font-size: 18px;
  color: #4b2203;
  padding: 0 0 8px;
  line-height: 1.6;
}

.block7-card a {
  display: block;
  padding: 8px 0 0;
  color: #e26d12;
  font-size: 18px;
  font-weight: 700;
}

/* ============================================
   Block 8: 聯絡我們
   ============================================ */
.block8 {
  background-color: #fff;
  padding: 200px 0 150px;
}

.block8-content {
  max-width: 700px;
  margin: 0 auto;
}

.block8-title {
  font-size: 70px;
  font-weight: 900;
  color: #4b2203;
  text-align: center;
  margin-bottom: 20px;
}

.block8-desc {
  font-size: 24px;
  color: #e26d12;
  text-align: center;
  margin-bottom: 60px;
}

.block8-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group label {
  display: block;
  font-size: 20px;
  color: #4b2203;
  margin-bottom: 10px;
  font-weight: 700;
}

.form-radios {
  display: flex;
  gap: 30px;
}

.form-radios label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  font-size: 20px;
  color: #4b2203;
  cursor: pointer;
}

.form-radios input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 18px;
  border-radius: 10px;
  background-color: #d9d3c9;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-radios input[type="radio"]:checked {
  background-color: #e26d12;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-family: inherit;
  background: #e8e0d4;
}

.form-group textarea {
  resize: vertical;
}

.form-submit {
  align-self: center;
  margin-top: 30px;
  padding: 18px 70px;
  background-color: #e26d12;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  border: none;
  border-radius: 35px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: #c95e0e;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background-color: #e8e0d4;
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  color: #4b2203;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-slogan {
  color: #4b2203;
  font-size: 18px;
  margin-bottom: 4px;
}

.footer-sub {
  color: #4b2203;
  font-size: 16px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(75, 34, 3, 0.2);
  margin: 30px 0 20px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copyright {
  color: rgba(75, 34, 3, 0.6);
  font-size: 14px;
}

.footer-legal {
  color: rgba(75, 34, 3, 0.6);
  font-size: 14px;
}

.footer-contact-label {
  color: #4b2203;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-phone {
  font-size: 16px;
  margin-bottom: 4px;
}

.footer-phone a,
.footer-email a,
.footer-address a {
  color: #4b2203;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-phone a:hover,
.footer-email a:hover,
.footer-address a:hover {
  color: #e26d12;
}

.footer-email {
  font-size: 16px;
  margin-bottom: 4px;
}

.footer-address {
  color: #4b2203;
  font-size: 16px;
}
