/* ============================================
   FERMEX - Industrial Metal Processing
   Premium Industrial Theme — Sailo Home 4 Style
   ============================================ */

/* ---- Google Fonts Preload ---- */
/* Manrope is loaded via <link> in HTML */

/* ---- CSS Variables / Brand Colors ---- */
:root {
  /* Fermex brand — extracted from logo */
  --primary: #D63031;
  --primary-dark: #B71C1C;
  --primary-rgb: 214, 48, 49;
  --secondary: #13284B;
  --secondary-rgb: 19, 40, 75;
  --dark: #0A1628;
  --dark-rgb: 10, 22, 40;

  /* Neutrals */
  --text: #687693;
  --text-dark: #1A1729;
  --text-light: #8D96A8;
  --heading: #000B47;
  --light-bg: #F8F8F8;
  --section-bg: #FAFBFE;
  --white: #FFFFFF;
  --border: #EBEBEB;
  --border-light: rgba(255,255,255,0.12);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow: 0 5px 25px rgba(0,0,0,0.08);
  --shadow-lg: 0 15px 50px rgba(0,0,0,0.12);
  --shadow-xl: 0 25px 60px rgba(0,0,0,0.15);

  /* Radius */
  --radius-sm: 5px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Typography */
  --font: 'Manrope', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.75;
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 60px; font-weight: 800; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }

p { margin-bottom: 15px; }
p:last-child { margin-bottom: 0; }

/* Section Titles — Sailo style */
.wpo-section-title {
  text-align: center;
  margin-bottom: 60px;
}

.wpo-section-title span {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: capitalize;
}

.wpo-section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--heading);
}

.wpo-section-title p {
  max-width: 540px;
  margin: 15px auto 0;
  color: var(--text);
}

/* Left-aligned section title */
.wpo-section-title-s2 {
  margin-bottom: 40px;
}

.wpo-section-title-s2 span {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.wpo-section-title-s2 h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0;
}

/* ---- Buttons — Sailo style ---- */
.theme-btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  letter-spacing: 0;
  line-height: 1;
  z-index: 1;
}

.theme-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  transition: var(--transition);
  z-index: -1;
}

.theme-btn:hover::before {
  left: 0;
}

.theme-btn-s1 {
  background: var(--primary);
  color: var(--white);
}

.theme-btn-s1:hover {
  color: var(--white);
}

.theme-btn-s2 {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.theme-btn-s2:hover {
  border-color: var(--secondary);
  color: var(--white);
}

.theme-btn-s2::before {
  background: var(--primary);
}

.theme-btn-s3 {
  background: var(--secondary);
  color: var(--white);
}

.theme-btn-s3::before {
  background: var(--primary);
}

/* View all link */
.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}

.view-all-btn:hover {
  color: var(--secondary);
  gap: 14px;
}

/* ============================================
   HEADER — Transparent overlay header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.header.scrolled {
  background: var(--white);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 88px;
}

/* Logo zone — fixed width, right divider */
.header-logo-zone {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 40px;
  margin-right: 40px;
  height: 100%;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.35s ease;
}

.header.scrolled .header-logo-zone {
  border-right-color: var(--border);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.35s ease;
}

.header.scrolled .logo img {
  filter: none;
}

/* Nav zone — center */
.header-nav-zone {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 32px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.header.scrolled .nav-menu > li > a {
  color: var(--heading);
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--primary);
}

.nav-menu > li > a .arrow {
  font-size: 10px;
  margin-left: 4px;
  display: inline-block;
  transition: var(--transition);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  padding: 10px 0;
  z-index: 100;
  border-top: 3px solid var(--primary);
}

.nav-menu > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 25px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-menu li a:hover {
  color: var(--primary);
  padding-left: 30px;
}

/* Right zone */
.header-right-zone {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}

.header.scrolled .lang-switcher {
  background: var(--light-bg);
}

.lang-switcher a {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  border-radius: 3px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header.scrolled .lang-switcher a {
  color: var(--text-light);
}

.lang-switcher a:hover {
  color: var(--white);
}

.header.scrolled .lang-switcher a:hover {
  color: var(--primary);
}

.lang-switcher a.active {
  background: var(--primary);
  color: var(--white);
}

.header.scrolled .lang-switcher a.active {
  background: var(--primary);
  color: var(--white);
}

/* Header CTA Button */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 36px;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  z-index: 10001;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 1px;
}

.header.scrolled .mobile-toggle span {
  background: var(--heading);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO — Cinematic full-screen
   ============================================ */
.static-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 920px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Slider backgrounds */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* Per-slide positioning for optimal crop */
.hero-slide:nth-child(1) { background-position: center 40%; }   /* drill bit / worker — keep action visible */
.hero-slide:nth-child(2) { background-position: center 60%; }   /* grinding sparks — keep workers & sparks */
.hero-slide:nth-child(3) { background-position: center 55%; }   /* angle grinder — keep sparks action */

.hero-slide.active {
  opacity: 1;
}

/* Dark navy overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(5, 10, 45, 0.91) 0%,
      rgba(5, 10, 45, 0.84) 35%,
      rgba(7, 18, 43, 0.62) 62%,
      rgba(7, 18, 43, 0.28) 100%
    );
}

/* Hero content */
.static-hero .container {
  position: relative;
  z-index: 3;
}

.hero-content,
.hero-slide-content {
  max-width: 660px;
  padding-top: 30px;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3.5px;
  margin-bottom: 28px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Heading */
.hero-content h2,
.hero-slide-content h2 {
  font-size: 78px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.07;
  margin-bottom: 30px;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.4);
}

/* Paragraph */
.hero-content p,
.hero-slide-content p {
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
  margin-bottom: 45px;
  max-width: 540px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

/* Hero primary button */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 44px;
  background: var(--primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  text-decoration: none;
  transition: var(--transition);
  border: none;
}

.hero-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Left & Right circular arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-arrow:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.hero-arrow-left {
  left: 40px;
}

.hero-arrow-right {
  right: 40px;
}

/* ============================================
   FEATURE / FUN FACT SECTION
   ============================================ */
.wpo-feature-section {
  padding: 0;
  position: relative;
  z-index: 4;
  margin-top: -1px;
}

.wpo-feature-section .container {
  display: flex;
}

.wpo-feature-item {
  flex: 1;
  padding: 45px 30px;
  text-align: center;
  background: var(--secondary);
  color: var(--white);
  position: relative;
  transition: var(--transition);
}

.wpo-feature-item:nth-child(even) {
  background: var(--dark);
}

.wpo-feature-item:hover {
  background: var(--primary);
}

.wpo-feature-item .fi {
  font-size: 50px;
  color: var(--primary);
  margin-bottom: 18px;
  display: block;
  transition: var(--transition);
}

.wpo-feature-item:hover .fi {
  color: var(--white);
}

.wpo-feature-item h3 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 10px;
  font-weight: 600;
}

.wpo-feature-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0;
  line-height: 1.7;
}

.wpo-feature-item:hover p {
  color: rgba(255,255,255,0.85);
}

/* ============================================
   ABOUT SECTION — Sailo style
   ============================================ */
.wpo-about-section {
  padding: 120px 0;
  background: var(--white);
  overflow: hidden;
}

.wpo-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.wpo-about-img {
  position: relative;
}

.wpo-about-img .main-img {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  height: 480px;
}

.wpo-about-img .main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wpo-about-img .experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.wpo-about-img .experience-badge .number {
  font-size: 50px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.wpo-about-img .experience-badge .text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-top: 5px;
}

.wpo-about-img .shape-decoration {
  position: absolute;
  top: -25px;
  left: -25px;
  width: 100px;
  height: 100px;
  background: repeating-linear-gradient(
    45deg,
    var(--primary),
    var(--primary) 2px,
    transparent 2px,
    transparent 8px
  );
  opacity: 0.15;
  z-index: 0;
}

.wpo-about-content {
  position: relative;
}

.wpo-about-content .subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}

.wpo-about-content .subtitle .line {
  width: 35px;
  height: 2px;
  background: var(--primary);
}

.wpo-about-content h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--heading);
  line-height: 1.28;
}

/* Accent span inside about h2 */
.wpo-about-content h2 .about-accent {
  color: var(--primary);
}

.wpo-about-content p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.wpo-about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 30px 0 35px;
}

.wpo-about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wpo-about-feature .check-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.wpo-about-feature span {
  font-weight: 600;
  font-size: 15px;
  color: var(--heading);
}

/* ============================================
   SERVICES — Sailo style
   ============================================ */
.wpo-service-section {
  padding: 120px 0;
  background: var(--section-bg);
}

.wpo-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.wpo-service-card {
  background: var(--white);
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.wpo-service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: transparent;
}

.wpo-service-card .card-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.wpo-service-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.wpo-service-card:hover .card-img img {
  transform: scale(1.08);
}

.wpo-service-card .card-img .icon-box {
  position: absolute;
  bottom: 0;
  left: 30px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(50%);
  z-index: 2;
  transition: var(--transition);
}

.wpo-service-card:hover .card-img .icon-box {
  background: var(--secondary);
}

.wpo-service-card .card-img .icon-box svg,
.wpo-service-card .card-img .icon-box .fi {
  font-size: 28px;
  color: var(--white);
}

.wpo-service-card .card-body {
  padding: 45px 30px 30px;
}

.wpo-service-card .card-body h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--heading);
  letter-spacing: -0.3px;
}

.wpo-service-card .card-body h3 a {
  color: inherit;
  transition: var(--transition);
}

.wpo-service-card .card-body h3 a:hover {
  color: var(--primary);
}

.wpo-service-card .card-body p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.wpo-service-card .card-body .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.wpo-service-card .card-body .read-more:hover {
  color: var(--secondary);
  gap: 14px;
}

/* ============================================
   HISTORY / WHY CHOOSE US — Sailo Dark BG
   ============================================ */
.wpo-history-section {
  padding: 120px 0;
  background: var(--secondary);
  position: relative;
  overflow: hidden;
}

.wpo-history-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero/slide-2.jpg') center/cover no-repeat;
  opacity: 0.08;
}

.wpo-history-section .wpo-section-title span {
  color: var(--primary);
}

.wpo-history-section .wpo-section-title h2 {
  color: var(--white);
}

.wpo-history-section .wpo-section-title p {
  color: rgba(255,255,255,0.65);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.advantage-card {
  padding: 40px 30px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.advantage-card:hover::before {
  transform: scaleX(1);
}

.advantage-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-5px);
}

.advantage-card .icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.15);
  margin-bottom: 22px;
  font-size: 24px;
  color: var(--primary);
}

.advantage-card h4 {
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.advantage-card p {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================
   PROJECTS — Sailo style
   ============================================ */
.wpo-project-section {
  padding: 120px 0;
  background: var(--white);
}

.wpo-project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.wpo-project-card {
  position: relative;
  overflow: hidden;
  height: 420px;
}

.wpo-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.wpo-project-card:hover img {
  transform: scale(1.1);
}

.wpo-project-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(
    to top,
    rgba(var(--dark-rgb), 0.9) 0%,
    rgba(var(--dark-rgb), 0.3) 40%,
    transparent 70%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: var(--transition);
}

.wpo-project-card:hover .overlay {
  opacity: 1;
}

.wpo-project-card .overlay .tag {
  display: inline-block;
  padding: 4px 15px;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  width: fit-content;
}

.wpo-project-card .overlay h3 {
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
}

.wpo-project-card .overlay p {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  margin-bottom: 0;
}

/* For 3-column variant on homepage */
.wpo-project-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.wpo-project-grid-3 .wpo-project-card {
  height: 380px;
}

/* ============================================
   REFERENCES / PARTNERS — Logo Wall
   ============================================ */
.wpo-partners-section {
  padding: 80px 0;
  background: var(--section-bg);
}

.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.partner-logos img {
  height: 45px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: var(--transition);
}

.partner-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ============================================
   CTA SECTION
   ============================================ */
.wpo-cta-section {
  padding: 100px 0;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.wpo-cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.wpo-cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -8%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.wpo-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.wpo-cta-content h2 {
  color: var(--white);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 15px;
}

.wpo-cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  margin-bottom: 35px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  display: inline-block;
  padding: 15px 40px;
  background: var(--white);
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-white:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  border: 1px solid rgba(255,255,255,0.4);
  transition: var(--transition);
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* ============================================
   FOOTER — Sailo Dark Premium
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
}

.footer-main {
  padding: 90px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 50px;
}

.footer-col .footer-logo {
  margin-bottom: 25px;
}

.footer-col .footer-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-col p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
  position: relative;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links li a::before {
  content: '›';
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

.footer-links li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.6;
}

.footer-contact-list li .icon {
  color: var(--primary);
  font-size: 16px;
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-contact-list li a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-contact-list li a:hover {
  color: var(--primary);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0;
}

.footer-lang-links {
  display: flex;
  gap: 18px;
}

.footer-lang-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  transition: var(--transition);
}

.footer-lang-links a:hover {
  color: var(--primary);
}

/* ============================================
   PAGE BANNER (Inner Pages)
   ============================================ */
.page-banner {
  position: relative;
  padding: 200px 0 100px;
  text-align: center;
  overflow: hidden;
  background-image: url('../images/hero/slide-2.jpg');
  background-size: cover;
  background-position: center 40%;
}

.page-banner .banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--dark-rgb), 0.78),
    rgba(var(--secondary-rgb), 0.70)
  );
  z-index: 1;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  color: var(--white);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-banner .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  font-weight: 500;
}

.page-banner .breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.page-banner .breadcrumb a:hover {
  color: var(--primary);
}

.page-banner .breadcrumb .separator {
  color: var(--primary);
}

.page-banner .breadcrumb li + li::before {
  content: "/";
  color: var(--primary);
  margin-right: 4px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-detail-section {
  padding: 120px 0;
}

.about-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.values-section {
  padding: 100px 0;
  background: var(--section-bg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.value-card {
  padding: 35px 30px;
  background: var(--section-bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.value-card .icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 15px;
}

.value-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 0;
}

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */
.service-detail-section {
  padding: 120px 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
}

.service-main h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.service-main p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.service-main .service-image {
  overflow: hidden;
  margin: 30px 0;
}

.service-main .service-image img {
  width: 100%;
}

.benefits-list {
  margin: 30px 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--heading);
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li .check {
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.process-step {
  text-align: center;
  padding: 35px 20px;
  background: var(--section-bg);
  border: 1px solid var(--border);
}

.process-step .step-number {
  width: 50px;
  height: 50px;
  margin: 0 auto 18px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.process-step h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 0;
}

/* Service Sidebar */
.service-sidebar .sidebar-widget {
  background: var(--section-bg);
  padding: 35px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
}

.service-sidebar .sidebar-widget h4 {
  font-size: 20px;
  margin-bottom: 22px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary);
}

.service-sidebar .service-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
  border: 1px solid var(--border);
}

.service-sidebar .service-list li a:hover,
.service-sidebar .service-list li a.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.service-sidebar .cta-widget {
  background: var(--secondary);
  color: var(--white);
  text-align: center;
  border: none;
}

.service-sidebar .cta-widget h4 {
  color: var(--white);
  border-bottom-color: var(--primary);
}

.service-sidebar .cta-widget p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}

.service-sidebar .cta-widget .phone {
  display: block;
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  margin-top: 15px;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-page-card {
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.project-page-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.project-page-card .card-image {
  height: 200px;
  overflow: hidden;
}

.project-page-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project-page-card:hover .card-image img {
  transform: scale(1.06);
}

.project-page-card .card-body {
  padding: 28px;
}

.project-page-card .card-body .tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.project-page-card .card-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.project-page-card .card-body p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
}

.project-page-card .card-body .card-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-page-card .card-body .card-items li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
}

.project-page-card .card-body .card-items li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-page-card .card-body .card-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
}

/* ============================================
   PROJECT TABS
   ============================================ */
.proj-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.proj-tab {
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--section-bg);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.3;
  font-family: inherit;
}

.proj-tab:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.04);
}

.proj-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Tab mode: grid stays as 3-column, only card visibility changes */
.projects-page-grid.tab-mode .project-page-card {
  display: none;
}

.projects-page-grid.tab-mode .project-page-card.tab-visible {
  display: block;
}

/* ============================================
   REFERENCES PAGE
   ============================================ */
.references-detail-section {
  padding: 120px 0;
}

.ref-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 70px;
}

.ref-category {
  text-align: center;
  padding: 45px 30px;
  background: var(--section-bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.ref-category:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.ref-category .icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 18px;
}

.ref-category h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.ref-category p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 0;
}

.ref-logos-section {
  text-align: center;
  padding: 60px 0;
}

.ref-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  align-items: center;
}

.ref-logo-item {
  padding: 30px;
  background: var(--section-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.ref-logo-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.ref-logo-item img {
  max-height: 64px;
  max-width: 150px;
  width: auto;
  height: auto;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: var(--transition);
  object-fit: contain;
}

.ref-logo-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

/* Make anchor-wrapped logo items behave like div items */
a.ref-logo-item {
  text-decoration: none;
  cursor: pointer;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  background: var(--section-bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.contact-info-card .icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 22px;
}

.contact-info-card h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.contact-info-card p {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 0;
  line-height: 1.7;
}

.contact-info-card a {
  color: var(--primary);
  font-weight: 500;
}

.contact-info-card a:hover {
  opacity: 0.75;
}

.contact-form {
  background: var(--section-bg);
  padding: 45px;
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.contact-form > p {
  color: var(--text);
  margin-bottom: 30px;
  font-size: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font);
  transition: var(--transition);
  color: var(--heading);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.map-section {
  padding: 0;
}

.map-responsive {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.map-responsive iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

/* Section Padding */
.section-padding { padding: 120px 0; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.35);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Mobile nav sidebar header — hidden on desktop, shown via responsive.css */
.mobile-nav-header {
  display: none;
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   INNER PAGE SHARED STYLES
   (used by about, contact, projects, references
   inner pages across all languages)
   ============================================ */

/* Section title variant (non-wpo) */
.section-title {
  text-align: center;
  margin-bottom: 55px;
}

.section-title span.subtitle {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 15px;
  line-height: 1.2;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

/* Standalone subtitle */
.about-detail-content .subtitle,
.contact-info .subtitle {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

/* About detail image */
.about-detail-image {
  border-radius: 0;
  overflow: hidden;
}

.about-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About features (non-wpo, inner pages) */
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 30px 0 35px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-feature .check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
}

.about-feature span:last-child {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
}

/* CTA Section (inner pages) */
.cta-section {
  position: relative;
  padding: 100px 0;
  background: var(--secondary);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.15) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 35px;
  line-height: 1.7;
}

.cta-section .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 36px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  text-decoration: none;
  transition: var(--transition);
}

.cta-section .btn-white {
  background: var(--white);
  color: var(--secondary);
}

.cta-section .btn-white:hover {
  background: var(--primary);
  color: var(--white);
}

.cta-section .btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
}

.cta-section .btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Contact info cards (inner contact page) */
.contact-info h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 15px;
}

.contact-info > p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-card {
  padding: 25px;
  background: var(--section-bg);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow);
}

.contact-card .icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: var(--primary);
  line-height: 1.7;
}

.contact-card a {
  color: var(--primary);
  font-weight: 500;
}

.contact-card a:hover {
  opacity: 0.75;
}

/* Contact form submit button */
.contact-form button[type="submit"] {
  width: 100%;
  margin-top: 6px;
  justify-content: center;
}

/* Form feedback messages */
.form-message {
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.form-message-success {
  background: rgba(39, 174, 96, 0.09);
  color: #1a7a40;
  border: 1px solid rgba(39, 174, 96, 0.28);
}

.form-message-error {
  background: rgba(214, 48, 49, 0.08);
  color: var(--primary-dark);
  border: 1px solid rgba(214, 48, 49, 0.25);
}

/* Contact form wrap */
.contact-form-wrap,
.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.contact-form-wrap h3,
.contact-form-wrapper h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 25px;
}

.contact-form-wrapper > p {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 25px;
  line-height: 1.7;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--heading);
  transition: var(--transition);
  background: var(--white);
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.contact-form .form-group.full-width {
  grid-column: 1 / -1;
}

/* Reference categories (inner references page) */
.references-page-section {
  padding: 100px 0;
}

.reference-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.reference-category {
  padding: 35px;
  background: var(--section-bg);
  border-radius: var(--radius);
  transition: var(--transition);
}

.reference-category:hover {
  box-shadow: var(--shadow);
}

.reference-category h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
}

.reference-category p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

/* References logos (non-wpo, inner pages) */
.references-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 20px 0;
}

.references-logos img {
  height: 45px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: var(--transition);
}

.references-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Projects page section */
.projects-page-section {
  padding: 100px 0;
}

/* read-more link (inner service cards etc) */
.read-more {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--primary-dark);
}

/* Service CTA block at bottom of service page */
.service-cta {
  margin-top: 50px;
  padding: 40px;
  background: var(--section-bg);
  border-radius: var(--radius);
  text-align: center;
}

.service-cta h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 10px;
}

.service-cta p {
  color: var(--text);
  margin-bottom: 25px;
}

/* Service list sidebar */
.service-list {
  background: var(--section-bg);
  padding: 30px;
  border-radius: var(--radius);
  margin-bottom: 30px;
}

.service-list h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

.service-list ul {
  list-style: none;
}

.service-list li {
  margin-bottom: 5px;
}

.service-list li a {
  display: block;
  padding: 12px 15px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.service-list li a:hover,
.service-list li.active a {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
  font-weight: 600;
}

/* CTA widget in sidebar */
.cta-widget {
  background: var(--secondary);
  padding: 35px;
  border-radius: var(--radius);
  text-align: center;
}

.cta-widget h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-widget p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 25px;
  line-height: 1.6;
}

/* ============================================
   HERO SLIDE CONTENT — Per-slide text blocks
   ============================================ */
.hero-slide-content {
  display: none;
}

.hero-slide-content.active {
  display: block;
  animation: heroSlideIn 0.85s ease forwards;
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ENHANCED SERVICE CARDS (Homepage)
   ============================================ */
.wpo-service-card {
  box-shadow: 0 3px 18px rgba(0,0,0,0.07);
}

.wpo-service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.4s ease;
}

.wpo-service-card:hover::after {
  width: 100%;
}

.service-card-number {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  letter-spacing: 1px;
  border: 2px solid rgba(255,255,255,0.25);
}

.wpo-service-card .card-body .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.wpo-service-card .card-body .read-more:hover {
  background: var(--primary);
  color: var(--white);
  gap: 12px;
}

/* ============================================
   FILE UPLOAD FIELD
   ============================================ */
.file-upload-wrapper {
  position: relative;
}

.file-upload-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  border: 2px dashed var(--border);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  width: 100%;
}

.file-upload-label:hover,
.file-upload-label.has-file {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.03);
}

.file-upload-icon {
  font-size: 30px;
  line-height: 1;
  color: var(--primary);
}

.file-upload-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
}

.file-upload-filename {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: none;
}

.file-upload-label.has-file .file-upload-filename {
  display: block;
}

.file-upload-formats {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================
   ENHANCED SERVICE PAGE CTA SECTION
   "Ready to collaborate / Spremni za saradnju"
   ============================================ */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18) 0%, transparent 55%);
  z-index: 0;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.18;
}

.cta-section .cta-accent {
  color: var(--white);
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-section .cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 42px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
}

.cta-section .btn-light {
  background: var(--white);
  color: var(--secondary);
  border-color: var(--white);
}

.cta-section .btn-light:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.cta-section .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}

.cta-section .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ============================================
   ENHANCED SIDEBAR CTA WIDGET ("Call Us")
   ============================================ */
.service-sidebar .cta-widget,
.service-sidebar .sidebar-widget.cta-widget {
  background: linear-gradient(160deg, var(--secondary) 0%, var(--dark) 100%);
  border: none;
  position: relative;
  overflow: hidden;
}

.service-sidebar .cta-widget::before,
.service-sidebar .sidebar-widget.cta-widget::before {
  content: '';
  position: absolute;
  top: -35px; right: -35px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.18);
}

.service-sidebar .cta-widget::after,
.service-sidebar .sidebar-widget.cta-widget::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.service-sidebar .cta-widget h4,
.service-sidebar .sidebar-widget.cta-widget h4 {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 14px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.service-sidebar .cta-widget p,
.service-sidebar .sidebar-widget.cta-widget p {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.service-sidebar .phone-number,
.service-sidebar .cta-widget .phone-number {
  display: block;
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  margin: 18px 0 20px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.service-sidebar .cta-widget .btn,
.service-sidebar .cta-widget a.btn,
.service-sidebar .sidebar-widget.cta-widget .btn,
.service-sidebar .sidebar-widget.cta-widget a.btn {
  display: block;
  padding: 14px 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
  border: none;
  position: relative;
  z-index: 1;
  width: 100%;
}

.service-sidebar .cta-widget .btn:hover,
.service-sidebar .cta-widget a.btn:hover,
.service-sidebar .sidebar-widget.cta-widget .btn:hover,
.service-sidebar .sidebar-widget.cta-widget a.btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.service-sidebar .cta-widget .theme-btn {
  display: block;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 5px;
}

/* ============================================
   RESPONSIVE — Additions
   ============================================ */
@media (max-width: 991px) {
  .cta-section h2 { font-size: 30px; }
  .cta-section p { font-size: 16px; }
  .wpo-about-content h2 { font-size: 32px; }
  .wpo-service-card .card-body h3 { font-size: 21px; }
}

@media (max-width: 767px) {
  .cta-section { padding: 65px 0; }
  .cta-section h2 { font-size: 26px; }
  .cta-section p { font-size: 15px; }
  .cta-section .cta-buttons { flex-direction: column; align-items: center; }
  .cta-section .btn { width: 100%; max-width: 300px; }
  .file-upload-label { padding: 22px 15px; }
  .service-card-number { width: 38px; height: 38px; font-size: 12px; }
  .wpo-about-content h2 { font-size: 28px; }
  .wpo-service-card .card-body h3 { font-size: 20px; }
}

@media (max-width: 480px) {
  .cta-section h2 { font-size: 22px; }
  .wpo-about-content h2 { font-size: 24px; }
  .wpo-service-card .card-body h3 { font-size: 19px; }
}

/* ============================================
   PRELOADER
   ============================================ */
#fermex-preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#fermex-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.preloader-ring {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-shadow: 0 0 80px rgba(214, 48, 49, 0.35), 0 0 0 8px rgba(255,255,255,0.12);
  animation: preloaderSpin 1.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both;
}

.preloader-ring img {
  width: 118px;
  height: auto;
  display: block;
}

@media (max-width: 480px) {
  .preloader-ring {
    width: 160px;
    height: 160px;
    padding: 24px;
  }
  .preloader-ring img {
    width: 90px;
  }
}

.preloader-progress {
  width: 72px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-progress-fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 2px;
  animation: preloaderFill 2s ease-out 0.15s forwards;
}

@keyframes preloaderSpin {
  0%   { opacity: 0; transform: scale(0.82) rotate(0deg); }
  18%  { opacity: 1; transform: scale(1) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(360deg); }
}

@keyframes preloaderFill {
  0%   { width: 0%; }
  50%  { width: 70%; }
  85%  { width: 92%; }
  100% { width: 100%; }
}
