/* =========================================================
   CIVILS INNER PAGES STYLING (Lighter Theme)
   Prefixes: .civ-
========================================================= */

:root {
  --brand-blue: #082863;
  --brand-orange: #dea230;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted-dark: #475569;
}

body.civils-light-theme {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: "Inter", sans-serif;
}

/* 1. UNIFIED INNER HERO (Frosted Glass & Bright Blueprint) */
.civ-unified-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 4rem 2rem;
  overflow: hidden;
  background-color: rgb(226, 232, 240);
}

.civ-hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20vw;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(8, 40, 99, 0.3); /* Faint blue stroke */
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
}

.civ-hero-light-grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(8, 40, 99, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 40, 99, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg) translateY(-100px);
  animation: civGridMove 20s linear infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes civGridMove {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0);
  }
  100% {
    transform: perspective(500px) rotateX(60deg) translateY(50px);
  }
}

.civ-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 2;
  opacity: 0.6;
}
.civ-hero-orb.orb-orange {
  width: 500px;
  height: 500px;
  background: var(--brand-orange);
  bottom: -150px;
  left: -100px;
}
.civ-hero-orb.orb-blue {
  width: 600px;
  height: 600px;
  background: var(--brand-blue);
  top: -200px;
  right: -100px;
}

.civ-hero-wrapper {
  position: relative;
  z-index: 4;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.civ-hero-glass-block {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 1);
  border-bottom: 4px solid var(--brand-orange);
  padding: 4rem 3rem;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(8, 40, 99, 0.1);
}

.civ-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.4rem 1.2rem;
  background: rgba(222, 162, 48, 0.1);
  border: 1px solid rgba(222, 162, 48, 0.3);
  color: var(--brand-orange);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

@keyframes civPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(222, 162, 48, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(222, 162, 48, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(222, 162, 48, 0);
  }
}

.civ-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--brand-blue);
  text-transform: uppercase;
}
.civ-text-glow {
  color: var(--brand-orange);
}
.civ-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted-dark);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 2. SHARED LIGHT THEME SECTIONS */
.civ-section {
  padding: 6rem 8vw;
  position: relative;
  z-index: 1;
}
.civ-container {
  max-width: 1200px;
  margin: 0 auto;
}
.civ-container-wide {
  max-width: 1400px;
  margin: 0 auto;
}

.civ-icon-header {
  font-size: 2.5rem;
  color: var(--brand-orange);
  margin-bottom: 1rem;
}
.civ-section-label {
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.civ-heading {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--brand-blue);
}
.civ-desc,
.civ-desc-center {
  font-size: 1.05rem;
  color: var(--text-muted-dark);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.civ-center-header,
.civ-grid-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}
.text-center {
  text-align: center;
}

/* LAYOUT 1: Left Text, Right Glass Image */
.civ-layout-1 {
  background: var(--bg-white);
}
.civ-layout-1 .civ-container {
  /* display: grid;
  grid-template-columns: 1fr 1fr; */
  display: flex;
  flex-direction: row-reverse;
  gap: 4rem;
  align-items: center;
}
.civ-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.civ-feature-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  color: var(--brand-blue);
}
.civ-feature-list li i {
  color: var(--brand-orange);
  background: rgba(222, 162, 48, 0.1);
  padding: 8px;
  border-radius: 50%;
  font-size: 0.8rem;
}
.civ-image-right {
  padding: 2rem;
  position: relative;
}
.civ-glass-frame {
  position: relative;
  border-radius: 12px;
  z-index: 2;
}
.civ-glass-frame img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(8, 40, 99, 0.15);
  filter: grayscale(10%) contrast(105%);
  position: relative;
  z-index: 2;
}
.civ-frame-accent {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 100%;
  height: 100%;
  border: 3px solid var(--brand-orange);
  border-radius: 12px;
  z-index: 1;
  opacity: 0.5;
}

/* LAYOUT 2: Masonry Grid */
.civ-layout-2 {
  background: var(--bg-light);
}
.civ-staggered-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2rem;
}
.civ-light-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(8, 40, 99, 0.05);
  transition: transform 0.4s ease;
  border: 1px solid rgba(8, 40, 99, 0.05);
  display: flex;
  flex-direction: column;
}
.civ-light-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(8, 40, 99, 0.1);
  border-color: rgba(222, 162, 48, 0.3);
}
.stag-tall {
  grid-row: span 2;
}
.civ-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 3px solid var(--brand-orange);
}
.stag-tall .civ-img-top {
  height: 400px;
}
.civ-content-bottom {
  padding: 2.5rem;
  flex: 1;
}
.civ-card-icon {
  width: 50px;
  height: 50px;
  background: rgba(222, 162, 48, 0.1);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.civ-light-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--brand-blue);
  font-weight: 800;
}
.civ-light-card p {
  font-size: 0.95rem;
  color: var(--text-muted-dark);
  line-height: 1.6;
}

/* LAYOUT 3: Floating Light Panels */
.civ-layout-3 {
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}
.civ-cinematic-bg-light {
  position: absolute;
  right: -10%;
  top: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(8, 40, 99, 0.05), transparent);
  z-index: 0;
  pointer-events: none;
}
.civ-glass-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}
.civ-glass-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}
.light-floating-panel {
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 15px 35px rgba(8, 40, 99, 0.06);
  border: 1px solid #fff;
}
.light-floating-panel:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(8, 40, 99, 0.1);
  border-top: 3px solid var(--brand-orange);
}
.lf-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}
.lf-icon {
  font-size: 2.2rem;
  color: var(--brand-blue);
  transition: color 0.3s;
}
.light-floating-panel:hover .lf-icon {
  color: var(--brand-orange);
}
.light-floating-panel h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--brand-blue);
}
.light-floating-panel p {
  color: var(--text-muted-dark);
  line-height: 1.6;
}

/* LAYOUT 4: Minimalist Grid */
.civ-layout-4 {
  background: var(--bg-white);
}
.civ-ultra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
}
.civ-ultra-card {
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 3rem;
  display: flex;
  gap: 1.5rem;
  transition: all 0.4s ease;
}
.civ-ultra-card:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 15px 30px rgba(222, 162, 48, 0.1);
  transform: translateY(-5px);
}
.civ-ultra-icon {
  font-size: 2rem;
  color: var(--brand-orange);
}
.civ-ultra-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--brand-blue);
}
.civ-ultra-text p {
  color: var(--text-muted-dark);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* CROSS BRANCH & CTA */
.civ-combined {
  background: #020817; /* Dark transition before footer */
}
#cross-branch-strip {
  padding: 4rem 2rem;
  background: linear-gradient(90deg, #020611 0%, rgba(8, 40, 99, 0.8) 100%);
  border-bottom: 1px solid rgba(222, 162, 48, 0.2);
  display: flex;
  justify-content: center;
}
.cb-content-wrapper {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  justify-content: space-between;
  gap: 2rem;
  padding-left: 10vw;
  padding-right: 10vw;
}
.cb-text-block {
  border-left: 4px solid var(--brand-orange);
  padding-left: 2rem;
}
.cb-title {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.cb-desc {
  color: #94a3b8;
}
.cb-desc span {
  color: var(--brand-orange);
}
.cb-strip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(222, 162, 48, 0.1);
  border: 1px solid var(--brand-orange);
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  border-radius: 4px;
  transition: 0.3s;
}

.cb-strip-btn i {
  height: 1cap;
}
.cb-strip-btn:hover {
  background: var(--brand-orange);
  color: #000;
}

#civ-cta-section {
  padding: 4rem 2rem;
  text-align: center;
}
#civ-cta-glass {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(4, 12, 28, 0.9);
  padding: 4rem;
  border-radius: 12px;
  border-top: 2px solid var(--brand-orange);
}
.civ-cta-icon {
  font-size: 3rem;
  color: var(--brand-orange);
  margin-bottom: 1rem;
}
#civ-cta-title {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
}
#civ-cta-desc {
  color: #94a3b8;
  margin-bottom: 2rem;
}
#civ-cta-btn {
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid var(--brand-orange);
  color: var(--brand-orange);
  font-weight: 800;
  border-radius: 4px;
  transition: 0.3s;
  display: inline-block;
}
#civ-cta-btn:hover {
  background: var(--brand-orange);
  color: #000;
}

/* PORTFOLIO GRID */
#civ-portfolio-section {
  background: var(--bg-light);
  padding: 4rem 2rem 8rem 2rem;
}
.civ-filter-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.civ-filter-btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 1px solid var(--brand-blue);
  background: transparent;
  color: var(--brand-blue);
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.civ-filter-btn.active,
.civ-filter-btn:hover {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}
.civ-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}
.civ-port-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #000;
  border: 1px solid rgba(8, 40, 99, 0.1);
  cursor: pointer;
  transition: 0.4s;
}
.civ-port-card.hide {
  display: none;
}
.civ-port-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s;
  filter: grayscale(20%);
}
.civ-port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 40, 99, 0.95), transparent);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 1;
  transition: 0.4s;
}
.civ-port-content {
  transform: translateY(20px);
  transition: 0.4s;
}
.civ-port-category {
  color: var(--brand-orange);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.civ-port-title {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.civ-port-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #000;
}
@media (min-width: 769px) {
  .civ-port-card:hover .civ-port-img {
    transform: scale(1.08);
    filter: grayscale(0%);
  }

  .civ-port-card:hover .civ-port-overlay {
    opacity: 1;
  }
  .civ-port-card:hover .civ-port-content {
    transform: translateY(0);
  }
}

/* CONTACT PAGES & FORMS */
.civ-contact-layout {
  background: var(--bg-white);
}
.civ-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.civ-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.civ-info-item {
  display: flex;
  gap: 1.5rem;
}
.civ-info-icon {
  width: 50px;
  height: 50px;
  background: rgba(222, 162, 48, 0.1);
  color: var(--brand-orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.civ-info-text h5 {
  font-size: 1.1rem;
  color: var(--brand-blue);
  margin-bottom: 0.2rem;
}
.civ-info-text p {
  color: var(--text-muted-dark);
}
.civ-form-card {
  background: var(--bg-light);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.civ-form-title {
  font-size: 1.5rem;
  color: var(--brand-blue);
  margin-bottom: 2rem;
}
.civ-input-group {
  margin-bottom: 1.5rem;
}
.civ-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.civ-input-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.civ-input-group input,
.civ-input-group select,
.civ-input-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: "Inter";
  background: #fff;
  color: var(--text-dark);
  transition: 0.3s;
}
.civ-input-group input:focus,
.civ-input-group select:focus,
.civ-input-group textarea:focus {
  border-color: var(--brand-orange);
  outline: none;
  box-shadow: 0 0 10px rgba(222, 162, 48, 0.1);
}
.civ-submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}
.civ-submit-btn:hover {
  background: var(--brand-orange);
  color: #000;
}

/* FAQ & MAP */
.civ-faq-map-bg {
  background: var(--bg-light);
  padding-bottom: 2rem;
}
.civ-faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.civ-faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.civ-faq-item.active {
  border-color: var(--brand-orange);
}
.civ-faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.civ-faq-icon {
  color: var(--brand-orange);
  transition: 0.3s;
}
.civ-faq-item.active .civ-faq-icon {
  transform: rotate(45deg);
}
.civ-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s;
}
.civ-faq-answer p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted-dark);
}
.civ-map-section {
  position: relative;
  height: 450px;
  background: #fff;
}
.civ-map-wrapper iframe {
  filter: grayscale(100%) contrast(120%) brightness(1.2) sepia(10%)
    hue-rotate(180deg);
}

/* MOBILE RESPONSIVE */
@media (max-width: 992px) {
  .civ-layout-1 .civ-container,
  .civ-split-grid {
    grid-template-columns: 1fr;
  }
  .civ-layout-1 .civ-container {
    flex-direction: column;
  }
  .civ-staggered-grid {
    grid-template-columns: 1fr;
  }
  .cb-content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .civ-unified-hero {
    padding: 120px 1.5rem 4rem 1.5rem;
    min-height: auto;
  }
  .civ-hero-title {
    font-size: 2.2rem;
  }
  .civ-section {
    padding: 4rem 1.5rem;
  }
  .civ-form-row {
    grid-template-columns: 1fr;
  }
  .civ-port-card-img {
    filter: grayscale(0%);
  }
  .civ-port-overlay {
    opacity: 1;
  }
  .civ-port-content {
    transform: translateY(0);
  }
  .civ-ultra-grid {
    display: flex;
    flex-direction: column;
  }
  .cut {
    display: none;
  }
}
