:root {
  --primary: #1b2b4b;
  --secondary: #c9a84c;
  --dark: #0d1b2a;
  --light: #f5f2ed;
  --white: #ffffff;
  --gray: #6b7280;
  --stone: #8c7b6b;
  --accent: #2d4a6b;
  --success: #22c55e;
  --text-dark: #1a1a2e;
  --text-light: #f5f5f5;
  --border: #e2e8f0;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: "Space Grotesk", sans-serif;
  --section-py: 80px;
  --container-max: 1280px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.3);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 0;
}

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

a {
  color: var(--accent);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-py) 0;
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.15;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

h4 {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray);
}

.page-wrap {
  padding-top: 104px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--secondary);
  color: var(--dark);
  border-color: var(--secondary);
}

.btn-primary:hover {
  background: #b8943f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

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

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

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

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .label {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
  margin-bottom: 16px;
}

.section-header h2 {
  color: var(--primary);
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 20px 0;
}

.navbar.transparent {
  background: transparent;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.navbar.scrolled .logo-dark {
  display: block;
}

.navbar.scrolled .logo-light {
  display: none;
}

.navbar.transparent .logo-dark {
  display: none;
}

.navbar.transparent .logo-light {
  display: block;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.navbar-logo img {
  height: 72px;
  width: auto;
  max-width: min(320px, 52vw);
  object-fit: contain;
}

.footer-brand img {
  height: 64px;
  width: auto;
  max-width: min(280px, 70vw);
  object-fit: contain;
}

.navbar-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar-links > a,
.navbar-links .nav-dropdown > a {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--white);
  transition: color 0.2s;
}

.navbar.scrolled .navbar-links > a,
.navbar.scrolled .navbar-links .nav-dropdown > a {
  color: var(--text-dark);
}

.navbar-links a:hover,
.navbar-links .nav-dropdown > a:hover {
  color: var(--secondary);
}

.navbar-links a.active {
  color: var(--secondary);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  margin-top: 8px;
  z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark) !important;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--light);
  color: var(--secondary) !important;
  padding-left: 24px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.navbar.scrolled .hamburger span {
  background: var(--text-dark);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  background: var(--white);
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-inner .btn {
  margin-top: 16px;
  text-align: center;
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 42, 0.9) 0%,
    rgba(27, 43, 75, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--secondary);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-content h1 {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 24px;
}

.text-gold {
  color: var(--secondary);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-clients {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trusted-label {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-client-logos {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-client-logos img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  vertical-align: middle;
  /* Full-color client marks (JPEGs); avoid brightness(0)+invert - it wipes detail */
  opacity: 1;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-client-logos img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  opacity: 0.6;
  animation: bounce 2s infinite;
  font-size: 1.2rem;
  z-index: 1;
}

/* Stats */
.stats-bar {
  background: var(--primary);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Services grid home */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 32px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  display: block;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--secondary);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(27, 43, 75, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: var(--secondary);
  color: var(--dark);
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.learn-more {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Why section */
.why-section {
  padding: var(--section-py) 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-img {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.why-list {
  list-style: none;
}

.why-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.why-list i {
  color: var(--secondary);
  font-size: 1.25rem;
  margin-top: 4px;
}

.why-list h4 {
  color: var(--primary);
  margin-bottom: 6px;
}

/* Process */
.process-section {
  padding: var(--section-py) 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.process-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.25rem;
}

.process-step h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.process-connector {
  display: none;
}

/* Featured projects */
.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card-home {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  min-height: 280px;
}

.project-card-home .project-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  display: block;
}

.project-card-home .project-client-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  max-height: 40px;
  max-width: min(40%, 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.project-card-home .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.95), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
}

.project-card-home h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.project-card-home p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

/* Client / project strip (home: below hero, above stats) */
.client-projects-strip {
  padding: 56px 0 64px;
  background: var(--primary);
  overflow: hidden;
}

.client-projects-header {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.client-projects-header a {
  color: var(--secondary);
  font-weight: 600;
}

.client-by-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.client-project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 24px 20px 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.client-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.client-project-card-logo {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(248, 246, 242, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 16px;
  box-sizing: border-box;
}

.client-project-card-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.client-project-card h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--dark);
  line-height: 1.3;
}

.client-project-card-client {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 4px;
}

.client-project-card-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.client-project-card-cta {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.clients-more-section {
  margin-top: 8px;
}

.clients-more-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--dark);
  text-align: center;
  margin: 0 0 10px;
}

.clients-more-lead {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.clients-more-lead a {
  color: var(--secondary);
  font-weight: 600;
}

.client-marquee-heading {
  text-align: center;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  margin: 0 0 20px;
}

.client-marquee-shell {
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.08);
  padding: 28px 12px;
  overflow: hidden;
}

.marquee-viewport {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}

.clients-more-track {
  animation-duration: 55s;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

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

.marquee-item {
  flex: 0 0 auto;
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 16px;
  /* background: rgba(248, 246, 242, 0.95); */
  border: 5px solid rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .client-projects-strip .marquee-viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .client-projects-strip .clients-more-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    gap: 16px;
  }

  .client-projects-strip .clients-more-track .marquee-group[aria-hidden="true"] {
    display: none;
  }
}

/* Testimonials */
.testimonial-section {
  padding: var(--section-py) 0;
  background: var(--light);
}

.testimonial-swiper {
  padding-bottom: 48px;
}

.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-client-logo {
  height: 52px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.testimonial-client-logo img {
  max-height: 44px;
  max-width: 148px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.testimonial-card .stars {
  color: var(--secondary);
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 20px;
  border: none;
  padding: 0;
  flex: 1 1 auto;
}

.testimonial-author {
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Certifications */
.cert-section {
  padding: var(--section-py) 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-box {
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 28px;
  text-align: center;
  background: var(--white);
  transition: all 0.3s;
}

.cert-box:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.cert-box i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

.cert-box h4 {
  color: var(--primary);
}

.cert-box p {
  font-size: 0.9rem;
  margin-top: 8px;
}

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

/* CTA banner */
.cta-banner {
  background: var(--primary);
  padding: 64px 0;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
}

.footer-main {
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 40px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--secondary);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-social {
  display: flex;
  gap: 12px;
}

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

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

.footer-contact .contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 4px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin: 0 4px;
}

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

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  animation: whatsapp-pulse 2s infinite;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #20b558;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* Page hero inner pages */
.page-hero {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  padding: 120px 0 64px;
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
  color: var(--secondary);
  text-decoration: none;
}

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

/* Portfolio filter */
.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.filter-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-right: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 50px;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.portfolio-grid-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0 80px;
}

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

.project-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.project-img-wrap > .project-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-img-wrap .project-client-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  max-height: 48px;
  max-width: min(42%, 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 27, 42, 0.95) 0%,
    rgba(13, 27, 42, 0.4) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  pointer-events: none;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.project-overlay-content.project-overlay-minimal {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}

.project-name-label {
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.project-card-cta {
  margin-top: 0;
  align-self: flex-start;
  pointer-events: auto;
}

.project-img-wrap--lightbox-only {
  cursor: zoom-in;
}

.portfolio-more-section {
  padding: 32px 0 80px;
  background: var(--light);
}

.portfolio-more-grid {
  padding-top: 8px;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  padding: max(8px, env(safe-area-inset-top)) max(56px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom)) max(56px, env(safe-area-inset-left));
  box-sizing: border-box;
  background: rgba(5, 10, 18, 0.94);
  overflow: hidden;
}

.portfolio-lightbox.is-open {
  display: flex;
}

.portfolio-lightbox-inner {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.portfolio-lightbox-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Viewport-based caps - avoids broken % resolution in nested flex/grid (tiny images). */
.portfolio-lightbox-img-el {
  display: block;
  flex: 0 0 auto;
  align-self: center;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: min(96vw, calc(100vw - 120px));
  max-height: calc(100vh - 100px);
  max-height: calc(100svh - 100px);
  max-height: calc(100dvh - 100px);
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.5);
}

.portfolio-lightbox-counter {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.portfolio-lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.portfolio-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.portfolio-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.portfolio-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.26);
}

.portfolio-lightbox-prev {
  left: 12px;
}

.portfolio-lightbox-next {
  right: 12px;
}

@media (hover: none) and (pointer: coarse) {
  .project-card .project-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(13, 27, 42, 0.92) 0%,
      rgba(13, 27, 42, 0.38) 48%,
      transparent 100%
    );
  }
}

.project-overlay-content h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.project-overlay-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0 80px;
}

.contact-info-block {
  margin-bottom: 24px;
}

/* Reuses .footer-contact; footer styles white links — on light bg they must stay readable */
.contact-info-block .footer-contact a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info-block .footer-contact a:hover {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-info-block .footer-contact .contact-item,
.contact-info-block .footer-contact span {
  color: var(--text-dark);
}

.contact-layout > div:first-child > h2 + p {
  color: var(--gray);
  margin-bottom: 24px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
}

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

.map-embed {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--border);
}

.map-embed iframe {
  width: 100%;
  height: 240px;
  border: 0;
}

.success-banner {
  display: none;
  background: #ecfdf5;
  border: 1px solid var(--success);
  color: #065f46;
  padding: 16px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: var(--white);
  border: none;
  font-family: var(--font-accent);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 20px 16px;
  color: var(--gray);
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

/* Blog */
.blog-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

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

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

.blog-card-body {
  padding: 20px;
}

.category-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.2);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 40px 0 80px;
}

.article-body h2 {
  margin: 32px 0 16px;
  color: var(--primary);
}

.article-body h3 {
  margin: 24px 0 12px;
  color: var(--accent);
}

.article-body ul {
  margin: 16px 0 16px 24px;
  color: var(--gray);
}

.article-cta-box {
  background: var(--light);
  border-left: 4px solid var(--secondary);
  padding: 24px;
  margin: 32px 0;
  border-radius: var(--border-radius);
}

.sidebar-widget {
  background: var(--light);
  padding: 24px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  color: var(--primary);
  margin-bottom: 12px;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links a {
  text-decoration: none;
  color: var(--text-dark);
}

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

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  margin: 24px 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 16px;
}

.article-intro {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 8px;
}

/* Swiper pagination override */
.testimonial-swiper .swiper-pagination-bullet-active {
  background: var(--secondary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border);
  text-align: center;
}

.value-card i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

.job-card {
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  background: var(--white);
}

.job-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

/* Service inner sections */
.service-inner-section {
  padding: 48px 0;
}

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

.capabilities-list {
  list-style: none;
}

.capabilities-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.capabilities-list i {
  color: var(--secondary);
  margin-top: 4px;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.variant-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  color: var(--primary);
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.material-tag {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 0.9rem;
}

.usp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.usp-box {
  background: var(--white);
  padding: 28px;
  border-radius: var(--border-radius-lg);
  border-top: 4px solid var(--secondary);
  box-shadow: var(--shadow-sm);
}

.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.comparison-table th {
  background: var(--primary);
  color: var(--white);
}

.share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 32px 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.share-btn.whatsapp {
  background: #25d366;
  color: white;
}

.share-btn.linkedin {
  background: #0a66c2;
  color: white;
}
