/* Nilesh Desai & Co. — Professional light theme */

:root {
  --navy: #0c2340;
  --navy-mid: #153a5c;
  --navy-light: #1e4d73;
  --gold: #c9a227;
  --gold-soft: #e8d5a3;
  --cream: #f8f6f1;
  --cream-dark: #efe9df;
  --sky: #e8f0f7;
  --sky-deep: #d4e4f2;
  --slate: #4a5568;
  --slate-light: #718096;
  --text: #1e293b;
  --white: #ffffff;
  --border: #d8dee8;
  --accent: #2563eb;
  --shadow: 0 4px 24px rgba(12, 35, 64, 0.08);
  --shadow-lg: 0 12px 40px rgba(12, 35, 64, 0.12);
  --max-width: 1140px;
  --font: "DM Sans", "Source Sans 3", system-ui, sans-serif;
  --font-serif: "Libre Baskerville", "Source Serif 4", Georgia, serif;
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(165deg, var(--cream) 0%, var(--sky) 45%, var(--cream-dark) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy);
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.14);
  }
}

@keyframes heroShimmer {
  0%, 100% { transform: translateX(-120%) skewX(-12deg); opacity: 0; }
  45% { opacity: 1; }
  55% { transform: translateX(220%) skewX(-12deg); opacity: 1; }
  70% { opacity: 0; }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Page load: header */
.site-header {
  transform: translateY(-100%);
  opacity: 0;
}

body.is-loaded .site-header {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s ease;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-36px);
}

.reveal-left.is-visible {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(36px);
}

.reveal-right.is-visible {
  transform: translateX(0);
}

.reveal-scale {
  transform: scale(0.94);
}

.reveal-scale.is-visible {
  transform: scale(1);
}

.reveal-fade {
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Staggered children */
.reveal-stagger > .reveal-child,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: 0.47s; }

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

/* Section titles */
.section-title.reveal.is-visible::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  margin-top: 0.65rem;
  border-radius: 2px;
  transform-origin: left;
  animation: lineGrow 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* Header */
.site-header {
  --header-height: 72px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(12, 35, 64, 0.04);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Unified lockup: transparent CA emblem + firm wordmark */
.brand,
.brand-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand:hover,
.brand-lockup:hover {
  color: inherit;
}

.brand-emblem,
.brand-logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.brand-wordmark,
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding-left: 1rem;
  margin-left: 1rem;
  border-left: 3px solid var(--gold);
  min-height: 48px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.1;
  white-space: nowrap;
}

.brand-lockup {
  min-width: 0;
  flex: 1;
}

.brand-tagline {
  font-family: var(--font);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--slate-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .brand-emblem,
  .brand-logo {
    height: 42px;
  }

  .brand-name {
    font-size: 1.125rem;
  }

  .brand-wordmark,
  .brand-text {
    padding-left: 0.75rem;
    margin-left: 0.75rem;
    min-height: 40px;
    border-left-width: 2px;
  }

  .brand-tagline {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--sky);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--navy);
}

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 16px;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  width: 100%;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

/* Hero (home) */
.hero-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-banner__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/heroes/home.jpg") center / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 22s ease-in-out infinite alternate;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(12, 35, 64, 0.82) 0%, rgba(12, 35, 64, 0.68) 50%, rgba(30, 77, 115, 0.58) 100%);
  overflow: hidden;
}

.hero-banner__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 65%
  );
  animation: heroShimmer 9s ease-in-out infinite;
  pointer-events: none;
}

.hero-banner .container,
.hero-banner__content {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-banner h1,
.hero-banner .hero-lead,
.hero-banner .hero-actions,
.hero-animate {
  opacity: 0;
}

body.is-loaded .hero-banner h1 {
  animation: fadeUp 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.is-loaded .hero-banner .hero-lead {
  animation: fadeUp 0.9s 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.is-loaded .hero-banner .hero-actions {
  animation: fadeUp 0.9s 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.hero-banner .hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

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

.hero-banner .btn {
  animation: none;
}

body.is-loaded .hero-banner .btn-primary {
  animation: fadeUp 0.7s 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

body.is-loaded .hero-banner .btn-outline {
  animation: fadeUp 0.7s 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:active {
  transform: scale(0.97);
}

.card,
.sector-card,
.service-card,
.blog-card,
.statement-box,
.team-member {
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.card.reveal.is-visible:hover,
.sector-card.reveal.is-visible:hover,
.service-card.reveal.is-visible:hover,
.blog-card.reveal.is-visible:hover {
  transform: translateY(-5px);
}

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

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* Layout */
main {
  min-height: 50vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.section-subtitle {
  color: var(--slate);
  margin: 0 0 2rem;
  max-width: 36rem;
}

/* Page banner with PDF / site images */
.page-banner,
.page-header {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.page-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroZoom 24s ease-in-out infinite alternate;
}

.page-banner__overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(
    105deg,
    rgba(12, 35, 64, 0.78) 0%,
    rgba(12, 35, 64, 0.62) 45%,
    rgba(30, 77, 115, 0.48) 100%
  );
}

.page-banner__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 65%
  );
  animation: heroShimmer 10s ease-in-out infinite;
  pointer-events: none;
}

body.is-loaded .page-banner__content h1,
body.is-loaded .page-banner__content .page-banner__title {
  animation: fadeUp 0.85s 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

body.is-loaded .page-banner__content p,
body.is-loaded .page-banner__content .blog-card__meta {
  animation: fadeUp 0.85s 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

body.is-loaded .page-banner__content .article-meta {
  animation: fadeUp 0.85s 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

/* Hero banners use child stagger, not parent reveal */
.page-banner__content.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.page-banner__content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.page-banner h1,
.page-header h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.page-banner p,
.page-header p {
  margin: 0.65rem 0 0;
  opacity: 0.92;
  max-width: 40rem;
  font-size: 1.0625rem;
}

.page-banner .blog-card__meta {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--gold-soft);
}

.page-banner .article-meta {
  font-size: 0.9375rem;
  opacity: 0.85;
}

.page-banner--about .page-banner__bg {
  background-image: url("../assets/heroes/about.jpg");
}

.page-banner--services .page-banner__bg {
  background-image: url("../assets/heroes/services.jpg");
}

.page-banner--team .page-banner__bg {
  background-image: url("../assets/heroes/team.jpg");
}

.page-banner--sectors .page-banner__bg {
  background-image: url("../assets/heroes/sectors.jpg");
}

.page-banner--contact .page-banner__bg {
  background-image: url("../assets/heroes/contact.jpg");
}

.page-banner--blogs .page-banner__bg {
  background-image: url("../assets/heroes/blogs.jpg");
}

.page-banner--blog .page-banner__bg:not([style*="background-image"]) {
  background-image: url("../assets/heroes/blogs.jpg");
}

/* Form feedback */
.contact-form-section.is-sending .contact-form-submit {
  opacity: 0.7;
  cursor: wait;
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  display: none;
}

.form-alert.is-visible {
  display: block;
}

.form-alert--success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.form-alert--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  color: var(--navy);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--slate);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 10px;
  object-fit: cover;
}

/* Split section with image */
.split-section {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
  }
}

.split-section__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 4;
  background: var(--cream);
}

.split-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.services-overview {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .services-overview {
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }
}

.services-overview__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream);
}

.services-overview__visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.office-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  margin-left: 0.4rem;
  vertical-align: middle;
  line-height: 1.4;
}

.services-overview__copy p {
  margin: 0 0 1rem;
  color: var(--slate);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.services-overview__note {
  font-size: 0.9375rem !important;
  color: var(--slate-light) !important;
  margin-bottom: 0 !important;
}

/* Services */
.service-block {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.service-block h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--navy);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold-soft);
}

.service-block ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--slate);
}

.service-block li {
  margin-bottom: 0.5rem;
}

/* Team */
.team-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.team-member {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.team-member--row,
.team-member--row-reverse {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .team-member--row {
    grid-template-columns: minmax(200px, 260px) 1fr;
  }

  .team-member--row-reverse .team-member__photo-wrap {
    order: 2;
  }

  .team-member--row-reverse .team-member__content {
    order: 1;
  }

  .team-member--row-reverse {
    grid-template-columns: 1fr minmax(200px, 260px);
  }
}

.team-member__photo-wrap {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #1a1a1a;
  flex-shrink: 0;
}

/* Partner layout — intro text left beside photo; remainder full width below */
.team-member--flow .team-member__photo-wrap {
  margin-top: 4rem;
}

.team-member--photo-left .team-member__photo-wrap {
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .team-member--flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    column-gap: 2rem;
    row-gap: 1.25rem;
    align-items: start;
  }

  .team-member--flow .team-member__photo-wrap {
    grid-column: 2;
    grid-row: 1;
    float: none;
    width: 240px;
    max-width: none;
    margin: 0;
    margin-top: 5rem;
  }

  .team-member--flow .team-member__intro {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .team-member--flow .team-member__rest {
    grid-column: 1 / -1;
  }

  .team-member--photo-left {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .team-member--photo-left .team-member__photo-wrap {
    grid-column: 1;
    margin-top: 2rem;
  }

  .team-member--photo-left .team-member__intro {
    grid-column: 2;
  }
}

.team-member--flow .team-member__rest p:last-child {
  margin-bottom: 0;
}

.team-member__content {
  min-width: 0;
}

.team-member__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-member:hover {
  transform: translateY(-3px);
}

.team-member h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 0.25rem;
}

.team-member .partner-experience {
  font-size: 1rem;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.team-member .partner-experience strong {
  font-size: 1.125rem;
  color: var(--gold);
  font-weight: 700;
}

.partner-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.partner-expertise li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.4);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
}

.team-member__content strong {
  color: var(--navy);
  font-weight: 600;
}

.team-member .role {
  font-size: 0.9375rem;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.team-member .qualifications {
  font-size: 0.875rem;
  color: var(--slate);
  margin: 0 0 1rem;
}

.team-member p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--slate);
}

/* Vision / mission */
.statement-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .statement-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.statement-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.statement-box h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 1rem;
}

.statement-box ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--slate);
}

/* Sectors */
.sectors-intro {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .sectors-intro {
    grid-template-columns: 1.4fr 1fr;
  }
}

.sectors-intro__text p {
  color: var(--slate);
  margin: 0 0 1rem;
}

.sectors-compliance-note {
  font-size: 0.9375rem;
  color: var(--slate-light);
  padding: 1rem 1.25rem;
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.5rem !important;
}

.sectors-intro__stats {
  display: grid;
  gap: 1rem;
}

.sectors-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.sectors-stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.sectors-stat__label {
  display: block;
  font-size: 0.875rem;
  color: var(--slate);
  margin-top: 0.35rem;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.sector-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.sector-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}

.sector-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sector-card__body {
  padding: 1.25rem 1.35rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sector-card__body h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.sector-card__body p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sectors-approach {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .sectors-approach {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact */
.address-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.address-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--navy);
}

.address-block address {
  font-style: normal;
  color: var(--slate);
  line-height: 1.7;
}

.office-timings {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--slate);
  line-height: 1.85;
}

.office-timings li {
  margin: 0;
}

.office-timings strong {
  color: var(--navy);
  font-weight: 600;
  min-width: 6.5rem;
  display: inline-block;
}

.office-timings__note {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--slate);
}

.contact-phone {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-phone a {
  text-decoration: none;
  color: var(--navy);
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.contact-form-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.contact-form-section .section-title {
  margin-bottom: 1.75rem;
}

.contact-form-layout {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .contact-form-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.contact-form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .contact-form-panel {
    padding: 2.5rem;
  }
}

.contact-form-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  height: 100%;
  align-self: stretch;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}

.contact-form-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: none;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 1rem;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.contact-form-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-form-submit {
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
}

.contact-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-intro {
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: -0.75rem 0 1.75rem;
  max-width: 48rem;
}

.form-required {
  color: #b45309;
  font-weight: 700;
}

.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 1rem;
  background: var(--white);
  color: var(--text);
}

.contact-form select:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-consent {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1rem 0.25rem;
  margin: 0.5rem 0 0;
  background: var(--cream);
}

.form-consent legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0 0.25rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 0.875rem;
  cursor: pointer;
}

.form-check input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.form-conditions {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-conditions__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.form-conditions ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.6;
}

.form-conditions li {
  margin-bottom: 0.5rem;
}

.form-conditions li:last-child {
  margin-bottom: 0;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--slate-light);
  margin: 0;
  max-width: 42rem;
}

#form-consent-error.is-visible {
  display: block;
}

#form-consent-error[hidden] {
  display: none;
}

/* Blogs */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
}

.blog-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.blog-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-card h2 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--navy);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--slate);
  margin: 0 0 1rem;
  flex: 1;
}

.blog-card .read-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-top: auto;
}

.blog-card:hover .read-more {
  color: var(--accent);
}

/* Blog article */
.article-layout {
  padding: 3rem 0 4rem;
}

.article-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--slate-light);
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2rem 0 1rem;
}

.article-content h3 {
  font-size: 1.0625rem;
  color: var(--navy-mid);
  margin: 1.5rem 0 0.75rem;
}

.article-content p,
.article-content li {
  color: var(--slate);
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0;
}

.article-table-wrap table {
  min-width: 520px;
}

.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.article-table-wrap table {
  margin: 0;
}

.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: 0.625rem 0.75rem;
  text-align: left;
}

.article-content th {
  background: var(--sky);
  color: var(--navy);
  font-weight: 600;
}

.article-disclaimer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--slate-light);
  font-style: italic;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulseWhatsApp 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes pulseWhatsApp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.7); }
}

.whatsapp-float span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #081828 100%);
  color: #cbd5e0;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.9375rem;
  margin: 0 0 0.75rem;
}

.site-footer p,
.site-footer address {
  margin: 0 0 0.5rem;
  font-style: normal;
  line-height: 1.6;
}

.site-footer a {
  color: var(--gold-soft);
}

.footer-contact {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}

.site-footer .office-badge {
  color: var(--gold-soft);
  border-color: rgba(232, 213, 163, 0.45);
  font-size: 0.5625rem;
  padding: 0.08rem 0.3rem;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* Legacy hero (inner pages) */
.hero {
  padding: 3rem 0 4rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.updates-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--slate);
}

/* ── Mobile & tablet responsive ── */
@media (max-width: 768px) {
  .container {
    padding-left: 1.125rem;
    padding-right: 1.125rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.125rem 1.25rem;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-height, 72px));
    max-height: calc(100dvh - var(--header-height, 72px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
    min-height: 44px;
  }

  .header-inner {
    flex-wrap: nowrap;
    position: relative;
    padding-left: 1.125rem;
    padding-right: 1.125rem;
    gap: 0.75rem;
  }

  .hero-banner {
    min-height: min(420px, 85vh);
  }

  .hero-banner .container,
  .hero-banner__content {
    padding: 2.75rem 1.125rem;
  }

  .hero-banner h1 {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
  }

  .hero-banner .hero-lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-banner .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-banner .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .page-banner,
  .page-header {
    min-height: 240px;
  }

  .page-banner__content {
    padding: 2.25rem 1.125rem;
  }

  .page-banner p,
  .page-header p {
    font-size: 0.9375rem;
  }

  .card-grid,
  .blog-grid,
  .sector-grid,
  .statement-grid,
  .sectors-intro__stats {
    grid-template-columns: 1fr;
  }

  .services-overview {
    padding: 1.5rem;
  }

  .service-block {
    padding: 1.5rem;
  }

  .team-member {
    padding: 1.5rem;
  }

  .team-member--row,
  .team-member--row-reverse {
    grid-template-columns: 1fr;
  }

  .team-member__photo-wrap {
    max-width: 200px;
  }

  .team-member--flow {
    display: block;
  }

  .team-member--flow .team-member__photo-wrap {
    float: none;
    width: 100%;
    max-width: 220px;
    margin: 0 auto 1.5rem;
  }

  .contact-form-panel {
    padding: 1.5rem;
  }

  .form-intro {
    margin-bottom: 1.25rem;
  }

  .form-conditions {
    padding: 1rem 1.125rem;
  }

  .contact-form-visual {
    min-height: 220px;
    order: -1;
  }

  .contact-form-layout {
    grid-template-columns: 1fr;
  }

  .article-layout {
    padding: 2rem 0 3rem;
  }

  .article-content,
  .service-detail-content.article-content {
    padding: 1.5rem 1.125rem;
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius);
  }

  .service-detail-actions {
    flex-direction: column;
  }

  .service-detail-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .blog-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .blog-count {
    width: 100%;
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .blog-filters-wrap {
    width: 100%;
  }

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

  .whatsapp-float {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
    width: 52px;
    height: 52px;
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-name {
    white-space: normal;
    font-size: 1.05rem;
  }

  .brand-wordmark,
  .brand-text {
    padding-left: 0.625rem;
    margin-left: 0.625rem;
  }

  .hero-banner {
    min-height: auto;
  }

  .hero-banner .container,
  .hero-banner__content {
    padding: 2.25rem 1rem;
  }

  .page-banner,
  .page-header {
    min-height: 200px;
  }

  .page-banner__content {
    padding: 1.75rem 1rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .section-subtitle {
    margin-bottom: 1.5rem;
  }

  .card {
    padding: 1.25rem;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .sectors-stat__value {
    font-size: 1.625rem;
  }

  .btn {
    padding: 0.8125rem 1.25rem;
  }

  .office-badge {
    display: block;
    width: fit-content;
    margin-left: 0;
    margin-top: 0.35rem;
  }
}

/* Touch devices: no hover lift (avoids sticky hover states) */
@media (hover: none) {
  .card.reveal.is-visible:hover,
  .sector-card.reveal.is-visible:hover,
  .service-card.reveal.is-visible:hover,
  .blog-card.reveal.is-visible:hover,
  .team-member:hover {
    transform: none;
  }

  .card:hover,
  .sector-card:hover {
    transform: none;
  }
}

.site-footer {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.site-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.split-section__image.reveal.is-visible img {
  animation: fadeIn 1s ease 0.2s both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .site-header {
    transform: none;
    opacity: 1;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-fade,
  .reveal-stagger > *,
  .hero-banner h1,
  .hero-banner .hero-lead,
  .hero-banner .hero-actions,
  .hero-banner .btn,
  .page-banner__content h1,
  .page-banner__content p,
  .site-footer {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

}

