/* ====================================
   1. CSS VARIABLES (ROOT)
   ==================================== */
:root {
  --primary-color: #ff3c5a;
  --orange-color: #ff8c00;
  --dark-bg: #121212;
  --text-light: #ffffff;
  --text-gray: #b0b0b0;
  --text-dark: #333333;
  --bg-light: #f5f5f5;
}

/* ====================================
   2. BASE STYLES
   ==================================== */
body {
  font-family: "Commissioner", sans-serif;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* ====================================
   3. LAYOUT COMPONENTS
   ==================================== */

/* ----- 3.1 Navbar (from old code) ----- */
.navbar {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px 0;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar-collapse {
  text-align: center;
}

.navbar-brand img {
  height: 30px;
}

.navbar .nav-link {
  color: var(--text-light);
  margin: 0 10px;
  font-size: 16px;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.navbar-collapse.show + .navbar-toggler .navbar-toggler-icon,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cline x1='6' y1='6' x2='24' y2='24' stroke='white' stroke-width='2'/%3e%3cline x1='24' y1='6' x2='6' y2='24' stroke='white' stroke-width='2'/%3e%3c/svg%3e");
}

.navbar .nav-link.btn {
  background-color: #343a40;
  color: white;
  border: 1px solid #495057;
}

.contact-info-container {
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  margin-right: 15px;
  align-items: center;
}

.contact-info {
  display: flex;
  align-items: center;
  color: var(--text-light);
  font-size: 16px;
  margin-right: 20px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.contact-info-container-mobile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

/* ----- 3.2 Hero Section ----- */
.hero-section {
  background: url("/static/home_page/images/bg1.png") no-repeat center center;
  background-size: cover;
  color: var(--text-light);
  padding: 100px 0;
  max-height: 450px;
  position: relative;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 35px;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: "Tektur", sans-serif;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 25px;
  color: var(--text-gray);
}

/* ----- 3.3 Features Section ----- */
.features-section {
  padding: 40px 0;
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

/* ----- 3.4 Products Section ----- */
.products-section {
  background-color: white;
}

/* ----- 3.5 About Section ----- */
.about-section {
  padding: 80px 0;
}

/* ----- 3.6 Footer ----- */
.footer {
  background-color: #000000;
  color: #ffffff;
  padding: 30px 0;
}

/* ====================================
   4. UI COMPONENTS
   ==================================== */

/* ----- 4.1 Buttons ----- */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #e0354e;
  border-color: #e0354e;
}

/* ----- 4.2 Feature Cards ----- */
.feature-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 20px;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.feature-card.primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.feature-card.primary .feature-text {
  color: rgba(255, 255, 255, 0.8);
}

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

.feature-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.feature-icon-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000;
  font-weight: bold;
}

.feature-text {
  font-size: 14px;
  color: #777;
  margin-bottom: 0;
}

/* ----- 4.3 Product Cards ----- */
.product-card {
  background-color: var(--bg-light);
  justify-content: space-between;
  gap: 15px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  border-radius: 10px;
  transition: box-shadow 0.3s;
  max-width: 500px;
  width: 100%;
  border-width: 2px;
  border: 1px solid var(--bg-light);
  overflow: hidden;
  position: relative;
  padding: 15px;
  min-height: 160px;
}

.product-card > div:first-child {
  flex: 1;
  min-width: 0;
  padding-right: 5px;
  z-index: 1;
}

.image-wrapper,
.image-wrapper2 {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 180px;
  height: auto;
  position: relative;
  align-self: flex-end;
}

.image-wrapper2 {
  margin-right: -30px;
  margin-bottom: -30px;
}

.image-wrapper {
  margin-right: -40px;
  margin-bottom: -40px;
}

.product-image {
  width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ----- 4.4 Menu Items ----- */
.menu-item {
  position: relative;
  cursor: pointer;
  padding: 10px 0;
  transition: font-weight 0.3s;
  flex: 0 1 auto;
  text-align: center;
}

/* ----- 4.5 Gallery Items ----- */
.gallery-item img {
  width: 90%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
  justify-self: center;
  display: block;
}

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

/* ====================================
   5. TYPOGRAPHY
   ==================================== */
.about-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: start;
  font-family: "Montserrat", sans-serif;
}

.about-text {
  font-size: 16px;
  line-height: 1.6;
  color: black;
  margin-bottom: 25px;
  font-family: "Montserrat", sans-serif;
}

.product-title {
  color: #dc3545;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-subtitle {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 1rem;
  position: relative;
  padding-left: 12px;
  margin-bottom: 5px;
}

.section-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 2px;
  background-color: red;
  border-radius: 2px;
}

.section-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.footer-contact-item {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 5px;
}

/* ====================================
   6. UTILITY CLASSES
   ==================================== */

/* ----- 6.1 Alignment Classes ----- */
.about-align {
  align-items: center;
}

.competence-align {
  align-items: start;
}

.footer-align {
  align-items: center;
}

/* ----- 6.2 Decorative Elements ----- */
.red-line {
  height: 5px;
  background-color: #dc3545;
  display: block;
}

.gray-line {
  height: 5px;
  background-color: var(--bg-light);
  display: block;
}

.orange-line {
  display: block;
  width: 200px;
  height: 5px;
  background-color: var(--orange-color);
  margin: 20px 0;
}

/* ====================================
   7. CONTACT & FOOTER SPECIFIC
   ==================================== */
.footer-logo {
  max-width: 150px;
  height: auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: start;
  margin-bottom: 20px;
}

.footer-contact-container {
  width: 100%;
}

.footer-contact-column {
  flex: 1;
}

.footer-contact-column:first-child {
  margin-right: 20px;
}

/* ====================================
   8. MEDIA QUERIES
   ==================================== */

/* ----- 8.1 Bootstrap Navigation Override ----- */
@media (max-width: 991px) {
  .navbar-expand-lg .navbar-collapse {
    display: none !important;
  }

  .navbar-expand-lg .navbar-collapse.show {
    display: block !important;
  }

  .navbar-expand-lg .navbar-toggler {
    display: block !important;
  }

  .navbar-collapse {
    text-align: center;
    margin-top: 15px;
    width: 100%;
  }

  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-item {
    width: 100%;
  }
}

/* ----- 8.2 Desktop Navbar Styles ----- */
@media (min-width: 992px) {
  .contact-info-container-mobile {
    display: none !important;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none !important;
  }

  .contact-info-container {
    justify-content: center;
    gap: 20px;
  }

  .navbar > .container-fluid {
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  .navbar-nav {
    justify-content: center;
    flex-direction: row;
  }

  .nav-link {
    padding: 8px 15px;
    white-space: nowrap;
  }
}

/* ----- 8.3 Mobile Navigation (991px and down) ----- */
@media (max-width: 991px) {
  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-size: 18px;
    color: var(--text-light);
    margin: 5px 0;
  }

  .nav-link::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #626262;
  }

  .nav-link.btn.btn-dark {
    background-color: transparent !important;
    border: none !important;
    color: var(--text-light) !important;
    margin: 5px 0;
  }

  .nav-link.btn.btn-dark:hover {
    background-color: transparent !important;
    border-color: transparent !important;
    color: var(--text-light) !important;
  }
}

/* ----- 8.4 Large Devices (laptops/desktops, 991px and down) ----- */
@media (max-width: 991px) {
  .features-section {
    margin-top: -40px;
  }

  .gallery-item img {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }

  .about-section .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-section .gap-3 {
    gap: 1rem;
  }

  .footer .row {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
  }

  .footer-contact-container {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ----- 8.5 Medium Devices (tablets, 768px and down) ----- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }

  .contact-info-container {
    position: static;
    transform: none;
    justify-content: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }

  .contact-info-container-mobile {
    order: -1;
    margin-right: 10px;
  }

  .navbar-brand {
    order: 0;
  }

  .navbar-toggler {
    order: 1;
  }

  .navbar .container {
    flex-wrap: nowrap;
  }

  .contact-info {
    margin-bottom: 5px;
  }

  .about-section {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .about-text {
    text-align: start;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-contact-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-contact-column {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer-contact-column:first-child {
    margin-right: 0;
  }
}

/* ----- 8.6 Product Card Specific (768px to 991px) ----- */
@media (min-width: 768px) and (max-width: 991px) {
  .product-card {
    flex-direction: row;
    padding-right: 0;
    min-height: 180px;
  }

  .image-wrapper {
    width: 220px;
    margin-right: -50px;
    margin-bottom: -50px;
  }

  .product-image {
    width: 220px;
  }
}

/* ----- 8.7 Extra Small Devices (phones, 767px and down) ----- */
@media (max-width: 767px) {
  .contact-info-container-mobile .contact-text {
    display: none;
  }

  .contact-info {
    margin-right: 10px;
    font-size: 12px;
  }

  .contact-icon {
    width: 24px;
    height: 24px;
  }

  .navbar-brand img {
    height: 25px;
  }

  .product-card {
    flex-direction: row;
    padding-right: 0;
    overflow: hidden;
    position: relative;
    min-height: 150px;
  }

  .image-wrapper,
  .image-wrapper2 {
    width: 130px;
    position: absolute;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
  }

  .image-wrapper {
    margin-right: -30px;
    margin-bottom: -30px;
  }

  .image-wrapper2 {
    margin-right: -5px;
    margin-bottom: -5px;
  }

  .product-image {
    width: 180px;
  }

  .product-card > div:first-child {
    padding-right: 100px;
    max-width: 100%;
  }

  .section-title {
    font-size: 1rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }
}

/* ----- 8.8 Small Devices (landscape phones, 576px and down) ----- */
@media (max-width: 576px) {
  .hero-section {
    padding: 50px 0;
    min-height: 460px;
    padding-top: 120px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .about-section {
    padding: 40px 0;
  }

  .features-section .row {
    margin-top: -40px;
  }

  .footer-logo {
    max-width: 120px;
  }

  .footer-title {
    font-size: 16px;
  }

  .footer-contact-item {
    font-size: 12px;
  }
}

.contact-link {
  color: inherit;
  text-decoration: none;
}
.copy-tooltip {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 4px 8px;
  position: absolute;
  z-index: 1;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-info.position-relative:hover .copy-tooltip,
.contact-info.position-relative.show-tooltip .copy-tooltip {
  visibility: visible;
  opacity: 1;
}
