/* ============================
   CSS VARIABLES
   ============================ */
:root {
  --blue-primary: #002080;
  --blue-dark: #001050;
  --blue-light: #0040B0;
  --orange-primary: #F8971C;
  --orange-dark: #E07A00;
  --orange-light: #FFB04D;
  --red-accent: #D80000;
  --white: #FFFFFF;
  --light-gray: #F4F6F8;
  --mid-gray: #E2E6EA;
  --dark-gray: #1A1A1A;
  --text-primary: #0A0A0A;
  --text-secondary: #4B5563;
  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 25px -5px rgba(0,0,0,0.15), 0 4px 6px -2px rgba(0,0,0,0.08);
  --shadow-orange: 0 4px 14px 0 rgba(248,151,28,0.39);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

ul { list-style: none; }

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  color: var(--blue-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--orange-primary);
  margin-bottom: 0.5rem;
}

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

.section-desc {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.05rem;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-orange:hover {
  background: var(--orange-dark);
  box-shadow: var(--shadow-orange);
  transform: translateY(-2px);
}

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

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

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

.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* ============================
   HEADER / NAVIGATION
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--white);
  transition: box-shadow var(--transition);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-primary), var(--orange-light), var(--orange-primary));
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.logo-img {
  height: 60px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--orange-primary);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

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

.nav-link.active {
  color: var(--orange-primary);
  font-weight: 700;
}

.header-cta {
  margin-left: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--blue-primary);
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 101;
  transition: color 0.3s ease;
}

.mobile-toggle.is-open {
  color: var(--white);
}

/* ============================
   MOBILE MENU
   ============================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: var(--blue-primary);
  z-index: 99;
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu .nav-list {
  flex-direction: column;
  gap: 0;
}

.mobile-menu .nav-link {
  display: block;
  padding: 1.1rem 1.5rem;
  width: 100%;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu .nav-link::after {
  display: none;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.mobile-menu .nav-link.active {
  border-left: 3px solid var(--orange-primary);
}

.mobile-menu-cta {
  margin-top: auto;
  padding-top: 1.5rem;
}

.mobile-menu-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1.05rem;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--blue-primary);
  background-image:
    url('/images/hero.jpg');
  background-size: cover;
  background-position: center;
  padding: 0 2rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,16,80,0.88);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: var(--white);
  padding: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border: 3px solid var(--orange-primary);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero .tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--orange-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero .hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ============================
   CAROUSELS - INFINITE SCROLL
   ============================ */
.carousel-section {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.carousel-wrapper {
  overflow: hidden;
  padding: 1.5rem 0;
  position: relative;
}

.carousel-wrapper.orange-bg {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
}

.carousel-wrapper.gray-bg {
  background: var(--light-gray);
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.carousel-track.scroll-left {
  animation: scrollLeft 35s linear infinite;
}

.carousel-track.scroll-right {
  animation: scrollRight 35s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-item {
  flex-shrink: 0;
  width: 380px;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

.carousel-item .carousel-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ============================
   SECTIONS GENERIC
   ============================ */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--light-gray);
}

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

/* ============================
   SERVICES OVERVIEW (HOME)
   ============================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  border-top: 4px solid var(--orange-primary);
}

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

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-body h3 {
  margin-bottom: 0.75rem;
}

.service-card-body p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange-primary);
  transition: gap var(--transition);
}

.service-card-link:hover {
  gap: 0.75rem;
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 2rem;
}

.cta-section .btn-orange {
  background: var(--blue-primary);
}

.cta-section .btn-orange:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(0,32,128,0.4);
}

/* ============================
   STATS BAR
   ============================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--orange-primary);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ============================
   SERVICES PAGE - DETAIL
   ============================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--mid-gray);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

.service-detail-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.service-detail-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
}

.service-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--orange-primary);
}

/* ============================
   GALLERY / REALISATIONS
   ============================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(248,151,28,0.9) 0%, rgba(0,32,128,0.4) 40%, transparent 60%);
  /* Orange-to-blue gradient for richer hover effect */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* ============================
   ABOUT PAGE
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

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

.value-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  color: var(--white);
  font-size: 1.4rem;
}

.value-card h4 {
  margin-bottom: 0.75rem;
}

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

.team-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--orange-primary);
}

.team-card h4 {
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--orange-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ============================
   CONTACT PAGE
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--mid-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange-primary);
}

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

.form-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

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

.contact-info-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.contact-info-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  color: var(--white);
  font-size: 1.2rem;
}

.contact-info-text h4 {
  margin-bottom: 0.25rem;
}

.contact-info-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-info-text a {
  color: var(--orange-primary);
  font-weight: 500;
}

.contact-info-text a:hover {
  text-decoration: underline;
}

/* ============================
   PAGE HEADER (INNER PAGES)
   ============================ */
.page-header {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
  border-bottom: 4px solid var(--orange-primary);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--white), transparent);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--orange-light);
}

.breadcrumb span {
  color: rgba(255,255,255,0.5);
}

/* ============================
   QUALIBAT BADGE
   ============================ */
.qualibat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--light-gray);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--orange-primary);
  margin-top: 1.5rem;
}

.qualibat-badge i {
  color: var(--orange-primary);
  font-size: 1.5rem;
}

.qualibat-badge span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-primary);
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--dark-gray);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
  border-top: 4px solid var(--orange-primary);
}

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

.footer-brand .logo-img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--orange-primary);
  border-radius: 2px;
}

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

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--orange-primary);
  padding-left: 5px;
}

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

.footer-contact-item i {
  color: var(--orange-primary);
  margin-top: 3px;
  width: 16px;
}

.footer-contact-item span,
.footer-contact-item a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ============================
   HEADER PHONE BUTTON
   ============================ */
.header-phone {
  display: none;
}

/* ============================
   GOOGLE MAPS
   ============================ */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

/* ============================
   BACK TO TOP BUTTON
   ============================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange-primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(248,151,28,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(248,151,28,0.5);
}

/* ============================
   LEGAL CONTENT
   ============================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange-primary);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  line-height: 1.8;
}

.legal-content .service-list {
  margin: 1rem 0 1.5rem;
}

/* ============================
   ANIMATIONS
   ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   HERO CINEMATIC ENTRANCE
   ============================ */
.hero .hero-logo,
.hero h1,
.hero .tagline,
.hero .hero-desc,
.hero .hero-buttons,
.scroll-indicator {
  opacity: 0;
  transform: translateY(30px);
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.loaded .hero .hero-logo    { animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards; }
body.loaded .hero h1            { animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards; }
body.loaded .hero .tagline      { animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards; }
body.loaded .hero .hero-desc    { animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards; }
body.loaded .hero .hero-buttons { animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards; }
body.loaded .scroll-indicator   { animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards; }

/* ============================
   SCROLL INDICATOR (HERO)
   ============================ */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  margin-left: -30px;
  width: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
}

.scroll-indicator i {
  color: var(--orange-primary);
  font-size: 1.2rem;
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================
   SECTION TITLE ANIMATED UNDERLINE
   ============================ */
.section-title::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: var(--orange-primary);
  margin: 10px auto 0;
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.fade-in.visible .section-title::after {
  width: 60px;
}

/* ============================
   IMAGE REVEAL (CLIP-PATH)
   ============================ */
.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-clip.revealed {
  clip-path: inset(0 0 0 0);
}

/* ============================
   CTA BUTTON PULSE
   ============================ */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 151, 28, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(248, 151, 28, 0); }
}

.hero-buttons .btn-orange {
  animation: ctaPulse 3s ease infinite 2.5s;
}

.cta-section .btn {
  animation: ctaPulse 3s ease infinite;
}

.hero-buttons .btn-orange:hover,
.cta-section .btn:hover {
  animation: none;
}

/* ============================
   LIGHTBOX
   ============================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.8rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, transform 0.3s;
  z-index: 1001;
}

.lightbox-close:hover {
  color: var(--white);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.3rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 1001;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-nav:hover {
  background: var(--orange-primary);
  color: var(--white);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  white-space: nowrap;
}

.lightbox-counter {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* ============================
   PAGE TRANSITION
   ============================ */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page-transition-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ============================
   RESPONSIVE — TABLET (1024px)
   ============================ */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-img {
    height: 320px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail.reverse {
    direction: ltr;
  }

  .service-detail-img {
    height: 300px;
  }

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

/* ============================
   RESPONSIVE — MOBILE (768px)
   ============================ */
@media (max-width: 768px) {
  /* — Base & container — */
  .container {
    padding: 0 1.25rem;
  }

  /* — Header — */
  .nav { display: none; }
  .header-cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    margin-left: 0;
    margin-right: 0.25rem;
  }
  .header-phone {
    display: inline-flex;
    padding: 0.5rem;
    font-size: 1rem;
    margin-right: 0.25rem;
  }
  .header-phone span {
    display: none;
  }
  .header-phone i {
    margin: 0;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    z-index: 101;
  }

  .header-inner {
    height: 64px;
  }

  .logo-img {
    height: 42px;
  }

  /* — Mobile menu position fix — */
  .mobile-menu {
    padding-top: 5rem;
  }

  /* — Hero — */
  .hero {
    min-height: 100dvh;
    padding: 5rem 1.25rem 3rem;
  }

  .hero::before {
    height: 80px;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 1.5rem;
    padding: 8px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }

  .hero .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    justify-content: center;
    padding: 1rem;
    font-size: 0.9rem;
  }

  /* — Carousels — */
  .carousel-wrapper {
    padding: 1rem 0;
  }

  .carousel-track {
    gap: 0.75rem;
  }

  .carousel-item {
    width: 260px;
    height: 175px;
    border-radius: 6px;
  }

  .carousel-item .carousel-label {
    font-size: 0.8rem;
    padding: 0.75rem;
  }

  /* — Sections — */
  .section {
    padding: 3rem 0;
  }

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

  .section-desc {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  /* — Stats — */
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .stat-number {
    font-size: 2.4rem;
  }

  .stat-label {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }

  /* — Service cards (home) — */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card-img {
    height: 200px;
  }

  .service-card-body {
    padding: 1.25rem;
  }

  .service-card:hover {
    transform: none;
  }

  /* — Service detail (services page) — */
  .service-detail {
    padding: 2.5rem 0;
  }

  .service-detail-img {
    height: 220px;
    border-radius: var(--radius-md);
  }

  .service-detail-content h3 {
    font-size: 1.4rem;
  }

  .service-detail-content p {
    font-size: 0.95rem;
  }

  .qualibat-badge {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }

  .qualibat-badge i {
    font-size: 1.2rem;
  }

  .qualibat-badge span {
    font-size: 0.8rem;
  }

  /* — Gallery — */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .gallery-item {
    border-radius: 6px;
  }

  /* Show overlay always on touch devices */
  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(248,151,28,0.85) 0%, transparent 70%);
    padding: 1rem;
  }

  .gallery-overlay h4 {
    font-size: 0.85rem;
  }

  .gallery-overlay span {
    font-size: 0.7rem;
  }

  /* — CTA Section — */
  .cta-section {
    padding: 3rem 1.25rem;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }

  .cta-section p {
    font-size: 0.95rem;
  }

  /* — About — */
  .about-img {
    height: 240px;
    border-radius: var(--radius-md);
  }

  .about-content p {
    font-size: 0.95rem;
  }

  /* — Values — */
  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .value-card {
    padding: 1.5rem 1rem;
  }

  .value-icon {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .value-card h4 {
    font-size: 0.95rem;
  }

  .value-card p {
    font-size: 0.85rem;
  }

  /* — Team — */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .team-card {
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .team-avatar {
    width: 80px;
    height: 80px;
    font-size: 1.6rem;
  }

  /* — Contact — */
  .contact-grid {
    gap: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }

  .contact-form h3 {
    font-size: 1.2rem;
  }

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

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.9rem 1rem;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .contact-info {
    gap: 1rem;
  }

  .contact-info-card {
    padding: 1.25rem;
  }

  .contact-info-icon {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  /* — Page header (inner pages) — */
  .page-header {
    padding: 5.5rem 1.25rem 2.5rem;
  }

  .page-header::after {
    height: 50px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .page-header p {
    font-size: 0.95rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  /* — Footer — */
  .footer {
    padding-top: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand .logo-img {
    margin: 0 auto 0.75rem;
    height: 44px;
  }

  .footer h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
  }

  .footer-contact-item {
    margin-bottom: 0.75rem;
  }

  .footer-bottom {
    padding: 1.25rem 0;
    font-size: 0.75rem;
  }

  /* — Buttons (global mobile) — */
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  /* — Map — */
  .map-container iframe {
    height: 300px;
  }

  /* — Back to top — */
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  /* — Disable hover transforms on touch — */
  .service-card:hover,
  .value-card:hover,
  .contact-info-card:hover {
    transform: none;
  }

  /* — Scroll indicator — */
  .scroll-indicator {
    bottom: 1.5rem;
  }

  .scroll-indicator span {
    font-size: 0.6rem;
  }

  /* — Lightbox mobile — */
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }

  .lightbox-caption {
    font-size: 0.75rem;
    bottom: 1.5rem;
    max-width: 80vw;
    white-space: normal;
  }

  /* — CTA pulse off on mobile (battery) — */
  .hero-buttons .btn-orange,
  .cta-section .btn {
    animation: none;
  }
}

/* ============================
   RESPONSIVE — SMALL MOBILE (480px)
   ============================ */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 4.5rem 1rem 2.5rem;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  /* — Stats 2x2 grid — */
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* — Gallery single column — */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item {
    aspect-ratio: 16/10;
  }

  /* — Values single column — */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* — Carousel smaller — */
  .carousel-item {
    width: 220px;
    height: 150px;
  }

  /* — Service detail image — */
  .service-detail-img {
    height: 190px;
  }

  /* — CTA — */
  .cta-section {
    padding: 2.5rem 1rem;
  }

  .cta-section h2 {
    font-size: 1.4rem;
  }
}
