/*
  Основные стили сайта «ЛокалТех Инжиниринг».
  Созданы в соответствии с современными веб‑трендами: плавные переходы,
  сетка карточек, адаптивный дизайн и приятная цветовая палитра.
*/

:root {
  --primary-color: #0a2b55;      /* базовый тёмно‑синий оттенок */
  --secondary-color: #64c7c1;    /* акцентный бирюзовый, вдохновлённый логотипом */
  --light-color: #f5f8fc;        /* светлый фон для секций */
  --text-color: #1b2939;         /* цвет основного текста */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--light-color);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.navbar .logo img {
  height: 45px;
  width: auto;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar .nav-links li a {
  font-weight: 600;
  color: var(--text-color);
  padding: 8px 10px;
  transition: color 0.3s;
}

.navbar .nav-links li a:hover {
  color: var(--secondary-color);
}

/* Hamburger menu icon for mobile */
.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
}

.menu-icon span {
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

/* Hero section */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(10, 43, 85, 0.8), rgba(10, 43, 85, 0.6)),
    url('assets/directions2.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Generic section styling */
section {
  padding: 100px 20px 80px;
  /* отступ сверху при переходе по якорю, чтобы навбар не перекрывал заголовок */
  scroll-margin-top: 80px;
}

section h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  position: relative;
}

/* Decorative underline for h2 */
section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  margin-top: 8px;
  border-radius: 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.card h3 {
  margin: 15px;
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 700;
}

.card p {
  margin: 0 15px 20px;
  font-size: 0.95rem;
  color: #555;
  flex-grow: 1;
}

/* Subsection styling */
.subsection {
  margin-top: 40px;
}

.subsection h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.subsection ul {
  margin: 0 0 20px 0;
  padding-left: 20px;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

.subsection ul li {
  margin-bottom: 8px;
}

/* Tiles inside subsection */
.subsection.tiles ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.subsection.tiles ul li {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(10, 43, 85, 0.06); /* согласованно с палитрой */
  transition: transform 0.3s, box-shadow 0.3s;
}

.subsection.tiles ul li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

/* Footer / contact */
#contact {
  background: var(--primary-color);
  color: #ffffff;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px;
  gap: 40px;
}

.contact-info h2 {
  margin-top: 0;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.contact-info p {
  margin: 8px 0;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-image img {
  max-width: 300px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Media queries for responsiveness */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1rem;
  }
  section h2 {
    font-size: 2.1rem;
  }
  .subsection h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .navbar .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    display: none;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  }
  .navbar .nav-links.open {
    display: flex;
  }
  .navbar .nav-links li {
    margin: 10px 0;
    text-align: center;
  }
  .menu-icon {
    display: flex;
  }
  .contact-container {
    flex-direction: column;
    text-align: center;
  }
  .contact-image img {
    margin-top: 20px;
  }
}

