@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/archivo-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/**
 * Afri Fence — design tokens & layout matching Lovable preview.
 */

:root {
  --radius: 0.25rem;
  --background: #f7f8f9;
  --background: oklch(98.5% 0.002 250);
  --foreground: #1a1d21;
  --foreground: oklch(17% 0.008 255);
  --primary: #d62828;
  --primary: oklch(55% 0.22 28);
  --primary-foreground: #fff;
  --primary-foreground: oklch(99% 0 0);
  --secondary: #2a2e33;
  --secondary: oklch(22% 0.008 255);
  --secondary-foreground: #fff;
  --muted: #eef0f2;
  --muted: oklch(95% 0.004 250);
  --muted-foreground: #6b7280;
  --muted-foreground: oklch(47% 0.012 255);
  --accent: #f3e8e6;
  --accent: oklch(93% 0.025 25);
  --border: #d4d8dd;
  --border: oklch(87% 0.008 250);
  --input: #d4d8dd;
  --input: oklch(87% 0.008 250);
  --ring: #d62828;
  --ring: oklch(55% 0.22 28);
  --steel: #5c6570;
  --steel: oklch(45% 0.012 250);
  --steel-light: #e4e8ec;
  --steel-light: oklch(91% 0.008 250);
  --surface-dark: #2a2f36;
  --surface-dark: oklch(20% 0.009 250);
  --surface-deep: #171a1e;
  --surface-deep: oklch(13% 0.008 250);
  --brand-soft: #f7eeec;
  --brand-soft: oklch(96% 0.02 25);
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Archivo", system-ui, sans-serif;
  --container: 76rem;
}

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

html {
  scroll-behavior: smooth;
}

body.afrifence-body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  letter-spacing: 0;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
}

p {
  margin: 0;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

.site-wrap {
  min-height: 100vh;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .site-wrap {
    padding-bottom: 0;
  }
}

.section-shell {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.image-shade {
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--surface-deep) 94%, transparent) 0%,
    color-mix(in oklab, var(--surface-deep) 78%, transparent) 58%,
    color-mix(in oklab, var(--surface-deep) 55%, transparent) 100%
  );
}

@supports not (background: color-mix(in oklab, red, transparent)) {
  .image-shade {
    background: linear-gradient(90deg, rgba(23, 26, 30, 0.94) 0%, rgba(23, 26, 30, 0.78) 58%, rgba(23, 26, 30, 0.55) 100%);
  }
}

.steel-grid {
  background-image:
    linear-gradient(color-mix(in oklab, var(--steel) 12%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--steel) 12%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
}

@supports not (background: color-mix(in oklab, red, transparent)) {
  .steel-grid {
    background-image:
      linear-gradient(rgba(92, 101, 112, 0.12) 1px, transparent 1px),
      linear-gradient(90deg, rgba(92, 101, 112, 0.12) 1px, transparent 1px);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-sm {
  height: 2.25rem;
  padding: 0.5rem 1rem;
}

.btn-md {
  height: 2.5rem;
  padding: 0.5rem 2rem;
}

.btn-lg {
  height: 3rem;
  padding: 0.5rem 2rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.btn-primary:hover {
  filter: brightness(0.92);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  filter: brightness(1.15);
}

.btn-outline-light {
  border-color: color-mix(in oklab, var(--primary-foreground) 50%, transparent);
  background: color-mix(in oklab, var(--surface-deep) 50%, transparent);
  color: var(--primary-foreground);
}

.btn-outline-light:hover {
  background: var(--primary-foreground);
  color: var(--foreground);
}

@supports not (background: color-mix(in oklab, red, transparent)) {
  .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(23, 26, 30, 0.5);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(10px);
}

@supports not (background: color-mix(in oklab, red, transparent)) {
  .site-header {
    background: rgba(247, 248, 249, 0.95);
  }
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  height: 4rem;
}

@media (min-width: 1024px) {
  .header-inner {
    height: 5rem;
  }
}

.brand-logo {
  height: 2.75rem;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  object-position: left;
}

.brand picture {
  display: block;
  line-height: 0;
}

.brand picture img,
.brand-logo {
  height: 2.75rem;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  object-position: left;
}

@media (min-width: 1024px) {
  .brand picture img,
  .brand-logo {
    height: 3.5rem;
    max-width: 240px;
  }
}

.about__media picture {
  display: block;
}

.about__media img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.solution-card picture {
  position: absolute;
  inset: 0;
  display: block;
}

.solution-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .primary-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.nav-phone svg {
  color: var(--primary);
}

.header-mobile {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .header-mobile {
    display: none;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--accent);
}

body.nav-open .primary-nav {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 24px rgb(0 0 0 / 0.08);
}

body.nav-open .primary-nav .nav-link,
body.nav-open .primary-nav .nav-phone,
body.nav-open .primary-nav .btn {
  padding: 0.75rem 0.5rem;
}

body.nav-open .menu-toggle .icon-menu {
  display: none;
}

body.nav-open .menu-toggle .icon-close {
  display: block !important;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 610px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero {
    min-height: 660px;
  }
}

.hero picture {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -20;
}

.hero picture img,
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -20;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero .image-shade {
  position: absolute;
  inset: 0;
  z-index: -10;
}

.hero__content {
  display: flex;
  min-height: 610px;
  align-items: flex-end;
  padding-block: 7rem 3.5rem;
}

@media (min-width: 640px) {
  .hero__content {
    min-height: 660px;
    align-items: center;
    padding-block: 6rem 5rem;
  }
}

.hero__copy {
  max-width: 48rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow--light {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--steel-light);
  margin-bottom: 1.25rem;
}

.eyebrow__line {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--primary);
}

.hero h1 {
  max-width: 48rem;
  font-size: 2.25rem;
  line-height: 1.05;
  color: var(--primary-foreground);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--steel-light);
}

@media (min-width: 640px) {
  .hero__lead {
    font-size: 1.125rem;
  }
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }
}

.hero__meta {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--steel-light);
}

.hero__meta .dot {
  margin-inline: 0.5rem;
  color: var(--primary);
}

/* Highlights */
.highlights {
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.highlights__grid {
  display: grid;
}

@media (min-width: 640px) {
  .highlights__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .highlights__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.highlight {
  display: flex;
  gap: 1rem;
  padding-block: 1.5rem;
}

@media (min-width: 640px) {
  .highlight {
    padding-inline: 1.25rem;
  }

  .highlight:nth-child(even) {
    border-left: 1px solid var(--border);
  }

  .highlight:nth-child(n + 3) {
    border-top: 0;
  }
}

.highlight:not(:first-child) {
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .highlight {
    border-top: 0 !important;
    border-left: 1px solid var(--border);
  }

  .highlight:first-child {
    border-left: 0;
  }
}

.highlight__icon {
  margin-top: 0.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.highlight h3 {
  font-size: 0.875rem;
  font-family: var(--font-sans);
}

.highlight p {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

/* Sections */
.section {
  padding-block: 5rem;
}

@media (min-width: 640px) {
  .section {
    padding-block: 7rem;
  }
}

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

.section h2 {
  font-size: 1.875rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .section h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section h2 {
    font-size: 3rem;
  }
}

.section-lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.section-lead--light,
.text-light {
  color: var(--steel-light);
}

.text-light {
  color: var(--primary-foreground);
}

/* About */
.about__grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 5rem;
  }
}

.about .section-lead {
  margin-top: 1.5rem;
}

.check-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-underline-offset: 4px;
}

.link-arrow:hover {
  text-decoration: underline;
}

.about__media {
  position: relative;
}

.about__media img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.about__badge {
  position: absolute;
  bottom: -1.25rem;
  left: 1rem;
  border-left: 4px solid var(--primary);
  background: var(--surface-deep);
  padding: 1rem 1.25rem;
  color: var(--primary-foreground);
}

@media (min-width: 640px) {
  .about__badge {
    left: -1.5rem;
  }
}

.about__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.about__badge span {
  font-size: 0.75rem;
  color: var(--steel-light);
}

/* Services */
.services {
  border-block: 1px solid var(--border);
  background-color: var(--muted);
}

.services__grid {
  margin-top: 3rem;
  display: grid;
  gap: 1px;
  background: var(--border);
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--background);
  padding: 1.5rem;
  transition: background-color 0.15s ease;
}

.service-card:hover {
  background: var(--brand-soft);
}

.service-card__top {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-card__icon {
  color: var(--primary);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.service-card h3 {
  font-size: 1.125rem;
  font-family: var(--font-sans);
}

.service-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--muted-foreground);
}

.service-card__link {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.service-card:hover .service-card__link svg {
  transform: translateX(4px);
}

.service-card__link svg {
  transition: transform 0.15s ease;
}

/* Solutions */
.solutions__grid {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .solutions__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.solution-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
}

.solution-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.solution-card:hover img {
  transform: scale(1.05);
}

.solution-card__shade {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--surface-deep) 55%, transparent);
}

@supports not (background: color-mix(in oklab, red, transparent)) {
  .solution-card__shade {
    background: rgba(23, 26, 30, 0.55);
  }
}

.solution-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 25%, transparent);
  padding: 1.5rem;
  color: var(--primary-foreground);
}

.solution-card__body .eyebrow {
  margin-bottom: 0;
}

.solution-card__body h3 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
}

.solution-card__body p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--steel-light);
}

/* Why */
.why {
  background: var(--surface-deep);
  color: var(--primary-foreground);
}

.why__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .why__grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
  }
}

.why__list {
  display: grid;
  gap: 1px;
  background: color-mix(in oklab, var(--primary-foreground) 15%, transparent);
}

@media (min-width: 640px) {
  .why__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface-deep);
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.why__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--primary);
}

/* Process */
.process__grid {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .process__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  border-top: 2px solid var(--foreground);
  padding-top: 1.25rem;
}

.process-step__num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.process-step h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
  font-family: var(--font-sans);
}

.process-step p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--muted-foreground);
}

/* Gallery */
.gallery {
  background: var(--muted);
}

.gallery__grid {
  margin-top: 3rem;
  display: grid;
  grid-auto-rows: 220px;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  background: transparent;
  color: inherit;
  font: inherit;
}

@media (min-width: 640px) {
  .gallery-item--tall {
    grid-row: span 2;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in oklab, var(--surface-deep) 80%, transparent);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

@supports not (background: color-mix(in oklab, red, transparent)) {
  .gallery-item__label {
    background: rgba(23, 26, 30, 0.8);
  }
}

/* Areas */
.areas__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .areas__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

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

@media (min-width: 640px) {
  .areas__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.area-chip {
  background: var(--background);
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.area-chip svg {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--primary-foreground);
  padding-block: 4rem;
}

.cta-band__grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.cta-band__inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .cta-band__inner {
    grid-template-columns: 1fr auto;
  }
}

.cta-band h2 {
  font-size: 1.875rem;
}

@media (min-width: 640px) {
  .cta-band h2 {
    font-size: 2.25rem;
  }
}

.cta-band p {
  margin-top: 0.75rem;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  opacity: 0.9;
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cta-band__actions {
    flex-direction: row;
  }
}

.cta-band .btn-outline-light {
  border-color: color-mix(in oklab, var(--primary-foreground) 60%, transparent);
  background: transparent;
}

/* Contact */
.contact {
  background: var(--surface-dark);
  color: var(--primary-foreground);
}

.contact__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
  }
}

.contact-phone {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-block: 1px solid color-mix(in oklab, var(--primary-foreground) 15%, transparent);
  padding-block: 1.25rem;
}

.contact-phone__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  background: var(--primary);
}

.contact-phone small {
  display: block;
  text-transform: uppercase;
  color: var(--steel-light);
  font-size: 0.75rem;
}

.contact-phone strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.contact-address {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--steel-light);
}

.contact-address svg {
  margin-top: 0.25rem;
  flex-shrink: 0;
  color: var(--primary);
}

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

.quote-form {
  display: grid;
  gap: 1rem;
  background: var(--background);
  color: var(--foreground);
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .quote-form {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem;
  }
}

/* Leadflow form inside Afri Fence contact panel */
.afrifence-leadflow {
  display: block;
}

.afrifence-leadflow .lf-form-wrap {
  max-width: none;
  --lf-accent: var(--primary);
}

.afrifence-leadflow .lf-form__title,
.afrifence-leadflow .lf-form__intro {
  display: none;
}

.afrifence-leadflow .lf-form {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .afrifence-leadflow .lf-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .afrifence-leadflow .lf-form__field:has(textarea),
  .afrifence-leadflow .lf-form__field:has(input[type="email"]),
  .afrifence-leadflow .lf-form__consent,
  .afrifence-leadflow .lf-form__actions,
  .afrifence-leadflow .lf-form__error,
  .afrifence-leadflow .lf-form__success {
    grid-column: 1 / -1;
  }
}

.afrifence-leadflow .lf-form__field,
.afrifence-leadflow .lf-form__consent,
.afrifence-leadflow .lf-form__actions {
  margin: 0;
}

.afrifence-leadflow .lf-form label {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.afrifence-leadflow .lf-form input[type="text"],
.afrifence-leadflow .lf-form input[type="email"],
.afrifence-leadflow .lf-form input[type="tel"],
.afrifence-leadflow .lf-form input[type="number"],
.afrifence-leadflow .lf-form input[type="url"],
.afrifence-leadflow .lf-form select,
.afrifence-leadflow .lf-form textarea {
  margin-top: 0;
  height: auto;
  min-height: 2.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: transparent;
  padding: 0.5rem 0.75rem;
  box-shadow: none;
}

.afrifence-leadflow .lf-form textarea {
  min-height: 7.5rem;
}

.afrifence-leadflow .lf-form input:focus,
.afrifence-leadflow .lf-form select:focus,
.afrifence-leadflow .lf-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--ring);
  border-color: var(--ring);
}

.afrifence-leadflow .lf-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0.5rem 2rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.afrifence-leadflow .lf-form button:hover {
  filter: brightness(0.92);
}

.field {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  font-weight: 600;
}

.field--full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  margin-top: 0.5rem;
  width: 100%;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: transparent;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-weight: 400;
  color: inherit;
}

.field input,
.field select {
  height: 2.75rem;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--ring);
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-status.is-success {
  color: #15803d;
}

.form-status.is-error {
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--surface-deep);
  color: var(--steel-light);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  border-bottom: 1px solid color-mix(in oklab, var(--primary-foreground) 10%, transparent);
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  height: 3.5rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-blurb {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-foreground);
  font-family: var(--font-sans);
}

.footer-links {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--primary-foreground);
}

.footer-phone {
  display: block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.footer-address {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.5rem;
}

.footer-copy {
  padding-top: 1.5rem;
  font-size: 0.75rem;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 5.25rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.65rem 1rem 0.65rem 0.75rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.whatsapp-float:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.whatsapp-float svg {
  flex-shrink: 0;
}

.whatsapp-float__label {
  line-height: 1;
}

@media (min-width: 768px) {
  .whatsapp-float {
    right: 1.5rem;
    bottom: 1.5rem;
    min-height: 3.5rem;
    padding: 0.75rem 1.15rem 0.75rem 0.85rem;
  }
}

@media (max-width: 420px) {
  .whatsapp-float__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .whatsapp-float {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
  }
}

/* Mobile CTA bar */
.mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 15%, transparent);
}

@media (min-width: 768px) {
  .mobile-cta {
    display: none;
  }
}

.mobile-cta a {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-foreground);
}

.mobile-cta__call {
  background: var(--surface-deep);
}

.mobile-cta__quote {
  background: var(--primary);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: min(96vw, 1100px);
  max-height: 80vh;
  object-fit: contain;
}

.lightbox__caption {
  margin-top: 0.75rem;
  color: #fff;
  font-weight: 700;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
