/* palette: aubergine-copper */
@property --count { syntax: '<integer>'; initial-value: 0; inherits: false; }

:root {
  --primary-color: #2D1B50;
  --secondary-color: #4A2F7A;
  --accent-color: #A06830;
  --background-color: #F5F0FF;
  --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: 'Oswald', sans-serif;
  --alt-font: 'Roboto', sans-serif;
}

/* BASE RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--main-font);
  color: var(--primary-color);
  line-height: 1.2;
}

h1 { font-size: clamp(32px, 6vw, 64px); font-weight: 700; }
h2 { font-size: clamp(24px, 4vw, 42px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.8vw, 28px); font-weight: 600; }
p { font-size: clamp(14px, 1.6vw, 17px); }

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* BOLD-GEOMETRIC PRESET MANDATORY STYLES */
section { padding: 56px 16px; margin: 0; }
@media(min-width:1024px) { section { padding: 64px 24px; } }
section:nth-child(even) { clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%); background-color: #ffffff; }
.btn { width: 100%; max-width: 360px; display: block; margin: 0 auto; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* BUTTONS */
.btn {
  min-height: 44px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--main-font);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #885524;
  color: #ffffff;
}

.btn-outline {
  border-color: #ffffff;
  color: #ffffff;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: var(--primary-color);
}

/* HEADER & NAV (CSS-only Burger) */
header {
  background-color: var(--primary-color);
  padding: 16px;
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  width: auto;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.burger-btn .bar {
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--secondary-color);
  z-index: 999;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-nav a {
  color: #ffffff;
  font-family: var(--main-font);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  display: block;
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked ~ .burger-btn .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media(min-width: 768px) {
  .burger-btn { display: none; }
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 24px;
  }
  .site-nav a:hover {
    color: var(--accent-color);
  }
}

/* HERO (stats-anchored) */
.hero-section {
  padding: 0 !important;
  min-height: 81vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.hero-main {
  background-image: linear-gradient(rgba(17, 17, 17, 0.65), rgba(17, 17, 17, 0.65)), url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.hero-content h1 {
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media(min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
  .hero-actions .btn {
    width: auto;
    min-width: 200px;
  }
}

.hero-stats-bar {
  background-color: var(--primary-color);
  width: 100%;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

@media(min-width: 768px) {
  .hero-stats-bar {
    grid-template-columns: repeat(4, 1fr);
    padding: 32px 24px;
  }
}

.stat-item {
  text-align: center;
  color: #ffffff;
}

.stat-num {
  font-family: var(--main-font);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent-color);
  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);
}

.stat-unit {
  font-family: var(--main-font);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent-color);
}

@keyframes count-up {
  from { --count: 0; }
  to { --count: var(--target); }
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

/* SECTION TITLES */
.section-title {
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title p {
  margin-top: 12px;
  color: #666666;
}

.section-title.light h2,
.section-title.light p {
  color: #ffffff;
}

/* CARDS & ANIMATION */
.card {
  background: #ffffff;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.24s; }
.card:nth-child(4) { animation-delay: 0.36s; }

@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%;
}

/* 1. FEATURES SECTION */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media(min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

/* 2. STATS COUNTER SECTION */
.stats-section {
  background-color: var(--secondary-color);
  min-height: 280px;
}

.stats-counter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}

@media(min-width: 640px) {
  .stats-counter-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(min-width: 1024px) {
  .stats-counter-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 32px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-value {
  font-family: var(--main-font);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-box p {
  color: #f5f5f5;
  font-size: 1rem;
}

/* 3. ABOUT+IMAGE SECTION */
.about-section {
  min-height: 500px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media(min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.about-image-wrap img {
  border-radius: var(--radius-lg);
  max-height: 480px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 16px;
  color: #444444;
}

.about-list {
  list-style: none;
  margin-top: 24px;
}

.about-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 500;
}

.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
}

/* 4. TESTIMONIALS SECTION */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media(min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #f59e0b;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.quote {
  font-style: italic;
  color: #444444;
  margin-bottom: 20px;
}

.author strong {
  display: block;
  color: var(--primary-color);
}

.author span {
  font-size: 0.85rem;
  color: #777777;
}

/* 5. GALLERY SECTION */
.gallery-section {
  min-height: 440px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media(min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 220px);
  }
  .gallery-item.main-img {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-height: 200px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-box {
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #ffffff;
}

.color-1 { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }
.color-2 { background: linear-gradient(135deg, var(--accent-color), #6b4018); }
.color-3 { background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)); }

.box-content h3 {
  color: #ffffff;
  margin-bottom: 4px;
}

.box-content p {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* 6. CONTACT + FAQ SECTION */
.contact-faq-section {
  background-color: var(--background-color);
}

.contact-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media(min-width: 1024px) {
  .contact-faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-block h2,
.faq-block h2 {
  margin-bottom: 16px;
}

.contact-intro {
  margin-bottom: 24px;
  color: #555555;
}

.contact-info {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
}

.info-item {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.info-item:last-child { margin-bottom: 0; }

.info-item strong {
  color: var(--primary-color);
  margin-right: 8px;
}

.contact-form {
  background: #ffffff;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--alt-font);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-checkbox input {
  margin-top: 4px;
}

.form-checkbox label {
  font-size: 0.8rem;
  color: #666666;
  line-height: 1.4;
}

/* FAQ STYLES (Open list) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-color);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.faq-item p {
  font-size: 0.95rem;
  color: #555555;
}

/* FOOTER */
footer {
  background-color: var(--dark-color);
  color: #ffffff;
  padding: 48px 16px 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

@media(min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}