/********** GLOBAL STYLES **********/

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --secondary: #1e3a5f;
  --accent: #f59e0b;
  --light: #f8fafc;
  --dark: #0f172a;
  --text: #475569;
  --white: #ffffff;
  --border: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background: #ffffff;
  overflow-x: hidden;
  line-height: 1.7;
}

.container {
  max-width: 1200px;
}

section {
  padding: 80px 0;
}

img {
  border-radius: 12px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark);
  font-weight: 700;
}

p {
  font-size: 16px;
  line-height: 1.8;
}

.shadow-sm {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
}

/********** CONTACT PAGE **********/

.contact-page {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 18%, #f6fbfa 100%);
}

.contact-hero {
  background: linear-gradient(135deg, #0f172a 0%, #0d9488 55%, #115e59 100%);
  padding: 110px 0 80px;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.18),
    transparent 35%
  );
  pointer-events: none;
}

.contact-hero .container,
.contact-info-section .container,
.contact-form-section .container {
  position: relative;
  z-index: 1;
}

.contact-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  color: #dffdfa;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 18px;
}

.contact-hero h1 {
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.contact-hero .lead {
  max-width: 540px;
  font-size: 1.08rem;
}

.contact-highlights {
  margin-top: 24px;
}

.contact-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #edfdfd;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-panel {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
}

.panel-header {
  background: rgba(255, 255, 255, 0.08);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  display: inline-block;
}

.panel-body {
  padding: 28px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  flex-shrink: 0;
}

.info-item label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 8px;
}

.info-item p,
.info-item a {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info-section {
  padding-top: 82px;
  padding-bottom: 20px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 148, 136, 0.08);
  border-radius: 24px;
  padding: 30px 24px;
  height: 100%;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(13, 148, 136, 0.12),
    rgba(17, 94, 89, 0.15)
  );
  color: var(--primary);
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.contact-card h5 {
  margin-bottom: 12px;
}

.contact-card p,
.contact-card span,
.contact-card a {
  color: var(--text);
  margin-bottom: 0;
}

.contact-card a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--primary);
}

.contact-card span {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
}

.contact-form-section {
  padding-top: 20px;
  padding-bottom: 90px;
}

.contact-form-wrap,
.office-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.contact-form-wrap {
  padding: 38px;
}

.contact-form-wrap h2,
.office-card h3 {
  color: var(--dark);
  margin-bottom: 12px;
}

.contact-field {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  height: 58px;
  color: var(--dark);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-field:focus {
  outline: none;
  border-color: rgba(13, 148, 136, 0.5);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
  background: #fff;
}

textarea.contact-field {
  min-height: 170px;
  height: auto;
  resize: vertical;
}

.office-card {
  padding: 32px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fffd 100%);
}

.office-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.office-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--dark);
  font-weight: 500;
}

.office-list li:last-child {
  border-bottom: none;
}

.office-list i {
  color: var(--primary);
  width: 18px;
}

@media (max-width: 991.98px) {
  .contact-hero {
    padding-top: 90px;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }
}

@media (max-width: 767.98px) {
  .contact-hero h1 {
    font-size: 2.5rem;
  }

  .contact-highlights {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-card,
  .office-card {
    padding: 24px 18px;
  }

  .panel-body {
    padding: 18px 16px;
  }
}

/********** BUTTONS **********/

.btn {
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 28px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(13, 148, 136, 0.3);
}

.btn-square {
  width: 36px;
  height: 36px;
}

.btn-sm-square {
  width: 28px;
  height: 28px;
}

.btn-lg-square {
  width: 46px;
  height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

/********** BACK TO TOP **********/

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  border-radius: 50%;
  z-index: 99;
}

/********** NAVBAR **********/

.sticky-top {
  transition: all 0.4s ease;
}

.navbar {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.navbar-brand img {
  max-height: 65px;
}

.navbar-light .navbar-nav .nav-link {
  position: relative;
  margin-left: 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-light .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 3px;
  background: var(--primary);
  border-radius: 10px;
  transition: 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
  width: 100%;
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    margin-left: 0;
    padding: 12px 0;
  }
}

/********** HERO CAROUSEL **********/

.carousel-item {
  position: relative;
  /* Removed display: flex and align-items from here to protect native animations */
}

.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 1;
}

/* Forces text up over the dark background mask */
.carousel-item .container {
  position: relative;
  z-index: 2;
}

.carousel-item h1 {
  font-size: 18px;
  letter-spacing: 2px;
}

.carousel-item h5 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 768px) {
  /* Handle mobile height adjustments via the inner utility layer */
  .carousel-item .d-flex {
    min-height: 75vh !important;
  }

  .carousel-item h5 {
    font-size: 2.3rem;
  }
}

/********** PRIMARY SECTIONS **********/

.bg-primary {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  ) !important;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary p {
  color: white !important;
}

/********** CARDS **********/

.card {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.card img {
  height: 260px;
  object-fit: cover;
}

.card-body {
  padding: 25px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
}

.card-footer {
  background: white;
  border-top: 1px solid var(--border);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/********** PRODUCT CATEGORY SIDEBAR **********/

.nav.flex-column a {
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--dark);
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav.flex-column a:hover {
  background: var(--primary);
  color: white !important;
  padding-left: 22px;
}

/********** SERVICE SECTION **********/

.service-item {
  position: relative;
  height: 350px;
  padding: 0 30px;
  transition: 0.5s;
}

.service-item .service-icon {
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.service-item .service-icon i {
  transform: rotate(15deg);
}

.service-item a.btn {
  position: absolute;
  width: 60px;
  bottom: -48px;
  left: 50%;
  margin-left: -30px;
  opacity: 0;
}

.service-item:hover a.btn {
  bottom: -24px;
  opacity: 1;
}

/********** PRICE CAROUSEL **********/

.price-carousel::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 50%;
  bottom: 0;
  left: 0;
  background: var(--primary);
  border-radius: 8px 8px 50% 50%;
  z-index: -1;
}

.price-carousel .owl-nav {
  margin-top: 35px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
  margin: 0 5px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--primary);
  border-radius: 50%;
  font-size: 22px;
  transition: 0.3s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  color: white;
}

/********** TEAM CAROUSEL **********/

@media (min-width: 576px) {
  .team-item .row {
    height: 350px;
  }
}

.team-carousel .owl-nav {
  position: absolute;
  width: 100%;
  top: calc(50% - 22px);
  display: flex;
  justify-content: space-between;
  padding: 0 45px;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
  background: var(--dark);
}

/********** TESTIMONIALS **********/

.testimonial-carousel .owl-dots {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  margin: 0 5px;
  width: 20px;
  height: 20px;
  background: var(--light);
  border: 2px solid var(--primary);
  border-radius: 20px;
  transition: 0.3s;
}

.testimonial-carousel .owl-dot.active {
  width: 40px;
  background: var(--primary);
}

.testimonial-carousel .owl-item img {
  width: 150px;
  height: 150px;
}

/********** ABOUT PAGE **********/

.custom-hr {
  border: none;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  border-radius: 10px;
}

.rounded-circle {
  transition: all 0.3s ease;
}

.rounded-circle:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.2);
}

/********** VERTICAL LINE **********/

.vertical-line-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}

.vertical-line {
  position: relative;
  width: 2px;
  height: 50%;
  background-color: var(--primary);
}

.vertical-line::before,
.vertical-line::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
}

.vertical-line::before {
  top: 0;
  border-bottom-color: var(--primary);
}

.vertical-line::after {
  bottom: 0;
  border-top-color: var(--primary);
}

/********** FOOTER **********/

footer {
  background: #0f172a;
}

footer h4 {
  font-size: 20px;
  margin-bottom: 25px;
}

footer a {
  transition: 0.3s ease;
}

footer a:hover {
  color: var(--primary) !important;
  padding-left: 5px;
}

footer .btn-outline-light:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/********** GLASS EFFECT **********/

.bg-white {
  backdrop-filter: blur(12px);
}
