/* =========================================================
   Veritas & Partners — Lawyers Company
   Global Stylesheet
   Bootstrap 5 + custom design system
   ========================================================= */

/* ----------  Design Tokens  ---------- */
:root {
  --primary: #4ab9e0;
  --secondary: #16103e;
  --accent: #06b6d4;
  --bg: #06b6d4;
  --card: #ffffff;
  --text: #334155;
  --muted: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(22, 16, 62, .06);
  --shadow: 0 12px 30px rgba(22, 16, 62, .08);
  --shadow-lg: 0 24px 60px rgba(22, 16, 62, .14);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --transition: .35s cubic-bezier(.25, .8, .25, 1);
}

/* ----------  Base  ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5, h6, .font-head {
  font-family: var(--font-head);
  color: var(--secondary);
  font-weight: 600;
  line-height: 1.25;
}

a { text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
section { position: relative; }

.text-primary-custom { color: var(--primary) !important; }
.bg-secondary-custom { background: var(--secondary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }

/* ----------  Buttons  ---------- */
.btn {
  font-family: var(--font-head);
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: .7rem 1.8rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-3px); }

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px rgba(6, 182, 212, .35);
}
.btn-primary-custom:hover { color: #fff; box-shadow: 0 16px 32px rgba(6, 182, 212, .45); }

.btn-outline-light-custom {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(8px);
}
.btn-outline-light-custom:hover { background: #fff; color: var(--secondary); }

.btn-ghost {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--secondary); color: #fff; }

/* ----------  Section helpers  ---------- */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--accent);
  margin-bottom: .8rem;
}
.section-divider {
  width: 64px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 1.2rem 0 1.6rem;
}

/* ----------  Navbar  ---------- */
.navbar-custom {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  padding: 1.4rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
  background: transparent;
}
.navbar-custom.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: .7rem 0;
}
.navbar-custom .navbar-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.navbar-custom.scrolled .navbar-brand,
.navbar-custom.scrolled .nav-link { color: var(--secondary); }
.navbar-custom .nav-link {
  color: rgba(255, 255, 255, .9);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  margin: 0 .35rem;
  position: relative;
}
.navbar-custom .nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition), left var(--transition);
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after { width: 100%; left: 0; }
.navbar-custom.scrolled .nav-link:hover,
.navbar-custom.scrolled .nav-link.active { color: var(--accent); }
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active { color: #fff; }

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(6, 182, 212, .4);
}

/* Hamburger */
.navbar-toggler-custom {
  border: none;
  background: rgba(255, 255, 255, .15);
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  cursor: pointer;
}
.navbar-toggler-custom span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  position: relative;
  transition: background var(--transition);
}
.navbar-toggler-custom span::before,
.navbar-toggler-custom span::after {
  content: "";
  position: absolute; left: 0;
  width: 22px; height: 2px;
  background: #fff;
  transition: transform var(--transition);
}
.navbar-toggler-custom span::before { top: -7px; }
.navbar-toggler-custom span::after { top: 7px; }
.navbar-custom.scrolled .navbar-toggler-custom,
.navbar-custom.solid-toggle .navbar-toggler-custom { background: var(--secondary); }
.navbar-custom.solid-toggle .navbar-toggler-custom span,
.navbar-custom.solid-toggle .navbar-toggler-custom span::before,
.navbar-custom.solid-toggle .navbar-toggler-custom span::after { background: #fff; }

/* ----------  Mobile slide-in menu  ---------- */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(82vw, 360px);
  height: 100vh;
  background: var(--secondary);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform var(--transition);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .3);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  color: rgba(255, 255, 255, .85);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
}
.mobile-menu a:hover,
.mobile-menu a.active { background: rgba(255, 255, 255, .08); color: var(--accent); }
.mobile-menu .mm-close {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  background: rgba(255, 255, 255, .1);
  border: none;
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}
.menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 1040;
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.menu-backdrop.show { opacity: 1; visibility: visible; }

/* ----------  Hero  ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #16103e 0%, #1c1850 45%, #0e3a52 100%);
  color: #fff;
  padding-top: 6rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(74, 185, 224, .35), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(6, 182, 212, .25), transparent 40%);
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .5;
  animation: float 8s ease-in-out infinite;
}
.hero-shape.s1 { width: 320px; height: 320px; background: rgba(74, 185, 224, .25); top: -80px; right: -60px; }
.hero-shape.s2 { width: 220px; height: 220px; background: rgba(6, 182, 212, .2); bottom: -60px; left: -40px; animation-delay: 1.5s; }
.hero-shape.s3 { width: 140px; height: 140px; background: rgba(255, 255, 255, .08); top: 40%; left: 45%; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.05); }
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.hero h1 .hl {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { color: rgba(255, 255, 255, .85); font-size: 1.15rem; max-width: 540px; }

.hero-mockup {
  position: relative;
  z-index: 2;
}
.hero-mockup img {
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .4);
}
.hero-mockup::after {
  content: "";
  position: absolute;
  inset: -30px -30px 0 -30px;
  background: linear-gradient(135deg, rgba(74, 185, 224, .3), rgba(6, 182, 212, .15));
  border-radius: var(--radius-lg);
  z-index: -1;
  transform: rotate(-3deg);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stats .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stats .lbl { font-size: .85rem; color: rgba(255, 255, 255, .7); }

.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  z-index: 3;
}
.scroll-indicator .mouse {
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  margin: 0 auto .6rem;
  position: relative;
}
.scroll-indicator .mouse::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollWheel 1.8s infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* ----------  Page banner (interior pages)  ---------- */
.page-banner {
  padding: 10rem 0 4rem;
  background: linear-gradient(135deg, #16103e 0%, #1c1850 60%, #0e3a52 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(74, 185, 224, .3), transparent 40%);
}
.page-banner h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); }
.page-banner .breadcrumb {
  background: transparent;
  justify-content: center;
}
.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
  color: rgba(255, 255, 255, .75);
  font-family: var(--font-head);
  font-size: .9rem;
}
.page-banner .breadcrumb-item.active { color: var(--accent); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .4); }

/* ----------  Cards (generic)  ---------- */
.card-custom {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.card-custom::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.card-custom:hover::before { transform: scaleX(1); }

.icon-badge {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(74, 185, 224, .15), rgba(6, 182, 212, .12));
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.card-custom:hover .icon-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: rotate(-8deg) scale(1.08);
}
.card-custom h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.card-custom p { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }
.card-link {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--accent);
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap var(--transition), color var(--transition);
}
.card-link:hover { color: var(--secondary); gap: .8rem; }

/* ----------  About  ---------- */
.about-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about-img-stack { position: relative; }
.about-exp-badge {
  position: absolute;
  bottom: -30px; right: -10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: 0 20px 40px rgba(6, 182, 212, .35);
  text-align: center;
}
.about-exp-badge .num { font-size: 2.4rem; font-weight: 700; font-family: var(--font-head); line-height: 1; }
.about-exp-badge .lbl { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}
.value-item .v-icon {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(6, 182, 212, .1);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 1.1rem;
}

/* ----------  Counters  ---------- */
.counter-band {
  background: linear-gradient(135deg, var(--secondary), #0e3a52);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.counter-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(74, 185, 224, .2), transparent 40%);
}
.counter-item { text-align: center; }
.counter-item .num {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.counter-item .lbl { color: rgba(255, 255, 255, .75); font-size: .95rem; margin-top: .5rem; }

/* ----------  Gallery  ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1.2rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25, .8, .25, 1);
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22, 16, 62, .75), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item .g-caption {
  position: absolute;
  left: 1.2rem; bottom: 1rem;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  font-family: var(--font-head);
}
.gallery-item .g-caption small { color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.gallery-item:hover .g-caption { opacity: 1; transform: translateY(0); }
.gallery-item .g-zoom {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid; place-items: center;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .g-zoom { opacity: 1; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 8, 30, .92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox .lb-close,
.lightbox .lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: none;
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background var(--transition);
}
.lightbox .lb-close:hover,
.lightbox .lb-nav:hover { background: var(--accent); }
.lightbox .lb-close { top: 1.5rem; right: 1.5rem; }
.lightbox .lb-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ----------  Contact  ---------- */
.contact-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}
.contact-info-item .ci-icon {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(6, 182, 212, .3);
}
.contact-info-item h5 { font-size: 1rem; margin-bottom: .2rem; }
.contact-info-item p { margin: 0; color: var(--muted); font-size: .95rem; }

.form-control-custom {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .85rem 1.1rem;
  font-size: .95rem;
  transition: border var(--transition), box-shadow var(--transition);
}
.form-control-custom:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, .12);
  background: #fff;
}
.form-label-custom {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .85rem;
  color: var(--secondary);
  margin-bottom: .4rem;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
  background: var(--light);
  position: relative;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

/* ----------  Blog  ---------- */
.blog-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-card .blog-thumb { overflow: hidden; }
.blog-card .blog-thumb img { transition: transform .6s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.08); }
.blog-card .blog-body { padding: 1.6rem; }
.blog-card .blog-meta {
  display: flex; gap: 1rem;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .8rem;
}
.blog-card .blog-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.blog-card p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }

.blog-tag {
  display: inline-block;
  background: rgba(6, 182, 212, .12);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 500;
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  margin-bottom: .8rem;
}

/* ----------  CTA band  ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  top: -120px; right: -80px;
}
.cta-band h2 { color: #fff; }

/* ----------  Footer  ---------- */
.footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, .7);
  padding-top: 5rem;
}
.footer h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
}
.footer a { color: rgba(255, 255, 255, .7); }
.footer a:hover { color: var(--accent); }
.footer .footer-brand { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .6rem; font-size: .92rem; }
.footer .footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer .footer-contact i { color: var(--accent); margin-top: .2rem; }
.footer-divider { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; }
.footer-bottom { padding: 1.4rem 0; font-size: .85rem; }

.social-icons { display: flex; gap: .6rem; }
.social-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  display: grid; place-items: center;
  font-size: .95rem;
  transition: background var(--transition), transform var(--transition);
}
.social-icons a:hover { background: var(--accent); transform: translateY(-4px); }

/* ----------  Back to top  ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  display: grid; place-items: center;
  font-size: 1.1rem;
  z-index: 1000;
  box-shadow: 0 12px 24px rgba(6, 182, 212, .4);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ----------  Animations (scroll reveal)  ---------- */
.reveal {
  opacity: 1;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.zoom { transform: scale(.85); }
.reveal.zoom.in { transform: scale(1); }
.reveal.left { transform: translateX(-40px); }
.reveal.left.in { transform: translateX(0); }
.reveal.right { transform: translateX(40px); }
.reveal.right.in { transform: translateX(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

/* Safety net: if JS fails entirely, content still appears after 2.5s.
   The animation only runs on elements that never got .in, because
   .in sets opacity:1 which the animation's forwards keeps. */
@keyframes revealFallback {
  0%, 99% { opacity: 0; }
  100% { opacity: 1; transform: none; }
}
.reveal {
  animation: revealFallback 0.01s 2.5s forwards;
}
.reveal.in {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-shape { animation: none; }
}

/* ----------  Responsive  ---------- */
@media (max-width: 991.98px) {
  .navbar-custom .navbar-collapse { display: none; }
  .navbar-custom .desktop-cta { display: none; }
  .hero { text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-mockup { margin-top: 3rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-exp-badge { right: 50%; transform: translateX(50%); }
}

@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item.wide { grid-column: span 1; }
  .cta-band { padding: 2.2rem 1.5rem; text-align: center; }
  .hero-stats { gap: 1.5rem; }
  .hero-stats .num { font-size: 1.6rem; }
}

@media (max-width: 575.98px) {
  .btn { padding: .65rem 1.4rem; font-size: .9rem; }
}
