/* palette: violet-gold */
: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: 'Work Sans', sans-serif;
  --alt-font: 'Source Sans 3', sans-serif;
}

/* RETRO-CLASSIC Preset Rules */
section {
  padding: 56px 16px;
  margin: 0;
}
@media(min-width:1024px) {
  section {
    padding: 96px 24px;
  }
}
h1, h2, h3 {
  font-family: "Playfair Display", "Georgia", serif;
}
.card {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  background: #ffffff;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
}
.btn {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background: transparent;
  color: var(--primary-color);
  padding: 12px 24px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
}
hr {
  border: none;
  text-align: center;
}
hr::before {
  content: "— * —";
  display: block;
  font-size: 1.2rem;
  color: var(--accent-color);
}

/* Base reset */
body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography scale */
h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.2;
}
h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
}
h3 {
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
  color: var(--secondary-color);
}
p {
  font-size: clamp(14px, 1.6vw, 17px);
}

/* Header & Menu */
header {
  background-color: #ffffff;
  border-bottom: 2px solid var(--primary-color);
  position: relative;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  max-height: 48px;
  width: auto;
}
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 110;
}
.burger-btn .bar {
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 2px solid var(--primary-color);
  z-index: 99;
  box-shadow: var(--shadow-md);
}
.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.site-nav ul li a {
  display: block;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--primary-color);
}
.site-nav ul li a:hover {
  background-color: var(--background-color);
}

#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: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    box-shadow: none;
    border-bottom: none;
    background: transparent;
  }
  .site-nav ul {
    flex-direction: row;
    padding: 0;
  }
  .site-nav ul li a {
    padding: 8px 16px;
  }
}

/* HERO: scroll-peek variant */
.hero-section {
  min-height: calc(84vh - 80px);
  position: relative;
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 64px 16px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 0, 64, 0.85), rgba(46, 0, 96, 0.9));
}
.hero-title {
  font-weight: 700;
}
.hero-subtitle {
  max-width: 700px;
  margin: 24px auto 0;
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.95;
}
.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--dark-color) !important;
}
.btn-primary:hover {
  background-color: #b08d1f;
  border-color: #b08d1f;
}
.btn-outline {
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover {
  background-color: rgba(26, 0, 64, 0.05);
}

/* Scroll reveal sections */
@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%;
}

/* Background helpers */
.bg-light {
  background-color: #ffffff;
}

/* Timeline (Block 14) */
.timeline-container {
  border-left: 3px dashed var(--accent-color);
}
.timeline-item {
  padding-left: 24px;
}
.timeline-badge {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: 3px solid #ffffff;
}

/* Progress Bars (Block 12) */
@property --bar {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}
.bar-fill {
  width: calc(var(--bar) * 1%);
  animation: fill-bar 1.5s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 50%;
  background: var(--accent-color);
  height: 12px;
  border-radius: 999px;
}
@keyframes fill-bar {
  from { --bar: 0; }
  to { --bar: var(--pct); }
}
.bar-track {
  background: rgba(26, 0, 64, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-top: 4px solid var(--accent-color);
  border-bottom: 4px solid var(--accent-color);
}

/* Form inputs styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  background-color: #ffffff;
  color: var(--dark-color);
  outline: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

/* Footer styling */
footer {
  background-color: var(--primary-color);
  color: #ffffff;
  border-top: 4px solid var(--accent-color);
}
footer a {
  color: #ffffff;
  opacity: 0.85;
}
footer a:hover {
  opacity: 1;
  color: var(--accent-color);
}
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}