/* ==========================================================
   Durgesh Jain — personal brand website
   Sections: Reset · Variables · Global · Navbar · Hero · Stats
   · About · Services · Why · Experience · Support · Awards
   · Reviews · CTA · Contact · Footer · Responsive
   · Accessibility
   ========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body,
h1, h2, h3, h4,
p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

/* ==========================================================
   Variables
   ========================================================== */
:root {
  /* Colour — taken from the Me & We Academy logo */
  --purple: #652E83;
  --purple-deep: #4A1F63;
  --pink: #D83686;
  --pink-deep: #C02673;      /* pink that is readable as text / under white text */
  --mint: #79C0A2;
  --teal: #2B7D62;           /* mint, darkened for text and icons */
  --amber: #EDB958;
  --amber-deep: #9A5F0C;     /* amber, darkened for text and icons */
  --coral: #E28784;
  --coral-deep: #BF4A44;

  /* Soft tints of the logo colours, for backgrounds */
  --tint: #F7F0F8;
  --tint-mid: #EBDDF0;
  --tint-pink: #FCE7F1;
  --tint-mint: #E5F4EE;
  --tint-amber: #FCF1DC;
  --tint-coral: #FBE9E7;

  --bg: #FDFAFD;
  --white: #FFFFFF;
  --text: #222222;
  --muted: #666666;
  --border: rgba(101, 46, 131, 0.12);
  --border-strong: rgba(101, 46, 131, 0.22);
  --footer-bg: #2B1338;
  --whatsapp: #128C4A;
  --error: #C62F3E;

  --grad: linear-gradient(135deg, #652E83, #D83686);
  --grad-btn: linear-gradient(135deg, #652E83, #C02673);
  --grad-text: linear-gradient(120deg, #7A2F93 5%, #D83686 95%);
  --grad-soft: linear-gradient(145deg, #F7F0F8, #FFFFFF);
  --grad-amber: linear-gradient(135deg, #E8A469, #EDB958);

  /* Typography */
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-accent: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Shape & depth */
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(74, 31, 99, 0.06);
  --shadow: 0 14px 40px rgba(74, 31, 99, 0.09);
  --shadow-lg: 0 28px 70px rgba(74, 31, 99, 0.16);

  /* Layout */
  --container: 1180px;
  --gutter: 24px;
  --section-y: clamp(64px, 9vw, 112px);
  --nav-h: 80px;

  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}

/* ==========================================================
   Global
   ========================================================== */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--muted);
}

strong {
  font-weight: 600;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: center;
}

.section-lead {
  margin-top: 16px;
  font-size: 1.075rem;
}

.eyebrow {
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--pink-deep);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heart-accent {
  font-size: 0.6em;
  color: var(--pink);
  vertical-align: middle;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s, border-color 0.25s, color 0.25s;
}

.btn i {
  font-size: 0.85em;
  transition: transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover .fa-arrow-right {
  transform: translateX(4px);
}

.btn-sm {
  padding: 11px 20px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  color: var(--white);
  background: var(--grad-btn);
  box-shadow: 0 10px 24px rgba(101, 46, 131, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(101, 46, 131, 0.4);
}

.btn-outline {
  color: var(--purple-deep);
  background: var(--white);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-sm);
}

.btn-white {
  color: var(--purple-deep);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(43, 19, 56, 0.22);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
}

.btn-whatsapp {
  color: var(--white);
  background: var(--whatsapp);
  box-shadow: 0 10px 24px rgba(18, 140, 74, 0.24);
}

.btn-whatsapp i {
  font-size: 1.15em;
}

/* Icon tiles (stats, why, contact) */
.icon-tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 1.15rem;
  color: var(--tone, var(--purple));
  background: linear-gradient(145deg, var(--tone-bg, var(--tint)), #FFFFFF);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(101, 46, 131, 0.08);
}

.icon-tile-lg {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 1.4rem;
}

/* Brand tones — repeated items cycle through the logo colours.
   Each sets --tone (icon colour) and --tone-bg (soft tile background). */
:is(.stat, .why-item, .approach-list li, .contact-list li, .review-card):nth-child(5n + 2) {
  --tone: var(--pink-deep);
  --tone-bg: var(--tint-pink);
}

:is(.stat, .why-item, .approach-list li, .contact-list li, .review-card):nth-child(5n + 3) {
  --tone: var(--teal);
  --tone-bg: var(--tint-mint);
}

:is(.stat, .why-item, .approach-list li, .contact-list li, .review-card):nth-child(5n + 4) {
  --tone: var(--amber-deep);
  --tone-bg: var(--tint-amber);
}

:is(.stat, .why-item, .approach-list li, .contact-list li, .review-card):nth-child(5n + 5) {
  --tone: var(--coral-deep);
  --tone-bg: var(--tint-coral);
}

/* Photo frames with graceful placeholder */
.photo-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #EAD9F0 0%, #F7F0F8 55%, #FFFFFF 100%);
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  color: var(--purple-deep);
}

.photo-placeholder i {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 10px;
  border-radius: 50%;
  font-size: 2.4rem;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm);
}

.photo-placeholder span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}

.photo-placeholder small {
  font-size: 0.78rem;
  color: var(--muted);
}

.photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
}

.photo-img.is-loaded {
  opacity: 1;
}

.about-photo .photo-img {
  object-position: center 20%;
}

/* Scroll reveal (only when JS is available) */
.js .reveal:not(.reveal-done) {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible:not(.reveal-done) {
  opacity: 1;
  transform: none;
}

/* ==========================================================
   Navbar
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(253, 250, 253, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(74, 31, 99, 0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  transition: height 0.3s var(--ease);
}

.site-header.is-scrolled .nav-inner {
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Logo artwork has empty space above the mark, so it is cropped
   from the top (object-position) to sit level with the brand name. */
.brand-logo {
  flex: none;
  width: 62px;
  height: 44px;
  object-fit: cover;
  object-position: center bottom;
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}

.site-header.is-scrolled .brand-logo {
  width: 52px;
  height: 37px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: #3d3d4a;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
  color: var(--purple);
  background: rgba(101, 46, 131, 0.07);
}

.nav-link.is-active {
  color: var(--purple);
  font-weight: 600;
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  transform: translateX(-50%);
}

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

.nav-cta-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-toggle-bar {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--purple-deep);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle-bar:nth-child(1) { top: 16px; }
.nav-toggle-bar:nth-child(2) { top: 22px; }
.nav-toggle-bar:nth-child(3) { top: 28px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(32px, 5vw, 60px)) 0 clamp(72px, 9vw, 120px);
  background:
    radial-gradient(820px 520px at 88% 8%, rgba(216, 54, 134, 0.12), transparent 62%),
    radial-gradient(620px 460px at 4% 28%, rgba(121, 192, 162, 0.18), transparent 62%),
    radial-gradient(520px 360px at 96% 62%, rgba(237, 185, 88, 0.13), transparent 65%),
    linear-gradient(180deg, #F7F0F8 0%, #FDFAFD 100%);
  overflow: hidden;
}

/* Soft clouds drifting behind the content */
.hero-cloud {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  filter: blur(34px);
  pointer-events: none;
}

.hero-cloud-1 { top: 15%; left: 5%; width: 340px; height: 110px; }
.hero-cloud-2 { top: 10%; right: 6%; width: 400px; height: 120px; }
.hero-cloud-3 { top: 52%; left: -5%; width: 280px; height: 100px; }
.hero-cloud-4 { top: 60%; right: -4%; width: 300px; height: 110px; }

/* Faded flowing lines in the logo colours, drifting slowly sideways.
   The lines are generated in script.js; each track holds three identical
   1600px periods, so sliding it by one period loops seamlessly. */
.hero-waves {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 560px;
  margin-top: -280px;                   /* centred on the hero's middle */
  overflow: hidden;
  opacity: 0.42;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.hero-waves-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 4800px;
  height: 560px;
  fill: none;
  stroke-width: 1;
  animation: wave-drift 70s linear infinite;
  will-change: transform;
}

.hero-waves-track-b {
  animation-duration: 95s;
  animation-direction: reverse;
}

@keyframes wave-drift {
  to { transform: translateX(-1600px); }
}

.hero-head {
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* The serif italic accent word, as in the reference design */
.hero-accent {
  padding-right: 0.06em;
  font-family: var(--font-accent);
  font-size: 1.04em;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.015em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Wide enough to set the sentence on two lines; "balance" keeps the two
   lines about the same length. */
.hero-lead {
  max-width: 880px;
  margin-inline: auto;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  text-wrap: balance;
}

/* Shown on phones only, where the navbar button is hidden */
.hero-actions {
  display: none;
  margin-top: 26px;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  margin-top: clamp(4px, 1vw, 14px);
}

.hero-picture {
  position: relative;
}

/* White plate sitting exactly under the card frame of the picture, so the
   background lines pass behind the card instead of showing through it. */
.hero-plate {
  position: absolute;
  inset: 9.1% 1.8% 5.75% 1.85%;
  border-radius: 4.3% / 6.6%;
  background: var(--white);
}

/* The picture has an off-white background of its own. To hide its
   rectangular edge: the background is lifted to pure white (brightness),
   blended into the hero (multiply) and feathered at the sides and bottom. */
.hero-media {
  mix-blend-mode: multiply;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 1.6%, #000 98.4%, transparent),
    linear-gradient(to bottom, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 1.6%, #000 98.4%, transparent),
    linear-gradient(to bottom, #000 96%, transparent);
  mask-composite: intersect;
}

.hero-media img {
  width: 100%;
  filter: brightness(1.04);
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-emblem {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  font-size: 2rem;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.4);
}

.hero-quote {
  margin: 34px 0 0;
}

.hero-quote p {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.75;
  color: #3d3d4a;
}

.hero-quote cite {
  display: block;
  margin-top: 16px;
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 600;
  color: var(--purple);
}

.hero-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.hero-more-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.8rem;
  color: var(--purple);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s;
}

.hero-more:hover .hero-more-arrow {
  transform: translateX(4px);
  color: var(--white);
  background: var(--purple);
}

.hero-avatars {
  display: flex;
  justify-content: center;
}

.hero-avatars li {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--purple);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.hero-avatars li + li {
  margin-left: -10px;
}

.hero-avatars li:nth-child(2) { background: var(--pink-deep); }
.hero-avatars li:nth-child(3) { background: var(--teal); }

.hero-figure {
  margin-top: 40px;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-figure-label {
  margin-top: 8px;
  font-size: 0.95rem;
}

.hero-rule {
  width: 72px;
  height: 1px;
  margin: 26px 0;
  background: var(--border-strong);
}

.hero-note {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
}

/* Small badges that sit over the About photo */
.about-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  line-height: 1.25;
}

.about-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.92rem;
  white-space: nowrap;
}

.about-badge small {
  font-size: 0.76rem;
  color: var(--muted);
}

.float-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--grad);
}

/* ==========================================================
   Stats
   ========================================================== */
.stats {
  position: relative;
  z-index: 2;
  margin-top: clamp(-64px, -5vw, -36px);
}

.stats-panel {
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3.4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.stats-title {
  margin-bottom: 28px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0;
}

.stats-title i {
  margin-left: 4px;
  font-size: 0.85em;
  color: var(--pink);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 12px;
}

.stat + .stat {
  border-left: 1px dashed var(--border-strong);
}

.stat-num {
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--purple-deep);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
}

.stats-note {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ==========================================================
   About
   ========================================================== */
/* Side by side, the photo stretches to exactly the height of the text
   column, so their tops and bottoms line up at every desktop width. */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: stretch;
  gap: clamp(36px, 6vw, 84px);
}

.about-visual {
  position: relative;
  display: flex;
  padding-right: 20px;
}

.about-photo {
  flex: 1;
  min-height: 420px;
  border-radius: var(--radius-lg);
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 48px -4px 22px 44px;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--grad);
  opacity: 0.14;
  transform: rotate(4deg);
}

.about-badge {
  position: absolute;
}

.about-badge-top {
  top: 44px;
  right: -8px;
}

.about-badge-bottom {
  left: 24px;
  bottom: 24px;
  padding: 14px 20px;
}

.about-badge-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pink-deep);
}

/* Heading set on exactly two lines */
.about-copy :is(h1, h2) {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  text-wrap: wrap;
}

.about-copy .h-line {
  display: block;
  white-space: nowrap;
}

.about-copy > p + p {
  margin-top: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--purple);
}

.text-link i {
  font-size: 0.8em;
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--pink-deep);
}

.text-link:hover i {
  transform: translateX(5px);
}

/* The separate About page (about.html): the section doubles as the page
   header, and "My Approach" runs full width under the photo and story. */
.about-page {
  padding-top: calc(var(--nav-h) + clamp(36px, 5vw, 64px));
  background:
    radial-gradient(760px 480px at 90% 0%, rgba(216, 54, 134, 0.1), transparent 62%),
    radial-gradient(600px 440px at 2% 20%, rgba(121, 192, 162, 0.16), transparent 62%),
    linear-gradient(180deg, var(--tint) 0%, var(--bg) 70%);
}

.approach-card-wide {
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(24px, 3vw, 36px);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.chip-list li {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--purple-deep);
  background: var(--tint);
  border: 1px solid var(--border);
}

.approach-card {
  margin-top: 32px;
  padding: 26px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.approach-card :is(h2, h3) {
  margin-bottom: 18px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.approach-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.approach-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.approach-list strong {
  font-family: var(--font-head);
  font-size: 0.98rem;
}

.approach-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 14px;
  color: var(--tone, var(--purple));
  background: var(--tone-bg, var(--tint));
}

/* ==========================================================
   Services
   ========================================================== */
.services {
  background: linear-gradient(180deg, transparent, var(--tint) 22%, var(--tint) 78%, transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.service-card {
  --accent: #652E83;
  --accent-2: #9A4BB5;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 30px 30px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.service-card[data-accent="pink"] {
  --accent: #C02673;
  --accent-2: #E86AA8;
}

.service-card[data-accent="teal"] {
  --accent: #2B7D62;
  --accent-2: #6DB89A;
}

/* Soft glow that follows the pointer (position set in script.js) */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before,
.service-card:focus-within::before {
  opacity: 1;
}

.service-card > * {
  position: relative;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  border-radius: 22px;
  font-size: 1.5rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 32%, transparent);
  transition: transform 0.35s var(--ease);
}

.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.05);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.service-points {
  display: grid;
  gap: 8px;
  margin: 22px 0 28px;
  font-size: 0.92rem;
  color: #3d3d4a;
}

.service-points i {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  font-size: 0.62rem;
  line-height: 22px;
  text-align: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, white);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-head);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--accent);
}

.service-link i {
  font-size: 0.8em;
  transition: transform 0.25s var(--ease);
}

.service-card:hover .service-link i {
  transform: translateX(5px);
}

.services-note {
  max-width: 720px;
  margin: 36px auto 0;
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
}

.services-note i {
  margin-right: 4px;
  color: var(--pink);
}

/* ==========================================================
   Why
   ========================================================== */
.why-panel {
  padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.why-item {
  position: relative;
  text-align: center;
}

/* Dashed connector between steps on wide screens */
.why-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(50% + 46px);
  width: calc(100% - 68px);
  border-top: 2px dashed var(--border-strong);
}

.why-item .icon-tile {
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}

.why-item:hover .icon-tile {
  transform: translateY(-4px);
  color: var(--white);
  background: var(--tone, var(--purple));
}

.why-item h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
}

.why-item p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==========================================================
   Experience (timeline)
   ========================================================== */
.timeline {
  position: relative;
  max-width: 1020px;
  margin-inline: auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--pink), var(--tint-mid) 85%, transparent);
  transform: translateX(-50%);
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 0 52px 34px 0;
}

.tl-item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 34px 52px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

/* Interleave the two columns so the alternating layout stays compact */
.tl-item + .tl-item {
  margin-top: -96px;
}

.js .tl-item.reveal:not(.reveal-done) {
  transform: translateX(-20px);
}

.js .tl-item.reveal:nth-child(even):not(.reveal-done) {
  transform: translateX(20px);
}

.js .tl-item.reveal.is-visible:not(.reveal-done) {
  transform: none;
}

.tl-marker {
  position: absolute;
  top: 18px;
  right: -23px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 0.95rem;
  color: var(--purple);
  background: var(--white);
  border: 2px solid var(--tint-mid);
  box-shadow: 0 0 0 6px var(--bg), var(--shadow-sm);
}

.tl-item:nth-child(even) .tl-marker {
  right: auto;
  left: -23px;
}

.tl-item:nth-child(4n + 2) .tl-marker { color: var(--pink-deep); }
.tl-item:nth-child(4n + 3) .tl-marker { color: var(--teal); }
.tl-item:nth-child(4n + 4) .tl-marker { color: var(--amber-deep); }

.tl-item:first-child .tl-marker {
  color: var(--white);
  background: var(--grad);
  border-color: transparent;
}

.tl-card {
  padding: 26px 28px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.tl-date {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--purple-deep);
  background: var(--tint);
}

.tl-org {
  margin-top: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--purple);
}

.tl-summary {
  margin-top: 12px;
  font-size: 0.94rem;
}

.tl-highlight {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--purple-deep);
  background: var(--grad-soft);
  border: 1px solid var(--border);
}

.tl-highlight i {
  font-size: 0.8em;
  color: var(--pink);
}

.tl-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 2px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
}

.tl-toggle i {
  font-size: 0.75em;
  transition: transform 0.3s var(--ease);
}

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

/* Collapsible details — collapsed only when JS can re-open them */
.js .tl-details {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.4s var(--ease), visibility 0s 0.4s;
}

.js .tl-details.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.4s var(--ease), visibility 0s;
}

.tl-details-inner {
  min-height: 0;
  overflow: hidden;
}

.tl-details ul {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.tl-details li {
  position: relative;
  padding-left: 20px;
}

.tl-details li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

html:not(.js) .tl-toggle {
  display: none;
}

/* ==========================================================
   Support (tabs)
   ========================================================== */
.support {
  background: linear-gradient(180deg, transparent, var(--tint) 30%, var(--tint) 70%, transparent);
}

.support-panel {
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-radius: 24px;
  background: var(--tint);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: #4a4a58;
  transition: color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.tab i {
  font-size: 0.9em;
  color: var(--pink);
  transition: color 0.25s;
}

.tab:hover {
  color: var(--purple-deep);
  background: rgba(255, 255, 255, 0.7);
}

.tab.is-active {
  color: var(--white);
  background: var(--grad-btn);
  box-shadow: 0 8px 20px rgba(101, 46, 131, 0.28);
}

.tab.is-active i {
  color: var(--white);
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 44px) clamp(8px, 2vw, 24px) clamp(12px, 2vw, 20px);
}

.js .tab-panel:not(.is-active) {
  display: none;
}

.js .tab-panel.is-active {
  animation: panel-in 0.45s var(--ease);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.tab-intro h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.tab-context {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--purple-deep);
  background: var(--tint);
}

.tab-context i {
  color: var(--purple);
}

.tab-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tab-items li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tab-items li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.tab-items i {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 0.95rem;
  color: var(--purple);
  background: var(--white);
  border: 1px solid var(--border);
}

/* ==========================================================
   Awards
   ========================================================== */
.awards {
  padding-top: 0;
}

.awards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.award-card {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 1 calc((100% - 40px) / 3);
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.award-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--purple-deep);
  background: var(--grad-amber);
  box-shadow: 0 0 0 7px var(--tint-amber);
  transition: transform 0.5s var(--ease);
}

.award-card:hover .award-icon {
  transform: rotate(-10deg) scale(1.06);
}

.award-card h3 {
  font-size: 1.02rem;
}

.award-card p {
  margin-top: 2px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.award-year {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--purple-deep);
  background: var(--tint);
}

/* ==========================================================
   Reviews
   ========================================================== */
.reviews {
  padding-top: 0;
}

.reviews-panel {
  padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Carousel: a sideways-scrolling row that snaps card by card.
   --per-view sets how many cards show at once. */
.reviews-track {
  --per-view: 3;
  --gap: 22px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: 24px;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  padding: 26px 28px 28px;
  border-radius: 24px;
  background: var(--tint);
  scroll-snap-align: start;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.review-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tone, var(--purple));
  background: var(--white);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.review-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.review-role {
  font-size: 0.8rem;
  line-height: 1.4;
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--amber);
}

.review-text {
  margin: 18px 0 0;
  font-size: 0.96rem;
  line-height: 1.75;
  color: #4a4a58;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 10px;
  margin-top: 26px;
}

.reviews-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--tint-mid);
  transition: width 0.3s var(--ease), background-color 0.3s;
}

/* Larger tap target than the visible dot */
.reviews-dot {
  position: relative;
}

.reviews-dot::after {
  content: '';
  position: absolute;
  inset: -10px -4px;
}

.reviews-dot:hover {
  background: var(--border-strong);
}

.reviews-dot.is-active {
  width: 26px;
  background: var(--grad);
}

/* ==========================================================
   CTA
   ========================================================== */
/* The banner itself does not clip, so the portrait's head can rise above
   its top edge; the gradient and rings are clipped inside .cta-bg. */
.cta-banner {
  --cta-pad-y: clamp(40px, 6vw, 72px);
  --cta-pop: 52px;                      /* how far the head rises above the box */
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: var(--cta-pad-y) clamp(380px, 37vw, 460px) var(--cta-pad-y) clamp(26px, 6vw, 76px);
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(74, 31, 99, 0.3);
}

.cta-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(460px 340px at 94% 0%, rgba(237, 185, 88, 0.38), transparent 70%),
    linear-gradient(120deg, #4A1F63 0%, #6F2E86 40%, #D83686 100%);
  overflow: hidden;
}

.cta-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.cta-ring-1 {
  right: -90px;
  top: -130px;
  width: 460px;
  height: 460px;
}

.cta-ring-2 {
  right: 60px;
  bottom: -220px;
  width: 380px;
  height: 380px;
  background: rgba(255, 255, 255, 0.06);
}

.cta-copy {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  margin-top: 16px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Portrait: feet on the bottom edge, head above the top edge */
.cta-person {
  position: absolute;
  right: clamp(20px, 3vw, 48px);
  bottom: 0;
  z-index: 1;
  height: calc(100% + var(--cta-pop));
  pointer-events: none;
}

.cta-person img {
  width: auto;
  max-width: none;
  height: 100%;
  filter: drop-shadow(0 18px 30px rgba(43, 19, 56, 0.35));
}

/* ==========================================================
   Contact
   ========================================================== */
/* Both columns share one height: the form card stretches to the bottom of
   the left column and its message box grows to use the spare room. */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: clamp(36px, 6vw, 80px);
}

.contact-form-wrap {
  display: flex;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 34px 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
}

.contact-list strong,
.contact-list a {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--purple);
}

.contact-list small {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.contact-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.field-grow {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.field-grow textarea {
  flex: 1;
}

.field {
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3d3d4a;
}

.req {
  color: var(--error);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #E3D3EA;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23652E83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(101, 46, 131, 0.16);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  min-height: 0;
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.form-status {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #EFFAF3;
  border: 1px solid #BFE5CD;
}

.form-status-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #17502F;
}

.form-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  padding-top: clamp(48px, 6vw, 72px);
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 44px;
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Same crop as the navbar logo (the artwork has empty space above it) */
.footer-logo {
  flex: none;
  width: 68px;
  height: 48px;
  object-fit: cover;
  object-position: center bottom;
}

.footer-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white) !important;
}

.footer-sub {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--amber) !important;
}

.footer-desc {
  max-width: 400px;
  margin-top: 16px;
  font-size: 0.92rem;
}

.social-list {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-list a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.25s var(--ease), background-color 0.25s;
}

.social-list a:hover {
  transform: translateY(-3px);
  background: var(--pink-deep);
}

.site-footer h2 {
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-nav ul,
.footer-contact ul {
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
}

.footer-contact li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  overflow-wrap: anywhere;
}

.footer-contact i {
  flex: none;
  width: 16px;
  font-size: 0.85em;
  text-align: center;
  color: var(--amber);
}

.site-footer a:not(.social-list a) {
  transition: color 0.2s;
}

.site-footer a:not(.social-list a):hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  text-align: center;
}

/* Floating WhatsApp button (bottom-left): two expanding rings pulse out
   from it and the icon gives a short wiggle every few seconds. */
.wa-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 1.75rem;
  color: var(--white);
  background: var(--whatsapp);
  box-shadow: 0 12px 26px rgba(18, 140, 74, 0.38);
  transition: transform 0.25s var(--ease);
}

.wa-float::before,
.wa-float::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--whatsapp);
  opacity: 0;
  animation: wa-pulse 2.6s ease-out infinite;
}

.wa-float::after {
  animation-delay: 1.3s;
}

.wa-float i {
  animation: wa-wiggle 4s ease-in-out infinite;
}

.wa-float:hover {
  transform: scale(1.08);
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes wa-wiggle {
  0%, 16%, 100% { transform: rotate(0); }
  4% { transform: rotate(-14deg); }
  8% { transform: rotate(12deg); }
  12% { transform: rotate(-8deg); }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  background: var(--grad-btn);
  box-shadow: 0 12px 26px rgba(74, 31, 99, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s 0.3s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

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

/* ≤ 1180px — tighten navigation, relax 5-up rows */
@media (max-width: 1180px) {
  .nav-inner {
    gap: 16px;
  }

  .nav-link {
    padding-inline: 8px;
  }

  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 36px;
  }

  .why-item::after {
    display: none;
  }
}

/* ≤ 1024px — hamburger navigation, single-column sections */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--gutter);
    right: var(--gutter);
    padding: 14px;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.28s, transform 0.28s var(--ease), visibility 0s 0.28s;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.28s, transform 0.28s var(--ease), visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav-link.is-active {
    background: var(--tint);
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-cta-mobile {
    display: flex;
    margin-top: 10px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .reviews-track {
    --per-view: 2;
  }

  /* Banner stacks: portrait on top (head still above the box, body fading
     into the banner), text centred beneath it */
  .cta-banner {
    --cta-pop: 40px;
    flex-direction: column;
    min-height: 0;
    padding-inline: clamp(22px, 6vw, 76px);
    text-align: center;
  }

  .cta-actions {
    justify-content: center;
  }

  .cta-person {
    position: relative;
    right: auto;
    order: -1;
    width: clamp(210px, 34vw, 270px);
    height: auto;
    aspect-ratio: 1 / 0.98;
    margin: calc(-1 * (var(--cta-pad-y) + var(--cta-pop))) auto 6px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent);
    mask-image: linear-gradient(to bottom, #000 68%, transparent);
  }

  .cta-person img {
    width: 100%;
    height: auto;
    filter: none;
  }

  /* Stacked: the photo goes back to a fixed portrait shape */
  .about-visual {
    display: block;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    padding: 0 20px 0 0;
  }

  .about-photo {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }

  .about-copy :is(h1, h2) {
    font-size: clamp(1.5rem, 4.2vw, 2rem);
  }

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

  .contact-list {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: left;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }

  .award-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

/* ≤ 860px — tablet */
@media (max-width: 860px) {
  /* Stacked hero: the picture fills the middle, so the waves sit a little
     lower, behind the two side blocks, where they can be seen */
  .hero-waves {
    top: 66%;
  }

  /* Hero: picture first, the two side blocks beneath it */
  .hero-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    row-gap: 12px;
  }

  .hero-picture {
    grid-column: 1 / -1;
    order: -1;
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 24px;
  }

  .stat {
    grid-column: span 2;
  }

  /* 3 + 2 layout, second row centred */
  .stat:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .stat:nth-child(4) {
    border-left: 0;
  }

  /* Timeline becomes a single column with the line on the left */
  .timeline::before {
    left: 22px;
  }

  .tl-item,
  .tl-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 26px 64px;
  }

  .tl-item + .tl-item {
    margin-top: 0;
  }

  .tl-marker,
  .tl-item:nth-child(even) .tl-marker {
    left: 0;
    right: auto;
  }

  .js .tl-item.reveal:not(.reveal-done),
  .js .tl-item.reveal:nth-child(even):not(.reveal-done) {
    transform: translateY(24px);
  }

  .js .tl-item.reveal.is-visible:not(.reveal-done) {
    transform: none;
  }

  .tab-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ≤ 640px — mobile */
@media (max-width: 640px) {
  :root {
    --gutter: 18px;
    --nav-h: 68px;
  }

  .nav-cta {
    display: none;
  }

  .brand-logo {
    width: 50px;
    height: 36px;
  }

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

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .hero-actions {
    display: block;
  }

  .hero-stage {
    column-gap: 14px;
  }

  .hero-emblem {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.4);
  }

  .hero-quote {
    margin-top: 24px;
  }

  .hero-quote p,
  .hero-figure-label,
  .hero-note {
    font-size: 0.88rem;
  }

  .hero-figure {
    margin-top: 26px;
  }

  .hero-rule {
    margin: 18px 0;
  }

  /* Statistics: two columns, last card full width */
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .stat,
  .stat:nth-child(4) {
    grid-column: auto;
    padding: 18px 10px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
  }

  .stat:last-child {
    grid-column: 1 / -1;
  }

  .about-visual {
    padding: 0;
  }

  .about-visual::before {
    display: none;
  }

  .about-copy .h-line {
    display: inline;
    white-space: normal;
  }

  .about-badge-top {
    top: 18px;
    right: 10px;
  }

  .about-badge-bottom {
    left: 14px;
    bottom: 14px;
  }

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

  .service-card {
    padding: 30px 24px 26px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .why-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    text-align: left;
  }

  .why-item .icon-tile {
    grid-row: span 2;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 1.15rem;
  }

  .why-item h3 {
    margin: 2px 0 4px;
  }

  .timeline::before {
    left: 19px;
  }

  .tl-item,
  .tl-item:nth-child(even) {
    padding-left: 54px;
  }

  .tl-marker {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .tl-card {
    padding: 22px 20px;
  }

  /* Tabs scroll sideways rather than stacking into a tall block */
  .tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    border-radius: 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: none;
    padding: 11px 16px;
  }

  .tab-items {
    grid-template-columns: 1fr;
  }

  .tab-intro .btn {
    width: 100%;
  }

  .award-card {
    flex-basis: 100%;
  }

  .reviews-track {
    --per-view: 1;
    --gap: 14px;
  }

  .review-card {
    padding: 22px 20px 24px;
  }

  .cta-banner {
    border-radius: 26px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-info .btn-whatsapp {
    width: 100%;
  }

  .wa-float {
    left: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.55rem;
  }

  .form-status-actions .btn {
    flex: 1 1 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* ≤ 380px — small phones */
@media (max-width: 380px) {
  .brand-sub {
    display: none;
  }

  .nav-inner {
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 45px;
    height: 32px;
  }

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

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

  .approach-card {
    padding: 20px;
  }
}

/* ==========================================================
   Accessibility
   ========================================================== */
.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--white);
  background: var(--purple-deep);
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.btn:focus-visible,
.tab:focus-visible,
.nav-link:focus-visible {
  outline-offset: 2px;
}

.cta-banner :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

/* Sections receive programmatic focus after in-page navigation */
[tabindex="-1"]:focus {
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

  .js .reveal:not(.reveal-done),
  .js .tl-item.reveal:not(.reveal-done) {
    opacity: 1;
    transform: none;
  }
}
