/* =========================================================
   Patwa and Company — website styles
   Change the colours and fonts here, in one place.
   ========================================================= */

/* The Prata font, stored in the fonts folder (licence: fonts/OFL.txt) */
@font-face {
  font-family: "Prata";
  src: url("fonts/prata-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Your three colours */
  --main: #1a1a3a;          /* Midnight blue: menu, opening section, headings, buttons */
  --background: #fcf5e5;    /* Parchment: page background */
  --accent: #c0b152;        /* Antique brass: lines, underlines and small details */

  /* Shades worked out from your colours */
  --main-hover: #2e2e5e;    /* slightly lighter midnight for buttons when hovered */
  --surface: #fffbf2;       /* lighter parchment for the services section and pop-up */
  --rule: #e9dfc6;          /* faint lines */
  --text: #1c2333;          /* body text */
  --muted: #585e6b;         /* secondary text */
  --on-main: #fffbf2;       /* text on midnight blue */
  --on-main-muted: #cbc9de; /* secondary text on midnight blue */

  /* Font: Prata for everything. It has one weight only, so nothing is set in bold. */
  --heading-font: "Prata", Georgia, "Times New Roman", serif;
  --body-font: "Prata", Georgia, "Times New Roman", serif;

  /* Layout */
  --container: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.75rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Basics ---------- */

/* Anything marked hidden stays hidden, whatever other styles say */
[hidden] {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-synthesis: none; /* never fake a bold or italic Prata doesn't have */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 400;
  color: var(--main);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Keyboard focus: midnight blue on light areas, brass on midnight blue areas */
:focus-visible {
  outline: 3px solid var(--main);
  outline-offset: 3px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--body-font);
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--small {
  padding: 0.6rem 1.05rem;
  font-size: 0.9rem;
}

.btn--solid {
  background: var(--main);
  color: var(--on-main);
}
.btn--solid:hover {
  background: var(--main-hover);
}

.btn--light {
  background: var(--surface);
  color: var(--main);
}
.btn--light:hover {
  background: #ffffff;
}

.btn--outline-light {
  border-color: rgba(255, 251, 242, 0.6);
  color: var(--on-main);
  background: transparent;
}
.btn--outline-light:hover {
  border-color: var(--accent);
  background: rgba(255, 251, 242, 0.08);
}

.btn--text {
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.25em;
}
.btn--text:hover {
  color: var(--main);
}

/* =========================================================
   HEADER AND MENU
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--on-main);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* Scrolled within the opening section: solid midnight blue */
.site-header.is-scrolled {
  background: rgba(26, 26, 58, 0.97);
  box-shadow: 0 1px 0 rgba(192, 177, 82, 0.45);
}

/* Scrolled past the opening section: parchment with a brass line */
.site-header.is-light {
  background: rgba(252, 245, 229, 0.96);
  color: var(--main);
  box-shadow: 0 1px 0 var(--accent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--container);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}

.wordmark__name {
  font-family: var(--heading-font);
  font-size: 1.47rem; /* about 17.6pt, 2 points larger than before */
  font-weight: 400;
}

.wordmark__desc {
  font-size: 0.85rem;
  opacity: 0.85;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__links {
  display: flex;
  gap: 1.75rem;
}

.site-nav__links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  padding-block: 0.35rem;
}

/* A brass line draws under menu links on hover */
.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav__links a:hover::after {
  transform: scaleX(1);
}

/* Header button changes with the header colour */
.site-nav__cta {
  border-color: rgba(255, 251, 242, 0.6);
  color: var(--on-main);
}
.site-nav__cta:hover {
  border-color: var(--accent);
}
.is-light .site-nav__cta {
  background: var(--main);
  border-color: var(--main);
  color: var(--on-main);
}
.is-light .site-nav__cta:hover {
  background: var(--main-hover);
}

.menu-toggle {
  display: none;
  padding: 0.5rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
}

/* Brass focus outlines while over midnight blue */
.site-header:not(.is-light) :focus-visible,
.hero :focus-visible {
  outline-color: var(--accent);
}

/* ---------- Phone and tablet menu ---------- */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 0.5rem var(--gutter) 1.75rem;
    background: var(--background);
    color: var(--main);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.25);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .site-header.menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-header.menu-open {
    background: var(--background);
    color: var(--main);
  }

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

  .site-nav__links a {
    display: block;
    padding: 0.9rem 0;
    font-family: var(--heading-font);
    font-size: 1.35rem;
    border-bottom: 1px solid var(--rule);
  }
  .site-nav__links a::after {
    display: none;
  }

  .site-nav__cta,
  .menu-open .site-nav__cta {
    background: var(--main);
    border-color: var(--main);
    color: var(--on-main);
  }

  .site-header.menu-open :focus-visible {
    outline-color: var(--main);
  }
}

/* =========================================================
   OPENING SECTION (HERO)
   ========================================================= */

.hero {
  background: var(--main);
  color: var(--on-main);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: var(--container);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 4.5rem;
}

/* The opening image (a square that scales with the screen) */
.hero__visual {
  width: min(56vh, 36rem, 92vw);
  aspect-ratio: 1 / 1;
}

.hero__visual canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 46rem;
  margin-top: 1.5rem;
  text-align: center;
}

.hero__lead {
  max-width: 42rem;
  color: var(--on-main);
  font-family: var(--heading-font);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.6;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

/* ---------- Opening animation (runs once, when the page opens) ----------
   The particles gather into the sphere (script.js), then the text appears. */

.js .hero__visual {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.js .hero.is-ready .hero__visual {
  opacity: 1;
}

.js .hero__text > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .hero.is-ready .hero__text > * {
  opacity: 1;
  transform: none;
}

.js .hero.is-ready .hero__lead    { transition-delay: 1.4s; }
.js .hero.is-ready .hero__actions { transition-delay: 1.6s; }

/* Hidden on screen, still read by screen readers and search engines */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   SECTIONS (shared)
   ========================================================= */

.section {
  padding-block: clamp(5rem, 11vw, 8.5rem);
}

.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-intro {
  max-width: 34rem;
  color: var(--text);
}

/* ---------- The "ruled line" reveal used on lists ----------
   As each row scrolls into view, a brass line is drawn
   across from left to right and the text fades in. */

.ruled {
  position: relative;
}

.ruled::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
}

.js .ruled::before {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .ruled > *,
.js .sectors__list .ruled {
  transition: opacity 0.7s var(--ease), color 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms + 0.2s);
}

.js .service.ruled > * {
  opacity: 0;
}

.js .sectors__list .ruled {
  color: transparent;
}

.js .ruled.is-ruled::before {
  transform: scaleX(1);
}

.js .service.ruled.is-ruled > * {
  opacity: 1;
}

.js .sectors__list .ruled.is-ruled {
  color: var(--main);
}

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

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 1.5rem 4rem;
}

.about__body {
  max-width: 38rem;
  font-family: var(--heading-font);
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.7;
}

.about__body p + p {
  margin-top: 1.25rem;
}

.sectors {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.sectors__title {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 400;
}

.sectors__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 2.5rem;
}

.sectors__list li {
  margin-bottom: -1px; /* each row's bottom line sits exactly on the next row's top line */
  padding: 1rem 0;
  color: var(--main);
  font-family: var(--heading-font);
  font-size: 1.2rem;
}

/* A line under every industry, broken between columns like the lines above */
.sectors__list li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
}

.js .sectors__list li::after {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .sectors__list li.is-ruled::after {
  transform: scaleX(1);
}

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

.services {
  background: var(--surface);
  border-top: 1px solid var(--rule);
}

.service-list {
  border-bottom: 1px solid var(--accent);
}

/* Two columns that line up with the heading and intro above */
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 0.5rem 4rem;
  align-items: baseline;
  padding: 1.9rem 0;
}

.service > :not(.service__name) {
  grid-column: 2;
}

.service__name {
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.25;
}

.service__desc {
  max-width: 34rem;
  color: var(--text);
}

/* "View details" button on the audit row */
.service__toggle {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--main);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
}

.service__toggle-label {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.service__toggle:hover .service__toggle-label {
  text-decoration-color: currentColor;
}

/* A plus sign that turns into a minus */
.service__toggle-icon {
  position: relative;
  width: 0.8rem;
  height: 0.8rem;
}
.service__toggle-icon::before,
.service__toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.service__toggle-icon::after {
  transform: rotate(90deg);
}
.service__toggle[aria-expanded="true"] .service__toggle-icon::after {
  transform: rotate(0deg);
}

/* The details panel slides open */
.service__details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.service__details.is-open {
  grid-template-rows: 1fr;
}

.service__details-inner {
  overflow: hidden;
}

.service__details p {
  max-width: 40rem;
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--background);
  color: var(--text);
}

/* =========================================================
   UK BOOKKEEPING (midnight blue, to set it apart from India services)
   ========================================================= */

.uk {
  background: var(--main);
  color: var(--on-main);
}

.uk .section-title {
  color: var(--on-main);
}

.uk__head {
  align-items: start;
}

.uk__intro {
  max-width: 36rem;
  color: var(--on-main-muted);
}

/* The data security note, with a brass padlock */
.uk__security {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(192, 177, 82, 0.4);
  color: var(--on-main);
}

.uk__lock {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.2rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uk__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 4rem;
}

.uk-service {
  padding: 1.9rem 0 1.75rem;
}

.uk-service__name {
  color: var(--on-main);
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  line-height: 1.25;
}

.uk-service__desc {
  max-width: 32rem;
  margin-top: 0.75rem;
  color: var(--on-main-muted);
}

.js .uk-service.ruled > * {
  opacity: 0;
}

.js .uk-service.ruled.is-ruled > * {
  opacity: 1;
}

.uk__action {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.uk :focus-visible {
  outline-color: var(--accent);
}

/* =========================================================
   TEAM
   ========================================================= */

.team {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

/* Two cards side by side, filling the width like the sections above */
.partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 4rem;
}

/* Each card: photo on the left, details beside it, lined up at the bottom */
.partner {
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto auto;
  column-gap: 2rem;
}

.partner > :not(.partner__photo) {
  grid-column: 2;
}

/* Keep the details in order at the bottom: name, role, qualification, link */
.partner__name { grid-row: 2; }
.partner__role { grid-row: 3; }
.partner__qual { grid-row: 4; }
.partner__link { grid-row: 5; }

.partner__photo {
  grid-column: 1;
  grid-row: 1 / -1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: #efe6cf;
}

/* Real photos fill the frame neatly */
.partner__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The outline figure shown until a photo is added */
.partner__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  padding: 18% 22% 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.partner__name {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--accent);
  font-size: 1.6rem;
  line-height: 1.25;
}

.partner__role {
  margin-top: 0.8rem;
  color: var(--text);
}

.partner__qual {
  color: var(--muted);
}

.partner__link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--main);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.25em;
}

/* =========================================================
   REQUEST A CALL
   ========================================================= */

.request__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

.request__intro p {
  max-width: 26rem;
  margin-top: 1.25rem;
}

.request__privacy {
  padding-top: 1.25rem;
  border-top: 1px solid var(--accent);
  color: var(--muted);
  font-size: 0.95rem;
}

.request-form {
  display: grid;
  gap: 1.35rem;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  color: var(--main);
  font-size: 0.95rem;
}

.field__req {
  color: var(--muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(26, 26, 58, 0.45);
  border-radius: 3px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

/* Our own arrow on the drop-down lists */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231a1a3a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 0.75rem;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8b8f99;
}

/* A brass line around the field you're typing in */
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(192, 177, 82, 0.55);
}

/* The consent tick box */
.field--check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}

.field--check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.3rem 0 0;
  accent-color: var(--main);
  cursor: pointer;
}

.field--check label {
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

/* Hidden spam trap */
.field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.request-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 0.4rem;
}

.request-form__actions .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.request-form__note {
  color: var(--muted);
  font-size: 0.92rem;
}

.request-form__status {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.request-form__status:empty {
  display: none;
}

/* Shown after a request is sent */
.request-done {
  padding: 2rem 2.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.request-done h3 {
  font-size: 1.6rem;
}

.request-done p {
  margin-top: 0.75rem;
}

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

.contact {
  background: var(--surface);
  border-top: 1px solid var(--rule);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

.contact__directions {
  margin-top: 2rem;
}

.contact__list {
  margin: 0;
  border-bottom: 1px solid var(--accent);
}

.contact-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.4rem 2rem;
  padding: 1.35rem 0;
}

.contact-row dt {
  color: var(--muted);
  font-size: 0.95rem;
  padding-top: 0.2rem;
}

.contact-row dd {
  margin: 0;
  color: var(--main);
  font-size: 1.2rem;
  line-height: 1.6;
}

.contact-row address {
  font-style: normal;
}

.contact-row a {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
}

.contact-row a:hover {
  background-size: 100% 1px;
}

.js .contact-row.ruled > * {
  opacity: 0;
}

.js .contact-row.ruled.is-ruled > * {
  opacity: 1;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding-block: 3.5rem 2.5rem;
  background: var(--main);
  color: var(--on-main);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(192, 177, 82, 0.45);
}

.site-footer a {
  text-decoration: none;
}

.site-footer__bottom a {
  color: var(--on-main-muted);
  transition: color 0.2s var(--ease);
}

.site-footer__bottom a:hover {
  color: var(--accent);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  color: var(--on-main-muted);
  font-size: 0.92rem;
}

/* The copyright line sits on the right */
.site-footer__copyright {
  margin-left: auto;
}

.site-footer :focus-visible {
  outline-color: var(--accent);
}

/* Privacy policy, Data security and Disclaimer links, bottom left */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer__legal a[aria-current="page"] {
  color: var(--accent);
}

/* The privacy policy link under the Request a call form */
.request__privacy a {
  color: var(--main);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

/* =========================================================
   LEGAL PAGES (privacy policy, data security, disclaimer)
   ========================================================= */

/* The midnight blue title band at the top of each page */
.page-hero {
  background: var(--main);
  color: var(--on-main);
}

.page-hero .container {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.page-hero__title {
  color: var(--on-main);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.page-hero__rule {
  width: 6rem;
  height: 2px;
  margin-top: 1.75rem;
  background: var(--accent);
}

.page-hero__date {
  margin-top: 1.25rem;
  color: var(--on-main-muted);
}

/* The page text: one comfortable reading column */
.section.legal {
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.legal__body {
  max-width: 44rem;
}

.legal__lead {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.7;
}

.legal h2 {
  margin-top: 3rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--accent);
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  line-height: 1.25;
}

.legal p,
.legal ul,
.legal dl {
  margin-top: 1rem;
}

.legal ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal li + li {
  margin-top: 0.6rem;
}

.legal li::marker {
  color: var(--accent);
}

/* The first heading on a page sits closer to the top */
.legal__body > h2:first-child {
  margin-top: 0;
}

/* Labels such as "India:" in the main colour (Prata has no bold) */
.legal strong {
  font-weight: 400;
  color: var(--main);
}

.legal a {
  color: var(--main);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.legal a:hover {
  text-decoration-color: currentColor;
}

/* Contact details box (address, Grievance Officer) */
.legal__details {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.legal__details dt {
  color: var(--muted);
}

.legal__details dd {
  margin: 0;
}

/* =========================================================
   SMALLER SCREENS
   ========================================================= */

@media (max-width: 900px) {
  .hero__inner {
    min-height: 0;
    padding-top: calc(var(--header-h) + 3.5rem);
    padding-bottom: 4.5rem;
  }

  .section-head,
  .about__grid {
    grid-template-columns: 1fr;
  }

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

  .service {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .service > :not(.service__name) {
    grid-column: 1;
  }

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

  .request__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .partners {
    grid-template-columns: minmax(0, 34rem);
  }
}

@media (max-width: 520px) {
  .sectors__list {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    align-self: stretch;
  }

  .hero__actions .btn,
  .uk__action .btn,
  .request-form__actions .btn {
    width: 100%;
    flex: 1 1 100%;
  }

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

  .partner {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    column-gap: 1.25rem;
  }

  .partner__name {
    font-size: 1.35rem;
  }

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

  .legal__details {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .legal__details dd + dt {
    margin-top: 0.7rem;
  }

  .site-footer__copyright {
    margin-left: 0;
  }

  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   For visitors who turn off animations in their device settings
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
