/* ============================================================
   SERVICES PAGE — css/services.css
   Styles specific to services.html
   ============================================================ */

/* ── TAB LAYOUT ── */
#services-tab {
  background: var(--charcoal);
  padding: 6rem 0;
}

#services-tab .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
}

#services-tab .section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 2rem;
}

#services-tab .section-intro h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.15;
}

#services-tab .section-intro h2 em {
  font-style: italic;
  color: var(--gold-light, #d4b97b);
}

#services-tab .section-intro p {
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(245,240,232,0.45);
  max-width: 340px;
  text-align: right;
}

/* ── TAB CONTAINER ── */
.tab-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 580px;
  gap: 0;
}

/* Left list — editorial index */
.tab-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
  border-right: 1px solid rgba(196,169,107,0.12);
}

.tab-btn {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.75rem 2rem 0.75rem 0;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 70%;
  background: var(--gold);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.tab-btn.active::after { transform: translateY(-50%) scaleY(1); }

.tab-btn-num {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  min-width: 26px;
  opacity: 0.5;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.tab-btn.active .tab-btn-num,
.tab-btn:hover .tab-btn-num { opacity: 1; }

.tab-btn-name {
  font-family: var(--ff-display);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 300;
  color: rgba(245,240,232,0.3);
  line-height: 1.3;
  transition: color 0.3s, font-size 0.3s;
  letter-spacing: 0.01em;
}

.tab-btn:hover .tab-btn-name { color: rgba(245,240,232,0.7); }

.tab-btn.active .tab-btn-name {
  color: var(--cream);
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
}

/* ── TAB PANELS ── */
.tab-panels { position: relative; overflow: hidden; }

.tab-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.tab-panel.active { display: grid; }

.panel-img {
  overflow: hidden;
  position: relative;
}

.panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.tab-panel:hover .panel-img img { transform: scale(1.04); }

.panel-body {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}

.panel-tag {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.panel-title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 0;
}

.panel-title em { font-style: italic; color: var(--gold-light, #d4b97b); }

.panel-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 1.2rem 0;
}

.panel-desc {
  font-size: 0.8rem;
  line-height: 1.9;
  color: rgba(245,240,232,0.5);
  margin-bottom: 1.5rem;
}

.panel-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.panel-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.76rem;
  color: rgba(245,240,232,0.7);
}

.panel-feature::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.panel-cta {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.67rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
  transition: background 0.3s, color 0.3s;
}

.panel-cta:hover { background: var(--gold); color: var(--charcoal); }

/* ── WHY CHOOSE US ── */
#why-svc { background: var(--charcoal); }
#why-svc .section-title { color: var(--cream); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--border);
  margin-top: 4rem;
}

.why-card {
  background: var(--card-bg);
  padding: 3rem 2rem;
  text-align: center;
  transition: background 0.4s;
}

.why-card:hover { background: var(--card-hover); }
.why-card-icon { display: block; margin-bottom: 1rem; color: var(--gold); }
.why-card-title { font-family: var(--ff-display); font-size: 1.1rem; color: var(--gold); margin-bottom: 0.7rem; }
.why-card-desc { font-size: 0.77rem; line-height: 1.8; color: rgba(245,240,232,0.4); }

/* ── RESPONSIVE — SERVICES ── */
@media (max-width: 1024px) {
  .tab-shell { grid-template-columns: 260px 1fr; }
}

@media (max-width: 900px) {
  .tab-shell { grid-template-columns: 1fr; }
  .tab-list {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid rgba(196,169,107,0.15);
  }
  .tab-btn {
    flex: 1 1 auto;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-right: 1px solid rgba(196,169,107,0.08);
    justify-content: center;
    text-align: center;
    padding: 0.8rem 1rem;
    flex-direction: column;
    gap: 0.3rem;
  }
  .tab-btn.active { border-bottom-color: var(--gold); }
  .tab-btn-name { font-size: 0.7rem; }
  .tab-panel.active { grid-template-columns: 1fr; }
  .panel-img { height: 260px; }
  .panel-body { padding: 2.5rem 1.5rem; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  #services-tab .section-intro { flex-direction: column; align-items: flex-start; }
  #services-tab .section-intro p { text-align: left; }
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .tab-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-btn {
    flex: 0 0 auto;
    min-width: 110px;
    padding: 0.8rem 0.7rem;
  }
  .tab-btn-name { display: block; font-size: 0.58rem; letter-spacing: 0.04em; }
}

@media (max-width: 480px) {
  .panel-body { padding: 2rem 1rem; }
  .panel-title { font-size: 1.2rem; }
  .panel-desc { font-size: 0.75rem; }
  .tab-btn { min-width: 90px; padding: 0.7rem 0.5rem; }
  #services-tab .section-intro h2 { font-size: 1.6rem; }
  .why-card { padding: 2rem 1.2rem; }
}
