/* ============================================
   Check Medal — Styles Page (รูปแบบ)
   Extends style.css for the styles.html page
   ============================================ */

/* ===== Active nav link ===== */
.main-nav a.active {
  color: var(--primary);
  font-weight: 600;
}
.main-nav a.active::after {
  transform: scaleX(1) !important;
}

/* ===== Page hero (smaller than landing hero) ===== */
.page-hero {
  position: relative;
  padding: 130px 0 70px;
  background: linear-gradient(135deg, var(--bg-soft) 0%, #fff 100%);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,150,30,.10) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 1.2rem;
}
.page-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.page-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero-visual img {
  max-width: 380px;
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(26,26,46,.22));
  animation: float 6s ease-in-out infinite;
}

/* ===== Finishes section ===== */
.finishes {
  padding: 90px 0;
  background: #fff;
}

.finish-group-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.5rem;
  margin: 2.5rem 0 1.5rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
}
.finish-group-title:first-of-type { margin-top: 0; }
.finish-group-title .group-en {
  font-size: .8rem;
  font-weight: 400;
  color: var(--text-mute);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-left: auto;
}
.dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.dot-gold   { background: linear-gradient(135deg, #F4D880 0%, #C8961E 100%); }
.dot-silver { background: linear-gradient(135deg, #E8E8E8 0%, #A0A0A0 100%); }
.dot-bronze { background: linear-gradient(135deg, #D4956B 0%, #8B5A2B 100%); }
.dot-color  { background: linear-gradient(135deg, #FF6B35 0%, #4A90E2 50%, #50C878 100%); }

.finish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.finish-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}
.finish-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  background: #fff;
}
.finish-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--secondary);
  position: relative;
}
.finish-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.finish-card:hover .finish-img img { transform: scale(1.06); }
.finish-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.finish-body h4 {
  margin-bottom: .15rem;
  font-size: 1.2rem;
}
.finish-en {
  font-family: 'Prompt', sans-serif;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: .8rem;
  text-transform: uppercase;
}
.finish-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 .9rem;
}
.finish-body p { font-size: .92rem; margin-bottom: .8rem; }
.finish-tip {
  margin-top: auto !important;
  padding-top: .6rem;
  font-size: .85rem !important;
  color: var(--text-mute) !important;
  border-top: 1px dashed var(--border);
}
.finish-tip strong { color: var(--secondary); font-family: 'Prompt', sans-serif; }

/* ===== Techniques section ===== */
.techniques {
  padding: 90px 0;
  background: var(--bg-soft);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.tech-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.tech-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: var(--bg-soft);
}
.tech-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tech-card h3 {
  font-size: 1.15rem;
  margin-bottom: .15rem;
}
.tech-en {
  color: var(--primary);
  font-size: .85rem !important;
  font-weight: 600;
  margin-bottom: .6rem !important;
}
.tech-card p { font-size: .92rem; }

/* ===== Special features section ===== */
.features {
  padding: 90px 0;
  background: #fff;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-item {
  text-align: center;
  padding: 1.6rem 1rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.feature-item:hover {
  background: var(--bg-soft);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-item h4 { margin-bottom: .4rem; font-size: 1.05rem; }
.feature-item p { font-size: .88rem; margin: 0; line-height: 1.5; }

/* ===== Page CTA strip ===== */
.page-cta {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--secondary) 0%, #2A2A4A 100%);
}
.cta-box {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  color: #fff;
}
.cta-box h2 { color: #fff; margin-bottom: .6rem; }
.cta-box p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 1.6rem; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .page-hero { padding: 110px 0 50px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero-visual img { max-width: 280px; }

  .finish-grid,
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .page-hero h1 { font-size: 1.9rem; }
  .page-hero-cta { flex-direction: column; }
  .page-hero-cta .btn { width: 100%; }

  .finish-group-title {
    font-size: 1.2rem;
    flex-wrap: wrap;
  }
  .finish-group-title .group-en {
    margin-left: 0;
    flex-basis: 100%;
  }

  .finish-grid,
  .tech-grid,
  .feature-grid { grid-template-columns: 1fr; }

  .finishes, .techniques, .features { padding: 60px 0; }
}
