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

:root {
  /* Logo Colors - Sophisticated Corporate Tone */
  --navy: #151b36;
  --navy-light: #202952;
  --green: #115031;
  --green-light: #186f44;
  --orange: #e0631f;
  
  /* Backgrounds & Surfaces */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F1F3F5;
  --surface-white: #FFFFFF;
  
  /* Text */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-inverse: #FFFFFF;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing & Layout */
  --navbar-height: 70px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;
  --max-width: 1320px;
  
  /* Effects - Crisper, more corporate */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 32px rgba(17, 80, 49, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --transition: all 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); margin-bottom: 1rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.text-accent { color: var(--green); }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: var(--spacing-2xl) 0; }
.bg-light { background-color: var(--bg-secondary); border-top: 1px solid rgba(0,0,0,0.03); border-bottom: 1px solid rgba(0,0,0,0.03); }
.bg-navy { background-color: var(--navy); color: var(--text-inverse); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy p { color: var(--text-inverse); }
.bg-navy p { opacity: 0.85; }

.flex-center { display: flex; align-items: center; justify-content: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-xl); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--spacing-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--spacing-lg); }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary { background-color: var(--green); color: var(--text-inverse); }
.btn-primary:hover { background-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary { background-color: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-secondary:hover { background-color: var(--navy); color: var(--text-inverse); }

.btn-orange { background-color: var(--orange); color: var(--text-inverse); }
.btn-orange:hover { background-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Consistent Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 1rem 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  /* overflow: clip removed — it clips position:fixed dropdown on iOS Safari */
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo img { height: 42px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-family: var(--font-body); font-weight: 500; color: var(--navy); font-size: 0.95rem; }
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); position: relative; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px;
  background-color: var(--orange); border-radius: 2px;
}
.nav-links .nav-cta.active::after { display: none; }
.nav-links .nav-cta {
  background-color: var(--navy); color: var(--text-inverse);
  padding: 0.6rem 1.2rem; border-radius: var(--radius-sm);
}
.nav-links .nav-cta:hover { background-color: var(--green); color: var(--text-inverse); }
.menu-toggle { display: none; cursor: pointer; color: var(--navy); }

/* Page Header Spacing (due to fixed navbar) */
.hero, header.section {
  padding-top: 140px; /* Offset for consistent solid navbar */
}

/* Hero Section */
.hero { min-height: 90vh; display: flex; align-items: center; background: var(--bg-primary); padding-bottom: 100px; }

@media (max-width: 768px) {
  .hero { min-height: auto; padding-top: 110px; padding-bottom: 3rem; }
}
.eyebrow {
  display: inline-block; padding: 0.4rem 1rem;
  background: var(--bg-secondary); color: var(--navy);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.5rem;
}
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; }

/* Stats Strip */
.stats-strip {
  background: var(--surface-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex; justify-content: space-between;
  margin-top: 2rem; position: relative; z-index: 10;
  box-shadow: var(--shadow-md);
}
.stat-item { text-align: center; flex: 1; border-right: 1px solid rgba(0,0,0,0.08); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--green); display: block; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-body); }

/* Corporate Cards */
.card {
  background: var(--surface-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(17, 80, 49, 0.15);
}
.card-icon {
  font-size: 2rem; margin-bottom: 1.5rem; display: inline-flex;
  padding: 0.75rem; background: var(--bg-secondary);
  border-radius: var(--radius-sm); color: var(--navy);
  border: 1px solid rgba(0,0,0,0.04);
}
.card-number {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: rgba(0,0,0,0.04); line-height: 1;
}

.tag {
  display: inline-block; padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem;
}
.tag.tag-orange { background: rgba(224, 99, 31, 0.1); color: var(--orange); }
.tag.tag-green { background: rgba(17, 80, 49, 0.1); color: var(--green); }
.tag.tag-navy { background: rgba(21, 27, 54, 0.1); color: var(--navy); }

/* Image Masks */
.img-mask {
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-md); position: relative;
}
.img-mask img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.footer { background: var(--navy); color: var(--text-inverse); padding: var(--spacing-xl) 0 2rem; border-top: 4px solid var(--green); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 3rem; margin-bottom: 4rem; }
.footer-logo { height: 50px; margin-bottom: 1.5rem; filter: brightness(0) invert(1); }
.footer p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer h4 { color: var(--text-inverse); margin-bottom: 1.5rem; font-size: 1.15rem; font-family: var(--font-heading); }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Marquee / Happy Customers */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  padding: 2rem 0;
  background: var(--bg-primary);
  border-top: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.marquee-wrapper::before, .marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0; width: 150px; height: 100%;
  z-index: 2;
}

.marquee-wrapper::before {
  left: 0; background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-wrapper::after {
  right: 0; background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-content {
  display: inline-block;
  animation: scroll-left 30s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(100%);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.marquee-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Assumes content is duplicated once */
}

/* Testimonials */
.testimonial-card {
  background: var(--bg-primary);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.testimonial-stars {
  color: #F59E0B;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.2rem;
}

.testimonial-quote {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-weight: 700;
}

.testimonial-name { font-weight: 600; color: var(--navy); font-size: 1rem; margin-bottom: 0.2rem; }
.testimonial-role { font-size: 0.85rem; color: var(--text-secondary); }

/* Case Studies / Transformations */
.transformation-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}

.transformation-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 300px;
}

.transformation-img {
  position: relative;
  overflow: hidden;
}

.transformation-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition);
}

.transformation-label {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(255,255,255,0.9);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.transformation-content {
  padding: 2rem;
}

/* Certifications Badge */
.cert-badge {
  display: inline-flex; flex-direction: column; align-items: center;
  text-align: center; padding: 1.5rem;
  background: var(--surface-white); border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.cert-badge i { color: var(--green); margin-bottom: 0.5rem; }
.cert-badge-title { font-weight: 700; font-family: var(--font-heading); color: var(--navy); font-size: 1.1rem; }
.cert-badge-sub { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

/* Gallery Masonry */
.gallery-grid {
  display: block;
  column-count: 3;
  column-gap: var(--spacing-md);
}
@media (max-width: 992px) { .gallery-grid { column-count: 2; } }
@media (max-width: 768px) { .gallery-grid { column-count: 1; } }

.gallery-item { break-inside: avoid; margin-bottom: var(--spacing-md); position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21,27,54,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-title {
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-title {
  transform: translateY(0);
}

/* Transformations Card (What to What) */
.t-card { display: flex; flex-direction: column; background: var(--surface-white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
}
.t-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.t-card-imgs {
  display: flex;
  height: 250px;
  position: relative;
}
.t-card-img {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.t-card-img::after {
  content: attr(data-label);
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(255,255,255,0.9);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  color: var(--navy);
}
.t-card-img.before::after { background: rgba(0,0,0,0.7); color: white; }
.t-card-img img { width: 100%; height: 100%; object-fit: cover; }
.t-card-arrow {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-md);
}
.t-card-content { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.t-card-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.t-card-desc { font-size: 0.95rem; margin-bottom: 1.5rem; flex: 1; }

/* Blog Detail Page (Transformation Detail) */
.blog-header {
  padding-top: 180px;
  padding-bottom: 4rem;
  background: var(--bg-secondary);
  text-align: center;
}
.blog-hero-img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: -3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}
.blog-content {
  max-width: 800px;
  margin: 4rem auto;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.blog-content h2, .blog-content h3 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--navy);
}
.blog-content blockquote {
  border-left: 4px solid var(--orange);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-size: 1.3rem;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--navy);
}
.blog-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin: 3rem 0;
  background: var(--surface-white); padding: 2rem;
  border-radius: var(--radius-lg); border: 1px solid rgba(0,0,0,0.06);
}
.blog-stat { text-align: center; }
.blog-stat-val { font-size: 2rem; font-family: var(--font-heading); font-weight: 700; color: var(--green); }
.blog-stat-lbl { font-size: 0.8rem; text-transform: uppercase; font-weight: 600; }

/* Testimonial Marquee */
.t-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 2rem 0;
}
.t-marquee-wrapper::before, .t-marquee-wrapper::after {
  content: ""; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2;
}
.t-marquee-wrapper::before { left: 0; background: linear-gradient(to right, #F8FAFC, transparent); }
.t-marquee-wrapper::after { right: 0; background: linear-gradient(to left, #F8FAFC, transparent); }

.t-marquee-content {
  display: flex;
  width: max-content;
  animation: scroll-left-t 80s linear infinite;
}
.t-marquee-wrapper:hover .t-marquee-content {
  animation-play-state: paused;
}
.t-marquee-track {
  display: flex;
  gap: 2rem;
  padding-right: 2rem;
}
.t-marquee-card {
  width: 450px;
  background: var(--surface-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  white-space: normal;
  flex-shrink: 0;
  transition: var(--transition);
}
.t-marquee-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

@keyframes scroll-left-t {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* FAB Overlay */
.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}
.fab-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  position: relative;
}
.fab-btn:hover {
  transform: scale(1.1);
  color: white;
}
.fab-whatsapp {
  background: #25D366;
}
.fab-whatsapp:hover {
  background: #1ebe57;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.fab-contact {
  background: var(--orange);
}
.fab-contact:hover {
  background: #d85c18;
  box-shadow: 0 6px 20px rgba(234, 111, 36, 0.4);
}
.fab-tooltip {
  position: absolute;
  right: 80px;
  background: var(--navy);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}
.fab-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--navy);
}
.fab-btn:hover .fab-tooltip {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(0,0,0,0.1);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  width: 100%;
}
.timeline-item.reverse {
  flex-direction: row-reverse;
}
.timeline-content {
  width: 45%;
}
.timeline-content.left {
  text-align: right;
  padding-right: 2rem;
}
.timeline-content.right {
  text-align: left;
  padding-left: 2rem;
}
.timeline-marker {
  width: 40px;
  height: 40px;
  border: 4px solid white;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.timeline-spacer {
  width: 45%;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
    transform: none;
  }
  .timeline-item, .timeline-item.reverse {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-content {
    width: 100%;
    padding-left: 60px !important;
    padding-right: 0 !important;
    text-align: left !important;
    margin-top: -30px;
  }
  .timeline-marker {
    margin-left: 0;
    position: relative;
    left: 0;
  }
  .timeline-spacer {
    display: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-strip { flex-wrap: wrap; gap: 2rem; }
  .stat-item { flex: 1 1 40%; border: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    gap: 0;
    z-index: 999;           /* above everything on mobile */
    border-top: 2px solid rgba(0,0,0,0.04);
    box-sizing: border-box;
    /* Hidden state — not just clipped but truly inert */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .nav-links li { border-bottom: 1px solid rgba(0,0,0,0.05); }
  .nav-links li:last-child { border-bottom: none; margin-top: 0.5rem; }
  .nav-links a { display: block; padding: 0.85rem 0; font-size: 1rem; }
  .nav-links .nav-cta { text-align: center; border-radius: var(--radius-sm); }
  .nav-links.mobile-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
  }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip { flex-direction: column; padding: 2rem; }
  .stat-item { flex: 1 1 100%; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
  .stat-item:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
  /* Reset translateY stagger offsets on mobile — looks wrong in single-column */
  .grid-stagger .card[style*="translateY"] { transform: none !important; }
  /* Ensure hero visual image doesn't overflow */
  .hero-visual { margin-top: 2rem; }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 35, 65, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.branded-modal {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  transform: translateY(40px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  border-top: 6px solid var(--orange);
}
.modal-overlay.active .branded-modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0,0,0,0.05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.modal-close:hover {
  background: var(--orange);
  color: white;
  transform: rotate(90deg);
}
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(28, 35, 65, 0.03);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--orange);
  background: white;
  box-shadow: 0 0 0 4px rgba(234,111,36,0.1);
}
.branded-modal { max-height: 95vh; overflow-y: auto; }

/* === ULTRA RESPONSIVE TWEAKS === */
@media (max-width: 768px) {
  /* Modal Mobile Fixes */
  .branded-modal {
    padding: 1.5rem 1.2rem !important;
    width: 95% !important;
    max-height: 98vh !important;
  }
  .modal-close {
    top: 0.5rem !important;
    right: 0.5rem !important;
    width: 32px !important; 
    height: 32px !important;
  }
  .branded-modal h3 {
    font-size: 1.5rem !important;
  }
  .branded-modal img {
    height: 30px !important;
  }
  .branded-modal .form-group input, 
  .branded-modal .form-group textarea {
    padding: 0.8rem !important;
    font-size: 0.95rem !important;
  }
  .captcha-group {
    padding: 0.5rem !important;
  }
  
  /* Global Page Layout Fixes (Overrides inline styles) */
  .grid-2 {
    gap: 2rem !important;
  }
  header.section h1 {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
  }
  header.section {
    padding-top: 100px !important;
    padding-bottom: 2rem !important;
  }
  .card {
    padding: 1.5rem !important;
  }
  
  /* Typography Scaling */
  h2 { font-size: 1.8rem !important; }
  h3 { font-size: 1.4rem !important; }
  p { font-size: 0.95rem !important; }
  
  /* Floating Action Buttons (FAB) Mobile Optimization */
  .fab-container {
    bottom: 1rem !important;
    right: 1rem !important;
    gap: 0.8rem !important;
  }
  .fab-btn {
    width: 50px !important;
    height: 50px !important;
  }
  .fab-btn i {
    width: 20px !important;
    height: 20px !important;
  }
  .fab-tooltip {
    display: none !important; /* Hide hover tooltips on touch devices */
  }
  
  /* Navbar */
  .nav-logo img {
    height: 32px !important;
  }
}

@media (max-width: 480px) {
  /* Ultra-small phones */
  header.section h1 {
    font-size: 2.2rem !important;
  }
  .branded-modal {
    padding: 1.2rem 1rem !important;
  }
  .form-group {
    margin-bottom: 0.6rem !important;
  }
}
/* Lightbox Modal */
.lightbox-modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.95); z-index: 99999;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox-modal.active { opacity: 1; pointer-events: all; }
.lightbox-img { 
  max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); 
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); object-fit: contain;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.1); color: white; border: none;
  width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
  cursor: pointer; transition: all 0.3s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--orange); transform: scale(1.1); }
.lightbox-close { top: 2rem; right: 2rem; }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

@media (max-width: 768px) {
  .lightbox-prev { left: 1rem; width: 40px; height: 40px; }
  .lightbox-next { right: 1rem; width: 40px; height: 40px; }
  .lightbox-close { top: 1rem; right: 1rem; width: 40px; height: 40px; }
  .lightbox-img { max-width: 95vw; }
}

/* Transformation Detail Redesign */
.detail-hero { position: relative; height: 70vh; min-height: 500px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: 0; }
.detail-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(28,35,65,0.8), rgba(28,35,65,0.3)); z-index: 1; }
.detail-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform: scale(1.05); }
.detail-hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: 0 1rem; color: white; margin-top: 60px; }
.detail-hero-content h1 { font-size: 4rem; color: white; text-shadow: 0 4px 20px rgba(0,0,0,0.5); margin-bottom: 1rem; }
.detail-hero-content p { font-size: 1.35rem; color: rgba(255,255,255,0.9); }

.detail-content-wrap { max-width: 900px; margin: -5rem auto 4rem auto; background: var(--surface-white); padding: 4rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); position: relative; z-index: 10; font-size: 1.15rem; line-height: 1.8; color: var(--text-secondary); }
.detail-content-wrap h2 { margin-top: 3rem; margin-bottom: 1rem; color: var(--navy); }
.detail-content-wrap blockquote { border-left: 4px solid var(--orange); padding-left: 1.5rem; margin: 2.5rem 0; font-size: 1.3rem; font-family: var(--font-heading); font-style: italic; color: var(--navy); }

.flex-stack-mobile { display: flex; gap: 1.5rem; }
.flex-stack-mobile img { flex: 1; border-radius: var(--radius-sm); object-fit: cover; max-height: 400px; width: 100%; }

@media (max-width: 768px) {
  .flex-stack-mobile { flex-direction: column; }
  .blog-stats-grid { grid-template-columns: 1fr !important; }
  .detail-content-wrap { padding: 2rem; margin-top: -2rem; }
  .detail-hero { height: 60vh; }
  .detail-hero-content h1 { font-size: 2.5rem !important; }
  .detail-hero-content p { font-size: 1.1rem !important; }
}

/* Footer bottom links hover (replaces inline onmouseover) */
.footer-bottom-link {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-bottom-link:hover { color: var(--orange); }

/* CTA section large heading — clamp for mobile */
#cta h2 { font-size: clamp(2rem, 6vw, 3.5rem) !important; }

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .navbar, .fab-container, .modal-overlay, .lightbox-modal,
  .hero-actions, .t-marquee-wrapper { display: none !important; }
  body { font-size: 12pt; color: #000; background: white; }
  .container { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: underline; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  .section { padding: 1.5rem 0; }
}

/* ==========================================
   FOCUS / ACCESSIBILITY
   ========================================== */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* Skip to content link (hidden by default, visible on focus) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--orange);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }