/*
Theme Name: Revor Theme
Theme URI: https://revorgroup.cz
Author: Revor Group
Author URI: https://revorgroup.cz
Description: Moderní profesionální šablona pro REVOR GROUP s.r.o. - Generální dodavatel staveb
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: revor-theme
Tags: custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --primary-color: #1e3a5f;
  --primary-light: #2d5a87;
  --secondary-color: #4a90c2;
  --accent-color: #4a90c2;
  --text-dark: #1a1a1a;
  --text-light: #4a4a4a;
  --text-white: #ffffff;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --bg-dark: #0f1c2e;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  /* Aliasy pro konzistenci */
  --color-primary: #1e3a5f;
  --color-primary-light: #2d5a87;
  --color-secondary: #4a90c2;
  --color-text: #1a1a1a;
  --color-text-light: #4a4a4a;
  --color-bg-light: #f5f7fa;

  /* === MODERN FLUID RESPONSIVE SYSTEM === */
  /* Fluid Typography - automaticky se přizpůsobí viewportu */
  --fluid-h1: clamp(2rem, 5vw + 1rem, 4rem);
  --fluid-h2: clamp(1.5rem, 3vw + 0.75rem, 2.75rem);
  --fluid-h3: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  --fluid-h4: clamp(1.1rem, 1.5vw + 0.5rem, 1.35rem);
  --fluid-body: clamp(0.95rem, 0.5vw + 0.8rem, 1.125rem);
  --fluid-small: clamp(0.8rem, 0.3vw + 0.7rem, 0.95rem);

  /* Fluid Spacing - mezery se přizpůsobí obrazovce */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 1rem);
  --space-md: clamp(1rem, 2vw, 2rem);
  --space-lg: clamp(1.5rem, 4vw, 3rem);
  --space-xl: clamp(2rem, 6vw, 5rem);
  --space-2xl: clamp(3rem, 8vw, 8rem);

  /* Container widths */
  --container-max: min(90vw, 1400px);
  --container-content: min(85vw, 900px);
  --container-narrow: min(90vw, 700px);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.125rem;
}

.section-header .btn {
  margin-top: 1.5rem;
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: #3a7ab0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-white {
  background-color: var(--bg-white);
  color: var(--primary-color);
}

.btn-white:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  background-color: var(--bg-dark);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-logo img,
.custom-logo-link img,
.custom-logo {
  height: 60px !important;
  width: auto !important;
  max-height: 60px !important;
  object-fit: contain !important;
}

.main-nav {
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-white);
  padding: 0.5rem 0;
  position: relative;
}

.site-header.scrolled .main-nav a {
  color: var(--text-white);
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta .btn {
  padding: 0.75rem 1.5rem;
}

.header-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  transition: var(--transition);
}

.header-social:hover {
  background: var(--text-white);
  color: var(--primary-color);
  transform: scale(1.1);
}

.header-social.header-phone {
  width: auto;
  border-radius: 2rem;
  padding: 0 1rem 0 0.75rem;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.header-social.header-phone svg {
  width: 18px;
  height: 18px;
}

.site-header.scrolled .header-social {
  background: var(--primary-color);
  color: var(--text-white);
}

.site-header.scrolled .header-social:hover {
  background: var(--primary-light);
  color: var(--text-white);
  transform: scale(1.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
  position: relative;
  width: 40px;
  height: 40px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--text-white);
  margin: 5px auto;
  transition: all 0.3s ease;
  transform-origin: center;
  border-radius: 2px;
}

/* Hamburger animation to X */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-header.scrolled .mobile-menu-toggle span {
  background-color: var(--text-white);
}

/* Mobile menu toggle visibility */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block !important;
  }

  .header-cta {
    display: none !important;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/hero-pattern.svg") repeat;
  opacity: 0.1;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 58, 95, 0.95) 0%,
    rgba(30, 58, 95, 0.7) 50%,
    rgba(30, 58, 95, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: 80px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.hero-title span {
  color: var(--secondary-color);
}

.hero-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.hero-social-btn:hover {
  background: var(--text-white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.hero-social-btn.hero-email {
  width: auto;
  border-radius: 2rem;
  padding: 0 1.25rem;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-social-btn.hero-email span {
  display: block;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-white);
}

.hero-stat-number span {
  color: var(--text-white);
}

.hero-stat-label {
  color: var(--text-white);
  font-size: 0.875rem;
}

/* ============================================
   HERO SLIDESHOW
   ============================================ */
.hero-slideshow {
  position: relative;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 35, 71, 0.95) 0%,
    rgba(6, 35, 71, 0.7) 50%,
    rgba(6, 35, 71, 0.4) 100%
  );
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-slideshow .hero-content {
  flex: 1;
  max-width: 650px;
}

/* Slideshow Navigation (Right Side) - Minimal Style */
.hero-slideshow-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.hero-slide-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-slide-nav-item:hover .slide-number {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.slide-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.hero-slide-nav-item.active .slide-number {
  background: var(--secondary-color);
  color: white;
  transform: scale(1.1);
}

.slide-title {
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.4s ease;
  text-align: right;
}

.hero-slide-nav-item.active .slide-title {
  opacity: 1;
  max-width: 200px;
  padding-left: 0.5rem;
}

/* Responsive slideshow */
@media (max-width: 1200px) {
  .hero-slideshow-nav {
    position: static;
    transform: none;
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 2rem;
    justify-content: center;
    align-items: center;
  }

  .hero-slide-nav-item {
    padding: 0.25rem;
  }

  .slide-number {
    width: 32px;
    height: 32px;
  }

  .slide-title {
    display: none;
  }

  .hero-container {
    flex-direction: column;
  }

  .hero-slideshow .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-slideshow .hero-buttons {
    justify-content: center;
  }

  .hero-slideshow .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-slideshow-nav {
    gap: 0.35rem;
  }

  .slide-number {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.services-grid-centered {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  .services-grid-centered {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

.service-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card p {
  flex-grow: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--text-white);
}

.service-icon i {
  font-size: 38px;
  color: var(--text-white);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--text-white);
}

.service-card p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.service-link:hover {
  color: var(--secondary-color);
  gap: 0.75rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.about-image-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 200px;
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-light)
  );
  border-radius: var(--border-radius-lg);
  z-index: -1;
}

.about-content .section-label {
  text-align: left;
}

.about-content .section-title {
  text-align: left;
}

.about-text {
  color: var(--text-light);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-feature-icon {
  width: 24px;
  height: 24px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--text-white);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
  background: linear-gradient(
    to bottom,
    rgba(30, 58, 95, 0.95) 0%,
    rgba(30, 58, 95, 1) 100%
  );
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number span {
  font-size: 2rem;
  color: var(--text-white);
}

.stat-label {
  color: var(--text-white);
  font-size: 1rem;
}

/* ============================================
   PORTFOLIO / REFERENCES SECTION
   ============================================ */
.portfolio {
  background-color: var(--bg-light);
}

.portfolio-slider-wrapper {
  position: relative;
  padding: 0 60px;
}

.portfolio-slider {
  overflow: hidden;
  width: 100%;
}

.portfolio-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

.portfolio-slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: calc((100% - 3rem) / 3);
}

.portfolio-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-nav.portfolio-prev {
  left: 0;
}

.portfolio-nav.portfolio-next {
  right: 0;
}

.portfolio-nav:hover {
  background: var(--primary-light);
  transform: translateY(-50%) scale(1.1);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 58, 95, 0.95) 0%,
    transparent 70%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-category {
  color: var(--secondary-color);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.portfolio-title {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 0;
  line-height: 1.3;
}

.portfolio-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .portfolio-slide {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    min-width: calc((100% - 1.5rem) / 2);
  }

  .portfolio-nav {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 768px) {
  .portfolio-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .portfolio-slider-wrapper {
    padding: 0 50px;
  }

  .portfolio-track {
    gap: 0;
  }

  .portfolio-nav {
    width: 40px;
    height: 40px;
  }

  .portfolio-nav.portfolio-prev {
    left: 0;
  }

  .portfolio-nav.portfolio-next {
    right: 0;
  }
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients {
  padding: 4rem 0;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.client-logo {
  opacity: 0.7;
  transition: var(--transition);
  max-width: 140px;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Clients grid mobile - 2 logos per row */
@media (max-width: 600px) {
  .clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .client-logo {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  background-color: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--text-white);
}

.contact-item-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item-content p {
  color: var(--text-light);
  margin: 0;
}

.contact-item-content a {
  color: var(--primary-color);
}

.contact-item-content a:hover {
  color: var(--secondary-color);
}

.contact-form {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .site-logo {
  margin-bottom: 2rem;
}

.footer-about .site-logo img {
  height: 45px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--secondary-color);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--text-white);
}

.footer-widget h4 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-size: 0.875rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--secondary-color);
}

/* ============================================
   PAGE TEMPLATES (Legacy - kept for page.php)
   ============================================ */
.page-template-default .page-header {
  background: linear-gradient(
    to bottom,
    rgba(30, 58, 95, 0.95) 0%,
    rgba(30, 58, 95, 1) 100%
  );
  padding: 10rem 0 5rem;
  text-align: center;
}

.page-template-default .page-header h1 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.page-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-breadcrumb a {
  color: var(--secondary-color);
}

.page-content {
  padding: 5rem 0;
}

/* ============================================
   BLOG / NEWS
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-card-title a:hover {
  color: var(--primary-color);
}

.blog-card-excerpt {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.blog-card-link:hover {
  color: var(--secondary-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block !important;
    z-index: 1001;
  }

  .main-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: var(--primary-color) !important;
    padding: 6rem 2rem 2rem !important;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
    box-shadow: var(--shadow-xl);
    z-index: 1000 !important;
    transform: translateX(100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .main-nav.active {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    display: block;
    color: var(--text-white) !important;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
  }

  .main-nav a:hover {
    color: var(--secondary-color) !important;
  }

  .header-cta {
    display: none !important;
  }

  .hero-stats {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-social {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-social-btn.hero-email {
    width: 100%;
    justify-content: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-widget,
  .footer-about {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: left;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Page Templates Styles
   ======================================== */

/* Page Header */
.page-header {
  background: linear-gradient(
    to bottom,
    rgba(30, 58, 95, 0.95) 0%,
    rgba(30, 58, 95, 1) 100%
  );
  padding: 12rem 0 4rem;
  text-align: center;
  margin-top: -80px;
  padding-top: calc(80px + 8rem);
}

.page-header h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

/* Reference Hero */
.reference-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 12rem 0 4rem;
  margin-top: -80px;
  padding-top: calc(80px + 8rem);
}

.reference-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 58, 95, 0.95) 0%,
    rgba(30, 58, 95, 0.7) 50%,
    rgba(30, 58, 95, 0.5) 100%
  );
}

.reference-hero-content {
  position: relative;
  z-index: 1;
}

.reference-hero h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.reference-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.reference-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.reference-meta-item svg {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .reference-hero {
    padding-top: 120px;
    padding-bottom: 3rem;
  }

  .reference-hero-content {
    padding-top: 60px;
  }

  .reference-hero h1 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-top: 30px;
  }

  .reference-meta {
    flex-direction: column;
    gap: 1rem;
  }
}

.breadcrumb .separator {
  margin: 0 0.5rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* About Page */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-intro-content .section-label {
  display: block;
  margin-bottom: 0.5rem;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.about-intro-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.about-features-grid .about-feature {
  text-align: center;
  padding: 2rem;
  background: #f5f7fa;
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  color: #1a1a1a;
  display: block;
}

.about-features-grid .about-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-features-grid .about-feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e3a5f;
  border-radius: 12px;
}

.about-features-grid .about-feature-icon svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

.about-features-grid .about-feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #1e3a5f;
}

.about-features-grid .about-feature p {
  color: #1a1a1a;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.team-member {
  text-align: center;
  max-width: 300px;
}

.team-member-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-name {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.team-member-position {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Stats Section Page */
.stats-section {
  background: var(--color-primary);
  padding: 4rem 0;
}

.stats-section .stat-item {
  text-align: center;
}

.stats-section .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}

.stats-section .stat-number span {
  font-size: 1.5rem;
}

.stats-section .stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* Services Page */
.services-grid-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card-large {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

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

.service-card-image {
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card-large:hover .service-card-image img {
  transform: scale(1.1);
}

.service-card-content {
  padding: 2rem;
}

.service-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e3a5f, #2d5a8a) !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card-icon svg {
  width: 40px;
  height: 40px;
  color: #ffffff !important;
  fill: #ffffff !important;
}

.service-card-icon i {
  font-size: 38px;
  color: #ffffff !important;
}

.service-card-icon i.fa-solid,
.service-card-icon i.fas {
  color: #ffffff !important;
}

.service-card-title {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.service-card-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Process Timeline */
.process-timeline {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 2rem;
  background: var(--color-bg-light);
  border-radius: 16px;
  position: relative;
}

.process-step-number {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.process-step h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.process-step p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Projects Page */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.project-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.1);
}

.project-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.95), transparent);
  color: #fff;
}

.project-card-category {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.project-card-title {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Contact Page */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-info-card {
  background: var(--color-bg-light);
  padding: 2rem;
  border-radius: 16px;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-card .company-name {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  color: var(--color-text-light);
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.contact-info-content a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-info-content a:hover {
  color: var(--color-secondary);
}

/* Direct Contacts */
.direct-contacts {
  margin-bottom: 4rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-person-card {
  background: var(--color-bg-light);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
}

.contact-person-card h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.contact-person-role {
  display: block;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.contact-person-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-person-details a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-person-details a:hover {
  color: var(--color-primary);
}

.contact-person-details svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

/* Contact Form Section */
.contact-form-section {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 2rem;
}

.contact-form-section .section-header {
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-form-card {
  background: #fff;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form-card h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.contact-form-card > p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-checkbox input {
  width: auto;
}

.form-checkbox label {
  margin-bottom: 0;
  font-weight: 400;
}

.map-section {
  height: 450px;
}

.map-container {
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
}

/* Career Page */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.benefit-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.benefit-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.benefit-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Job Positions */
.positions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.position-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.position-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.position-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.position-title {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin: 0;
}

.position-type {
  background: var(--color-primary);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.position-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.position-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.position-meta svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.position-excerpt {
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.position-card .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.positions-placeholder {
  background: var(--color-bg-light);
  padding: 4rem;
  border-radius: 16px;
  text-align: center;
}

.positions-message {
  max-width: 500px;
  margin: 0 auto;
}

.positions-icon {
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.positions-icon svg {
  width: 36px;
  height: 36px;
  color: #fff;
}

.positions-message h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.positions-message p {
  color: var(--color-text-light);
}

.career-cta {
  text-align: center;
}

.career-cta.bg-primary {
  background: var(--color-primary);
}

.career-cta h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.career-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.career-cta .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid #fff;
  color: #fff !important;
  padding: 0.875rem 2rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--color-primary) !important;
}

/* Position Detail Page */
.position-detail-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: start;
}

.position-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.position-type-badge {
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
}

.position-detail-location,
.position-detail-salary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.position-detail-location svg,
.position-detail-salary svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.position-detail-text {
  line-height: 1.8;
  color: var(--color-text);
}

.position-detail-text h2,
.position-detail-text h3 {
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.position-detail-text ul,
.position-detail-text ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.position-detail-text li {
  margin-bottom: 0.5rem;
}

.position-apply-card {
  background: var(--color-bg-light);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 1rem;
}

.position-apply-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.position-apply-card p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

.position-contact {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.position-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.position-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 500;
}

.position-contact svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .position-detail-grid {
    grid-template-columns: 1fr;
  }

  .position-detail-sidebar {
    order: -1;
  }
}

/* Certificates Page */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.certificate-card {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-5px);
}

.certificate-icon {
  width: 80px;
  height: 80px;
  background: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.certificate-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

.certificate-card h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.certificate-card p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.company-info-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.company-info-text h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.company-info-text p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
}

.cta-section.bg-primary {
  background: var(--color-primary);
}

.cta-section.bg-primary h2,
.cta-section.bg-primary p {
  color: #fff;
}

.cta-section.bg-primary p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Centered section header */
.section-header.centered {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.open-positions .section-header.centered {
  max-width: 800px;
}

.open-positions .section-title {
  white-space: nowrap;
}

/* ========================================
   Page Templates Responsive
   ======================================== */

@media (max-width: 1024px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    flex-direction: column;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-header {
    margin-top: 0;
    padding-top: 200px;
  }

  .page-title {
    font-size: 2rem;
  }

  .about-features-grid {
    grid-template-columns: 1fr;
  }

  .services-grid-large {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .career-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 1.5rem;
  }
}

/* FORCE ABOUT FEATURES TEXT COLORS */
.about-page .about-features-grid .about-feature h3,
.about-features-grid .about-feature h3,
section .about-feature h3,
.about-feature h3 {
  color: #1e3a5f !important;
}

.about-page .about-features-grid .about-feature p,
.about-features-grid .about-feature p,
section .about-feature p,
.about-feature p {
  color: #1a1a1a !important;
}

/* FORCE SERVICE CARD LIGHT BACKGROUND TEXT */
.service-card[style*="background: #f5f7fa"] h3,
.why-us .service-card h3,
.why-us-section .service-card h3,
.page-template-page-about .service-card h3 {
  color: #1e3a5f !important;
}

.service-card[style*="background: #f5f7fa"] p,
.why-us .service-card p,
.why-us-section .service-card p,
.page-template-page-about .service-card p {
  color: #1a1a1a !important;
}

/* Universal service card dark text override */
section.why-us-section .services-grid .service-card h3 {
  color: #1e3a5f !important;
}
section.why-us-section .services-grid .service-card p {
  color: #1a1a1a !important;
}

/* ============================================
   🚀 MODERN ULTRA-RESPONSIVE SYSTEM
   ============================================ */

/* === FLUID TYPOGRAPHY APPLICATION === */
h1,
.h1 {
  font-size: var(--fluid-h1);
}
h2,
.h2 {
  font-size: var(--fluid-h2);
}
h3,
.h3 {
  font-size: var(--fluid-h3);
}
h4,
.h4 {
  font-size: var(--fluid-h4);
}
body,
p {
  font-size: var(--fluid-body);
}
small,
.small {
  font-size: var(--fluid-small);
}

/* === CONTAINER SYSTEM === */
.container {
  width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* === MODERN GRID AUTO-LAYOUT === */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-lg);
}

/* === SMART RESPONSIVE BREAKPOINTS === */

/* Ultra-wide screens (2K+) */
@media (min-width: 2000px) {
  :root {
    --fluid-h1: clamp(3rem, 4vw + 1.5rem, 5rem);
    --fluid-h2: clamp(2rem, 3vw + 1rem, 3.5rem);
  }

  .container {
    max-width: 1600px;
  }

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

/* Large desktop (1440px+) */
@media (min-width: 1440px) {
  .services-grid,
  .about-features-grid,
  .references-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* Desktop (1024px - 1440px) */
@media (max-width: 1439px) and (min-width: 1025px) {
  .hero-content {
    max-width: 650px;
    padding-top: 60px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet landscape (768px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --space-lg: clamp(1rem, 3vw, 2rem);
    --space-xl: clamp(1.5rem, 4vw, 3rem);
  }

  .hero {
    min-height: 90vh;
  }

  .hero-content {
    max-width: 100%;
    padding-top: 40px;
    padding-inline: var(--space-md);
  }

  .hero-title {
    white-space: normal;
    font-size: var(--fluid-h1);
  }

  .services-grid,
  .references-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-image {
    order: -1;
    max-width: 500px;
    margin-inline: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-menu {
    gap: 1rem;
  }
}

/* Tablet portrait (600px - 768px) */
@media (max-width: 768px) {
  :root {
    --space-md: clamp(0.75rem, 2vw, 1.5rem);
    --space-lg: clamp(1rem, 2.5vw, 1.75rem);
  }

  .hero {
    min-height: 85vh;
    padding-block: var(--space-xl);
  }

  .hero-content {
    padding-top: 20px;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-stats {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .references-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .section {
    padding-block: var(--space-xl);
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: left;
  }
}

/* Mobile large (480px - 600px) */
@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.1;
    word-spacing: 100vw;
  }

  .hero-desc {
    font-size: var(--fluid-body);
  }

  .about-grid {
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-number {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .service-card {
    padding: var(--space-md);
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile small (< 480px) */
@media (max-width: 480px) {
  :root {
    --fluid-h1: clamp(1.5rem, 7vw, 2.25rem);
    --fluid-h2: clamp(1.25rem, 5vw, 1.75rem);
    --space-md: 0.75rem;
    --space-lg: 1rem;
  }

  .container {
    padding-inline: 1rem;
  }

  .hero {
    min-height: 100svh; /* Small viewport height - works better on mobile */
  }

  .hero-content {
    padding-top: 10px;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .page-header h1 {
    font-size: var(--fluid-h2);
  }

  .page-header {
    padding-top: 200px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .about-grid {
    gap: 2rem;
  }

  .about-stat {
    padding: var(--space-sm);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: left;
  }
}

/* === TOUCH & POINTER OPTIMIZATION === */
@media (hover: none) and (pointer: coarse) {
  /* Touch devices - larger touch targets */
  .btn {
    min-height: 48px;
    min-width: 48px;
  }

  .nav-menu li a {
    padding: 12px 16px;
  }

  /* Remove hover effects on touch */
  .service-card:hover,
  .reference-card:hover {
    transform: none;
  }
}

/* === REDUCED MOTION PREFERENCE === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0a1f33;
    --text-dark: #000000;
    --border-color: #000000;
  }

  .btn {
    border: 2px solid currentColor;
  }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable auto dark mode
  :root {
    --bg-white: #0f1c2e;
    --bg-light: #1a2a3f;
    --text-dark: #f0f0f0;
    --text-light: #b0b0b0;
    --border-color: #2d4a6a;
  }
  */
}

/* === LANDSCAPE MOBILE FIX === */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-block: var(--space-lg);
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-stats {
    display: none;
  }
}

/* === GALLERY LIGHTBOX === */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.gallery-lightbox.active {
  opacity: 1;
}

.gallery-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.gallery-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.gallery-lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox-counter {
  color: #fff;
  font-size: 0.9rem;
  margin-top: 1rem;
  opacity: 0.8;
  font-weight: 500;
}

/* Loading spinner */
.gallery-lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lightbox-spin 0.8s linear infinite;
  display: none;
}

@keyframes lightbox-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.gallery-lightbox-prev {
  left: 20px;
}

.gallery-lightbox-next {
  right: 20px;
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

/* Clickable images indicator */
.entry-content img[style*="cursor: zoom-in"],
.post-content img[style*="cursor: zoom-in"],
.page-content img[style*="cursor: zoom-in"],
.single-reference-content img[style*="cursor: zoom-in"],
article img[style*="cursor: zoom-in"] {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.entry-content img[style*="cursor: zoom-in"]:hover,
.post-content img[style*="cursor: zoom-in"]:hover,
.page-content img[style*="cursor: zoom-in"]:hover,
.single-reference-content img[style*="cursor: zoom-in"]:hover,
article img[style*="cursor: zoom-in"]:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .gallery-lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
    padding: 60px 5px 80px;
  }

  .gallery-lightbox-image {
    max-height: calc(100vh - 140px);
    border-radius: 0;
  }

  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    background: rgba(0, 0, 0, 0.5);
  }

  .gallery-lightbox-prev {
    left: 8px;
  }

  .gallery-lightbox-next {
    right: 8px;
  }

  .gallery-lightbox-prev:active,
  .gallery-lightbox-next:active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(0.95);
  }

  .gallery-lightbox-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    background: rgba(0, 0, 0, 0.5);
  }

  .gallery-lightbox-close:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
  }

  .gallery-lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .gallery-lightbox-prev:hover,
  .gallery-lightbox-next:hover,
  .gallery-lightbox-close:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.15);
  }

  .gallery-lightbox-prev:hover {
    transform: translateY(-50%);
  }

  .gallery-lightbox-next:hover {
    transform: translateY(-50%);
  }
}

/* === PRINT STYLES === */
@media print {
  .header,
  .footer,
  .mobile-menu-toggle,
  .hero-buttons {
    display: none !important;
  }

  .hero {
    min-height: auto;
    background: white !important;
    color: black !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
