/* Debug message placeholder (cannot console.log in CSS, so using a comment) */
/* Log.d("Jordon", "Loaded protektant.css for external styling"); */

/* 1. Import Montserrat for Regular (400) and Heavy (900) weights */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;900&display=swap');

:root {
    /* Existing brand colors */
    --brand-bg: #efe5d8;        /* Light background - R 239 G 229 B 216 */
    --brand-red: #ec2445;       /* Primary CTA color - R 236 G 36 B 69 */
    --brand-orange: #ef4829;    /* Hover CTA color - R 239 G 72 B 41 */
    --brand-purple: #3d1d55;    /* Rich purple - R 61 G 29 B 85 */
    --brand-dark: #23132d;      /* Darkest color (eggplant) - R 35 G 19 B 45 */

    /* New blue-sky palette */
    --sky-bg: #e6f4fa;          /* MAIN background, very soft blue */
    --cloud-white: #ffffff;     /* Panels, cards, surfaces */
    --sky-blue: #b9e0fa;        /* Accent, headers, hover backgrounds */
    --tree-green: #55b985;      /* Fresh, natural accent for success or highlights */
    --soft-shadow: rgba(185,224,250,0.2); /* Subtle shadow for depth */

    /* Extra accents */
    --trust-blue: #0ea5e9;      /* secondary CTA */
    --trust-blue-600: #0284c7;
    --muted: #6b7280;
}

/* 2. Global font override to Montserrat */
body,
.ui-widget {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--sky-bg);
    color: var(--brand-dark);
}

/* Fix for fixed header: ensure main has top padding so content isn't hidden */
.tk-main {
    padding-top: 86px; /* header height + small buffer */
}

/* HEADER STYLES */
.header {
    width: 100%;
    background-color: var(--cloud-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid #b9e0fa;
    box-shadow: 0 4px 16px var(--soft-shadow);
}

/* Align menu + hamburger to the right together */
.header .tk-header__menu {
    margin-left: auto;            /* pushes menubar right */
}
.header .hamburger {
    margin-left: .5rem;           /* small space from menubar */
    background: var(--cloud-white);
    border: 1px solid var(--sky-blue);
    border-radius: 8px;
    padding: .35rem .55rem;
    cursor: pointer;
    line-height: 1;
}
.header .hamburger:hover {
    background: #f4faff;
    border-color: var(--trust-blue);
}

/* PrimeFaces menubar cosmetic tweaks */
.tk-header__menu.ui-menubar {
    border: 1px solid var(--sky-blue);
    background: #f7fbff;
}
.tk-header__menu .ui-menuitem-link {
    padding: .45rem .70rem;
}
.tk-header__menu .ui-menuitem-icon {
    opacity: .9;
}

/* Logo container */
.logo-container {
    display: flex;
    align-items: center;
}
.logo-container img {
    max-width: 40px;
    height: auto;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Language switcher (kept for future) */
.language-switcher {
    display: flex;
    align-items: center;
}
.language-switcher h\:outputLabel {
    margin-right: 0.5rem;
}

/* Main form container */
.form-container {
    margin-top: 8rem;
    padding: 2rem;
    background: var(--cloud-white);
    border-radius: 1.5rem;
    box-shadow: 0 2px 8px var(--soft-shadow);
}

/* FOOTER STYLES */
.footer {
    width: 100%;
    background-color: var(--cloud-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    border-top: 1px solid #b9e0fa;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #23132d;
    box-shadow: 0 -4px 16px var(--soft-shadow);
}

/* Footer logo fixed width */
.footer-logo {
    display: block;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

/* Global Notice Bar */
.global-notice-bar {
    width: 100%;
    background: #fffbcc;
    color: #6d5200;
    padding: 1em 2em;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 2px solid #ffb700;
    box-shadow: 0 2px 8px rgba(185, 224, 250, 0.08);
    z-index: 950;
    margin-top: 5rem;
    margin-bottom: 1.5em;
}
@media (max-width: 600px) {
    .global-notice-bar {
        font-size: 1em;
        padding: 1em 0.5em;
    }
}

/* Cookie Consent Bar */
.cookie-consent-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 1em;
    text-align: center;
    z-index: 9999;
}
.cookie-consent-form {
    margin: 1em auto 0 auto;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cookie-btn-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5em;
}
.accept-cookie-btn,
.refuse-cookie-btn {
    width: 100%;
    max-width: 250px;
    margin: 0.25em 0;
    padding: 0.45em 1.25em;
    border-radius: 4px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: block;
    font-size: 1.1em;
}
.accept-cookie-btn {
    background: #7cf;
    color: #222;
}
.refuse-cookie-btn {
    background: #f77;
    color: #fff;
}

/* Welcome statement styles */
.welcome-statement,
.welcome-statement a {
    color: #23132d;
}

/* Form grid spacing */
.form-grid {
    margin: 20px 0;
}

/* Button grid spacing */
.button-grid {
    margin: 20px 0;
    text-align: center;
}

/* License box styling */
.license-box {
    height: 200px;
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    overflow-y: scroll;
    background-color: #f9f9f9;
    margin-bottom: 10px;
}

/* Error message styling */
.error-message {
    color: red;
}

/* Higher z-index for dialogs to appear above header/footer */
.ui-dialog {
    z-index: 99999 !important;
}
.ui-widget-overlay {
    z-index: 99998 !important;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .header {
        flex-direction: row;
        align-items: center;
        padding: 1rem;
    }
    .logo-container img {
        max-width: 40px;
        height: auto;
    }
    .protektant-text {
        font-size: 2rem;
        margin-left: 0.7rem;
    }
    .language-switcher {
        margin-top: 0;
        align-self: center;
        margin-bottom: 0;
    }
    .form-container {
        margin-top: 6rem;
        padding: 2rem;
    }
    .cookie-consent-bar {
        padding: 0.5em 0.25em 0.5em 0.25em;
        font-size: 1em;
    }
    .cookie-consent-form {
        max-width: 95vw;
        width: 100%;
        padding: 0;
    }
    .cookie-btn-row {
        margin-bottom: 0.5em;
    }
    .accept-cookie-btn,
    .refuse-cookie-btn {
        max-width: 99vw;
        font-size: 1.08em;
    }
}

/* Gradient text effect for Protektant wordmark */
.protektant-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #ef4829 0%, #ec2445 60%, #3d1d55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding-left: 0.7rem;
    user-select: none;
    display: inline-block;
}

/* Inline command link alignment fix */
.inline-commandlink {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Cookie banner styles */
.cookie-banner-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 640px;
    background: #fff6e0;
    border: 1px solid #d4c9af;
    border-radius: 10px;
    padding: 1em 1.5em;
    box-shadow: 0 2px 8px #ccc;
    z-index: 2000;
    font-family: sans-serif;
}
.cookie-banner-message {
    font-size: 1rem;
    color: #222;
}
.cookie-btn-accept {
    margin-left: 1em;
    background: #6ac96a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5em 1.2em;
    cursor: pointer;
}
.cookie-btn-refuse {
    margin-left: 0.5em;
    background: #e76363;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5em 1.2em;
    cursor: pointer;
}

/* Quote popup animation (for header.xhtml logo click) */
.quote-popup {
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}
.quote-popup.hidden {
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

/* ===================== */
/* NEW: Landing styling  */
/* ===================== */

/* Center headings but keep body copy left for readability */
.tk-page h1, .tk-page h2, .tk-page h3 {
    text-align: center;
}
.tk-page p, .tk-page ul, .tk-page li {
    text-align: left;
}

/* Card look for PrimePanels */
.ui-panel.ui-widget {
    background: var(--cloud-white);
    border: 1px solid #e6eef6;
    box-shadow: 0 8px 24px var(--soft-shadow);
    border-radius: 16px;
}

/* Section spacing */
.p-mb-4 { margin-bottom: 1.5rem !important; }

/* Hero band with gentle gradient */
.hero-band {
    background: linear-gradient(180deg, #edf7ff 0%, #ffffff 60%);
    border: 1px solid #e6eef6;
}

/* NEW: Hero header hierarchy for readability */
.hero-header { text-align: center; margin-bottom: 1.25rem; }
.hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--trust-blue);
    margin-bottom: 0.25rem;
}
.hero-strapline {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 1rem;
}
.hero-header h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-top: 0.5rem;
}

/* CTAs sizing */
.p-button-raised.p-button-lg,
.p-button-secondary.p-button-lg,
.p-button-outlined.p-button-lg {
    min-width: 260px;
}

/* Primary CTA (Nation) */
.p-button-raised.p-button-lg {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}
.p-button-raised.p-button-lg:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
}

/* Secondary CTA (Subscriber) */
.p-button-secondary {
    background: var(--trust-blue);
    border-color: var(--trust-blue);
    color: #fff;
}
.p-button-secondary:hover {
    background: var(--trust-blue-600);
    border-color: var(--trust-blue-600);
}

/* Outlined CTA (Knowledge Holder) */
.p-button-outlined {
    color: var(--brand-purple) !important;
    border-color: var(--brand-purple) !important;
}
.p-button-outlined:hover {
    background: #f9f2ff !important;
}

/* Trust anchors icons a bit darker */
.pi.pi-shield, .pi.pi-file, .pi.pi-dollar {
    color: var(--brand-purple);
}

/* Thin separators to avoid heavy borders between sections */
.ui-panel + .ui-panel {
    border-top: 2px solid #eef6fd;
}

/* Constrain page width */
.tk-page { max-width: 1080px; margin: 0 auto; }


/* Raise menu above any modal/side masks */
.ui-menubar, .ui-menu, .ui-menu-overlay { z-index: 100100 !important; }

/* Safety: orphan overlays shouldn't block interactions */
.ui-widget-overlay, .p-sidebar-mask { pointer-events: none !important; }

/* Show the grey mask ONLY when PF is actively locking the body for a modal/overlay */
body:not(.ui-overflow-hidden):not(.p-overflow-hidden) .ui-widget-overlay,
body:not(.ui-overflow-hidden):not(.p-overflow-hidden) .p-component-overlay,
body:not(.ui-overflow-hidden):not(.p-overflow-hidden) .p-sidebar-mask {
  background: transparent !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Keep our earlier click-through safety for any leftover masks */
.ui-widget-overlay, .p-sidebar-mask, .p-component-overlay {
  pointer-events: none !important;
}

/* Ensure the menubar sits above anything */
.ui-menubar, .ui-menu, .ui-menu-overlay {
  position: relative;
  z-index: 100100 !important;
}



/* ========================= */
/* HERO: banner + connectors */
/* ========================= */

:root {
  --brand-grad-start: #ef4829; /* orange */
  --brand-grad-mid:   #ec2445; /* red */
  --brand-grad-end:   #3d1d55; /* purple */
  --vault-ring:       #f1c76a; /* subtle gold ring */
}

/* Container holding the three vignettes (image or SVG) */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0f2440; /* deep teal base behind art */
  box-shadow: 0 8px 24px var(--soft-shadow);
}

/* If you’re using an <img> hero */
.hero > img {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay copy (centered, responsive) */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 1.25rem;
}

.hero-copy {
  text-align: center;
  max-width: 980px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
  margin: 0 0 .375rem 0;
}

.hero-subtitle {
  font-size: clamp(.95rem, 1.4vw, 1.15rem);
  color: #e9eef8;
  margin: 0 0 .5rem 0;
}

/* Optional exclusivity line (scarcity) */
.hero-tag {
  font-size: .9rem;
  color: #d5e6fa;
  opacity: .9;
}

/* Gradient wordmark: PROTEKTANT (no logo shapes) */
.wordmark {
  display: inline-block;
  font-weight: 900;
  letter-spacing: .04em;
  background: linear-gradient(90deg,var(--brand-grad-start),var(--brand-grad-mid) 60%,var(--brand-grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================================ */
/* Consultation line (bi-direction) */
/* ================================ */

.consultation-line {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: clamp(10px, 4.5vw, 26px);
  height: 4px;
  background: linear-gradient(90deg,#7ad0ff, #5ec6ff);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(94,198,255,.35);
}

/* small shield nodes along the line */
.consultation-line::before,
.consultation-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100%;
  height: 4px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 0% 50%, #ffffff 0 2px, transparent 3px) 0 50% / 120px 4px repeat-x;
  animation: packets-left 12s linear infinite;
  opacity: .9;
}
.consultation-line::after {
  background:
    radial-gradient(circle at 100% 50%, #ffffff 0 2px, transparent 3px) 0 50% / 120px 4px repeat-x;
  animation: packets-right 12s linear infinite reverse;
  opacity: .65;
}

@keyframes packets-left  { from { background-position-x: 0;   } to { background-position-x: -120px; } }
@keyframes packets-right { from { background-position-x: 0;   } to { background-position-x:  120px; } }

/* tiny “lock” badges to suggest security */
.lock-badge {
  position: absolute;
  bottom: calc(clamp(10px, 4.5vw, 26px) - 10px);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 10px rgba(14,165,233,.45), inset 0 0 0 2px #e6f4fa;
}
.lock-badge::before {
  content: "🔒";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.25));
  color: #fff;
}

/* Place 3 locks along the line (social proof + security) */
.lock-left   { left: 12%; }
.lock-mid    { left: 50%; transform: translateX(-50%); }
.lock-right  { right: 12%; }

/* ======================= */
/* Sovereign Data “vault”  */
/* ======================= */

.vault {
  position: absolute;
  right: 3.5%;
  top: 10%;
  width: clamp(72px, 10vw, 140px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #183b5a, #0f2a44 70%),
    conic-gradient(from 0deg, var(--vault-ring), #ffe39b, var(--vault-ring));
  box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 0 0 6px rgba(255,255,255,.12);
}
.vault::after {
  /* gradient “P” text-only brand anchor inside the vault */
  content: "Protektant";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 900 clamp(.65rem, 1.35vw, .95rem) 'Montserrat', sans-serif;
  background: linear-gradient(90deg,var(--brand-grad-start),var(--brand-grad-mid) 55%,var(--brand-grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .06em;
}

/* ================================ */
/* KEYCLOAK LOGIN: mushroomlogo.svg sizing  */
/* ================================ */
/* Log.d("Jordon", "Keycloak login: enforce mushroomlogo.svg size via CSS"); */

/* Center header content on login */
#kc-header-wrapper {
  text-align: center;
}

/* Default Keycloak markup uses a DIV with background-image for #kc-logo.
   This forces our SVG and clamps its display size without touching the file. */
#kc-logo {
  width: 200px;            /* desired render width */
  height: 200px;           /* set a box so background-size works predictably */
  margin: 0 auto 12px auto;
  background: url('../img/mushroomlogo.svg') no-repeat center center / contain;
}

/* If Keycloak renders a text fallback, hide it when our logo is present */
#kc-logo-text {
  display: none;
}

/* Fallback: if your template uses an <img> inside or as #kc-logo, size it too.
   You can point that <img> to mushroomlogo.png if you prefer a raster backup. */
#kc-logo img {
  display: block;
  width: 200px;
  height: auto;
  max-height: 200px;
  margin: 0 auto 12px;
}

/* Optional: adjust for small screens */
@media (max-width: 480px) {
  #kc-logo,
  #kc-logo img {
    width: 160px;
    max-height: 160px;
    height: auto;
  }
}



/* ================================ */
/* JSF login.xhtml: mushroomlogo.svg sizing */
/* ================================ */
/* Log.d("Jordon", "JSF login.xhtml: enforce mushroomlogo.svg size via CSS"); */

.jsf-login-logo img {
  display: block;
  width: 200px;        /* keep consistent with Keycloak */
  height: auto;
  max-height: 200px;
  margin: 0 auto 12px;
}

/* Optional: shrink on small screens */
@media (max-width: 480px) {
  .jsf-login-logo img {
    width: 160px;
    max-height: 160px;
    height: auto;
  }
}

