/* ==========================================================================
   AMS Global NG Ltd
   1. Tokens   2. Base   3. Layout   4. Components   5. Sections
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --color-navy: #1b2f4b;
  --color-navy-dark: #12223a;
  --color-ink: #17212f;
  --color-text: #3b4554;
  --color-muted: #64707f;
  --color-surface: #ffffff;
  --color-tint: #f5f7fa;
  --color-border: #e3e8ef;
  --color-green: #1f8f4e;
  --color-blue: #2f5bd3;
  --color-whatsapp: #1fa855;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.625rem);
  --text-hero: clamp(2.25rem, 1.4rem + 3.6vw, 4.125rem);

  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card: 0 1px 2px rgb(18 34 58 / 6%), 0 8px 24px rgb(18 34 58 / 7%);
  --shadow-raised: 0 1px 2px rgb(18 34 58 / 6%), 0 16px 36px rgb(18 34 58 / 12%);

  --header-height: 72px;
  --container: 1160px;
  --gutter-left: max(16px, env(safe-area-inset-left, 0px));
  --gutter-right: max(16px, env(safe-area-inset-right, 0px));

  color-scheme: light;
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

/* Paints the phone status-bar area above the fixed header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: env(safe-area-inset-top, 0px);
  background: var(--color-navy-dark);
}

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

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

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

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-navy);
  color: var(--color-surface);
}

.skip-link:focus {
  top: calc(env(safe-area-inset-top, 0px) + 12px);
}

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

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

/* 3. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
}

.section {
  padding-block: 96px;
}

.section--tinted {
  background: var(--color-tint);
}

.section__action {
  margin-top: 40px;
  text-align: center;
}

.grid {
  display: grid;
  gap: 24px;
}

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

/* 4. Components
   ========================================================================== */

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgb(18 34 58 / 20%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: var(--text-base);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.brand__suffix {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.brand--light {
  color: var(--color-surface);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 0.9375rem/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button--primary {
  background: var(--color-navy);
  color: var(--color-surface);
}

.button--primary:hover {
  background: var(--color-navy-dark);
}

.button--light {
  background: var(--color-surface);
  color: var(--color-ink);
}

.button--light:hover {
  background: #e9edf3;
}

.button--ghost {
  border-color: rgb(255 255 255 / 70%);
  color: var(--color-surface);
}

.button--ghost:hover {
  border-color: var(--color-surface);
  background: var(--color-surface);
  color: var(--color-navy);
}

.button--outline {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
}

.button--outline:hover {
  border-color: var(--color-navy);
}

.button--whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-surface);
}

.button__icon {
  width: 18px;
  height: 18px;
}

.button--block {
  width: 100%;
  padding-block: 16px;
}

/* Section heading */
.section-heading {
  margin-bottom: 56px;
  text-align: center;
}

.section-heading__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-heading__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--color-navy);
}

.section-heading__lead {
  max-width: 60ch;
  margin: 18px auto 0;
  font-size: var(--text-lg);
  color: var(--color-muted);
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf1f7;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-navy);
}

/* Inline link with arrow */
.text-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* 5. Sections
   ========================================================================== */

/* Header */
.site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  inset-inline: 0;
  z-index: 50;
  color: var(--color-surface);
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.site-header.is-solid {
  background: var(--color-surface);
  box-shadow: 0 1px 0 var(--color-border), 0 8px 24px rgb(18 34 58 / 6%);
  color: var(--color-ink);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height);
}

.site-nav__list {
  display: flex;
  gap: 32px;
}

.site-nav__link {
  position: relative;
  padding-block: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.site-nav__link:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  padding: 8px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* Hero */
.hero {
  position: relative;
  height: min(92vh, 760px);
  min-height: 540px;
  overflow: hidden;
  background: var(--color-navy-dark);
  color: var(--color-surface);
}

/* Add photos as assets/images/hero-*.jpg; the gradient shows until then */
.hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(10 18 30 / 45%), rgb(10 18 30 / 60%));
}

/* Brighter photo, so it needs a deeper overlay for readable text */
.hero__slide--property::before {
  background: linear-gradient(rgb(10 18 30 / 55%), rgb(10 18 30 / 68%));
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__slide--materials {
  background-position: center 55%;
  background-image:
    url("../images/hero-materials.jpg"),
    linear-gradient(135deg, #46566b, #1b2f4b 55%, #101b2c);
}

.hero__slide--fertilizer {
  background-position: center 62%;
  background-image:
    url("../images/hero-fertilizer.jpg"),
    linear-gradient(180deg, #607585, #3f5a46 60%, #213d29);
}

.hero__slide--property {
  background-position: center 45%;
  background-image:
    url("../images/hero-property.jpg"),
    linear-gradient(160deg, #34496a, #15253d);
}

.hero__content {
  position: relative;
  max-width: 880px;
  padding: calc(var(--header-height) + 24px) var(--gutter-right) 48px var(--gutter-left);
}

.hero__title {
  margin-bottom: 16px;
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 46ch;
  margin: 0 auto 32px;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  color: rgb(255 255 255 / 92%);
}

.hero__slide.is-active .hero__content > * {
  animation: hero-rise 0.8s both;
}

.hero__slide.is-active .hero__content > :nth-child(2) {
  animation-delay: 0.1s;
}

.hero__slide.is-active .hero__content > :nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes hero-rise {
  from {
    transform: translateY(16px);
  }
}

.hero__dots {
  position: absolute;
  inset: auto 0 28px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 45%);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.hero__dot[aria-current="true"] {
  background: var(--color-surface);
  transform: scale(1.2);
}

/* About */
.about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.about__logo {
  width: clamp(180px, 22vw, 240px);
  height: auto;
  margin-bottom: 28px;
  border-radius: 50%;
  box-shadow: var(--shadow-raised);
}

.about__name {
  margin-bottom: 16px;
  font-size: var(--text-xl);
  font-weight: 700;
}

.about__copy p {
  margin-bottom: 18px;
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--color-text);
}

.focus-panel {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--color-navy);
  color: var(--color-surface);
}

.focus-panel__title {
  margin-bottom: 10px;
  font-size: var(--text-lg);
  font-weight: 700;
}

.focus-panel p {
  margin-bottom: 24px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgb(255 255 255 / 85%);
}

.focus-panel__steps {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  counter-reset: step;
}

.focus-panel__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  counter-increment: step;
}

.focus-panel__steps li::before {
  content: counter(step);
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.focus-panel__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fact {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 18px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-navy);
  text-align: center;
}

.fact dd {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.fact dt {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Services */
.service {
  padding: 24px 24px 28px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s;
}

.service:hover {
  box-shadow: var(--shadow-raised);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: var(--radius-sm);
  background: var(--color-navy);
  color: var(--color-surface);
}

.service__icon svg {
  width: 22px;
  height: 22px;
}

.service__title {
  margin-bottom: 10px;
  font-size: var(--text-lg);
  font-weight: 700;
}

.service__text {
  margin-bottom: 18px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.partner-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-text);
}

.partner-badge__logos {
  display: flex;
  flex: none;
  gap: 6px;
}

.partner-badge__logo {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
}

.partner-badge strong {
  color: var(--color-ink);
}

/* Distributor partners */
.section--partners {
  padding-block: 72px;
  border-top: 1px solid var(--color-border);
}

.section--partners .section-heading {
  margin-bottom: 40px;
}

.partners {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 140px;
  gap: 14px;
  max-width: 240px;
  padding: 24px 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.partner__logo {
  width: clamp(88px, 22vw, 112px);
  height: clamp(88px, 22vw, 112px);
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.partner__name {
  font-weight: 700;
  color: var(--color-ink);
}

/* Team */
.team {
  display: grid;
  gap: 40px;
}

.team__row {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.team__row .member {
  width: min(100%, 300px);
}

.member {
  padding: 28px 20px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.member--lead {
  justify-self: center;
  width: 100%;
  max-width: 440px;
  padding: 36px 28px;
}

.member__photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
}

.member--lead .member__photo {
  width: clamp(200px, 26vw, 240px);
  height: clamp(200px, 26vw, 240px);
  margin-bottom: 22px;
  border: 5px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-navy), var(--shadow-raised);
}

.member__photo--initials {
  display: grid;
  place-items: center;
  background: #dfe5ee;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
}

.member__name {
  margin-bottom: 2px;
  font-size: var(--text-base);
  font-weight: 700;
}

.member--lead .member__name {
  font-size: var(--text-xl);
}

.member__role {
  margin-bottom: 10px;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.member--lead .member__role {
  font-size: var(--text-base);
}

.member__bio {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.member--lead .member__bio {
  font-size: 0.9375rem;
}

/* Audience cards */
.audience {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.audience__band {
  display: grid;
  place-items: center;
  height: 120px;
  color: rgb(255 255 255 / 90%);
}

.audience__band svg {
  width: 40px;
  height: 40px;
}

.audience__band--navy { background: var(--color-navy); }
.audience__band--green { background: var(--color-green); }
.audience__band--blue { background: var(--color-blue); }

.audience__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.audience__title {
  margin-bottom: 8px;
  font-size: var(--text-lg);
  font-weight: 700;
}

.audience__text {
  flex: 1;
  margin-bottom: 18px;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.audience__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-inline: auto;
}

.faq__item {
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s;
}

.faq__item[open] .faq__question::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq__answer {
  padding: 0 20px 20px;
  color: var(--color-muted);
}

/* Quote dialog */
.quote-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: 0 24px 64px rgb(10 18 30 / 35%);
  overflow: auto;
}

.quote-dialog::backdrop {
  background: rgb(10 18 30 / 60%);
}

.quote-dialog[open] {
  animation: dialog-in 0.25s ease-out;
}

@keyframes dialog-in {
  from {
    transform: translateY(12px) scale(0.98);
  }
}

.quote-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0;
}

.quote-dialog__title {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.quote-dialog__lead {
  margin-top: 4px;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.quote-dialog__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--color-tint);
  color: var(--color-ink);
  cursor: pointer;
}

.quote-dialog__close:hover {
  background: var(--color-border);
}

.quote-dialog__close svg {
  width: 20px;
  height: 20px;
}

.quote-dialog .quote-form {
  padding: 20px 24px 24px;
  box-shadow: none;
}

.quote-form {
  background: var(--color-surface);
}

.quote-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.field__input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d3dae4;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--color-ink);
}

.field__input:focus {
  border-color: var(--color-navy);
  outline: none;
  box-shadow: 0 0 0 3px rgb(27 47 75 / 15%);
}

.field__input--area {
  min-height: 130px;
  resize: vertical;
}

.quote-form__error {
  margin-bottom: 12px;
  font-size: var(--text-sm);
  color: #b42318;
}

.quote-result {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--color-tint);
  font-size: var(--text-sm);
}

.quote-result__title {
  font-weight: 700;
}

.quote-result__preview {
  max-height: 180px;
  margin: 12px 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font: 0.8125rem/1.55 var(--font-sans);
  white-space: pre-wrap;
}

.quote-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-result__actions .button {
  padding: 10px 14px;
  font-size: var(--text-sm);
}

/* Contact fallback (shown only where the page can't open the phone or email app) */
.call-toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 12px 12px 18px;
  border-radius: var(--radius-md);
  background: var(--color-navy-dark);
  color: var(--color-surface);
  box-shadow: 0 16px 40px rgb(10 18 30 / 35%);
  transform: translateX(-50%);
}

.call-toast__number {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--text-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  user-select: all;
}

.call-toast .button {
  padding: 10px 14px;
  font-size: var(--text-sm);
}

/* Call to action */
.cta {
  padding-block: 80px;
  background: var(--color-navy);
  color: var(--color-surface);
  text-align: center;
}

.cta__title {
  margin-bottom: 14px;
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta__lead {
  max-width: 56ch;
  margin: 0 auto 32px;
  font-size: var(--text-lg);
  color: rgb(255 255 255 / 85%);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.site-footer {
  padding-block: 56px 28px;
  background: var(--color-navy-dark);
  font-size: 0.9375rem;
  color: rgb(255 255 255 / 72%);
}

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

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.site-footer__tagline {
  margin-top: 14px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-surface);
}

.site-footer__tagline span {
  color: #e2b955;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 48px;
  padding-block: 36px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.site-footer__heading {
  margin-bottom: 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-surface);
}

.site-footer__legal {
  padding-top: 24px;
  font-size: var(--text-sm);
  text-align: center;
}

/* Footer contact links */
.contact-links {
  display: grid;
  gap: 14px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--color-surface);
}

.contact-link__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-surface);
  transition: transform 0.2s;
}

.contact-link:hover .contact-link__icon {
  transform: scale(1.08);
}

.contact-link__icon svg {
  width: 17px;
  height: 17px;
}

.contact-link__icon--call { background: var(--color-blue); }
.contact-link__icon--email { background: #d14b3d; }
.contact-link__icon--whatsapp { background: var(--color-whatsapp); }
.contact-link__icon--instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }

/* Footer branch cards */
.branch-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.branch-card {
  display: flex;
  align-items: stretch;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 4%);
  transition: border-color 0.2s, background-color 0.2s;
}

.branch-card:hover {
  border-color: rgb(255 255 255 / 30%);
  background: rgb(255 255 255 / 7%);
}

/* Stylised street map drawn in CSS: blocks, two roads and a pin */
.branch-card__map {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 88px;
  min-height: 88px;
  background-color: #e8ecef;
  background-image:
    linear-gradient(90deg, transparent 46%, #ffffff 46%, #ffffff 54%, transparent 54%),
    linear-gradient(0deg, transparent 58%, #ffffff 58%, #ffffff 64%, transparent 64%),
    linear-gradient(28deg, transparent 47%, #f4d58d 47%, #f4d58d 52%, transparent 52%),
    repeating-linear-gradient(90deg, #dde3e8 0 22px, transparent 22px 30px),
    repeating-linear-gradient(0deg, #dde3e8 0 18px, transparent 18px 26px);
}

.branch-card__pin {
  width: 26px;
  height: 26px;
  color: #d14b3d;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / 25%));
  transition: transform 0.25s;
}

.branch-card:hover .branch-card__pin {
  transform: translateY(-4px);
}

.branch-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
}

.branch-card__name {
  font-weight: 700;
  color: var(--color-surface);
}

.branch-card__address {
  flex: 1;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.branch-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-surface);
}

.branch-card__cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}

.branch-card:hover .branch-card__cta svg {
  transform: translateX(3px);
}

/* Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }

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

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    inset-inline: 0;
    padding: 8px var(--gutter-right) 16px var(--gutter-left);
    background: var(--color-surface);
    box-shadow: 0 16px 24px rgb(18 34 58 / 12%);
  }

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

  .site-nav__link {
    display: block;
    padding-block: 12px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-ink);
  }
}

@media (max-width: 600px) {
  .section {
    padding-block: 72px;
  }

  .grid--3,
  .quote-form__row,
  .branch-list {
    grid-template-columns: 1fr;
  }

  .team__row {
    flex-direction: column;
    align-items: center;
  }

  .about__logo {
    margin-inline: auto;
  }

  .cta__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .cta__actions .button:nth-child(-n + 2) {
    grid-column: 1 / -1;
  }
}
