/* Kajal Developing — site styles
   Colours are taken from the logo: navy and gold on a warm white ground. */

@font-face {
  font-family: "Red Hat Display";
  src: url("/assets/fonts/red-hat-display-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Red Hat Text";
  src: url("/assets/fonts/red-hat-text-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #051730;
  --navy-900: #071e3d;
  --navy-800: #0b2a52;
  --navy-600: #14457f;
  --gold-500: #d6a84a;
  --gold-400: #e2bd6c;
  --gold-700: #86651a;

  --ground: #faf8f3;
  --surface: #ffffff;
  --ink: #101b2b;
  --muted: #526071;
  --line: #e3ddd0;

  --font-display: "Red Hat Display", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-text: "Red Hat Text", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --radius: 6px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
  --section-y: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

html.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
address {
  margin: 0;
}

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

address {
  font-style: normal;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--navy-900);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.875rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  transition: top 0.15s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 1px 0 rgba(5, 23, 48, 0.2);
}

.btn-primary:hover {
  background: var(--navy-800);
  box-shadow: 0 10px 24px -12px rgba(5, 23, 48, 0.55);
}

.btn-ghost {
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.btn-ghost:hover {
  background: var(--navy-900);
  color: #fff;
}

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

.btn-gold:hover {
  background: var(--gold-400);
  box-shadow: 0 10px 24px -12px rgba(214, 168, 74, 0.7);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost-light:hover {
  border-color: #fff;
  background: #fff;
  color: var(--navy-900);
}

/* Text links with an arrow */

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  text-decoration: none;
  background: linear-gradient(var(--gold-500), var(--gold-500)) no-repeat 0 100% / 0 2px;
  padding-bottom: 3px;
  transition: background-size 0.25s var(--ease);
}

.link .icon {
  transition: transform 0.25s var(--ease);
}

.link:hover {
  background-size: 100% 2px;
}

.link:hover .icon {
  transform: translateX(4px);
}

.link-light {
  color: #fff;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(5, 23, 48, 0.45);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
}

.brand img {
  width: auto;
  height: 46px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
}

.site-nav ul {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
}

.site-nav ul a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav ul a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  min-height: 44px;
  padding: 0 1.1rem;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--navy-900);
  border-radius: var(--radius);
  background: transparent;
  color: var(--navy-900);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero {
  padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
  min-height: calc(100svh - var(--header-h) - clamp(76px, 10vw, 120px));
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 16px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--gold-700);
}

.kicker::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--gold-500);
}

.lead {
  max-width: 34em;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}

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

.facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0 clamp(24px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.875rem;
  color: var(--muted);
}

.facts dd {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 70% 0%, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}

.elevation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.elevation path {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.elevation .dims path {
  stroke: #7d9ac4;
  stroke-width: 1.25;
  opacity: 0.7;
}

.elevation .louvres {
  stroke-width: 2.5;
}

.elevation .roof {
  stroke-width: 4;
}

.elevation mask path {
  fill: #000;
  stroke: none;
}

.elevation .ground {
  stroke-width: 3;
}

.elevation .ground-2 {
  opacity: 0.45;
}

.draw {
  stroke-dasharray: 1;
  animation: draw 1.3s var(--ease) both;
}

.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.35s; }
.d3 { animation-delay: 0.6s; }
.d4 { animation-delay: 0.95s; }
.d5 { animation-delay: 1.3s; }
.d6 { animation-delay: 1.5s; }

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

/* Sections */

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

.section-surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
}

.section-head p {
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--muted);
}

.section-head p + p {
  margin-top: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

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

.sticky {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

/* Services rows */

.rows {
  border-bottom: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 6px 16px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  transition: border-color 0.25s var(--ease);
}

.row-num {
  grid-row: span 2;
  padding-top: 3px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-700);
  font-variant-numeric: tabular-nums;
}

.row h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  transition: transform 0.25s var(--ease);
}

.row p {
  max-width: 34em;
  color: var(--muted);
}

.row:hover {
  border-top-color: var(--gold-500);
}

.row:hover h3 {
  transform: translateX(6px);
}

/* Approach steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--navy-900);
}

.step::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--gold-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--surface);
}

.step-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-500);
}

.step p {
  margin-top: 10px;
  color: var(--muted);
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(40px, 5vw, 64px);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -24px rgba(5, 23, 48, 0.4);
}

.card h3 {
  font-size: 1.375rem;
}

.card p {
  margin: 12px 0 28px;
  color: var(--muted);
}

.card .link {
  margin-top: auto;
}

/* Company record */

.record {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record > div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px clamp(18px, 2.4vw, 28px);
}

.record > div + div {
  border-top: 1px solid var(--line);
}

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

.record dd {
  font-weight: 600;
  color: var(--navy-900);
}

.record a {
  text-decoration-color: var(--gold-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.record a:hover {
  text-decoration-color: var(--navy-900);
}

/* Contact band */

.contact {
  background: radial-gradient(90% 120% at 100% 0%, var(--navy-800) 0%, var(--navy-900) 50%, var(--navy-950) 100%);
  color: #fff;
}

.contact h2,
.contact h3 {
  color: #fff;
}

.contact .section-head p {
  color: #c3cede;
}

.contact-list {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-list > li > .icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  color: var(--gold-500);
  border: 1px solid rgba(214, 168, 74, 0.45);
  border-radius: 50%;
}

.contact-list h3 {
  font-family: var(--font-text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #a9b8cd;
}

.contact-list a:not(.link),
.contact-list address {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  overflow-wrap: anywhere;
}

.contact-list a:not(.link) {
  text-decoration: underline transparent 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s var(--ease);
}

.contact-list a:not(.link):hover {
  text-decoration-color: var(--gold-500);
}

.contact-list .link {
  margin-top: 12px;
  font-size: 1rem;
}

/* Footer */

.site-footer {
  padding-block: 48px calc(40px + env(safe-area-inset-bottom));
  background: var(--navy-950);
  color: #a9b8cd;
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.site-footer .brand img {
  height: 52px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.site-footer ul a {
  color: #dbe3ee;
  text-decoration: underline transparent 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}

.site-footer ul a:hover {
  color: #fff;
  text-decoration-color: var(--gold-500);
}

.legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}

.legal p + p {
  margin-top: 4px;
}

/* Mobile call and email bar */

.action-bar {
  display: none;
}

/* Plain pages (privacy, not found) */

.page {
  padding-block: clamp(48px, 8vw, 96px) var(--section-y);
}

.prose {
  max-width: 44rem;
}

.prose h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
}

.prose h2 {
  margin-top: 48px;
  font-size: 1.5rem;
}

.prose p,
.prose ul {
  margin-top: 16px;
  color: var(--muted);
}

.prose .lead {
  margin-top: 20px;
}

.prose ul {
  padding-left: 1.2em;
  list-style: disc;
}

.prose li + li {
  margin-top: 6px;
}

.prose a:not(.btn) {
  color: var(--navy-900);
  font-weight: 600;
  text-decoration-color: var(--gold-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.prose a:not(.btn):hover {
  text-decoration-color: var(--navy-900);
}

/* Tablet */

@media (max-width: 1080px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 32px;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--ground);
    border-top: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s 0.2s;
  }

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

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

  .site-nav ul a {
    padding: 18px 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-900);
    border-bottom: 1px solid var(--line);
  }

  .site-nav ul a::after {
    display: none;
  }

  .nav-cta {
    min-height: 56px;
    font-size: 1.0625rem;
  }

  .brand img {
    height: 40px;
  }

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

  .hero-visual {
    min-height: 0;
    aspect-ratio: 16 / 11;
  }

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

  .sticky {
    position: static;
  }

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

/* Phone */

@media (max-width: 640px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .hero .actions .btn,
  .contact .actions .btn {
    flex: 1 1 100%;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }

  .facts dd {
    margin-top: 0;
    font-size: 1rem;
  }

  .hero-visual {
    aspect-ratio: 4 / 3.4;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }

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

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

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .action-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--ground);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px -18px rgba(5, 23, 48, 0.5);
  }

  .action-bar .btn:hover {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}

@media print {
  .site-header,
  .action-bar,
  .hero-visual {
    display: none;
  }
}
