/* ==========================================================================
   Suffix E Solutions - Modern Standalone Frontend Design System
   Redesigning the website with clean HTML5/CSS3/Vanilla JS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  --primary: #1E3A8A;
  --primary-dark: #0F172A;
  --primary-light: #2563EB;
  --accent-gold: #F59E0B;
  --accent-gold-hover: #D97706;
  --accent-yellow: #EAB308;
  
  --dark-slate: #0F172A;
  --dark-card: #1E293B;
  --dark-border: #334155;
  
  --light-bg: #F8FAFC;
  --light-card: #FFFFFF;
  --light-border: #E2E8F0;
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
  --shadow-glow: none;
  
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.25s ease-in-out;
  --transition-slow: 0.4s ease-in-out;
}

/* --- Global Reset & Base Styles --- */
*, *::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(--text-main);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

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

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* --- Utility Typography & UI Category Labels --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: rgba(30, 58, 138, 0.08);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(30, 58, 138, 0.12);
}

.section-tag.gold {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
  border-color: rgba(245, 158, 11, 0.25);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 2.25rem;
  line-height: 1.55;
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: #1E293B;
  border-color: #1E293B;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #0F172A;
  font-weight: 700;
  border-color: var(--accent-gold);
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  color: var(--text-white);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(30, 58, 138, 0.04);
}

.btn-white {
  background: var(--text-white);
  color: var(--primary);
  font-weight: 600;
  border-color: var(--light-border);
}

.btn-white:hover {
  background: #F1F5F9;
  color: var(--primary-dark);
}

/* --- Top Utility Bar --- */
.top-bar {
  background-color: var(--dark-slate);
  color: var(--text-light);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-item i {
  color: var(--accent-gold);
}

.top-bar-phone {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  transition: all var(--transition-fast);
}

.top-bar-phone:hover {
  background: var(--accent-gold);
  color: var(--dark-slate);
}

/* --- Header & Sticky Navigation --- */
.main-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--light-border);
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

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

.brand-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Hero Carousel Section --- */
.hero-section {
  position: relative;
  background-color: var(--dark-slate);
  color: var(--text-white);
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  background-size: cover;
  background-position: center right;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Localized left-to-right gradient overlay for text readability */
.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.88) 45%, rgba(15, 23, 42, 0.55) 75%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  padding: 3.5rem 0;
}

.hero-slide-content {
  max-width: 740px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}

.hero-title span {
  color: #FFFFFF;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: #F1F5F9;
  margin-bottom: 1.75rem;
  line-height: 1.6;
  max-width: 660px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.hero-dot.active {
  background: var(--accent-gold);
  width: 24px;
  border-radius: var(--radius-sm);
}
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.6rem;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.hero-dot.active {
  background: var(--accent-gold);
  width: 32px;
  border-radius: var(--radius-full);
}

/* --- Section 3: Unique Features & Quick Quote Split --- */
.split-section {
  background: var(--dark-slate);
  color: var(--text-white);
  padding: 4.5rem 0;
  position: relative;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.features-col h2 {
  color: var(--text-white);
  font-size: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.features-col p.lead {
  color: #94A3B8;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 158, 11, 0.3);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(30, 58, 138, 0.6);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-info h4 {
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.feature-info p {
  color: #94A3B8;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Quick Quote Form Card */
.quote-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.quote-card h3 {
  color: var(--text-white);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.quote-card p {
  color: #94A3B8;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: #0F172A;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  outline: none;
  font-size: 0.92rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Google reCAPTCHA responsive handling */
.g-recaptcha {
  display: inline-block;
}

@media (max-width: 360px) {
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
  }
}

/* --- Section 4: Blog Excerpt & FAQ Accordion Split --- */
.faq-blog-section {
  padding: 5rem 0;
  background: var(--light-bg);
}

.faq-blog-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: stretch;
}

.blog-col,
.faq-col {
  display: flex;
  flex-direction: column;
}

/* Prevent badge pills from stretching to full column width */
.blog-col > div:first-child,
.faq-col > div:first-child {
  align-self: flex-start;
}

/* FAQ accordion fills remaining vertical space */
.faq-col .accordion {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* Blog Preview Card */
.blog-card {
  background: var(--light-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-border);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-img-wrapper img {
  transform: scale(1.04);
}

.blog-date-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--dark-slate);
  color: var(--text-white);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
}

.blog-date-badge span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent-gold);
}

.blog-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  line-height: 1.35;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-title {
  color: var(--primary);
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.35rem;
  line-height: 1.55;
  flex-grow: 1;
}

/* FAQ Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.accordion-item {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  padding: 1.1rem 1.35rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--light-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: var(--text-white);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.accordion-content {
  padding: 0 1.35rem 1.35rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Section 5: Core Services Grid ("What More We Offer") --- */
.services-section {
  padding: 4.5rem 0;
  background: #FFFFFF;
}

/* --- Section 5: Editorial Services Presentation --- */
.services-section {
  padding: 4.5rem 0;
  background: #FFFFFF;
}

.featured-service-box {
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
}

.featured-service-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-height: 280px;
}

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

.featured-service-content h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.featured-service-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.featured-service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.featured-service-list div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.featured-service-list i {
  color: var(--accent-gold);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--light-border);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal);
}

.service-card:hover {
  border-color: var(--primary);
}

.service-card-header {
  position: relative;
  z-index: 2;
  text-align: left;
}

.service-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(30, 58, 138, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card-header h3 {
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.service-card-footer {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
  text-align: left;
}

/* --- Section 6: Credibility Counter & Portfolio Grid --- */
.stats-banner {
  background: var(--dark-slate);
  color: var(--text-white);
  padding: 3.5rem 0;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

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

.stat-item {
  padding: 0 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item h3 {
  font-size: 2.6rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.92rem;
  color: #CBD5E1;
  font-weight: 500;
}

.portfolio-section {
  padding: 4.5rem 0;
  background: var(--light-bg);
}

.portfolio-asymmetric-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  text-align: left;
}

.portfolio-spotlight {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--dark-slate);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.portfolio-spotlight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.portfolio-spotlight-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 70%, rgba(15, 23, 42, 0) 100%);
  color: #FFF;
}

.portfolio-side-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--light-card);
  aspect-ratio: 4 / 3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.2) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  transition: opacity var(--transition-normal);
}

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

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

.portfolio-title {
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.portfolio-cat {
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 600;
}

/* --- Section 7: Executive Testimonial Presentation --- */
.testimonials-section {
  padding: 5rem 0;
  background: #FFFFFF;
}

.executive-testimonial {
  max-width: 900px;
  margin: 0 auto;
  background: var(--light-bg);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 2.5rem 3rem;
  text-align: left;
  border-top: 1px solid var(--light-border);
  border-right: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
}

.executive-quote {
  font-size: 1.2rem;
  color: var(--text-main);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.executive-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.executive-author h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.executive-author span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- Section 8: Partner Logos & Featured Clients Marquee --- */
.partners-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.partners-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1.25rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.partner-marquee-track {
  display: flex;
  gap: 2.25rem;
  padding-right: 2.25rem; /* equals the gap, so -50% lands exactly on the second set (no jump at the loop seam) */
  align-items: center;
  width: max-content;
  animation: partnerMarqueeScroll 203s linear infinite; /* scales with card count (35 per loop) so the strip keeps the same speed */
  will-change: transform;
}

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

.partner-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 128px;
  min-width: 300px;
  padding: 1.1rem 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
}

.partner-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.14);
  border-color: #93c5fd;
}

.partner-logo {
  height: 78px;
  max-height: 82px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo {
  transform: scale(1.06);
}

/* For logos with white lettering (e.g. Singlespot): brand-blue card instead of white */
.partner-card--blue,
.partner-card--blue:hover {
  background: #0e74af;
  border-color: #0e74af;
}

.logo-shadow {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.16)) !important;
}

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

@media (max-width: 768px) {
  .partners-section {
    padding: 3rem 0;
  }
  .partner-card {
    height: 104px;
    min-width: 240px;
    padding: 0.85rem 1.5rem;
    border-radius: 1rem;
  }
  .partner-logo {
    height: 64px;
    max-height: 66px;
    max-width: 195px;
  }
  .partner-marquee-track {
    gap: 1.5rem;
    padding-right: 1.5rem;
    animation-duration: 147s;
  }
}

/* --- Section 9 & 10: Hotline CTA & Newsletter --- */
.cta-support-banner {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-yellow) 100%);
  color: #0F172A;
  padding: 2.5rem 0;
}

.cta-support-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-support-text h3 {
  font-size: 1.85rem;
  color: #0F172A;

}

.cta-support-text p {
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.9;
}

.cta-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #0F172A;
  color: var(--text-white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.cta-phone-btn:hover {
  transform: scale(1.05);
}

/* --- Section 11 & 12: Mega Footer --- */
.footer {
  background-color: var(--dark-slate);
  color: #94A3B8;
  padding-top: 4.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--dark-border);
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.92rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.branch-address {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.branch-address strong {
  color: var(--text-white);
  display: block;
  margin-bottom: 0.2rem;
}

.branch-address a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.branch-address a:hover {
  color: var(--accent-gold);
}

/* Newsletter Form in Footer */
.newsletter-box h4 {
  color: var(--text-white);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.65rem 0.85rem;
  background: #1E293B;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  outline: none;
}

/* Footer Bottom */
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1E293B;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* --- Services Mega Menu (desktop) --- */
.nav-dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-trigger i {
  font-size: 0.65rem;
  transition: transform var(--transition-fast);
}

/* Invisible bridge so the pointer can travel from the link down to the panel */
.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  left: -1.5rem;
  right: -1.5rem;
  top: 100%;
  height: 4.5rem;
  display: none;
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
  display: block;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.open .nav-dropdown-trigger,
.nav-dropdown:has(:focus-visible) .nav-dropdown-trigger {
  color: #2563EB;
}

.nav-dropdown:hover .nav-dropdown-trigger i,
.nav-dropdown.open .nav-dropdown-trigger i,
.nav-dropdown:has(:focus-visible) .nav-dropdown-trigger i {
  transform: rotate(180deg);
}

/* Anchored to the sticky header (the nearest positioned ancestor) */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(1080px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #E2E8F0;
  border-top: 3px solid var(--accent-gold);
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  /* Closing is delayed so the pointer can cross the gap below the link without the panel vanishing */
  transition: opacity 0.2s ease 0.15s, transform 0.2s ease 0.15s, visibility 0s linear 0.35s;
  z-index: 60;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown.open .mega-menu,
.nav-dropdown:has(:focus-visible) .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 1.75rem 1.75rem 1.25rem;
}

.mega-menu-col + .mega-menu-col {
  border-left: 1px solid #F1F5F9;
  padding-left: 1.5rem;
}

.mega-menu-heading {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 0.75rem;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: #334155;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mega-menu-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 0.85rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mega-menu-item:hover,
.mega-menu-item:focus-visible {
  background: #F8FAFC;
  color: #2563EB;
}

.mega-menu-item:hover .mega-menu-icon,
.mega-menu-item:focus-visible .mega-menu-icon {
  background: #2563EB;
  color: #fff;
}

.mega-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.75rem;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
  border-radius: 0 0 1rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748B;
}

.mega-menu-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #2563EB;
  white-space: nowrap;
}

.mega-menu-cta:hover {
  color: #1D4ED8;
}

.mega-menu-cta i {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.mega-menu-cta:hover i {
  transform: translateX(3px);
}

/* --- Services Accordion (mobile drawer) --- */
.mobile-services-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0;
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.mobile-services-toggle i {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.mobile-services-toggle[aria-expanded="true"] {
  color: #2563EB;
}

.mobile-services-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.mobile-services-list {
  margin: 0.25rem 0 0.5rem;
  padding: 0.25rem 0 0.25rem 0.9rem;
  border-left: 2px solid #DBEAFE;
}

.mobile-services-heading {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
}

.mobile-services-heading:first-child {
  margin-top: 0.25rem;
}

.mobile-services-list a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
}

.mobile-services-list a:hover {
  color: #2563EB;
}

@media (min-width: 640px) {
  .mobile-services-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }

  .mobile-services-list[hidden] {
    display: none;
  }

  .mobile-services-heading {
    grid-column: 1 / -1;
  }
}

/* --- Legal Pages (Terms of Service, Privacy Policy) --- */
.legal-toc {
  position: sticky;
  top: 10rem;
  display: flex;
  flex-direction: column;
}

.legal-toc-title {
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
}

.legal-toc a {
  padding: 0.4rem 0.9rem;
  border-left: 2px solid #E2E8F0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748B;
}

.legal-toc a:hover {
  border-left-color: #2563EB;
  color: #2563EB;
}

.legal-content {
  color: #475569;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #F1F5F9;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  scroll-margin-top: 9rem;
}

.legal-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E293B;
}

.legal-content p {
  margin-bottom: 1rem;
}

/* Blog articles reuse .legal-content; the opening paragraph is set larger */
.legal-content .article-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #334155;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content li::marker {
  color: #2563EB;
}

.legal-content strong {
  color: #0F172A;
}

.legal-content a {
  font-weight: 600;
  color: #2563EB;
}

.legal-content a:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: #EFF6FF;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1D4ED8;
}

.legal-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  background: #F8FAFC;
}

.legal-content .legal-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 0.6rem;
  background: #fff;
  font-size: 0.9rem;
  color: #0F172A;
}

.legal-content .legal-contact a:hover {
  border-color: #93C5FD;
  color: #2563EB;
  text-decoration: none;
}

.legal-contact i {
  color: #2563EB;
}

/* --- Form Submission Status (set by SuffixForms in main.js) --- */
.form-status {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.form-status i {
  margin-top: 0.2rem;
}

.form-status--success {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #047857;
}

.form-status--error {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}

/* Spam trap field: kept off-screen for people, still visible to simple bots */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* --- Floating Social Bar --- */
.floating-social {
  position: fixed;
  right: 1rem;
  /* Centred 3/4 down the screen, but never closer than ~1rem to the bottom on short screens */
  top: min(75%, calc(100% - 8.25rem));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 40;
}

.floating-social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-social-btn:hover,
.floating-social-btn:focus-visible {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

.fs-facebook { background: #1877F2; }
.fs-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fs-whatsapp { background: #25D366; }
.fs-phone { background: #1E3A8A; }

@media (max-width: 640px) {
  .floating-social {
    right: 0.5rem;
    gap: 0.5rem;
  }

  .floating-social-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* --- Inner Page Header Banner --- */
.page-header-banner {
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  padding: 4.5rem 0 3.5rem 0;
  position: relative;
}

.page-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: #94A3B8;
}

.breadcrumb a {
  color: var(--accent-yellow);
}

/* Search Modal Overlay */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-box {
  width: 90%;
  max-width: 600px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.search-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  float: right;
}

/* --- Media Queries / Responsive Breakpoints --- */

/* Desktop & Laptop (>= 1024px) */
@media (min-width: 1024px) {
  /* standard grid defaults */
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .split-grid,
  .faq-blog-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .top-bar {
    display: none;
  }

  .navbar {
    height: 70px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: var(--dark-slate);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.25rem;
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    color: var(--text-white);
    font-size: 1.1rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .services-grid,
  .portfolio-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-support-flex {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Responsive career & quote form grid overrides */
  #careerApplicationForm div[style*="grid-template-columns"],
  #fullQuoteForm div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Value Proposition section: stack left col items tighter */
  .faq-blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Stats banner: 2-col on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 1rem;
  }
  .stat-item:last-child,
  .stat-item:nth-child(even) {
    border-bottom: none;
  }
  .stat-item h3 {
    font-size: 2rem;
  }

  /* CTA support banner */
  .cta-support-text h3 {
    font-size: 1.3rem;
  }
  .cta-phone-btn {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
  }

  /* Footer grid on mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Hide portfolio & testimonial nav arrows on mobile */
  #portfolioPrevBtn,
  #portfolioNextBtn,
  #testimonialPrevBtn,
  #testimonialNextBtn {
    display: none !important;
  }

  /* Partners marquee on mobile */
  .partner-card {
    height: 96px;
    min-width: 210px;
    padding: 0.8rem 1.25rem;
  }
  .partner-logo {
    height: 58px;
    max-height: 60px;
    max-width: 175px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
}

/* File Upload Drag & Drop Box Styling */
.file-upload-box {
  border: 2px dashed var(--primary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  background: var(--light-bg);
  transition: all var(--transition-normal);
}

.file-upload-box:hover {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.05);
}

/* ==========================================================================
   Modern Header & Ambient Hero Showcase (Matching test.html)
   ========================================================================== */

.glass-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.pulse-effect {
  animation: pulseGlow 4s infinite ease-in-out;
}

/* Hero Carousel Slide Elements */
.hero-slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.hero-slide-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
}

.hero-dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: #475569;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot-btn:hover {
  background-color: #94a3b8;
}

.hero-dot-btn.active {
  background-color: #3b82f6 !important;
  width: 24px !important;
  border-radius: 9999px !important;
}

/* Ensure images inside aspect ratio container fit correctly */
#heroSliderContainer picture {
  display: block;
  width: 100%;
  height: 100%;
}

#heroSliderContainer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Wide slides without a mobile crop: keep the text on their left side in view on phones */
@media (max-width: 639.98px) {
  #heroSliderContainer img.hero-img-mobile-left {
    object-position: left center;
  }
}

/* Quote Form Input Styling: match textarea box design and eliminate user-agent inset borders */
#quickQuoteForm input[type="text"],
#quickQuoteForm input[type="email"],
#quickQuoteForm textarea {
  border: 1px solid #cbd5e1 !important;
  border-style: solid !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
  box-sizing: border-box;
}

#quickQuoteForm input[type="text"]:focus,
#quickQuoteForm input[type="email"]:focus,
#quickQuoteForm textarea:focus {
  border-color: #2563eb !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(219, 234, 254, 1) !important;
}

/* ==========================================================================
   3D Device Perspective Carousel Showcase (From test.html)
   ========================================================================== */

.carousel-perspective {
  perspective: 1200px;
  -webkit-perspective: 1200px;
}

.shadow-mockup-glow {
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 40px -10px rgba(59, 130, 246, 0.2) !important;
}

.portfolio-slider-stage {
  position: relative;
  width: 100%;
  min-height: 280px;
}

@media (min-width: 640px) {
  .portfolio-slider-stage {
    min-height: 420px;
  }
}

@media (min-width: 768px) {
  .portfolio-slider-stage {
    min-height: 500px;
  }
}

@media (min-width: 1024px) {
  .portfolio-slider-stage {
    min-height: 560px;
  }
}

.portfolio-slide-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  max-width: 820px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, filter 0.5s ease;
  will-change: transform, opacity;
  user-select: none;
}

@media (min-width: 640px) {
  .portfolio-slide-item {
    width: 84%;
  }
}

@media (min-width: 1024px) {
  .portfolio-slide-item {
    width: 70%;
  }
}

/* Center (Active) Slide */
.portfolio-slide-item.is-center {
  transform: translate(-50%, -50%) scale(1) rotateY(0deg);
  z-index: 30;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  filter: blur(0px);
}

.portfolio-slide-item.is-center .portfolio-side-overlay {
  opacity: 0;
}

/* Left Perspective Slide */
.portfolio-slide-item.is-left {
  transform: translate(-94%, -50%) scale(0.84) rotateY(12deg);
  z-index: 20;
  opacity: 0.62;
  pointer-events: auto;
  cursor: pointer;
  filter: blur(0.4px);
}

.portfolio-slide-item.is-left:hover {
  opacity: 0.95;
  transform: translate(-92%, -50%) scale(0.86) rotateY(9deg);
}

/* Right Perspective Slide */
.portfolio-slide-item.is-right {
  transform: translate(-6%, -50%) scale(0.84) rotateY(-12deg);
  z-index: 20;
  opacity: 0.62;
  pointer-events: auto;
  cursor: pointer;
  filter: blur(0.4px);
}

.portfolio-slide-item.is-right:hover {
  opacity: 0.95;
  transform: translate(-8%, -50%) scale(0.86) rotateY(-9deg);
}

/* Hidden Slides */
.portfolio-slide-item.is-hidden-left {
  transform: translate(-140%, -50%) scale(0.7) rotateY(20deg);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.portfolio-slide-item.is-hidden-right {
  transform: translate(40%, -50%) scale(0.7) rotateY(-20deg);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Mobile responsive handling */
@media (max-width: 767px) {
  .portfolio-slide-item.is-left {
    transform: translate(-140%, -50%) scale(0.75);
    opacity: 0;
    pointer-events: none;
  }
  .portfolio-slide-item.is-right {
    transform: translate(40%, -50%) scale(0.75);
    opacity: 0;
    pointer-events: none;
  }
}





/* Mobile spacing: one consistent, tighter vertical rhythm for all page sections
   (section padding, heading blocks, CTA band, stats band and footer). Desktop is untouched. */
@media (max-width: 639.98px) {
  section[class*="py-"],
  section.faq-blog-section,
  section.testimonials-section,
  section.partners-section,
  section.split-section,
  section.services-section,
  section.portfolio-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  section .mb-10,
  section .mb-12,
  section .mb-14,
  section .mb-16 {
    margin-bottom: 2rem;
  }

  section .mt-10,
  section .mt-12,
  section .mt-16 {
    margin-top: 2rem;
  }

  section .gap-10,
  section .gap-12,
  section .gap-16 {
    gap: 2rem;
  }

  section .py-12.rounded-3xl {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .stats-banner,
  section.cta-support-banner {
    padding: 2rem 0;
  }

  .footer {
    padding-top: 2.5rem;
  }

  .footer-grid {
    padding-bottom: 2rem;
  }

  .legal-content h2 {
    margin-top: 2rem;
    padding-top: 1.25rem;
  }
}
