/* =========================
   Bootstrap Override Layer
   ========================= */
:root body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--paper-white);
    color: var(--ink-black);
}

/* =========================
   Design Tokens (CMYK Theme)
   ========================= */
:root {
    --paper-white: #FAFAFC;
    --white: #FFFFFF;
    --panel-gray: #F1F3F7;
    --border-gray: #DDE2EA;

    --ink-black: #121417;
    --ink-soft: #2B2F36;
    --slate: #5B6472;
    --slate-light: #8A94A6;

    --cmyk-cyan: #00AEEF;
    --cmyk-magenta: #E4007F;
    --cmyk-yellow: #FFD400;

    --grad-cmyk: linear-gradient(90deg, #00AEEF 0%, #E4007F 50%, #FFD400 100%);
    --grad-hero: linear-gradient(
            120deg,
            rgba(0, 174, 239, 0.14) 0%,
            rgba(228, 0, 127, 0.12) 36%,
            rgba(255, 212, 0, 0.14) 70%,
            rgba(250, 250, 252, 1) 100%
    );

    --grad-footer: linear-gradient(180deg, #1C1F24 0%, #111111 100%);

    --sidebar-w: 270px;

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 10px;

    --shadow-sm: 0 1px 2px rgba(18,20,23,.06);
    --shadow-md: 0 12px 34px rgba(18,20,23,.10);

    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* =========================
   Base
   ========================= */
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
    background: var(--paper-white);
    color: var(--ink-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container { max-width: 1180px; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink-black); }

/* =========================
   Sidebar
   ========================= */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: rgba(250,250,252,.88);
    backdrop-filter: saturate(160%) blur(10px);
    border-right: 1px solid var(--border-gray);
    z-index: 1030;
    box-shadow: 4px 0 18px rgba(18,20,23,.06);
}

.sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    gap: 10px;
}

.sidebar .nav-link {
    color: var(--ink-soft);
    padding: .55rem .6rem;
    border-radius: var(--radius-xs);
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background: var(--panel-gray);
    color: var(--ink-black);
}

/* =========================
   Main Layout
   ========================= */
.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

/* =========================
   HERO
   ========================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--grad-hero);
    border-bottom: 1px solid var(--border-gray);
}

.hero-card {
    background: rgba(255,255,255,.72);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 64px;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -40px;
    background:
            radial-gradient(circle at 20% 20%, rgba(0,174,239,.12), transparent 40%),
            radial-gradient(circle at 80% 30%, rgba(228,0,127,.10), transparent 45%),
            radial-gradient(circle at 40% 90%, rgba(255,212,0,.12), transparent 50%);
    filter: blur(40px);
    opacity: .7;
    z-index: 0;
}

.hero h1 {
    letter-spacing: -0.03em;
    font-weight: 650;
    line-height: 1.08;
}

.hero p.lead {
    color: var(--slate);
}
.hero-inner {
    padding: 80px 0;
}
/* =========================
   Buttons
   ========================= */
.btn-primary-clean {
    color: var(--white) !important;
    border: none !important;
    background: var(--grad-cmyk) !important;
    border-radius: var(--radius-xs);
    font-weight: 600;
    padding: .75rem 1.05rem;
}

.btn-outline-clean {
    border: 1px solid var(--border-gray) !important;
    background: rgba(255,255,255,.72) !important;
    border-radius: var(--radius-xs);
}

.btn-primary-clean,
.btn-outline-clean {
    transition: all .25s var(--ease);
}

.btn-primary-clean:hover,
.btn-outline-clean:hover {
    transform: translateY(-1px);
}

/* =========================
   Sidebar Navigation
   ========================= */

.sidebar-nav {
    margin-top: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    font-weight: 500;
    color: var(--ink-soft);
    transition: all .2s var(--ease);
}

.sidebar-menu a:hover {
    background: var(--panel-gray);
    box-shadow: var(--shadow-sm);
}

/* Active page */
.sidebar-menu .current-menu-item a {
    background: var(--panel-gray);
    color: var(--ink-black);
    font-weight: 600;
}


/* =========================
   Cards
   ========================= */
.card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.card p {
    color: var(--slate);
}

.service-tile {
    transition: transform .35s var(--ease);
}

.service-tile:hover {
    transform: translateY(-3px);
}

/* =========================
   Footer
   ========================= */
.site-footer {
    background: var(--grad-footer);
    color: rgba(255,255,255,.9);
}

/* =========================
   Reveal Animations
   ========================= */
.reveal {
    opacity: 1;
    transform: none;
}

html.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 991px) {
    .sidebar {
        position: sticky;
        width: 100%;
        height: auto;
    }

    .main {
        margin-left: 0;
    }
}

/* =========================
   Sidebar Logo
   ========================= */



.sidebar-logo {
    margin: -6px -6px 12px -6px;   /* stretches to edges */
    padding: 18px 16px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(6px);
}

.sidebar-logo img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.08));
}

/* =========================
   Page Hero (Featured Image)
   ========================= */

.page-hero {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--border-gray);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
}

.page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* THIS creates edge-to-edge crop */
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.35) 100%
    );
}

.page-hero__content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.page-hero h1 {
    color: white;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.03em;
}
.page-hero__overlay {
    background: linear-gradient(
            180deg,
            rgba(250,250,252,0.10) 0%,
            rgba(18,20,23,0.45) 100%
    );
}
/* =========================
   Page Hero (Featured Image)
   ========================= */
.page-hero{
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--border-gray);
}

.page-hero::after{
    content:"";
    position: absolute;
    left:0;
    right:0;
    bottom:0;
    height:160px;

    background: linear-gradient(
            180deg,
            rgba(250,250,252,0) 0%,
            rgba(250,250,252,0.92) 72%,
            var(--paper-white) 100%
    );

    z-index:2;
}

.page-hero__bg{
    position: absolute;
    inset: 0;
}

.page-hero__bg img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-hero__overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%);
}

.page-hero__content{
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}

.page-hero__title{
    color: #fff;
    letter-spacing: -0.03em;
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0;
}

/* =========================
   Page Hero (Parallax + Gradient)
   ========================= */
.page-hero{
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--border-gray);
    background: var(--paper-white);
}

/* Background image layer (parallax moves this) */
.page-hero__bg{
    position: absolute;
    inset: -8% 0 -8% 0;          /* extra so it can move without showing edges */
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* Gradient tint layer (this is the “Apple-ish” vibe) */
.page-hero__tint{
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 20% 20%, rgba(0,174,239,.18), transparent 45%),
            radial-gradient(circle at 80% 30%, rgba(228,0,127,.14), transparent 48%),
            radial-gradient(circle at 55% 85%, rgba(255,212,0,.16), transparent 52%),
            linear-gradient(180deg, rgba(18,20,23,.15) 0%, rgba(18,20,23,.35) 100%);
    mix-blend-mode: normal;
}

/* Fade to page background (more subtle than the last attempt) */
.page-hero__fade{
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(250,250,252,0) 0%, var(--paper-white) 100%);
}

/* Content */
.page-hero__content{
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.page-hero__title{
    color: #fff;
    letter-spacing: -0.03em;
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0;
    text-shadow: 0 12px 34px rgba(0,0,0,.25);
}

/* =========================
   Blog cards (Apple-ish)
   ========================= */

.blog-page-content {
    max-width: 72ch;
}

.post-card {
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(221,226,234,.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(18,20,23,.10);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(18,20,23,.14);
}

.post-card__media {
    display: block;
    text-decoration: none;
}

.post-card__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-card__img--placeholder {
    height: 220px;
    background: linear-gradient(120deg, rgba(0,0,0,.04), rgba(0,0,0,.02));
}

.post-card__body {
    padding: 16px 16px 14px;
}

.post-card__meta {
    font-size: .85rem;
    color: rgba(12,32,57,.62);
    margin-bottom: 6px;
}

.post-card__title {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}

.post-card__title a {
    text-decoration: none;
    color: inherit;
}

.post-card__title a:hover {
    text-decoration: underline;
}

.post-card__excerpt {
    color: rgba(12,32,57,.72);
    margin: 0 0 10px;
}

.post-card__footer {
    margin-top: auto;
}

.post-card__link {
    font-weight: 600;
    text-decoration: none;
}

/* =========================
   Apple-ish dot pagination
   ========================= */

.pagination-dots-wrap {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.pagination-dots {
    display: inline-flex;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(250,250,252,.78);
    border: 1px solid rgba(221,226,234,.95);
    backdrop-filter: saturate(160%) blur(10px);
}

.pagination-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    background: rgba(12,32,57,.20);
}

.pagination-dots .dot:hover {
    background: rgba(12,32,57,.35);
}

.pagination-dots .dot.is-active {
    background: rgba(12,32,57,.65);
    transform: scale(1.08);
}