/* ==========================================================================
   SEKOAN — services.css
   Shared styles for all service pages + Who We Are + Our Thinking
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SERVICE HERO (parallax header)
   -------------------------------------------------------------------------- */
.service-hero {
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
}

.service-hero__inner {
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 5rem;
  max-width: 760px;
}

.service-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.service-hero__eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.service-hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.06;
  color: var(--fg-primary);
  margin-bottom: 1.5rem;
}
.service-hero__headline em { font-style: italic; color: var(--accent); }

.service-hero__intro {
  font-size: clamp(0.875rem, 1.2vw, 1.0rem);
  line-height: 1.85;
  color: var(--fg-secondary);
  max-width: 620px;
}

/* --------------------------------------------------------------------------
   2. USE-CASE GRID (AI page)
   -------------------------------------------------------------------------- */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.use-case-box {
  background: var(--bg-core);
  padding: 2.5rem;
  cursor: pointer;
  position: relative;
  transition: background var(--t-mid) var(--ease);
  outline: none;
}

.use-case-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height var(--t-mid) var(--ease);
}

.use-case-box:hover,
.use-case-box.is-active {
  background: var(--bg-surface);
}

.use-case-box.is-active::before { height: 100%; }

.use-case-box__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.use-case-box__icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  flex-shrink: 0;
  transition: color var(--t-fast);
}

.use-case-box__toggle {
  font-size: 1.25rem;
  color: var(--fg-muted);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--t-mid) var(--ease), color var(--t-fast);
}
.use-case-box.is-active .use-case-box__toggle {
  transform: rotate(45deg);
  color: var(--accent);
}

.use-case-box__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--fg-primary);
  margin-bottom: 0.5rem;
}

.use-case-box__tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.use-case-box__detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height var(--t-slow) var(--ease),
    opacity var(--t-mid) var(--ease),
    padding var(--t-mid) var(--ease);
}

.use-case-box.is-active .use-case-box__detail {
  max-height: 500px;
  opacity: 1;
  padding-top: 1.5rem;
}

.use-case-box__desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--fg-secondary);
  margin-bottom: 1.5rem;
}

/* Workflow diagram */
.workflow-diagram {
  margin-top: 1rem;
}

.workflow-diagram__label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.workflow-svg {
  width: 100%;
  overflow: visible;
}

@media (max-width: 768px) {
  .use-case-grid { grid-template-columns: 1fr; }
  /* On mobile, show detail by default (always expanded) */
  .use-case-box__detail {
    max-height: none;
    opacity: 1;
    padding-top: 1rem;
  }
  .use-case-box::before { display: none; }
}

/* --------------------------------------------------------------------------
   3. ADVISORY BARS (Data Advisory page)
   -------------------------------------------------------------------------- */
.advisory-bars {
  border-top: 1px solid var(--border-subtle);
}

.advisory-bar {
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.advisory-bar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.25rem 0;
  cursor: pointer;
  gap: 1.5rem;
  outline: none;
}

.advisory-bar__header:focus-visible {
  outline: 1px solid var(--border-accent);
  outline-offset: 4px;
}

.advisory-bar__number {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--accent);
  width: 2rem;
  flex-shrink: 0;
}

.advisory-bar__title-wrap { flex: 1; }

.advisory-bar__title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 400;
  color: var(--fg-primary);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  transition: color var(--t-fast);
}
.advisory-bar.is-open .advisory-bar__title { color: var(--accent); }

.advisory-bar__subtitle {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
}

.advisory-bar__chevron {
  width: 20px;
  height: 20px;
  color: var(--fg-muted);
  flex-shrink: 0;
  transition: transform var(--t-mid) var(--ease), color var(--t-fast);
}
.advisory-bar.is-open .advisory-bar__chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.advisory-bar__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease);
}
.advisory-bar.is-open .advisory-bar__content { max-height: 700px; }

.advisory-bar__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 2.5rem;
}

.advisory-bar__text p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--fg-secondary);
  margin-bottom: 1rem;
}

.advisory-bar__bullets {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.advisory-bar__bullets li {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  padding-left: 1rem;
  position: relative;
}
.advisory-bar__bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.6rem;
  top: 0.2em;
}

@media (max-width: 768px) {
  .advisory-bar__body { grid-template-columns: 1fr; gap: 2rem; }
}

/* --------------------------------------------------------------------------
   4. INSIGHT CARDS (all service pages + our-thinking)
   -------------------------------------------------------------------------- */
.insights-section { background: var(--bg-core); }

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.insight-card {
  background: var(--bg-core);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: background var(--t-mid) var(--ease);
}
.insight-card:hover { background: var(--bg-surface); }

.insight-card__category { margin-bottom: 1.25rem; }

.insight-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--fg-primary);
  line-height: 1.3;
  margin-bottom: 1rem;
  flex: 1;
}

.insight-card__excerpt {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.insight-card__read-time {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.insight-card__arrow {
  color: var(--accent);
  font-size: 0.875rem;
  transition: transform var(--t-fast);
}
.insight-card:hover .insight-card__arrow { transform: translateX(4px); }

.insight-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.insight-card--link:hover { background: var(--bg-surface); }

.insight-card__source {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .insights-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .insights-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. CONCEPT GALLERY (Website Creation page)
   -------------------------------------------------------------------------- */
.concept-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.concept-card {
  background: var(--bg-core);
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: background var(--t-mid) var(--ease);
}
.concept-card:hover { background: var(--bg-surface); }

.concept-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0;
  pointer-events: none;
}
.concept-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Mini layout blocks inside preview */
.cp-bar  { height: 4px; border-radius: 1px; background: var(--fg-faint); }
.cp-bar--accent { background: var(--accent); width: 40%; }
.cp-bar--wide   { width: 80%; }
.cp-bar--med    { width: 60%; }
.cp-bar--short  { width: 35%; }
.cp-block { flex: 1; background: var(--bg-raised); border-radius: 2px; }
.cp-block--accent { background: var(--accent-dim); border: 1px solid var(--border-accent); }

.concept-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 0.875rem 0.875rem;
  background: linear-gradient(to top, var(--bg-core) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}
.concept-card:hover .concept-card__label { opacity: 1; }

.concept-card__name {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--fg-primary);
  display: block;
  margin-bottom: 0.2rem;
}
.concept-card__hint {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Concept modal */
.concept-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(5,5,6,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid) var(--ease);
}
.concept-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.concept-modal__box {
  background: var(--bg-core);
  border: 1px solid var(--border-subtle);
  max-width: 700px;
  width: 100%;
  padding: 3rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.concept-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 1.1rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--t-fast);
}
.concept-modal__close:hover { color: var(--fg-primary); }

.concept-modal__preview {
  aspect-ratio: 4 / 3;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.concept-modal__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--fg-primary);
  margin-bottom: 0.75rem;
}

.concept-modal__desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--fg-secondary);
}

.concept-disclaimer {
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--fg-faint);
  text-align: center;
  max-width: 500px;
  margin-inline: auto;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .concept-gallery {
    grid-template-columns: repeat(3, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .concept-card { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .concept-gallery { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}

/* --------------------------------------------------------------------------
   6. FEATURED ARTICLE (Website Creation)
   -------------------------------------------------------------------------- */
.featured-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.featured-article__side { }

.featured-article__label { margin-bottom: 1.5rem; }

.featured-article__number {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 300;
  color: var(--fg-faint);
  line-height: 1;
}

.featured-article__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--fg-primary);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.featured-article__title em { font-style: italic; color: var(--accent); }

.featured-article__body {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--fg-secondary);
}
.featured-article__body p + p { margin-top: 1rem; }

@media (max-width: 768px) {
  .featured-article { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
}

/* --------------------------------------------------------------------------
   7. DEVICE MOCKUP (Website Creation)
   -------------------------------------------------------------------------- */
.device-mockup {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0 3rem;
}

.device {
  border: 2px solid var(--border-accent);
  border-radius: 8px;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.device::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 8px,
    rgba(217,113,28,0.03) 8px,
    rgba(217,113,28,0.03) 9px
  );
}

.device--desktop {
  width: 360px;
  height: 220px;
  border-radius: 6px;
}
.device--tablet {
  width: 180px;
  height: 240px;
  border-radius: 12px;
}
.device--mobile {
  width: 100px;
  height: 200px;
  border-radius: 18px;
  border-width: 3px;
}

/* Content blocks inside devices */
.device__bar {
  height: 3px;
  margin: 12px 10px 6px;
  background: var(--border-accent);
  border-radius: 1px;
}
.device__bar--accent { background: var(--accent); width: 50%; }
.device__block {
  height: 20px;
  margin: 6px 10px;
  background: var(--bg-raised);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .device-mockup { flex-direction: column; align-items: center; }
  .device--desktop { width: 280px; height: 170px; }
  .device--tablet, .device--mobile { display: none; }
}

/* --------------------------------------------------------------------------
   8. WHO WE ARE PAGE
   -------------------------------------------------------------------------- */
.who-section {
  padding-block: 6rem;
  border-bottom: 1px solid var(--border-subtle);
}
.who-section:last-of-type { border-bottom: none; }

.who-section--vision   { background: var(--bg-deep); }
.who-section--advantage{ background: var(--bg-core); }
.who-section--vancouver{ background: var(--bg-deep); }

.who-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}
.who-grid--reverse { grid-template-columns: 2fr 1fr; }

.who-label-col { padding-top: 0.5rem; }

.who-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 300;
  color: var(--fg-primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.who-body p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--fg-secondary);
  margin-bottom: 1rem;
}

/* Vancouver dot map */
.vancouver-map {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  max-width: 220px;
  margin-top: 2rem;
}

.map-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-faint);
}
.map-dot--active {
  background: var(--accent);
  box-shadow: 0 0 8px 2px var(--accent-glow);
  animation: orb-pulse 3s ease-in-out infinite;
}

/* Who We Are — profile block (headshot + copy) */
.who-profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 0;
}

.who-profile__image-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.who-profile__image {
  width: 100%;
  display: block;
  border-top: 2px solid var(--accent);
  filter: grayscale(20%) contrast(1.05);
}

.who-profile__copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 300;
  color: var(--fg-primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.who-profile__copy p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--fg-secondary);
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .who-profile {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .who-profile__image-wrap { position: static; }
  .who-profile__image { max-width: 260px; }
}

@media (max-width: 768px) {
  .who-grid, .who-grid--reverse { grid-template-columns: 1fr; gap: 2rem; }
}

/* --------------------------------------------------------------------------
   9. OUR THINKING PAGE
   -------------------------------------------------------------------------- */
.thinking-hero {
  background: var(--bg-deep);
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.thinking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .thinking-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .thinking-grid { grid-template-columns: 1fr; }
}
