/* Flexi Retail Software — public site styles.
   Colours, fonts and sizes come from CSS variables written by the admin Theme page. */
:root {
    --primary: #c5a04a;
    --primary-rgb: 197, 160, 74;
    --primary-contrast: #191815;
    --secondary: #a98431;
    --accent-light: #e4c87f;
    --heading: #191815;
    --ink: #3a372f;
    --muted: #6f6b62;
    --body-bg: #ffffff;
    --light: #f8f5ee;
    --topbar-bg: #0b0a08;
    --header-bg: #12110e;
    --cta-bg: #191815;
    --footer-bg: #12110e;
    --dark: #12110e;
    --line: rgba(25, 24, 21, .1);
    --overlay-rgb: 11, 10, 8;
    --slider-overlay: .62;
    --header-overlay: .72;
    --font-body: "Nunito", system-ui, sans-serif;
    --font-heading: "Rubik", system-ui, sans-serif;
    --heading-scale: 1;
    --nav-font-size: 15px;
    --logo-height: 54px;
    --slider-height: 88vh;
    --btn-radius: 6px;
    --card-radius: 12px;
    --shadow-sm: 0 4px 14px rgba(20, 18, 14, .06);
    --shadow-md: 0 18px 40px rgba(20, 18, 14, .1);
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--body-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2 {
    font-family: var(--font-heading);
    color: var(--heading);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
}
a { color: var(--secondary); transition: color .2s ease; }
a:hover { color: var(--heading); }
img { max-width: 100%; }
::selection { background: rgba(var(--primary-rgb), .3); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--secondary);
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.lead-copy { color: var(--muted); font-size: 1.06rem; line-height: 1.85; }
.section-pad { padding: 96px 0; }
.soft-section { background: var(--light); }

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--btn-radius);
    padding: .65rem 1.4rem;
    transition: all .25s ease;
}
.btn-lg { padding: .85rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; }
.btn-primary {
    color: var(--primary-contrast);
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
    color: #fff !important;
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(var(--primary-rgb), .35);
}
.btn-outline-light { border-width: 2px; }
.btn-outline-light:hover { color: var(--heading); }
.btn-outline-dark { border-width: 2px; border-color: var(--heading); color: var(--heading); }
.btn-outline-dark:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-contrast); }
.btn:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .55); outline-offset: 2px; }

/* ---------- Top bar & header ---------- */
.site-topbar { background: var(--topbar-bg); color: rgba(255, 255, 255, .72); font-size: .82rem; }
.site-topbar .container { min-height: 42px; gap: 24px; }
.topbar-items { display: flex; flex-wrap: wrap; gap: 26px; }
.topbar-items span, .topbar-items a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar-items a:hover { color: var(--accent-light); }
.topbar-items i { color: var(--primary); }
.topbar-tagline { color: var(--accent-light); font-weight: 700; letter-spacing: .04em; }

.site-header {
    position: sticky;
    z-index: 1030;
    top: 0;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-sticky { box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.site-header .navbar { min-height: 80px; padding-top: 10px; padding-bottom: 10px; }
.navbar-brand { padding: 0; }
.brand-logo { display: block; height: var(--logo-height); width: auto; max-width: 200px; object-fit: contain; }
.site-header .navbar-nav .nav-link {
    position: relative;
    margin: 0 4px;
    padding: 10px 12px !important;
    color: rgba(255, 255, 255, .88);
    font-size: var(--nav-font-size);
    font-weight: 700;
}
.site-header .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.site-header .navbar-nav .nav-link:hover, .site-header .navbar-nav .nav-link.active { color: var(--accent-light); }
.site-header .navbar-nav .nav-link:hover::after, .site-header .navbar-nav .nav-link.active::after { transform: scaleX(1); }
.site-header .nav-cta { margin-left: 16px; font-size: var(--nav-font-size); }
.navbar-toggler { border-color: rgba(255, 255, 255, .3); padding: 8px 10px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .4); }

/* ---------- Alignment helpers ---------- */
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }

/* ---------- Home slider ---------- */
.home-hero { position: relative; background: var(--dark); }
.home-hero .carousel-item { position: relative; height: max(var(--slider-height), 560px); overflow: hidden; }
.home-carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 7s ease-out;
}
.home-hero .carousel-item.active .home-carousel-image { transform: scale(1); }
.carousel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(var(--overlay-rgb), .35) 0%, rgba(var(--overlay-rgb), 0) 30%, rgba(var(--overlay-rgb), 0) 65%, rgba(var(--overlay-rgb), .55) 100%),
        rgba(var(--overlay-rgb), var(--slider-overlay));
}
.home-hero.align-left .carousel-overlay {
    background:
        linear-gradient(90deg, rgba(var(--overlay-rgb), calc(var(--slider-overlay) + .22)) 0%, rgba(var(--overlay-rgb), var(--slider-overlay)) 45%, rgba(var(--overlay-rgb), calc(var(--slider-overlay) - .2)) 100%),
        linear-gradient(180deg, rgba(var(--overlay-rgb), .3) 0%, rgba(var(--overlay-rgb), 0) 35%, rgba(var(--overlay-rgb), .45) 100%);
}
.home-hero.align-right .carousel-overlay {
    background:
        linear-gradient(270deg, rgba(var(--overlay-rgb), calc(var(--slider-overlay) + .22)) 0%, rgba(var(--overlay-rgb), var(--slider-overlay)) 45%, rgba(var(--overlay-rgb), calc(var(--slider-overlay) - .2)) 100%),
        linear-gradient(180deg, rgba(var(--overlay-rgb), .3) 0%, rgba(var(--overlay-rgb), 0) 35%, rgba(var(--overlay-rgb), .45) 100%);
}
.home-hero .carousel-caption {
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 60px 0 90px;
    background: none;
    text-align: inherit;
}
.home-hero-copy { max-width: 760px; }
.home-hero.align-center .home-hero-copy { margin: 0 auto; }
.home-hero.align-right .home-hero-copy { margin-left: auto; }
.home-hero .eyebrow { color: var(--accent-light); }
.eyebrow-line { display: inline-block; width: 36px; height: 2px; background: var(--primary); }
.home-hero.align-center .eyebrow-line, .home-hero.align-right .eyebrow-line { display: none; }
.home-hero h1, .home-hero .h1 {
    margin: 0 0 22px;
    color: #fff;
    font-size: calc(clamp(2.3rem, 5vw, 4.1rem) * var(--heading-scale));
    font-weight: 700;
    line-height: 1.08;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.home-hero .hero-lead {
    max-width: 640px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, .86);
    font-size: 1.15rem;
    line-height: 1.75;
}
.home-hero.align-center .hero-lead { margin-left: auto; margin-right: auto; }
.home-hero.align-right .hero-lead { margin-left: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.home-hero.align-center .hero-actions { justify-content: center; }
.home-hero.align-right .hero-actions { justify-content: flex-end; }

/* Caption entrance animation */
.home-hero .carousel-item .home-hero-copy > * { opacity: 0; transform: translateY(26px); }
.home-hero .carousel-item.active .home-hero-copy > * { animation: heroIn .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.home-hero .carousel-item.active .home-hero-copy > *:nth-child(2) { animation-delay: .12s; }
.home-hero .carousel-item.active .home-hero-copy > *:nth-child(3) { animation-delay: .24s; }
.home-hero .carousel-item.active .home-hero-copy > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.home-hero .carousel-control-prev, .home-hero .carousel-control-next { z-index: 3; width: 7%; opacity: 1; }
.carousel-arrow {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    backdrop-filter: blur(4px);
    transition: all .25s ease;
}
.carousel-control-prev:hover .carousel-arrow, .carousel-control-next:hover .carousel-arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-contrast);
}
.home-hero .carousel-indicators { z-index: 3; margin-bottom: 100px; }
.home-hero .carousel-indicators [data-bs-target] {
    width: 30px;
    height: 4px;
    margin: 0 5px;
    border: 0;
    border-radius: 2px;
    background-color: #fff;
    opacity: .45;
    transition: all .3s ease;
}
.home-hero .carousel-indicators .active { width: 54px; background-color: var(--primary); opacity: 1; }

/* ---------- Home highlight cards ---------- */
.home-facts { position: relative; z-index: 4; margin-top: -70px; }
.fact-row { overflow: hidden; border-radius: var(--card-radius); box-shadow: var(--shadow-md); }
.fact-card {
    display: flex;
    height: 100%;
    min-height: 150px;
    align-items: flex-start;
    gap: 18px;
    padding: 32px 28px;
    background: var(--primary);
    color: var(--primary-contrast);
}
.fact-card h2 { margin: 0 0 8px; color: inherit; font-size: 1.15rem; }
.fact-card p { margin: 0; font-size: .93rem; line-height: 1.65; opacity: .88; }
.fact-icon {
    display: inline-flex;
    flex: 0 0 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    font-size: 1.35rem;
}
.home-facts .col-md-4:nth-child(2) .fact-card { background: var(--cta-bg); color: #fff; }
.home-facts .col-md-4:nth-child(2) .fact-card h2, .home-facts .col-md-4:nth-child(2) .fact-icon { color: var(--accent-light); }
.home-facts .col-md-4:nth-child(2) .fact-icon { background: rgba(255, 255, 255, .08); }
.home-facts .col-md-4:nth-child(3) .fact-card { background: #fff; color: var(--ink); }
.home-facts .col-md-4:nth-child(3) .fact-card h2 { color: var(--heading); }
.home-facts .col-md-4:nth-child(3) .fact-icon { background: rgba(var(--primary-rgb), .15); color: var(--secondary); }

/* ---------- Section titles ---------- */
.section-title { position: relative; margin-bottom: 48px; padding-bottom: 22px; }
.section-title h2 { margin: 0; font-size: calc(clamp(1.9rem, 3.4vw, 2.75rem) * var(--heading-scale)); }
.section-title::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90px;
    height: 4px;
    border-radius: 2px;
    background: var(--primary);
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 6px;
    height: 4px;
    background: var(--body-bg);
    animation: titleRun 4s infinite linear;
}
.soft-section .section-title::after { background: var(--light); }
.section-title.align-center { margin-left: auto; margin-right: auto; max-width: 820px; }
.section-title.align-center::before { left: 50%; margin-left: -45px; }
.section-title.align-center::after { left: 50%; margin-left: -45px; }
.section-title.section-title-left { margin-bottom: 26px; }
.section-intro { max-width: 820px; margin: 0 0 48px; }
.section-intro.align-center { margin-left: auto; margin-right: auto; }
@keyframes titleRun { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(84px); } }

/* ---------- Content blocks ---------- */
.check-list { margin: 26px 0 30px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; color: var(--heading); font-weight: 700; }
.check-list i {
    display: inline-flex;
    flex: 0 0 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-contrast);
    font-size: .72rem;
}
.framed-image { position: relative; padding: 0 0 22px 22px; }
.framed-image::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%;
    height: 75%;
    border-radius: var(--card-radius);
    background: var(--primary);
    opacity: .9;
}
.framed-image img {
    position: relative;
    display: block;
    width: 100%;
    height: 460px;
    border-radius: var(--card-radius);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}
.promise-box {
    margin: 26px 0 30px;
    padding: 22px 24px;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
    background: var(--light);
}
.promise-box h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.15rem; }
.promise-box h3 i { color: var(--secondary); }
.promise-box p { margin: 0; color: var(--muted); }

.service-card {
    position: relative;
    height: 100%;
    padding: 40px 32px 44px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: #fff;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-md); }
.service-icon {
    display: inline-flex;
    width: 66px;
    height: 66px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 16px;
    background: rgba(var(--primary-rgb), .14);
    color: var(--secondary);
    font-size: 1.5rem;
    transition: all .3s ease;
}
.service-card:hover .service-icon { background: var(--primary); color: var(--primary-contrast); transform: rotate(-6deg); }
.service-card h3 { margin: 0 0 12px; font-size: 1.25rem; }
.service-card p { margin: 0; color: var(--muted); }
.service-link {
    position: absolute;
    left: 50%;
    bottom: -22px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: -22px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-contrast);
    opacity: 0;
    transition: all .3s ease;
}
.service-card:hover .service-link, .service-link:focus { opacity: 1; color: var(--primary-contrast); }

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card-media { position: relative; overflow: hidden; }
.product-card-media img { display: block; width: 100%; height: 220px; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-card-media img { transform: scale(1.06); }
.product-card-icon {
    position: absolute;
    left: 24px;
    bottom: -24px;
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-contrast);
    font-size: 1.1rem;
}
.product-card-media { overflow: visible; }
.product-card-media img { border-radius: var(--card-radius) var(--card-radius) 0 0; }
.product-card-copy { padding: 38px 26px 28px; }
.product-card-copy h2 { margin: 0 0 10px; font-size: 1.25rem; }
.product-card-copy p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Call to action ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    background: var(--cta-bg);
    color: #fff;
}
.cta-band::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), .3), transparent 70%);
}
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { max-width: 680px; margin: 0; color: #fff; font-size: calc(clamp(1.7rem, 3vw, 2.5rem) * var(--heading-scale)); }
.cta-band .eyebrow { color: var(--accent-light); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
    position: relative;
    display: flex;
    min-height: 440px;
    align-items: center;
    padding: 90px 0 80px;
    background-color: var(--dark);
    background-position: center;
    background-size: cover;
    color: #fff;
    isolation: isolate;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(var(--overlay-rgb), .25) 0%, rgba(var(--overlay-rgb), .6) 100%),
        rgba(var(--overlay-rgb), var(--header-overlay));
}
.page-hero.align-left::before {
    background:
        linear-gradient(90deg, rgba(var(--overlay-rgb), calc(var(--header-overlay) + .15)) 0%, rgba(var(--overlay-rgb), calc(var(--header-overlay) - .15)) 100%),
        linear-gradient(180deg, rgba(var(--overlay-rgb), .2) 0%, rgba(var(--overlay-rgb), .5) 100%);
}
.page-hero.align-right::before {
    background:
        linear-gradient(270deg, rgba(var(--overlay-rgb), calc(var(--header-overlay) + .15)) 0%, rgba(var(--overlay-rgb), calc(var(--header-overlay) - .15)) 100%),
        linear-gradient(180deg, rgba(var(--overlay-rgb), .2) 0%, rgba(var(--overlay-rgb), .5) 100%);
}
.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
}
.page-hero-inner { position: relative; }
.page-hero .eyebrow { color: var(--accent-light); }
.page-hero h1 {
    max-width: 860px;
    margin: 0 0 18px;
    color: #fff;
    font-size: calc(clamp(2.2rem, 4.6vw, 3.6rem) * var(--heading-scale));
    text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}
.page-hero-copy { max-width: 680px; margin: 0 0 26px; color: rgba(255, 255, 255, .85); font-size: 1.12rem; line-height: 1.75; }
.page-hero.align-center h1, .page-hero.align-center .page-hero-copy { margin-left: auto; margin-right: auto; }
.page-hero.align-right h1, .page-hero.align-right .page-hero-copy { margin-left: auto; }
.page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 40px;
    background: rgba(255, 255, 255, .06);
    font-size: .88rem;
    backdrop-filter: blur(4px);
}
.page-breadcrumb a { color: #fff; text-decoration: none; font-weight: 700; }
.page-breadcrumb a:hover { color: var(--accent-light); }
.page-breadcrumb i { color: var(--primary); font-size: .65rem; }
.page-breadcrumb span { color: var(--accent-light); }

/* ---------- Contact & demo ---------- */
.contact-list { margin-top: 30px; }
.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: #fff;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.contact-detail:hover { border-color: rgba(var(--primary-rgb), .5); box-shadow: var(--shadow-sm); }
.contact-icon {
    display: inline-flex;
    flex: 0 0 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary);
    color: var(--primary-contrast);
}
.contact-detail strong { display: block; color: var(--heading); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.contact-detail div > a, .contact-detail div > span { display: block; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-detail div > a:hover { color: var(--secondary); }
.step-list { margin: 28px 0; padding: 0; list-style: none; counter-reset: none; }
.step-list li { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; color: var(--heading); font-weight: 700; }
.step-number {
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cta-bg);
    color: var(--accent-light);
    font-family: var(--font-heading);
}
.demo-image { display: block; width: 100%; max-height: 300px; border-radius: var(--card-radius); object-fit: cover; box-shadow: var(--shadow-md); }

.form-panel {
    padding: 40px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--primary);
    border-radius: var(--card-radius);
    background: #fff;
    box-shadow: var(--shadow-md);
}
.form-panel { scroll-margin-top: 110px; }
.form-panel h2 { margin: 0 0 8px; font-size: calc(1.75rem * var(--heading-scale)); }
.form-panel > p { color: var(--muted); }
.form-label { margin-bottom: 6px; color: var(--heading); font-size: .92rem; font-weight: 700; }
.optional-label { color: var(--muted); font-weight: 400; }
.form-control, .form-select {
    min-height: 50px;
    border: 1px solid #ddd7ca;
    border-radius: calc(var(--btn-radius) + 2px);
    background-color: var(--light);
    font-size: .98rem;
}
textarea.form-control { min-height: 140px; }
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 .22rem rgba(var(--primary-rgb), .2);
}
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-panel .alert { border-radius: calc(var(--btn-radius) + 2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, .7); }
.footer-main { padding-top: 76px; padding-bottom: 56px; }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.footer-brand:hover { color: var(--accent-light); }
.footer-logo { height: 48px; width: auto; }
.footer-summary { max-width: 380px; margin: 18px 0 22px; line-height: 1.8; }
.site-footer h2 { position: relative; margin: 0 0 24px; padding-bottom: 14px; color: #fff; font-size: 1.1rem; }
.site-footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 2px; background: var(--primary); }
.footer-links, .footer-contact { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: all .2s ease; }
.footer-links a::before { content: "\f105"; margin-right: 10px; color: var(--primary); font-family: "Font Awesome 5 Free"; font-weight: 900; }
.footer-links a:hover { padding-left: 4px; color: var(--accent-light); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact i { flex: 0 0 18px; margin-top: 6px; color: var(--primary); }
.footer-contact a { color: rgba(255, 255, 255, .72); text-decoration: none; word-break: break-word; }
.footer-contact a:hover { color: var(--accent-light); }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }

.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 99;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-contrast);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--secondary); color: #fff; }

/* ---------- Alignment: justify ---------- */
.align-justify { text-align: justify; }
.align-justify h1, .align-justify h2, .align-justify .h1 { text-align: left; }
.section-intro.align-justify { text-align: justify; }

/* Keyword H1 in the slider, styled as the small eyebrow line */
.home-hero h1.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-light);
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.5;
    text-shadow: none;
}

/* ---------- Industries (home) ---------- */
.industry-card {
    display: flex;
    height: 100%;
    gap: 18px;
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.industry-card:hover { transform: translateY(-4px); border-color: rgba(var(--primary-rgb), .45); box-shadow: var(--shadow-md); }
.industry-icon {
    display: inline-flex;
    flex: 0 0 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--cta-bg);
    color: var(--accent-light);
    font-size: 1.25rem;
}
.industry-card h3 { margin: 2px 0 8px; font-size: 1.12rem; }
.industry-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }

/* ---------- FAQ (home) ---------- */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: #fff;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.faq-item[open] { border-color: rgba(var(--primary-rgb), .5); box-shadow: var(--shadow-sm); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.08rem; }
.faq-item summary i {
    display: inline-flex;
    flex: 0 0 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), .15);
    color: var(--secondary);
    font-size: .8rem;
    transition: transform .25s ease;
}
.faq-item[open] summary i { transform: rotate(45deg); background: var(--primary); color: var(--primary-contrast); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ---------- Custom pages ---------- */
.rich-content { max-width: 920px; margin: 0 auto; font-size: 1.04rem; line-height: 1.85; }
.rich-content > :first-child { margin-top: 0; }
.rich-content h2 { margin: 2.2rem 0 1rem; font-size: calc(clamp(1.6rem, 3vw, 2.2rem) * var(--heading-scale)); }
.rich-content h3 { margin: 1.8rem 0 .8rem; font-size: calc(1.4rem * var(--heading-scale)); }
.rich-content h4 { margin: 1.5rem 0 .6rem; font-size: 1.15rem; }
.rich-content p, .rich-content li { color: var(--ink); }
.rich-content ul, .rich-content ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.rich-content li { margin-bottom: .4rem; }
.rich-content blockquote { margin: 1.6rem 0; padding: 18px 24px; border-left: 4px solid var(--primary); border-radius: 0 var(--card-radius) var(--card-radius) 0; background: var(--light); font-size: 1.1rem; }
.rich-content img { display: block; max-width: 100%; height: auto; margin: 1.6rem auto; border-radius: var(--card-radius); box-shadow: var(--shadow-sm); }
.rich-content a { font-weight: 700; }
.rich-content .ql-align-center { text-align: center; }
.rich-content .ql-align-right { text-align: right; }
.rich-content .ql-align-justify { text-align: justify; }
.rich-content .ql-indent-1 { padding-left: 3em; }
.rich-content .ql-indent-2 { padding-left: 6em; }
.rich-content .ql-indent-3 { padding-left: 9em; }
.preview-banner { padding: 10px 16px; background: #fff4d6; color: #6b5419; font-size: .9rem; font-weight: 700; text-align: center; }

/* ---------- Footer SEO line ---------- */
.footer-seo { max-width: 900px; margin: 0 auto 8px; color: rgba(255, 255, 255, .45); font-size: .8rem; line-height: 1.6; }

/* ---------- reCAPTCHA ---------- */
.captcha-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.captcha-box .g-recaptcha { transform-origin: 0 0; }
.captcha-note { color: #b3261e; font-size: .88rem; font-weight: 700; }
.grecaptcha-badge { z-index: 98; }
body:has(.grecaptcha-badge) .back-to-top { bottom: 92px; }
@media (max-width: 360px) { .captcha-box .g-recaptcha { transform: scale(.88); } }

/* ---------- WhatsApp chat ---------- */
.wa-widget { position: fixed; bottom: 24px; z-index: 1040; display: flex; flex-direction: column; gap: 12px; }
.wa-right { right: 24px; align-items: flex-end; }
.wa-left { left: 24px; align-items: flex-start; }
.wa-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    padding: 0 22px 0 16px;
    border-radius: 40px;
    background: #25d366;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(18, 140, 126, .35);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-button:hover, .wa-button:focus { background: #1ebe5b; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(18, 140, 126, .45); }
.wa-button:focus-visible { outline: 3px solid rgba(37, 211, 102, .5); outline-offset: 3px; }
.wa-icon { width: 30px; height: 30px; flex: 0 0 30px; }
.wa-icon-sm { width: 20px; height: 20px; flex: 0 0 20px; }
.wa-button { position: relative; isolation: isolate; }
.wa-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(37, 211, 102, .45);
    animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.25, 1.45); opacity: 0; } }
.wa-bubble {
    width: min(330px, calc(100vw - 32px));
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
    animation: waIn .35s cubic-bezier(.2, .7, .2, 1);
}
@keyframes waIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.wa-bubble-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #075e54; color: #fff; }
.wa-avatar { width: 42px; height: 42px; flex: 0 0 42px; padding: 4px; border-radius: 50%; background: #fff; object-fit: contain; }
.wa-bubble-head strong { display: block; color: #fff; font-size: .95rem; line-height: 1.2; }
.wa-bubble-head small { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .8); font-size: .76rem; }
.wa-online { width: 8px; height: 8px; border-radius: 50%; background: #25d366; }
.wa-close { margin-left: auto; padding: 0 4px; border: 0; background: none; color: #fff; font-size: 1.6rem; line-height: 1; opacity: .8; }
.wa-close:hover { opacity: 1; }
.wa-bubble-body { padding: 18px 16px; background: #ece5dd; }
.wa-bubble-body p { position: relative; display: inline-block; max-width: 92%; margin: 0; padding: 10px 14px; border-radius: 0 12px 12px 12px; background: #fff; color: #303030; font-size: .93rem; line-height: 1.55; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.wa-start { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 16px 16px; padding: 11px 16px; border-radius: 30px; background: #25d366; color: #fff; font-weight: 800; text-decoration: none; }
.wa-start:hover { background: #1ebe5b; color: #fff; }
.back-to-top.above-wa.wa-side-right { bottom: 100px; }
body:has(.grecaptcha-badge) .wa-right { bottom: 92px; }
body:has(.grecaptcha-badge) .back-to-top.above-wa.wa-side-right { bottom: 168px; }
.footer-contact .fa-whatsapp, .topbar-items .fa-whatsapp { color: #25d366 !important; }
@media (max-width: 767.98px) {
    .wa-hide-mobile { display: none; }
    .wa-widget { bottom: 16px; }
    .wa-right { right: 16px; }
    .wa-left { left: 16px; }
    .wa-button { width: 56px; height: 56px; padding: 0; justify-content: center; }
    .wa-label { display: none; }
    .back-to-top.above-wa.wa-side-right { bottom: 84px; }
}
@media (min-width: 768px) { .wa-hide-desktop { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .site-header .navbar { min-height: 70px; }
    .site-header .navbar-collapse { padding: 10px 0 18px; }
    .site-header .navbar-nav .nav-link { margin: 0; padding: 11px 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .06); }
    .site-header .navbar-nav .nav-link::after { display: none; }
    .site-header .nav-cta { align-self: flex-start; margin: 16px 0 0; }
    .home-hero .carousel-item { height: max(calc(var(--slider-height) - 8vh), 560px); }
    .home-hero .carousel-control-prev, .home-hero .carousel-control-next { display: none; }
    .home-hero .carousel-indicators { margin-bottom: 40px; }
    .home-facts { margin-top: 0; }
    .fact-row { border-radius: 0; box-shadow: none; }
    .home-facts .container { max-width: 100%; padding: 0; }
    .framed-image img { height: 380px; }
    .page-hero { min-height: 360px; padding: 70px 0 60px; }
    .section-pad { padding: 76px 0; }
}
@media (max-width: 575.98px) {
    .brand-logo { height: min(var(--logo-height), 46px); }
    .home-hero .carousel-item { height: 600px; }
    .home-hero .carousel-caption { padding: 40px 0 80px; }
    .home-hero h1, .home-hero .h1 { font-size: calc(2.1rem * var(--heading-scale)); }
    .home-hero .hero-lead { font-size: 1rem; margin-bottom: 26px; }
    .hero-actions .btn { width: 100%; }
    .section-pad { padding: 62px 0; }
    .section-title { margin-bottom: 34px; }
    .framed-image { padding: 0 0 14px 14px; }
    .framed-image img { height: 290px; }
    .form-panel { padding: 26px 20px; }
    .page-hero { min-height: 320px; }
    .page-hero-copy { font-size: 1rem; }
    .cta-actions, .cta-actions .btn { width: 100%; }
    .back-to-top { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .home-hero .carousel-item .home-hero-copy > * { opacity: 1; transform: none; }
}
