/* ============================================================
   FORTUNA CONTROL & AUTOMATIONS — Additional Page Styles
   ============================================================ */

/* ── Stats Bar (homepage - Tactile & Authentic Design) ── */
.stats-bar {
  position: relative;
  background: var(--navy) !important;
  padding: 34px 0 !important;
  border-top: 3px solid var(--amber) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  overflow: hidden;
}

.stats-bar::before {
  display: none !important;
}

.stats-inner {
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
}

.stat-item {
  text-align: center !important;
  flex: 1 !important;
  min-width: 170px !important;
  position: relative !important;
  padding: 8px 16px !important;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.stat-number {
  font-family: var(--font-head), 'Montserrat', sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  color: var(--amber) !important;
  line-height: 1 !important;
  letter-spacing: -0.5px !important;
  text-shadow: none !important;
}

.stat-label {
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-family: var(--font-head), 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  margin-top: 8px !important;
}

@media (max-width: 768px) {
  .stats-bar {
    padding: 28px 0 !important;
  }
  .stats-inner {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px 16px !important;
  }
  .stat-item:not(:last-child)::after {
    display: none !important;
  }
  .stat-number {
    font-size: 2.2rem !important;
  }
  .stat-label {
    font-size: 0.75rem !important;
    letter-spacing: 1px !important;
  }
}

/* ── Carousel arrow buttons ── */
.carousel-arrows {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.carousel-arrow {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.carousel-arrow:hover {
  background: var(--navy);
  border-color: var(--navy);
}
.carousel-arrow:hover svg { stroke: var(--white); }
.carousel-arrow svg { width: 18px; height: 18px; stroke: var(--navy); fill: none; transition: stroke var(--transition); }

.breadcrumb {
  background: #040913;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: -1px;
  position: relative;
  z-index: 5;
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  font-family: var(--font-head);
}
.breadcrumb-inner a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.breadcrumb-inner a:hover { color: var(--amber); }
.breadcrumb-inner .sep { color: var(--amber); }
.breadcrumb-inner .current { color: var(--amber); }

/* ── Section CTA banner ── */
.cta-banner {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: .08;
}
.cta-banner-content { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.7); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Map placeholder ── */
.map-section {
  background: var(--bg-light);
  padding: 60px 0;
}
.map-placeholder {
  width: 100%;
  height: 380px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: rgba(255,255,255,.5);
  font-family: var(--font-head);
  font-size: .9rem;
  overflow: hidden;
  position: relative;
}
.map-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* ── Notification toast ── */
.toast {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 8px;
  font-size: .9rem;
  font-family: var(--font-head);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--amber);
  transform: translateX(120%);
  transition: transform .4s ease;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: #4caf82; }
.toast.error { border-left-color: #e74c3c; }

/* ── Particle dots decoration ── */
.dots-decoration {
  position: absolute;
  width: 180px;
  height: 180px;
  opacity: .08;
  background-image: radial-gradient(var(--amber) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ── Image placeholder style (for when images haven't loaded) ── */
.img-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: .3;
  fill: var(--white);
}

/* ============================================================
   ANIMATED HERO COVERS & ICONS (Across All Pages)
   ============================================================ */

.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.page-hero-text {
  flex: 1;
  max-width: 680px;
}

/* Page Hero Animated Visual Container */
.page-hero-visual {
  flex: 0 0 380px;
  max-width: 380px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-animated-icon-box {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer Ambient Glow Circle */
.hero-icon-ambient-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.24) 0%, rgba(0, 180, 216, 0.12) 40%, transparent 70%);
  filter: blur(25px);
  animation: heroPulseGlow 4s ease-in-out infinite alternate;
}

/* Glass Orb Base */
.hero-icon-glass-orb {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(18, 42, 78, 0.85), rgba(4, 9, 19, 0.95));
  border: 1.5px solid rgba(240, 165, 0, 0.38);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
              inset 0 0 30px rgba(240, 165, 0, 0.15),
              0 0 25px rgba(240, 165, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  animation: heroFloat 5s ease-in-out infinite;
}

/* Rotating SVG Rings */
.hero-svg-ring {
  position: absolute;
  inset: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  pointer-events: none;
}
.hero-svg-ring.rotate-cw {
  animation: heroSpinCW 24s linear infinite;
}
.hero-svg-ring.rotate-ccw {
  animation: heroSpinCCW 18s linear infinite;
}

/* Core SVG Graphic Inside Orb */
.hero-core-svg {
  width: 135px;
  height: 135px;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 0 14px rgba(240, 165, 0, 0.65));
}

/* Floating Feature Chips around Hero Icon */
.hero-floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(6, 15, 32, 0.88);
  border: 1px solid rgba(240, 165, 0, 0.38);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(240, 165, 0, 0.18);
  backdrop-filter: blur(8px);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.8px;
  white-space: nowrap;
  z-index: 5;
  transition: all 0.3s ease;
}
.hero-floating-chip i {
  color: var(--amber);
  font-size: 0.85rem;
}
.hero-floating-chip:hover {
  border-color: var(--amber);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 30px rgba(240, 165, 0, 0.35);
}

/* Chip Positioning & Individual Animations */
.chip-top-right {
  top: 10px;
  right: -20px;
  animation: heroChipFloat1 4.5s ease-in-out infinite;
}
.chip-bottom-left {
  bottom: 20px;
  left: -25px;
  animation: heroChipFloat2 5.2s ease-in-out infinite 0.8s;
}
.chip-bottom-right {
  bottom: -5px;
  right: -10px;
  animation: heroChipFloat3 4.8s ease-in-out infinite 1.5s;
}

/* Animated Tag Badge Pulse Ring */
.hero-tag-badge i {
  animation: heroIconPulse 2s ease-in-out infinite;
}
.home-hero-badge-box {
  margin-bottom: 18px;
}
.home-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border-radius: 25px;
  background: rgba(240, 165, 0, 0.12);
  border: 1px solid rgba(240, 165, 0, 0.35);
  box-shadow: 0 0 20px rgba(240, 165, 0, 0.2);
  backdrop-filter: blur(6px);
  color: var(--amber);
}
.hero-badge-icon {
  font-size: 1rem;
  color: var(--amber);
  animation: heroIconPulse 2s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes heroSpinCW {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes heroSpinCCW {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}
@keyframes heroPulseGlow {
  0% { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 0.95; transform: scale(1.08); }
}
@keyframes heroChipFloat1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes heroChipFloat2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes heroChipFloat3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes heroIconPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(240, 165, 0, 0.4)); }
  50% { transform: scale(1.22); filter: drop-shadow(0 0 10px rgba(240, 165, 0, 0.95)); }
}

/* Responsive Scaling for Hero Animated Visuals */
@media (max-width: 991px) {
  .page-hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .page-hero-text {
    max-width: 100%;
  }
  .page-hero-visual {
    margin-top: 30px;
    flex: 0 0 auto;
  }
  .hero-animated-icon-box {
    width: 290px;
    height: 290px;
  }
  .hero-icon-glass-orb {
    width: 210px;
    height: 210px;
  }
  .hero-core-svg {
    width: 110px;
    height: 110px;
  }
  .chip-top-right { right: -10px; top: 0; }
  .chip-bottom-left { left: -15px; bottom: 10px; }
  .chip-bottom-right { right: -5px; bottom: -10px; }
}
@media (max-width: 480px) {
  .hero-animated-icon-box {
    width: 250px;
    height: 250px;
  }
  .hero-icon-glass-orb {
    width: 180px;
    height: 180px;
  }
  .hero-core-svg {
    width: 90px;
    height: 90px;
  }
  .hero-floating-chip {
    font-size: 0.65rem;
    padding: 6px 10px;
  }
}

/* ── Scaled Mobile-First Hero Typography & Layout ── */
.home-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 60px 0;
  overflow: hidden;
}

.home-hero-content {
  position: relative;
  z-index: 4;
  padding: 30px 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.home-hero-badge-box {
  margin-bottom: 22px;
}

.home-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 26px;
  border-radius: 30px;
  background: rgba(240, 165, 0, 0.16);
  border: 1.5px solid rgba(240, 165, 0, 0.45);
  box-shadow: 0 0 25px rgba(240, 165, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--amber);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-hero h1 {
  color: #ffffff !important;
  font-family: var(--font-head), 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  font-size: clamp(2.3rem, 7.5vw, 4.2rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.5px !important;
  margin-bottom: 22px !important;
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.85), 0 0 40px rgba(240, 165, 0, 0.3) !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.home-hero-sub {
  font-family: var(--font-head), 'Montserrat', sans-serif !important;
  font-size: clamp(1.15rem, 3.8vw, 1.5rem) !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  letter-spacing: 1.2px !important;
  line-height: 1.5 !important;
  max-width: 750px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

/* Mobile viewport scaling (< 768px) */
@media (max-width: 768px) {
  .home-hero {
    min-height: 80vh;
    padding: 70px 0 50px 0;
  }
  .home-hero-content {
    padding: 20px 16px;
  }
  .home-hero h1 {
    font-size: clamp(2.2rem, 8vw, 3rem) !important;
    line-height: 1.2 !important;
    letter-spacing: 0px !important;
    margin-bottom: 18px !important;
  }
  .home-hero-tag {
    font-size: 0.82rem;
    padding: 8px 18px;
    letter-spacing: 1.5px;
  }
  .home-hero-sub {
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
  }
  .intro-section p {
    font-size: 1.1rem !important;
    line-height: 1.75 !important;
  }
  h2 {
    font-size: clamp(1.75rem, 6vw, 2.4rem) !important;
  }
}

/* ============================================================
   LEGAL PAGES & SITEMAP STYLING (Privacy, Terms, Sitemap)
   ============================================================ */
.legal-page-section {
  padding: 60px 0 90px;
  background: var(--bg-light);
}

.legal-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.legal-toc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-sm);
}

.legal-toc-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--amber);
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-toc-list a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: 4px;
}

.legal-toc-list a:hover {
  color: var(--navy);
  background: rgba(240, 165, 0, 0.12);
  font-weight: 600;
  padding-left: 12px;
}

.legal-content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 44px;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  line-height: 1.75;
}

.legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legal-meta-item i {
  color: var(--amber);
}

.legal-section-block {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.legal-section-block h2 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-weight: 800;
  position: relative;
  padding-bottom: 8px;
}

.legal-section-block h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
}

.legal-section-block h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 20px 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
}

.legal-section-block p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #4b5563;
}

.legal-section-block ul, .legal-section-block ol {
  margin: 12px 0 18px 24px;
  color: #4b5563;
  font-size: 0.95rem;
}

.legal-section-block li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-callout {
  background: #f8fafc;
  border-left: 4px solid var(--amber);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 0.92rem;
  color: #334155;
}

.legal-callout strong {
  color: var(--navy);
}

/* ── Sitemap Page Grid ── */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.sitemap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sitemap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(240, 165, 0, 0.4);
}

.sitemap-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sitemap-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(240, 165, 0, 0.12);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.sitemap-card-header h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.sitemap-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sitemap-links li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sitemap-links li a:hover {
  color: var(--amber);
  transform: translateX(4px);
}

.sitemap-links li a i {
  font-size: 0.75rem;
  color: var(--amber);
}

.sitemap-tag {
  font-size: 0.72rem;
  background: rgba(240, 165, 0, 0.12);
  color: #b47800;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: auto;
}

@media (max-width: 900px) {
  .legal-container {
    grid-template-columns: 1fr;
  }
  .legal-toc-card {
    position: static;
  }
  .legal-content-card {
    padding: 32px 20px;
  }
}

