/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent; /* Прибирає сірий спалах при тапі в Safari */
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background-color: #f8f9fa;
  color: #2b2b2b;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

section {
  scroll-margin-top: 70px;
}

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


/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo span {
  color: #ff6b00;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #4a4a4a;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

nav a:hover {
  color: #ff6b00;
}


/* ==========================================
   3. HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  min-height: 85svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
  color: #ffffff;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: rgba(255, 107, 0, 0.2);
  border: 1px solid #ff6b00;
  color: #ff944d;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero-section h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
  letter-spacing: -0.5px;
}

.company-byline {
  font-size: 14px;
  font-weight: 600;
  color: #d1d5db;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.company-byline span {
  color: #ff6b00;
  font-weight: 800;
}

.hero-desc {
  font-size: 17px;
  color: #e5e7eb;
  max-width: 700px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-actions {
  display: flex;
  justify-content: center;
}

/* Кнопки */
.btn {
  display: inline-block;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #ff6b00;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.btn-primary:hover {
  background-color: #e05e00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
}

.btn-call {
  padding: 14px 36px;
}

.btn-title {
  font-size: 18px;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.btn-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
  display: block;
}


/* ==========================================
   4. SERVICES SECTION
   ========================================== */
.services-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.services-section h2 {
  font-size: 32px;
  text-align: center;
  color: #1a1a1a;
  font-weight: 800;
}

.section-desc {
  text-align: center;
  color: #666;
  max-width: 600px;
  margin: 10px auto 40px auto;
}

.services-grid-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card-modern {
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #eaeeef;
  padding: 22px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.service-card-modern:hover {
  background: #ffffff;
  transform: translateY(-4px);
  border-color: #ff6b00;
  box-shadow: 0 12px 25px rgba(255, 107, 0, 0.12);
}

.card-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  background-color: #e5e7eb;
}

.card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card-modern:hover .card-thumb img {
  transform: scale(1.04);
}

.card-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-body p {
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 14px;
}

.see-all-btn {
  font-size: 13px;
  font-weight: 700;
  color: #ff6b00;
  display: inline-block;
  margin-top: auto;
  transition: transform 0.2s;
}

.service-card-modern:hover .see-all-btn {
  transform: translateX(4px);
}


/* ==========================================
   5. ALBUM MODAL & LIGHTBOX
   ========================================== */
#album-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #1e1e1e;
  color: #ffffff;
  border-radius: 16px;
  max-width: 1100px;
  width: 100%;
  max-height: 85svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #141414;
  border-bottom: 1px solid #333333;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.close-modal {
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #aaaaaa;
  transition: color 0.2s;
  padding: 0 5px;
}

.close-modal:hover {
  color: #ffffff;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.modal-gallery-grid a {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  background: #2a2a2a;
}

.modal-gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.modal-gallery-grid img:hover {
  transform: scale(1.05);
}


/* ==========================================
   6. WHY CHOOSE US
   ========================================== */
.why-section {
  padding: 80px 0;
  background-color: #f8f9fa;
  color: #1a1a1a;
}

.why-header {
  text-align: center;
  margin-bottom: 45px;
}

.why-badge {
  display: inline-block;
  color: #ff6b00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.why-header h2 {
  font-size: 34px;
  font-weight: 800;
  color: #1a1a1a;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 22px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background-color: #ff6b00;
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: #ffd8cc;
  box-shadow: 0 15px 30px rgba(255, 107, 0, 0.1);
}

.why-card:hover::before {
  opacity: 1;
}

.why-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.why-icon-box {
  width: 48px;
  height: 48px;
  background-color: #fff0e6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.why-num {
  font-size: 13px;
  font-weight: 800;
  color: #ff6b00;
  background: rgba(255, 107, 0, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.3;
}

.why-card p {
  font-size: 14px;
  color: #555555;
  line-height: 1.55;
  margin: 0;
}


/* ==========================================
   7. FOOTER & CONTACTS
   ========================================== */
.site-footer {
  background-color: #121212;
  color: #ffffff;
  padding: 50px 0 25px 0;
  margin-top: auto;
  text-align: center;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 26px;
  margin-bottom: 10px;
  font-weight: 700;
}

.site-footer p {
  color: #aaaaaa;
  max-width: 600px;
  margin: 0 auto 25px auto;
  font-size: 14px;
}

.footer-contacts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-contacts a,
.footer-contacts span {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  background-color: #222222;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
  
  /* Повністю прибираємо будь-які тіні та світіння */
  box-shadow: none !important;
  outline: none !important;
}

/* Прибираємо світіння та змінюємо фон при наведенні, фокусі й кліку */
.footer-contacts a:hover,
.footer-contacts a:focus,
.footer-contacts a:active {
  background-color: #333333;
  color: #ffffff;
  box-shadow: none !important;
  outline: none !important;
}

.footer-copy {
  border-top: 1px solid #222222;
  padding-top: 20px;
  color: #666666;
  font-size: 12px;
}

/* ==========================================
   8. ALL MEDIA QUERIES (CONSOLIDATED)
   ========================================== */

/* Планшети (Tablet Landscape & Smaller) */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Мобільні пристрої (Mobile & Tablet Portrait) */
@media (max-width: 768px) {
  
  .site-header {
    padding: 10px 16px;
    align-items: center;
  }

  .logo {
    font-size: 16px !important;
    white-space: normal;
    line-height: 1.2;
    flex: 1; /* Логотип займає весь доступний простір зліва */
    padding-right: 10px;
  }

  nav {
    display: grid;
    /* Створюємо 2 колонки однакової ширини для першого рядка */
    grid-template-columns: auto auto; 
    gap: 6px 12px; /* 6px вертикальний відступ, 12px горизонтальний */
    justify-content: end; /* Притискаємо блок навігації до правого краю */
  }

  nav a {
    font-size: 13px !important;
    white-space: nowrap;
    text-align: right;
  }

  /* Третя кнопка (Contact) займає першу колонку під першою кнопкою */
  nav a:nth-child(3) {
    grid-column: 1; 
    text-align: left; /* Чітко вирівнюється по лівому краю першої кнопки */
  }

  /* Hero */
  .hero-section {
    min-height: 85svh;
    padding: 50px 16px;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .company-byline {
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .btn-call {
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
  }

  /* Services */
  .services-section {
    padding: 50px 0;
  }

  .services-grid-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-thumb {
    height: 160px;
  }

  /* Modal */
  #album-modal {
    padding: 12px;
  }

  .modal-content {
    max-height: 88svh;
    border-radius: 12px;
  }

  .modal-header {
    padding: 12px 16px;
  }

  .modal-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .modal-gallery-grid a {
    height: 130px;
  }

  /* Why Choose Us */
  .why-section {
    padding: 50px 0;
  }

  .why-header h2 {
    font-size: 28px;
  }

  /* Компактний Footer */
  footer, .site-footer {
    padding: 24px 16px 16px !important; /* Зменшені внутрішні відступи футера */
  }

  .site-footer h2,
  .footer h2 {
    font-size: 22px !important; /* Зменшено заголовок "Contact Us Today" */
    margin-bottom: 8px !important;
  }

  .site-footer p,
  .footer p {
    font-size: 13px !important; /* Зменшено підзаголовок/опис */
    line-height: 1.35;
    margin-bottom: 16px !important;
  }

  .footer-contacts {
    flex-direction: column;
    align-items: center;
    gap: 8px !important; /* Зменшено відстань між кнопками з 12px до 8px */
  }

  .footer-contacts a,
  .footer-contacts span {
    width: 100%;
    max-width: 290px;
    padding: 8px 12px !important; /* Зменшено висоту кнопок (padding) */
    font-size: 14px !important; /* Трохи менший шрифт у кнопках */
  }
}
/* Маленькі смартфони (Small Mobile <= 480px) */
@media (max-width: 480px) {
  .logo {
    font-size: 12px;
    max-width: 130px;
  }

  nav a {
    font-size: 11px;
  }

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

  .hero-section h1 {
    font-size: 25px;
  }
}
