/* JCB Home Technologies — brand palette from logo */
:root {
  --red: #d61f26;
  --red-dark: #b4181e;
  --black: #111111;
  --charcoal: #1c1c1c;
  --gray: #6a6a6a;
  --gray-mid: #8a8a8a;
  --gray-light: #e8e8e8;
  --off-white: #f7f7f5;
  --white: #ffffff;
  --max: 1120px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red-dark);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.15rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-link img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  color: #fff;
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--red);
  padding-bottom: 0.15rem;
}

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.55rem 1rem;
  border-radius: 2px;
  opacity: 1 !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(17, 17, 17, 0.82) 0%, rgba(17, 17, 17, 0.55) 48%, rgba(214, 31, 38, 0.28) 100%),
    url("../images/hero.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__content {
  padding: 7.5rem 0 4.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero__brand {
  margin: 0 0 1.5rem;
  opacity: 0;
  animation: rise-in 0.8s ease forwards 0.15s;
}

.hero__brand img {
  width: min(420px, 88vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  max-width: 14ch;
  opacity: 0;
  animation: rise-in 0.8s ease forwards 0.35s;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  animation: rise-in 0.8s ease forwards 0.5s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  opacity: 0;
  animation: rise-in 0.8s ease forwards 0.65s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(214, 31, 38, 0.35);
}

.btn--primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: #fff;
}

.btn--dark {
  background: var(--black);
  color: var(--white);
}

.btn--dark:hover {
  background: #000;
  color: var(--white);
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section--light {
  background: var(--white);
}

.section--muted {
  background: var(--off-white);
}

.section--dark {
  background: var(--charcoal);
  color: var(--white);
}

.section__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  color: var(--black);
}

.section--dark h2 {
  color: var(--white);
}

.section__intro {
  margin: 0 0 2.25rem;
  max-width: 48ch;
  color: var(--gray);
  font-size: 1.05rem;
}

.section--dark .section__intro {
  color: rgba(255, 255, 255, 0.72);
}

/* Services — not cards; open layout with rules */
.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gray-light);
}

.service-item {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) 1fr;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-light);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-item.is-visible {
  opacity: 1;
  transform: none;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--black);
}

.service-item p {
  margin: 0;
  color: var(--gray);
}

.cap-note {
  margin-top: 2rem;
  padding: 1.1rem 0 0;
  border-top: 2px solid var(--red);
  font-weight: 600;
  color: var(--charcoal);
}

.cap-note span {
  color: var(--red);
}

/* Why / focus strip */
.focus-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.focus-strip article h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
}

.focus-strip article p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
}

.focus-strip article {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.focus-strip article.is-visible {
  opacity: 1;
  transform: none;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 8rem 0 3rem;
  background:
    linear-gradient(105deg, rgba(17, 17, 17, 0.9), rgba(214, 31, 38, 0.55)),
    url("../images/hero.jpg") center / cover no-repeat;
  color: var(--white);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

.page-hero p {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.85);
}

.site-header--solid {
  position: absolute;
}

/* Pricing table */
.price-groups {
  display: grid;
  gap: 2.75rem;
}

.price-group h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.85rem;
  color: var(--black);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: top;
}

.price-table th {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: var(--black);
}

.price-table tbody tr {
  transition: background 0.2s ease;
}

.price-table tbody tr:hover {
  background: rgba(214, 31, 38, 0.04);
}

.price-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--gray);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.35rem;
}

.contact-details dt {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.2rem;
}

.contact-details dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--black);
}

.contact-details a {
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-details a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.license-box {
  margin-top: 0.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--gray-light);
}

.license-box strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.license-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.04em;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--gray-light);
  border-radius: 2px;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(214, 31, 38, 0.15);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray);
  min-height: 1.4em;
}

.form-status.is-success {
  color: #1a7a3a;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-footer img {
  height: 40px;
  width: auto;
  opacity: 0.95;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
}

.footer-meta {
  text-align: right;
}

.footer-meta .license {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Animations */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.6%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__media {
    transform: none;
  }

  .service-item,
  .focus-strip article,
  .hero__brand,
  .hero h1,
  .hero__lead,
  .hero__actions {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .focus-strip {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(17, 17, 17, 0.96);
    padding: 0.5rem;
    border-radius: 4px;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1rem;
  }

  .nav-cta {
    text-align: center;
    margin: 0.35rem;
  }

  .footer-meta {
    text-align: left;
  }

  .hero__content {
    padding-bottom: 3.25rem;
  }
}

@media (max-width: 520px) {
  .logo-link img {
    height: 42px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
