/* ==========================================================================
   Design System & Styling for Будіндустрія Сервіс
   ========================================================================== */

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

/* Color Variables & Config */
:root {
  --primary-color: #f59e0b; /* Industrial Amber */
  --primary-hover: #d97706; /* Darker Amber */
  --accent-color: #ea580c;  /* Alert / Warning Orange */
  --accent-hover: #c2410c;  /* Darker Alert Orange */
  
  --dark-bg-solid: #121314; /* Deep Charcoal */
  --dark-bg-card: #1c1d1f;  /* Industrial Grey Card */
  --dark-border: #2d3033;   /* Iron Border */
  --light-bg-solid: #fef5e6; /* Soft warm sand/peach background */
  --light-bg-card: #ffffff; /* Pure White Card */
  --light-border: #e6e2da;  /* Soft Sand Border */
  
  --text-dark: #1f2224;    /* Charcoal Text */
  --text-muted-dark: #646a70;
  --text-light: #f8fafc;   /* White Text */
  --text-muted-light: #94a3b8;
  
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 32px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 15px rgba(245, 158, 11, 0.4);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Styling */
body {
  font-family: var(--font-body);
  background-color: #ffffff; /* Main page background is pure white */
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Background Gradients & Industrial Details */
.industrial-stripes {
  background: repeating-linear-gradient(
    45deg,
    var(--primary-color),
    var(--primary-color) 10px,
    #121314 10px,
    #121314 20px
  );
  height: 6px;
  width: 100%;
}

.bg-industrial-dark {
  background-color: var(--dark-bg-solid);
  color: var(--text-light);
}

.bg-light-solid {
  background-color: var(--light-bg-solid) !important;
}

.text-orange {
  color: var(--primary-color) !important;
}

/* Custom Buttons */
.btn-industrial-primary {
  background-color: var(--primary-color);
  color: #121314;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.btn-industrial-primary:hover, 
.btn-industrial-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-industrial-outline {
  background-color: transparent;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--text-light);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.btn-industrial-outline:hover, 
.btn-industrial-outline:focus {
  background-color: var(--text-light);
  color: var(--dark-bg-solid);
  transform: translateY(-2px);
}

.btn-industrial-dark {
  background-color: var(--dark-bg-solid);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--dark-bg-solid);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.btn-industrial-dark:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg-solid);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Header & Navbar Contacts & Messengers */
.custom-navbar {
  background-color: rgba(18, 19, 20, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--dark-border);
  transition: var(--transition-smooth);
  padding: 0.8rem 0;
}

.custom-navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-lg);
}

.nav-phone {
  font-family: var(--font-heading);
  color: var(--text-light) !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-phone:hover {
  color: var(--primary-color) !important;
}

.nav-messenger-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.nav-messenger-icon svg {
  width: 18px;
  height: 18px;
}

.nav-messenger-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.nav-messenger-icon.icon-telegram:hover {
  background-color: #229ED9;
  border-color: #229ED9;
}

.nav-messenger-icon.icon-whatsapp:hover {
  background-color: #25D366;
  border-color: #25D366;
}

.nav-messenger-icon.icon-viber:hover {
  background-color: #7360F2;
  border-color: #7360F2;
}

.navbar-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-image: linear-gradient(rgba(18, 19, 20, 0.8), rgba(18, 19, 20, 0.85)), url('images/1534863823_karjer-pesok_1_0.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
  padding: 100px 0 140px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, var(--light-bg-solid), transparent);
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-section {
    padding: 80px 0 100px;
    background-attachment: scroll;
  }
}

.hero-badge-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.hero-badge-check:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.hero-badge-check svg {
  flex-shrink: 0;
  color: var(--primary-color);
}

/* Sections */
.section-padding {
  padding: 90px 0;
}

.section-title-wrapper {
  margin-bottom: 3.5rem;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 2.2rem;
  font-weight: 700;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin-top: 0.5rem;
}

.section-title.center::after {
  margin: 0.5rem auto 0;
}

.section-subtitle {
  color: var(--text-muted-dark);
  max-width: 600px;
  margin: 0 auto;
}

/* Product Cards */
.product-card {
  background-color: var(--light-bg-card);
  border: 1px solid var(--light-border);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

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

.product-img-wrapper {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
  background-color: #eaeaea;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--dark-bg-solid);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--primary-color);
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-muted-dark);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-price-wrapper {
  background-color: rgba(254, 245, 230, 0.5); /* Semi-transparent warm sand */
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 1.25rem;
}

.product-price-label {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  text-transform: uppercase;
}

.product-price {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
}

/* Supply Conditions Section */
.conditions-card {
  background: var(--light-bg-card);
  border: 1px solid var(--light-border);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.conditions-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.conditions-icon {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--primary-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.conditions-icon svg {
  width: 28px;
  height: 28px;
}

/* Why Choose Us Icons & Cards */
.benefit-card {
  background-color: var(--light-bg-card);
  border: 1px solid var(--light-border);
  border-radius: 6px;
  padding: 1.5rem;
  height: 100%;
  transition: var(--transition-smooth);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.benefit-card:hover {
  background-color: var(--dark-bg-solid);
  border-color: var(--primary-color);
  color: var(--text-light);
  transform: scale(1.02);
}

.benefit-card:hover .benefit-icon-wrapper {
  background-color: var(--primary-color);
  color: var(--dark-bg-solid);
}

.benefit-card:hover .benefit-title {
  color: var(--primary-color);
}

.benefit-card:hover .benefit-desc {
  color: var(--text-muted-light);
}

.benefit-icon-wrapper {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.benefit-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.benefit-content {
  flex-grow: 1;
}

.benefit-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-transform: none;
  color: var(--dark-bg-solid);
  transition: var(--transition-smooth);
}

.benefit-desc {
  font-size: 0.9rem;
  color: var(--text-muted-dark);
  margin-bottom: 0;
  transition: var(--transition-smooth);
}

/* Interactive Calculator Styling */
.calculator-box {
  background-color: var(--dark-bg-card);
  border: 2px solid var(--dark-border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.calculator-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
}

.calc-title {
  color: var(--text-light);
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calc-title svg {
  color: var(--primary-color);
}

.form-label-custom {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control-custom {
  background-color: #121314;
  border: 1px solid var(--dark-border);
  color: var(--text-light);
  border-radius: 4px;
  padding: 0.75rem 1rem;
}

.form-control-custom:focus {
  background-color: #121314;
  border-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

.form-check-input-custom {
  background-color: #121314;
  border: 1px solid var(--dark-border);
}

.form-check-input-custom:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.calculator-price-box {
  background-color: #121314;
  border: 1px dashed var(--primary-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.calc-price-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.calc-price-lbl {
  font-size: 0.85rem;
  color: var(--text-muted-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* About Section Gallery */
.about-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  padding-top: 65%;
  border: 1px solid var(--light-border);
}

.about-gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-gallery-item:hover .about-gallery-img {
  transform: scale(1.06);
}

.about-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 19, 20, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.about-gallery-item:hover .about-gallery-overlay {
  opacity: 1;
}

/* FAQ Accordion Styling */
.faq-accordion .accordion-item {
  background-color: var(--light-bg-card);
  border: 1px solid var(--light-border);
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.faq-accordion .accordion-item:hover {
  border-color: var(--primary-color);
}

.faq-accordion .accordion-button {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-dark);
  padding: 1.25rem 1.5rem;
  background-color: var(--light-bg-card);
  box-shadow: none;
  border: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(254, 245, 230, 0.3); /* Soft warm sand button */
  color: var(--primary-hover);
  border-bottom: 1px solid var(--light-border);
}

.faq-accordion .accordion-button::after {
  background-size: 1.25rem;
  transition: var(--transition-smooth);
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

.faq-accordion .accordion-body {
  padding: 1.5rem;
  color: var(--text-muted-dark);
  font-size: 0.95rem;
}

/* Contact widgets & messengers */
.messenger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  text-transform: uppercase;
  color: white !important;
  transition: var(--transition-smooth);
}

.messenger-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-telegram {
  background-color: #229ED9;
  color: white !important;
}
.btn-telegram:hover {
  background-color: #1e87bb;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white !important;
}
.btn-whatsapp:hover {
  background-color: #20b857;
}

.btn-viber {
  background-color: #7360F2;
  color: white !important;
}
.btn-viber:hover {
  background-color: #5e4dd3;
}

.messenger-icons-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Floating Contact Widget */
.floating-contact {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.floating-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--dark-bg-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.floating-trigger:hover {
  background-color: var(--primary-hover);
  color: white;
  transform: scale(1.05);
}

.floating-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  animation: slideUp 0.3s ease forwards;
}

.floating-menu.active {
  display: flex;
}

.floating-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: white !important;
  transition: var(--transition-smooth);
}

.floating-item:hover {
  transform: scale(1.1);
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA & Footer */
.cta-section {
  position: relative;
  background-image: linear-gradient(rgba(18, 19, 20, 0.9), rgba(18, 19, 20, 0.95)), url('images/photo_2019-10-29_12-50-38_0.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 80px 0;
}

.footer-section {
  background-color: #0b0c0d;
  color: var(--text-muted-light);
  font-size: 0.9rem;
  border-top: 2px solid var(--dark-border);
}

/* Prevent footer styling from making messenger button text grey */
.footer-section a:not(.btn):not(.floating-item) {
  color: var(--text-muted-light);
}

.footer-section a:not(.btn):not(.floating-item):hover {
  color: var(--primary-color);
}

.footer-brand img {
  height: 45px;
}

/* Modal Customization */
.modal-content-custom {
  background-color: var(--dark-bg-card);
  color: var(--text-light);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
}

.modal-header-custom {
  border-bottom: 1px solid var(--dark-border);
  padding: 1.5rem 1.5rem 1rem;
}

.modal-body-custom {
  padding: 1.5rem;
}

.modal-title-custom {
  font-family: var(--font-heading);
  color: var(--primary-color);
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Custom styled scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg-solid);
}

::-webkit-scrollbar-thumb {
  background: var(--dark-border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
