
/*      ***       */
/* Global styling */

body, html {
    height:     unset;
    margin:     0;
    display:    block;
}

.content-header {
    padding: 0 160px;

    @media only screen and (max-width: 600px) {
        padding: 0;
    }
}

#contact .content-header {
    padding-right: 17vw;
    padding-left: 17vw;

    @media only screen and (max-width: 600px) {
        padding: 0;
    }
}

/* Ensure each section takes the full viewport height */
#welcome-section, #plans, #contact, #welcomeFaq, #securityInsights {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;

    padding-top: 14vh;
    padding-bottom: 14vh;
    position: relative;
}

body {
    background-color: #000;
}

.content-header p {
    font-size: 24px !important;
}

.section-light-bg {
    background: var(--Color-Gray-Gray-100, #F0F0F0);
}

/* Cookie policy icon — fixed at bottom-left corner */
.cookie-policy {
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    left: 15px;
    z-index: 9999;
    display: flex;
    align-items: center;
    flex-shrink: 0;

    svg {
        width: 60.058px;
        height: 58.56px;
    }
}

#cookieModal .card-header {
    padding: 0 !important;
}

#cookieModal .card {
    padding: 24px !important;
    max-height: 650px;
}

.cookie-policy-form {

    .form-switch .form-check-input:checked {
        border-color: #AC5811 !important;
        background-color: #AC5811 !important;
    }

    label {
        font-family: "Open Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 700 !important;
        line-height: 150%; /* 24px */

        margin-left: 0;
    }
}

.btn-cookie {
    display: flex;
    height: 30px;
    padding: 6px 30px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--Color-Typography-typography-light, #FDFDFD);

    border-radius: 8px;
    background: #AC5811;
    box-shadow: 0 5px 14px 0 rgba(0, 0, 0, 0.05);

    &:hover {
        color: #AC5811;
        border: 1px solid #AC5811;
        box-shadow: 0 5px 14px 0 rgba(0, 0, 0, 0.05);
    }
}

.btn-outline-cookie {
    display: flex;
    height: 30px;
    padding: 6px 30px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #AC5811;

    border-radius: 8px;
    border: 1px solid #AC5811;
    box-shadow: 0 5px 14px 0 rgba(0, 0, 0, 0.05);

    &:hover {
        background-color: #e8c09e;
        color: var(--Color-Typography-typography-light, #FDFDFD);
    }
}

/* Scroll down indicator — animated and visible only on first section */
.scroller {
    position: absolute;
    bottom: 20px;
    left: 49.5%;
    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.3s;

    &:hover {
        opacity: 1;
    }
}

/* Bounce animation used by the scroller */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* "Back to top" elevator button — fixed at bottom-right */
.up-elevator {
    display: flex;
    width: 56px;
    height: 56px;
    padding: 16px;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;

    border-radius: 28px;
    background: var(--Tertiary, #FF9E00);

    position: fixed;
    bottom: 20px;
    right: 15px;

    cursor: pointer;
    transition: opacity 0.2s ease;
    z-index: 3000;

    animation: emergeUp 0.4s ease-out;
    will-change: transform, opacity;

    &:hover {
        background: var(--Tertiary-Hover, #e68d00); /* Slightly darker fallback orange */
    }
}

/* Emerging animation used by the "up-elevator" button */
@keyframes emergeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */

.navbar.navbar-main {
    @media only screen and (min-width: 992px) {
        margin: 0 16px;
    }

    @media only screen and (max-width: 992px) {
        min-height: unset !important;
    }
}

.top-menu {
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.25); /* softer than #C1C2C0 */
    background: #000;
    box-shadow: 0 16px 49px 0 rgba(91, 112, 119, 0.3) inset;

    .nav-link {
        color: #FDFDFD !important;
        font-size: 18px !important;
    }
}

.login-label {
    @media only screen and (max-width: 780px) {
        display: none;
        visibility: hidden;
    }
}

/* Welcome section */
@media (min-width: 992px) {
  #welcome-section { min-height: 100svh; } /* or 100vh */
}

.start-for-free {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2px 16px;

    span {
        font-size: 16px;
    }

    @media only screen and (max-width: 1018px) {
        display: none;
        visibility: hidden;
    }
}

/* =========================
   HERO (FIGMA: H1_Biggest)
   ========================= */
.HeroSection{
  font-family: "Open Sans", sans-serif;
  font-size: 80px;
  font-weight: 700;
  line-height: 100%;
  color: var(--Color-Typography-typography-light,#FDFDFD);
  margin: 0;
  margin-bottom: 32px;           /* bigger gap before first bullet */
}
.HeroSection .tertiary-color{ color: var(--Tertiary,#FF9E00); }

/* Responsive scale (optional but safe) */
@media (max-width: 1200px){ .HeroSection{ font-size: 64px; } }
@media (max-width: 768px){  .HeroSection{ font-size: 48px; } }
@media (max-width: 480px){  .HeroSection{ font-size: 38px; } }

/* =========================
   BULLETS (FIGMA: H4)
   ========================= */
.show-case-points{
  color: var(--Color-Typography-typography-light,#FDFDFD);
  font-family: "Open Sans", sans-serif;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 130%;             /* 31.2px per FIGMA */
  margin: 0;
}

/* Consistent spacing between rows */
.card-description .list-group{ gap: 25px !important; } /* was 15px inline */
.card-description .list-group li{ margin: 0; }         /* keep spacing via gap */

.card-description {
    padding: 40px 40px 60px !important;
    border-radius: 40px;
    background: linear-gradient(72deg, #000 60.16%, #424242 107.36%);
    box-shadow: 2px 24px 40px 0 rgba(255, 255, 255, 0.25) inset;

    @media only screen and (min-width: 600px) {
        min-width: 660px;
    }
}

.explore-register-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 12px;

    width: max-content;
    border-radius: 16px;
    box-shadow: 0 2px 28px 0 rgba(255, 255, 255, 0.25) inset;
}

.btn-outline-secondary-2 {
    display: flex;
    padding: 4px 30px;
    align-items: flex-end;
    gap: 8px;

    border-radius: 8px;
    color: #7BD084;
    border: 2px solid var(--Secondary, #7BD084);
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.25);
}

/* Pricing section */
.card-pricing {
    padding: 55px 24px !important;
    border: 1px solid var(--Typography-Medium, #5E5E5E);
    background: #242424;
    box-shadow: 0 1px 40px 0 rgba(49, 49, 49, 0.25) inset;
}

.plan-feature-item {
    font-size: 14px;
    color: var(--Color-Typography-typography-light, #FDFDFD);
}

.pricing-container {
    display: flex;
    gap: 40px;
}

/* Hidden for now
.premium-plan {
    border: 3px solid var(--Tertiary, #FF9E00);
}
*/

.premium-plan-tag {
    display: flex;
    padding: 4px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 12px;

    position: absolute;
    top: -28px;
    right: 10px;

    border-radius: 8px 8px 0 0;
    background: var(--Tertiary, #FF9E00);

    /* Hidden for now */
    display: none;
    visibility: hidden;
}

/* FAQ section */

/* Base (medium screens) – pick 1280 by default */
.faq-section-bg {
  background-size: cover;
  background-position: center;

  /* Fallback for old browsers */
  background-image: url("/static/logo/faq/faq-fallback-1280.jpg");

  /* Modern browsers: WebP first, fallback last */
  background-image: image-set(
    url("/static/logo/faq/faq-1280.webp") type("image/webp") 1x,
    url("/static/logo/faq/faq-fallback-1280.jpg") type("image/jpeg") 1x
  );
}

/* Small (≤ 600px) → 640 */
@media (max-width: 600px) {
  .faq-section-bg {
    background-image: image-set(
      url("/static/logo/faq/faq-640.webp") type("image/webp") 1x,
      url("/static/logo/faq/faq-fallback-1280.jpg") type("image/jpeg") 1x
    );
  }
}

/* Tablet (601–991px) → 960 */
@media (min-width: 601px) and (max-width: 991px) {
  .faq-section-bg {
    background-image: image-set(
      url("/static/logo/faq/faq-960.webp") type("image/webp") 1x,
      url("/static/logo/faq/faq-fallback-1280.jpg") type("image/jpeg") 1x
    );
  }
}

/* Large (≥ 1200px) → 1600 */
@media (min-width: 1200px) {
  .faq-section-bg {
    background-image: image-set(
      url("/static/logo/faq/faq-1600.webp") type("image/webp") 1x,
      url("/static/logo/faq/faq-fallback-1280.jpg") type("image/jpeg") 1x
    );
  }
}

.cover-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;           /* was -16px */
  right: 0;          /* was -16px */
  /* width:-webkit-fill-available;  <-- remove */
  z-index: -1;
}

/* If other sections still want the old stretch, scope it there explicitly */
.section-light-bg.cover-bg,
.faq-section-bg.cover-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;          /* was -16px */
  right: 0;         /* was -16px */
  width: auto;      /* was -webkit-fill-available */
  margin: 0;        /* no full-bleed margins here */
  z-index: -1;
}


.faq-item {
    opacity: 0.8;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--Color-Gray-Gray-600, #8D8F8C);
    background: #242424;
    box-shadow: 0 2px 28px 0 rgba(49, 49, 49, 0.25) inset;

    .faq-question {
        cursor: pointer;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 16px;
        color: var(--Color-Typography-typography-light, #FDFDFD);
    }

    .faq-answer {
        padding: 0;
        padding-top: 1rem;
        background: unset;

        p {
            font-size: 16px !important;
            line-height: 150%; /* 24px */
            color: var(--Color-Typography-typography-light, #FDFDFD);
        }
    }
}

.faq-item {
    margin-bottom: 0 !important;
}

#faqAccordion {
    gap: 12px;
    display: flex;
    flex-direction: column;

    padding: 24px 0;
}

.contact-panel {
    margin-top: 24px;

    p {
        font-size: 16px !important;
    }

    .btn {
        padding: 6px 20px !important;

        span {
            font-size: 14px !important;
        }
    }
}

/* Security Insights section */
.card-article {
    max-width: 23rem;
    max-height: 33rem;
    height: 33rem;

    border-radius: 15px;
    background: var(--Color-Gray-Gray-900, #212529);
}

.carouselArrows {
    left: 0;
    position: absolute;
    justify-content: space-between;

    width: 100%;
    padding: 10vh 13vw 0; /* TODO Modify on different viewports */
}

#newsCarousel {
    overflow: hidden;
}

/* Features section */

#features {
    padding-top: 68px;
    padding-bottom: 68px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal-width columns */
    gap: 30px; /* Vertical & horizontal spacing between items */
    margin: 0 auto;

    @media only screen and (max-width: 1700px) {
        max-width: 1100px;
    }
}


.card-features-grid {
    /* Layout */
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex-shrink: 0;

    /* Style */
    border-radius: 16px;
    border: 1px solid #DBD4D4;
    background: var(--card-menu-bg, #FDFDFD);
    box-shadow: 0 2px 28px 0 rgba(214, 214, 214, 0.25) inset;
}

.black-icon {
    /* Layout */
    display: flex;
    padding: 15px;
    align-items: center;

    /* Style */
    border-radius: 8px;
    background: var(--Color-Gray-Gray-900, #212529);
}

.black-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-demo-request {
    display: flex;
    padding: 48px;
    flex-direction: column;
    align-items: center;
    gap: 24px;

    border-radius: 16px;
    background: var(--Color-Gray-Gray-900, #212529);
    box-shadow: 0 2px 28px 0 rgba(255, 255, 255, 0.25) inset;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    section {
        margin-bottom: unset;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 equal-width columns */
    }

    .card-demo-request-body {
        padding: 0 30px;
    }

    #faqAccordion {
        gap: 12px;
        display: flex;
        flex-direction: column;
    }

    .card-description {
        padding: 30px 25px 60px !important;
    }

    .pricing-container {
        flex-direction: column;
    }

    .carouselArrows {
        padding: 10vh 0 0;
    }
}

/* Default scrollbar style */
::-webkit-scrollbar {
    width: 10px; /* Default width */
    transition: unset; /* Smooth width transition on hover */
}

::-webkit-scrollbar-track {
    background-color: #212529;
}

/* Hover effect on the page to increase width */
:hover::-webkit-scrollbar {
    width: 10px;
}

/* Hover effect on the entire scrollbar (track and thumb) */
::-webkit-scrollbar:hover {
    width: 10px;
}

/* Hover effect on scrollbar thumb to change color */
::-webkit-scrollbar-thumb:hover {
    width: 10px;
}

.btn-close.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: .85;
}
.btn-close.btn-close-white:hover { opacity: 1; }

/* ===== BaseFortify Footer (dark, consolidated) ===== */
.bf-footer {
  background: #000;
  color: #FDFDFD;
}

/* Column headings */
.bf-foothead {
  color: #FDFDFD;
  font-weight: 800;
  font-size: 20px;      /* larger section titles */
  line-height: 1.2;
  letter-spacing: .02em;
  margin-bottom: 18px;  /* space below headings */
}

/* Links */
.bf-footer a {
  color: #FDFDFD;
  text-decoration: none;
  opacity: .9;
}
.bf-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Spacing between list items */
.bf-footer-links li + li { margin-top: 18px; }

/* Uniform spacing: top block → next block */
.bf-footer .col-lg-3 > a.d-inline-flex,
.bf-footer .col-lg-3 > p.bf-axxpreamble,
.bf-footer .col-lg-3 > h6.bf-foothead {
  margin-bottom: 24px;
}

/* CTA Button */
.btn-bf-cta {
  background: #FF9E00;
  color: #000;
  border-radius: 8px;
  padding: .5rem 1rem;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(0,0,0,.25);
  margin-top: 24px; /* space above button */
}
.btn-bf-cta:hover { background: #e68d00; color: #000; }

/* Column 4 content */
.bf-axxpreamble { color: #FDFDFD; opacity: .9; }
.bf-address {
  color: #FDFDFD;
  opacity: .9;
  font-style: normal;
  line-height: 1.5;
  margin-bottom: 18px; /* address → socials */
}

/* Social icons (no outlines) */
.bf-social-grid {
  display: grid;
  grid-template-columns: repeat(6, 28px);
  gap: 12px;
}
@media (max-width: 576px) {
  .bf-social-grid { grid-template-columns: repeat(3, 28px); }
}
.bf-social-grid a {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; box-shadow: none; outline: none;
  opacity: .9;
}
.bf-social-grid a:hover { opacity: 1; }

/* Divider line */
.bf-foot-divider { border-color: rgba(255,255,255,.15); opacity: .5; }

/* Footer strip links */
.bf-strip-links a { margin-right: 18px; color: #FDFDFD; opacity: .75; }
.bf-strip-links a:hover { opacity: 1; }

/* Vertical spacing in rows */
.bf-footer .row.gy-4 { row-gap: 40px; }

/* --- Specific fixes & badges --- */

/* Force extra space below BaseFortify logo (col 1) overriding Bootstrap mb-3 */
.bf-footer .col-12.col-md-6.col-lg-3 > a.d-inline-flex {
  display: block !important;
  margin-bottom: 24px !important;
}
.bf-footer .col-12.col-md-6.col-lg-3 > a.d-inline-flex + ul {
  margin-top: 24px !important; /* logo → list */
}

/* Axxemble logo: legible on dark */
.bf-footer .col-12.col-lg-3 img[alt="Axxemble logo"] {
  background: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-block;
  height: auto;
  max-height: 40px;
  margin: 12px 0; /* text → logo and logo → address */
}

/* ISO certification badge (white background, tight) */
.bf-footer img[alt*="ISO 27001:2022"] {
  background: #fff;
  border-radius: 6px;
  display: inline-block;
}

/* ============================================
   Full-bleed HERO + no horizontal overflow
   ============================================ */

/* Page wrappers */
html, body { margin: 0; overflow-x: hidden; }
html { scrollbar-gutter: stable; }               /* right-only gutter (no left strip) */
body { padding-right: 0 !important; }            /* avoid modal/right-gutter shift */

/* Argon wrappers: no side padding/margins; contain any bleed */
.main-content,
.container-fluid,
.page-header,
.content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  .main-content { overflow-x: hidden; }
}
body.g-sidenav-show .main-content {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

/* Navbar desktop margins (Argon adds them) */
@media (min-width: 992px){
  .navbar.navbar-main { margin: 0 !important; }
}

/* Section sizing */
#welcome-section.welcome-section {
  position: relative;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* --- Background layers ----------------------------------- */
/* Default for all sections: fill section box (no viewport bleed) */
#welcome-section > .cover-bg,
#features   > .cover-bg,
#plans      > .cover-bg,
#welcomeFaq > .cover-bg,
#securityInsights > .cover-bg,
#contact    > .cover-bg {
  position: absolute;
  inset: 0;
  margin: 0 !important;
  width: auto;
  overflow: hidden;
  z-index: -1;
}

/* HERO needs true full-bleed to viewport edges without 100vw overflow */
#welcome-section > .welcome-section-bg.cover-bg {
  z-index: 0; /* above -1 layers, below content */
  margin-left:  calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Hero image covers */
.welcome-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Optional gradient overlay on hero */
.welcome-section-bg.cover-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
              rgba(0,0,0,.35) 0%,
              rgba(0,0,0,.15) 40%,
              rgba(0,0,0,.45) 100%);
}

/* Known overflow sources */
.carouselArrows{
  position: absolute;
  left: 0;
  right: 0;                 /* edges instead of width:100% */
  padding: 10vh 13vw 0;     /* spacing without inflating width */
  width: auto !important;
}

/* Buttons row on small screens: never exceed viewport width */
.explore-register-card{ max-width: 100%; }

/* Safety: clip any tiny child overflow per section */
#welcome-section, #features, #plans, #welcomeFaq, #securityInsights, #contact {
  position: relative;
  overflow-x: clip;
}
@supports not (overflow-x: clip){
  #welcome-section, #features, #plans, #welcomeFaq, #securityInsights, #contact { overflow-x: hidden; }
}

/* ============================================
   A11y & visual polish
   ============================================ */

/* Dark text on light panes meets contrast */
.section-light-bg .typography-dark,
.section-light-bg .card-features-grid h3,
.section-light-bg .card-features-grid p {
  color: #1a1a1a; /* AA on #F0F0F0 */
}

/* Light text on dark */
.typography-light { color: #F5F7FA; }

/* Raster logos: preserve aspect ratio and limits */
img[alt="Axxemble logo"] { height: auto; max-height: 40px; }
img[alt*="ISO 27001:2022"] { height: auto; }

/* Social icons: don't distort aspect ratio */
.bf-social-grid img { width: 24px; height: auto; }
.square-icon img { width: 24px; height: 24px; object-fit: contain; }

/* Small helpers */
.badge-warning { background:#B34700; color:#fff; }
@media (max-width: 600px){
  .bf-strip-links a { display:inline-block; padding:10px 8px; margin:2px 0; }
}

/* ============================================
   Feature cards: semantic H3, visually smaller
   ============================================ */
#features .card-features-grid h3 {
  font-size: clamp(18px, 1.6vw, 22px); /* H5-ish visuals */
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 6px;
}
#features .card-features-grid p {
  font-size: 15px;
  line-height: 1.5;
}

/* ============================================
   Buttons
   ============================================ */
/* Vibrant outline-green for "Explore features" */
.btn-outline-secondary-2 {
  --bf-green: #22C55E;                /* vivid emerald */
  color: var(--bf-green) !important;
  border-color: var(--bf-green) !important;
  font-weight: 800;                   /* reads brighter */
}
.btn-outline-secondary-2:hover,
.btn-outline-secondary-2:focus {
  background-color: var(--bf-green) !important;
  color: #0b0b0b !important;
  border-color: var(--bf-green) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
}
@media (prefers-contrast: more) {
  .btn-outline-secondary-2 { --bf-green: #16A34A; } /* deeper for contrast */
}

/* HERO background via CSS only (prevents double image) */
#welcome-section > .welcome-section-bg.cover-bg {
  background-image: image-set(
    url("/static/logo/welcome/welcome-480p.webp") type("image/webp") 1x,
    url("/static/logo/welcome/welcome-720p.webp") type("image/webp") 1.5x,
    url("/static/logo/welcome/welcome-1050p.webp") type("image/webp") 2x
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- Clear the fixed navbar on the HERO --- */
:root { --nav-h: 64px; }                  /* fallback */
@media (max-width: 992px){ :root { --nav-h: 76px; } }  /* sensible default on mobile */

/* Ensure the hero starts below the navbar */
#welcome-section.welcome-section{
  /* it was padding: 0; — override it: */
  padding-top: calc(var(--nav-h) + 12px) !important;
}

/* Smooth in-page scroll offsets (Features/Plans/etc.) */
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }