/* palette: cobalt-coral */
:root {
  --primary-color: #0B1F6B;
  --secondary-color: #1B2F88;
  --accent-color: #C0415A;
  --background-color: #F0F5FF;
  --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: 'Cormorant Garamond', serif;
  --alt-font: 'Source Sans 3', sans-serif;
}

/* Base Styles & Minimal-Light Preset */
body, html {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--alt-font);
  font-weight: 300;
  line-height: 1.9;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  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;
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(18px, 2.8vw, 28px);
}

p {
  font-size: clamp(14px, 1.6vw, 17px);
}

.kicker {
  font-family: var(--alt-font);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-color);
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Minimal-Light Section Padding & Borders */
section {
  padding: 96px 16px;
}

@media (min-width: 1024px) {
  section {
    padding: 120px 24px;
  }
}

section + section {
  border: none;
}

.bg-light {
  background-color: #FFFFFF;
}

.bg-dark {
  background-color: var(--primary-color);
}

/* Card Styling */
.card {
  background: #FFFFFF;
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Button Styling */
.btn {
  display: inline-block;
  font-family: var(--alt-font);
  font-weight: 600;
  text-align: center;
  border-radius: 999px;
  padding: 14px 36px;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 44px;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #A03045;
  box-shadow: 0 4px 12px rgba(192, 65, 90, 0.3);
}

.btn-outline {
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  background: transparent;
}

.btn-outline:hover {
  background: #FFFFFF;
  color: var(--primary-color);
}

/* Header & Navigation (Mobile-First) */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1000;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
  padding: 16px;
  z-index: 999;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-nav a {
  color: var(--text-color);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--accent-color);
}

/* Burger Button Logic */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.burger-btn .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: transform 0.3s, opacity 0.3s;
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

#menu-toggle:checked ~ .burger-btn .bar:first-child {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .burger-btn .bar:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 24px;
  }
}

/* HERO: cinematic-bottom-left */
.hero-section {
  position: relative;
  height: 82vh;
  min-height: 550px;
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 107, 0.95) 0%, rgba(11, 31, 107, 0.4) 60%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 48px;
  left: 16px;
  right: 16px;
  z-index: 2;
  text-align: left;
  max-width: 750px;
}

@media (min-width: 768px) {
  .hero-content {
    bottom: 64px;
    left: 48px;
    right: auto;
  }
}

.hero-title {
  color: #FFFFFF;
  font-weight: 300;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(15px, 1.8vw, 18px);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ANIMATIONS & PROPERTIES */

/* 1. 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%;
}

/* 2. Progress Bars */
@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: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  height: 12px;
}

/* 3. Donut Charts */
@property --deg {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

.donut {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-color) calc(var(--deg) * 1deg), var(--border-color) 0);
  animation: fill-donut 2s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-inner {
  position: absolute;
  width: 96px;
  height: 96px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--alt-font);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
}

@keyframes fill-donut {
  from { --deg: 0; }
  to { --deg: var(--target-deg); }
}

/* 4. Stats Counter Animation */
@property --count {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

.stat-num {
  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); }
}

/* Section Titles Styles */
.section-title {
  color: var(--primary-color);
  font-weight: 700;
}

.section-title.text-white {
  color: #FFF;
}

.section-desc {
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.85;
}

/* Comparison Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  min-width: 600px;
}

th, td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--primary-color);
  color: #FFFFFF;
  font-family: var(--alt-font);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.text-red {
  color: #C0415A;
}

.text-green {
  color: #2E7D32;
  font-weight: 400;
}

/* Form Styles */
.contact-form input, 
.contact-form textarea {
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
  border-color: var(--accent-color);
}

/* Footer style overrides */
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

/* Responsive utilities */
@media (max-width: 767px) {
  .hero-cta .btn {
    width: 100%;
  }
}