/* ================================================
   ADASA Димитровград — Stylesheet
   Brand color: #8BC34A (зелен)
   ================================================ */

/* ---------- RESET & VARIABLES ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand palette */
  --green-50:  #f1f8e9;
  --green-100: #dcedc8;
  --green-200: #c5e1a5;
  --green-300: #aed581;
  --green-400: #9ccc65;
  --green-500: #8BC34A;
  --green-600: #7cb342;
  --green-700: #689f38;
  --green-800: #558b2f;
  --green-900: #33691e;

  /* Neutrals */
  --gray-50:  #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;

  --white: #ffffff;
  --black: #111111;

  /* Semantic */
  --color-primary: var(--green-500);
  --color-primary-dark: var(--green-700);
  --color-primary-light: var(--green-100);
  --color-text: var(--gray-900);
  --color-text-muted: var(--gray-600);
  --color-bg: var(--white);
  --color-bg-dark: var(--gray-900);
  --color-border: var(--gray-200);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Sizes */
  --container-max: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent {
  color: var(--color-primary);
}

.inline-logo {
  display: inline;
  height: 0.55em;
  width: auto;
  vertical-align: middle;
  position: relative;
  top: -0.05em;
}

.inline-logo--sm {
  height: 0.14em;
}

.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--gray-50);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 540px;
}

.section-header--center {
  text-align: center;
  margin-bottom: 60px;
}

.section-header--center .section-subtitle {
  margin: 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 0.95rem;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 195, 74, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255, 0.4);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--color-text);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--color-text);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--green-50);
  border-color: var(--green-50);
  transform: translateY(-2px);
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--duration) var(--ease);
}

.header--scrolled {
  background: rgba(255,255,255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width var(--duration) var(--ease);
}

.nav-link:hover::after {
  width: 100%;
}

.header--scrolled .nav-link {
  color: var(--color-text);
}

.header__cta {
  background: var(--color-primary);
  color: var(--white);
  border-color: var(--color-primary);
}
.header__cta:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.header--scrolled .header__burger span {
  background: var(--color-text);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #2b2b2b 0%,
    #3a3a3a 40%,
    #4a4a4a 70%,
    #383838 100%
  );
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

.hero__image {
  flex: 0 0 45%;
  max-width: 45%;
  position: relative;
  z-index: 2;
}

.hero__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-300);
  background: rgba(139, 195, 74, 0.15);
  border: 1px solid rgba(139, 195, 74, 0.25);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  max-width: 700px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero__stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255, 0.12);
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image-wrap img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about__image-accent {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 16px;
  left: 16px;
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.3;
}

.about__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  color: var(--color-primary);
  border-radius: var(--radius-md);
}

.feature strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.feature p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---------- CATEGORIES ---------- */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--duration) var(--ease);
  cursor: default;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.cat-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: all var(--duration) var(--ease);
}

.cat-card:hover .cat-card__icon {
  background: var(--color-primary);
  color: var(--white);
}

.cat-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.cat-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------- GALLERY ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
}

.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item--wide {
  grid-column: span 2;
}

/* ---------- WHY US ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--duration) var(--ease);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-card__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-200);
  line-height: 1;
  margin-bottom: 20px;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 50%, var(--green-400) 100%);
  padding: 80px 0;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner__text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta-banner__text .text-accent {
  color: var(--green-100);
}

.cta-banner__text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta-banner__actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ---------- CONTACT ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}

.contact-card:hover {
  background: var(--green-50);
}

.contact-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.contact-card strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-card a {
  color: var(--color-primary);
  font-weight: 500;
}
.contact-card a:hover {
  text-decoration: underline;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  height: 32px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.footer__links a {
  font-size: 0.85rem;
  transition: color var(--duration) var(--ease);
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-size: 0.8rem;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}

.footer__socials a:hover {
  background: var(--color-primary);
  color: var(--white);
}

/* ---------- SCROLL TO TOP ---------- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-md);
  z-index: 900;
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about__grid {
    gap: 48px;
  }

  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner__actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: right var(--duration) var(--ease);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav .nav-link {
    color: var(--color-text);
    font-size: 1.1rem;
  }

  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
    z-index: 1002;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__image {
    flex: 0 0 auto;
    max-width: 80%;
    margin: 0 auto;
    order: -1;
  }

  .hero__title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: 24px 40px;
    justify-content: center;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .categories__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .why__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .cta-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner__actions .btn {
    width: 100%;
  }
}
