
/* final Media V2：只以 references/final-media.png 為視覺真本 */

.media-section{padding:112px 0}
.media-kicker{
  color:var(--orange-dark);
  font-size:13px;
  font-weight:600;
  margin-bottom:14px;
}
.media-section h2{
  font-size:clamp(34px,3vw,48px);
  line-height:1.45;
}

/* 1. Hero — full viewport width, image flush to right edge */
.media-hero{
  position:relative;
  overflow:hidden;
  min-height:520px;
  background:#fbf7f0;
}
.media-hero-photo{
  position:absolute;
  inset:0 0 0 44%;
  background:
    linear-gradient(90deg,#fbf7f0 0%,rgba(251,247,240,.65) 14%,rgba(251,247,240,.10) 43%,transparent 72%),
    url("../images/media/hero.jpg") center/cover no-repeat;
}
.media-hero-inner{
  position:relative;
  z-index:2;
  min-height:520px;
  display:flex;
  align-items:center;
}
.media-hero-copy{
  width:min(54%,650px);
  padding:64px 0;
}
.media-hero-copy h1{
  font-size:clamp(48px,4.5vw,70px);
  line-height:1.3;
  letter-spacing:-.035em;
  margin-bottom:20px;
}
.media-hero-copy h1 span{color:var(--orange-dark)}
.media-hero-copy>p:last-of-type{
  max-width:560px;
  color:#6c655e;
  font-size:15px;
  line-height:1.95;
}
.media-hero-actions{
  display:flex;
  gap:12px;
  margin-top:26px;
}

/* 2. Why us — final Media circular line icons */
.media-value{background:#fff}
.value-grid{
  display:grid;
  grid-template-columns:.72fr 1.28fr;
  gap:52px;
  align-items:center;
}
.value-intro{padding-right:20px}
.value-intro h2{margin-bottom:18px}
.value-intro p{
  color:#746e67;
  font-size:14px;
  line-height:1.9;
}
.value-points{
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.value-points article{
  min-height:220px;
  padding:8px 20px 0;
  text-align:center;
  border-left:1px solid var(--line);
}
.value-points article:first-child{border-left:0}
.value-icon{
  width:78px;
  height:78px;
  margin:0 auto 18px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff8f2;
}
.value-icon svg{
  width:42px;
  height:42px;
  fill:none;
  stroke:var(--orange-dark);
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.value-points h3{
  font-family:var(--sans);
  font-size:16px;
  margin-bottom:8px;
}
.value-points p{
  color:#837b73;
  font-size:12px;
  line-height:1.75;
}

/* Shared section heads */
.media-services{background:#fbf8f3}
.media-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:34px;
  margin-bottom:38px;
}
.media-section-head h2{margin:0}
.media-section-head>p,
.media-section-head>a{
  max-width:560px;
  color:#7c756e;
  font-size:13px;
}
.media-section-head>a{
  color:var(--orange-dark);
  font-weight:600;
}

/* Services */
.media-service-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.media-service-card{
  background:#fff;
  border:1px solid #eee5dc;
  box-shadow:0 10px 32px rgba(55,41,29,.045);
  overflow:hidden;
}
.media-service-card img{
  width:100%;
  height:170px;
  object-fit:cover;
}
.media-service-card>div{padding:24px 24px 26px}
.media-service-card h3{font-size:22px;margin-bottom:11px}
.media-service-card ul{
  margin:0 0 14px;
  padding-left:18px;
  color:#5d5750;
  font-size:13px;
  line-height:1.8;
}
.media-service-card li::marker{color:var(--orange)}
.media-service-card a{
  color:var(--orange-dark);
  font-size:12px;
  font-weight:600;
}

/* 3. Process — refined horizontal capsules inspired by final Media */
.media-process{
  background:#fff;
}
.process-row{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin:0;
  padding:6px 0 0;
}
.process-row li{
  position:relative;
  min-height:128px;
  display:grid;
  grid-template-columns:58px 1fr;
  grid-template-rows:auto auto;
  column-gap:14px;
  align-items:center;
  padding:23px 24px 20px;
  background:
    radial-gradient(circle at 20% 25%,rgba(255,238,225,.58),transparent 28%),
    #fffdfa;
  border:1px solid #eee4da;
  border-radius:999px;
  box-shadow:0 8px 24px rgba(60,45,34,.04);
}
.process-row li:not(:last-child):after{
  content:"›";
  position:absolute;
  right:-16px;
  top:50%;
  transform:translateY(-50%);
  color:var(--orange-dark);
  font-size:22px;
}
.process-number{
  position:absolute;
  left:16px;
  top:14px;
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#ffe2cf;
  color:#754c37;
  font-size:12px;
  font-weight:600;
}
.process-icon{
  grid-row:1 / 3;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  margin-top:10px;
}
.process-icon svg{
  width:42px;
  height:42px;
  fill:none;
  stroke:#656b70;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.process-copy{
  padding-top:4px;
}
.process-row h3{
  font-family:var(--sans);
  font-size:16px;
  margin:0 0 6px;
  letter-spacing:.01em;
}
.process-row p{
  margin:0;
  color:#7a736c;
  font-size:11px;
  line-height:1.65;
}

/* Cases */
.media-cases{background:#fff}
.media-cases-layout{
  display:grid;
  grid-template-columns:1.12fr .88fr;
  gap:18px;
}
.media-case-feature,
.media-case-side article{
  border:1px solid #e8dfd7;
  background:#fff;
  overflow:hidden;
}
.media-case-feature img{
  width:100%;
  height:330px;
  object-fit:cover;
}
.media-case-feature>div{padding:22px 22px 24px}
.media-case-side{display:grid;gap:18px}
.media-case-side article{display:grid;grid-template-columns:44% 1fr}
.media-case-side img{
  width:100%;
  height:100%;
  min-height:155px;
  object-fit:cover;
}
.media-case-side article>div{padding:18px}
.media-case-feature span,
.media-case-side span{
  display:inline-block;
  padding:4px 9px;
  border-radius:999px;
  background:#fff2e7;
  color:#78503a;
  font-size:10px;
  margin-bottom:8px;
}
.media-cases h3{font-size:22px;margin-bottom:7px}
.media-case-side h3{font-size:18px}
.media-cases p{
  color:#736c65;
  font-size:12px;
  line-height:1.75;
}
.media-cases a{
  color:var(--orange-dark);
  font-size:12px;
  font-weight:600;
}

/* 4. Media resources — clean six-column cards */
.media-resources{background:#fbf8f3}
.resource-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
}
.resource-grid article{
  min-height:148px;
  padding:22px 12px 18px;
  background:#fff;
  text-align:center;
  border:1px solid #ede4dc;
}
.resource-icon{
  width:50px;height:50px;
  margin:0 auto 11px;
  display:grid;place-items:center;
}
.resource-icon svg{
  width:36px;height:36px;
  fill:none;
  stroke:var(--orange-dark);
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.resource-grid h3{
  font-family:var(--sans);
  font-size:15px;
  margin-bottom:6px;
}
.resource-grid p{
  margin:0;
  color:#8a837c;
  font-size:10px;
}

/* 5. Contact — clear photo edge + clean copy/form layout */
.media-contact{
  position:relative;
  overflow:hidden;
  background:#fbf7f0;
}
.media-contact-photo{
  position:absolute;
  inset:0 auto 0 0;
  width:19%;
  background:
    linear-gradient(90deg,rgba(251,247,240,.05) 0%,rgba(251,247,240,.20) 58%,rgba(251,247,240,.82) 100%),
    url("../images/media/contact-clean.jpg") center/cover no-repeat;
}
.media-contact-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:.82fr 1.18fr;
  gap:72px;
  align-items:center;
}
.media-contact-copy{
  min-height:395px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-left:92px;
}
.media-contact-copy h2{
  max-width:520px;
  font-size:clamp(34px,3vw,47px);
  line-height:1.5;
  margin-bottom:16px;
}
.media-contact-copy h2 span{
  color:var(--orange-dark);
}
.media-contact-copy p{
  max-width:470px;
  margin:0;
  color:#6e675f;
  font-size:13px;
  line-height:1.9;
}
.media-contact .contact-form{
  width:100%;
  max-width:none;
  background:#fff;
  padding:28px 30px 26px;
  border:1px solid #eadfd5;
  box-shadow:0 14px 38px rgba(55,41,29,.06);
}
.media-contact .contact-form h3{
  font-size:24px;
  margin-bottom:18px;
}
.media-contact .form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.media-contact .contact-form label{
  display:block;
  margin-bottom:12px;
  color:#5d5650;
  font-size:11px;
}
.media-contact .contact-form input,
.media-contact .contact-form select,
.media-contact .contact-form textarea{
  display:block;
  width:100%;
  margin-top:6px;
  padding:11px 12px;
  border:1px solid #ddd2c8;
  background:#fff;
  color:#2a2724;
  outline:none;
}
.media-contact .contact-form textarea{
  min-height:100px;
  resize:vertical;
}
.media-contact .contact-form input:focus,
.media-contact .contact-form select:focus,
.media-contact .contact-form textarea:focus{
  border-color:var(--orange);
}
.form-submit-row{
  display:flex;
  justify-content:flex-end;
}
.media-contact .contact-submit{
  min-width:200px;
  border-radius:3px;
  border:0;
}

/* Tablet */
@media(max-width:980px){
  .media-hero{min-height:0}
  .media-hero-photo{
    position:relative;
    inset:auto;
    width:auto;
    height:360px;
    margin-top:0;
    background:
      linear-gradient(0deg,#fbf7f0 0%,rgba(251,247,240,.14) 35%,transparent 65%),
      url("../images/media/hero.jpg") center/cover no-repeat;
  }
  .media-hero-inner{
    min-height:0;
    display:block;
  }
  .media-hero-copy{
    width:100%;
    padding:58px 0 30px;
  }

  .value-grid{grid-template-columns:1fr}
  .value-points{grid-template-columns:1fr 1fr}
  .value-points article:nth-child(odd){border-left:0}

  .media-service-grid{grid-template-columns:1fr 1fr}
  .process-row{grid-template-columns:1fr 1fr}
  .process-row li:nth-child(2):after{display:none}
  .process-row li{border-radius:42px}
  .media-cases-layout{grid-template-columns:1fr}
  .resource-grid{grid-template-columns:repeat(3,1fr)}

  .media-contact-photo{display:none}
  .media-contact-grid{grid-template-columns:1fr}
  .media-contact-copy{
    min-height:0;
    padding-left:0;
  }
}

/* Mobile */
@media(max-width:640px){
  .media-section{padding:82px 0}

  .media-hero-copy{padding:44px 0 26px}
  .media-hero-copy h1{font-size:40px}
  .media-hero-copy>p:last-of-type{font-size:13px}
  .media-hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .media-hero-actions .button{padding:0 10px;font-size:11px}
  .media-hero-photo{height:290px}

  .value-intro h2{font-size:30px}
  .value-points{grid-template-columns:1fr 1fr}
  .value-points article{
    min-height:170px;
    padding:14px 8px;
    border-bottom:1px solid var(--line);
  }
  .value-icon{width:58px;height:58px}
  .value-icon svg{width:32px;height:32px}
  .value-points h3{font-size:13px}
  .value-points p{font-size:10px}

  .media-section-head{display:block;margin-bottom:28px}
  .media-section-head h2{font-size:31px;margin-bottom:8px}

  .media-service-grid{grid-template-columns:1fr;gap:14px}
  .media-service-card{display:grid;grid-template-columns:104px 1fr}
  .media-service-card img{
    width:104px;height:100%;min-height:150px;
  }
  .media-service-card>div{padding:16px}
  .media-service-card h3{font-size:18px}
  .media-service-card ul{font-size:11px;line-height:1.65;margin-bottom:8px}
  .media-service-card a{font-size:11px}

  .process-row{grid-template-columns:1fr;gap:10px}
  .process-row li{
    min-height:0;
    grid-template-columns:52px 1fr;
    border-radius:28px;
    padding:18px 18px 16px;
  }
  .process-row li:after{display:none!important}
  .process-number{left:12px;top:10px}
  .process-icon{width:52px;height:52px;margin-top:8px}
  .process-icon svg{width:36px;height:36px}

  .media-cases-layout{
    display:flex;
    overflow-x:auto;
    gap:14px;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    padding-right:15px;
    margin-right:-15px;
  }
  .media-cases-layout::-webkit-scrollbar{display:none}
  .media-case-feature,
  .media-case-side article{
    flex:0 0 84vw;
    scroll-snap-align:start;
  }
  .media-case-feature img{height:220px}
  .media-case-side{display:contents}
  .media-case-side article{display:block}
  .media-case-side img{width:100%;min-height:0;height:220px}

  .resource-grid{grid-template-columns:1fr 1fr}
  .resource-grid article{min-height:126px}

  .media-contact-grid{gap:0}
  .media-contact-copy{display:none}
  .media-contact .contact-form{padding:20px 16px}
  .media-contact .form-row{grid-template-columns:1fr 1fr;gap:8px}
  .media-contact .contact-submit{width:100%;min-width:0}
  .form-submit-row{display:block}
}
