/* palette: plum-gold */
:root {
  --primary-color: #7D3C98;      /* кнопки, акценти, заголовки */
  --secondary-color: #784212;    /* hero bg, dark-секції, footer */
  --accent-color: #D4AC0D;       /* іконки, hover, декор */
  --background-color: #F8F2FF;   /* фон light-секцій */
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(0,0,0,0.15);
  --shadow-color: rgba(0,0,0,0.22);
  
  --main-font: 'Merriweather', serif;
  --alt-font: 'Roboto', sans-serif;
  
  /* border-style: rounded */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-btn: 8px;
  
  /* shadow-style: dramatic */
  --shadow-card: 0 24px 64px rgba(0,0,0,0.22);
  --shadow-hover: 0 32px 72px rgba(0,0,0,0.28);
}

/* Typography scale */
h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  font-family: var(--main-font);
}
h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  font-family: var(--main-font);
}
h3 {
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
  font-family: var(--main-font);
}
h4 {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 600;
  font-family: var(--main-font);
}
p {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
  font-family: var(--alt-font);
}

/* Base resets & helper styles */
body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Sections color modes (mixed) */
.section-light {
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 48px 16px;
}
.section-light-alt {
  background-color: #ffffff;
  color: var(--text-color);
  padding: 48px 16px;
}
.section-dark {
  background-color: var(--secondary-color);
  color: #F5F5F5;
  padding: 48px 16px;
}

@media (min-width: 768px) {
  .section-light, .section-light-alt, .section-dark {
    padding: 80px 24px;
  }
}

/* Header & Navigation (relative, static) */
header {
  background: var(--secondary-color);
  position: relative;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  max-height: 48px;
  width: auto;
  display: block;
}
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  min-width: 44px;
  min-height: 44px;
  padding: 12px 7px;
  cursor: pointer;
  z-index: 1000;
}
.burger-btn .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #f0f0f0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

/* Mobile Nav Styles */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--secondary-color);
  z-index: 999;
  border-bottom: 2px solid var(--primary-color);
}
.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}
.site-nav ul li a {
  display: block;
  padding: 12px 24px;
  color: #f0f0f0;
  font-weight: 500;
  transition: color 0.2s ease;
}
.site-nav ul li a:hover {
  color: var(--accent-color);
}

/* Toggle menu functionality */
#menu-toggle:checked ~ .site-nav {
  display: block;
}
#menu-toggle:checked + .burger-btn .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menu-toggle:checked + .burger-btn .bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .burger-btn .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop Nav Styles */
@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    border-bottom: none;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 28px;
    padding: 0;
  }
  .site-nav ul li a {
    padding: 0;
  }
}

/* Hero Section Styles (fullscreen-center) */
.hero-section {
  min-height: 85vh;
  background: url('./img/bg.jpg') no-repeat center center / cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

/* Cards & Grid Layouts (Mobile first) */
.grid-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--border-color);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Overlap Image Block (About Section) */
.overlap-img-container {
  position: relative;
  z-index: 2;
}
@media (min-width: 1024px) {
  .overlap-img-container {
    margin-left: -40px;
    transform: scale(1.05);
  }
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff !important;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  display: inline-block;
  transition: transform 0.2s ease, background-color 0.2s ease;
  min-height: 44px;
  box-shadow: 0 4px 12px rgba(125, 60, 152, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #6c3483;
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--dark-color) !important;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  display: inline-block;
  transition: transform 0.2s ease, background-color 0.2s ease;
  min-height: 44px;
}
.btn-accent:hover {
  transform: translateY(-2px);
  background-color: #bfa10b;
}

/* Divider */
.divider {
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Feature Icon */
.feature-icon {
  font-size: 3rem;
  line-height: 1;
}

/* Quotes */
.quote-block {
  font-family: var(--main-font);
  position: relative;
}

/* Form Styles */
.form-input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  outline: none;
  transition: border-color 0.2s ease;
}
.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(125, 60, 152, 0.15);
}

/* Footer Image Inversion */
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

/* Animations */
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  animation: fade-up 0.8s ease-out forwards;
}