/* ==================================================================
   BPM Türkiye — landing page

   Structure and styling follow pwc.com.tr closely, measured from the
   live site: flat tiles with NO border-radius and NO shadow, a
   full-bleed 16:9 image on top, a serif heading at 24px/400, and body
   text at 16px with a 1.7 line-height. Buttons are square too.

   The serif is Source Serif 4 standing in for PwC's ITC Charter (a
   Charter-family transitional serif, unavailable freely); the sans is
   Archivo standing in for Helvetica Neue. Both cover Turkish fully.

   Colour is BPM's own: the logo's indigo #181878, not PwC's orange.
   ================================================================== */

:root {
  --indigo:      #181878;
  --indigo-700:  #22228F;
  --indigo-deep: #0B0D33;
  --indigo-900:  #101243;
  --teal:        #044254;
  --cyan:        #1AA0BF;
  --cyan-soft:   #9DD8E8;

  /* Measured from pwc.com.tr: tile #F5F7F8, body ink #2D2D2D, headings black. */
  --paper:    #FFFFFF;
  --tile:     #F5F7F8;
  --tile-2:   #ECEFF2;
  --line:     #DFE3E8;
  --ink:      #000000;
  --ink-body: #2D2D2D;
  --ink-mute: #6A7079;
  --on-dark:  #FFFFFF;
  --on-dark-2:#B9BFD6;

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200;
        background: var(--indigo); color: #fff; padding: 12px 18px; }
.skip:focus { left: 0; }

/* ---------------- typography ---------------- */

h1, h2, h3, .serif {
  font-family: "Source Serif 4", "ITC Charter", Charter, Georgia, serif;
  font-weight: 400;              /* PwC sets headings at regular, not bold */
  color: var(--ink);
  letter-spacing: -.005em;
  margin: 0;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.16; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.25; margin-bottom: 16px; text-wrap: balance; }
h3 { font-size: 1.5rem; line-height: 1.3; }   /* 24px/31.2px, as measured */

h4 {
  font-family: "Archivo", sans-serif; font-size: 1rem; font-weight: 600;
  color: var(--ink); margin: 0;
}

.eyebrow {
  font-family: "Archivo", sans-serif; font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 14px;
}
.eyebrow.on-dark { color: var(--cyan-soft); }

.sub { font-size: 1.05rem; color: var(--ink-mute); max-width: 64ch; margin: 0; }
.sub.on-dark { color: var(--on-dark-2); }
h1.on-dark, h2.on-dark { color: var(--on-dark); }

.sec-head { max-width: 64ch; margin-bottom: 44px; }

/* ---------------- buttons — square, like the reference ---------------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Archivo", sans-serif; font-size: .94rem; font-weight: 600;
  padding: 14px 28px; border-radius: 0;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn::after { content: "›"; font-size: 1.15em; line-height: 1; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: .84rem; }
.btn-sm::after { content: none; }

.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-700); transform: translateX(3px); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--indigo); }

.btn:focus-visible, button:focus-visible, a:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}

/* text link with chevron */
.tlink {
  font-family: "Archivo", sans-serif; font-size: .9rem; font-weight: 600;
  color: var(--indigo); text-decoration: none; display: inline-flex; gap: 6px;
}
.tlink::after { content: "›"; transition: transform .25s var(--ease); }
.tlink:hover::after { transform: translateX(4px); }

/* ---------------- nav ---------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.nav.solid {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 15px 32px;
             display: flex; align-items: center; gap: 30px; }
.brand img { height: 28px; width: auto; }
.brand-light { display: none; }
.nav.solid .brand-light { display: block; }
.nav.solid .brand-dark { display: none; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: .92rem; font-weight: 500; text-decoration: none;
  color: #fff; opacity: .9; padding: 4px 0; position: relative;
}
.nav.solid .nav-links a { color: var(--ink-body); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--cyan); transition: width .28s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.7); }
.nav.solid .lang { color: var(--ink-mute); }
.lang button { background: none; border: 0; cursor: pointer; padding: 2px 3px; font: inherit; color: inherit; opacity: .6; }
.lang button.on { opacity: 1; color: var(--cyan); }
.lang button:hover { opacity: 1; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }
.nav.solid .burger span { background: var(--ink); }

/* ---------------- hero ---------------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--indigo-deep);
  padding: 170px 0 96px;
}
.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; opacity: .62; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,13,51,.55) 0%, rgba(11,13,51,0) 22%, rgba(11,13,51,0) 62%, rgba(11,13,51,.88) 100%),
    linear-gradient(98deg, rgba(11,13,51,.96) 0%, rgba(11,13,51,.86) 40%, rgba(11,13,51,.38) 72%, rgba(11,13,51,.30) 100%);
}
.hero-inner { position: relative; z-index: 3; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .sub { color: var(--on-dark-2); margin-top: 24px; max-width: 58ch; font-size: 1.1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* The one piece of glass that survives: it sits on the dark hero, where it
   reads as depth rather than fighting the flat editorial tiles below. */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.stats > div { padding: 26px 24px; border-right: 1px solid rgba(255,255,255,.12); }
.stats > div:last-child { border-right: 0; }
.stats strong {
  display: block; font-family: "Source Serif 4", serif; font-weight: 400;
  font-size: 2.4rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums;
}
.stats span { display: block; margin-top: 8px; font-size: .82rem; color: var(--on-dark-2); }

/* ---------------- sections ---------------- */

.sec { padding: 96px 0; background: var(--paper); }
.sec.tinted { background: var(--tile); }

/* ---------------- standards marquee ---------------- */

.marquee {
  margin-top: 40px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.track { display: flex; gap: 60px; width: max-content; animation: slide 64s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.track figure { margin: 0; flex: 0 0 auto; height: 56px; display: grid; place-items: center;
                filter: grayscale(1); opacity: .45; transition: filter .3s, opacity .3s; }
.track figure:hover { filter: grayscale(0); opacity: 1; }
.track img { max-height: 56px; width: auto; object-fit: contain; }

/* ---------------- editorial cards (the PwC pattern) ---------------- */

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.ecard {
  display: flex; flex-direction: column;
  background: var(--tile);
  border-radius: 0;          /* measured: 0px */
  box-shadow: none;          /* measured: none */
  border: 0;                 /* measured: 0px */
  text-decoration: none;
  transition: background .3s var(--ease);
}
.sec.tinted .ecard { background: var(--paper); }
.ecard:hover { background: var(--tile-2); }
.sec.tinted .ecard:hover { background: #fff; }

.ecard-img { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--tile-2); }
.ecard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ecard:hover .ecard-img img { transform: scale(1.045); }


.ecard-body { padding: 26px 24px 30px; display: flex; flex-direction: column; flex: 1; }
.ecard-body h3 { margin-bottom: 12px; }
.ecard-body p { margin: 0 0 18px; font-size: 1rem; color: var(--ink-body); }
.ecard-body .tlink { margin-top: auto; }

/* ---------------- services (text tiles, no image) ---------------- */

.scard {
  background: var(--paper); padding: 34px 30px 36px;
  border-top: 3px solid var(--indigo);
  display: flex; flex-direction: column;
  transition: background .3s var(--ease);
}
.sec.tinted .scard { background: var(--paper); }
.scard:hover { background: var(--tile); }
.scard h3 { margin-bottom: 12px; font-size: 1.32rem; }
.scard p { margin: 0 0 20px; color: var(--ink-body); }
.scard .tlink { margin-top: auto; }

/* ---------------- process ---------------- */

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 30px;
         grid-template-columns: repeat(4, 1fr); }
.steps li { border-top: 1px solid var(--ink); padding-top: 22px; }
.steps .n { font-family: "Source Serif 4", serif; font-size: 1.05rem; color: var(--cyan);
            display: block; margin-bottom: 12px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { margin: 0; font-size: .95rem; color: var(--ink-mute); }

/* ---------------- platform (dark) ---------------- */

.platform { background: var(--indigo-900); }
.plat-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.plat-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.14); }
.feat { background: var(--indigo-900); padding: 26px 24px; }
.feat h4 { color: #fff; margin-bottom: 8px; }
.feat p { margin: 0; font-size: .92rem; color: var(--on-dark-2); }

/* ---------------- about ---------------- */

.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
/* Four principles as a 2x2 grid, ruled like the process steps so the two
   sections read as one system. */
.why-list { list-style: none; margin: 6px 0 0; padding: 0;
            display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.why-list li { border-top: 1px solid var(--ink); padding-top: 20px; }
.why-list h4 { margin-bottom: 8px; font-size: 1.05rem; }
.why-list p { margin: 0; font-size: .95rem; color: var(--ink-mute); }

/* ---------------- contact ---------------- */

.contact { background: var(--indigo-deep); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start; }
.contact-direct { margin-top: 24px; color: var(--on-dark-2); font-size: .95rem; }
.contact-direct a { color: var(--cyan-soft); font-weight: 600; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
        background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); padding: 32px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: .82rem; color: var(--on-dark-2); font-weight: 500; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  font: inherit; font-size: .95rem; color: #fff; border-radius: 0;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2);
  padding: 12px 14px; transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus { background: rgba(255,255,255,.12); border-color: var(--cyan); }
.form textarea { resize: vertical; }
.form .btn-primary { justify-content: center; }
.kvkk { font-size: .77rem; color: var(--on-dark-2); margin: 0; line-height: 1.5; }
.kvkk a { color: var(--cyan-soft); }
.formnote { margin: 0; font-size: .87rem; }
.formnote:empty { display: none; }
.formnote.ok { color: #7EE0A8; }
.formnote.err { color: #FF9C86; }

/* ---------------- footer ---------------- */

.foot { background: #06081F; color: var(--on-dark-2); padding: 66px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.foot-logo { height: 32px; width: auto; margin-bottom: 16px; }
.foot p { font-size: .9rem; margin: 0; max-width: 34ch; }
.foot h5 { font-family: "Archivo", sans-serif; font-size: .72rem; font-weight: 700;
           letter-spacing: .13em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.foot-grid a { display: block; font-size: .9rem; text-decoration: none; padding: 5px 0; transition: color .2s; }
.foot-grid a:hover { color: var(--cyan-soft); }
.foot-grid a.foot-mail { margin-top: 12px; color: var(--cyan-soft); font-weight: 500; }
.foot-bar { padding-bottom: 26px; font-size: .83rem; }
/* The rule sits on the inner span so it aligns with the content column
   instead of overshooting it by the wrapper's side padding. */
.foot-bar > span { display: block; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; }

/* ---------------- reveal ---------------- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none;
             transition: opacity .7s var(--ease) var(--d,0s), transform .7s var(--ease) var(--d,0s); }

/* ---------------- responsive ---------------- */

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .plat-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; gap: 12px; }
  .burger { display: block; }
  /* .nav-links leaves the flow here (it becomes the slide-down panel), so
     the actions need their own push to the right edge. */
  .nav-actions { margin-left: auto; }
  .nav-links {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; gap: 0;
    padding: 10px 20px 20px; background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--ink) !important; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 130px 0 72px; }
  .sec { padding: 64px 0; }
  .grid-3, .grid-4, .steps, .why-list { grid-template-columns: 1fr; }
  .plat-feats { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .track { animation: none; }
  .ecard-img img { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
