/* ==========================================================================
   PREMIUM DESIGN SYSTEM — Elzey Hukuk
   Refined reveals, team side-by-side layout, countUp, subtle luxury
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TEAM GRID (ALWAYS 2 COLUMNS SIDE-BY-SIDE ON DESKTOP / TABLET)
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 36px !important;
  max-width: 1160px !important;
  margin: 0 auto !important;
  width: 100% !important;
  align-items: stretch !important;
}

.team-card {
  background: #FAF7F2 !important;
  border: 1px solid rgba(140, 110, 63, 0.32) !important;
  border-radius: 8px !important;
  padding: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(70, 50, 20, 0.04) !important;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background .35s ease !important;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep, #70552D), var(--gold, #8C6E3F), #C4A265);
}

.team-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--gold, #8C6E3F) !important;
  box-shadow: 0 16px 36px rgba(140, 110, 63, 0.15) !important;
  background: #FFFFFF !important;
}

.team-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 22px;
  background: #141311;
  border: 1px solid rgba(140, 110, 63, 0.25);
}

.team-img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center 15% !important;
  filter: sepia(0.06) contrast(1.04) !important;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1), filter .5s ease !important;
  display: block !important;
  margin-bottom: 0 !important;
}

.team-card:hover .team-img {
  transform: scale(1.03) !important;
  filter: sepia(0) contrast(1.06) !important;
}

.team-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 19, 17, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FAF7F2;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(140, 110, 63, 0.4);
  z-index: 2;
}

.team-name {
  font-family: var(--font-display, 'Cormorant Garamond', serif) !important;
  font-weight: 600 !important;
  font-size: 30px !important;
  line-height: 1.15 !important;
  color: var(--ink, #141311) !important;
  margin-bottom: 6px !important;
}

.team-role {
  font-size: 13px !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: var(--gold-deep, #70552D) !important;
  font-weight: 600 !important;
  margin-bottom: 14px !important;
}

.team-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(140, 110, 63, 0.16);
}

.team-pill {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(140, 110, 63, 0.08);
  border: 1px solid rgba(140, 110, 63, 0.22);
  border-radius: 4px;
  color: var(--ink-soft, #38342E);
  font-weight: 500;
}

.team-bio {
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: var(--ink-soft, #38342E) !important;
  margin-bottom: 20px !important;
  text-align: justify;
}

.team-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(140, 110, 63, 0.16);
}

.team-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep, #70552D);
  transition: color .25s, gap .25s;
  text-decoration: none;
}

.team-contact-btn:hover {
  color: var(--gold, #8C6E3F);
  gap: 12px;
}

/* Mobile: single column only on small phone screens (<680px) */
@media (max-width: 680px) {
  .team-grid {
    grid-template-columns: 1fr !important;
    max-width: 480px !important;
    gap: 28px !important;
  }
}

/* --------------------------------------------------------------------------
   1b. BLOG GRID (ALWAYS 3 COLUMNS SIDE-BY-SIDE ON DESKTOP & LAPTOP)
   -------------------------------------------------------------------------- */
.blog-grid,
.blog-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  width: 100% !important;
  align-items: stretch !important;
}

.blog-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: var(--bone, #F5EFE6) !important;
  border: 1px solid rgba(184, 153, 104, 0.28) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background .3s ease !important;
  grid-column: auto !important;
}

.blog-card:hover {
  transform: translateY(-5px) !important;
  border-color: var(--gold, #8C6E3F) !important;
  box-shadow: 0 16px 36px rgba(184, 153, 104, 0.18) !important;
  background: #FFFFFF !important;
}

.blog-card-img-wrap {
  width: 100% !important;
  height: 190px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-bottom: 16px !important;
  background: var(--ink, #141311) !important;
}

.blog-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.blog-card-excerpt {
  margin-bottom: 16px !important;
  flex-grow: 1 !important;
}

.blog-card-action {
  margin-top: auto !important;
}

/* Tablet screens (down to 820px): keep 3 columns */
@media (max-width: 1024px) {
  .blog-grid,
  .blog-list {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 18px !important;
  }
  .blog-card {
    padding: 16px !important;
  }
  .blog-card-img-wrap {
    height: 160px !important;
  }
}

/* Small tablets (601px - 820px): 2 columns */
@media (max-width: 820px) {
  .blog-grid,
  .blog-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
}

/* Phones only (<600px): 1 column */
@media (max-width: 600px) {
  .blog-grid,
  .blog-list {
    grid-template-columns: 1fr !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    gap: 20px !important;
  }
}

/* --------------------------------------------------------------------------
   2. REFINED SCROLL REVEAL (Subtle, dignified vertical rise)
   -------------------------------------------------------------------------- */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s cubic-bezier(0.16, 1, 0.3, 1),
              transform .75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.in,
.reveal-left.in,
.reveal-right.in,
.reveal-scale.in,
.reveal-rise.in {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   3. STAGGER DELAYS
   -------------------------------------------------------------------------- */
.stagger-1 { transition-delay: .06s !important; }
.stagger-2 { transition-delay: .12s !important; }
.stagger-3 { transition-delay: .18s !important; }
.stagger-4 { transition-delay: .24s !important; }
.stagger-5 { transition-delay: .30s !important; }
.stagger-6 { transition-delay: .36s !important; }

/* --------------------------------------------------------------------------
   4. EYEBROW ACCENT ANIMATION
   -------------------------------------------------------------------------- */
.eyebrow-anim {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1),
              transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}
.eyebrow-anim.in {
  opacity: 1;
  transform: translateY(0);
}
.eyebrow-anim::before {
  width: 0 !important;
  transition: width .5s cubic-bezier(0.16, 1, 0.3, 1) .15s !important;
}
.eyebrow-anim.in::before {
  width: 32px !important;
}

/* --------------------------------------------------------------------------
   5. COUNTUP NUMBER STYLES
   -------------------------------------------------------------------------- */
.countup-target {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  will-change: contents;
}

@keyframes countGlow {
  0% { text-shadow: none; }
  50% { text-shadow: 0 0 24px rgba(140, 110, 63, 0.3); }
  100% { text-shadow: none; }
}

.countup-done {
  animation: countGlow .8s ease-out forwards;
}

/* --------------------------------------------------------------------------
   6. CTA SHIMMER
   -------------------------------------------------------------------------- */
@keyframes shimmerGold {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-gold {
  background: linear-gradient(
    90deg,
    var(--gold-deep, #70552D) 0%,
    var(--gold, #8C6E3F) 25%,
    #C4A265 50%,
    var(--gold, #8C6E3F) 75%,
    var(--gold-deep, #70552D) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerGold 3.5s linear infinite;
}

/* --------------------------------------------------------------------------
   7. ACCESSIBILITY
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-rise,
  .eyebrow-anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   8. PURE HORIZONTAL PINNED SECTION TRANSITION (BLOG & QUICK CONSULTATION)
   -------------------------------------------------------------------------- */
html, body {
  overflow-x: clip !important;
}

.h-rail-track {
  position: relative;
  width: 100%;
  height: 260vh;
  background: var(--bone, #F5EFE6);
}

.h-rail-pin {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: block;
  background: var(--bone, #F5EFE6);
  box-sizing: border-box;
  z-index: 15;
}

.h-rail-slides {
  display: flex;
  flex-direction: row;
  width: 200vw;
  min-width: 200vw;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.h-rail-panel {
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  flex: 0 0 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 40px 0 20px;
  position: relative;
}

.h-rail-panel .container {
  width: 100%;
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 0 24px;
}

/* Panel 1: Blog Grid 3 columns side-by-side */
.panel-blog .blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  align-items: stretch;
}

.panel-blog .blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 8px);
  padding: 18px;
  transition: transform var(--speed-normal) var(--ease), box-shadow var(--speed-normal) var(--ease), border-color var(--speed-normal) var(--ease);
}

.panel-blog .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(18, 17, 16, 0.08);
  border-color: var(--gold-soft);
}

.panel-blog .blog-card-img-wrap {
  height: 155px;
  overflow: hidden;
  border-radius: var(--radius-sm, 4px);
  margin-bottom: 12px;
}

.panel-blog .blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--speed-slow) var(--ease);
}

.panel-blog .blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.panel-blog .blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-deep);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-blog .blog-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
}

.panel-blog .blog-card-excerpt {
  font-size: 13px;
  line-height: 1.45;
  color: var(--mist);
  margin-bottom: 12px;
  flex-grow: 1;
}

.panel-blog .blog-card-action {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap var(--speed-fast) var(--ease);
}

.panel-blog .blog-card:hover .blog-card-action {
  gap: 10px;
  color: var(--gold);
}

/* Panel 2: Quick Consultation Form */
.panel-consult .quick-consult-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: #1B1A17;
  border: 1px solid rgba(184, 153, 104, 0.4);
  border-radius: var(--radius-lg, 12px);
  padding: 32px 38px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  color: var(--bone);
}

.panel-consult .section-head .eyebrow {
  color: var(--gold-soft) !important;
}

.panel-consult .section-head .section-title {
  color: #FAF7F2 !important;
}

.panel-consult .section-head .section-title em {
  color: #D4AF37 !important;
  font-style: italic;
}

.panel-consult .section-head p {
  color: rgba(245, 239, 230, 0.85) !important;
}

.panel-consult label {
  color: var(--gold-soft) !important;
}

.panel-consult input,
.panel-consult select {
  background: #252320 !important;
  border: 1px solid rgba(184, 153, 104, 0.35) !important;
  color: #FFFFFF !important;
}

.panel-consult input::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

.panel-consult .quick-consult-form {
  margin-top: 20px;
}

/* Bottom Progress Track (subtle line) */
.h-rail-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(140, 110, 63, 0.15);
  z-index: 10;
}

.h-rail-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  will-change: width;
}

/* Responsive Fallback: On mobile (<= 860px), stack normally without horizontal translate */
@media (max-width: 860px) {
  .h-rail-track {
    height: auto !important;
    background: transparent;
  }
  .h-rail-pin {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    background: transparent !important;
  }
  .h-rail-slides {
    display: block !important;
    width: 100% !important;
    transform: none !important;
  }
  .h-rail-panel {
    width: 100% !important;
    height: auto !important;
    padding: 60px 0 !important;
  }
  .panel-blog .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .panel-consult .quick-consult-wrap {
    padding: 24px 18px !important;
  }
  .h-rail-progress-line {
    display: none !important;
  }
}

