/**
 * Povey & Associates Land Surveyors - Design System
 * Brand colors: Gray #737371, Yellow #FFE818, Red #C45355
 * Typography: DM Serif Display (headings) + DM Sans (body)
 */

/* ===========================================
   1. DESIGN TOKENS
   =========================================== */
:root {
  /* Brand Colors */
  --primary: #737371;
  --secondary: #FFE818;
  --accent: #C45355;

  /* Neutrals */
  --black: #1a1a1a;
  --dark: #2d2d2d;
  --gray-700: #5D5D5C;
  --gray-500: #8a8a88;
  --gray-300: #c4c4c3;
  --gray-100: #f0f0ee;
  --light: #F7F9FC;
  --white: #FFFFFF;

  /* Semantic */
  --text-primary: var(--black);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-500);
  --bg-surface: var(--white);
  --bg-subtle: var(--gray-100);
  --border-color: #e2e2e0;

  /* Typography */
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-py: 6rem;
  --section-py-sm: 4rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.16);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.35s;

  /* Bootstrap Overrides */
  --bs-primary: #C45355;
  --bs-primary-rgb: 196, 83, 85;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50px;
}


/* ===========================================
   2. BASE STYLES
   =========================================== */
html {
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 400;
  background-color: var(--bg-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-top: 0;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: var(--accent);
  text-decoration: none;
}


/* ===========================================
   3. TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.75rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.35rem;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

small, .small {
  font-size: 0.875rem;
}


/* ===========================================
   4. SECTION PATTERNS
   =========================================== */
section {
  padding: var(--section-py) 0;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '\2014';
  margin-right: 0.5rem;
  color: inherit;
}

.section-label--light {
  color: var(--secondary);
}

.section-label--light::before {
  background-color: var(--secondary);
}

.section-title {
  position: relative;
  margin-bottom: 1rem;
  display: inline-block;
  color: var(--text-primary);
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* Center the underline when title is centered */
.text-center .section-title:after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}


/* ===========================================
   5. BUTTONS
   =========================================== */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 2px solid transparent;
}

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

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

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

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--black);
  border-color: var(--black);
  color: var(--white);
}

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

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: var(--white);
  color: var(--black);
}

.btn-warning {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--black);
}

.btn-warning:hover {
  background-color: #e6d116;
  border-color: #e6d116;
  color: var(--black);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
}

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

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

.btn-light:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--black);
}


/* ===========================================
   6. NAVIGATION
   =========================================== */
.navbar {
  padding: 0.75rem 0;
  background-color: var(--black);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease-out);
  border-bottom: 3px solid var(--accent);
  z-index: 1030;
  position: relative;
  width: 100%;
}

.navbar-brand img {
  height: 50px;
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  color: var(--white) !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  padding: 0.5rem 1rem !important;
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary) !important;
}

.navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: all var(--duration) var(--ease-out);
  transform: translateX(-50%);
}

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

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Nav CTA Button */
.btn-nav-cta {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--black);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
}

.btn-nav-cta:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--black);
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .nav-cta {
    margin-top: 0.5rem;
  }
  .btn-nav-cta {
    display: inline-block;
    width: auto;
  }
}


/* ===========================================
   7. HERO SECTION
   =========================================== */
.hero-section {
  position: relative;
  height: 85vh;
  max-height: 750px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    160deg,
    rgba(26, 26, 26, 0.7) 0%,
    rgba(26, 26, 26, 0.4) 40%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
}

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

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary);
  border: 1px solid rgba(255, 232, 24, 0.4);
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
  background: rgba(255, 232, 24, 0.08);
}

.hero-content h1 {
  font-size: 3.75rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.7;
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

.hero-image-container {
  display: none;
}


/* ===========================================
   8. CARDS (Base)
   =========================================== */
.card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  transition: all var(--duration) var(--ease-out);
  height: 100%;
  background-color: var(--bg-surface);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.card-img-top {
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.card:hover .card-img-top {
  transform: scale(1.03);
}

.card-body {
  padding: 2rem;
  position: relative;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 400;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* Link Card — icon-free navigational cards (about hub, related services, sectors) */
.link-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease-out);
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

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

.link-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.link-card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.link-card-action {
  margin-top: auto;
}

.link-card-action a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--duration) var(--ease-out);
}

.link-card-action a::after {
  content: '\2192';
  transition: transform var(--duration) var(--ease-out);
}

.link-card:hover .link-card-action a {
  gap: 0.6rem;
}

.link-card:hover .link-card-action a::after {
  transform: translateX(2px);
}


/* ===========================================
   9. MODERN SERVICE CARDS (Homepage)
   =========================================== */
.services-showcase {
  background-color: var(--bg-surface);
}

.modern-service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration) var(--ease-out);
  background-color: var(--bg-surface);
  height: 100%;
}

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

.service-image-container {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.modern-service-card:hover .service-bg-image {
  transform: scale(1.08);
}

.service-icon-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--duration) var(--ease-out);
  border: 4px solid var(--white);
}

.service-icon img.svg-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--black);
}

.service-content {
  position: relative;
  padding: 50px 24px 24px;
  text-align: center;
  margin-top: -36px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-surface);
  z-index: 1;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.service-title:after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 3px;
  background-color: var(--secondary);
  transition: width var(--duration) var(--ease-out);
}

.modern-service-card:hover .service-title:after {
  width: 4rem;
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-action {
  margin-top: auto;
}

.service-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  z-index: 1;
}

.service-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}

.service-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.service-link svg {
  transition: transform var(--duration) var(--ease-out);
}

.service-link:hover svg {
  transform: translateX(4px);
}

.service-bg-pattern {
  display: none;
}


/* ===========================================
   10. ABOUT SECTION (Homepage)
   =========================================== */
.about-section {
  padding: var(--section-py) 0;
  background-color: var(--bg-subtle);
}

.about-section .section-title {
  color: var(--text-primary);
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.about-image-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 50%;
  height: 50%;
  border: 3px solid var(--secondary);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--duration) var(--ease-out);
}

.stat-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}


/* ===========================================
   11. PROCESS SECTION
   =========================================== */
.process-section {
  background-color: var(--black);
}

.process-section .section-title {
  color: var(--white);
}

.process-section .section-title:after {
  background-color: var(--secondary);
}

.process-timeline {
  position: relative;
  padding-top: 2rem;
}

.process-timeline-line {
  position: absolute;
  top: 4.25rem;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), rgba(255, 232, 24, 0.3));
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1.25rem;
  line-height: 1;
  position: relative;
  display: inline-block;
}

.process-step-number::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 232, 24, 0.4);
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.process-step p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}


/* ===========================================
   12. TESTIMONIALS
   =========================================== */
.testimonials-section {
  background-color: #1a1a1a;
  padding: 5rem 0;
}

.testimonials-section .section-label {
  color: var(--secondary);
}

.testimonials-section .section-title {
  color: #fff;
}

.testimonials-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--duration) var(--ease-out);
  height: 100%;
}

.testimonial-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.testimonial-card .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-quote-icon {
  color: var(--secondary);
  opacity: 0.6;
  margin-bottom: 1.25rem;
}

.testimonial-quote-icon svg {
  width: 48px;
  height: 48px;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: normal;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  flex: 1;
}

.testimonial-author {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: auto;
}

.testimonial-author h5 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
  min-height: 3.4em;
}


/* Consulting Service Cards — numbered variant of link-card */
.consulting-service-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  padding: 2rem;
  height: 100%;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.consulting-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease-out);
}

.consulting-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

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

.consulting-service-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}

.consulting-service-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.consulting-service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}


/* ===========================================
   13. CTA SECTION
   =========================================== */
.cta-section {
  padding: 5rem 0;
  background-color: var(--accent);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, #a3393b 100%);
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--white);
  margin-bottom: 1rem;
}

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


/* ===========================================
   14. PRE-FOOTER & FOOTER
   =========================================== */

/* Pre-Footer CTA Strip */
.pre-footer {
  background-color: var(--black);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pre-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.pre-footer-text {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.pre-footer-text img {
  opacity: 0.9;
}

/* Footer */
.footer {
  padding: 3.5rem 0 2rem;
  background-color: var(--black);
  color: var(--white);
  position: relative;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-address,
.footer-phone,
.footer-hours {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

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

.footer p {
  color: rgba(255, 255, 255, 0.6);
}

.footer h5 {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding-left: 0;
}

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

.footer-links li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--duration) var(--ease-out);
  display: inline-block;
  font-size: 0.9rem;
}

.footer-links li a:hover {
  color: var(--secondary);
  transform: translateX(2px);
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

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


/* ===========================================
   15. PAGE HEADERS (Interior Pages)
   =========================================== */
.page-header {
  position: relative;
  background-color: var(--black) !important;
  padding: 3.5rem 0 2.5rem !important;
  color: var(--white);
  border-bottom: 3px solid var(--accent);
}

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

.page-header h1 {
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
  color: var(--white);
  font-size: 2.75rem;
  position: relative;
  display: inline-block;
}

.page-header h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 3.5rem;
  height: 3px;
  background-color: var(--accent);
}

.page-header .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
}

.page-header .breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  content: '\203A';
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  padding: 0 0.35rem;
}

.page-header nav[aria-label="breadcrumb"] {
  margin-top: 0.75rem;
  padding-bottom: 0.25rem;
}

.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: color var(--duration) var(--ease-out);
}

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

.page-header .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.5);
}


/* ===========================================
   16. ABOUT PAGE
   =========================================== */
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
}

/* Team Members */
.team-member-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration) var(--ease-out);
  height: 100%;
}

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

.team-member-img {
  height: 300px;
  object-fit: cover;
}

.team-member-info {
  padding: 1.5rem;
}

.team-member-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-member-position {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}


/* ===========================================
   17. PORTFOLIO PAGE
   =========================================== */
.portfolio-section {
  padding: var(--section-py) 0;
}

.portfolio-filters {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.portfolio-filter-btn {
  padding: 0.5rem 1.25rem;
  margin: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--duration) var(--ease-out);
}

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

.portfolio-item {
  margin-bottom: 2rem;
}

.portfolio-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.08);
}

.portfolio-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  pointer-events: none;
}

.portfolio-card-location {
  position: absolute;
  bottom: 12px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 3px;
}

.portfolio-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.portfolio-card-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.portfolio-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  transition: gap var(--duration) var(--ease-out);
}

.portfolio-card:hover .portfolio-card-link {
  gap: 10px;
}

.portfolio-card-link svg {
  transition: transform var(--duration) var(--ease-out);
}

.portfolio-card:hover .portfolio-card-link svg {
  transform: translateX(3px);
}

/* Portfolio Hero */
.portfolio-hero-image-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.portfolio-hero-image {
  width: 100%;
  transition: transform 0.5s var(--ease-out);
}

.portfolio-hero-image:hover {
  transform: scale(1.02);
}

/* Project Cards */
.project-card {
  transition: all var(--duration) var(--ease-out);
  border: none;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

.card-img-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.location {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.view-details-btn {
  width: 100%;
  border: 1px solid var(--secondary);
  background-color: transparent;
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: all var(--duration) var(--ease-out);
}

.view-details-btn:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--black);
}


/* ===========================================
   18. PROJECT MODAL
   =========================================== */
.modal-xl .modal-content {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-xl);
}

.modal-dialog.modal-xl {
  max-width: 912px !important;
  margin: 1.75rem auto;
}

.modal-header.bg-primary {
  background-color: var(--primary) !important;
  padding: 1rem 1.5rem;
  border-bottom: 3px solid var(--secondary);
}

.modal-header .modal-title {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

.project-image-wrapper {
  height: 400px;
  overflow: hidden;
  position: relative;
}

.project-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  z-index: 1;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.project-image:hover {
  transform: scale(1.03);
}

.project-location-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.project-details {
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
}

.project-details-title {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.project-details-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background-color: var(--secondary);
}

.project-description {
  line-height: 1.7;
  color: var(--text-secondary);
}

.features-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.project-features-list {
  list-style-type: none;
  padding-left: 0;
}

.project-features-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  transition: transform 0.2s var(--ease-out);
}

.project-features-list li:hover {
  transform: translateX(3px);
}

.feature-icon {
  color: var(--secondary);
  min-width: 14px;
  font-size: 0.7rem;
  margin-top: 5px;
}

.project-info-card,
.project-cta-card {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.info-card-title,
.cta-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.info-card-title:after,
.cta-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background-color: var(--secondary);
}

.info-item {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.info-label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.info-value {
  font-size: 0.95rem;
}

.cta-text {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.contact-btn {
  background-color: var(--secondary);
  color: var(--black);
  border: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: all var(--duration) var(--ease-out);
  border-radius: var(--radius-full);
}

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


/* ===========================================
   19. CONTACT PAGE
   =========================================== */
.contact-section {
  padding: var(--section-py) 0;
}

.contact-info-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
  border: none;
}

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

.form-control {
  font-family: var(--font-body);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: all var(--duration) var(--ease-out);
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(115, 115, 113, 0.15);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.map-container {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}


/* ===========================================
   20. GALLERY
   =========================================== */
.gallery-card {
  transition: all var(--duration) var(--ease-out);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.gallery-img {
  height: 250px;
  object-fit: cover;
  cursor: pointer;
}

#imageModal .modal-content {
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
}

#imageModal .modal-header {
  border-bottom: none;
}

#modalImage {
  max-height: 80vh;
}


/* ===========================================
   21. SERVICE PAGES
   =========================================== */
.service-section {
  padding: var(--section-py) 0;
}

.service-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration) var(--ease-out);
  height: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
}

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

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

.service-features {
  margin-top: 1.25rem;
}

.service-features li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
}

.service-features li i {
  color: var(--accent);
  margin-right: 0.75rem;
  font-size: 0.9rem;
}

/* Simple service icons (used in service sub-pages) */
.service-icon-simple {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transition: all 0.4s var(--ease-out);
  margin: 0 auto;
  border: 3px solid var(--white);
}

.service-icon-simple svg {
  width: 36px;
  height: 36px;
  display: block;
}

.service-icon-simple:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Industry Cards (Drone Services) */
.industry-card {
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease-out);
  border: 1px solid var(--border-color);
}

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

.industry-icon {
  width: 64px;
  height: 64px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease-out);
  border: 3px solid var(--white);
}

.industry-icon svg {
  width: 32px;
  height: 32px;
}

.industry-card:hover .industry-icon {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.industry-card h3 {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* Sector Cards — reuses link-card pattern, no custom styles needed */

/* Service List */
.service-list {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-list li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Check List Items */
.list-check-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(40, 167, 69, 0.12);
  margin-right: 0.75rem;
  margin-top: 2px;
}

.check-icon i {
  font-size: 0.7rem;
  color: #28a745;
}

.list-check-text {
  flex: 1;
  font-size: 0.95rem;
}


/* ===========================================
   22. FAQ ACCORDION
   =========================================== */
.accordion-button {
  background-color: var(--black) !important;
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: none !important;
  border: none;
}

.accordion-button:not(.collapsed) {
  background-color: var(--black) !important;
  color: var(--secondary) !important;
}

.accordion-button:focus {
  box-shadow: none !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1) sepia(1) saturate(10) hue-rotate(40deg);
}

.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
}

.accordion-body {
  background-color: var(--bg-subtle);
  padding: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ===========================================
   23. TEAM BIO LAYOUT
   =========================================== */
.team-bios {
  max-width: 1000px;
  margin: 0 auto;
}

.team-bio-row {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.team-bio-row:last-child {
  border-bottom: none;
}

.team-bio-row.reverse {
  flex-direction: row-reverse;
}

.team-bio-photo {
  flex-shrink: 0;
  width: 220px;
}

.team-bio-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.team-bio-content {
  flex: 1;
}

.team-bio-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.team-bio-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-bio-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.team-bio-community {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.team-bio-community h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.team-bio-community p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}


/* ===========================================
   24. UTILITY CLASSES
   =========================================== */
.highlight-text {
  position: relative;
  display: inline-block;
  color: inherit;
  z-index: 1;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: rgba(255, 232, 24, 0.3);
  z-index: -1;
  transition: height var(--duration) var(--ease-out);
}

.highlight-text:hover::after,
.highlight-text.highlight-active::after {
  height: 100%;
}

/* Reveal Animation */
.reveal-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-element.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger > *.active {
  opacity: 1;
  transform: translateY(0);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background-color: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--duration) var(--ease-out);
  z-index: 999;
}

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

.back-to-top:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}


/* ===========================================
   25. RESPONSIVE
   =========================================== */
@media (max-width: 992px) {
  :root {
    --section-py: 4rem;
  }

  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }

  .hero-section {
    height: 70vh;
    max-height: 600px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .project-image-wrapper {
    height: 300px;
  }

  .modal-dialog.modal-xl {
    max-width: 90% !important;
    margin: 1rem auto;
  }

  .page-header {
    padding: 3rem 0 2rem !important;
  }

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

@media (max-width: 768px) {
  :root {
    --section-py: 3.5rem;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }

  .hero-section {
    height: 60vh;
    max-height: 500px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .process-timeline-line {
    display: none;
  }

  .process-step {
    margin-bottom: 2rem;
  }

  .about-image-accent {
    display: none;
  }

  .project-image-wrapper {
    height: 250px;
  }

  .project-sidebar {
    margin-top: 2rem;
  }

  .modal-dialog.modal-xl {
    max-width: 95% !important;
  }

  .page-header {
    padding: 2.5rem 0 1.5rem !important;
  }

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

  .page-header .lead {
    font-size: 1rem;
  }

  .team-bio-row,
  .team-bio-row.reverse {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .team-bio-photo {
    width: 180px;
  }

  .team-bio-photo img {
    height: 220px;
  }

  .team-bio-community {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .pre-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .pre-footer-text {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 65vh;
    max-height: 520px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .project-image-wrapper {
    height: 200px;
  }

  .project-location-badge {
    bottom: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 0.8rem;
  }
}


/* ===========================================
   26. TIMELINE (Story Page)
   =========================================== */
.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), rgba(255, 232, 24, 0.3));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: flex-start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-left {
  flex-direction: row;
}

.timeline-right {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  z-index: 2;
}

.timeline-content {
  width: 42%;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--duration) var(--ease-out);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-left .timeline-content {
  margin-right: auto;
}

.timeline-right .timeline-content {
  margin-left: auto;
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 24px;
  }

  .timeline-item,
  .timeline-left,
  .timeline-right {
    flex-direction: column;
    padding-left: 60px;
  }

  .timeline-marker {
    left: 24px;
    transform: translateX(-50%);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
  }

  .timeline-content {
    width: 100%;
  }

  .timeline-left .timeline-content,
  .timeline-right .timeline-content {
    margin: 0;
    margin-top: 0.5rem;
  }
}


/* ===========================================
   27. VALUES PAGE
   =========================================== */

/* -- Intro Section -- */
.values-intro-section {
  padding: 4rem 0 3rem;
  background-color: var(--black);
  text-align: center;
}

.values-acronym {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.values-acronym-letter {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.02em;
}

.values-acronym-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
  margin: 0 0.25rem;
  align-self: center;
  margin-top: 0.5rem;
}

.values-intro-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--gray-300);
  max-width: 640px;
  margin: 0 auto;
}

/* -- Timeline Section -- */
.values-timeline-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.values-timeline {
  max-width: 720px;
  margin: 0 auto;
}

.values-timeline-item {
  display: flex;
  gap: 2rem;
}

.values-timeline-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 64px;
}

.values-timeline-marker {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(196, 83, 85, 0.3);
}

.values-timeline-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--accent), var(--gray-300));
  min-height: 2rem;
}

.values-timeline-card {
  padding-bottom: 3rem;
  flex: 1;
  padding-top: 0.25rem;
}

.values-timeline-item:last-child .values-timeline-card {
  padding-bottom: 0;
}

.values-timeline-number {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

.values-timeline-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.values-timeline-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* -- Quote Section -- */
.values-quote-section {
  padding: 5rem 0;
  background-color: var(--gray-100);
}

.values-quote {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.values-quote-mark {
  width: 56px;
  height: 56px;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 1.5rem;
}

.values-quote-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--black);
  border: none;
  padding: 0;
  margin: 0 0 2rem;
}

.values-quote-attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.values-quote-line {
  width: 40px;
  height: 2px;
  background-color: var(--accent);
  margin-bottom: 0.25rem;
}

.values-quote-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  letter-spacing: 0.5px;
}

.values-quote-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* -- Explore Section -- */
.values-explore-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.values-explore-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.values-explore-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
  height: 100%;
  position: relative;
}

.values-explore-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.values-explore-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.values-explore-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.values-explore-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.values-explore-arrow {
  font-size: 0.8rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.values-explore-card:hover .values-explore-arrow {
  transform: translateX(4px);
}

/* -- Values Responsive -- */
@media (max-width: 768px) {
  .values-acronym-letter {
    font-size: 2.75rem;
  }
  .values-acronym-dot {
    width: 6px;
    height: 6px;
  }
  .values-intro-text {
    font-size: 1rem;
  }
  .values-timeline-section {
    padding: 3rem 0;
  }
  .values-timeline-item {
    gap: 1.25rem;
  }
  .values-timeline-rail {
    width: 48px;
  }
  .values-timeline-marker {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }
  .values-timeline-card {
    padding-bottom: 2rem;
  }
  .values-timeline-name {
    font-size: 1.35rem;
  }
  .values-timeline-desc {
    font-size: 0.95rem;
  }
  .values-quote-text {
    font-size: 1.2rem;
  }
}


/* ===========================================
   28. RAPID RESPONSE PAGE
   =========================================== */
.rapid-stat-number {
  font-size: 2rem;
}

.rapid-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}


/* ===========================================
   29. COMMUNITY PAGE
   =========================================== */
.community-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

@media (max-width: 576px) {
  .community-avatar {
    width: 100px;
    height: 100px;
  }
}


/* ===========================================
   30. SERVICE INDEX PAGE
   =========================================== */
.service-card-footer {
  padding-bottom: 2rem;
}

.expertise-callout {
  border-top: 1px solid rgba(115, 115, 113, 0.2);
  border-bottom: 1px solid rgba(115, 115, 113, 0.2);
}


/* ===========================================
   31. MOBILE QUALITY — COMPREHENSIVE FIXES
   =========================================== */

/*
 * Fix: AOS horizontal overflow
 * data-aos="fade-left/right" uses translateX(±100px) as the initial off-screen
 * state. On mobile this pushes columns outside the viewport before AOS fires.
 *
 * Strategy:
 * 1. html overflow-x: clip — prevents horizontal scroll at document level
 * 2. section overflow-x: clip — clips at section boundary (no new stacking ctx)
 * 3. Override AOS horizontal transforms → vertical on mobile so no layout shifts
 */
html {
  overflow-x: clip;
}

section {
  overflow-x: clip;
}

/* Convert AOS fade-left/right to fade-up on mobile — keeps animation, kills overflow */
@media (max-width: 991.98px) {
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: translate3d(0, 24px, 0) !important;
    opacity: 0;
  }

  [data-aos="fade-left"].aos-animate,
  [data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1;
  }
}

/* ---- Navbar (< 992px = collapsed hamburger menu) ---- */
@media (max-width: 991.98px) {

  /* Hamburger: was 30×30, must be 44×44 (WCAG 2.5.5 touch target) */
  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile nav links — 44px touch target height */
  .navbar-collapse .navbar-nav .nav-link {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Nav CTA: was 12.8px — bump to 14px (0.875rem) for legibility */
  .btn-nav-cta {
    font-size: 0.875rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}

/* ---- Tablet + mobile (< 768px) ---- */
@media (max-width: 767.98px) {

  /* Pre-header: 11.52px text is unreadable on mobile; hide the strip */
  .pre-header {
    display: none;
  }

  /* Container side padding: Bootstrap default is 12px — increase to 20px */
  .container,
  .container-sm,
  .container-fluid {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  /* Breadcrumb: readable size on tablet/mobile */
  .page-header .breadcrumb-item a,
  .page-header .breadcrumb-item.active {
    font-size: 0.875rem;
  }

  /* Page header: tighten vertical padding */
  .page-header {
    padding: 2rem 0 1.25rem !important;
  }

  .page-header h1 {
    margin-bottom: 0.5rem;
  }

  /* Section spacing: 3.25rem on tablet */
  :root {
    --section-py: 3.25rem;
  }

  /* Process section: each step needs room on mobile */
  .process-step {
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
  }

  /* Stat cards: compact on mobile — always 3-col so less space per card */
  .stat-card {
    padding: 0.875rem 0.5rem;
  }

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

  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }

  /* Pre-footer (above footer) also hidden since pre-header gone */
  /* pre-footer is already handled in section 14 */
}

/* ---- Small mobile (< 576px / iPhone SE and similar) ---- */
@media (max-width: 575.98px) {

  /* Container: generous side padding */
  .container {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  /* Section vertical rhythm — tight but comfortable */
  :root {
    --section-py: 2.75rem;
  }

  /* Page header */
  .page-header {
    padding: 1.75rem 0 1.25rem !important;
  }

  .page-header h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

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

  /* Hero: stack buttons full-width for easy tapping */
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 48px;
  }

  /* Hero h1: was 1.75rem at 576px — keep but ensure it fits */
  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  /* Hero lead: trim for narrow screens */
  .hero-content .lead {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  /* CTA section: stack buttons */
  .cta-section .d-flex {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .cta-section .btn {
    display: block;
    width: 100%;
    text-align: center;
    min-height: 48px;
  }

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

  /* Values acronym: fit 6 letters + dots on narrow screen */
  .values-acronym {
    gap: 0.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .values-acronym-letter {
    font-size: 2.5rem;
  }

  .values-acronym-dot {
    width: 5px;
    height: 5px;
    margin: 0 0.1rem;
  }

  /* Values intro: tighter */
  .values-intro-section {
    padding: 2.5rem 0 2rem;
  }

  /* Team bio: center community section on small phones */
  .team-bio-community {
    text-align: center;
  }

  /* Team bio photo: a bit smaller on very small screens */
  .team-bio-photo {
    width: 150px;
  }

  .team-bio-photo img {
    height: 190px;
  }

  /* Testimonial cards: reduce interior padding */
  .testimonial-card .card-body {
    padding: 1.25rem 1rem;
  }

  /* Service icon: slightly smaller on phones */
  .service-icon {
    width: 68px;
    height: 68px;
  }

  .service-content {
    padding: 42px 16px 20px;
  }

  /* Card body: reduce padding on mobile */
  .card-body {
    padding: 1.5rem;
  }

  /* Link card: reduce padding */
  .link-card {
    padding: 1.5rem;
  }

  /* Consulting service card: reduce padding */
  .consulting-service-card {
    padding: 1.5rem;
  }

  /* Footer: compact on small screens */
  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  /* Back to top: move in from edge on small screens */
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Map container: shorter on mobile */
  .map-container {
    height: 280px;
  }

  /* Modal: nearly full screen on mobile */
  .modal-dialog.modal-xl {
    margin: 0.5rem;
  }

  .modal-xl .modal-content {
    border-radius: var(--radius-md);
  }

  /* Portfolio filter buttons: ensure they wrap cleanly */
  .portfolio-filters {
    gap: 0.25rem;
  }

  .portfolio-filter-btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  /* Contact form: pad bottom for virtual keyboard */
  .contact-section {
    padding-bottom: 2rem;
  }

  /* FAQ tabs: full width on small screens */
  .nav-tabs .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
}
