/* ==========================================================================
   UpThink — site styles (Bootstrap 5.3 base)
   ========================================================================== */

:root {
    --ut-brand: #E8914E;          /* logo orange */
    --ut-brand-strong: #C8682A;   /* AA contrast on white for text/links */
    --ut-brand-soft: #FDF1E7;
    --ut-ink: #1D2128;
    --ut-ink-2: #2A2F38;
    --ut-text: #4A505C;
    --ut-muted: #6B7280;
    --ut-line: #ECE7E1;
    --ut-surface: #FFFFFF;
    --ut-tint: #FAF7F3;
    --ut-radius: 20px;
    --ut-radius-sm: 12px;
    --ut-shadow-sm: 0 1px 2px rgba(29, 33, 40, .06), 0 2px 8px rgba(29, 33, 40, .04);
    --ut-shadow: 0 10px 30px -12px rgba(29, 33, 40, .18);
    --ut-shadow-lg: 0 30px 60px -20px rgba(29, 33, 40, .28);
    --ut-gradient: linear-gradient(135deg, #F2A766 0%, #E8914E 45%, #D9692E 100%);
    --ut-gradient-deep: linear-gradient(135deg, #D2702F 0%, #B9581F 60%, #9E4818 100%);
    --ut-ease: cubic-bezier(.2, .7, .2, 1);

    /* Bootstrap overrides */
    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--ut-text);
    --bs-body-bg: var(--ut-surface);
    --bs-emphasis-color: var(--ut-ink);
    --bs-heading-color: var(--ut-ink);
    --bs-link-color: var(--ut-brand-strong);
    --bs-link-color-rgb: 200, 104, 42;
    --bs-link-hover-color: #A9531C;
    --bs-link-hover-color-rgb: 169, 83, 28;
    --bs-border-color: var(--ut-line);
    --bs-primary: #E8914E;
    --bs-primary-rgb: 232, 145, 78;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
img { max-width: 100%; height: auto; }
::selection { background: var(--ut-brand); color: #fff; }
:focus-visible { outline: 3px solid var(--ut-brand); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--ut-ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.narrow { max-width: 920px; }

/* ---------- Buttons ---------- */
.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: .65rem;
    --bs-btn-border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    transition: transform .2s var(--ut-ease), box-shadow .2s var(--ut-ease), background-color .2s, color .2s, border-color .2s;
}
.btn-lg { --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .85rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: 999px; }
.btn .bi-arrow-right { transition: transform .2s var(--ut-ease); }
.btn:hover .bi-arrow-right { transform: translateX(3px); }

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ut-brand-strong);
    --bs-btn-border-color: var(--ut-brand-strong);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #B45B22;
    --bs-btn-hover-border-color: #B45B22;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #9E4F1D;
    --bs-btn-active-border-color: #9E4F1D;
    --bs-btn-disabled-bg: var(--ut-brand-strong);
    --bs-btn-disabled-border-color: var(--ut-brand-strong);
    box-shadow: 0 8px 20px -8px rgba(200, 104, 42, .6);
}
.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(200, 104, 42, .7); }

.btn-ghost {
    --bs-btn-color: var(--ut-ink);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #D9D3CC;
    --bs-btn-hover-color: var(--ut-ink);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: var(--ut-ink);
    --bs-btn-active-bg: #fff;
    --bs-btn-active-border-color: var(--ut-ink);
}
.btn-light { --bs-btn-color: var(--ut-ink); --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--ut-brand-strong); }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ut-brand-strong); background: var(--ut-brand-soft);
    padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow-light { color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section-tint { background: var(--ut-tint); }

.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .75rem; }
.section-head p { color: var(--ut-muted); font-size: 1.05rem; margin: 0; }
.section-head-split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; text-align: left; }
.section-head-split h2 { margin: 0; }

.display-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.1rem; }
.lead-strong { font-size: 1.12rem; font-weight: 600; color: var(--ut-ink-2); }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { border-color: var(--ut-line); box-shadow: 0 6px 24px -16px rgba(29, 33, 40, .35); }
.site-header .navbar { padding: .65rem 0; }
.site-header .navbar-brand img { height: 52px; width: auto; transition: height .25s var(--ut-ease); }
.site-header.is-scrolled .navbar-brand img { height: 44px; }

.site-header .nav-link {
    position: relative; font-weight: 600; color: var(--ut-ink-2);
    padding: .55rem 1rem !important; border-radius: 999px; transition: color .2s, background-color .2s;
}
.site-header .nav-link:hover { color: var(--ut-brand-strong); }
.site-header .nav-link.active { color: var(--ut-brand-strong); background: var(--ut-brand-soft); }

.navbar-toggler {
    border: 1px solid var(--ut-line); border-radius: 12px; padding: .7rem .65rem;
    display: inline-flex; flex-direction: column; gap: 5px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(232, 145, 78, .35); }
.toggler-bar { display: block; width: 22px; height: 2px; background: var(--ut-ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding: 1rem 0 .5rem; }
    .site-header .navbar-nav { gap: .25rem; margin-bottom: 1rem; }
    .site-header .navbar-collapse .btn { width: 100%; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); background: linear-gradient(180deg, #FFF8F2 0%, #fff 100%); }
.hero-glow {
    position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(232, 145, 78, .28), transparent 70%); pointer-events: none;
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(29, 33, 40, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
    mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
}
.hero .container { position: relative; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 1.25rem; }
.text-gradient { background: var(--ut-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--ut-text); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 600; color: var(--ut-ink-2); font-size: .95rem; }
.hero-points i { color: var(--ut-brand); margin-right: .35rem; }

.hero-visual { position: relative; padding: 1.5rem 0 1.5rem 1.5rem; }
.hero-visual::before {
    content: ""; position: absolute; inset: 0 2rem 3rem 0; border-radius: 32px; background: var(--ut-gradient); transform: rotate(-3deg); opacity: .9;
}
.hero-visual img { position: relative; display: block; width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--ut-shadow-lg); }
.float-card {
    position: absolute; display: flex; align-items: center; gap: .8rem;
    background: rgba(255, 255, 255, .95); border-radius: 16px; padding: .85rem 1.1rem; box-shadow: var(--ut-shadow);
    animation: float 6s ease-in-out infinite;
}
.float-card i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--ut-brand-soft); color: var(--ut-brand-strong); font-size: 1.3rem; }
.float-card strong { display: block; font-size: 1.25rem; color: var(--ut-ink); line-height: 1.1; }
.float-card span { font-size: .82rem; color: var(--ut-muted); }
.float-card-top { top: 3rem; left: -1rem; }
.float-card-bottom { bottom: 0; right: 1.5rem; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; isolation: isolate; color: #fff;
    padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
    background-color: var(--ut-ink); background-size: cover; background-position: center;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(23, 26, 32, .94) 0%, rgba(23, 26, 32, .82) 45%, rgba(200, 104, 42, .55) 100%);
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .75rem; }
.page-hero p { max-width: 620px; font-size: 1.1rem; color: rgba(255, 255, 255, .82); margin: 0; }
.page-hero-compact { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }

.breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .7); font-size: .9rem; font-weight: 600; margin-bottom: 1.25rem; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: #F7B985; }

/* ---------- Service cards ---------- */
.service-card {
    position: relative; height: 100%; background: #fff; border: 1px solid var(--ut-line); border-radius: var(--ut-radius);
    padding: 2rem; transition: transform .3s var(--ut-ease), box-shadow .3s var(--ut-ease), border-color .3s;
    display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--ut-shadow); border-color: transparent; }
.service-card::after {
    content: ""; position: absolute; left: 2rem; right: 2rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
    background: var(--ut-gradient); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ut-ease);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
    width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 1.4rem;
    background: var(--ut-brand-soft); color: var(--ut-brand-strong); font-size: 1.6rem; transition: background .3s, color .3s;
}
.service-card:hover .service-icon { background: var(--ut-gradient); color: #fff; }
.service-card h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card p { color: var(--ut-text); font-size: .97rem; margin: 0; }
.service-card .card-link { margin-top: auto; padding-top: 1.2rem; font-weight: 700; font-size: .92rem; color: var(--ut-brand-strong); display: inline-flex; align-items: center; gap: .4rem; }
.service-card.is-link:hover .card-link i { transform: translateX(4px); }
.service-card .card-link i { transition: transform .2s var(--ut-ease); }
.badge-new { position: absolute; top: 1.5rem; right: 1.5rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--ut-ink); padding: .3rem .65rem; border-radius: 999px; }

/* ---------- Work cards (chips) ---------- */
.work-card { height: 100%; border-radius: var(--ut-radius); padding: 1.75rem; background: var(--ut-tint); border: 1px solid var(--ut-line); transition: background .3s, box-shadow .3s; }
.work-card:hover { background: #fff; box-shadow: var(--ut-shadow); }
.work-card-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.work-card-head i { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--ut-ink); color: #fff; font-size: 1.2rem; }
.work-card-head h3 { font-size: 1.15rem; margin: 0; }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-list li { font-size: .85rem; font-weight: 500; color: var(--ut-ink-2); background: #fff; border: 1px solid var(--ut-line); padding: .35rem .75rem; border-radius: 999px; line-height: 1.4; }
.chip-list-sm li { font-size: .78rem; background: var(--ut-brand-soft); border-color: transparent; color: #9E4F1D; font-weight: 600; }

/* ---------- Media frame ---------- */
.media-frame { position: relative; }
.media-frame::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border-radius: 28px; border: 2px dashed rgba(232, 145, 78, .5); z-index: 0; }
.media-frame img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--ut-shadow-lg); }
.video-btn {
    position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 84px; height: 84px; border-radius: 50%; border: 0; background: #fff; color: var(--ut-brand-strong); font-size: 2.4rem;
    display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); animation: pulse 2.2s infinite;
}
.video-btn:hover { background: var(--ut-brand-strong); color: #fff; }
@keyframes pulse { 70% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.video-modal { background: #000; border: 0; border-radius: 16px; overflow: hidden; }
.video-modal .btn-close { position: absolute; top: -2.5rem; right: 0; opacity: 1; }

/* ---------- Pillars (about) ---------- */
.pillar { height: 100%; background: #fff; border-radius: var(--ut-radius); padding: 1.75rem; border: 1px solid var(--ut-line); }
.pillar i { font-size: 1.6rem; color: var(--ut-brand-strong); }
.pillar h3 { font-size: 1.1rem; margin: .85rem 0 .4rem; }
.pillar p { font-size: .94rem; margin: 0; color: var(--ut-muted); }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
@media (max-width: 1199.98px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
.portfolio-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--ut-line); border-radius: var(--ut-radius); overflow: hidden; transition: transform .3s var(--ut-ease), box-shadow .3s; }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--ut-shadow); }
.portfolio-thumb { background: var(--ut-tint); aspect-ratio: 6 / 5; display: grid; place-items: center; overflow: hidden; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ut-ease); }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.06); }
.portfolio-meta { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; }
.portfolio-meta h3 { font-size: 1rem; margin: 0; color: var(--ut-ink); }
.portfolio-meta i { color: var(--ut-brand-strong); transition: transform .2s var(--ut-ease); }
.portfolio-card:hover .portfolio-meta i { transform: translate(2px, -2px); }

/* ---------- Stats ---------- */
.stats-band { background: var(--ut-ink); color: #fff; padding: clamp(3.5rem, 7vw, 5rem) 0; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 145, 78, .35), transparent); }
.stat { position: relative; text-align: center; padding: 1rem; }
.stat i { font-size: 1.8rem; color: var(--ut-brand); }
.stat-value { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: .5rem 0 .25rem; font-variant-numeric: tabular-nums; }
.stat-label { color: rgba(255, 255, 255, .7); font-weight: 500; }

/* ---------- Industries ---------- */
.industry-tile {
    height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    padding: 1.5rem; border-radius: var(--ut-radius); background: #fff; border: 1px solid var(--ut-line);
    font-weight: 700; color: var(--ut-ink); transition: transform .3s var(--ut-ease), box-shadow .3s, border-color .3s;
}
.industry-tile i { font-size: 1.6rem; color: var(--ut-brand-strong); }
.industry-tile:hover { transform: translateY(-4px); box-shadow: var(--ut-shadow); border-color: transparent; }

/* ---------- Clients marquee ---------- */
.clients { padding: 3rem 0; border-bottom: 1px solid var(--ut-line); background: #fff; }
.clients-title { text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ut-muted); margin-bottom: 1.75rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex: none; width: 220px; height: 80px; display: grid; place-items: center; padding: 0 2rem; }
.marquee-item img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.marquee-item img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Case studies ---------- */
.case-index { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 3.5rem; }
.case-index a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ut-ink-2); padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--ut-line); transition: all .2s; }
.case-index a:hover { border-color: var(--ut-brand); color: var(--ut-brand-strong); background: var(--ut-brand-soft); }

.case-study { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.case-study + .case-study { border-top: 1px solid var(--ut-line); }
.case-study.is-reversed .case-media { order: 2; }
.case-media { background: var(--ut-tint); border-radius: 24px; padding: 1rem; border: 1px solid var(--ut-line); }
.case-media img { display: block; width: 100%; border-radius: 16px; background: #fff; }
.case-number { display: block; font-size: 3rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ut-brand); margin-bottom: .5rem; }
.case-body h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.case-block { margin-top: 1.5rem; padding-left: 1.25rem; border-left: 3px solid var(--ut-brand-soft); }
.case-block h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ut-brand-strong); margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.case-block p { margin: 0; }
@media (max-width: 991.98px) {
    .case-study { grid-template-columns: 1fr; }
    .case-study.is-reversed .case-media { order: 0; }
}

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--ut-line); border-radius: var(--ut-radius-sm); text-decoration: none; color: var(--ut-ink); font-weight: 600; transition: border-color .2s, box-shadow .2s, transform .2s; }
.contact-item:hover { border-color: var(--ut-brand); box-shadow: var(--ut-shadow-sm); transform: translateX(4px); color: var(--ut-ink); }
.contact-item small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ut-muted); }
.contact-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--ut-brand-soft); color: var(--ut-brand-strong); font-size: 1.3rem; }

.form-card { background: #fff; border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--ut-shadow-lg); border: 1px solid var(--ut-line); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.form-label { font-weight: 600; font-size: .9rem; color: var(--ut-ink-2); }
.form-label .req { color: var(--ut-brand-strong); }
.form-control { border-radius: 12px; padding: .75rem 1rem; border-color: #DDD6CE; background: #FCFBFA; }
.form-control:focus { border-color: var(--ut-brand); box-shadow: 0 0 0 4px rgba(232, 145, 78, .18); background: #fff; }
.form-status:not(:empty) { margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; }
.form-status.is-success { background: #E9F7EF; color: #17663A; }
.form-status.is-error { background: #FDECEC; color: #A12626; }
.form-modal { border: 0; border-radius: 24px; }
.form-modal .modal-header { border: 0; padding: 1.5rem 1.75rem .5rem; }
.form-modal .modal-title { font-size: 1.4rem; }
.form-modal .modal-body { padding: 1rem 1.75rem 1.75rem; }

/* ---------- TGRC ---------- */
.tgrc-hero {
    position: relative; isolation: isolate; color: #fff; padding: clamp(5rem, 12vw, 9rem) 0;
    background: url("../img/services/bg-img.jpg") center / cover no-repeat;
}
.tgrc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 24, 31, .25) 0%, rgba(20, 24, 31, .75) 45%, rgba(20, 24, 31, .92) 100%); }
.tgrc-hero-content { max-width: 640px; margin-left: auto; }
.tgrc-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.25; margin-bottom: 2rem; }
@media (max-width: 991.98px) {
    .tgrc-hero::before { background: rgba(20, 24, 31, .8); }
    .tgrc-hero-content { margin-left: 0; }
}

.category-tile { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 1.75rem 1rem; border-radius: var(--ut-radius); border: 1px solid var(--ut-line); background: #fff; font-weight: 600; color: var(--ut-ink); font-size: .95rem; line-height: 1.4; transition: transform .3s var(--ut-ease), box-shadow .3s; }
.category-tile img { width: 72px; height: 72px; object-fit: contain; }
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--ut-shadow); }

.tgrc-service { height: 100%; display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.75rem; border-radius: var(--ut-radius); background: #fff; border: 1px solid var(--ut-line); transition: box-shadow .3s, transform .3s var(--ut-ease); }
.tgrc-service:hover { box-shadow: var(--ut-shadow); transform: translateY(-3px); }
.tgrc-service img { width: 56px; height: 56px; flex: none; object-fit: contain; }
.tgrc-service h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.tgrc-service p { margin: 0; font-size: .95rem; }

.team-panel { height: 100%; border-radius: 24px; padding: clamp(1.75rem, 4vw, 2.5rem); background: var(--ut-tint); border: 1px solid var(--ut-line); }
.team-panel h3 { font-size: 1.4rem; margin: 1rem 0 .75rem; }
.team-panel p { margin: 0; }
.team-panel-icon { width: 56px; height: 56px; object-fit: contain; }
.team-panel-brand { background: var(--ut-gradient-deep); border: 0; }
.team-panel-ink { background: var(--ut-ink); border: 0; }
.team-panel-brand, .team-panel-ink { color: rgba(255, 255, 255, .92); }
.team-panel-brand h3, .team-panel-ink h3 { color: #fff; }
.team-panel-brand .team-panel-icon, .team-panel-ink .team-panel-icon { filter: brightness(0) invert(1); }
.team-panel:not(.team-panel-brand):not(.team-panel-ink) .team-panel-icon { filter: none; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .3rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
    background: var(--ut-brand-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 75% no-repeat;
}
.check-list strong { color: var(--ut-ink); }
.check-list small { color: var(--ut-muted); }
@media (min-width: 768px) { .check-list-cols { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

/* ---------- GPSR / prose ---------- */
.callout { display: flex; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--ut-radius-sm); background: var(--ut-brand-soft); border-left: 4px solid var(--ut-brand); }
.callout i { color: var(--ut-brand-strong); font-size: 1.3rem; }
.callout p { margin: 0; color: var(--ut-ink-2); font-weight: 500; }
.prose p { color: var(--ut-text); }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding: 1.5rem 1.5rem 1.5rem 4.75rem; border: 1px solid var(--ut-line); border-radius: var(--ut-radius); background: #fff; }
.steps li::before { content: counter(step); position: absolute; left: 1.5rem; top: 1.5rem; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ut-gradient); color: #fff; font-weight: 800; }
.steps h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.steps p { margin: 0; }

/* ---------- Privacy policy ---------- */
.policy { display: grid; gap: 1.25rem; }
.policy-section { padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--ut-line); border-radius: var(--ut-radius); background: #fff; }
.policy-section h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.policy-section h3 { font-size: 1.02rem; margin: 1.25rem 0 .5rem; }
.policy-section ul { padding-left: 1.25rem; }
.policy-section li { margin-bottom: .35rem; }
.policy-section li::marker { color: var(--ut-brand); }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section .highlight { margin: 1rem 0; padding: 1rem 1.25rem; border-radius: var(--ut-radius-sm); background: var(--ut-brand-soft); border-left: 4px solid var(--ut-brand); }
.policy-section .highlight p { margin: 0; color: var(--ut-ink-2); }
.policy-section .data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1rem 0; border: 1px solid var(--ut-line); border-radius: var(--ut-radius-sm); overflow: hidden; font-size: .95rem; }
.policy-section .data-table th, .policy-section .data-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--ut-line); }
.policy-section .data-table th { background: var(--ut-tint); color: var(--ut-ink); font-weight: 700; }
.policy-section .data-table tr:last-child td { border-bottom: 0; }
.policy-contact { background: var(--ut-tint); }
.policy-contact p { margin-bottom: .4rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.section + .cta-band, .section-tint + .cta-band { padding-top: clamp(2rem, 4vw, 3rem); }
.cta-card {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
    padding: clamp(2rem, 5vw, 3.5rem); border-radius: 28px; background: var(--ut-gradient-deep); color: #fff;
}
.cta-card::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -200px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .1); pointer-events: none; }
.cta-card > div { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .5rem; }
.cta-card p { margin: 0; color: rgba(255, 255, 255, .92); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-card .btn-outline-light { --bs-btn-hover-color: var(--ut-brand-strong); }

/* ---------- Footer ---------- */
.site-footer { background: #15181D; color: rgba(255, 255, 255, .7); padding: clamp(3.5rem, 7vw, 5rem) 0 0; font-size: .95rem; }
.footer-brand { display: inline-block; background: #fff; padding: .4rem .9rem; border-radius: 14px; }
.footer-brand img { height: 54px; width: auto; display: block; }
.footer-about { margin: 1.25rem 0; max-width: 360px; }
.footer-iso { background: #fff; padding: .5rem .75rem; border-radius: 10px; height: 56px; width: auto; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 1.25rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a { color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--ut-brand); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.footer-contact li { display: flex; gap: .85rem; }
.footer-contact i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .07); color: var(--ut-brand); }
.footer-contact span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .45); font-weight: 600; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { color: var(--ut-brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer-bottom a:hover { color: var(--ut-brand); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020; width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: var(--ut-ink); color: #fff; font-size: 1.2rem; box-shadow: var(--ut-shadow);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ut-ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--ut-brand-strong); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ut-ease), transform .7s var(--ut-ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
    .hero-visual { padding-left: 0; }
    .float-card-top { left: .75rem; }
}
@media (max-width: 575.98px) {
    .float-card { padding: .6rem .8rem; }
    .float-card i { width: 36px; height: 36px; font-size: 1.1rem; }
    .float-card-top { top: 1rem; }
    .media-frame::before { inset: 1rem -.5rem -1rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .marquee-item[aria-hidden="true"] { display: none; }
}

/* Only flag errors; don't paint optional/valid fields green */
.was-validated .form-control:valid { border-color: #DDD6CE; background-image: none; padding-right: 1rem; }
.was-validated .form-control:valid:focus { border-color: var(--ut-brand); box-shadow: 0 0 0 4px rgba(232, 145, 78, .18); }
