/* ==========================================================================
   Service Detail Pages — shared styles
   Depends on: masato.css (loaded first)
   ========================================================================== */

/* === HERO (CSS positioned text over image) === */
.sv-hero {
  position: relative;
  overflow: hidden;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.sv-hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.sv-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 36px 40px;
}
.sv-hero-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  text-shadow: 1px 1px 3px rgba(255,255,255,.9), -1px -1px 3px rgba(255,255,255,.9);
  margin-bottom: 0;
}
.sv-hero-tags {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
  padding: 20px 24px;
  border-radius: var(--radius);
}
.sv-hero-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}
.sv-hero-tag::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: #e85d3a;
  color: #fff;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* === SIMPLE HERO (dark overlay + centered title) === */
.sv-hero-simple {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 270px 24px 250px;
  text-align: center;
  color: var(--white);
}
.sv-hero-simple::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.85);
}
.sv-hero-simple .ms-container {
  position: relative;
  z-index: 1;
}
.sv-hero-simple-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.sv-hero-simple-sub {
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: .2em;
}

/* === BANNER IMAGE === */
.sv-banner {
  width: 100%;
  line-height: 0;
}
.sv-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* === KEY CARDS (below hero banner) === */
.sv-key-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.sv-key-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sv-key-card-icon {
  width: 44px; height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.sv-key-card p {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 768px) {
  .sv-key-cards { grid-template-columns: 1fr; max-width: 400px; }
  .sv-key-card { padding: 24px 16px; }
}

/* === OVERVIEW === */
.sv-overview {
  max-width: 1220px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 2;
  color: #444;
}

/* === SPLIT LAYOUT (image + text side by side) === */
.sv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}
.sv-split--reverse .sv-split-img {
  order: 2;
}
.sv-split--reverse .sv-split-text {
  order: 1;
}
.sv-split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sv-split-img img {
  width: 100%;
  height: auto;
  display: block;
}
.sv-split-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.4;
}
.sv-split-text p {
  font-size: 14.5px;
  line-height: 2;
  color: #444;
}

/* === LABEL TAG === */
.sv-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 3px 10px;
  border: 1px solid var(--gold);
  border-radius: 3px;
}

/* === SPLIT WIDE (image takes more space) === */
.sv-split--wide {
  grid-template-columns: 45% 1fr;
}

/* === SERVICE LIST GRID === */
.sv-services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1220px;
  margin: 0 auto;
}
.sv-service-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.sv-service-icon {
  width: 36px; height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.sv-service-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.sv-service-item p {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}

/* === LIGHT VARIANT === */
.sv-service-item--light {
  background: var(--white);
  border: 1px solid var(--border);
}
.sv-service-item--light h3 {
  color: var(--navy);
}
.sv-service-item--light p {
  color: #555;
}

/* === CTA === */
.sv-cta {
  background: var(--light);
}
.sv-cta-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 20px;
}
.sv-cta-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 14px 48px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: background var(--transition);
}
.sv-cta-btn:hover {
  background: var(--gold);
  color: var(--white);
}

/* === SUB-SECTION HEADERS === */
.sv-sub-header {
  margin-bottom: 32px;
}
.sv-sub-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.sv-sub-header p {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .15em;
}
.sv-sub-header hr {
  width: 40px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin-top: 12px;
}

/* === IMAGE GALLERY (for pages with multiple images) === */
.sv-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.sv-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sv-hero-simple { padding: 80px 24px 60px; }
  .sv-hero-simple-title { font-size: 22px; }
  .sv-hero-overlay { padding: 20px; }
  .sv-hero-title { font-size: 18px; }
  .sv-hero-tags { position: static; transform: none; margin-top: 12px; padding: 12px 16px; }
  .sv-hero-tag { font-size: 12px; }
  .sv-split { grid-template-columns: 1fr; gap: 24px; }
  .sv-split--reverse .sv-split-img { order: 0; }
  .sv-split--reverse .sv-split-text { order: 0; }
  .sv-services-list { grid-template-columns: 1fr; }
  .sv-gallery { grid-template-columns: 1fr 1fr; }
  .sv-gallery img { height: 150px; }
}
