/* Adamar Rubber - Custom Styles (Forgex Template Adaptation) */

/* ============================================
   Font Faces
   ============================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5;
}

/* ============================================
   Global
   ============================================ */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #191919; }

/* ============================================
   Focus States for Accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #00B0AD;
  outline-offset: 2px;
}

.fx-btn:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 176, 173, 0.3);
}

.nav-link-item:focus-visible {
  outline: 2px solid #00B0AD;
  outline-offset: 4px;
}

/* ============================================
   Global Border Radius (8px)
   ============================================ */
img, video, picture img,
.fx-btn, button[type="submit"], button,
input, textarea, select,
.project-card, .serve-card, .serve-card .card-img,
.nav-dropdown-menu,
.swiper-slide img, .swiper-slide video,
.slider-btn, .filter-button,
.swiper-pagination-bullet { border-radius: 8px; }

.breadcrumb-section { border-radius: 8px; }
.cta-section { border-radius: 8px; }

/* Keep circles circular */
.swiper-pagination-bullet { border-radius: 50% !important; }
.fx-social-icon-btn { border-radius: 50% !important; }

/* ============================================
   Header - Floating Over Content
   ============================================ */
.fx-header-1-area {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1320px;
  width: calc(100% - 16px);
  z-index: 100;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}
@media (min-width: 768px) {
  .fx-header-1-area {
    top: 30px;
    width: calc(100% - 32px);
  }
}

/* Sticky state */
.fx-header-1-area.is-sticky {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1320px;
  width: calc(100% - 32px);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.fx-header-1-area.is-sticky .fx-header-1-top {
  display: none;
}

.header-sticky {
  transition: all 0.3s ease;
}

/* ============================================
   Navigation Dropdown
   ============================================ */
.nav-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.dropdown:hover > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 24px;
  font-size: 14px;
  color: #191919;
  transition: all 0.2s;
}
.nav-dropdown-menu a:hover {
  color: #00B0AD;
  padding-left: 30px;
}

/* ============================================
   Primary Button (Forgex fx-pr-btn-1 style)
   ============================================ */
.fx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #00B0AD;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.55, 0.085, 0, 0.99);
}
.fx-btn:hover {
  background: #0B262D;
  color: white;
  transform: translateY(-2px);
}
.fx-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}
.fx-btn-outline:hover {
  background: #00B0AD;
  border-color: #00B0AD;
}
.fx-btn-white:hover {
  background: white;
  color: #0B262D;
}

/* ============================================
   Section Subtitle (Forgex fx-subtitle-1 style)
   ============================================ */
.fx-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00B0AD;
  margin-bottom: 16px;
}
.fx-subtitle .num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: inherit;
}

/* ============================================
   Section Title (Forgex fx-scn-title-1 style)
   ============================================ */
.fx-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.15;
  color: #0B262D;
  text-transform: capitalize;
}
@media (max-width: 768px) {
  .fx-title { font-size: 28px; }
}

/* ============================================
   Hero Slider
   ============================================ */
.hero-slider .swiper-slide {
  height: 100vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
}
.hero-slider .slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slider .slide-bg img,
.hero-slider .slide-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slider .slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,38,45,0.85) 0%, rgba(11,38,45,0.5) 60%, rgba(11,38,45,0.3) 100%);
  z-index: 1;
}
.hero-slider .slide-content {
  position: relative;
  z-index: 2;
}
.hero-slide-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}
.hero-slide-number .current { color: white; }
.hero-slide-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1.1;
  color: white;
  text-transform: uppercase;
  max-width: 700px;
}
@media (max-width: 768px) {
  .hero-slide-title { font-size: 32px; }
}
.hero-slide-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-top: 20px;
  line-height: 1.7;
}

/* Hero pagination */
.hero-pagination {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.hero-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.3);
  opacity: 1;
  margin: 0 6px;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: #00B0AD;
}

/* ============================================
   Serve/Industries Slider Section
   ============================================ */
.serve-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.serve-card .card-img {
  height: 360px;
  overflow: hidden;
}
.serve-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.serve-card:hover .card-img img {
  transform: scale(1.08);
}
.serve-card .card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #0B262D;
  margin-top: 16px;
}
.serve-card .card-title a {
  color: inherit;
  transition: color 0.3s;
}
.serve-card .card-title a:hover {
  color: #00B0AD;
}

/* ============================================
   Services Section (Dark BG with slider)
   ============================================ */
.services-dark-section {
  background: #0B262D;
  position: relative;
  overflow: hidden;
}
.services-dark-section .bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.services-dark-section .bg-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

/* ============================================
   Project/Product Grid
   ============================================ */
.project-card {
  position: relative;
  overflow: hidden;
}
.project-card .card-img {
  overflow: hidden;
}
.project-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .card-img img {
  transform: scale(1.05);
}
.project-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(11,38,45,0.9));
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.project-card:hover .card-overlay {
  transform: translateY(0);
}

/* ============================================
   Counter
   ============================================ */
.fx-counter-item {
  text-align: center;
}
.fx-counter-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: #0B262D;
  line-height: 1;
}
.fx-counter-label {
  font-size: 14px;
  color: #797a84;
  margin-top: 8px;
}

/* ============================================
   CTA / Newsletter Section
   ============================================ */
.cta-section {
  background: #00B0AD;
  position: relative;
  overflow: hidden;
}
.cta-section .cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-section .cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* ============================================
   Footer
   ============================================ */
.footer-area {
  background: #0B262D;
  color: rgba(255,255,255,0.6);
}
.footer-widget-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: white;
  text-transform: capitalize;
  margin-bottom: 20px;
}
.footer-menu a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: all 0.3s;
}
.footer-menu a:hover {
  color: #00B0AD;
  padding-left: 5px;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
}
.footer-contact i {
  color: #00B0AD;
  margin-top: 4px;
}

/* ============================================
   Marquee Text (Footer bottom)
   ============================================ */
.marquee-section {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.marquee-track {
  display: flex;
  animation: marqueeScroll 25s linear infinite;
  white-space: nowrap;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 48px;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.15);
}

/* ============================================
   Breadcrumb (Inner pages)
   ============================================ */
.breadcrumb-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.breadcrumb-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.breadcrumb-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.breadcrumb-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,38,45,0.9) 0%, rgba(11,38,45,0.6) 100%);
}
.breadcrumb-list {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 16px;
}
.breadcrumb-list a {
  color: #00B0AD;
  transition: color 0.3s;
}
.breadcrumb-list a:hover { color: white; }

/* ============================================
   Offcanvas Sidebar
   ============================================ */
.offcanvas-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}
.offcanvas-sidebar {
  transition: transform 0.4s cubic-bezier(0.55, 0.085, 0, 0.99);
}
.offcanvas-sidebar.active {
  transform: translateX(0) !important;
}

/* Mobile submenu animation (uses .is-open state via JS) */
.offcanvas-sidebar .dropdown-menu {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.offcanvas-sidebar .dropdown-menu.is-open {
  max-height: 800px;
  opacity: 1;
}

/* Hamburger: ensure 44px tap target */
.offcanvas-toggle {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-dropdown-toggle {
  min-width: 44px;
  min-height: 44px;
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.55, 0.085, 0, 0.99);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Video Section
   ============================================ */
.video-section {
  position: relative;
  height: 500px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .video-section { height: 320px; }
}
.video-section video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,38,45,0.6);
  z-index: 1;
}
.video-section iframe {
  z-index: 0;
}
.video-section > img {
  z-index: -1;
}
.video-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #00B0AD;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}
.video-play-btn:hover {
  background: white;
  color: #0B262D;
  transform: scale(1.1);
}

/* ============================================
   Page Hero Overlay (for standards pages etc)
   ============================================ */
.page-hero-overlay {
  background: linear-gradient(135deg, rgba(11,38,45,0.9) 0%, rgba(11,38,45,0.6) 100%);
}

/* ============================================
   Separator Line (between sections)
   ============================================ */
.fx-gap {
  height: 1px;
  background: #eee;
  max-width: 1320px;
  margin: 0 auto;
}

/* ============================================
   Contact Form
   ============================================ */
.fx-form input,
.fx-form textarea,
.fx-form select {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #e0e0e0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #191919;
  background: white;
  transition: border-color 0.3s;
  outline: none;
}
.fx-form input:focus,
.fx-form textarea:focus,
.fx-form select:focus {
  border-color: #00B0AD;
}

/* ============================================
   Grid Menu Button (3x3 dots - Forgex style)
   ============================================ */
.grid-menu-btn {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  padding: 2px;
}
.grid-menu-btn span {
  width: 6px;
  height: 6px;
  background: #0B262D;
  border-radius: 1px;
  transition: background 0.3s;
}
.grid-menu-btn:hover span {
  background: #00B0AD;
}

/* ============================================
   WhatsApp Button
   ============================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  z-index: 90;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
}
.whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
@media (max-width: 640px) {
  .whatsapp-btn {
    bottom: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #00B0AD;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 90;
}
@media (max-width: 640px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: #0B262D;
}

/* ============================================
   Mobile Height Overrides
   Tame fixed Tailwind heights that look excessive on small screens
   ============================================ */
@media (max-width: 640px) {
  .h-\[450px\], .h-\[480px\], .h-\[520px\],
  .h-\[400px\].md\:h-\[500px\] { height: 280px !important; }
  .h-\[360px\], .h-\[380px\] { height: 240px !important; }
  .h-\[320px\] { height: 220px !important; }
  .h-\[260px\] { height: 200px !important; }
}

/* ============================================
   Service Details Sidebar
   ============================================ */
.sidebar-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #0B262D;
  border-bottom: 1px solid #eee;
  transition: all 0.3s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: #00B0AD;
  color: white;
  padding-left: 30px;
}
