/* ==========================================================================
   Jointing Tech — Fibre & Multi-Utility landing page
   Built from Figma: "jointing-tech-fibre-landing-page v3"
   ========================================================================== */

:root {
  /* Brand */
  --orange: #ee7d00;
  --orange-tint: rgba(238, 125, 0, 0.14);
  --orange-tint-soft: rgba(238, 125, 0, 0.1);

  /* Surfaces */
  --black: #000000;
  --near-black: #111111;
  --ink: #111827;
  --white: #ffffff;
  --grey-bg: #f5f5f5;

  /* Text */
  --text-body: #333333;
  --text-muted: #666666;

  /* Lines */
  --border: #e2e8f0;
  --border-soft: #e5e7eb;

  /* Type */
  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout — Figma canvas is 1440 wide with 120px gutters */
  --page-max: 1440px;
  --gutter: clamp(20px, 8.33vw, 120px);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

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

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--orange);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* Shared section typography ------------------------------------------------ */

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.15;
  color: var(--black);
}

.section-lede {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-body);
  max-width: 720px;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}
.icon--18 { width: 18px; height: 18px; }
.icon--20 { width: 20px; height: 20px; }

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: #d97100; }
.btn--primary:active { transform: translateY(1px); }
.btn--block { width: 100%; }

/* black-header-bar --------------------------------------------------------- */

.header { background: var(--black); }

.header__inner {
  min-height: 111px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo img { width: 200px; height: 62px; }

.header__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.phone-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
}
.phone-contact:hover { color: var(--orange); }

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

.icon-btn {
  width: 18px;
  height: 18px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.18s ease;
}
.icon-btn:hover { opacity: 0.65; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* orange-nav-bar ----------------------------------------------------------- */

.navbar { background: var(--orange); }

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 48px;
}

.navbar__item {
  display: inline-block;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}
.navbar__item:hover { border-bottom-color: rgba(255, 255, 255, 0.5); }
.navbar__item.is-active { border-bottom-color: var(--white); }

/* hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.hero__inner { position: relative; padding-block: 64px; }

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 760px;
}

.hero__badge {
  padding: 6px 12px;
  border: 1px solid var(--orange);
  border-radius: 2px;
  background: var(--orange-tint);
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  color: var(--white);
}

.hero__lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--white);
  opacity: 0.9;
}

.hero__actions { padding-top: 8px; }

/* trust-strip -------------------------------------------------------------- */

.trust-strip { background: var(--near-black); }

.trust-strip__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
}

/* products (split screen) -------------------------------------------------- */

.products { background: var(--white); }

.products__inner {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding-block: 80px;
}

.products__header {
  flex: none;
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-grid {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  background: var(--grey-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--near-black);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.product-chip:hover {
  background: #fff;
  border-color: var(--orange);
  transform: translateY(-1px);
  cursor: default;
}
.product-chip .icon { width: 20px; height: 20px; }
.product-chip img { width: 20px; height: 20px; }

/* why-choose-us ------------------------------------------------------------ */

.why { background: var(--grey-bg); }

.why__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: 80px;
}

.why__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.reason-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.reason-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reason-card__stat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.reason-card__tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: var(--orange-tint-soft);
}

.reason-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reason-card__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--black);
}
.reason-card__body p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
}

/* green energy callout ----------------------------------------------------- */

.callout {
  background: var(--white);
  padding-block: 40px;
}

.callout__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--black);
  border-left: 6px solid var(--orange);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.callout__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
}

.callout__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.callout__kicker {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--orange);
}

.callout__body {
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
}

/* usps (bento) ------------------------------------------------------------- */

.usps { background: var(--grey-bg); }

.usps__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 80px;
}

.usps__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.usps__header .section-title { color: var(--ink); }

.bento {
  display: flex;
  gap: 24px;
  min-height: 450px;
}

.bento__stack {
  flex: none;
  width: 500px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.usp {
  position: relative;
  flex: 1 1 0;
  min-height: 213px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.04);
  isolation: isolate;
}
.usp--featured {
  min-width: 0;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.05);
}

.usp__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.usp__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) calc(100% - 220px), rgba(0, 0, 0, 0.8) 100%);
}
.usp__scrim--sm {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) calc(100% - 180px), rgba(0, 0, 0, 0.8) 100%);
}

.usp__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 32px;
  color: var(--white);
}
.usp__text--sm {
  gap: 8px;
  padding: 20px 24px;
}

.usp__kicker {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
}

.usp__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}
.usp__title--lg { font-size: 24px; }

.usp__body {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.92;
}
.usp__body--sm { font-size: 15px; }

/* enquiry form ------------------------------------------------------------- */

.enquiry {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.enquiry__inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding-block: 80px;
}

.enquiry__info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.enquiry__headings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reassurance {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reassurance__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-body);
}

.form-panel {
  flex: none;
  width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px;
  background: var(--grey-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.05);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-body);
}
.field .req {
  color: var(--orange);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--near-black);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input { height: 48px; }
.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-tint-soft);
}

.field.is-invalid input,
.field.is-invalid textarea { border-color: #c0392b; }

.field__error {
  min-height: 0;
  font-size: 12px;
  color: #c0392b;
}
.field__error:empty { display: none; }

.form-panel__submit {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-panel__terms {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.form-panel__status {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #1e7e34;
}
.form-panel__status:empty { display: none; }

/* blog --------------------------------------------------------------------- */

.blog { background: var(--grey-bg); }

.blog__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 60px;
}

.blog__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.35);
}

.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.blog-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.blog-card__date {
  font-size: 12px;
  color: var(--text-muted);
}

.blog-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  color: var(--black);
}

.blog-card__more {
  margin-top: auto;
  font-weight: 700;
  font-size: 13px;
  color: var(--orange);
}
.blog-card__more span { font-size: 14px; }

/* partners ----------------------------------------------------------------- */

.partners { background: var(--white); }

.partners__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-block: 60px;
}

.partners__label {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.partners__row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 16px 24px;
  background: var(--grey-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-body);
  text-align: center;
}

/* footer ------------------------------------------------------------------- */

.footer { background: var(--black); }

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer__branches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.branch {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.branch h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}
.branch__address {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  color: var(--white);
  opacity: 0.7;
}
.branch__phone {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--orange);
}

.footer__rule {
  width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--white);
}

.footer__inquiries {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__inquiries span { opacity: 0.6; }
.footer__inquiries a {
  font-weight: 700;
  text-decoration: underline;
}

.footer__parent {
  font-weight: 600;
  opacity: 0.6;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1180px) {
  .products__inner {
    flex-direction: column;
    gap: 40px;
  }
  .products__header { width: 100%; }

  .enquiry__inner {
    flex-direction: column;
    gap: 40px;
  }
  .form-panel { width: 100%; }

  .bento { flex-direction: column; min-height: 0; }
  .bento__stack { width: 100%; }
  .usp { min-height: 280px; }

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

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

  .header__inner { min-height: 84px; }
  .header__logo img { width: 152px; height: auto; }
  .header__right { gap: 20px; }
  .phone-contact span:last-child { display: none; }

  .nav-toggle { display: flex; }

  .navbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .navbar__inner.is-open {
    max-height: 320px;
    padding-block: 8px;
  }
  .navbar__item {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }
  .navbar__item.is-active { border-bottom-color: var(--white); }

  .hero__title br { display: none; }

  .trust-strip__inner {
    justify-content: flex-start;
    gap: 16px 32px;
  }

  .callout__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .form-panel { padding: 28px; }

  .usps__inner,
  .why__inner,
  .products__inner { padding-block: 56px; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .blog__row { grid-template-columns: 1fr; }
  .partners__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__branches { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { padding-top: 56px; gap: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 440px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
