/* ═══════════════════════════════════════════════════════
   OLVi+ v7 · theme.css
   Page-specific styles: hero, trust, services, portfolio,
   feature, why, process, team, FAQ, contact, gallery,
   page-hero, footer, responsive
   ═══════════════════════════════════════════════════════ */

/* ── Common section wrappers ── */
.section    { padding: 88px 48px; }
.section-sm { padding: 72px 48px; }
.section-head { margin-bottom: 48px; }
.section-head p { font-size: 15px; color: var(--muted); max-width: 500px; margin-top: 12px; }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}

/* ── Hero (home) ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 62px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 72px 48px;
}
.hero-sub { font-size: 15px; color: var(--muted); max-width: 420px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { position: relative; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute;
  bottom: 36px; left: 36px; right: 36px;
  background: rgba(249, 248, 244, .95);
  backdrop-filter: blur(10px);
  padding: 24px 28px;
  border-left: 3px solid var(--gold);
}
.hero-card strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  color: var(--dark);
  display: block;
  line-height: 1;
}
.hero-card span { font-size: 13px; color: var(--muted); margin-top: 6px; display: block; }

/* ── Trust bar ── */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--dark); }
.trust-item { padding: 22px 28px; border-right: 1px solid rgba(255, 255, 255, .08); }
.trust-item:last-child { border-right: none; }
.trust-n {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.trust-l { font-size: 12px; color: rgba(255, 255, 255, .45); line-height: 1.4; }

/* ── Ecosystem strip ── */
.eco {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 48px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.eco::-webkit-scrollbar { display: none; }
.eco-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  margin-right: 8px;
}
.eco img {
  height: 19px;
  opacity: .3;
  transition: opacity .2s;
  flex-shrink: 0;
  filter: grayscale(1);
}
.eco img:hover { opacity: .65; }

/* ── Services ── */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.srv-card {
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.srv-card-img { aspect-ratio: 3/2; overflow: hidden; position: relative; }
.srv-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.srv-card:hover .srv-card-img img { transform: scale(1.04); }
.srv-card-body { padding: 24px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.srv-num { font-size: 11px; letter-spacing: 2px; color: var(--gold); margin-bottom: 10px; }
.srv-divider { width: 24px; height: 1px; background: var(--gold); margin-bottom: 16px; }
.srv-card h3 { margin-bottom: 10px; }
.srv-card p { font-size: 13px; color: var(--muted); flex: 1; margin-bottom: 16px; }
.srv-link {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line2);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.srv-link:hover { border-color: var(--gold); }
.srv-link::after { content: ''; position: absolute; inset: 0; }

/* ── Portfolio ── */
.port-bg { background: var(--bg2); }
.port-grid {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
}
.port-cell { overflow: hidden; position: relative; cursor: pointer; background: var(--bg3); }
.port-cell:nth-child(1) { grid-row: span 2; }
.port-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.port-cell:hover img { transform: scale(1.04); }
.port-tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(24, 23, 14, .75));
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}

/* ── Feature banner ── */
.feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.feature-img { overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-body {
  background: var(--dark);
  padding: 72px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-body .eyebrow { color: var(--gold); }
.feature-body h2 { color: #fff; margin-bottom: 20px; }
.feature-body p { font-size: 15px; color: rgba(255, 255, 255, .5); line-height: 1.8; margin-bottom: 36px; }

/* ── Why us ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.why-card { background: var(--bg); padding: 44px 40px; position: relative; }
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 40px; right: 40px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.why-card:hover::after { transform: scaleX(1); }
.why-icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 20px; flex-shrink: 0; }
.why-card h3 { margin-bottom: 12px; }
.why-card p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ── Process ── */
.proc-bg { background: var(--bg2); }
.faq-bg  { background: var(--bg2); }
.proc-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 48px;
}
.proc-step {
  background: var(--bg2);
  padding: 32px 24px 36px;
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--gold);
}
.proc-ico { width: 48px; height: 48px; color: var(--gold); margin-bottom: 20px; flex-shrink: 0; }
.proc-n {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-lite);
  margin-bottom: 14px;
}
.proc-step h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
}
.proc-step p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── Team ── */
.team-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.team-card { text-align: center; }
.team-ava {
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 1px solid var(--line2);
}
.team-ava img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; margin-bottom: 4px; }
.team-role { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }

/* ── FAQ ── */
.faq-list { border: 1px solid var(--line); margin-top: 48px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  padding: 20px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .2s;
  user-select: none;
}
.faq-q:hover { color: var(--gold); }
.faq-q .serif { font-size: 16px; }
.faq-ico { font-size: 20px; color: var(--gold); flex-shrink: 0; line-height: 1; font-style: normal; transition: transform .2s; }
.faq-item.open .faq-ico { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 28px 18px; font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 740px; }
.faq-item.open .faq-a { display: block; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; }
.contact-copy { padding: 72px 60px 72px 48px; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy > p { font-size: 15px; color: var(--muted); margin-bottom: 36px; }
.c-phone {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  color: var(--gold);
  display: block;
  margin-bottom: 24px;
}
.c-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.c-btn {
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--muted);
  transition: all .2s;
}
.c-btn:hover { border-color: var(--gold); color: var(--gold); }
.c-addr { font-size: 13px; color: var(--faint); line-height: 1.7; }
.contact-map { position: relative; overflow: hidden; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.contact-map-cta { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.contact-map-cta a {
  background: var(--dark);
  color: var(--bg);
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: background .2s;
}
.contact-map-cta a:hover { background: var(--gold); }

/* ── Footer ── */
footer {
  background: var(--dark);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.foot-logo { font-size: 15px; letter-spacing: 4px; color: rgba(255, 255, 255, .55); }
.foot-logo span { color: var(--gold); opacity: 1; }
.foot-mid { font-size: 12px; color: rgba(255, 255, 255, .28); text-align: center; }
.foot-right { font-size: 12px; color: rgba(255, 255, 255, .28); }
.foot-right a { color: rgba(255, 255, 255, .28); text-decoration: underline; }

/* ── Page Hero (service pages) ── */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 62px; /* offset fixed nav */
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(24, 23, 14, .45) 0%, rgba(24, 23, 14, .82) 100%);
}
.page-hero-body {
  position: relative;
  z-index: 1;
  padding: 52px 48px;
  color: #fff;
  max-width: 780px;
}
.page-hero-body .eyebrow { color: var(--gold); }
.page-hero-body h1 { color: #fff; margin-bottom: 12px; }
.page-hero-body .hero-sub { font-size: 15px; color: rgba(255, 255, 255, .7); max-width: 520px; }

/* ── Page content wrap (service pages) ── */
.page-wrap { max-width: 980px; margin: 0 auto; padding: 64px 48px; }
.page-wrap h2 { margin-bottom: 12px; margin-top: 48px; }
.page-wrap h2:first-child { margin-top: 0; }
.page-wrap h3 { margin-bottom: 10px; margin-top: 32px; color: var(--dark2); }
.page-wrap p  { color: var(--muted); margin-bottom: 16px; }
.page-wrap ul, .page-wrap ol { color: var(--muted); padding-left: 22px; margin-bottom: 16px; }
.page-wrap li { margin-bottom: 6px; line-height: 1.7; }

/* ── Gallery (GLightbox) ── */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 40px 0;
}
.gallery a {
  flex: 1;
  margin: 10px;
  min-width: calc(33.33% - 20px);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.gallery a::before {
  content: "";
  display: block;
  padding-top: 66.7%;
}
.gallery a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.3s, filter 0.3s;
}
.gallery a:hover img {
  transform: scale(1.2);
  filter: brightness(1.2);
}
.gslide-image img { object-fit: contain !important; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .srv-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  /* hero */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 88px 20px 48px; }
  .hero-sub { max-width: 100%; }
  .hero-img { min-height: 56vw; }
  .hero-card { left: 20px; right: 20px; bottom: 20px; }

  /* trust */
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3) { border-right: 1px solid rgba(255, 255, 255, .08); }
  .trust-item:last-child { border-right: none; border-bottom: none; }

  .eco { padding: 16px 20px; gap: 20px; }

  .section    { padding: 64px 20px; }
  .section-sm { padding: 52px 20px; }

  .srv-grid { grid-template-columns: 1fr; }

  .port-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .port-cell:nth-child(1) { grid-row: span 1; }

  .feature { grid-template-columns: 1fr; }
  .feature-img { min-height: 52vw; }
  .feature-body { padding: 48px 20px; }

  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 36px 20px; }
  .why-card::after { left: 20px; right: 20px; }

  .proc-list { grid-template-columns: 1fr 1fr; }

  .team-row { grid-template-columns: 1fr; gap: 28px; max-width: 340px; margin-left: auto; margin-right: auto; }
  .team-card { display: flex; gap: 20px; align-items: center; text-align: left; }
  .team-ava { flex-shrink: 0; margin: 0; }

  .faq-q .serif { font-size: 14px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { padding: 52px 20px; }
  .contact-map { min-height: 52vw; }

  footer { padding: 24px 20px; flex-direction: column; text-align: center; gap: 8px; }

  .section-head-row { flex-direction: column; align-items: flex-start; }

  .page-hero-body { padding: 40px 20px; }
  .page-wrap { padding: 48px 20px; }
  .gallery a { min-width: calc(50% - 20px); }
}

@media (max-width: 480px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .srv-grid { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .port-cell { min-height: 200px; }
  .port-cell:nth-child(1) { grid-row: span 1; }
  .proc-list { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; }
  .contact-copy { padding: 44px 20px 0; }
  .gallery a { min-width: calc(100% - 20px); }
}
