/* ============================================================
   JQS Builders Inc – Main Stylesheet
   Design: Theratio theme inspired, rebuilt clean
   ============================================================ */

/* ----------------------------------------------------------
   1. Custom Properties (Design Tokens)
   ---------------------------------------------------------- */
:root {
  /* Colors */
  --color-dark:       #1a1a1a;
  --color-dark-mid:   #313131;
  --color-dark-light: #444444;
  --color-gray:       #9f9e9e;
  --color-gray-light: #7d7d7d;
  --color-bg-light:   #f4f4f4;
  --color-white:      #ffffff;
  --color-border:     rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-heading:  'Titillium Web', sans-serif;
  --font-body:     'Raleway', sans-serif;

  /* Spacing */
  --section-pad:   110px;
  --section-pad-sm: 80px;

  /* Transitions */
  --transition:    0.3s ease;
}

/* ----------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

/* ----------------------------------------------------------
   3. Typography
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
}

.section-subtitle {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 0;
}

.section-title strong {
  font-weight: 700;
}

/* ----------------------------------------------------------
   4. Layout Utilities
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.container-fluid {
  width: 100%;
  padding: 0 30px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-2 { flex: 0 0 calc(50% - 30px); margin: 0 15px; }
.col-3 { flex: 0 0 calc(33.333% - 30px); margin: 0 15px; }
.col-4 { flex: 0 0 calc(25% - 30px); margin: 0 15px; }

/* Section spacing */
.section { padding: var(--section-pad) 0; }
.section-sm { padding: var(--section-pad-sm) 0; }

/* Vertical grid lines decorator */
.has-lines { position: relative; }
.has-lines::before,
.has-lines::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(0,0,0,0.08);
  pointer-events: none;
}
.has-lines::before { left: calc(33.333% + 30px); }
.has-lines::after  { right: calc(33.333% + 30px); }

/* ----------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-block;
  position: relative;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 17px 40px;
  border: 1px solid var(--color-dark);
  background: var(--color-dark);
  color: var(--color-white);
  cursor: pointer;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
  white-space: nowrap;
  overflow: visible;
}

.btn::before,
.btn::after {
  content: '';
  position: absolute;
  background: var(--color-dark);
  transition:
    opacity var(--transition),
    transform var(--transition),
    background-color var(--transition);
}

.btn::before {
  left: 14px;
  right: -8px;
  bottom: -8px;
  height: 1px;
}

.btn::after {
  top: 14px;
  bottom: -8px;
  right: -8px;
  width: 1px;
}

.btn:hover {
  background: var(--color-white);
  color: var(--color-dark);
  transform: translate(-2px, -2px);
}

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

.btn-light::before,
.btn-light::after {
  background: var(--color-white);
}

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

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

.btn-fill:hover {
  background: transparent;
  color: var(--color-dark);
}

.btn-sm {
  padding: 9px 22px;
  font-size: 11px;
}

/* ----------------------------------------------------------
   6. Header / Navigation
   ---------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: var(--color-white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 0 24px 0 0;
  height: 91px;
}

/* Logo — occupies the left third (mirrors WP's ~20% column) */
.site-logo {
  flex: 1;
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 91px;
  width: auto;
  display: block;
}

/* Primary Nav — sits in the center at its natural width */
.primary-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.primary-nav a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 20px;
  height: 91px;
  display: flex;
  align-items: center;
  color: var(--color-dark);
  position: relative;
  transition: color var(--transition);
}

.site-header.transparent .primary-nav a {
  color: var(--color-white);
}

.site-header.scrolled .primary-nav a {
  color: var(--color-dark);
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 22px; left: 20px; right: 20px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  transform: scaleX(1);
}

/* Header actions — occupies the right third, content pushed right */
.header-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.header-actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 18px;
  color: var(--color-dark);
  transition: color var(--transition);
  line-height: 1;
}

.site-header.transparent .header-actions button {
  color: var(--color-white);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

.site-header.transparent .hamburger span {
  background: var(--color-white);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  height: 100vh;
  background: var(--color-white);
  z-index: 1100;
  padding: 80px 40px 40px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-bg-light);
  color: var(--color-dark);
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-dark);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s;
  visibility: hidden;
  pointer-events: none;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ----------------------------------------------------------
   7. Hero Section
   ---------------------------------------------------------- */
.hero {
  --hero-frame-offset: 90px;
  --hero-frame-bottom: 58px;
  --hero-social-top: 272px;
  --hero-social-height: 360px;
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/new_slide.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 8s ease-out forwards;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12));
  background-repeat: no-repeat;
  background-size:
    1px 100%,
    1px 100%,
    calc(100% - (var(--hero-frame-offset) * 2)) 1px,
    calc(100% - (var(--hero-frame-offset) * 2)) 1px;
  background-position:
    var(--hero-frame-offset) 0,
    calc(100% - var(--hero-frame-offset)) 0,
    var(--hero-frame-offset) 90px,
    var(--hero-frame-offset) calc(100% - var(--hero-frame-bottom));
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 0 20px 170px;
  max-width: 1280px;
  isolation: isolate;
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
  z-index: 1;
}

.hero-title-wrap::before {
  content: 'JQS';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(7rem, 16vw, 13rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  color: transparent;
  -webkit-text-stroke: 1.8px rgba(255, 255, 255, 0.2);
  text-stroke: 1.8px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.hero-label {
  display: none;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.9rem);
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: 0;
  animation: fadeUp 1s 0.5s both;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.15);
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 300;
  max-width: 880px;
  margin: 0 auto 40px;
  opacity: 0.85;
  line-height: 1.65;
  animation: fadeUp 1s 0.7s both;
  position: relative;
  z-index: 1;
}

.hero-actions {
  animation: fadeUp 1s 0.9s both;
  position: relative;
  z-index: 1;
}

/* Social strip (left vertical) */
.hero-social {
  position: absolute;
  left: calc(var(--hero-frame-offset) / 2);
  top: var(--hero-social-top);
  width: 0;
  height: var(--hero-social-height);
  z-index: 2;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.hero-social::before {
  content: '';
  width: 1px;
  height: 108px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 0;
  position: absolute;
  top: -126px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-social a {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 0;
  display: inline-block;
  white-space: nowrap;
  opacity: 0.72;
  transform: rotate(-90deg);
  transform-origin: center;
  line-height: 1;
  transition: opacity var(--transition), transform var(--transition);
}

.hero-social a:hover {
  opacity: 1;
  transform: rotate(-90deg) translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  opacity: 0.6;
  animation: bounce 2s infinite;
}

.hero-scroll span {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   8. Quote / Owner Section
   ---------------------------------------------------------- */
.quote-section {
  background: url('../images/bg/dark-bg.jpg') center/cover no-repeat;
  position: relative;
  padding: 90px 0;
}

.quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.88);
}

.quote-section .container { position: relative; }

.quote-section .row {
  align-items: center;
}

.quote-text {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 300;
  line-height: 1.6;
  text-align: right;
}

.quote-owner {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.quote-owner-img {
  width: 38%;
  flex-shrink: 0;
  position: relative;
}

.quote-owner-img img {
  width: 100%;
  height: auto;
}

.quote-owner-signature {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 50%;
  opacity: 0.5;
  pointer-events: none;
}

.quote-owner-info {
  flex: 1;
  padding-left: 8px;
}

.quote-owner-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 4px;
}

.quote-owner-role {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gray);
}

/* ----------------------------------------------------------
   9. Featured Project Section
   ---------------------------------------------------------- */
.featured-project .row {
  align-items: center;
}

.featured-project-img {
  position: relative;
  margin-left: -55px;
}

.featured-project-content {
  position: relative;
  padding-left: 70px;
}

.featured-project-content .section-title {
  margin-bottom: 20px;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.featured-project-content p {
  color: var(--color-gray-light);
  margin-bottom: 36px;
  max-width: 560px;
}

.featured-project-statue {
  position: absolute;
  top: -18px;
  right: 110px;
  width: auto;
  height: 72px;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

/* ----------------------------------------------------------
   10. Partners / Clients Carousel
   ---------------------------------------------------------- */
/* ----------------------------------------------------------
   Mission / Vision / Values Cards
   ---------------------------------------------------------- */
.mvv-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-white);
  padding: 24px 28px;
  border-left: 3px solid var(--color-dark);
}

.mvv-card-icon {
  font-size: 20px;
  color: var(--color-dark);
  flex-shrink: 0;
  width: 36px;
  padding-top: 2px;
}

.mvv-card-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mvv-card-text {
  font-size: 14px;
  color: var(--color-gray-light);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   Team Grid
   ---------------------------------------------------------- */
.team-section {
  background:
    linear-gradient(180deg, #f5f5f2 0%, #edf1f5 100%);
  position: relative;
}

.team-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 56px;
}

.team-section-copy {
  max-width: 760px;
}

.team-section-text {
  max-width: 58ch;
  margin-top: 18px;
  color: #66727d;
  line-height: 1.9;
}

.team-section-note {
  min-width: 220px;
  padding: 24px 26px;
  border: 1px solid rgba(17, 34, 64, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(238,244,249,0.92)),
    repeating-linear-gradient(0deg, rgba(84, 122, 170, 0.08) 0, rgba(84, 122, 170, 0.08) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(84, 122, 170, 0.08) 0, rgba(84, 122, 170, 0.08) 1px, transparent 1px, transparent 28px);
  box-shadow: 0 20px 50px rgba(15, 30, 55, 0.08);
}

.team-section-note-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6e7b8d;
}

.team-section-note strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a2f4a;
}

.team-section-note strong + strong {
  margin-top: 8px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(32, 56, 84, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 55px rgba(17, 29, 45, 0.08);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 16px 16px auto auto;
  width: 94px;
  height: 94px;
  border-top: 1px solid rgba(80, 118, 162, 0.16);
  border-right: 1px solid rgba(80, 118, 162, 0.16);
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(58, 92, 130, 0.28);
  box-shadow: 0 30px 65px rgba(17, 29, 45, 0.14);
}

.team-card-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 43, 70, 0.08), rgba(20, 43, 70, 0.02)),
    repeating-linear-gradient(0deg, rgba(89, 127, 170, 0.08) 0, rgba(89, 127, 170, 0.08) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(89, 127, 170, 0.08) 0, rgba(89, 127, 170, 0.08) 1px, transparent 1px, transparent 24px),
    #f2f5f8;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.45s ease;
}

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

.team-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card-img--placeholder i {
  font-size: 58px;
  color: rgba(43, 73, 109, 0.28);
}

.team-card-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px 28px;
}

.team-card-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #708198;
}

.team-card-index::after {
  content: '';
  width: 34px;
  height: 1px;
  background: rgba(112, 129, 152, 0.45);
}

.team-card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.45;
  color: #182b43;
  margin: 0;
}

.team-card-role {
  font-size: 12px;
  color: #6e7a87;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

.team-card-bio {
  color: #64707c;
  line-height: 1.8;
  margin: 4px 0 0;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .team-section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-section-note {
    width: min(100%, 420px);
  }

  .services-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-heading-note {
    width: min(100%, 420px);
  }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }

  .team-section-heading {
    gap: 24px;
    margin-bottom: 36px;
  }

  .team-section-note {
    padding: 20px;
  }

  .team-card-info {
    padding: 22px 22px 24px;
  }
}

/* ----------------------------------------------------------
   Partners / Clients Carousel
   ---------------------------------------------------------- */
.partners-section {
  background: var(--color-bg-light);
  padding: 71px 0;
}

.partners-swiper {
  padding: 0 140px;
}

.partners-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.partner-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(100%) contrast(0.6);
  transition: all var(--transition);
}

.partner-logo:hover {
  opacity: 1;
  filter: none;
}

/* ----------------------------------------------------------
   11. Services Section
   ---------------------------------------------------------- */
.services-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 56px;
}

.services-heading-copy {
  max-width: 760px;
}

.services-heading-text {
  max-width: 58ch;
  margin-top: 18px;
  color: #666f7a;
  line-height: 1.9;
}

.services-heading-note {
  min-width: 220px;
  padding: 24px 26px;
  border: 1px solid rgba(17, 34, 64, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(238,244,249,0.92)),
    repeating-linear-gradient(0deg, rgba(84, 122, 170, 0.08) 0, rgba(84, 122, 170, 0.08) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(84, 122, 170, 0.08) 0, rgba(84, 122, 170, 0.08) 1px, transparent 1px, transparent 28px);
  box-shadow: 0 20px 50px rgba(15, 30, 55, 0.08);
}

.services-heading-note-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6e7b8d;
}

.services-heading-note strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a2f4a;
}

.services-heading-note strong + strong {
  margin-top: 8px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 0;
  padding: 0 30px;
}

.service-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(38, 71, 110, 0.18);
  background:
    linear-gradient(135deg, rgba(10, 28, 51, 0.97), rgba(19, 49, 84, 0.95)),
    repeating-linear-gradient(0deg, rgba(173, 204, 235, 0.12) 0, rgba(173, 204, 235, 0.12) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(90deg, rgba(173, 204, 235, 0.12) 0, rgba(173, 204, 235, 0.12) 1px, transparent 1px, transparent 32px);
  box-shadow: 0 22px 60px rgba(9, 24, 43, 0.16);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(198, 223, 245, 0.16);
  pointer-events: none;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 auto;
  width: 120px;
  height: 120px;
  background:
    radial-gradient(circle at center, rgba(194, 221, 244, 0.16) 0, rgba(194, 221, 244, 0.16) 1px, transparent 1px, transparent 100%);
  background-size: 14px 14px;
  opacity: 0.7;
  transform: translate(34%, 34%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(180, 210, 237, 0.45);
  box-shadow: 0 28px 70px rgba(9, 24, 43, 0.24);
}

.service-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 34px 34px 30px;
}

.service-code {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(213, 232, 250, 0.7);
}

.service-code::after {
  content: '';
  width: 56px;
  height: 1px;
  background: rgba(213, 232, 250, 0.36);
}

.service-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.service-desc {
  color: rgba(226, 237, 247, 0.82);
  line-height: 1.82;
  margin-bottom: auto;
  max-width: 34ch;
}

.service-link {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d8e9f7;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  opacity: 0.88;
}

.service-link::after {
  content: '';
  width: 30px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.service-card:hover .service-link::after {
  width: 44px;
}

/* ----------------------------------------------------------
   12. Portfolio Section
   ---------------------------------------------------------- */
.portfolio-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.portfolio-filter-btn {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gray);
  transition: color var(--transition);
  position: relative;
}

.portfolio-filter-btn::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 24px; right: 24px;
  height: 1px;
  background: var(--color-dark);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.portfolio-filter-btn.active,
.portfolio-filter-btn:hover {
  color: var(--color-dark);
}

.portfolio-filter-btn.active::after,
.portfolio-filter-btn:hover::after {
  transform: scaleX(1);
}

/* Homepage portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

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

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

.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.14) 55%, rgba(0,0,0,0) 100%);
  transition: background 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 30px;
}

.portfolio-item:hover .portfolio-item-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.22) 58%, rgba(0,0,0,0.02) 100%);
}

.portfolio-item-info {
  color: var(--color-white);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-item-info {
  transform: translateY(-4px);
  opacity: 1;
}

.portfolio-item-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-white);
}

.portfolio-item-cats {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

.portfolio-item.hidden { display: none; }

/* Portfolio page (full listing) */
.portfolio-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-page-grid .portfolio-item {
  aspect-ratio: 1;
}

.portfolio-page-grid .portfolio-item:nth-child(5n+1) {
  grid-column: span 1;
  aspect-ratio: 1;
}

/* ----------------------------------------------------------
   13. CTA Banner
   ---------------------------------------------------------- */
.cta-section {
  background: url('../images/bg/dark-bg.jpg') center/cover no-repeat;
  position: relative;
  padding: 73px 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.88);
}

.cta-section .container { position: relative; }

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 10px;
}

.cta-text p {
  color: #a9a9a9;
  font-size: 1rem;
}

.cta-action { flex-shrink: 0; }

/* ----------------------------------------------------------
   14. Page Header (inner pages)
   ---------------------------------------------------------- */
.page-header {
  background: url('../images/bg/portfolio-header.png') center/cover no-repeat;
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.page-header .container { position: relative; }

.page-header-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb-sep { opacity: 0.4; }

/* ----------------------------------------------------------
   15. About Page
   ---------------------------------------------------------- */
.about-section .row { align-items: center; }

.about-image {
  position: relative;
  margin-left: -55px;
}

.about-content {
  padding-left: 70px;
}

.about-content .section-title {
  margin-bottom: 20px;
}

.about-content p {
  color: var(--color-gray-light);
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.85;
}

/* ----------------------------------------------------------
   16. Contact Page
   ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}

.contact-form-col {
  padding-right: 70px;
}

.contact-info-col {
  background: url('../images/bg/dark-bg.jpg') center/cover;
  position: relative;
  padding: 80px 75px 80px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}

.contact-info-col > * { position: relative; }

.contact-info-col .section-subtitle { color: rgba(255,255,255,0.5); }
.contact-info-col .section-title { color: var(--color-white); }

.contact-info-col p {
  color: #a3a3a3;
  margin-bottom: 36px;
  font-size: 0.9375rem;
}

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

.contact-detail-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--color-dark-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-white);
}

.contact-detail-info h6 {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-detail-info p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  margin: 0;
}

/* Contact form */
.contact-form .section-title {
  margin-bottom: 36px;
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-dark);
}

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

.form-message {
  margin-top: 16px;
  font-size: 14px;
  padding: 12px 16px;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}

/* ----------------------------------------------------------
   17. Footer
   ---------------------------------------------------------- */
.site-footer {
  background: var(--color-dark);
  border-top: 1px solid var(--color-dark-mid);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-size: 15px;
  color: var(--color-gray-light);
}

.footer-copy a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-copy a:hover { color: var(--color-white); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social a {
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-dark-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

/* ----------------------------------------------------------
   18. Portfolio Single
   ---------------------------------------------------------- */
.portfolio-single-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 60px;
}

.portfolio-single-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  transition: opacity var(--transition);
}

.portfolio-single-gallery img:hover { opacity: 0.85; }

.portfolio-single-gallery img:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.portfolio-meta {
  background: var(--color-bg-light);
  padding: 40px;
  margin-bottom: 40px;
}

.portfolio-meta h2 {
  font-size: 1.75rem;
  font-weight: 300;
  margin-bottom: 12px;
}

.portfolio-meta-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cat-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  color: var(--color-gray);
}

/* ----------------------------------------------------------
   19. Animations / Transitions
   ---------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ----------------------------------------------------------
   20. Responsive
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --section-pad: 90px;
    --section-pad-sm: 70px;
  }

  .partners-swiper { padding: 0 60px; }

  .featured-project-img { margin-left: 0; }
  .featured-project-content { padding-left: 40px; }

  .about-image { margin-left: 0; }
  .about-content { padding-left: 40px; }
}

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .header-actions {
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
  }
  .header-actions > a { display: none; }
  .hamburger { display: flex; }

  .mobile-nav,
  .mobile-overlay { display: none; }
  .mobile-nav.open,
  .mobile-overlay.open { display: block; }

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

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-col { padding-right: 0; margin-bottom: 40px; }
  .contact-info-col { padding: 50px 40px; }

  .portfolio-single-gallery { grid-template-columns: repeat(2, 1fr); }
  .portfolio-single-gallery img:first-child {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: var(--section-pad-sm);
  }

  .hero-frame { display: none; }
  .header-inner { padding: 0 20px; }
  .site-logo img { height: 65px; }
  .hero { align-items: center; }
  .hero-content {
    padding: 0 20px;
    max-width: 900px;
  }
  .hero-title-wrap::before {
    font-size: clamp(4rem, 20vw, 7rem);
    letter-spacing: 0.18em;
  }
  .hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    white-space: normal;
  }
  .hero-desc {
    max-width: 640px;
    line-height: 1.8;
  }

  .col-2, .col-3, .col-4 {
    flex: 0 0 calc(100% - 30px);
  }

  .quote-text { text-align: left; }

  .row.align-center { flex-direction: column; }
  .featured-project-content { padding-left: 0; margin-top: 30px; }
  .featured-project-statue {
    top: -10px;
    right: 18px;
    width: auto;
    height: 58px;
  }
  .about-content { padding-left: 0; margin-top: 30px; }

  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

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

  .partners-swiper { padding: 0 15px; }

  .hero-social { display: none; }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .has-lines::before, .has-lines::after { display: none; }
}

@media (max-width: 480px) {
  .portfolio-page-grid { grid-template-columns: 1fr; }
  .portfolio-single-gallery { grid-template-columns: 1fr; }
  .portfolio-single-gallery img:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
  .container { padding: 0 20px; }
  .services-heading {
    gap: 24px;
    margin-bottom: 36px;
  }
  .services-heading-note {
    padding: 20px;
  }
  .services-grid {
    padding: 0 16px;
    gap: 18px;
  }
  .service-card {
    min-height: 300px;
  }
  .service-card-inner {
    padding: 26px 24px 24px;
  }
  .service-title {
    font-size: 1.25rem;
  }
  .contact-info-col { padding: 40px 24px; }
}
