/* AMZ One Step — Portfolio and About pages. Matches the homepage brand: navy hero band, Bebas headings,
   Kumbh Sans body, orange pill buttons, mint and light-grey cards on white.
   Everything is scoped under .amz-pf so it cannot clash with the site's Bootstrap / main CSS. */
@font-face { font-family: 'AMZ Bebas'; src: url('../fonts/Bebas-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'AMZ Kumbh'; src: url('../fonts/KumbhSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'AMZ Kumbh'; src: url('../fonts/KumbhSans-SemiBold.ttf') format('truetype'); font-weight: 600 700; font-display: swap; }

/* Same navy as the homepage header */
#header { background-color: #18273B !important; }

.amz-pf {
  --pf-navy: #18273B; --pf-ink: #132235;
  --pf-bg: #FFFFFF; --pf-surface: #F5F5F5; --pf-surface-2: #EEF1F4;
  --pf-line: #E2E6EA; --pf-line-2: #C7CED6;
  --pf-text: #132235; --pf-text-2: #2B3A4D; --pf-muted: #4E5D6E; --pf-dim: #6B7785;
  --pf-teal: #009E92; --pf-teal-dark: #007A71; --pf-green: #63EC9F;
  --pf-mint: linear-gradient(0deg, #DEFBEB 0%, #CFF5F0 100%);
  --pf-accent: #FD7E14; --pf-accent-ink: #132235;
  --pf-display: 'AMZ Bebas', Bebas, 'Bebas Neue', Impact, sans-serif;
  --pf-body: 'AMZ Kumbh', 'Kumbh Sans', system-ui, sans-serif;
  background: var(--pf-bg); color: var(--pf-text);
  font-family: var(--pf-body); font-size: 16px; line-height: 1.55;
  padding-top: 100px; /* clears the site's fixed-top header (100px tall) */
  overflow-x: clip;
}
.amz-pf *, .amz-pf *::before, .amz-pf *::after { box-sizing: border-box; }
.amz-pf h1, .amz-pf h2, .amz-pf h3, .amz-pf p, .amz-pf figure { margin: 0; }
.amz-pf h1, .amz-pf h2, .amz-pf h3, .amz-pf h4 { color: inherit; } /* the site's main CSS colours headings */
.amz-pf a { color: var(--pf-teal-dark); }
.amz-pf a:hover { color: var(--pf-accent); }
.amz-pf img { display: block; max-width: 100%; }
.amz-pf button { font-family: var(--pf-body); }
.amz-pf :focus-visible { outline: 2px solid var(--pf-accent); outline-offset: 2px; }
.amz-pf [hidden] { display: none !important; }

.pf-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.pf-section { padding-block: 80px; }
.pf-rule { border-top: 0; }
.pf-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pf-teal-dark); margin-bottom: 8px !important; }
.pf-h2 { font-family: var(--pf-display); font-weight: 400; font-size: clamp(36px, 4.2vw, 54px); line-height: 1; letter-spacing: 0; color: var(--pf-ink); }
.pf-h2::after { content: ""; display: block; width: 64px; height: 10px; margin-top: 10px; border-bottom: 3px solid var(--pf-accent); border-radius: 0 0 50% 50%; }
.pf-h3 { font-family: var(--pf-body); font-weight: 700; font-size: 22px; line-height: 1.25; }
.pf-lead { color: var(--pf-muted); font-size: 17px; }
.pf-note { color: var(--pf-dim); font-size: 14px; }
.pf-cat { font-size: 13px; font-weight: 700; color: var(--pf-teal-dark); letter-spacing: .08em; text-transform: uppercase; }
.pf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 32px; }
.pf-head > * { flex: 1 1 360px; min-width: 0; }

/* Buttons & pills (homepage style: rounded pills, orange with navy text) */
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.pf-btn--accent { background: var(--pf-accent); color: var(--pf-accent-ink) !important; }
.pf-btn--accent:hover { filter: brightness(1.05); color: var(--pf-accent-ink) !important; }
.pf-btn--dark { background: var(--pf-navy); color: #fff !important; }
.pf-btn--dark:hover { color: #fff !important; filter: brightness(1.2); }
.pf-btn--ghost { border: 1px solid var(--pf-green); color: #fff !important; background: transparent; }
.pf-btn--ghost:hover { background: rgba(99, 236, 159, .12); color: #fff !important; }
.pf-pill { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--pf-line-2); background: #fff; color: var(--pf-text-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.pf-pill:hover { border-color: var(--pf-accent); }
.pf-pill[aria-pressed="true"] { background: var(--pf-accent); border-color: var(--pf-accent); color: var(--pf-accent-ink); }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Hero: full-width navy band with rounded bottom corners, like the homepage */
.pf-hero, .ab-hero { position: relative; isolation: isolate; color: #fff; }
.pf-hero::before, .ab-hero::before { content: ""; position: absolute; z-index: -1; top: -100px; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--pf-navy); border-radius: 0 0 50px 50px; }
.pf-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; margin-bottom: 64px; }
.pf-hero__copy { flex: 1 1 480px; min-width: 0; }
.pf-badge { display: inline-block; font-size: 15px; font-weight: 700; color: #fff; background: rgba(25, 135, 84, .25); padding: 6px 12px; border-radius: 6px; margin-bottom: 18px; }
.pf-h1 { font-family: var(--pf-display); font-weight: 400; font-size: clamp(48px, 6vw, 76px); line-height: 1; letter-spacing: 0; color: #fff; margin-bottom: 20px !important; }
.pf-hero__sub { font-size: 19px; color: #D5DDE8; max-width: 560px; margin-bottom: 32px !important; }
.pf-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.pf-hero__grid { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pf-tile { aspect-ratio: 1; border-radius: 12px; background: #fff; overflow: hidden; }
.pf-tile img { width: 100%; height: 100%; object-fit: cover; }

/* Logos */
.pf-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.pf-logo { height: 96px; border-radius: 16px; background: #fff; border: 1px solid var(--pf-line); display: flex; align-items: center; justify-content: center; padding: 14px 22px; }
.pf-logo img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }

/* Our work: tabs + panel */
.pf-worktabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--pf-line); border-radius: 24px 24px 0 0; overflow: hidden; background: var(--pf-surface); }
.pf-worktab { min-height: 60px; padding: 14px 16px; border: 0; border-right: 1px solid var(--pf-line); background: transparent; color: var(--pf-text-2); font-family: var(--pf-display); font-size: 22px; letter-spacing: .02em; cursor: pointer; position: relative; }
.pf-worktab:last-child { border-right: 0; }
.pf-worktab:hover { color: var(--pf-ink); background: var(--pf-surface-2); }
.pf-worktab[aria-selected="true"] { background: #fff; color: var(--pf-ink); }
.pf-worktab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--pf-accent); }
.pf-panel { background: #fff; border: 1px solid var(--pf-line); border-top: 0; border-radius: 0 0 24px 24px; padding: 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 10px 30px rgba(19, 34, 53, .06); }
.pf-panel__head { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-end; }
.pf-panel__head > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

/* Gallery (main / secondary / 3D) */
.pf-gallery { display: flex; flex-wrap: wrap; gap: 16px; }
.pf-gallery__main { flex: 1 1 420px; min-width: 0; aspect-ratio: 1; max-height: 600px; background: #fff; border: 1px solid var(--pf-line); border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pf-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.pf-gallery__thumbs { flex: 1 1 300px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-content: start; }
.pf-thumb { aspect-ratio: 1; padding: 0; border-radius: 12px; border: 2px solid var(--pf-line); background: #fff; cursor: pointer; overflow: hidden; }
.pf-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pf-thumb[aria-current="true"] { border-color: var(--pf-accent); }
.pf-thumb:hover { border-color: var(--pf-line-2); }

/* A+ viewer */
.pf-aplus-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.pf-aplus { background: var(--pf-surface); border-radius: 20px; padding: 20px; max-height: 680px; overflow-y: auto; }
.pf-aplus__frame { margin: 0 auto; max-width: 970px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 20px rgba(19, 34, 53, .08); }
.pf-aplus__frame img { width: 100%; height: auto; }
.pf-aplus__frame.is-mobile { max-width: 360px; border: 10px solid var(--pf-navy); border-radius: 30px; }

/* Video */
.pf-videos { display: flex; flex-wrap: wrap; gap: 20px; }
.pf-videos__player { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pf-video { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.pf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-video__shield { position: absolute; top: 0; right: 0; width: 72px; height: 64px; z-index: 2; } /* covers Drive's "open in new window" button */
.pf-videos__now { color: var(--pf-text-2); }
.pf-videos__list { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.pf-vitem { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px; border-radius: 14px; border: 1px solid var(--pf-line); background: #fff; color: var(--pf-text); text-align: left; cursor: pointer; }
.pf-vitem:hover { border-color: var(--pf-line-2); }
.pf-vitem[aria-current="true"] { border-color: var(--pf-accent); background: #FFF4EA; }
.pf-vitem__img { position: relative; width: 120px; flex-shrink: 0; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.pf-vitem__img img { width: 100%; height: 100%; object-fit: cover; }
.pf-vitem__play { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--pf-accent); }
.pf-vitem__play::after { content: ""; position: absolute; left: 11px; top: 8px; border-left: 11px solid var(--pf-accent-ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.pf-vitem__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-vitem__txt b { font-size: 15px; }
.pf-vitem__txt span { font-size: 13px; color: var(--pf-dim); }

/* Before / after pairs */
.pf-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--pf-line); }
.pf-pair figure { position: relative; background: #fff; }
.pf-pair img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pf-pair figcaption { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.pf-badge-old { background: #E6EAEE; color: #3E4C5C; }
.pf-badge-new { background: var(--pf-accent); color: var(--pf-accent-ink); }

/* Featured case (homepage "Our Proven Results" card style) */
.pf-feature { background: var(--pf-surface); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.pf-feature__copy { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.pf-feature__copy .pf-h3 { font-size: 26px; }
.pf-feature__pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.pf-feature__pair { border-radius: 20px; overflow: hidden; background: #fff; }
.pf-feature__result { padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.pf-feature__result b { font-family: var(--pf-body); font-weight: 700; font-size: 28px; color: var(--pf-teal); }
.pf-feature__result span { color: var(--pf-muted); font-size: 14px; }

/* Wins grid */
.pf-wins { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pf-win { background: var(--pf-surface); border-radius: 20px; overflow: hidden; padding: 10px; }
.pf-win .pf-pair { border-radius: 14px; overflow: hidden; }
.pf-win__body { padding: 14px 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.pf-win__num { font-family: var(--pf-body); font-size: 25px; font-weight: 700; color: var(--pf-teal); }
.pf-win__label { font-size: 14px; color: var(--pf-text-2); }
.pf-win__meta { font-size: 12px; color: var(--pf-dim); margin-top: 4px; }

/* Navy band (homepage "Store Front Portfolio" panel style) */
.pf-light { background: var(--pf-navy); color: #fff; border-radius: 40px; margin-inline: clamp(8px, 1.6vw, 22px); }
.pf-light h2, .pf-light h3 { color: #fff; }
.pf-light .pf-eyebrow { color: var(--pf-green); }
.pf-light .pf-lead { color: #C9D3E0; }
.pf-cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pf-cards4 > div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 22px; }
.pf-cards4 b { display: block; margin-bottom: 4px; color: #fff; }
.pf-cards4 p { color: #C9D3E0; font-size: 14px; }

/* Process (homepage "How it works" mint cards) */
.pf-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pf-step { background: var(--pf-mint); border-radius: 32px; padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.pf-step b { font-family: var(--pf-display); font-weight: 400; font-size: 44px; line-height: 1; color: #252525; }
.pf-step h3 { font-family: var(--pf-body); font-size: 19px; font-weight: 700; }
.pf-step p { color: #2F3B48; font-size: 14px; }
.pf-checks { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; color: var(--pf-text-2); font-size: 15px; }

/* Testing proof: navy panel */
.pf-proof { background: var(--pf-navy); color: #fff; border-radius: 40px; padding: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.pf-proof > div { flex: 1 1 400px; min-width: 0; }
.pf-proof .pf-h2 { color: #fff; }
.pf-proof .pf-eyebrow { color: var(--pf-green); }
.pf-proof .pf-lead { color: #C9D3E0; }
.pf-proof__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pf-proof__stats > div { background: rgba(255, 255, 255, .06); border-radius: 20px; padding: 20px; }
.pf-proof__stats b { display: block; font-family: var(--pf-display); font-weight: 400; font-size: 40px; line-height: 1.05; color: var(--pf-green); }
.pf-proof__stats small { color: #C9D3E0; font-size: 13px; }
.pf-proof__badges { grid-column: span 2; display: flex; flex-wrap: wrap; gap: 12px; }
.pf-proof__badges span { font-size: 12px; font-weight: 700; letter-spacing: .06em; border: 1px solid var(--pf-green); padding: 6px 12px; border-radius: 999px; color: #fff; }

/* Engagement models */
.pf-models { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pf-model { background: var(--pf-surface); border: 2px solid transparent; border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.pf-model--featured { border-color: var(--pf-accent); background: #FFF4EA; }
.pf-model small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pf-teal-dark); }
.pf-model h3 { font-family: var(--pf-display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--pf-ink); }
.pf-model p { color: var(--pf-muted); font-size: 14px; flex-grow: 1; }
.pf-model a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Closing call to action */
.pf-cta { background: var(--pf-navy); color: #fff; border-radius: 40px; padding: 56px 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.pf-cta > div { flex: 1 1 480px; min-width: 0; }
.pf-cta h2 { font-family: var(--pf-display); font-weight: 400; font-size: clamp(38px, 4.4vw, 58px); line-height: 1; margin-bottom: 12px; color: #fff; }
.pf-cta p { font-size: 17px; max-width: 560px; color: #D5DDE8; }
.pf-cta .pf-btn--dark { background: var(--pf-accent); color: var(--pf-accent-ink) !important; }

@media (max-width: 640px) {
  .pf-section { padding-block: 56px; }
  .pf-hero { padding-top: 48px; padding-bottom: 56px; gap: 36px; margin-bottom: 40px; }
  .pf-hero::before, .ab-hero::before { border-radius: 0 0 32px 32px; }
  .pf-panel, .pf-feature { padding: 18px; }
  .pf-proof, .pf-cta { padding: 32px 22px; border-radius: 28px; }
  .pf-light { border-radius: 28px; }
  .pf-worktabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-worktab { border-bottom: 1px solid var(--pf-line); font-size: 19px; }
  .pf-gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pf-feature__pairs { grid-template-columns: 1fr; }
  .pf-btn { white-space: normal; }
}
