/* ============================================================
   MYNEWLIFE INVESTMENTS INC. — Master Stylesheet
   Soft Gradient Mood · Noir Crimson Palette · Sticky Panels
   ============================================================ */

/* --- CSS VARIABLES --- */
:root {
  --color-primary: #EF5350;
  --color-secondary: #E57373;
  --color-accent: #B0BEC5;
  --color-bg: #100A0A;
  --color-surface: #1A1212;
  --color-text: #F0E0E0;
  --color-text-light: #A88A8A;
  --color-text-on-accent: #100A0A;
  --color-text-on-primary: #FFFFFF;
  --color-white: #FFFFFF;
  --color-dark: #0A0606;

  --font-heading: Impact, 'Arial Black', sans-serif;
  --font-body: Tahoma, Geneva, Verdana, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  --radius: 16px;
  --shadow-heavy: 0 8px 30px rgba(0,0,0,0.3);
  --shadow-panel: 0 -8px 30px rgba(0,0,0,0.25);
  --shadow-card: 0 8px 30px rgba(0,0,0,0.2);

  --sidebar-width: 220px;
  --section-padding: 80px;
  --grid-gap: 24px;

  --gradient-dark: linear-gradient(135deg, #100A0A 0%, #1A1212 40%, #1E1414 100%);
  --gradient-surface: linear-gradient(135deg, #1A1212 0%, #221818 50%, #1A1212 100%);
  --gradient-accent: linear-gradient(135deg, #B0BEC5 0%, #90A4AE 50%, #B0BEC5 100%);
  --gradient-primary: linear-gradient(135deg, #EF5350 0%, #E57373 100%);
  --gradient-warm: linear-gradient(135deg, #1A1212 0%, #2A1818 50%, #1A1212 100%);
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  margin-left: var(--sidebar-width);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- TOPOGRAPHIC CONTOUR TEXTURE (applied to body) --- */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(239,83,80,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(176,190,197,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(239,83,80,0.02) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(176,190,197,0.02) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(229,115,115,0.02) 0%, transparent 40%);
}

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 10000;
  transition: width 0.05s linear;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.label-text, .caption-text, .category-tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary);
}

em, .italic {
  font-style: italic;
}

/* --- SIDEBAR NAVIGATION --- */
.sidebar-nav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: var(--color-dark);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  overflow-y: auto;
  background: linear-gradient(180deg, #0A0606 0%, #100A0A 100%);
}

.sidebar-nav .nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.sidebar-nav .nav-tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}

.sidebar-nav .nav-links {
  list-style: none;
  flex: 1;
}

.sidebar-nav .nav-links li {
  position: relative;
}

.sidebar-nav .nav-links a {
  display: block;
  padding: 0.75rem 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: color 0.2s, padding-left 0.2s;
  text-decoration: none;
  position: relative;
}

.sidebar-nav .nav-links a::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0px;
  background: var(--color-accent);
  transition: height 0.2s;
  border-radius: 2px;
}

.sidebar-nav .nav-links a:hover,
.sidebar-nav .nav-links a.active {
  color: var(--color-white);
  padding-left: 0.5rem;
}

.sidebar-nav .nav-links a:hover::before,
.sidebar-nav .nav-links a.active::before {
  height: 20px;
}

.sidebar-nav .nav-bottom {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-nav .nav-login-btn {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: all 0.3s;
  text-decoration: none;
}

.sidebar-nav .nav-login-btn:hover {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
  background: var(--color-dark);
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-heavy);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}

/* --- STICKY PANELS LAYOUT --- */
.sticky-panel {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  position: relative;
}

.sticky-panel.panel-hero { z-index: 1; }
.sticky-panel.panel-2 { z-index: 2; }
.sticky-panel.panel-3 { z-index: 3; }
.sticky-panel.panel-4 { z-index: 4; }
.sticky-panel.panel-5 { z-index: 5; }
.sticky-panel.panel-6 { z-index: 6; }
.sticky-panel.panel-7 { z-index: 7; }
.sticky-panel.panel-8 { z-index: 8; }
.sticky-panel.panel-9 { z-index: 9; }
.sticky-panel.panel-10 { z-index: 10; }

.panel-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.panel-inner-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Panel backgrounds */
.bg-dark {
  background: var(--gradient-dark);
  color: var(--color-text);
}

.bg-surface {
  background: var(--gradient-surface);
  color: var(--color-text);
}

.bg-accent {
  background: var(--gradient-accent);
  color: var(--color-text-on-accent);
}

.bg-accent h1, .bg-accent h2, .bg-accent h3,
.bg-accent p, .bg-accent span, .bg-accent li {
  color: var(--color-text-on-accent);
}

.bg-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
}

.bg-primary h1, .bg-primary h2, .bg-primary h3,
.bg-primary p, .bg-primary span, .bg-primary li {
  color: var(--color-white);
}

.bg-warm {
  background: var(--gradient-warm);
  color: var(--color-text);
}

/* --- HERO: STACKED FULL-BLEED BANDS --- */
.hero-bands {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-band-top {
  background: var(--gradient-accent);
  padding: 2rem 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-band-top .label-text {
  color: var(--color-text-on-accent);
  font-size: 0.75rem;
}

.hero-band-middle {
  background: var(--gradient-surface);
  padding: 4rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-band-middle h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-text);
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.hero-band-middle .hero-subtitle {
  color: var(--color-text-light);
  max-width: 650px;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-band-middle .hero-quote {
  font-style: italic;
  color: var(--color-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 0;
}

.hero-band-middle .hero-quote-author {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}

.hero-band-bottom {
  background: linear-gradient(135deg, #E57373 0%, #EF5350 100%);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.hero-band-bottom .hero-stats {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* --- PAGE HERO (non-home) --- */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-padding) 2rem;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  color: var(--color-text);
  max-width: 700px;
}

.page-hero .hero-subtitle {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* --- CONCENTRIC RINGS DECORATION --- */
.concentric-rings::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  top: 20%;
  right: -80px;
  box-shadow:
    0 0 0 40px transparent,
    0 0 0 42px rgba(176,190,197,0.05),
    0 0 0 80px transparent,
    0 0 0 82px rgba(176,190,197,0.05),
    0 0 0 120px transparent,
    0 0 0 122px rgba(176,190,197,0.04),
    0 0 0 160px transparent,
    0 0 0 162px rgba(176,190,197,0.03),
    0 0 0 200px transparent,
    0 0 0 202px rgba(176,190,197,0.02);
  pointer-events: none;
  z-index: 0;
}

.concentric-rings-left::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  bottom: 15%;
  left: -60px;
  box-shadow:
    0 0 0 40px transparent,
    0 0 0 42px rgba(239,83,80,0.04),
    0 0 0 80px transparent,
    0 0 0 82px rgba(239,83,80,0.03),
    0 0 0 120px transparent,
    0 0 0 122px rgba(239,83,80,0.02);
  pointer-events: none;
  z-index: 0;
}

/* --- OVERLAPPING SQUARES MOTIF --- */
.overlapping-squares {
  position: relative;
}

.overlapping-squares::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(176,190,197,0.1);
  top: 10%;
  right: 8%;
  transform: translate(10px, -10px) rotate(5deg);
  pointer-events: none;
  z-index: 0;
}

.overlapping-squares::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border: 2px solid rgba(239,83,80,0.08);
  top: 12%;
  right: 10%;
  transform: translate(20px, -5px) rotate(-3deg);
  pointer-events: none;
  z-index: 0;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #D32F2F;
  color: var(--color-white);
  border-bottom-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background: rgba(176,190,197,0.1);
  color: var(--color-white);
  border-bottom-color: var(--color-accent);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
}

.btn-accent:hover {
  background: #90A4AE;
  color: var(--color-text-on-accent);
  border-bottom-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-bg);
}

.btn-white:hover {
  background: #F5F5F5;
  border-bottom-color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* --- CARDS --- */
.card {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Card shadow-card behind (overlapping squares motif) */
.card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
  background: rgba(176,190,197,0.04);
  border-radius: var(--radius);
  z-index: -1;
  pointer-events: none;
}

/* Hover shine sweep */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::after {
  transform: translateX(100%);
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card h3 {
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Light card variant (for accent backgrounds) */
.card-light {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--color-primary);
  color: var(--color-text-on-accent);
}

.card-light h3 {
  color: var(--color-bg);
}

.card-light p {
  color: #3E3E3E;
}

/* Frosted glass cards */
.card-frosted {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-frosted::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.card-frosted:hover::after {
  transform: translateX(100%);
}

.card-frosted:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--grid-gap);
}

/* --- SECTION DIVIDER (double line) --- */
.section-divider {
  border-top: 1px solid rgba(240,224,224,0.1);
  border-bottom: 1px solid rgba(240,224,224,0.1);
  height: 8px;
  width: 90%;
  max-width: 1000px;
  margin: 4rem auto;
  position: relative;
}

.section-divider::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  color: var(--color-accent);
  background: var(--color-bg);
  padding: 0 1rem;
}

.section-divider-light {
  border-top-color: rgba(16,10,10,0.1);
  border-bottom-color: rgba(16,10,10,0.1);
}

.section-divider-light::after {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
}

/* --- TESTIMONIAL CARDS --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--grid-gap);
}

.testimonial-card {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--color-accent);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
  opacity: 0.6;
}

.testimonial-card .testimonial-text {
  color: var(--color-text);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-card .testimonial-author {
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.9rem;
}

.testimonial-card .testimonial-role {
  color: var(--color-text-light);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* --- TESTIMONIAL CAROUSEL --- */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  padding: 0 2rem;
}

.carousel-slide .testimonial-card {
  max-width: 700px;
  margin: 0 auto;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(176,190,197,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

.carousel-arrows {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel-arrow {
  background: rgba(176,190,197,0.15);
  border: 1px solid rgba(176,190,197,0.2);
  color: var(--color-text);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.carousel-arrow:hover {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
}

/* --- STATS: BIG NUMBER CARDS --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--grid-gap);
  text-align: center;
}

.stat-card {
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.bg-accent .stat-number {
  color: var(--color-primary);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.bg-accent .stat-label {
  color: #3E3E3E;
}

/* --- FORM STYLES: INLINE PAIRED --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  font-variant: small-caps;
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(176,190,197,0.2);
  color: var(--color-text);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(176,190,197,0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A88A8A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* --- GEOMETRIC CSS ILLUSTRATIONS (Image Placeholders) --- */
.geo-illustration {
  position: relative;
  overflow: hidden;
  background: rgba(176,190,197,0.05);
  border-radius: var(--radius);
  min-height: 200px;
}

.geo-illustration .shape-1 {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(239,83,80,0.25);
  top: 20%;
  left: 25%;
}

.geo-illustration .shape-2 {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(176,190,197,0.2);
  top: 40%;
  right: 20%;
  transform: rotate(30deg);
}

.geo-illustration .shape-3 {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 60px solid rgba(229,115,115,0.2);
  bottom: 15%;
  left: 40%;
}

.geo-illustration .shape-4 {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(176,190,197,0.15);
  bottom: 25%;
  right: 30%;
}

.geo-illustration .shape-5 {
  position: absolute;
  width: 40px;
  height: 70px;
  background: rgba(239,83,80,0.15);
  top: 10%;
  right: 15%;
  transform: rotate(-15deg);
}

/* Portrait placeholder variant */
.geo-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(176,190,197,0.1) 0%, rgba(239,83,80,0.08) 100%);
  border-radius: var(--radius);
}

.geo-portrait .p-shape-1 {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: rgba(176,190,197,0.15);
  top: 10%;
  left: 20%;
}

.geo-portrait .p-shape-2 {
  position: absolute;
  width: 40%;
  height: 25%;
  background: rgba(239,83,80,0.12);
  bottom: 0;
  left: 30%;
  border-radius: var(--radius) var(--radius) 0 0;
}

.geo-portrait .p-shape-3 {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(229,115,115,0.2);
  top: 25%;
  left: 35%;
}

/* Circle portrait variant */
.geo-portrait-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(176,190,197,0.15) 0%, rgba(239,83,80,0.1) 100%);
  flex-shrink: 0;
}

.geo-portrait-circle::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: rgba(176,190,197,0.25);
  top: 15%;
  left: 25%;
}

.geo-portrait-circle::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 30%;
  background: rgba(239,83,80,0.15);
  bottom: 0;
  left: 20%;
  border-radius: 50% 50% 0 0;
}

/* --- TEAM CARDS --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
}

.team-card {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.3s;
}

.team-card:hover {
  transform: scale(1.02);
}

.team-card .team-portrait {
  aspect-ratio: 3/4;
  max-height: 300px;
}

.team-card .team-info {
  padding: 1.5rem;
}

.team-card .team-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.team-card .team-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.team-card .team-bio {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.team-card .team-detail {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* Hover overlay for quote */
.team-card .team-quote-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16,10,10,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 5;
  pointer-events: none;
}

.team-card:hover .team-quote-overlay {
  opacity: 1;
}

.team-quote-overlay blockquote {
  font-style: italic;
  color: var(--color-text);
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.6;
}

/* Team preview strip (circle portraits) */
.team-preview-strip {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.team-preview-item {
  text-align: center;
  max-width: 140px;
}

.team-preview-item .preview-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: 0.75rem;
}

.team-preview-item .preview-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* --- TABS (Contact Page) --- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(176,190,197,0.15);
  margin-bottom: 2rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tab-btn.active {
  color: var(--color-text);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- ACCORDION (Careers Page) --- */
.accordion-item {
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-surface);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.accordion-header {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: rgba(176,190,197,0.05);
}

.accordion-header h3 {
  color: var(--color-text);
  font-size: 1.05rem;
}

.accordion-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform 0.3s;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-body-inner {
  padding: 0 2rem 1.5rem;
}

.accordion-body-inner p {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

.accordion-body-inner strong {
  color: var(--color-text);
}

/* --- FAQ ACCORDION --- */
.faq-item {
  border-bottom: 1px solid rgba(176,190,197,0.1);
  padding: 1rem 0;
}

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question h3 {
  color: var(--color-text);
  font-size: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 1rem 0;
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* --- DISCLOSURES SECTION --- */
.disclosures-section {
  background: linear-gradient(135deg, #0A0606 0%, #120C0C 100%);
  padding: 3rem 2rem;
  border-top: 1px solid rgba(176,190,197,0.1);
}

.disclosures-inner {
  max-width: 900px;
  margin: 0 auto;
}

.disclosures-section h2 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.disclosures-section p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* --- FOOTER (Watermark) --- */
.site-footer {
  background: linear-gradient(135deg, #0E0808 0%, #100A0A 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.site-footer::before {
  content: 'MYNEWLIFE';
  font-family: var(--font-heading);
  font-size: 15vw;
  font-weight: 900;
  position: absolute;
  opacity: 0.03;
  color: var(--color-text);
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-links a {
  color: rgba(240,224,224,0.5);
  font-size: 0.85rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-contact {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(240,224,224,0.35);
  margin-top: 2rem;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid rgba(176,190,197,0.15);
  padding: 1.25rem 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin: 0;
  flex: 1;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}

.cookie-manage {
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-manage:hover {
  color: var(--color-text);
}

/* --- PAGE TRANSITION OVERLAY --- */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  z-index: 100000;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.page-transition.active {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: all;
}

/* --- SLIDE-IN ANIMATIONS --- */
.slide-in {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in:nth-child(odd) {
  transform: translateX(-50px);
}

.slide-in:nth-child(even) {
  transform: translateX(50px);
}

.slide-in.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- LOGIN PAGE: SIDEBAR LAYOUT --- */
.login-page {
  display: flex;
  min-height: 100vh;
}

.login-form-panel {
  width: 420px;
  min-width: 380px;
  background: var(--color-surface);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(176,190,197,0.1);
  position: relative;
  z-index: 2;
}

.login-brand-panel {
  flex: 1;
  background: linear-gradient(135deg, rgba(176,190,197,0.12) 0%, rgba(239,83,80,0.08) 50%, rgba(176,190,197,0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 3rem;
}

.login-brand-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.login-brand-content .brand-watermark {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(176,190,197,0.1);
  font-weight: 900;
  margin-bottom: 2rem;
}

.login-brand-content .brand-stat {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.login-brand-content .brand-stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.login-brand-content blockquote {
  font-style: italic;
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.login-brand-content cite {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: normal;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--color-text);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.checkbox-group label {
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.forgot-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 1rem;
  text-decoration: underline;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: var(--color-accent);
}

/* --- VALUES GRID --- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.value-item h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

/* --- RESEARCH / ARTICLE CARDS --- */
.article-card {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.article-card:hover {
  transform: scale(1.02);
}

.article-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.article-card:hover::after {
  transform: translateX(100%);
}

.article-featured {
  padding: 3rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--grid-gap);
}

/* --- TWO COLUMN LAYOUT --- */
.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* --- MASONRY-LIKE SERVICE GRID --- */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--grid-gap);
}

/* --- NEWSLETTER FORM --- */
.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 1.5rem auto 0;
}

.newsletter-form .form-input {
  flex: 1;
  background: rgba(0,0,0,0.15);
  border-color: rgba(16,10,10,0.2);
  color: var(--color-text-on-accent);
}

.newsletter-form .form-input::placeholder {
  color: rgba(16,10,10,0.5);
}

/* --- PERKS LIST --- */
.perks-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.perks-list li {
  padding: 0.75rem 0 0.75rem 1.5rem;
  position: relative;
  color: var(--color-text-light);
  font-size: 0.92rem;
}

.perks-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* --- CREDENTIALS BAR --- */
.credentials-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.credentials-bar span {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(176,190,197,0.15);
  border-radius: var(--radius);
}

/* --- HEADING WITH RECTANGLE FRAME (Overlapping squares motif) --- */
.framed-heading {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0 0.5rem 1rem;
}

.framed-heading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  border-top: 2px solid var(--color-accent);
  border-left: 2px solid var(--color-accent);
  opacity: 0.4;
}

/* --- MAP PLACEHOLDER --- */
.map-placeholder {
  background: rgba(176,190,197,0.08);
  border-radius: var(--radius);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(176,190,197,0.06) 40px, rgba(176,190,197,0.06) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(176,190,197,0.06) 40px, rgba(176,190,197,0.06) 41px);
}

.map-placeholder span {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- CULTURE SECTION --- */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.max-w-900 { max-width: 900px; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .login-page {
    flex-direction: column;
  }

  .login-form-panel {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid rgba(176,190,197,0.1);
  }

  .login-brand-panel {
    padding: 3rem 2rem;
    min-height: 40vh;
  }
}

@media (max-width: 768px) {
  body {
    margin-left: 0;
  }

  .sidebar-nav {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar-nav.open {
    transform: translateX(0);
  }

  .hamburger {
    display: block;
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .cookie-banner {
    left: 0;
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }

  .hero-bands {
    min-height: auto;
  }

  .hero-band-middle h1 {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  .sticky-panel {
    position: relative;
    min-height: auto;
    padding: var(--section-padding) 0;
  }

  .feature-grid,
  .masonry-grid,
  .team-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-group .btn {
    text-align: center;
  }

  .panel-inner,
  .panel-inner-wide {
    padding: 2rem 1.25rem;
  }

  .team-preview-strip {
    gap: 1rem;
  }

  .geo-portrait-circle {
    width: 70px;
    height: 70px;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
  }

  .carousel-slide {
    padding: 0 0.5rem;
  }

  .scroll-progress {
    left: 0;
  }

  .login-brand-content .brand-watermark {
    font-size: 2.5rem;
  }

  .perks-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .hero-band-bottom {
    padding: 1.5rem 1rem;
  }
}