/* ============================================
   The Prajapatis — Premium Fintech Styles
   ============================================ */

:root {
  /* Brand */
  --primary: #0B4F8A;
  --primary-dark: #07345D;
  --primary-light: #EAF4FC;

  /* Accent */
  --accent: #F58220;
  --accent-dark: #D9680B;
  --accent-light: #FFF1E5;

  /* Backgrounds */
  --background: #FFFFFF;
  --background-soft: #F6F9FC;
  --background-blue: #EEF6FD;

  /* Text */
  --text-primary: #0B2942;
  --text-secondary: #526577;
  --text-muted: #8292A1;

  /* Borders */
  --border: #DCE6EF;
  --border-light: #EAF0F5;

  /* Cards */
  --card: #FFFFFF;
  --card-hover: #F8FBFE;

  /* Status */
  --success: #15966C;
  --error: #D64545;

  /* Common */
  --white: #FFFFFF;
  --black: #081C2C;

  /* Layout */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 72px;
  --container: 1200px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-btn: 10px;
  --shadow-sm: 0 1px 2px rgba(8, 28, 44, 0.04);
  --shadow-md: 0 8px 24px rgba(8, 28, 44, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* 8px spacing scale */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-2));
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
}

.container {
  width: min(100% - var(--space-4), var(--container));
  margin-inline: auto;
}

/* ---------- Placeholders ---------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  flex-shrink: 0;
}

.ph span {
  padding: var(--space-1);
  max-width: 12ch;
  line-height: 1.35;
}

.ph-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  border-style: solid;
  border-color: var(--primary);
}

.ph-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
}

.ph-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.ph-icon-sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.ph-icon-xs {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.ph-media {
  width: 100%;
  min-height: 200px;
  border-radius: var(--radius);
}

.ph-phone {
  width: min(100%, 280px);
  min-height: 520px;
  border-radius: 28px;
  margin-inline: auto;
  background: var(--background-soft);
}

.ph-illustration {
  min-height: 360px;
  border-radius: var(--radius);
}

.ph-family {
  min-height: 280px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

.ph-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border-style: solid;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  white-space: nowrap;
}

.btn [class^="ri-"],
.btn [class*=" ri-"] {
  font-size: 1.2em;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-light {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-light:hover {
  background: var(--primary-light);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary);
  transition: color 0.2s;
}

.text-link::after {
  content: "→";
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}

.text-link:hover {
  color: var(--primary-dark);
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--background);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  width: min(100% - var(--space-4), var(--container));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  gap: 5px;
  flex-direction: column;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-8) 0;
}

.section-intro {
  max-width: 640px;
  margin-bottom: var(--space-5);
}

.services .section-intro,
.how .section-intro,
.testimonials .section-intro {
  margin-inline: auto;
  text-align: center;
}

.section-intro h2 {
  margin-bottom: var(--space-2);
}

.section-intro p:not(.section-label) {
  font-size: 1.0625rem;
}

.section-label {
  display: inline-block;
  margin-bottom: var(--space-1);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-cta {
  margin-top: var(--space-5);
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--background-blue);
  padding: var(--space-7) 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-copy h1 {
  margin-bottom: var(--space-2);
  max-width: 16ch;
}

.hero-sub {
  max-width: 42ch;
  margin-bottom: var(--space-4);
  font-size: 1.0625rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-3);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  /* padding: var(--space-5) var(--space-2); */
}

.hero-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.hero-float-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
}

.hero-float-icon i {
  font-size: 1rem;
  line-height: 1;
}

.hero-float-1 {
  top: 8%;
  left: 0;
  animation-name: hero-float-pan-a;
  animation-duration: 6.5s;
}

.hero-float-2 {
  top: 28%;
  right: 0;
  animation-name: hero-float-pan-b;
  animation-duration: 7.5s;
  animation-delay: -1.4s;
}

.hero-float-3 {
  bottom: 30%;
  left: -4%;
  animation-name: hero-float-pan-c;
  animation-duration: 6.8s;
  animation-delay: -2.6s;
}

.hero-float-4 {
  bottom: 10%;
  right: 2%;
  animation-name: hero-float-pan-d;
  animation-duration: 8s;
  animation-delay: -0.8s;
}

@keyframes hero-float-pan-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -8px); }
}

@keyframes hero-float-pan-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, 10px); }
}

@keyframes hero-float-pan-c {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, 8px); }
}

@keyframes hero-float-pan-d {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -6px); }
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--primary-dark);
  padding: var(--space-5) 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.stat {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8EC8F0;
  background: rgba(142, 200, 240, 0.16);
  border: 1px solid rgba(142, 200, 240, 0.32);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 1.25rem;
  line-height: 1;
}

.stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Services ---------- */
.services {
  background: var(--background);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  background: var(--card-hover);
  border-color: #c5d4e3;
  box-shadow: var(--shadow-sm);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.service-icon svg,
.service-icon i {
  width: 22px;
  height: 22px;
  display: block;
}

.service-icon i {
  font-size: 22px;
  line-height: 1;
  width: auto;
  height: auto;
}

.service-card:hover .service-icon {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 14px rgba(245, 130, 32, 0.12);
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.875rem;
  line-height: 1.5;
}

.service-card .text-link {
  margin-top: var(--space-2);
  font-size: 0.8125rem;
}

.services-status,
.testimonials-status {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-5) var(--space-2);
  color: var(--text-muted);
}

/* ---------- Enquiry ---------- */
.enquiry {
  background: var(--background-soft);
}

.enquiry-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
  align-items: start;
}

.enquiry-intro h2 {
  margin-bottom: var(--space-2);
  position: relative;
  padding-bottom: var(--space-2);
}

.enquiry-intro h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.enquiry-points {
  margin-top: var(--space-3);
  display: grid;
  gap: 12px;
}

.enquiry-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.enquiry-points li i {
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.enquiry-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.field-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.field-group {
  margin-bottom: var(--space-2);
}

.field-group.is-hidden,
#service-fields.is-hidden {
  display: none;
}

.field-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.field-group label span {
  color: var(--error);
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--background);
  color: var(--text-primary);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.enquiry-form textarea {
  resize: vertical;
  min-height: 110px;
}

.enquiry-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23526577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 79, 138, 0.12);
}

.enquiry-form select:disabled,
.enquiry-form input:disabled {
  background: var(--background-soft);
  color: var(--text-muted);
  cursor: not-allowed;
}

.enquiry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.enquiry-status {
  font-size: 0.875rem;
  margin: 0;
  min-height: 1.4em;
}

.enquiry-status.is-success {
  color: var(--success);
}

.enquiry-status.is-error {
  color: var(--error);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Why choose ---------- */
.why {
  background: var(--background-soft);
}

.why-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
  align-items: start;
}

.why-intro {
  position: sticky;
  top: calc(var(--header-h) + var(--space-3));
}

.why-intro .section-label {
  margin-bottom: var(--space-1);
}

.why-intro h2 {
  margin-bottom: var(--space-2);
  position: relative;
  padding-bottom: var(--space-2);
}

.why-intro h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  transition: background 0.2s, border-color 0.2s;
}

.feature-card:hover {
  background: var(--card-hover);
  border-color: #c5d4e3;
}

.feature-card .service-icon {
  color: var(--primary);
  background: var(--primary-light);
  border-color: #d7e7f4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-card:hover .service-icon {
  background: var(--primary-light);
  border-color: color-mix(in srgb, var(--primary) 18%, transparent);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 14px rgba(11, 79, 138, 0.08);
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
}

/* ---------- App showcase ---------- */
.band-navy,
.app-showcase {
  background: var(--primary-dark);
  color: var(--white);
}

.app-showcase {
  padding: var(--space-8) 0;
}

.app-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.app-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 480px;
}

.app-visual .ph-phone {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
}

.ph-phone-stack {
  position: absolute;
  width: 240px;
  min-height: 460px;
}

.ph-phone-stack:first-child {
  left: 12%;
  top: 0;
  z-index: 1;
}

.ph-phone-offset {
  right: 12%;
  top: 40px;
  z-index: 2;
}

.app-copy h2 {
  color: var(--white);
  margin-bottom: var(--space-2);
}

.app-copy > p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-4);
  max-width: 46ch;
}

.app-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px var(--space-3);
  margin-bottom: var(--space-4);
}

.app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
}

.app-features li i {
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.app-copy .hero-ctas {
  margin-bottom: 0;
}

/* ---------- Process ---------- */
.how {
  background: var(--background);
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: var(--space-2);
  align-items: start;
}

.step {
  text-align: center;
  padding: var(--space-2);
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-2);
  background: var(--primary-light);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin-top: 48px;
  position: relative;
}

.step-connector::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--border);
  border-top: 2px solid var(--border);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--background-soft);
}

.testimonial-carousel {
  --per-view: 3;
  --t-gap: var(--space-2);
}

.testimonial-viewport {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: var(--t-gap);
  width: 100%;
  transition: transform 0.45s var(--ease);
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
}

.testimonial-track.is-dragging {
  transition: none;
  cursor: grabbing;
}

.testimonial img {
  pointer-events: none;
  user-select: none;
}

.testimonial {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--t-gap)) / var(--per-view));
  max-width: calc((100% - (var(--per-view) - 1) * var(--t-gap)) / var(--per-view));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.testimonial:hover {
  border-color: #c5d4e3;
  box-shadow: var(--shadow-md);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.35;
}

.testimonial > p {
  flex: 1;
  color: var(--text-secondary);
  font-size: 0.975rem;
}

.testimonial footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.testimonial footer span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 0.875rem;
}

.carousel-controls {
  display: none;
}

.carousel-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.carousel-nav i {
  font-size: 1.5rem;
  line-height: 1;
}

.carousel-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.carousel-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  background: var(--card);
  color: var(--text-muted);
  border-color: var(--border);
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: var(--border);
  transition: width 0.25s var(--ease), background 0.25s;
}

.carousel-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--primary);
}

.carousel-controls[hidden],
.carousel-controls.is-hidden {
  display: none;
}

@media (max-width: 900px) {
  .testimonial-carousel {
    --per-view: 2;
  }
}

@media (max-width: 640px) {
  .testimonial-carousel {
    --per-view: 1;
  }
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--background);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}

.faq .section-intro {
  margin-inline: 0;
  text-align: left;
  margin-bottom: var(--space-4);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.is-open {
  border-color: var(--primary);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 18px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--text-primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--primary);
  transition: transform 0.2s;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon {
  background: var(--accent-light);
}

.faq-item.is-open .faq-icon::before {
  background: var(--accent);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  background: var(--accent);
}

.faq-panel {
  padding: 0 20px 18px;
}

.faq-panel p {
  font-size: 0.9375rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding-bottom: var(--space-8);
}

.cta-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-5);
  align-items: flex-end;
  background: var(--primary-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.cta-copy{
  padding: var(--space-5) var(--space-5);
}
.cta-copy h2 {
  color: var(--white);
  margin-bottom: var(--space-2);
  max-width: 18ch;
}

.cta-copy p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-4);
  max-width: 48ch;
}

.cta-copy .hero-ctas {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

.footer-brand .logo-text,
.footer-brand .logo-tagline {
  color: var(--white);
}

.footer-brand .logo-tagline {
  color: rgba(255, 255, 255, 0.55);
}

.footer-brand > p {
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
  color: rgba(255, 255, 255, 0.65);
  max-width: 28ch;
  font-size: 0.9375rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer-col a [class^="ri-"],
.footer-col a [class*=" ri-"] {
  font-size: 1.1em;
  line-height: 1;
}

.footer-col a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: flex;
  padding: 0;
}

.social-links .ph-icon-xs {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-2) 0;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }

  .hero-float {
    animation: none;
  }

  .testimonial-track {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .step-connector {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .why-layout,
  .app-layout,
  .faq-layout,
  .cta-band,
  .enquiry-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-visual {
    order: -1;
    padding-block: var(--space-2);
  }

  .hero-float {
    display: none;
  }

  .ph-phone {
    min-height: 420px;
    width: min(100%, 240px);
  }

  .why-intro {
    position: static;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .app-visual {
    min-height: 400px;
  }

  .ph-phone-stack {
    width: 200px;
    min-height: 380px;
  }

  .ph-phone-stack:first-child {
    left: 18%;
  }

  .ph-phone-offset {
    right: 18%;
  }

  .faq-visual {
    order: -1;
  }

  .ph-illustration {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--background);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3);
    gap: var(--space-3);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }

  .nav-menu.is-open {
    transform: none;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 1.0625rem;
  }

  .nav-menu .btn {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .app-features {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: var(--space-7) 0;
  }

  .hero {
    padding: var(--space-5) 0 var(--space-6);
  }

  .field-row,
  .field-row-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - var(--space-3), var(--container));
  }

  .services-grid,
  .stats-row,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .cta-band {
    padding: var(--space-4);
  }

  .enquiry-form {
    padding: var(--space-3);
  }

  .logo-tagline {
    display: none;
  }

  .app-visual {
    min-height: 340px;
  }

  .ph-phone-stack {
    width: 170px;
    min-height: 320px;
  }

  .ph-phone-stack:first-child {
    left: 8%;
  }

  .ph-phone-offset {
    right: 8%;
    top: 24px;
  }
}

/* ---------- Legal pages ---------- */
.legal-hero {
  background: var(--background-blue);
  padding: var(--space-6) 0 var(--space-5);
}

.legal-hero .section-label {
  margin-bottom: var(--space-1);
}

.legal-hero h1 {
  margin-bottom: var(--space-2);
  max-width: 18ch;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-page {
  background: var(--background);
  padding: var(--space-7) 0 var(--space-8);
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: 1.25rem;
}

.legal-content p {
  margin-bottom: var(--space-2);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 var(--space-3);
}

.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--primary);
  font-weight: 600;
}

.legal-content a:hover {
  color: var(--primary-dark);
}
