/* Thornlight Sales Page Theme (Systeme.io friendly)
   Paste into: Page > Settings > Custom CSS (or Global site CSS)
   Palette + utilities + components
*/

/* Base Styles */
:root {
  --bg: #f2ebdd; /* light parchment */
  --ink: #1b1b1b; /* near-black text */
  --muted: #5e5e5e; /* secondary text */
  --line: #dccfb3; /* dividers */
  --ember: #d18b3a; /* accent (buttons, highlights) */
  --ember-600: #b8742f;
  --ember-700: #965f27;
  --paper: #faf7f0; /* lighter panel */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: var(--ink);
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Typography */
.h1 {
  font-size: 3.5rem;
  line-height: 1.05;
  letter-spacing: 2px;
  font-weight: 700;
}

.h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
}

.h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
}

.main-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2c2c2c;
  margin: 20px 0;
  letter-spacing: 2px;
  text-align: center;
}

.subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: #444;
  margin: 30px 0 15px;
  line-height: 1.4;
}

.casual-text {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.hero-text {
  font-size: 1.4rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 20px;
  text-align: center;
}

.sub {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
}

.lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.kicker {
  color: var(--ember);
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

.note {
  font-size: 14px;
  color: var(--muted);
}

.text-center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.highlight {
  background: linear-gradient(
    180deg,
    rgba(209, 139, 58, 0.15),
    rgba(209, 139, 58, 0)
  );
  padding: 2px 4px;
  border-radius: 6px;
}

/* Layout */
.container {
  max-width: 1200px;
  width: calc(95% - 40px);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-beige {
  background: var(--paper);
}

.section-beige .panel {
  background: var(--paper);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: clamp(16px, 4vw, 60px);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid .panel:first-child .h3 {
  color: var(--muted);
}

.grid .panel:last-child .h3 {
  color: var(--ember);
}

.main-content {
  margin-left: 200px;
  min-height: 100vh;
}

.bg-main {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef)
}

.h-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Components */
/* Navigation/Sidebar */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: all 0.3s ease;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-content {
  padding: 20px 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  width: 100%;
}

.sidebar-header .nav-home-btn {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-header .nav-home-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  width: 100%;
  padding: 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-menu li {
  margin-bottom: 8px;
}

.nav-link {
  display: block;
  padding: 16px 20px;
  text-decoration: none;
  color: #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.nav-link:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.nav-link:hover:before {
  left: 100%;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(135deg, #444, #666);
  color: #fff;
  transform: translate(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  display: inline-block;
  background: #e7961b;
  color: #fff;
  padding: 18px 40px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background: #d68917;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 150, 27, 0.3);
}

.btn:active {
  transform: translateY(0);
  background: #c67b12;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ember);
}

.btn-outline:hover {
  background: var(--paper);
}

.hero-btn {
  border: 1px solid #e7961b;
  background: #e7961b;
  color: #fff;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-decoration: none;
  margin-top: 20px;
  width: 100%;
  white-space: nowrap;
}

.hero-btn:hover {
  background: #d68917;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 150, 27, 0.3);
}

.hero-btn-outline {
  background: transparent;
  color: #e7961b;
  border: 2px solid #e7961b;
  width: 100%;
}

.hero-btn-outline:hover {
  background: #e7961b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 150, 27, 0.3);
}

.btn-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
  text-align: center;
  position: relative;
}

.hero .cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* Lists */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
}

.bullet {
  min-width: 10px;
  min-height: 10px;
  border-radius: 2px;
  background: var(--ember);
  margin-top: 8px;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table tr:last-child td {
  border-bottom: none;
}

.table th {
  background: var(--paper);
  text-align: left;
}

/* Dividers */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0;
  color: var(--ember);
}

.divider:before,
.divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0.6;
}

.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 28px 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Logo */
.home-logo {
  margin-bottom: 0;
}

.home-logo img {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

/* Sticky CTA */
.sticky-cta {
  position: sticky;
  bottom: 20px;
  margin: 0 auto 20px;
  z-index: 1000;
  max-width: 500px;
  width: 100%;
  animation: slideUpIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.sticky-cta-content {
  background: linear-gradient(135deg, var(--paper) 0%, rgba(250, 247, 240, 0.95) 100%);
  border: 0.5px solid var(--line);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta-content:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.sticky-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sticky-cta-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.sticky-cta-subtitle {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.sticky-cta-btn {
  background: #e7961b;
  color: #fff;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sticky-cta-btn:hover {
  background: #d68917;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 150, 27, 0.3);
}

.sticky-cta-btn:hover .btn-icon {
  transform: translateX(2px);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  padding: 50px 0;
  text-align: center;
  margin-left: 200px;
  width: calc(100% - 200px);
}

.footer p {
  color: #e0e0e0;
  margin-bottom: 8px;
}

.footer-link {
  color: #a7a3a3;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-link:active {
  color: #fff;
}

/* Animations */
@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (max-width: 1024px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .h1 {
    font-size: 2.8rem;
  }
  
  .h2 {
    font-size: 2.4rem;
  }
  
  .subtitle {
    font-size: 1.4rem;
  }

  .sidebar {
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    position: fixed;
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
  }

  .sidebar-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    justify-content: space-between;
  }
  
  .sidebar-header {
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
    width: auto;
  }
  
  .sidebar-header .nav-home-btn {
    padding: 8px 16px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding: 0;
    align-items: center;
  }

  .nav-menu li {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .nav-link {
    padding: 12px 20px;
    white-space: nowrap;
    font-size: 14px;
  }

  .nav-link:hover,
  .nav-link.active {
    transform: translateY(-2px);
  }

  .main-content {
    margin-left: 0;
    margin-top: 70px;
  }

  .footer {
    margin-left: 0;
    width: 100%;
  }

  .mobile-menu-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .h1 {
    font-size: 2.2rem;
  }
  
  .h2 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.4rem;
  }
  
  .hero-text {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .home-logo img {
    width: 80px;
    height: 80px;
  }
  
  .hero-cta {
    flex-wrap: wrap;
  }
  
  .h-screen {
    min-height: 640px;
  }
  
  .titles-container {
    padding: 0 20px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .sidebar {
    transform: translate(-100%);
    transition: transform 0.3s ease;
    width: 100vw;
    height: 100vh;
    top: 0;
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    overflow-x: visible;
    overflow-y: auto;
  }

  .sidebar.active {
    transform: translate(0);
  }

  .sidebar-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 20px 30px;
    height: 100%;
  }
  
  .sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    width: 100%;
  }
  
  .sidebar-header .nav-home-btn {
    padding: 12px 20px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-menu {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    align-items: stretch;
  }

  .nav-link {
    padding: 20px 30px;
    font-size: 18px;
    text-align: center;
    border-radius: 15px;
  }

  .nav-link:hover,
  .nav-link.active {
    transform: scale(1.05);
  }

  .main-content {
    margin-left: 0;
    margin-top: 0;
  }

  .footer {
    margin-left: 0;
    width: 100%;
  }

  .sticky-cta {
    bottom: 15px;
    padding: 0 15px;
  }
  
  .sticky-cta-content {
    padding: 14px 16px;
    gap: 12px;
  }
  
  .sticky-cta-title {
    font-size: 15px;
  }
  
  .sticky-cta-subtitle {
    font-size: 12px;
  }
  
  .sticky-cta-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .h1 {
    font-size: 1.8rem;
  }
  
  .h2 {
    font-size: 1.6rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  .main-title {
    font-size: 1.8rem;
  }
  
  .big-title {
    font-size: 1.6rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  .contact-form {
    padding: 20px 15px;
  }

  .sticky-cta-text {
    flex: 1;
  }
  
  .sticky-cta-title {
    font-size: 14px;
  }
  
  .sticky-cta-subtitle {
    display: none;
  }
}