/* =============================================
   ЕЛАНА-ХАРТ — Modern Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Variables --- */
:root {
  --green-dark:   #1b5e20;
  --green-main:   #2e7d32;
  --green-mid:    #4caf50;
  --green-light:  #a5d6a7;
  --accent:       #f9c74f;
  --text-dark:    #1a1a1a;
  --text-muted:   #5a6a5b;
  --bg-light:     #f4f6f4;
  --bg-white:     #ffffff;
  --border:       #e0e7e0;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md:    0 6px 24px rgba(0,0,0,.10);
  --radius:       12px;
  --transition:   .25s ease;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-white);
  padding-top: 68px;
}

p { color: var(--text-muted); margin-bottom: 1rem; }

a { color: var(--green-main); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

/* --- Navbar --- */
.navbar {
  background: var(--green-dark) !important;
  border-bottom: 3px solid var(--accent);
  padding: .75rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff !important;
}

.nav-link {
  color: rgba(255,255,255,.88) !important;
  font-weight: 500;
  font-size: .95rem;
  padding: .45rem .85rem !important;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.12);
}

.dropdown-menu {
  background: var(--green-dark);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .5rem;
}
.dropdown-item {
  color: rgba(255,255,255,.85);
  border-radius: 6px;
  font-size: .9rem;
  padding: .45rem .9rem;
  transition: background var(--transition);
}
.dropdown-item:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.products-menu {
  min-width: 18.5rem;
}

.products-menu > li > .dropdown-item {
  white-space: nowrap;
}

/* nested product menu */
.dropdown-menu .dropend { position: relative; }
.dropdown-menu .dropend > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -0.5rem;
  margin-left: 0.35rem;
}
.submenu-toggle::after {
  content: "";
  float: right;
  margin-top: .45rem;
  border-top: .3em solid transparent;
  border-bottom: .3em solid transparent;
  border-left: .3em solid currentColor;
}

/* --- Carousel --- */
.carousel { margin-bottom: 0; }
.c-item {
  height: 520px;
  overflow: hidden;
}
.c-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-control-prev-icon,
.carousel-control-next-icon { filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }

/* --- Product image strip --- */
.head-images {
  background: var(--green-dark);
  border-top: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  padding: 0;
}
.head-images .img-wrp {
  flex: 1 1 0;
  overflow: hidden;
  max-height: 130px;
}
.head-images .img-wrp img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.head-images .img-wrp:hover img { transform: scale(1.08); }

/* --- Section titles --- */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-dark);
  position: relative;
  padding-bottom: .6rem;
  margin-bottom: 2.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 52px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* legacy .head-tag support */
.head-tag {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-dark);
  border-bottom: 3px solid var(--accent) !important;
  padding-bottom: .5rem;
  margin-bottom: 2rem;
}

/* --- Feature cards (products / strategies) --- */
.feature {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature .feature-icon img {
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-light);
}
.feature h6 {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--green-dark);
  text-transform: uppercase;
  margin: 1rem 0 .5rem;
}
.feature p { font-size: .92rem; flex: 1; }
.feature .btn {
  align-self: flex-start;
  margin-top: .5rem;
}

/* --- Buttons --- */
.btn-secondary {
  background: transparent;
  color: var(--green-main);
  border: 2px solid var(--green-main);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem 1rem;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover {
  background: var(--green-main);
  color: #fff;
  border-color: var(--green-main);
}

/* --- Alternating section backgrounds --- */
#featured-1 { background: var(--bg-white); }
#featured-2 { background: var(--bg-light); border-radius: var(--radius); }
#featured-3 { background: var(--bg-white); }
#featured-4 { background: var(--bg-light); border-radius: var(--radius); }
#featured-5 { background: var(--bg-white); }
#featured-6 { background: var(--bg-light); border-radius: var(--radius); }

/* section spacing */
main > .container { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }

/* --- About / Experience section images --- */
#featured-1 img,
#featured-3 img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* --- EU projects links --- */
#featured-6 a {
  display: block;
  padding: .5rem 0;
  font-size: .92rem;
  color: var(--green-main);
  border-bottom: 1px dashed var(--border);
}
#featured-6 a:hover { color: var(--green-dark); }
#featured-6 a:last-of-type { border-bottom: none; }
#featured-6 hr { display: none; }

/* --- Footer --- */
footer.footer {
  background: var(--green-dark);
  color: #fff;
  border-top: 3px solid var(--accent);
  padding: 2rem 1.5rem !important;
  margin-top: 3rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
footer.footer a {
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
}
footer.footer a:hover { color: var(--accent); }
footer.footer .float-end a {
  background: rgba(255,255,255,.12);
  padding: .3rem .8rem;
  border-radius: 6px;
  font-size: .85rem;
}

/* --- News icon placeholder --- */
.news-icon-placeholder {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .c-item { height: 260px; }
  .head-images .img-wrp { max-height: 80px; }
  .head-images .img-wrp img { height: 80px; }
  .section-title, .head-tag { font-size: 1.35rem; }
  .dropdown-menu .dropend > .dropdown-menu {
    position: static;
    margin: .25rem 0 .5rem .75rem;
    border-left: 2px solid rgba(255,255,255,.2);
  }
  .submenu-toggle::after {
    border-left: .3em solid transparent;
    border-right: .3em solid transparent;
    border-top: .3em solid currentColor;
    border-bottom: 0;
  }
}

.white-color {
  color: #fff;
}
.light-green-color {
  color: #90ee90  !important;
}
