/* =====================================================================
   G.S. Accounts – site theme (Bootstrap 5.3)
   ===================================================================== */
:root {
  --gs-red: #d21e2b;
  --gs-red-dark: #a8161f;
  --gs-red-soft: #fdecee;
  --gs-navy: #0b3a63;
  --gs-navy-dark: #072742;
  --gs-ink: #16202e;
  --gs-muted: #5d6878;
  --gs-line: #e4e8ef;
  --gs-soft: #f5f7fb;
  --gs-radius: 14px;
  --gs-shadow: 0 10px 30px rgba(16, 32, 56, .08);
  --gs-shadow-lg: 0 18px 45px rgba(16, 32, 56, .14);

  --bs-primary: var(--gs-red);
  --bs-primary-rgb: 210, 30, 43;
  --bs-link-color: var(--gs-red);
  --bs-link-color-rgb: 210, 30, 43;
  --bs-link-hover-color: var(--gs-red-dark);
  --bs-link-hover-color-rgb: 168, 22, 31;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--gs-ink);
  --bs-border-radius: 10px;
}

body { background: #fff; color: var(--gs-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; color: var(--gs-ink); }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }
::selection { background: var(--gs-red); color: #fff; }

.btn { font-weight: 600; border-radius: 999px; padding: .65rem 1.4rem; }
.btn-primary {
  --bs-btn-bg: var(--gs-red); --bs-btn-border-color: var(--gs-red);
  --bs-btn-hover-bg: var(--gs-red-dark); --bs-btn-hover-border-color: var(--gs-red-dark);
  --bs-btn-active-bg: var(--gs-red-dark); --bs-btn-active-border-color: var(--gs-red-dark);
  --bs-btn-disabled-bg: var(--gs-red); --bs-btn-disabled-border-color: var(--gs-red);
  box-shadow: 0 8px 20px rgba(210, 30, 43, .25);
}
.btn-navy {
  --bs-btn-color: #fff; --bs-btn-bg: var(--gs-navy); --bs-btn-border-color: var(--gs-navy);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--gs-navy-dark); --bs-btn-hover-border-color: var(--gs-navy-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--gs-navy-dark);
}
.btn-outline-primary {
  --bs-btn-color: var(--gs-red); --bs-btn-border-color: var(--gs-red);
  --bs-btn-hover-bg: var(--gs-red); --bs-btn-hover-border-color: var(--gs-red);
  --bs-btn-active-bg: var(--gs-red-dark);
}
.text-brand { color: var(--gs-red) !important; }
.text-navy { color: var(--gs-navy) !important; }
.text-muted-2 { color: var(--gs-muted) !important; }
.bg-soft { background: var(--gs-soft) !important; }
.bg-navy { background: var(--gs-navy) !important; }

.form-control, .form-select { border-radius: 10px; padding: .7rem .95rem; border-color: var(--gs-line); }
.form-control:focus, .form-select:focus { border-color: var(--gs-red); box-shadow: 0 0 0 .2rem rgba(210, 30, 43, .15); }
.form-label { font-weight: 600; font-size: .9rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--gs-navy-dark); color: rgba(255,255,255,.82); font-size: .85rem; }
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: #fff; }
.topbar .badge-iso { background: rgba(255,255,255,.1); border-radius: 999px; padding: .2rem .7rem; font-weight: 600; }
.topbar .social a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08); }
.topbar .social a:hover { background: var(--gs-red); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(10px); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16,32,56,.09); }
.site-header .navbar { padding-top: .7rem; padding-bottom: .7rem; }
.site-header .navbar-brand img { height: 46px; width: auto; }
.site-header .nav-link { font-weight: 600; color: var(--gs-ink); padding: .5rem .85rem !important; border-radius: 8px; }
.site-header .nav-link:hover, .site-header .nav-link:focus { color: var(--gs-red); }
.site-header .nav-link.active { color: var(--gs-red); }
.site-header .dropdown-menu { border: 0; border-radius: 12px; box-shadow: var(--gs-shadow-lg); padding: .5rem; }
.site-header .dropdown-item { border-radius: 8px; padding: .5rem .9rem; font-weight: 500; }
.site-header .dropdown-item:active, .site-header .dropdown-item.active { background: var(--gs-red); }
@media (min-width: 1200px) {
  .site-header .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 3.5rem 0 3rem; color: #fff; background: linear-gradient(120deg, var(--gs-navy-dark) 0%, var(--gs-navy) 55%, #18578d 100%); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(210,30,43,.45), transparent 65%); }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin: .35rem 0 0; position: relative; z-index: 1; }
.page-hero .breadcrumb { margin: 0; position: relative; z-index: 1; --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: rgba(255,255,255,.75); font-size: .9rem; }
.page-hero .breadcrumb a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gs-red); background: var(--gs-red-soft); padding: .35rem .8rem; border-radius: 999px; margin-bottom: .9rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.35rem); margin-bottom: .75rem; }
.section-lead { color: var(--gs-muted); font-size: 1.05rem; max-width: 720px; }
.section-head { text-align: center; margin: 0 auto 3rem; }
.section-head .section-lead { margin: 0 auto; }

/* ---------- Home hero carousel ---------- */
.hero { position: relative; background: #fff; }
.hero .carousel-item { min-height: clamp(420px, 62vh, 620px); background-size: cover; background-position: right center; }
.hero .carousel-item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 38%, rgba(255,255,255,.2) 70%, rgba(255,255,255,0) 100%); }
.hero .hero-content { position: relative; z-index: 2; min-height: inherit; display: flex; flex-direction: column; justify-content: center; max-width: 620px; padding: 3rem 0; }
.hero .hero-kicker { color: var(--gs-red); font-weight: 700; font-size: 1.05rem; }
.hero h1, .hero h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.1; margin: .5rem 0 1rem; text-transform: uppercase; }
.hero p { color: var(--gs-muted); font-size: 1.1rem; }
.hero .carousel-indicators { justify-content: flex-start; margin-left: max(12px, calc((100vw - 1296px) / 2 + 12px)); margin-bottom: 1.5rem; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 5px; border-radius: 5px; background: var(--gs-navy); border: 0; }
.hero .carousel-indicators .active { background: var(--gs-red); width: 44px; }
@media (max-width: 767.98px) {
  .hero .carousel-item { background-position: 70% center; }
  .hero .carousel-item::before { background: rgba(255,255,255,.88); }
}

/* ---------- Trust strip (marquee) ---------- */
.trust-strip { background: var(--gs-navy); color: #fff; overflow: hidden; }
.trust-strip .track { display: flex; gap: 3rem; width: max-content; padding: .95rem 0; animation: marquee 38s linear infinite; }
.trust-strip:hover .track { animation-play-state: paused; }
.trust-strip a { color: #fff; font-weight: 600; white-space: nowrap; font-size: .95rem; }
.trust-strip a i { color: #ff6b75; margin-right: .5rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .trust-strip .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Cards ---------- */
.feature-card { height: 100%; background: #fff; border: 1px solid var(--gs-line); border-radius: var(--gs-radius); padding: 1.6rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--gs-shadow-lg); border-color: transparent; }
.icon-badge { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: var(--gs-red); background: var(--gs-red-soft); margin-bottom: 1rem; }
.icon-badge.navy { color: var(--gs-navy); background: #e7eff8; }
.feature-card h3, .feature-card h4 { font-size: 1.08rem; margin-bottom: .4rem; }
.feature-card p { color: var(--gs-muted); margin: 0; font-size: .95rem; }

.action-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 190px; padding: 1.75rem; border-radius: var(--gs-radius); color: #fff; overflow: hidden; background: var(--gs-navy); transition: transform .2s, box-shadow .2s; }
.action-card:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--gs-shadow-lg); }
.action-card.red { background: linear-gradient(135deg, var(--gs-red), #e8505b); }
.action-card.dark { background: linear-gradient(135deg, var(--gs-ink), #33415a); }
.action-card .num { position: absolute; right: 1rem; top: .2rem; font-size: 4.5rem; font-weight: 800; opacity: .15; }
.action-card h3 { color: #fff; font-size: 1.25rem; margin: 0; }
.action-card .go { font-weight: 600; font-size: .92rem; }
.action-card .go i { transition: transform .2s; }
.action-card:hover .go i { transform: translateX(4px); }

.course-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--gs-line); border-left: 4px solid var(--gs-red); border-radius: 12px; background: #fff; color: var(--gs-ink); transition: box-shadow .2s, transform .2s; }
.course-card:hover { box-shadow: var(--gs-shadow); transform: translateX(3px); color: var(--gs-ink); }
.course-card .icon-badge { margin: 0; width: 46px; height: 46px; flex: none; font-size: 1.1rem; }
.course-card h3 { font-size: 1rem; margin: 0 0 .15rem; }
.course-card small { color: var(--gs-muted); }

.post-card { height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: var(--gs-radius); overflow: hidden; box-shadow: var(--gs-shadow); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--gs-shadow-lg); }
.post-card .thumb { aspect-ratio: 16 / 10; background: var(--gs-soft); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .82rem; color: var(--gs-muted); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.05rem; line-height: 1.4; margin-bottom: .5rem; }
.post-card h3 a { color: var(--gs-ink); }
.post-card h3 a:hover { color: var(--gs-red); }
.post-card p { color: var(--gs-muted); font-size: .93rem; }
.post-card .more { margin-top: auto; font-weight: 600; font-size: .9rem; }

.person-card { text-align: center; background: #fff; border-radius: var(--gs-radius); padding: 1.25rem 1rem; box-shadow: var(--gs-shadow); height: 100%; }
.person-card img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; border: 4px solid var(--gs-red-soft); margin-bottom: .75rem; background: var(--gs-soft); }
.person-card h3 { font-size: 1rem; margin: 0 0 .2rem; }
.person-card p { color: var(--gs-muted); font-size: .85rem; margin: 0; }

.logo-tile { background: #fff; border: 1px solid var(--gs-line); border-radius: 12px; padding: .75rem; display: grid; place-items: center; height: 96px; }
.logo-tile img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(30%); transition: filter .2s; }
.logo-tile:hover img { filter: none; }

/* ---------- Image + video bands ---------- */
.band { position: relative; color: #fff; background-size: cover; background-position: center; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(7,39,66,.95), rgba(11,58,99,.82)); }
.band > .container { position: relative; }
.band h2 { color: #fff; }
.ratio-video { border-radius: var(--gs-radius); overflow: hidden; box-shadow: var(--gs-shadow-lg); }

.software-grid .logo-tile img { max-height: 64px; filter: none; }
.gallery-grid a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 5 / 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* ---------- Contact / call back ---------- */
.callback-card { background: var(--gs-navy); color: #fff; border-radius: 18px; padding: 2.25rem; box-shadow: var(--gs-shadow-lg); }
.callback-card h2, .callback-card h3 { color: #fff; }
.callback-card .form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.callback-card .form-control::placeholder { color: rgba(255,255,255,.6); }
.callback-card .form-control:focus { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; box-shadow: none; }
.info-tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: 12px; background: #fff; box-shadow: var(--gs-shadow); height: 100%; }
.info-tile .icon-badge { margin: 0; flex: none; }
.info-tile h3 { font-size: .95rem; margin: 0 0 .2rem; }
.info-tile p, .info-tile a { margin: 0; color: var(--gs-muted); word-break: break-word; }
.info-tile a:hover { color: var(--gs-red); }

.alert-gs { border-radius: 12px; }
.validation-summary ul { margin: 0; padding-left: 1.2rem; }

/* ---------- Swiper ---------- */
.swiper { padding-bottom: 2.6rem !important; }
.swiper-pagination-bullet-active { background: var(--gs-red); }
.swiper-slide { height: auto; }

/* ---------- Content pages ---------- */
.content-card { background: #fff; border: 1px solid var(--gs-line); border-radius: var(--gs-radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
.prose p { color: #334155; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.75rem; color: var(--gs-navy); }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding: .4rem 0 .4rem 1.9rem; color: #334155; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 7 Free"; font-weight: 900; position: absolute; left: 0; top: .45rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; color: #fff; background: var(--gs-red); }
.check-list ul { list-style: disc; padding-left: 1.2rem; margin-top: .3rem; }
.check-list ul li { padding: .15rem 0; }
.check-list ul li::before { content: none; }
.syllabus-group { border: 1px solid var(--gs-line); border-radius: 12px; padding: 1.1rem 1.25rem .4rem; margin-bottom: 1rem; }
.syllabus-group h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; color: var(--gs-navy); margin: 0 0 .5rem; }

.course-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.course-meta li { background: var(--gs-soft); border-radius: 12px; padding: .7rem 1rem; min-width: 150px; }
.course-meta small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gs-muted); font-weight: 700; }
.course-meta strong { font-size: 1rem; }

.side-nav { background: #fff; border: 1px solid var(--gs-line); border-radius: var(--gs-radius); padding: 1.25rem; }
.side-nav h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gs-muted); margin: .5rem 0 .6rem; }
.side-nav a { display: block; padding: .45rem .7rem; border-radius: 8px; color: var(--gs-ink); font-size: .92rem; }
.side-nav a:hover { background: var(--gs-soft); color: var(--gs-red); }
.side-nav a.active { background: var(--gs-red); color: #fff; }
.sticky-side { position: sticky; top: 100px; }

.data-table { --bs-table-striped-bg: var(--gs-soft); border-radius: var(--gs-radius); overflow: hidden; }
.data-table thead th { background: var(--gs-navy); color: #fff; font-weight: 600; border: 0; }
.data-table td { vertical-align: top; }

.client-list { columns: 3 220px; column-gap: 2rem; list-style: none; padding: 0; }
.client-list li { break-inside: avoid; padding: .55rem 0 .55rem 1.4rem; border-bottom: 1px dashed var(--gs-line); position: relative; }
.client-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 7px; height: 7px; border-radius: 50%; background: var(--gs-red); }

.article-media img { border-radius: var(--gs-radius); width: 100%; }
.empty-state { text-align: center; color: var(--gs-muted); padding: 3rem 1rem; }
.empty-state i { font-size: 2.5rem; color: var(--gs-line); margin-bottom: 1rem; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gs-navy-dark); color: rgba(255,255,255,.72); font-size: .94rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-logo { background: #fff; display: inline-block; padding: .55rem .8rem; border-radius: 10px; }
.site-footer .footer-logo img { height: 40px; width: auto; }
.site-footer .links li { margin-bottom: .5rem; }
.site-footer .social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); margin-right: .4rem; }
.site-footer .social a:hover { background: var(--gs-red); }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.map-embed { display: block; width: 100%; height: 340px; border: 0; }

.back-to-top { position: fixed; right: 1.1rem; bottom: 5.5rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gs-red); color: #fff; box-shadow: var(--gs-shadow-lg); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 1020; }
.back-to-top.show { opacity: 1; visibility: visible; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
