/* ===== OPTECOS — Problems We Fix CSS (landing + single-problem) ===== */
/* Base64 url()s replaced with 'none'; logos render via header.php. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body { font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
  a { text-decoration: none; color: inherit; }
  img, svg { max-width: 100%; display: block; }
  :focus-visible { outline: 2px solid #C6A76A; outline-offset: 3px; border-radius: 2px; }

  .p-skip {
    position: absolute; left: -9999px; top: 0;
    background: #17243A; color: #F8F7F3;
    padding: 12px 20px; z-index: 200; border-radius: 0 0 6px 0; font-size: 14px;
  }
  .p-skip:focus { left: 0; }

  .p-wrap {
    --warm-white: #F8F7F3;
    --ivory-2: #F2F0E9;
    --ivory-3: #ECE8DE;
    --ink-navy: #17243A;
    --ink-navy-deep: #0d1626;
    --navy-70: rgba(23,36,58,0.70);
    --navy-50: rgba(23,36,58,0.50);
    --navy-15: rgba(23,36,58,0.15);
    --navy-10: rgba(23,36,58,0.10);
    --navy-08: rgba(23,36,58,0.08);
    --navy-04: rgba(23,36,58,0.04);
    --muted-gold: #C6A76A;
    --apricot: #E9B99A;
    --sky: #A8C8EC;
    --nav-h: 72px;
    background: var(--warm-white); color: var(--ink-navy);
    font-family: 'Inter', sans-serif;
  }
  .p-wrap em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; }
  @media (max-width: 640px) { .p-wrap { --nav-h: 62px; } }

  /* ===== NAV (shared) ===== */
  
  
  
  

  
  
  
  
  
  
  

  
  
  

  
  

  
  
  
  
  
  
  

  
  
  
  
  
  
  
  

  

  /* ===== Layout ===== */
  .p-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
  @media (max-width: 640px) {
    .p-container { padding: 0 20px; }
    
  }

  /* ===== Common type ===== */
  .p-h2 {
    font-size: clamp(28px, 3.8vw, 42px);
    font-weight: 500; line-height: 1.14; letter-spacing: -0.015em;
    margin-bottom: 18px;
  }
  .p-lede {
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.6; color: var(--navy-70); max-width: 58ch;
  }
  .p-head { margin-bottom: 48px; max-width: 48ch; }
  .p-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted-gold); margin-bottom: 14px;
  }

  /* ===== SECTION 01 — HERO (two-column: text left, three-group diagram right) ===== */
  .p-hero {
    padding: clamp(48px, 5.5vw, 72px) 0 clamp(56px, 6vw, 80px);
    position: relative; overflow: hidden;
  }
  .p-hero__bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(55% 45% at 90% 10%, rgba(168,200,236,0.16), transparent 65%),
      radial-gradient(40% 40% at 5% 95%, rgba(233,185,154,0.12), transparent 70%);
    pointer-events: none;
  }
  .p-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
    gap: clamp(32px, 4.5vw, 64px);
    align-items: center;
  }
  .p-hero__intro { max-width: 52ch; }
  .p-hero__headline {
    font-size: clamp(34px, 4.6vw, 52px);
    font-weight: 500; line-height: 1.08; letter-spacing: -0.02em;
    max-width: 18ch; margin-top: 12px; margin-bottom: 22px;
  }
  .p-hero__sub {
    font-size: clamp(15.5px, 1.2vw, 18px);
    line-height: 1.55; color: var(--navy-70); max-width: 50ch;
  }

  /* Hero CTA */
  .p-hero__cta-wrap {
    margin-top: clamp(26px, 3vw, 36px);
  }
  .p-hero__cta {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 15px 26px;
    background: var(--ink-navy); color: var(--warm-white);
    font-size: clamp(14px, 1.05vw, 15.5px);
    font-weight: 500;
    letter-spacing: -0.005em;
    border: 1px solid var(--ink-navy);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }
  .p-hero__cta:hover {
    background: var(--warm-white); color: var(--ink-navy);
    border-color: var(--ink-navy);
  }
  .p-hero__cta svg { transition: transform 0.25s; }
  .p-hero__cta:hover svg { transform: translateX(4px); }

  /* Three-group diagram — Marketing activity → Acquisition → Business results */
  .p-groups {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
  }
  .p-group {
    display: flex; flex-direction: column;
    padding: 4px 2px;
    min-width: 0;
  }
  .p-group__label {
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted-gold);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--navy-10);
    margin-bottom: 18px;
  }
  .p-group__items {
    display: flex; flex-direction: column; gap: 16px;
    flex: 1;
  }
  .p-group__item {
    display: grid; grid-template-columns: 20px 1fr;
    gap: 12px; align-items: start;
  }
  .p-group__item-icon {
    width: 18px; height: 18px;
    color: var(--muted-gold);
    flex-shrink: 0;
    margin-top: 2px;
  }
  .p-group__item-icon svg { width: 100%; height: 100%; }
  .p-group__item-name {
    font-size: clamp(14px, 1.05vw, 15.5px);
    font-weight: 500; letter-spacing: -0.005em; line-height: 1.35;
    color: var(--ink-navy);
  }
  /* Restrained connector between groups — thin line with small dots at each end, no arrowhead */
  .p-groups__link {
    display: flex; align-items: center; justify-content: center;
    width: clamp(24px, 3vw, 44px);
    padding-top: 36px;         /* visually aligns the line with the item rows */
  }
  .p-groups__link svg { width: 100%; height: 8px; }

  /* Below the hero two-column breakpoint: stack to single column, diagram becomes vertical */
  @media (max-width: 1024px) {
    .p-hero__inner { grid-template-columns: 1fr; gap: 40px; align-items: start; }
    .p-hero__intro { max-width: 60ch; }
    .p-groups {
      grid-template-columns: 1fr;
      gap: 0;
    }
    .p-group {
      padding: 0;
    }
    .p-group__label {
      padding-bottom: 10px; margin-bottom: 14px;
    }
    .p-group__items { gap: 10px; }
    .p-group__item { grid-template-columns: 1fr; gap: 0; }
    .p-group__item-icon { display: none; }
    .p-group__item-name { font-size: 15px; }
    /* On stacked layout use short vertical gold rule between groups (no arrowhead) */
    .p-groups__link {
      width: 100%; height: 36px;
      padding-top: 0;
      justify-content: flex-start; padding-left: 2px;
    }
    .p-groups__link svg { width: 8px; height: 100%; }
  }
  @media (max-width: 560px) {
    .p-hero__cta { width: 100%; justify-content: center; }
  }

  /* ===== SECTION 02 — CUSTOMER JOURNEY MAP (continuous line, no cards, no numbers) ===== */
  .p-journey {
    padding: clamp(72px, 7vw, 96px) 0 clamp(56px, 6vw, 80px);
    background: var(--warm-white);
  }
  .p-journey__intro {
    font-size: clamp(16px, 1.15vw, 17px);
    line-height: 1.6; color: var(--navy-70);
    max-width: 68ch; margin-bottom: clamp(44px, 5.5vw, 60px);
  }
  /* Map wrapper holds the continuous line and positions the stages on it */
  .p-journey__map {
    position: relative;
    padding: 0;
  }
  /* The connecting line — one thin gold line passing horizontally through every icon */
  .p-journey__line {
    position: absolute;
    top: 26px;              /* icon vertical centre */
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--muted-gold);
    opacity: 0.55;
    z-index: 0;
  }
  .p-journey__stages {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(12px, 1.6vw, 24px);
    position: relative;
    z-index: 1;
  }
  .p-journey__stage {
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    row-gap: 10px;
    padding: 0 clamp(6px, 0.8vw, 12px);
    text-align: left;
  }
  /* Icon circle — sits ON the connecting line, warm-white background breaks the line visually */
  .p-journey__icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--warm-white);
    border: 1px solid var(--muted-gold);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--muted-gold);
    justify-self: center;
    position: relative;
    margin-bottom: 14px;
  }
  .p-journey__icon svg { width: 22px; height: 22px; display: block; }
  .p-journey__name {
    font-size: clamp(15.5px, 1.2vw, 17px);
    font-weight: 500; letter-spacing: -0.01em; line-height: 1.25;
    color: var(--ink-navy);
    text-align: center;
  }
  .p-journey__desc {
    font-size: clamp(13.5px, 1vw, 14.5px);
    line-height: 1.55;
    color: var(--navy-70);
    text-align: center;
    min-height: 5.5em;        /* keeps all five columns' secondary blocks vertically aligned */
  }
  .p-journey__slabel {
    font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted-gold);
    text-align: center;
    margin-top: 14px;         /* whitespace separator, no dashed rule */
  }
  .p-journey__stext {
    font-size: clamp(13px, 0.95vw, 14px);
    line-height: 1.5;
    color: var(--navy-70);
    text-align: center;
    /* Inter — not Fraunces italic — per approved typography */
  }

  /* Breakpoint: switch to vertical timeline when 5-column becomes cramped */
  @media (max-width: 1024px) {
    .p-journey__line {
      top: 0; bottom: 0; left: 26px;
      width: 1px; height: auto;
      right: auto;
    }
    .p-journey__stages {
      grid-template-columns: 1fr;
      gap: clamp(32px, 4vw, 44px);
    }
    .p-journey__stage {
      grid-template-columns: 60px 1fr;
      grid-template-rows: auto auto auto auto;
      column-gap: 20px; row-gap: 8px;
      align-items: start;
      padding: 0;
      text-align: left;
    }
    .p-journey__icon {
      grid-column: 1; grid-row: 1 / span 4;
      align-self: start; justify-self: center;
      width: 44px; height: 44px;
      margin-bottom: 0;
    }
    .p-journey__icon svg { width: 20px; height: 20px; }
    .p-journey__name {
      grid-column: 2; grid-row: 1;
      text-align: left;
      font-size: 17px;
    }
    .p-journey__desc {
      grid-column: 2; grid-row: 2;
      text-align: left;
      min-height: 0;
    }
    .p-journey__slabel {
      grid-column: 2; grid-row: 3;
      text-align: left;
      margin-top: 8px;
    }
    .p-journey__stext {
      grid-column: 2; grid-row: 4;
      text-align: left;
    }
  }

  /* ===== TRANSITION — between Section 2 and Section 3 (compact lead-in, no cards) ===== */
  .p-transition {
    padding: 0 0 clamp(72px, 7vw, 96px);
    background: var(--warm-white);
  }
  .p-transition__rule {
    width: 48px; height: 1px;
    background: var(--muted-gold);
    margin-bottom: 24px;
  }
  .p-transition__lead {
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.4;
    color: var(--ink-navy);
    font-weight: 500;
    max-width: 50ch;
    margin-bottom: clamp(28px, 3.5vw, 40px);
  }
  .p-transition__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 3.5vw, 48px);
  }
  .p-transition__item {
    display: flex; flex-direction: column;
    /* no border, no background — open columns only */
  }
  .p-transition__title {
    font-size: clamp(15px, 1.15vw, 17px);
    font-weight: 500; letter-spacing: -0.008em; line-height: 1.3;
    color: var(--ink-navy);
    margin-bottom: 8px;
  }
  .p-transition__text {
    font-size: clamp(14px, 1.02vw, 15px);
    line-height: 1.55;
    color: var(--navy-70);
  }
  @media (max-width: 760px) {
    .p-transition__items {
      grid-template-columns: 1fr;
      gap: 24px;
    }
  }


  /* ===== FOOTER (shared) ===== */
  .p-footer { background: var(--ink-navy-deep); color: rgba(248,247,243,0.74); padding: 56px 0 28px; }
  .p-footer__inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
  .p-footer__top {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 36px;
    border-bottom: 1px solid rgba(248,247,243,0.1);
  }
  @media (max-width: 760px) {
    .p-footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .p-footer__brand { grid-column: 1 / -1; }
  }
  .p-footer__brand svg, .p-footer__brand img { height: 26px; width: auto; margin-bottom: 16px; }
  .p-footer__tag {
    font-size: 13.5px; line-height: 1.55; max-width: 32ch; color: rgba(248,247,243,0.6);
  }
  .p-footer__col-title {
    font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted-gold); margin-bottom: 14px;
  }
  .p-footer__col a, .p-footer__col span {
    display: block; padding: 6px 0; font-size: 13.5px;
    color: rgba(248,247,243,0.74); transition: color 0.2s;
  }
  .p-footer__col a:hover { color: #F8F7F3; }
  .p-footer__col span { color: rgba(248,247,243,0.5); cursor: default; }
  .p-footer__bottom {
    padding-top: 22px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12.5px; color: rgba(248,247,243,0.5);
    flex-wrap: wrap; gap: 14px;
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
  }


/* ---- Problems We Fix landing page (OPTECOS-designed) ---- */
.p-landing { background: var(--color-bg-primary); }
.p-landing__hero { padding: 100px var(--container-gutter) 72px; text-align: center; }
.p-landing__hero-inner { max-width: 820px; margin: 0 auto; }
.p-landing__hero h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 24px; }
.p-landing__hero h1 em { color: var(--color-text-primary); }
.p-landing__hero p { font-size: 17px; line-height: 1.6; color: var(--color-text-secondary); max-width: 640px; margin: 0 auto; }
.p-landing__grid-wrap { padding: 72px var(--container-gutter) 120px; background: var(--color-bg-secondary); border-top: 1px solid var(--color-divider-subtle); }
.p-landing__grid { max-width: var(--container-max); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--color-divider-subtle); border: 1px solid var(--color-divider-subtle); }
.p-landing__card { background: var(--color-bg-secondary); padding: 44px 40px; display: flex; flex-direction: column; transition: background 0.25s; text-decoration: none; color: inherit; }
.p-landing__card:hover { background: var(--color-bg-primary); }
.p-landing__card-num { font-family: var(--font-editorial); font-style: italic; font-size: 20px; color: var(--color-accent-gold); line-height: 1; margin-bottom: 20px; }
.p-landing__card h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 14px; color: var(--color-text-primary); }
.p-landing__card-text { font-size: 15px; line-height: 1.6; color: var(--color-text-secondary); margin-bottom: 24px; flex: 1; }
.p-landing__card-link { font-size: 13.5px; font-weight: 500; color: var(--color-text-primary); display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--color-divider-subtle); transition: gap 0.2s; }
.p-landing__card:hover .p-landing__card-link { gap: 14px; }
.p-landing__card-link::after { content: '→'; color: var(--color-accent-gold); }
.p-landing__empty { background: var(--color-bg-primary); padding: 80px 40px; text-align: center; max-width: var(--container-max); margin: 0 auto; border: 1px dashed var(--color-divider-subtle); }
.p-landing__empty p { font-size: 15px; color: var(--color-text-secondary); }
@media (max-width: 720px) {
	.p-landing__hero { padding: 72px 20px 48px; }
	.p-landing__grid-wrap { padding: 48px 20px 80px; }
	.p-landing__grid { grid-template-columns: 1fr; }
	.p-landing__card { padding: 32px 24px; }
}

/* Problem page closer (WordPress build). */
.p-wrap .p-cta-end .p-h2 { margin-bottom: 14px; }
.p-wrap .p-cta-end p { color: var(--muted, #5b6573); }
.p-landing__hero-copy { max-width: 640px; margin: 20px auto 0; font-size: 18px; line-height: 1.6; color: var(--color-text-secondary, #4a5568); }
.p-landing__hero-copy p { margin: 0 0 1em; }
