/* Researchive Tech */

:root {
  --navy: #1b2a4a;
  --navy-dark: #131f38;
  --teal: #0b7a76;
  --teal-logo: #0e9f9a;
  --teal-light: #2ec4be;
  --gold: #e8a33d;
  --gold-dark: #d18e28;
  --grey: #f5f7fa;
  --line: #dde2e8;
  --text: #1f2933;
  --muted: #52606d;
  --white: #fff;

  --heading: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --body: 'Open Sans', 'Segoe UI', Arial, sans-serif;

  --radius: 4px;
  --header-h: 72px;
  --wrap: 1160px;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

h1,
h2,
h3 {
  font-family: var(--heading);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal);
}

a:hover {
  color: var(--navy);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 11px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--heading);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

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

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy-dark);
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-large {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}

.brand:hover {
  color: var(--navy);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.main-nav ul a {
  position: relative;
  display: block;
  padding: 6px 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.93rem;
  white-space: nowrap;
  transition: color 0.15s;
}

/* underline that grows in from the left on hover, and stays for the current page */
.main-nav ul a::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -2px;
  height: 2px;
  background: var(--teal-logo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav ul a:hover {
  color: var(--teal);
}

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

.main-nav ul a.active {
  color: var(--navy);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 1100px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 12px 24px 32px;
    background: var(--white);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
  }

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

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

  .main-nav ul a {
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .main-nav ul a.active {
    text-decoration: none;
    color: var(--teal);
  }
}

/* Hero */

.hero {
  background: var(--grey);
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.hero-title {
  font-size: clamp(1.9rem, 3.1vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 0;
  max-width: 34em;
}

/* On wider screens the photo runs from the top of the title to the bottom of the ticks */
@media (min-width: 901px) {
  .hero-grid {
    align-items: stretch;
  }

  .hero-image {
    position: relative;
    min-height: 300px;
  }

  .hero-image .photo {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    height: 100%;
  }
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 40px;
  list-style: none;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 600;
}

.trust li {
  position: relative;
  padding-left: 24px;
}

.trust li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--teal-logo);
  border-bottom: 2px solid var(--teal-logo);
  transform: rotate(-45deg);
}

@media (max-width: 400px) {
  .trust {
    column-gap: 20px;
    font-size: 0.88rem;
  }
}

.hero-image img {
  display: block;
  width: 100%;
}

@media (max-width: 900px) {
  .hero {
    padding: 40px 0 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-image {
    max-width: 520px;
  }
}

/* Inner page heading */

.page-head {
  background: var(--navy);
  color: #c9d4e0;
  padding: 56px 0 52px;
}

.page-head h1 {
  color: var(--white);
  max-width: 820px;
}

.page-head .subtitle {
  font-family: var(--heading);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 12px;
}

.page-head p {
  max-width: 700px;
  font-size: 1.05rem;
  margin: 0;
}

/* Sections */

.section {
  padding: 80px 0;
}

.section-grey {
  background: var(--grey);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--muted);
}

@media (max-width: 720px) {
  .section {
    padding: 56px 0;
  }
}

/* How we help */

.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.intro-split h2 {
  margin: 0;
}

.intro-split p {
  color: var(--muted);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.help-item {
  border-top: 3px solid var(--navy);
  padding-top: 18px;
}

.help-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 960px) {
  .intro-split {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

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

/* Services */

.service {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.service:last-child {
  border-bottom: 1px solid var(--line);
}

.service-num {
  display: block;
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 4px;
}

.service h3 {
  font-size: 1.15rem;
  margin: 0;
}

.service-intro {
  margin-bottom: 10px;
  font-weight: 600;
}

.service ul {
  columns: 2;
  column-gap: 32px;
  padding-left: 18px;
}

.service li {
  padding: 2px 0;
  break-inside: avoid;
}

.service li::marker {
  color: var(--teal-logo);
}

.service-note {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--teal-logo);
  color: var(--muted);
  font-size: 0.95rem;
}

.more-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.93rem;
}

@media (max-width: 800px) {
  .service {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px 0;
  }
}

@media (max-width: 520px) {
  .service ul {
    columns: 1;
  }
}

/* Who we support */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.audience {
  background: var(--white);
  padding: 28px 30px;
}

.audience p {
  margin: 0;
  color: var(--muted);
}

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

/* Research journey */

.journey-section {
  background: var(--navy);
  color: #c9d4e0;
}

.journey-section h2 {
  color: var(--white);
}

.journey {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  list-style: none;
  position: relative;
}

.journey::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--teal-light);
  opacity: 0.6;
}

.journey li {
  position: relative;
  padding-top: 30px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--white);
}

.journey li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--teal-light);
}

.journey li:last-child::before {
  background: var(--teal-light);
}

.journey .step-no {
  display: block;
  font-size: 0.78rem;
  color: var(--teal-light);
  margin-bottom: 2px;
}

@media (max-width: 1000px) {
  .journey {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 460px;
  }

  .journey::before {
    top: 6px;
    bottom: 6px;
    left: 6px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .journey li {
    padding: 0 0 18px 34px;
    font-size: 1rem;
  }

  .journey li:last-child {
    padding-bottom: 0;
  }

  .journey li::before {
    top: 4px;
  }
}

/* Why choose us */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
}

.why-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.why-item h3 {
  margin-bottom: 6px;
}

.why-item p {
  margin: 0;
  color: var(--muted);
}

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

/* Packages */

.packages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.package {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 28px 24px;
}

.package h3 {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.package-for {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.ticks {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.ticks li {
  position: relative;
  padding: 4px 0 4px 24px;
  font-size: 0.95rem;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--teal-logo);
  border-bottom: 2px solid var(--teal-logo);
  transform: rotate(-45deg);
}

.package .btn {
  align-self: flex-start;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .packages {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Consultation form */

.form-section .section-head,
.enquiry-form,
.form-success {
  max-width: 780px;
}

.enquiry-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.field {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field > label,
.field legend,
.field .label {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}

.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c5ccd5;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--white);
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 159, 154, 0.2);
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 16px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.checks input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--teal);
}

.file-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #c5ccd5;
  border-radius: var(--radius);
  cursor: pointer;
}

.file-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-box:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 159, 154, 0.2);
}

.file-btn {
  padding: 5px 12px;
  background: var(--grey);
  border: 1px solid #c5ccd5;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.file-name {
  font-size: 0.93rem;
  color: var(--muted);
  word-break: break-all;
}

.file-name.has-file {
  color: var(--text);
}

.file-hint {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error .file-box {
  border-color: #b42318;
}

.field-error {
  margin: 6px 0 0;
  color: #b42318;
  font-size: 0.87rem;
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-left: 3px solid #b42318;
  background: #fdf1f0;
  color: #b42318;
  font-size: 0.93rem;
}

.form-success {
  padding: 24px 28px;
  border-left: 4px solid var(--teal-logo);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.form-success h3 {
  margin: 0;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .enquiry-form {
    padding: 22px 18px;
  }

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

/* Data analysis steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  list-style: none;
}

.steps li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.step-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 4px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Research paper list */

.assist-list {
  columns: 3;
  column-gap: 40px;
  padding-left: 18px;
  max-width: 860px;
}

.assist-list li {
  padding: 5px 0;
  break-inside: avoid;
}

.assist-list li::marker {
  color: var(--teal-logo);
}

@media (max-width: 760px) {
  .assist-list {
    columns: 2;
  }
}

@media (max-width: 440px) {
  .assist-list {
    columns: 1;
  }
}

/* Call to action strip */

.cta-strip {
  background: var(--navy);
  padding: 48px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-strip h2 {
  color: var(--white);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin: 0;
}

/* About */

.positioning {
  font-family: var(--heading);
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 8px;
}

.tagline {
  font-family: var(--heading);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.placeholder {
  color: var(--muted);
  margin: 0;
}

/* Footer */

.site-footer {
  background: var(--navy-dark);
  color: #aebccb;
  padding: 26px 0;
  font-size: 0.92rem;
}

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

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

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

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-footer {
    padding-bottom: 96px;
  }
}

/* WhatsApp button */

.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: #25d366;
  color: #073b1c;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.whatsapp:hover {
  background: #1fbe5b;
  color: #073b1c;
}

.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
}

.whatsapp-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.whatsapp-text strong {
  font-size: 0.9rem;
}

.whatsapp-text small {
  font-size: 0.76rem;
}

@media (max-width: 900px) {
  .whatsapp {
    padding: 8px;
    border-radius: 50%;
  }

  .whatsapp-text {
    display: none;
  }
}

/* Photos */

.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--line);
}

.hero-image .photo {
  aspect-ratio: 3 / 2;
}

/* Who we support: photo beside the 2x2 grid */

.support-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 32px;
  align-items: stretch;
}

.support-layout .photo {
  min-height: 260px;
}

@media (max-width: 860px) {
  .support-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .support-layout .photo {
    height: 220px;
    min-height: 0;
  }
}

/* Consultation form with a photo alongside */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 40px;
  align-items: start;
}

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

.form-photo .photo {
  aspect-ratio: 2 / 3;
}

@media (max-width: 960px) {
  .form-layout {
    grid-template-columns: 1fr;
  }

  .form-photo {
    display: none;
  }
}

/* Inner page heading with a photo */

.page-head-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.page-head-grid .photo {
  aspect-ratio: 3 / 2;
}

@media (max-width: 860px) {
  .page-head-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-head-grid .photo {
    max-width: 520px;
  }
}

/* Data analysis: photo beside the workflow steps */

.workflow-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.workflow-layout .photo {
  aspect-ratio: 4 / 5;
  object-position: 72% 50%;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.workflow-layout .steps {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .workflow-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .workflow-layout .photo {
    position: static;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  .workflow-layout .steps {
    grid-template-columns: 1fr;
  }
}

/* About: text beside a photo */

.text-photo {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.text-photo .photo {
  aspect-ratio: 4 / 3;
}

.text-photo.photo-left {
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
}

@media (max-width: 860px) {
  .text-photo {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .text-photo .photo {
    max-width: 520px;
  }
}

/* Why choose us: photo beside a single column of points */

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.why-layout .photo {
  aspect-ratio: 2 / 3;
  object-position: 60% 50%;
}

.why-layout .why-grid {
  grid-template-columns: 1fr;
}

.why-layout .why-item:first-child {
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 860px) {
  .why-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .why-layout .photo {
    aspect-ratio: 16 / 9;
    object-position: 50% 40%;
  }

  .why-layout .why-item:first-child {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
}

/* Logo */

.brand img {
  display: block;
  width: 240px;
  height: auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-brand img {
  display: block;
  width: 180px;
  height: auto;
}

@media (max-width: 420px) {
  .brand img {
    width: 200px;
  }
}

/* Phones: full-width hero buttons */
@media (max-width: 520px) {
  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- Motion ---------- */
/* Everything below only hides things when JavaScript is running (html.js),
   so the page is complete even if scripts fail. */

/* Research journey: a progress line travels from step 01 to 09 and repeats.
   The script sets --progress (distance to the current dot) and the step classes. */
.js .journey::before {
  opacity: 0.3;
}

.js .journey::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: var(--progress, 0px);
  height: 2px;
  background: var(--teal-light);
  box-shadow: 0 0 8px rgba(46, 196, 190, 0.6);
  transition: width 0.7s linear, height 0.7s linear, opacity 0.4s ease;
}

.js .journey li {
  opacity: 0.45;
  transition: opacity 0.4s ease;
}

.js .journey li::before {
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.js .journey li:last-child::before {
  background: var(--navy);
}

.js .journey li.is-done {
  opacity: 1;
}

.js .journey li.is-done::before {
  background: var(--teal-light);
}

.js .journey li.is-current::before {
  transform: scale(1.3);
  box-shadow: 0 0 0 5px rgba(46, 196, 190, 0.25);
}

/* fading back before the next loop */
.js .journey.is-resetting::after {
  opacity: 0;
}

.js .journey.no-transition::after {
  transition: none;
}

@media (max-width: 1000px) {
  .js .journey::after {
    width: 2px;
    height: var(--progress, 0px);
  }
}

/* Services and packages: quiet highlight on hover (mouse devices only) */
.service {
  position: relative;
}

.service::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 32px;
  bottom: 32px;
  width: 3px;
  background: var(--teal-logo);
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 0.25s ease;
}

.package {
  transition: box-shadow 0.2s ease;
}

@media (hover: hover) {
  .service:hover::before {
    transform: scaleY(1);
  }

  .package:hover {
    box-shadow: inset 0 0 0 2px var(--teal-logo);
  }
}

/* WhatsApp button slides in once, shortly after the page loads */
.js .whatsapp {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0.4s;
}

.js .whatsapp.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s;
}

/* Thank-you message: fades in and the tick draws itself */
.form-success {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fade-in 0.35s ease both;
}

.success-tick {
  flex-shrink: 0;
  color: var(--teal-logo);
}

.success-tick path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw 0.45s ease-out 0.25s forwards;
}

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

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Spinner on the submit button while the form is sending */
.btn.is-loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Visitors who prefer less motion get everything instantly */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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