/* Loaded after base.css.
   Re-colours the site in the Trivane logo's palette: deep navy and teal.
   Every component in style.css reads these variables, so changing them
   here changes this page and nothing else. */

body.theme-trivane {
  /* "rust" is the site's main brand colour -> Trivane navy */
  --rust: #0c2350;
  --rust-deep: #071636;
  --rust-tint: #e3e8f1;
  /* "orange" is the action colour -> Trivane teal */
  --orange: #0a8ca8;
  --orange-dark: #077289;
  --orange-tint: #e1f3f7;
  /* second accent -> a mid blue between the two */
  --green: #1f4e8c;
  --green-dark: #173c6d;
  --green-tint: #e5edf8;

  --blush: #eef4fa;
  --blush-deep: #d6e3f0;
  --peach: #8fd0de;

  --cream: #f7fafd;
  --ink: #0f1b2d;
  --ink-soft: #44536a;
  --muted: #6b7a90;
  --line: #e1e8f0;

  --shadow: 0 18px 40px -22px rgba(7, 22, 54, .35);
  --shadow-sm: 0 8px 20px -14px rgba(7, 22, 54, .35);
}

/* Colours style.css writes directly rather than through a variable. */
.theme-trivane .site-header { background: rgba(247, 250, 253, .92); }
.theme-trivane .site-header.scrolled { box-shadow: 0 6px 20px -18px rgba(7, 22, 54, .6); }
.theme-trivane .field input:focus,
.theme-trivane .field select:focus,
.theme-trivane .field textarea:focus { box-shadow: 0 0 0 4px rgba(10, 140, 168, .15); }
.theme-trivane .site-footer { color: #c9d4e6; }
.theme-trivane .cta-band { background: linear-gradient(120deg, var(--rust), var(--orange-dark)); }

/* ---------------------------------------------------------------- hero */
.company-hero {
  position: relative; color: #fff; padding: 96px 0 104px; text-align: left;
  background: linear-gradient(180deg, rgba(7, 22, 54, .62), rgba(7, 22, 54, .9)),
              url("../assets/trivane_hero.jpg") center / cover no-repeat, var(--rust-deep);
}
.company-hero-inner { display: flex; justify-content: flex-start; }
.company-logo {
  width: min(380px, 86%); margin: 0; padding: 6px 14px; border-radius: var(--radius);
  background: #fff; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
}
/* The logo file has wide white margins; crop to the mark and the name. */
.company-logo img { width: 100%; height: auto; aspect-ratio: 1536 / 520; object-fit: cover; }

/* ---------------------------------------------------------------- sections */
.company-photo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.company-values { background: var(--cream); padding: 64px 0; }
/* Three facts: one row of three, stacked on phones. */
.company-values .stats { margin-top: 0; grid-template-columns: repeat(3, 1fr); }
.company-values .stats li { border-top: 0; }
.company-values .stats li + li { border-left: 1px solid var(--blush-deep); }
@media (max-width: 600px) {
  .company-values .stats { grid-template-columns: 1fr; }
  .company-values .stats li + li { border-left: 0; border-top: 1px solid var(--blush-deep); }
}

/* ---------------------------------------------------------------- leadership */
.leaders { background: var(--blush); }
.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.leader-card {
  padding: 34px 28px 30px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); text-align: center; transition: transform .2s, box-shadow .2s;
}
.leader-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* Photo circle: shows the initial until a photo is added. */
.leader-photo {
  width: 132px; height: 132px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; padding: 5px; background: #fff;
  border: 2px solid var(--peach); box-shadow: var(--shadow-sm);
}
.leader-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.leader-initial {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--rust), var(--orange));
}
.leader-role {
  margin: 0 0 4px; font-weight: 700; font-size: .8rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange-dark);
}
.leader-card h3 { font-size: 1.4rem; margin-bottom: 16px; }
.leader-points {
  list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line);
  display: grid; gap: 10px; text-align: left;
}
.leader-points li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: .97rem; line-height: 1.5; }
.leader-points li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--orange);
}

/* ---------------------------------------------------------------- how we work */
/* Eight steps, four to a row, joined by a dashed line with an arrow head. */
.approach { background: var(--white); }
.approach-path {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 36px;
}
.approach-step {
  position: relative; padding: 30px 22px 24px; border-radius: var(--radius);
  background: var(--cream); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.approach-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.approach-step h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.approach-step p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.approach-num {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1;
  color: var(--blush-deep);
}
/* connector to the next step */
.approach-step:not(:last-child)::after {
  content: ""; position: absolute; top: 53px; right: -36px; width: 36px;
  border-top: 2px dashed var(--orange);
}
.approach-step:not(:last-child)::before {
  content: ""; position: absolute; top: 48px; right: -38px;
  border: 6px solid transparent; border-left: 8px solid var(--orange); border-right: 0;
}
.approach-step:nth-child(4n)::after, .approach-step:nth-child(4n)::before { display: none; }

/* ---------------------------------------------------------------- why choose us */
.why { color: #fff; background: linear-gradient(135deg, var(--rust-deep), var(--rust) 60%, #0d3a66); }
.why h2, .why h3 { color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  padding: 28px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
  transition: background .2s, transform .2s;
}
.why-card:hover { background: rgba(255, 255, 255, .11); transform: translateY(-3px); }
.why-card .i { width: 30px; height: 30px; color: var(--peach); margin-bottom: 12px; }
.why-card p { margin: 0; color: rgba(255, 255, 255, .82); }

@media (max-width: 1040px) {
  .approach-path { grid-template-columns: repeat(2, 1fr); }
  .approach-step:nth-child(4n)::after, .approach-step:nth-child(4n)::before { display: block; }
  .approach-step:nth-child(2n)::after, .approach-step:nth-child(2n)::before { display: none; }
}

@media (max-width: 900px) {
  .leader-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .company-hero { padding: 64px 0 72px; }
  .leader-grid, .why-grid { grid-template-columns: 1fr; }
  /* one column: the connector runs down to the next step */
  .approach-path { grid-template-columns: 1fr; gap: 36px; }
  .approach-step:not(:last-child)::after,
  .approach-step:nth-child(2n):not(:last-child)::after {
    display: block; top: auto; bottom: -36px; right: auto; left: 46px; width: 0; height: 36px;
    border-top: 0; border-left: 2px dashed var(--orange);
  }
  .approach-step:not(:last-child)::before,
  .approach-step:nth-child(2n):not(:last-child)::before {
    display: block; top: auto; bottom: -38px; right: auto; left: 41px;
    border: 6px solid transparent; border-top: 8px solid var(--orange); border-bottom: 0;
  }
}

/* ---------------------------------------------------------------- header and footer logo */
.theme-trivane .brand .brand-trivane {
  width: 150px; height: auto; aspect-ratio: 1536 / 520; object-fit: cover;
  mix-blend-mode: multiply; /* drops the logo file's white background */
}
/* The footer is dark, so the logo sits on a white tile there. */
.theme-trivane .brand .footer-logo { mix-blend-mode: normal; background: #fff; border-radius: 10px; padding: 4px 10px; }
@media (max-width: 600px) {
  .theme-trivane .brand .brand-trivane { width: 120px; }
}

/* ---------------------------------------------------------------- splash screen */
/* White, like the logo's own background. The logo rises in, a teal bar
   fills under it, then the whole screen fades away — no script needed. */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: #fff;
  animation: splash-out .5s ease 1.6s forwards;
}
.splash img {
  width: min(420px, 78vw); height: auto; aspect-ratio: 1536 / 560; object-fit: cover;
  animation: splash-in .7s cubic-bezier(.2, .8, .2, 1) both;
}
.splash-bar {
  width: min(220px, 50vw); height: 3px; border-radius: 3px; overflow: hidden;
  background: var(--line);
}
.splash-bar::after {
  content: ""; display: block; height: 100%; width: 100%; background: var(--orange);
  transform-origin: left; animation: splash-fill 1.3s ease .2s both;
}
@keyframes splash-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes splash-fill { from { transform: scaleX(0); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
.splash-seen .splash { display: none; }
@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
}

/* About: 3 x 2 grid of highlight cards. The three colours rotate so
   neighbouring cards never match. */
.point-grid {
  list-style: none; margin: 48px 0 0; padding: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  border-radius: var(--radius);
  /* navy panel with a soft teal glow so the light cards stand out */
  background:
    radial-gradient(circle at 85% 0%, rgba(10, 140, 168, .35), transparent 55%),
    linear-gradient(135deg, var(--rust), var(--rust-deep));
  box-shadow: var(--shadow);
}
.point {
  padding: 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s;
}
.point:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .5); }
.point .tile { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 12px; color: #fff; }
.point strong { display: block; font-family: var(--font-head); font-size: 1.02rem; line-height: 1.3; margin-bottom: 4px; }
.point p { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--ink-soft); }
.point-green  { background: var(--green-tint);  border-color: color-mix(in srgb, var(--green) 18%, transparent); }
.point-orange { background: var(--orange-tint); border-color: color-mix(in srgb, var(--orange) 18%, transparent); }
.point-rust   { background: var(--rust-tint);   border-color: color-mix(in srgb, var(--rust) 18%, transparent); }
.point-green .tile  { background: var(--green); }
.point-orange .tile { background: var(--orange); }
.point-rust .tile   { background: var(--rust); }
@media (max-width: 900px) {
  .point-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .point-grid { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
}

/* Protean (group company): copy on the left, navy facts card on the right. */
.protean { background: var(--cream); }
.protean .btn { margin-top: 8px; }
.protean-facts {
  list-style: none; margin: 0; padding: 32px; display: grid; gap: 22px;
  border-radius: var(--radius); color: #fff; box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 85% 0%, rgba(10, 140, 168, .35), transparent 55%),
    linear-gradient(135deg, var(--rust), var(--rust-deep));
}
.protean-facts li { display: flex; gap: 16px; align-items: center; }
.protean-facts .tile { width: 46px; height: 46px; border-radius: 12px; background: var(--orange); color: #fff; }
.protean-facts strong { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.25; }
.protean-facts span:not(.tile) { color: #c9d4e6; font-size: .95rem; }
@media (max-width: 520px) {
  .protean-facts { padding: 22px; }
}
.protean-logo {
  display: inline-block; margin-bottom: 20px; padding: 6px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
/* the PNG has wide empty margins, so crop in a little */
.protean-logo img { height: 110px; width: auto; object-fit: cover; aspect-ratio: 390 / 230; }

/* Mama & Papa (our product). Switches back to the app's own warm palette
   inside this section, so it feels like the product, not the company. */
.mamapapa {
  --rust: #8e3519; --rust-tint: #f3ddd4;
  --orange: #d9592e; --orange-dark: #bf4a21; --orange-tint: #fbe3d8;
  --green: #0f6e58; --green-tint: #dcefe9;
  --ink-soft: #5d4a41; --line: #efe1d8;
  background: linear-gradient(180deg, #fdf3ee, #fbece6);
}
.mamapapa h2, .mamapapa .kicker { color: var(--rust); }
.mp-logo {
  justify-self: center; display: block; width: min(360px, 100%);
  padding: 18px; background: #fffdfb; border-radius: 28px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(90, 34, 16, .35);
}
.mp-logo img { width: 100%; height: auto; }

.mp-title { margin: 64px 0 24px; font-size: 1.5rem; color: var(--rust); }
.mp-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.mp-steps li { padding: 24px 22px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.mp-num {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px;
  border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--font-head); font-weight: 700;
}
.mp-steps strong { display: block; font-family: var(--font-head); font-size: 1.08rem; margin-bottom: 6px; }
.mp-steps p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }

.mp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.mp-card { padding: 26px 24px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.mp-card .tile { margin-bottom: 14px; }
.mp-card h3 { color: var(--rust); }
.mp-card p, .mp-card li { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.mp-card p { margin: 0; }
.mp-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.mp-card li::marker { color: var(--orange); }

@media (max-width: 900px) {
  .mp-steps { grid-template-columns: 1fr 1fr; }
  .mp-cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .mp-steps { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- services */
/* Service explorer: numbered list on the left, one detail panel on the right.
   Auto-advances: the active tab's bar fills, and when its animation ends
   main.js moves to the next tab. Hover pauses it. */
.services {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(10, 140, 168, .28), transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(31, 78, 140, .45), transparent 45%),
    linear-gradient(160deg, var(--rust-deep), var(--rust));
}
.services .section-head h2 { color: #fff; }
.services .section-head .sub { color: rgba(255, 255, 255, .8); }

.svc-explorer { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: stretch; }

.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.svc-tab {
  position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 15px 18px; border: 1px solid transparent; border-radius: 14px; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, .7); font: inherit; text-align: left;
  transition: background .3s, color .3s, border-color .3s, padding .3s;
}
.svc-tab:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.svc-tab[aria-selected="true"] {
  color: #fff; padding-left: 24px;
  background: rgba(255, 255, 255, .1); border-color: rgba(143, 208, 222, .35);
}
.svc-num {
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: 1px;
  color: #8fd0de; opacity: .7; transition: opacity .3s;
}
.svc-tab[aria-selected="true"] .svc-num { opacity: 1; }
.svc-name { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.svc-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, #8fd0de, var(--orange));
  transform: scaleX(0); transform-origin: left;
}
.svc-tab[aria-selected="true"] .svc-progress { animation: svc-fill 6s linear forwards; }
.svc-explorer:hover .svc-progress,
.svc-explorer:focus-within .svc-progress { animation-play-state: paused; }
.svc-explorer.stopped .svc-progress { animation: none; }

.svc-stage { position: relative; display: grid; gap: 20px; }
/* panels share one cell (only one shows at a time) once JS is running */
.js .svc-panel { grid-area: 1 / 1; }
.svc-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center;
  padding: 44px 44px 40px; border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.svc-panel[hidden] { display: none; }
.svc-panel:not([hidden]) { animation: svc-in .7s cubic-bezier(.16, 1, .3, 1) both; }
.svc-watermark {
  position: absolute; right: 24px; bottom: -40px; pointer-events: none;
  font-family: var(--font-head); font-weight: 700; font-size: 11rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(143, 208, 222, .18);
}

/* icon in the middle of two spinning orbits */
.svc-orb { position: relative; width: 220px; aspect-ratio: 1; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(143, 208, 222, .45); }
.orbit.o1 { inset: 0; animation: spin 18s linear infinite; }
.orbit.o2 { inset: 30px; border-style: solid; border-color: rgba(255, 255, 255, .14); animation: spin 12s linear infinite reverse; }
.orbit::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: #8fd0de; box-shadow: 0 0 14px #8fd0de;
}
.orbit.o2::before { background: var(--orange); box-shadow: 0 0 14px var(--orange); width: 9px; height: 9px; top: -4.5px; margin-left: -4.5px; }
.svc-core {
  width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--green)); color: #fff;
  box-shadow: 0 20px 40px -14px rgba(10, 140, 168, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
  animation: core-pulse 3.5s ease-in-out infinite;
}
.svc-core .i { width: 46px; height: 46px; stroke-width: 1.7; }

.svc-body { position: relative; }
.svc-count { margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #8fd0de; }
.svc-body h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.svc-desc { color: rgba(255, 255, 255, .82); font-size: 1.08rem; margin-bottom: 22px; }
.svc-includes { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-includes li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .92rem; font-weight: 600;
}
.svc-includes .i { width: 16px; height: 16px; color: #8fd0de; stroke-width: 2.6; }
.svc-cta {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none;
  padding-bottom: 4px; border-bottom: 2px solid var(--orange);
}
.svc-cta span { transition: transform .25s; }
.svc-cta:hover span { transform: translateX(6px); }

@keyframes svc-fill { to { transform: scaleX(1); } }
@keyframes svc-in { from { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(6px); } }
@keyframes core-pulse { 50% { transform: scale(1.06); box-shadow: 0 26px 50px -14px rgba(10, 140, 168, 1), inset 0 1px 0 rgba(255, 255, 255, .3); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1040px) {
  .svc-explorer { grid-template-columns: 1fr; }
  /* the list becomes a swipeable row of chips */
  .svc-list {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .svc-list::-webkit-scrollbar { display: none; }
  .svc-list li { flex: none; }
  .svc-tab { padding: 11px 16px; border-color: rgba(255, 255, 255, .12); white-space: nowrap; }
  .svc-tab[aria-selected="true"] { padding-left: 16px; }
}
@media (max-width: 700px) {
  .svc-panel { grid-template-columns: 1fr; gap: 20px; padding: 30px 24px; text-align: left; }
  .svc-orb { width: 150px; }
  .orbit.o2 { inset: 20px; }
  .svc-core { width: 76px; height: 76px; border-radius: 22px; }
  .svc-core .i { width: 34px; height: 34px; }
  .svc-watermark { font-size: 7rem; bottom: -24px; }
}
