/* palette: violet-amber */
:root {
  --primary-color: #1A0040;
  --secondary-color: #2E0060;
  --accent-color: #C9A227;
  --background-color: #F0EBFF;
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.16);
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 32px;
  --main-font: 'DM Serif Display', serif;
  --alt-font: 'Open Sans', sans-serif;
}

.bg-primary {
  background: #1A0040;
}
/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.7;
  font-size: clamp(14px, 4vw, 17px);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--main-font);
  color: var(--primary-color);
  font-weight: 700;
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.2;
}

h3 {
  font-size: clamp(18px, 2.8vw, 28px);
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

/* Editorial Style Preset - Copied literally and applied */
section {
  padding: 72px 16px;
}

@media(min-width:1024px) {
  section {
    padding: 80px 24px;
  }
}

h1 {
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

h2 .accent {
  color: var(--accent-color);
}

li {
  border-left: 4px solid var(--accent-color);
  padding-left: 12px;
  list-style: none;
}

hr {
  border: none;
  border-top: 2px solid var(--dark-color);
  margin: 32px 0;
}

/* Custom Kicker */
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-color);
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

/* Header & CSS Burger Nav */
header {
  background-color: var(--primary-color);
  padding: 16px 0;
  position: relative;
  z-index: 100;
}

header .logo img {
  max-height: 44px;
  width: auto;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--secondary-color);
  padding: 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-nav a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--accent-color);
}

/* Burger Button */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.burger-btn .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  transition: transform 0.3s, opacity 0.3s;
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

#menu-toggle:checked ~ .burger-btn .bar:first-child {
  transform: translateY(9px) rotate(45deg);
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .burger-btn .bar:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 32px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}

.btn-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Cards Hover Class */
.card {
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Floating Cards Hero Layout */
.hero {
  min-height: 82vh;
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(26, 0, 64, 0.82);
  z-index: 1;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
}

/* Floating Cards Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(var(--rot));
  }
  50% {
    transform: translateY(-12px) rotate(calc(var(--rot) + 1deg));
  }
}

.floating-cards-container {
  z-index: 2;
}

.floating-card {
  background-color: #ffffff;
  color: var(--dark-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  animation: float 4s ease-in-out infinite;
}

.card-rot-1 {
  --rot: -2deg;
  animation-delay: 0s;
}

.card-rot-2 {
  --rot: 2deg;
  animation-delay: 0.8s;
}

.card-rot-3 {
  --rot: -1deg;
  animation-delay: 1.6s;
}

@media (min-width: 768px) {
  .floating-card {
    transform: rotate(var(--rot));
  }
}

/* Stats Counter CSS @property */
@property --count {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

.stat-num {
  --target: 80;
  animation: count-up 2s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
  counter-reset: n var(--count);
}

.stat-num::after {
  content: counter(n);
}

@keyframes count-up {
  from {
    --count: 0;
  }
  to {
    --count: var(--target);
  }
}

/* Scroll Reveal */
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: reveal-up linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

/* Form Wrapper styles */
.form-wrapper input, .form-wrapper textarea {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-wrapper input:focus, .form-wrapper textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}

/* Footer logo filter */
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
  max-height: 38px;
}

footer {
  padding: 1.5rem 20px;
  background: #2E0060;
  text-align: center;
}

/* Additional Layout Tweaks */
.image-wrapper img {
  max-height: 480px;
  width: 100%;
  object-fit: cover;
}