/* ==========================================================================
   FURLDERS – Site layout & page sections
   HEADER-SAFE VERSION
   This file intentionally does NOT control shared header layout.
   header.html owns the header.
   ui.css owns body.has-fixed-header spacing.
   ========================================================================== */

/* --- Base / layout ------------------------------------------------------- */
html, body {
  height: 100%;
  margin: 0;
}

:root {
  --header-h: 72px;
  --section-pad: clamp(2rem, 4vw, 4rem);
  --accent-pink: #FFB8DC;
}

body{
  min-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #8686AC;
  color: #F2F2F2;
  font-family: 'Poppins', sans-serif;
}

#page-content{ flex: 1; }

.maindiv{ width:100%; flex:1; overflow:visible; }
.maindiv img{ max-width:100%; height:auto; }

.btn{ margin-left: 5px; }

.maindivs{ padding-block: var(--section-pad); }
.vh-section{ min-height: min(92vh, 900px); display:flex; align-items:center; }

.full-bleed{
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  width:100vw;
}
.full-bleed > .container,
.full-bleed > .container-fluid{
  padding-inline: 1rem;
}

/* ==========================================================================
   IMPORTANT:
   No shared header sizing, no shared collapse rules, no shared page offset.
   ui.css already handles:
   body.has-fixed-header { padding-top: var(--header-h); }
   ========================================================================== */

/* --- Section backgrounds ------------------------------------------------- */
#firstdiv  { background:#423182; }
#seconddiv { background:#505081; }
#thirddiv  { background:#0F0E47; }
#fourthdiv { background:#272757; }

#firstdiv, #seconddiv, #thirddiv, #fourthdiv{
  border:0;
  height:auto;
  width:100%;
}

/* --- HERO --------------------------------------------------------------- */
#firstdiv{
  margin-top:0 !important;
  padding-block: var(--section-pad);
  background:
    radial-gradient(900px 520px at 75% 30%, rgba(254,79,180,0.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 55%),
    #423182;
}
#firstdiv .row{ align-items:center; }

#divonetextbox,
#divoneimgbox{
  width:auto;
  height:auto;
  margin:0;
  text-align:inherit;
}

#divoneimgbox img{
  display:block;
  max-width:100%;
  height:auto;
  margin-inline:auto;
  border-radius: 14px;
}

#divonetextbox h1{
  font-family:'Dancing Script', cursive;
  font-weight:700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color:#FD3DB5;
}

#divonetextbox h3{
  font-weight:600;
  font-size: clamp(1.15rem, 2.2vw, 1.85rem);
  color:#FFB8DC;
}

.hero-actions .btn {
  border-radius: 999px;
  padding-inline: 22px;
}

.hero-note {
  font-size: 0.95rem;
  opacity: 0.75;
}

.hero-visual {
  display: inline-block;
  padding: clamp(10px, 2vw, 18px);
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

@media (min-width: 992px){
  #firstdiv .col-lg-6{
    flex:0 0 50%;
    max-width:50%;
  }
}

/* --- CTA band ------------------------------------------------------------ */
.cta-band{
  background: rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding:.75rem 0;
  margin-top:8px;
  box-shadow: 0 -6px 12px rgba(0,0,0,.08) inset;
}

.cta{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:1rem 1.25rem;
  background:transparent;
  border:0;
  padding:0;
}

.cta-text{
  justify-self:center;
  text-align:center;
  max-width:46ch;
}

.cta h2{
  color:#fff;
  margin-bottom:.25rem;
}

.cta .text-muted{
  color:rgba(255,255,255,.75) !important;
}

.cta-actions{
  display:flex;
  gap:.6rem;
  justify-content:center;
}

@media (min-width: 992px){
  .cta-actions{ justify-content:flex-end; }
}

/* --- VALUE PROPS --------------------------------------------------------- */
#seconddiv .subdiv1 .col-md-4{
  text-align:center;
  padding-inline:1rem;
}

#seconddiv .subdiv1 .h4{
  color:#fff;
  font-weight:700;
  letter-spacing:.2px;
  margin-bottom:.25rem;
}

#seconddiv .subdiv1 p{
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 40ch;
  margin: 0 auto;
}

#seconddiv .subdiv2{
  margin-top:1rem !important;
}

#seconddiv .subdiv2 .col-md-4{
  display:flex;
  justify-content:center;
}

#seconddiv .subdiv2 img{
  max-width:100%;
  height:auto;
  border-radius:12px;
  box-shadow:0 1px 3px rgba(0,0,0,.12);
  background:#fff;
}

/* --- Activity / fourth --------------------------------------------------- */
#fourthdiv{
  margin-top:0;
  padding-block: var(--section-pad);
}

#divfourtextbox{
  width:auto;
  height:auto;
  margin:0;
  text-align:center;
  padding-inline:1rem;
}

@media (min-width: 992px){
  #divfourtextbox{ text-align:left; }
}

#fourthdiv .h4{
  color:#fff;
  font-weight:700;
  letter-spacing:.2px;
  margin-bottom:.4rem;
}

#fourthdiv p{
  color: rgba(255,255,255,.88);
  font-size: 1.06rem;
  line-height:1.7;
  max-width:48ch;
  margin:0;
}

#divfourimgbox{
  width:auto;
  height:auto;
  margin:0;
  display:flex;
  justify-content:center;
}

#divfourimgbox img{
  display:block;
  width:auto;
  height:auto;
  max-width: clamp(760px, 52vw, 980px);
  border-radius:12px;
  box-shadow:0 6px 22px rgba(0,0,0,.18);
}

@media (min-width: 1200px){
  #divfourimgbox{ justify-content:flex-end; }
  #divfourimgbox img{ max-width: clamp(820px, 56vw, 1100px); }
}

/* --- Page titles --------------------------------------------------------- */
.page-head{
  margin: 6px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-title{
  text-align:center;
  margin:.9rem 0 1.1rem;
  color:#fff;
  font-weight:800;
  line-height:1.15;
  font-size: clamp(22px, 3.2vw, 40px);
}

.page-title::after{
  content:"";
  display:block;
  width:72px;
  height:3px;
  border-radius:3px;
  margin:.5rem auto 0;
  background: linear-gradient(180deg, #FE4FB4, #EC399F);
}

.page-subtitle{
  color:rgba(255,255,255,.85);
  margin-top:.35rem;
  font-size:.98rem;
}

.furlders-limit-banner {
  border-radius: 16px;
  border: 1px solid rgba(103, 58, 183, 0.22);
  background: #fff7df;
  color: #3b235f;
  box-shadow: 0 10px 24px rgba(41, 20, 68, 0.08);
  margin: 1rem auto;
  max-width: 1100px;
}

.furlders-limit-banner .btn {
  border-radius: 999px;
  white-space: nowrap;
}

.furlders-limit-banner {
  border-radius: 20px;
  border: 1px solid rgba(103, 58, 183, 0.25);
  background: linear-gradient(
    135deg,
    rgba(103, 58, 183, 0.08),
    rgba(233, 30, 99, 0.08)
  );
  color: #2d1457;
  box-shadow: 0 12px 30px rgba(41, 20, 68, 0.12);
  margin: 1rem auto;
  max-width: 1100px;
  padding: 1rem 1.25rem;
}

.furlders-limit-banner strong {
  color: #4a1fa3;
}

.furlders-limit-banner a.btn {
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  border: none;
  color: white;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-weight: 500;
}

.furlders-limit-banner a.btn:hover {
  opacity: 0.9;
}

.furlders-limit-banner span {
  opacity: 0.85;
}

.furlders-limit-count {
  color: #4a1fa3;
  font-weight: 700;
  white-space: nowrap;
}

.furlders-limit-progress {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(103, 58, 183, 0.14);
}

.furlders-limit-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  transition: width 350ms ease;
}

#upgradeModal .btn-primary {
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  border: none;
  color: white;
  border-radius: 999px;
  font-weight: 600;
}

#upgradeModal .btn-primary:hover {
  opacity: 0.92;
}

.upgrade-limit-progress-wrap {
  background: rgba(103, 58, 183, 0.06);
  border: 1px solid rgba(103, 58, 183, 0.16);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: #2d1457;
}

.upgrade-limit-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(103, 58, 183, 0.14);
}

.upgrade-limit-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  transition: width 350ms ease;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer{
  background:#8686AC;
  color:#111;
  border-top:1px solid rgba(255,255,255,.25);
  margin-top:0 !important;
  margin-bottom:0 !important;
  padding-block: clamp(14px, 2.2vw, 22px);
  padding-inline: 0;
}

.site-footer > .container-fluid{
  padding-inline: clamp(8px,1vw,16px);
}

.site-footer .accordion,
.site-footer .accordion-item{
  margin:0;
}

.footer-accordion .accordion-item{
  background:transparent;
  border:1px solid rgba(255,255,255,.28);
  border-radius:.75rem;
  overflow:hidden;
}

.footer-accordion .footer-toggle{
  background: rgba(255,255,255,.10) !important;
  color:#fff !important;
  border-radius:.75rem;
  padding: clamp(12px,1.8vw,18px) clamp(16px,2.2vw,24px);
  font-size: clamp(1.1rem, 1vw + 1rem, 1.35rem);
  line-height:1.2;
}

.footer-accordion .footer-toggle:not(.collapsed){
  background: rgba(255,255,255,.14) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
}

.footer-accordion .footer-toggle::after{
  filter: invert(1) opacity(.85);
}

.footer-accordion .accordion-body{
  background:transparent;
  color:#111;
  padding: clamp(14px, 2.2vw, 22px) clamp(16px,2.2vw,24px);
}

.site-footer h6{
  color:#111;
  font-weight:600;
}

.footer-links a{
  color:#111;
  text-decoration:none;
}

.footer-links a:hover{
  border-bottom:2px solid var(--accent-pink);
  padding-bottom:1px;
}

.footer-logo{
  height:56px;
  width:auto;
  display:block;
  image-rendering:-webkit-optimize-contrast;
  opacity: .85;
  transition: opacity .2s ease;
}

.footer-logo:hover{
  opacity: 1;
}

.site-footer p:last-child{
  margin-bottom:0;
}

.site-footer hr{
  opacity: .15;
}

/* --- Cards/images safety ------------------------------------------------- */
.folder-card img,
.card img{
  display:block;
  width:100%;
  height:auto;
  position:relative;
  z-index:2;
  opacity:1;
  visibility:visible;
  filter:none;
  mix-blend-mode:normal;
}

.card::before,
.card::after,
.folder-card::before,
.folder-card::after{
  content:none !important;
}

/* --- Focus / accessibility ---------------------------------------------- */
.visually-hidden-focusable:not(:focus):not(:focus-within){
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.visually-hidden-focusable:focus{
  position:static !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  clip:auto !important;
  white-space:normal !important;
}

:focus-visible {
  outline: 3px solid rgba(0,0,0,0.85);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(0,0,0,0.85);
  outline-offset: 3px;
}

/* anchor offset for fixed header */
[id] {
  scroll-margin-top: calc(var(--header-h, 72px) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --- Responsive page polish --------------------------------------------- */
@media (max-width: 768px) {
  #seconddiv .subdiv1 .col-md-4 { text-align: left; }
  #seconddiv .subdiv1 p {
    margin-left: 0;
    margin-right: 0;
  }

  .cta {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .cta-text {
    justify-self: start;
    text-align: left;
    max-width: 60ch;
  }

  .cta-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .cta-actions a,
  .cta-actions button {
    width: 100%;
  }

  #divonetextbox h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  #divonetextbox h3 {
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
  }
}