﻿/* =========================================
   Myfra Estates – Unified Stylesheet (clean)
   ========================================= */

/* ---------- Theme Variables ---------- */
/* ====== Reduce page-jump / layout-shift fixes ====== */

/* 1. Reserve intrinsic size for images if width/height not in HTML */
img {
  display: block;
  max-width: 100%;
  height: auto;
  /* fallback aspect-ratio for images that don't have width/height attributes */
  aspect-ratio: 16 / 9; /* reasonable default; override per-image below */
  object-fit: cover;
}

/* 2. Specific hero/carousel and portrait images — stabilise aspect */
.carousel-slide img,
.carousel-wrap::before { aspect-ratio: 16 / 9; }
.about-hero-card img,
.services-hero-illustration img,
.leader-photo { aspect-ratio: 4 / 5; }

/* 3. Make sure hero/carousel keeps a fixed frame so layout won't jump */
.carousel-wrap { min-height: 320px; /* desktop fallback */ }
@media (min-width: 1100px) {
  .carousel-wrap { min-height: 420px; }
}

/* 4. Reserve vertical space for floating cards / stats that might change */
.about-hero-visual,
.services-hero-card { min-height: 280px; }

/* 5. Prevent layout shifts from fonts by using font-display:swap (in your webfont load).
   If you use @font-face, ensure `font-display: swap` is set. Example (if loading locally):
   @font-face { font-family: 'InterCustom'; src: url(...); font-display: swap; }
*/

/* 6. Smooth scrolling & header offset (modern browsers) */
:root { --header-h: 72px; } /* keep in sync with your header height */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

/* 7. Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* 8. Make carousel/hero painting stable: force GPU compositing on transforms */
.carousel-slide img,
.about-hero-card,
.services-hero-card { will-change: transform, opacity; backface-visibility: hidden; -webkit-font-smoothing:antialiased; }

:root {
  --nav: #0b2430;
  --accent: #0b524d;
  --gold: #c6a667;
  --muted: #6b7280;
  --bg: #f6f1e9;
  --card-bg: #ffffff;
  --shadow-lg: 0 24px 48px rgba(11, 36, 48, 0.12);
  --shadow-md: 0 12px 30px rgba(11, 36, 48, 0.06);
  --radius: 16px;
  --container: 1180px;
  --footer-bg: #082f3d;
  --transition-fast: 0.25s cubic-bezier(.19, 1, .22, 1);
}
/* Smooth scroll + header offset for fragment navigation */
:root {
  --site-header-height: 88px; /* adjust to your real header height */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-header-height);
}

/* Anchor targets avoid hiding under fixed header */
section[id],
main[id],
#enquiry-form,
[id] {
  scroll-margin-top: calc(var(--site-header-height) + 8px);
}

/* ---------- Reset / Base ---------- */

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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--nav);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  padding-top: 72px; /* for fixed header */
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Fix anchor jump with fixed header */
section[id],
main[id],
#enquiry-form {
  scroll-margin-top: 88px; /* header height + a bit */
}

/* Utilities */

.section-pad {
  padding: 32px 0;
}

.small-muted {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background-color 0.18s ease-out,
    color 0.18s ease-out;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(11, 36, 48, 0.28);
}

.btn-ghost {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--nav);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  filter: brightness(1.03);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(246, 241, 233, 0.96);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(11, 36, 48, 0.03);
}

.site-header .container.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

/* Brand */

.site-brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-link img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-link .title {
  font-weight: 700;
  font-size: 1rem;
}

.brand-link .muted {
  color: var(--gold);
  font-weight: 600;
  margin-left: 4px;
}

/* Nav */

nav.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

nav.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  align-items: center;
}

nav.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  color: var(--nav);
}

nav.site-nav a[aria-current="page"] {
  background: rgba(11, 36, 48, 0.08);
  box-shadow: 0 6px 18px rgba(11, 36, 48, 0.04);
}

/* Header actions */

.header-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- Page intro / shared headings ---------- */

.page-intro {
  padding: 32px 0 10px;
}

.page-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-title {
  margin: 0;
  max-width: 780px;
  font-size: 1.5rem;
  line-height: 1.45;
}

.lead,
.page-lead {
  margin: 6px 0 0;
  max-width: 820px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* =========================================
   HOME – Hero & Carousel (clean, no jerk)
   ========================================= */

.hero {
  padding-block: 2.5rem 3rem;
}

.hero-intro {
  max-width: 920px;
  margin: 0 auto 20px;
  text-align: center;
}

.hero-intro h1 {
  font-size: 32px;
  margin: 6px 0 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-intro .hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Carousel frame */

.carousel-wrap {
  position: relative;
  max-width: 1040px;
  margin: 14px auto 28px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 36, 48, 0.18);
  background: #000; /* avoids white flash on load */
}

/* Maintain fixed aspect ratio so layout never jumps */
.carousel-wrap::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

/* Track occupies the frame */
.carousel-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

/* Each slide fills the frame */
.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* Carousel arrows */

.cursor-prev,
.cursor-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(11, 36, 48, 0.28);
  cursor: pointer;
  z-index: 2;
}

.cursor-prev { left: 18px; }
.cursor-next { right: 18px; }

/* Dots */

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}

.carousel-dot.is-active {
  background: #ffffff;
  transform: scale(1.6); /* dot grows, not the row */
  opacity: 1;
}

/* Hero captions */

.hero-caption {
  position: absolute;
  right: 7%;
  bottom: 8%;
  max-width: 380px;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(255, 255, 255, 0.9)
  );
  box-shadow: 0 18px 40px rgba(11, 36, 48, 0.18);
  color: var(--nav);
  transition:
    transform 0.35s ease-out,
    box-shadow 0.35s ease-out,
    background-color 0.35s ease-out;
}

.hero-caption h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.hero-caption p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-caption .caption-actions {
  display: flex;
  gap: 10px;
}

.hero-caption--dark {
  background: linear-gradient(
    180deg,
    rgba(8, 24, 32, 0.94),
    rgba(8, 24, 32, 0.84)
  );
  color: #fff;
}

/* Lift caption on hover */
.carousel-slide:hover .hero-caption {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.35);
}

/* ---------- HOME: Services grid ---------- */

.services-section {
  padding: 24px 0 44px;
}

.services-section h2 {
  text-align: center;
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.services-section > p {
  text-align: center;
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 880px;
  margin-inline: auto;
  font-size: 0.95rem;
}

.services-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  justify-items: center;
}

.service-card {
  width: 100%;
  max-width: 360px;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.22s ease-out,
    box-shadow 0.22s ease-out,
    background-color 0.22s ease-out;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  filter: brightness(1.02);
}

.service-thumb-wrap {
  height: 160px;
  overflow: hidden;
  background: #efe9e2;
}

.service-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.19, 1, .22, 1);
}

.service-card:hover .service-thumb {
  transform: scale(1.08);
}

.service-body {
  flex: 1;
  padding: 18px 18px 20px;
  text-align: center;
}

.service-body h3 {
  margin: 4px 0 6px;
  font-size: 1rem;
}

.service-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- HOME: About teaser ---------- */

.section-divider,
.home-about-divider,
.about-divider {
  width: 100%;
  max-width: 1080px;
  height: 1px;
  margin: 48px auto 24px;
  background: rgba(11, 36, 48, 0.04);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.about-brief {
  width: 100%;
  margin: 0 auto 56px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.about-card-link {
  display: block;
  width: 100%;
  max-width: 1080px;
}

.about-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 40px;
  box-shadow: 0 18px 40px rgba(11, 36, 48, 0.08);
  text-align: center;
  color: #0b2f2f;
}

.about-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.about-card p {
  margin: 0;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
  color: #666f77;
  line-height: 1.55;
}

.about-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(11, 36, 48, 0.06);
  font-size: 14px;
  font-weight: 700;
  color: #083734;
}

/* =========================================
   ABOUT PAGE
   ========================================= */

.about-hero {
  padding-top: 28px;
  padding-bottom: 18px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  position: relative;
}

.about-hero .page-title {
  max-width: 44rem;
}

.about-hero .page-lead {
  margin-top: 0.75rem;
  max-width: 44rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #4b5563;
}

.about-hero .hero-ctas {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about-hero-points {
  margin: 10px 0 14px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: #4b5563;
}

.about-hero-points li + li {
  margin-top: 2px;
}

/* hero visual card */

.about-hero-visual {
  display: flex;
  justify-content: flex-end;
}

.about-hero-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 52px rgba(11, 36, 48, 0.16);
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(.19, 1, .22, 1),
    box-shadow 0.25s ease;
}

.about-hero-card::before {
  content: "";
  position: absolute;
  inset: -30px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.9) 0, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(11, 82, 77, 0.22) 0, transparent 60%);
  opacity: 0.9;
  z-index: -1;
}

.about-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(11, 36, 48, 0.24);
}

.about-hero-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.about-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 12px;
}

.about-hero-tags span {
  font-size: 0.75rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(11, 82, 77, 0.08);
  color: #0b2430;
  font-weight: 600;
}

/* Story + stats */

.about-story {
  padding-top: 10px;
  padding-bottom: 26px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.about-story-main p {
  margin-bottom: 0.9rem;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  gap: 1rem;
}

.stat-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.stat-number {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
}

.stat-label {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

/* Values */

.about-values {
  padding-top: 22px;
  padding-bottom: 26px;
}

.about-values .lead {
  max-width: 44rem;
  margin-bottom: 1.6rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.value-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 16px 36px rgba(11, 36, 48, 0.08);
  overflow: hidden;
  transition:
    transform 0.22s cubic-bezier(.19, 1, .22, 1),
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.value-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px;
  height: 80px;
  background: radial-gradient(circle at 50% 0,
      rgba(11, 82, 77, 0.08) 0,
      transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.value-card::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(11, 82, 77, 0.1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.value-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.value-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(11, 36, 48, 0.14);
}

/* Client types */

.about-client-types {
  padding-top: 26px;
}

.about-client-types .lead {
  max-width: 44rem;
}

.client-types-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.client-type-card {
  position: relative;
  background: #fdfaf5;
  border-radius: 18px;
  padding: 16px 16px 18px 18px;
  box-shadow: 0 14px 30px rgba(11, 36, 48, 0.06);
  overflow: hidden;
  border-left: 4px solid rgba(11, 82, 77, 0.55);
  transition:
    transform 0.22s cubic-bezier(.19, 1, .22, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.client-type-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg,
      rgba(11, 82, 77, 0.15),
      rgba(198, 166, 103, 0.4));
}

.client-type-card h3 {
  margin-top: 6px;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.client-type-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.client-type-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 20px 46px rgba(11, 36, 48, 0.12);
}

/* Leadership */

.about-leadership {
  padding-top: 30px;
  padding-bottom: 40px;
}

.about-leadership .container {
  max-width: 1120px;
}

.about-leadership h2 {
  margin: 0 0 8px;
}

.about-leadership .lead {
  margin: 0 0 20px;
  max-width: 46rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

/* Card shell */
.leader-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(11, 36, 48, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.23s cubic-bezier(.19, 1, .22, 1),
    box-shadow 0.23s ease;
}

.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(11, 36, 48, 0.14);
}

/* Image area – consistent portraits */
.leader-photo-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.leader-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text */
.leader-body {
  padding: 14px 16px 18px;
}

.leader-body h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.leader-title {
  margin: 0 0 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #6b7280;
}

.leader-copy {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.5;
}

.about-leadership-footnote {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #4b5563;
}

/* =========================================
   SERVICES PAGE
   ========================================= */

.services-page {
  background: var(--bg);
}

.services-intro {
  padding: 28px 0 14px;
}

.services-intro-lead {
  margin: 4px 0 16px;
  max-width: 840px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Top service nav pills */

.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.service-nav-pill {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 36, 48, 0.04);
  font-size: 0.88rem;
  font-weight: 600;
  color: #0b2430;
  box-shadow: 0 6px 16px rgba(11, 36, 48, 0.06);
  transition:
    background 0.2s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.service-nav-pill.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(11, 36, 48, 0.24);
  transform: translateY(-1px);
}

.service-nav-pill:hover:not(.is-active) {
  background: rgba(11, 36, 48, 0.08);
}

/* Hero card */

.services-hero {
  padding: 12px 0 26px;
}

.services-hero-card {
  max-width: 1080px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(11, 36, 48, 0.1);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 26px;
  padding: 26px 28px 24px;
  align-items: center;
}

.services-hero-copy h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.services-hero-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.services-hero-copy ul {
  margin: 0 0 14px 18px;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.services-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.services-hero-illustration img {
  display: block;
  width: 100%;
  border-radius: 16px;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(11, 36, 48, 0.12);
}

/* Top bullets under hero */

.services-page .services-intro-bullets {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.services-page .services-intro-bullets li {
  line-height: 1.55;
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
  color: #2a2a2a;
}

/* Workflow */

.services-workflow {
  padding-top: 10px;
  padding-bottom: 40px;
}

.services-workflow h2 {
  margin-bottom: 6px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.workflow-step {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 16px 18px;
  box-shadow: 0 16px 36px rgba(11, 36, 48, 0.08);
}

.workflow-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(11, 82, 77, 0.08);
  color: var(--accent);
  margin-bottom: 8px;
}

/* Shared two-column layout */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  font-size: 0.9rem;
}

.two-col h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.two-col ul {
  margin: 0;
  padding-left: 18px;
}

/* Service bands */

.service-band {
  padding: 18px 0 36px;
}

.service-band-inner {
  max-width: 1080px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(11, 36, 48, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  padding: 26px 28px 26px;
  align-items: center;
}

.service-band-copy h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.service-band-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-band-copy .two-col {
  margin-top: 8px;
}

.service-band-visual img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.service-band--alt .service-band-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
}

.service-band--alt .service-band-visual {
  order: 1;
}

.service-band--alt .service-band-copy {
  order: 2;
}

.legal-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.service-band-ctas {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Mini tags under service images */

.service-mini-tags {
  display: inline-flex;
  gap: 0.5rem;
  background: #f6f9f6;
  padding: 0.6rem 1rem;
  border-radius: 18px;
  margin-top: 0.5rem;
}

.service-mini-tags span {
  background: white;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 12px;
  border: 1px solid #e5ece6;
  color: #2c4c3b;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

/* FAQ */

.faq-section {
  padding: 40px 0 34px;
}

.faq-section h2 {
  margin-bottom: 12px;
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
}

.faq-item + .faq-item {
  margin-top: 8px;
}

.faq-item {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(11, 36, 48, 0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-question-text {
  text-align: left;
  margin-right: 10px;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(11, 36, 48, 0.16);
  font-size: 0.9rem;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.faq-answer {
  padding: 0 16px 12px;
  border-top: 1px solid rgba(11, 36, 48, 0.06);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Services CTA band */

.services-cta-band {
  padding: 40px 0 48px;
  background: transparent;
}

.services-cta-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 22px 26px 20px;
  border-radius: 18px;
  background: #082f3d;
  color: #e5f2f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 22px 50px rgba(11, 36, 48, 0.35);
}

.services-cta-inner h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.services-cta-inner p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 520px;
}

.services-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.services-cta-inner .btn-primary {
  background: #ffffff;
  color: #0b524d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.services-cta-inner .btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* =========================================
   CONTACT PAGE
   ========================================= */

.contact-main {
  padding: 32px 0 40px;
}

.contact-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.contact-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(11, 36, 48, 0.08);
  padding: 22px 22px 24px;
}

.contact-form-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.contact-intro {
  margin: 0 0 16px;
  font-size: 14px;
  color: #4b5563;
}

.contact-form .form-row {
  margin-bottom: 14px;
}

.contact-form .two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font: inherit;
  color: #111827;
  background: #fdfbf8;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(11, 82, 77, 0.25);
  border-color: rgba(11, 82, 77, 0.5);
}

/* Checkbox */

.form-consent .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #4b5563;
}

.form-consent input[type="checkbox"] {
  margin-top: 3px;
}

/* Form actions */

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-note {
  font-size: 12px;
  color: #6b7280;
}

.contact-office-card {
  font-size: 14px;
  color: #4b5563;
}

/* Contact map */

.contact-map {
  padding: 32px 0 40px;
}

.contact-map .container {
  max-width: 1080px;
}

.map-frame {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f5f7;
  box-shadow: 0 18px 44px rgba(11, 36, 48, 0.08);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* Contact CTA strip */

.contact-cta-strip {
  padding: 32px 0 40px;
  background: transparent;
}

.contact-cta-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 22px 26px 20px;
  border-radius: 18px;
  background: #082f3d;
  color: #e5f2f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 22px 50px rgba(11, 36, 48, 0.35);
}

.contact-cta-inner h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.contact-cta-inner p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 520px;
}

.contact-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Success banner on contact page */

.myfra-success-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  background: #eaf2ff;
  border: 1px solid #b8cff6;
  padding: 18px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.msb-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #2a5db8;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(42, 93, 184, 0.15);
  margin-top: 3px;
}

.msb-text strong {
  font-size: 16px;
  color: #1b2f4b;
  display: block;
  margin-bottom: 4px;
}

.msb-text p {
  margin: 0;
  font-size: 14px;
  color: #3d5172;
  line-height: 1.5;
}

.msb-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #4a5f7d;
  cursor: pointer;
  opacity: 0.7;
}

.msb-close:hover {
  opacity: 1;
}

/* fade-out animation (single definition) */
@keyframes fadeOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.myfra-success-banner.fade-out {
  animation: fadeOutUp 0.6s ease forwards;
}

/* ---------- FOOTER ---------- */

.site-footer {
  background: #082f3d;
  color: #e4f0f4;
  margin-top: 56px;
  padding: 32px 0 18px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.footer-col {
  flex: 1 1 0;
  min-width: 220px;
}

.brand-strong {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #d7e9ee;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.footer-bottom .small-muted {
  color: #b5cad3;
  text-align: center;
  font-size: 0.82rem;
}
.footer-social-col {
  min-width: 180px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e4f0f4;
  text-decoration: none;
  opacity: 0.9;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.18s ease,
    border-color 0.2s ease;
}

.social-circle span {
  pointer-events: none;
}

.social-circle:hover,
.social-circle:focus-visible {
  background: #e4f0f4;
  color: #082f3d;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Mobile: footer columns already wrap, social will stack nicely */
@media (max-width: 768px) {
  .footer-social {
    margin-top: 6px;
  }
}
.footer-social {
  margin-top: 14px;
  display: flex;
  gap: 14px;
}

.footer-social a img {
  width: 22px;
  height: 22px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover img {
  opacity: 1;
  transform: scale(1.08);
}

/* =========================================
   Global micro-animations & reveal
   ========================================= */

.value-card,
.client-type-card,
.service-card,
.leader-card,
.contact-card,
.office-card {
  transition:
    transform 0.22s ease-out,
    box-shadow 0.22s ease-out,
    background-color 0.22s ease-out;
}

.value-card:hover,
.client-type-card:hover,
.service-card:hover,
.leader-card:hover,
.contact-card:hover,
.office-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* Reveal-on-scroll */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.45s cubic-bezier(.19, 1, .22, 1),
    transform 0.45s cubic-bezier(.19, 1, .22, 1);
  will-change: opacity, transform;
}

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

.reveal[data-delay="1"] { transition-delay: 0.06s; }
.reveal[data-delay="2"] { transition-delay: 0.12s; }
.reveal[data-delay="3"] { transition-delay: 0.18s; }
.reveal[data-delay="4"] { transition-delay: 0.24s; }

/* =========================================
   Mobile nav toggle
   ========================================= */

.nav-toggle {
  display: none;
  border: none;
  background: #ffffff;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  padding: 0;
  margin-left: 10px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(11, 36, 48, 0.18);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #0b2430;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle span + span {
  margin-top: 4px;
}

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

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

/* =========================================
   Service pill row (home + services hero)
   ========================================= */

.service-pill-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  margin-bottom: 32px;
}

.service-pill {
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.service-pill:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
}

.service-pill.active {
  background: #0d534d;
  color: #fff;
  border-color: #0d534d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* =========================================
   Responsive tweaks
   ========================================= */

@media (max-width: 1100px) {
  .carousel-wrap {
    max-width: var(--container);
  }
}

@media (max-width: 980px) {
  nav.site-nav {
    display: none;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .values-grid,
  .client-types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .services-hero-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-band-inner,
  .service-band--alt .service-band-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-cta-inner,
  .contact-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-hero-visual {
    justify-content: flex-start;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .site-header .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .site-brand {
    margin-bottom: 6px;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .site-nav ul {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .header-actions {
    display: none; /* hide inline buttons on mobile */
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(246, 241, 233, 0.98);
    border-bottom: 1px solid rgba(11, 36, 48, 0.06);
    box-shadow: 0 8px 24px rgba(11, 36, 48, 0.16);
    padding: 8px 20px 12px;
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-nav a {
    display: block;
    padding: 8px 4px;
  }

  /* hero */
  .carousel-slide img {
    height: 260px;
    object-fit: cover;
  }

  .hero-caption {
    max-width: 80%;
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .services-hero-card {
    padding: 20px 16px 18px;
    border-radius: 16px;
  }

  .services-cta-inner,
  .contact-cta-inner {
    padding: 20px 18px;
  }
}

@media (max-width: 700px) {
  .carousel-slide img {
    height: 260px;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .about-card {
    padding: 22px 18px;
  }

  .service-band-inner {
    padding: 18px 16px 20px;
    border-radius: 16px;
  }

  .service-nav {
    gap: 8px;
  }

  .service-nav-pill {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .map-frame iframe {
    height: 260px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 18px;
  }

  .values-grid,
  .client-types-grid,
  .leadership-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .service-card,
  .value-card,
  .client-type-card,
  .leader-card,
  .contact-card,
  .office-card {
    width: 100%;
  }
}
/* ==== Hero carousel: show one .is-active slide at a time ==== */

.carousel-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

/* keep the fixed-height frame from before */
.carousel-wrap::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

/* track just acts as a positioning container */
.carousel-track {
  position: absolute;
  inset: 0;
  display: block;
  transform: none !important; /* ignore any translate from older CSS */
}

/* stack all slides on top of each other */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* only the active slide is visible */
.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* image still fills the frame */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ---------- HERO POLISH & PILL GRID ---------- */

/* tighten title spacing, make it stand out in the hero */
.services-hero-title { font-size: 1.5rem; margin: 0 0 8px; line-height:1.28; }

/* ensure hero grid centers right card vertically on taller screens */
.hero-grid-centered { align-items: center; gap: 36px; }

/* pill grid: 2 columns on medium+ screens, single column on small */
.service-tabs {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
@media (min-width: 980px) {
  .service-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
  }
}

/* pill visual style: neat, compact, accessible */
.service-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 18px rgba(11,36,48,0.05);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  text-align: left;
}
.service-pill strong { font-weight:700; font-size:0.94rem; line-height:1; }
.service-pill small { display:block; margin-top:2px; color:var(--muted); font-weight:600; font-size:.82rem; }

/* active state */
.service-pill.is-active {
  background: var(--accent);
  color:#fff;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11,36,48,0.12);
}
.service-pill.is-active small { color: rgba(255,255,255,0.9); }

/* hero-right card */
.services-hero-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 28px 60px rgba(11,36,48,0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* image wrapper keeps aspect ratio and enables fade transitions */
.hero-img-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fbfbfb;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 12px;
}
.hero-img { width:100%; height:auto; display:block; opacity:1; transition: opacity .42s ease; }
.hero-img.fade-out { opacity:0; }

/* tags below image */
.services-hero-card-tags { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:4px; }
.services-hero-card-tags span {
  padding:6px 10px;
  border-radius:999px;
  background:#f3faf7;
  color: #0b524d;
  font-size:0.82rem;
  border: 1px solid rgba(11,82,77,0.06);
}

/* smaller screens: stack vertically with tighter spacing */
@media (max-width: 980px) {
  .services-hero-grid { grid-template-columns: 1fr; }
  .services-hero-card { max-width: 520px; margin: 18px auto 0; }
  .service-tabs { max-width: 720px; margin: 12px 0 0; }
}

/* make the subtle separator still visible but not in hero area */
.grow-separator { margin-top: 28px; }
