/*
   TheboNext - Final Brand System (Teal + Gold + Ink)
   Target: assets/css/style.css
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* === FINAL BRAND SYSTEM === */
  --primary-teal: #0a6b83; /* Deep Teal (Main Brand) */
  --accent-gold: #d4a017; /* Premium Digital Gold (CTAs, Accents) */
  --ink: #12181b; /* Ink (Typography) */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border-gray: #e2e8f0;
  --footer-bg: #0d2530; /* Dark Teal/Ink mix for premium footer */
  --footer-text: #cbd5e1;

  /* Functional ERP Colors (Reference Only) */
  --erp-success: #1e7f63;
  --erp-danger: #9e2a3b;
  --erp-warning: #c6922c;
}

body {
  font-family: "Inter", "Arial", sans-serif; /* Changed to Inter */
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--white);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* position: fixed; */
  width: 100%;
  /* top: 0;
  z-index: 1000; */
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.navbar {
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary-teal);
  letter-spacing: 0.5px;
  text-decoration: none;
}

.logo span {
  color: var(--ink); /* Next = Ink Black */
}

/* Fix Logo Size in Navbar */
.navbar-brand img.custom-logo {
  max-height: 50px; /* Forces the logo to be exactly 50px tall */
  width: auto; /* Keeps the width proportional so it doesn't stretch */
  height: auto;
}

.navbar-nav .nav-link {
  color: var(--ink);
  font-weight: 500;
  transition: color 0.3s;
  margin: 0 5px;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-teal);
}

.navbar-toggler {
  border: 1px solid var(--primary-teal);
  padding: 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(10, 107, 131, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-btn {
  background: var(--accent-gold);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 5px;
  font-weight: 600;
  margin-left: 15px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.navbar-nav .nav-btn:hover {
  background: var(--primary-teal);
  color: var(--white) !important;
  box-shadow: 0 5px 15px rgba(10, 107, 131, 0.3);
  transform: translateY(-2px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-teal) 0%, #054a5c 100%);
  color: var(--white);
  padding: 140px 0 80px;
  text-align: center;
}

.hero h1 {
  font-weight: 700;
  font-size: 3rem; /* Shrunk from 3.5rem to 3rem */
  color: var(--white);
  margin-bottom: 1rem;
}

.hero .slogan {
  font-size: 1.5rem;
  color: var(--accent-gold); /* Gold Slogan pops beautifully */
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero p {
  color: #e0f2f4;
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-button {
  background: var(--accent-gold);
  color: var(--white);
  padding: 15px 35px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.cta-button:hover {
  background: var(--white);
  color: var(--primary-teal);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===================================
   SLIDER SECTION
   =================================== */
.slider-section {
  padding: 80px 0;
  background: var(--light-gray);
}

#erpCarousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(10, 24, 27, 0.85); /* Ink with opacity */
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  border-radius: 10px;
  padding: 1.5rem;
}

.carousel-caption h3 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.carousel-caption p {
  color: var(--white);
  margin-bottom: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--ink);
  border-radius: 50%;
  padding: 20px;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--accent-gold);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  margin: 0 5px;
}

/* ===================================
   TYPOGRAPHY & SECTIONS
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-teal);
}

.section-title {
  text-align: center;
  font-size: 2rem; /* Shrunk from 2.5rem to 2rem (32px) */
  color: var(--primary-teal);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
  padding: 80px 0;
  background: var(--white);
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(10, 107, 131, 0.1);
  border-top: 4px solid var(--accent-gold); /* Gold border on hover */
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--light-gray);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-teal);
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary-teal);
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 0;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
  padding: 80px 0;
  background: var(--light-gray);
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border-left: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(10, 107, 131, 0.1);
  border-left: 4px solid var(--accent-gold); /* Gold left border on hover */
}

.service-card h4 {
  color: var(--primary-teal);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0;
}

/* ===================================
   INDUSTRIES SECTION
   =================================== */
.industries {
  padding: 80px 0;
  background: var(--white);
}

.industry-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(10, 107, 131, 0.12);
}

.industry-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.industry-card h4 {
  font-size: 1.3rem;
  margin: 1.5rem 1.5rem 0.75rem;
  color: var(--primary-teal);
}

.industry-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 1.5rem 1.5rem;
}

.tbn-blog-title {
  font-size: 1.1rem; /* Makes the card title much smaller and cleaner */
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  flex: 1;
}

.tbn-blog-title a {
  color: var(--ink); /* Makes the title black instead of teal */
  text-decoration: none;
  transition: color 0.2s;
}

.tbn-blog-title a:hover {
  color: var(--primary-teal); /* Turns teal when hovered */
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.contact-map {
  min-height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-teal);
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(212, 160, 23, 0.2);
}

.contact-form button {
  width: 100%;
  margin-top: 0.5rem;
}

/* ===================================
   FOOTER
   =================================== */
.tbn-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.93rem;
  line-height: 1.7;
}

.tbn-footer-main {
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tbn-footer-logo img {
  max-height: 100px !important;
  width: auto !important;
}

.tbn-footer-logo {
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--white);
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
}

.tbn-footer-logo span {
  color: var(--accent-gold); /* Next in Gold in footer */
}

.tbn-footer-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 340px;
  margin-bottom: 1.5rem;
}

.tbn-social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 1.75rem;
}

.tbn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--footer-text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tbn-social:hover {
  background: var(--accent-gold);
  color: var(--ink);
  transform: translateY(-3px);
}

.tbn-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tbn-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #94a3b8;
  font-size: 0.88rem;
}

.tbn-footer-contact li i {
  color: var(--accent-gold);
  font-size: 0.95rem;
  margin-top: 0.18rem;
  min-width: 16px;
  flex-shrink: 0;
}

.tbn-footer-contact a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.tbn-footer-contact a:hover {
  color: var(--white);
}

.tbn-footer-heading {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.tbn-footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.tbn-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tbn-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition:
    color 0.2s,
    padding-left 0.2s;
  display: inline-block;
}

.tbn-footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.tbn-footer-bottom {
  padding: 18px 0;
  background: #04181d; /* Even darker for bottom bar */
}

.tbn-copyright {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.tbn-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  justify-content: flex-end;
}

.tbn-footer-legal a {
  font-size: 0.82rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.tbn-footer-legal a:hover {
  color: var(--accent-gold);
}

/* Responsive Footer Fixes */
@media (max-width: 767px) {
  .tbn-footer-main {
    padding: 48px 0 36px;
  }
  .tbn-footer-desc {
    max-width: 100%;
  }
  .tbn-footer-legal {
    justify-content: flex-start;
    margin-top: 4px;
  }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .carousel-caption {
    width: 80%;
    bottom: 20px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .carousel-item img {
    height: 300px;
  }
  .carousel-caption {
    display: none;
  } /* Hide caption on mobile for better image view */
  .footer-main {
    padding: 48px 0 36px;
  }
  .footer-bottom-links {
    text-align: left;
    margin-top: 10px;
  }
  .footer-bottom-links a {
    margin-left: 0;
    margin-right: 15px;
  }
}
