/* ==========================================================================
   DIF Consult — Insights. Strategy. Impact.
   White flyer-style theme: deep navy + signal orange, Plus Jakarta Sans.
   ========================================================================== */

:root {
    --navy-950: #081120;
    --navy-900: #0e1c33;
    --navy-800: #13243f;
    --navy-700: #1b3358;
    --navy-100: #dbe4f0;
    --orange-600: #e25a08;
    --orange-500: #f2670c;
    --orange-400: #ff8a3d;
    --ink: #16233b;
    --muted: #5b6b84;
    --bg: #f7f9fc;
    --card: #ffffff;
    --line: #e4eaf3;

    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --radius: 16px;
    --radius-btn: 12px;
    --shadow-sm: 0 2px 10px rgba(12, 26, 48, 0.06);
    --shadow-md: 0 12px 30px rgba(12, 26, 48, 0.10);
    --shadow-lg: 0 24px 60px rgba(12, 26, 48, 0.16);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Layered ambient background: brand glows + faint dot lattice for depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 14% 12%, rgba(242, 103, 12, 0.07), transparent 70%),
        radial-gradient(ellipse 50% 45% at 88% 20%, rgba(27, 51, 88, 0.065), transparent 70%),
        radial-gradient(ellipse 55% 50% at 78% 88%, rgba(242, 103, 12, 0.055), transparent 70%),
        radial-gradient(ellipse 45% 45% at 8% 78%, rgba(27, 51, 88, 0.05), transparent 70%),
        radial-gradient(rgba(27, 51, 88, 0.085) 1px, transparent 1.4px);
    background-size: auto, auto, auto, auto, 26px 26px;
}

/* Fine grain for tactile solidity */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

.accent { color: var(--orange-500); }

/* ==========================================================================
   Buttons — boxy, rounded-rectangle style
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-btn);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
                background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn i { transition: transform 0.25s var(--ease); }
.btn:hover i { transform: translateX(4px); }

.btn-primary {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: #fff;
    box-shadow: 0 8px 22px rgba(242, 103, 12, 0.30);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(242, 103, 12, 0.40);
}

.btn-ghost {
    background: #fff;
    color: var(--navy-900);
    border-color: rgba(22, 35, 59, 0.22);
}
.btn-ghost:hover {
    background: rgba(22, 35, 59, 0.04);
    border-color: var(--navy-700);
    transform: translateY(-2px);
}

.btn-light {
    background: #fff;
    color: var(--orange-600);
    box-shadow: 0 10px 26px rgba(8, 17, 32, 0.25);
}
.btn-light:hover { transform: translateY(-2px); }

.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 0.9rem 0;
    background: rgba(243, 245, 249, 0.92);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--line);
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}

.navbar.scrolled {
    background: rgba(243, 245, 249, 0.97);
    box-shadow: 0 6px 24px rgba(12, 26, 48, 0.10);
    padding: 0.55rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.brand-logo {
    height: 56px;
    width: 56px;
    animation: logoSpin 14s linear infinite;
    filter: drop-shadow(0 3px 8px rgba(242, 103, 12, 0.25));
}

@keyframes logoSpin {
    to { transform: rotate(360deg); }
}

/* Zoho Analytics-style stacked brand lockup: small DIF over bold Consult */
/* Brand lockup: DIF CONSULT with tagline beneath, like the brand mockup */
.brand-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.14rem;
    line-height: 1;
    white-space: nowrap;
    font-family: var(--font-display);
}

/* Colour-shifting but solid: DIF stays in navy tones, CONSULT in orange tones */
.brand-row {
    display: flex;
    align-items: baseline;
    gap: 0.42rem;
}

.brand-row small,
.brand-row em {
    font-style: normal;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: brandShift 4s linear infinite;
}

.brand-row small {
    background-image: linear-gradient(90deg,
        var(--navy-950) 0%, var(--navy-700) 32%, #4a6da8 50%,
        var(--navy-700) 68%, var(--navy-950) 100%);
}

.brand-row em {
    background-image: linear-gradient(90deg,
        var(--orange-600) 0%, var(--orange-500) 32%, #ffb27c 50%,
        var(--orange-500) 68%, var(--orange-600) 100%);
}

.brand-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--navy-700);
}

.brand-name.light .brand-row small {
    background-image: linear-gradient(90deg,
        #ffffff 0%, #dbe4f0 35%, #c4d3e8 50%, #dbe4f0 65%, #ffffff 100%);
}
.brand-name.light .brand-row em {
    background-image: linear-gradient(90deg,
        var(--orange-400) 0%, #ffa468 35%, #ffc69a 50%, #ffa468 65%, var(--orange-400) 100%);
}
.brand-name.light .brand-tag { color: rgba(255, 255, 255, 0.65); }

@keyframes brandShift {
    to { background-position: -250% center; }
}

.brand .brand-logo { transition: filter 0.45s var(--ease); }
.brand:hover .brand-logo {
    filter: drop-shadow(0 4px 16px rgba(242, 103, 12, 0.55));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: rgba(22, 35, 59, 0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.25s;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%;
    height: 2.5px;
    background: var(--orange-500);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav-link:hover, .nav-link.active { color: var(--navy-900); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta { padding: 0.65rem 1.3rem; font-size: 0.9rem; }

/* Services dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown .nav-link .fa-chevron-down {
    font-size: 0.58rem;
    margin-left: 0.25rem;
    transition: transform 0.3s var(--ease);
}
.nav-dropdown:hover .nav-link .fa-chevron-down { transform: rotate(180deg); }

/* invisible bridge so the menu doesn't close crossing the gap */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: 18px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    z-index: 110;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.8rem;
    border-radius: 9px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(242, 103, 12, 0.08);
    color: var(--orange-600);
}

.dropdown-menu a i {
    width: 18px;
    text-align: center;
    color: var(--orange-500);
    font-size: 0.85rem;
}

/* Leading nav icons: hidden on desktop, shown in the mobile drawer */
.nav-ico { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 26px; height: 2.5px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    color: var(--ink);
    padding: 8.5rem 0 3rem;
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Fine grid lines over the right two-thirds, fading out toward the left */
.hero-grid {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 66.666%;
    background-image:
        linear-gradient(rgba(27, 51, 88, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 51, 88, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to left, #000 55%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Thick pastel shapes, Zoho Analytics style */
.hero-shape { position: absolute; pointer-events: none; }

.shape-arrow {
    width: clamp(440px, 46vw, 660px);
    bottom: -9%;
    right: 6%;
    opacity: 0.5;
    animation: floatY 12s -3s ease-in-out infinite;
}

.shape-arrow-m { display: none; }



.hero-blob {
    position: absolute;
    top: -180px; right: -180px;
    width: 620px; height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 103, 12, 0.12), transparent 65%);
    animation: blobPulse 9s ease-in-out infinite;
}

@keyframes blobPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.18); opacity: 0.75; }
}

/* Drifting data particles */
.hero-particles { position: absolute; inset: 0; }

.hero-particles span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: var(--orange-500);
    opacity: 0.35;
    animation: particleDrift var(--d) ease-in-out infinite alternate;
}

.hero-particles span:nth-child(3n) {
    background: var(--navy-700);
    opacity: 0.25;
}
.hero-particles span:nth-child(4n) {
    background: var(--orange-400);
    opacity: 0.45;
}

@keyframes particleDrift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(14px, -30px) scale(1.25); }
    100% { transform: translate(-10px, -54px) scale(0.85); }
}

.hero-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 3.5rem;
    position: relative;
}

/* Plain letterspaced eyebrow, like the mockup */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--orange-600);
    margin-bottom: 1.4rem;
}

.why-us .eyebrow { color: var(--orange-400); }

/* Zoho Puvi-style headline: heavy neutral grotesque, near-black */
.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 6.4vw, 4.9rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 1.4rem;
    color: #101116;
}

/* Shimmering accent word */
.hero-title .accent {
    background: linear-gradient(110deg,
        var(--orange-600) 0%, var(--orange-500) 38%,
        #ffc69a 50%,
        var(--orange-500) 62%, var(--orange-600) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: brandShift 4.5s linear infinite;
}

/* Staggered hero entrance */
.hero-copy .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-copy .reveal:nth-child(2) { transition-delay: 0.16s; }
.hero-copy .reveal:nth-child(3) { transition-delay: 0.27s; }
.hero-copy .reveal:nth-child(4) { transition-delay: 0.38s; }
.hero-visual.reveal { transition-delay: 0.3s; }

/* Soft breathing glow on the primary hero CTA */
.hero-actions .btn-primary {
    animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 22px rgba(242, 103, 12, 0.30); }
    50%      { box-shadow: 0 10px 38px rgba(242, 103, 12, 0.55); }
}

.hero-sub {
    font-size: 1.13rem;
    color: var(--muted);
    max-width: 44ch;
    margin-bottom: 2.2rem;
}

/* Buttons sized like pki-cloud-marketing: equal halves on desktop,
   stacked full-width under 640px */
.hero-actions {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.hero-actions .btn {
    flex: 1 1 0;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

@media (max-width: 640px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; padding: 0.75rem 1rem; }
}

/* --- Hero dashboard visual --- */

.hero-visual {
    position: relative;
    max-width: clamp(400px, 40vw, 580px);
    width: 100%;
    justify-self: end;
    align-self: start;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.photo-frame {
    position: relative;
    overflow: hidden;
    animation: floatY 8s ease-in-out infinite;
    margin: 0;
    /* Feather all four edges so the media dissolves into the page background */
    -webkit-mask-image:
        linear-gradient(to right, transparent 0, #000 11%, #000 89%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 11%, #000 89%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
        linear-gradient(to right, transparent 0, #000 11%, #000 89%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 11%, #000 89%, transparent 100%);
            mask-composite: intersect;
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero video: plays on desktop; poster image shown on mobile / reduced-motion */
.photo-frame .hero-media {
    width: 100%;
    height: auto;
    display: block;
}
.photo-frame .hero-media-fallback { display: none; }

@media (prefers-reduced-motion: reduce) {
    .photo-frame .hero-media { display: none; }
    .photo-frame .hero-media-fallback { display: block; }
}

/* Brand-toned glaze so the photo sits in the palette */
.photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(205deg, rgba(242, 103, 12, 0.12), transparent 38%),
        linear-gradient(25deg, rgba(8, 17, 32, 0.28), transparent 42%);
}

.float-card {
    position: absolute;
    left: -34px;
    bottom: 56px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.85rem 1.05rem;
    box-shadow: var(--shadow-md);
    animation: floatY 6s -2.5s ease-in-out infinite;
}

.float-card-top {
    left: auto;
    bottom: auto;
    top: -26px;
    right: -24px;
    animation-delay: -4.5s;
}

.float-ico {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(242, 103, 12, 0.1);
    border: 1px solid rgba(242, 103, 12, 0.25);
    color: var(--orange-500);
    font-size: 1.05rem;
}

.float-ico.navy {
    background: rgba(27, 51, 88, 0.08);
    border-color: rgba(27, 51, 88, 0.22);
    color: var(--navy-700);
}

.float-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.float-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--navy-900);
}

.float-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--orange-500);
}

.float-foot { font-size: 0.62rem; color: var(--muted); }

.spark { width: 56px; height: 26px; }
.spark path {
    stroke: #CDB4EC; /* brand pastel purple, same as the hero arrow */
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* ==========================================================================
   Highlights (under hero)
   ========================================================================== */

.highlights { padding: 2rem 0 0.5rem; }

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.highlight-card {
    position: relative;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.6rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.highlight-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange-500), var(--orange-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(242, 103, 12, 0.35);
}
.highlight-card:hover::before { transform: scaleX(1); }

.highlight-icon {
    width: 58px; height: 58px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    color: var(--orange-500);
    font-size: 1.35rem;
    transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
}

.highlight-card:hover .highlight-icon {
    background: linear-gradient(140deg, var(--orange-500), var(--orange-600));
    border-color: var(--orange-600);
    color: #fff;
    transform: rotate(-6deg) scale(1.06);
}

.highlight-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 0.35rem;
}

.highlight-card p {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

/* ==========================================================================
   Trusted-by logo strip (Zoho-style infinite marquee)
   ========================================================================== */

.clients { padding: 3rem 0 1.5rem; overflow: hidden; }

.clients-label {
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2rem;
    padding-inline: 1rem;
}

/* Soft fade at both edges so logos roll in and out of view */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
    /* Own compositor layer: keeps iOS Safari repainting the masked,
       animated track instead of freezing a stale raster */
    will-change: transform;
    transform: translateZ(0);
}

/* Hover-capable devices only: on touch screens :hover sticks after a tap,
   which froze the marquee on mobile */
@media (hover: hover) {
    .marquee:hover .marquee-track { animation-play-state: paused; }
}

/* Two identical groups; the track slides exactly one group width for a
   seamless loop */
.marquee-group {
    display: flex;
    align-items: center;
    gap: clamp(2.6rem, 6vw, 5rem);
    padding-right: clamp(2.6rem, 6vw, 5rem);
}

.marquee-group img {
    height: 52px;
    width: auto;
    filter: grayscale(0.5) saturate(0.95);
    opacity: 0.88;
    transition: filter 0.3s, opacity 0.3s, transform 0.3s var(--ease);
}

@media (hover: hover) {
    .marquee-group img:hover {
        filter: grayscale(0) saturate(1.2) brightness(1.1);
        opacity: 1;
        transform: scale(1.1);
    }
}

.marquee-group .marquee-mark { height: 44px; }

@keyframes marqueeScroll {
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   Detail pages (research-analytics, strategy-advisory, implementation-impact)
   ========================================================================== */

.page-hero {
    background:
        radial-gradient(ellipse 60% 80% at 85% 10%, rgba(242, 103, 12, 0.14), transparent 60%),
        linear-gradient(150deg, var(--navy-950), var(--navy-800));
    color: #fff;
    padding: 10rem 0 4.5rem;
}

.page-hero .eyebrow { color: var(--orange-400); }

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.6vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    max-width: 18ch;
}

.page-hero .page-sub {
    margin-top: 1.1rem;
    max-width: 56ch;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.72);
}

.page-intro {
    max-width: 72ch;
    margin: 0 auto 3.5rem;
    font-size: 1.06rem;
    line-height: 1.85;
    color: var(--ink);
}

.page-intro p + p { margin-top: 1.2rem; }

.page-intro strong { color: var(--navy-900); }

/* ==========================================================================
   Sections (shared)
   ========================================================================== */

.section { padding: 6rem 0; }

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin-bottom: 0.9rem;
    color: var(--navy-900);
}
.section-title.light { color: #fff; }

.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ==========================================================================
   Services
   ========================================================================== */

.services, .process {
    position: relative;
    overflow: hidden;
}

/* Large ghost rings for quiet structure on light sections */
.services::before,
.process::before {
    content: '';
    position: absolute;
    width: 560px; height: 560px;
    border: 1.5px solid rgba(27, 51, 88, 0.07);
    border-radius: 50%;
    pointer-events: none;
}
.services::before { top: -220px; right: -200px; }
.process::before { bottom: -260px; left: -220px; border-color: rgba(242, 103, 12, 0.10); }

.services::after,
.process::after {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    border: 1.5px dashed rgba(242, 103, 12, 0.13);
    border-radius: 50%;
    pointer-events: none;
    animation: spin 70s linear infinite;
}
.services::after { bottom: -160px; left: -150px; }
.process::after { top: -140px; right: -130px; border-color: rgba(27, 51, 88, 0.10); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.service-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.1rem 1.8rem 1.9rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange-500), var(--orange-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(242, 103, 12, 0.35);
}

/* Highlight a card when reached from the Services dropdown */
.service-card { scroll-margin-top: 120px; }

.service-card:target {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(242, 103, 12, 0.16), var(--shadow-md);
}
.service-card:target::before { transform: scaleX(1); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 58px; height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.4rem;
    color: var(--orange-500);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.3rem;
    transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
}

.service-card:hover .service-icon {
    background: linear-gradient(140deg, var(--orange-500), var(--orange-600));
    border-color: var(--orange-600);
    color: #fff;
    transform: rotate(-6deg) scale(1.06);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.14rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
    color: var(--navy-900);
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1.3rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--orange-600);
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
}
.service-link i { transition: transform 0.25s var(--ease); }
.service-link:hover i { transform: translateX(5px); }

/* Stretch the card's link/button over the whole card so anywhere is clickable */
.service-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ==========================================================================
   Why Us
   ========================================================================== */

.why-us {
    background:
        radial-gradient(ellipse 60% 80% at 85% 10%, rgba(242, 103, 12, 0.14), transparent 60%),
        linear-gradient(150deg, var(--navy-950), var(--navy-800));
    color: #fff;
}

.why-us .section-sub { color: rgba(255, 255, 255, 0.65); }

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.pillar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
}

.pillar:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(242, 103, 12, 0.45);
}

.pillar-icon {
    width: 60px; height: 60px;
    margin: 0 auto 1.2rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.4rem;
    color: var(--orange-400);
    background: rgba(242, 103, 12, 0.12);
    border: 1px solid rgba(242, 103, 12, 0.4);
}

.pillar h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pillar p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.68); }

/* ==========================================================================
   Process
   ========================================================================== */

/* Process showcase: feathered clip beside the 01-04 steps */
.process-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 2.6rem;
    align-items: center;
}
.process-media { width: 100%; }
/* Process clip keeps a defined frame (border + shadow), unlike the feathered hero */
.process-media .photo-frame {
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    -webkit-mask-image: none;
            mask-image: none;
}
.process-grid .steps { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
    .process-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
    .process-grid .steps { grid-template-columns: 1fr; }
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.step {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.6rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.step-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, var(--orange-400), var(--orange-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 0.9rem;
    opacity: 0.9;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 0.45rem;
}

.step p { color: var(--muted); font-size: 0.92rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
    background:
        radial-gradient(ellipse 50% 110% at 15% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
        linear-gradient(120deg, var(--orange-600), var(--orange-500) 55%, var(--orange-400));
    color: #fff;
    padding: 4.5rem 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.cta-inner h2 span {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.55);
    text-underline-offset: 7px;
}
.cta-inner p { color: rgba(255, 255, 255, 0.88); font-size: 1.05rem; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.contact .section-title { text-align: left; }
.contact .section-sub { margin-bottom: 2rem; }

.contact-list { list-style: none; display: grid; gap: 1.1rem; }

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-ico {
    width: 46px; height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--orange-500);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-size: 1.05rem;
}

.contact-list a, .contact-list span:not(.contact-ico) {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.contact-list a:hover { color: var(--orange-600); }

.contact-card {
    position: relative;
    background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
    color: #fff;
    border-radius: 20px;
    padding: 3rem 2.4rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-card-art {
    position: absolute;
    top: -30px; right: -30px;
    font-size: 9rem;
    color: rgba(255, 255, 255, 0.06);
    transform: rotate(12deg);
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    position: relative;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.8rem;
    position: relative;
}

/* Strategy Impact stat chip (moved from the hero): glassy navy to match the
   card, orange accents, gently bobbing */
.contact-float {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 0.85rem 1.05rem;
    margin-bottom: 1.9rem;
    animation: floatY 6s -2.5s ease-in-out infinite;
}

.contact-float .float-ico {
    background: rgba(242, 103, 12, 0.18);
    border-color: rgba(242, 103, 12, 0.5);
    color: var(--orange-400);
}

.contact-float .float-title { color: #fff; }
.contact-float .float-value { color: var(--orange-400); }
.contact-float .float-foot { color: rgba(255, 255, 255, 0.6); }
.contact-float .spark path { stroke: #CDB4EC; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.72);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand p { margin-top: 1rem; font-size: 0.92rem; }

.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col h4 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.footer-col a, .footer-col span {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.25s;
}
.footer-col a:hover { color: var(--orange-400); }
.footer-col i { width: 20px; color: var(--orange-500); }

.footer-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--orange-400);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.footer-link-btn:hover { text-decoration: underline; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.4rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s;
}
.footer-credit a:hover { color: var(--orange-400); }
.footer-credit a i {
    font-size: 0.65em;
    margin-left: 0.2em;
    opacity: 0.7;
    vertical-align: 0.1em;
}

@media (max-width: 640px) {
    .footer-bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   Consultation modal
   ========================================================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 1.2rem;
    background: rgba(8, 17, 32, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.modal.active { opacity: 1; visibility: visible; }

.modal-content {
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    transform: translateY(26px) scale(0.97);
    transition: transform 0.35s var(--ease);
}

.modal.active .modal-content { transform: translateY(0) scale(1); }

.modal-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.8rem 1.2rem;
    background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
    color: #fff;
    border-radius: 18px 18px 0 0;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 38px; height: 38px;
    border-radius: 10px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s var(--ease);
}
.close-modal:hover { background: var(--orange-500); transform: rotate(90deg); }

.modal-body { padding: 1.8rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
    color: var(--navy-900);
}

.req { color: var(--orange-600); }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #9aa7ba; }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(242, 103, 12, 0.14);
}

.status-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.92rem;
    min-height: 1.4em;
}
.status-message.success { color: #15803d; }
.status-message.error { color: #dc2626; }
.status-message.pending { color: var(--navy-700); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .nav-links { gap: 1.05rem; }
    .nav-link { font-size: 0.88rem; }
    .nav-cta { padding: 0.55rem 0.95rem; font-size: 0.82rem; }
    .brand-row small, .brand-row em { font-size: 1.05rem; }
    .brand-tag { font-size: 0.5rem; }
    .brand-logo { height: 44px; width: 44px; }

    .hero-inner { grid-template-columns: 1fr; gap: 4rem; }
    .hero { padding-top: 8.5rem; }
    .hero-copy { text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { max-width: 640px; margin-inline: auto; width: 100%; }
    .shape-arrow { right: -14%; opacity: 0.35; }

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

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .pillars-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 880px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: 0;
        height: 100dvh;
        width: min(320px, 84vw);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.4rem;
        padding: 6rem 2rem 2rem;
        background: rgba(243, 245, 249, 0.98);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: -20px 0 60px rgba(12, 26, 48, 0.22);
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-link {
        font-size: 1.05rem;
        display: inline-flex;
        align-items: center;
        gap: 0.85rem;
    }
    /* The icon chip carries the hover/active state in the drawer */
    .nav-link::after { display: none; }
    .nav-ico {
        display: grid;
        place-items: center;
        width: 38px; height: 38px;
        border-radius: 11px;
        background: #fff;
        border: 1px solid var(--line);
        box-shadow: var(--shadow-sm);
        color: var(--orange-500);
        font-size: 0.95rem;
        transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
    }
    .nav-link:hover .nav-ico,
    .nav-link.active .nav-ico {
        background: linear-gradient(140deg, var(--orange-500), var(--orange-600));
        border-color: var(--orange-600);
        color: #fff;
        transform: rotate(-6deg) scale(1.06);
    }
    .nav-dropdown .nav-link .fa-chevron-down { display: none; }
    .dropdown-menu { display: none; }
    .nav-cta { margin-top: 0.6rem; padding: 0.8rem 1.5rem; font-size: 0.95rem; }
}

@media (max-width: 768px) {
    .section { padding: 4.5rem 0; }

    /* PKI-style mobile arc: dark bands dome down into the light page */
    .why-us,
    .cta-band {
        border-radius: 0 0 50% 50% / 0 0 46px 46px;
    }
    .services-grid { grid-template-columns: 1fr; }
    .pillars-grid, .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .modal-body { padding: 1.4rem; }

    .float-card { display: none; }
    /* The track is ~half as wide on mobile; a fixed 32s would halve the
       apparent speed, so shorten the loop to keep the pace consistent */
    .marquee-track { animation-duration: 18s; }
    .marquee-group img { height: 42px; }
    .marquee-group .marquee-mark { height: 36px; }
    /* Soft right-edge accent: faint, partially off-canvas, fading at both
       ends so it reads as background texture rather than an object */
    .shape-arrow { display: none; }

    .shape-arrow-m {
        display: block;
        width: min(40vw, 170px);
        top: 50%;
        right: -7%;
        transform: translateY(-55%);
        opacity: 0.26;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
    }

    .brand-logo { height: 42px; width: 42px; }
    .brand-row small, .brand-row em { font-size: 0.96rem; }
    .brand-tag { font-size: 0.46rem; }
}
