/* =========================================================
   UBICOS Homepage — redesign to match reference layout
   Responsive, mobile-first. Built on Bootstrap 5 grid.
   ========================================================= */

:root {
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --gold: #F7C100;
    --gold-dark: #E0AE00;
    --ink: #111315;
    --ink-soft: #1c1f24;
    --muted: #6b7280;
    --muted-light: #9aa1ab;
    --bg-soft: #f5f5f5;
    --line: #ececec;
    --radius: 18px;
    --shadow-sm: 0 6px 24px rgba(17, 19, 21, 0.06);
    --shadow-md: 0 14px 40px rgba(17, 19, 21, 0.10);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* one section per screen on scroll */
    scroll-snap-type: y proximity;
    scroll-padding-top: 80px;
}
/* each major block becomes a snap point */
.hero-section,
section.section-pad,
.segment-block,
.cta-strip,
footer {
    scroll-snap-align: start;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { text-decoration: none; }

.section-pad { padding: 80px 0; }

/* ---------- Yellow pill badge ---------- */
/* serif display font for all headings (matches Figma) */
.hero-title,
.section-title,
.section-badge,
.segment-head h3,
.service-card h5,
.contact-info-side h3 {
    font-family: var(--serif);
}

.section-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 6px 26px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.section-title {
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.25;
    margin: 0 auto 14px;
    max-width: 760px;
}

.section-sub {
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1rem;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    transition: all .3s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.navbar-brand .ubicos-logo { height: 34px; width: auto; }

.navbar-nav .nav-link {
    color: var(--ink);
    font-weight: 500;
    margin: 0 14px;
    position: relative;
    transition: color .2s;
}
.navbar-nav .nav-link:hover { color: var(--gold-dark); }
.navbar-nav .nav-link.active { color: #000; }
/* yellow underline indicator — shows on hover and on the active section */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
    transition: transform .2s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: translateX(-50%) scaleX(1); }

/* navbar offset for anchor clicks is handled globally via html { scroll-padding-top } */

.btn-nav {
    background: var(--ink);
    color: #fff !important;
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 24px;
    transition: all .25s ease;
}
.btn-nav:hover { background: #000; transform: translateY(-1px); }

.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero-section {
    padding: 150px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero-title {
    font-weight: 700;
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    line-height: 1.18;
    margin-bottom: 22px;
}
.hero-title .hl {
    background: var(--gold);
    padding: 2px 14px;
    border-radius: 14px;
    display: inline-block;
    line-height: 1.1;
}
.hero-text {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 540px;
    margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Figma-style buttons: sharp corners + hard offset outline shadow */
.btn-gold {
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
    border-radius: 2px;
    padding: 13px 30px;
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 -2px #fff, 6px 6px 0 0 var(--ink);
    transition: all .15s ease;
}
.btn-gold:hover { background: var(--gold-dark); transform: translate(3px, 3px); box-shadow: 3px 3px 0 -2px #fff, 3px 3px 0 0 var(--ink); }

.btn-ghost {
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    border-radius: 2px;
    padding: 13px 30px;
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 0 var(--ink);
    transition: all .15s ease;
}
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translate(3px, 3px); box-shadow: 3px 3px 0 0 var(--ink); }

.hero-img-container {
    position: relative;
    text-align: center;
}
.hero-img {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* =========================================================
   WHAT WE DO — service cards
   ========================================================= */
.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 28px;
    height: 100%;
    transition: all .3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.icon-circle {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.icon-circle img { width: 52px; height: 52px; object-fit: contain; }
.icon-blue   { background: #eaf0ff; }
.icon-yellow { background: #fff5d6; }
.icon-purple { background: #f1ebff; }

.service-card h5 { font-weight: 700; margin-bottom: 20px; font-size: 1.3rem; line-height: 1.3; }
/* Figma card body: no bullet dots, spaced text lines */
.service-card ul { color: var(--muted); font-size: .95rem; padding-left: 0; margin: 0; list-style: none; }
.service-card ul li { margin-bottom: 16px; }
.service-card ul li:last-child { margin-bottom: 0; }

/* =========================================================
   MARKET SEGMENT — stacked blocks
   ========================================================= */
.segment-block { margin-top: 48px; }
.segment-block:first-of-type { margin-top: 36px; }

.segment-head { text-align: center; max-width: 820px; margin: 0 auto 28px; }
.seg-brand {
    font-weight: 800;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    letter-spacing: 2px;
    margin-bottom: 2px;
}
.seg-platform {
    font-weight: 800;
    font-size: clamp(1.5rem, 3.2vw, 2.3rem);
    margin-bottom: 16px;
}
.segment-head p { font-size: 1rem; margin-bottom: 26px; }

/* ----- per-brand colour themes ----- */
.seg-axis  .seg-brand { color: #a855f7; }
.seg-axis  .seg-platform { color: #7c2fd6; }
.seg-axis  .segment-head p { color: #9b7fc4; }
.seg-axis  .seg-glow::before { background: radial-gradient(closest-side, rgba(168,85,247,.30), transparent 70%); }

.seg-pulse .seg-brand { color: #f97316; }
.seg-pulse .seg-platform { color: #c2410c; }
.seg-pulse .segment-head p { color: #c08a6a; }
.seg-pulse .seg-glow::before { background: radial-gradient(closest-side, rgba(249,115,22,.28), transparent 70%); }

.seg-grow  .seg-brand { color: #22c55e; }
.seg-grow  .seg-platform { color: #15803d; }
.seg-grow  .segment-head p { color: #7ba98c; }
.seg-grow  .seg-glow::before { background: radial-gradient(closest-side, rgba(34,197,94,.28), transparent 70%); }

/* soft coloured halo behind the segment image */
.seg-glow { position: relative; box-shadow: none; background: transparent; overflow: visible; }
.seg-glow::before {
    content: "";
    position: absolute;
    inset: -34px;
    z-index: 0;
    border-radius: 40px;
    filter: blur(8px);
}
.seg-glow .carousel { position: relative; z-index: 1; border-radius: 22px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .10); box-shadow: var(--shadow-md); }
/* single full-bleed image per segment (Figma) */
.seg-glow > img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: clamp(300px, 40vw, 480px);
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, .10);
    box-shadow: var(--shadow-md);
}

.btn-explore {
    background: #fff;
    border: 2px solid var(--ink);
    color: var(--ink);
    font-weight: 600;
    border-radius: 2px;
    padding: 11px 30px;
    box-shadow: 6px 6px 0 0 var(--ink);
    transition: all .15s ease;
}
.btn-explore:hover { background: var(--ink); color: #fff; transform: translate(3px, 3px); box-shadow: 3px 3px 0 0 var(--ink); }

.segment-media {
    max-width: 904px;
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.segment-media img {
    width: 100%;
    height: clamp(260px, 42vw, 460px);
    object-fit: cover;
    display: block;
}
/* carousel inside each market-segment block */
.segment-media .carousel,
.segment-media .carousel-inner,
.segment-media .carousel-item {
    width: 100% !important;
    height: clamp(260px, 42vw, 460px) !important;
}
.segment-media .carousel-item { position: relative; }
.segment-media .carousel-item img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}
.segment-media .carousel-control-prev,
.segment-media .carousel-control-next { width: 8%; }
.segment-media .carousel-control-prev-icon,
.segment-media .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, .45);
    border-radius: 50%;
    padding: 16px;
    background-size: 50%;
}
.segment-media .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
}
.segment-media .carousel-indicators .active { background-color: var(--gold); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}
.testimonial-row .mySwiper {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 8px 6px;
    overflow: hidden;
}
.testimonial-row .swiper-slide { height: auto; }
.testimonial-card {
    background: #fafafa;
    border-radius: var(--radius);
    padding: 32px 30px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.testimonial-text { color: #6b7280; font-size: .96rem; line-height: 1.7; margin-bottom: 26px; }
.user-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 14px;
}
.user-info h5 { font-size: 1rem; }
.user-info small { font-size: .82rem; }
.t-arrow {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all .2s ease;
}
.t-arrow:hover { background: var(--gold); border-color: var(--gold); }
@media (max-width: 767.98px) {
    .testimonial-row { flex-wrap: wrap; gap: 18px; }
    .testimonial-card { flex: 1 1 100%; }
    .t-arrow { display: none; }
}

/* ---------- Map / media block (between CTA and footer) ---------- */
.map-block {
    width: 100%;
    height: clamp(220px, 26vw, 360px);
    background: #d9d9d9;
}

/* =========================================================
   BLOG
   ========================================================= */
.blog-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all .3s ease;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.blog-thumb { height: 210px; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-tag {
    align-self: flex-start;
    background: #fff5d6;
    color: var(--gold-dark);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.blog-title { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1.3; margin-bottom: 12px; }
.blog-excerpt { color: var(--muted); font-size: .94rem; margin-bottom: 18px; }
.blog-readmore { color: var(--ink); font-weight: 600; font-size: .9rem; margin-top: auto; }
.blog-readmore:hover { color: var(--gold-dark); }

/* ---- Featured article CTA + scrollable bordered article ---- */
.cta-mini-title {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 26px;
}
.btn-knowmore {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: 8px;
    box-shadow: 6px 6px 0 0 var(--gold);
    transition: all .2s ease;
}
.btn-knowmore:hover { color: #fff; transform: translate(2px,2px); box-shadow: 4px 4px 0 0 var(--gold); }

/* fixed blush card (Figma: 1262×472, radius 30); content scrolls inside */
.blog-article {
    width: 100%;
    max-width: 1262px;
    background: #fbeeee;
    border: none;
    border-radius: 30px;
    box-shadow: none;
    padding: 40px clamp(24px, 4vw, 56px);
    height: 472px;
    overflow-y: auto;
    scroll-behavior: smooth;
}
.blog-article::-webkit-scrollbar { width: 8px; }
.blog-article::-webkit-scrollbar-track { background: transparent; }
.blog-article::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 999px; }
.blog-article::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.3); }
.blog-article { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.18) transparent; }

.article-h2 { font-weight: 700; font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.3; color: var(--ink); margin-bottom: 20px; }
.article-h3 { font-weight: 700; font-size: clamp(1.15rem, 1.7vw, 1.4rem); color: var(--ink); margin: 30px 0 12px; }
.article-h4 { font-weight: 700; font-size: 1.05rem; margin: 20px 0 8px; color: var(--ink); }
.blog-article p { color: #4b4f54; font-size: .98rem; line-height: 1.7; margin-bottom: 16px; }
.article-list { color: #4b4f54; font-size: .98rem; line-height: 1.7; margin: 0 0 16px; padding-left: 22px; }
.article-list li { margin-bottom: 8px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-card {
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.contact-info-side {
    background: var(--ink);
    color: #fff;
    padding: 44px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.contact-info-side .social-bottom { margin-top: auto; padding-top: 30px; position: relative; z-index: 2; }
/* two overlapping translucent circles in the bottom-right corner (Figma) */
.contact-info-side::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -50px;
    width: 175px;
    height: 175px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    z-index: 1;
}
.contact-info-side::before {
    content: "";
    position: absolute;
    right: 70px;
    bottom: 10px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    z-index: 1;
}
.contact-info-side h3 { font-weight: 700; margin-bottom: 8px; }
.contact-info-side .lead-sub { color: var(--muted-light); margin-bottom: 34px; font-size: .95rem; }
.info-item { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.info-icon {
    width: 26px;
    min-width: 26px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.25rem;
}
.contact-info-side .info-item p { color: #e5e7eb; }
.hover-yellow:hover { color: var(--gold) !important; opacity: 1 !important; }
.social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: transform .2s ease;
}
.social-circle:hover { color: var(--ink); transform: translateY(-3px); }

.contact-form-side { padding: 48px 40px; }
.contact-form .form-control {
    border: none;
    border-bottom: 1.5px solid #e2e2e2;
    border-radius: 0;
    padding: 10px 2px;
    background: transparent;
    font-size: .95rem;
}
.contact-form .form-control:focus {
    box-shadow: none;
    border-bottom-color: var(--gold);
}
.contact-form .form-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.subject-radios .radio-opt {
    font-size: .82rem;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
    white-space: nowrap;
}
.subject-radios input[type="radio"] {
    accent-color: var(--gold);
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.btn.get-started {
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: 13px 40px;
    letter-spacing: .3px;
    border: none;
    box-shadow: 0 8px 18px rgba(17, 19, 21, .22);
    transition: all .2s ease;
}
.btn.get-started:hover { background: #000; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(17, 19, 21, .28); }

/* =========================================================
   CTA STRIP
   ========================================================= */
.cta-strip {
    background: #fff;
    text-align: center;
    padding: 70px 0 90px;
}
.cta-strip h2 {
    font-weight: 800;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    margin-bottom: 28px;
}
.btn-dark-pill {
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    border-radius: 2px;
    padding: 13px 38px;
    letter-spacing: .5px;
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 -2px #fff, 6px 6px 0 0 var(--ink);
    transition: all .15s ease;
}
.btn-dark-pill:hover { background: #000; color: #fff; transform: translate(3px, 3px); box-shadow: 3px 3px 0 -2px #fff, 3px 3px 0 0 var(--ink); }

/* =========================================================
   CLIENT LOGO SLIDER
   ========================================================= */
.logo-slider-container { overflow: hidden; }
.slider { overflow: hidden; position: relative; width: 100%; }
.slide-track {
    display: flex;
    align-items: center;
    width: calc(180px * 24);
    animation: scroll 38s linear infinite;
}
.slide-track:hover { animation-play-state: paused; }
.slide {
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}
.logo-img {
    max-height: 56px;
    width: auto;
    filter: grayscale(100%);
    opacity: .65;
    transition: all .3s;
}
.logo-img:hover { filter: grayscale(0); opacity: 1; }
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-180px * 12)); }
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background: var(--ink);
    color: #cbd1d9;
    padding: 70px 0 30px;
}
.footer-logo { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); display: inline-block; }
footer p { color: var(--muted-light); font-size: .92rem; }
footer h5 { color: var(--gold); font-weight: 700; margin-bottom: 20px; font-size: 1.05rem; }
.footer-link {
    display: block;
    color: var(--muted-light);
    margin-bottom: 12px;
    font-size: .92rem;
    transition: color .2s, padding-left .2s;
}
.footer-link:hover { color: var(--gold); padding-left: 4px; }
.footer-social a {
    color: var(--muted-light);
    font-size: 1.1rem;
    transition: color .2s;
}
.footer-social a:hover { color: var(--gold); }

.newsletter {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
    max-width: 320px;
}
.newsletter input {
    border: none;
    flex: 1;
    padding: 12px 16px;
    font-size: .9rem;
    outline: none;
}
.newsletter button {
    border: none;
    background: var(--gold);
    color: var(--ink);
    padding: 0 18px;
    font-size: 1.1rem;
    cursor: pointer;
}
footer hr { border-color: rgba(255, 255, 255, .12); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
    .navbar { background: #fff; }
    .navbar-collapse {
        background: #fff;
        margin-top: 14px;
        padding: 16px;
        border-radius: 14px;
        box-shadow: var(--shadow-sm);
    }
    .navbar-nav { margin: 0 0 12px !important; }
    .navbar-nav .nav-link { margin: 6px 0; }
    .btn-nav { display: inline-block; }
    .hero-section { padding: 120px 0 50px; text-align: center; }
    .hero-text { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-img { max-height: 360px; margin-top: 30px; }
    .contact-info-side { padding: 36px 28px; }
    .contact-form-side { padding: 36px 28px; }
}

@media (max-width: 767.98px) {
    .section-pad { padding: 56px 0; }
    .hero-section { padding: 110px 0 40px; }
    .service-card { padding: 28px 22px; }
    .segment-block { margin-top: 48px; }
    .cta-strip { padding: 56px 0; }
    footer { padding: 50px 0 24px; text-align: center; }
    .footer-social, .newsletter { justify-content: center; }
    .newsletter { margin-left: auto; margin-right: auto; }
    .footer-logo { margin-top: 8px; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.9rem; }
    .btn-gold, .btn-ghost { padding: 11px 22px; width: 100%; text-align: center; }
    .hero-actions { flex-direction: column; }
    .section-title { font-size: 1.5rem; }
}
