/* =========================================================
   GLOBAL FIBRE REGISTRY LANDING PAGE
   Global Standards website-aligned CSS
   File: gfr-css.css
   Version: 1.0
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;600;700&display=swap');

:root {
  --gs-font: "Instrument Sans", Arial, Helvetica, sans-serif;

  --gs-black: #181B18;
  --gs-white: #FFFFFF;
  --gs-soft-sunlight: #FFF6C2;
  --gs-fresh-sage: #E6F6D1;
  --gs-mist-blue: #DEEDF1;

  --gs-blue-900: #21526A;
  --gs-sage-900: #3F5A24;
  --gs-sun-900: #6F4F00;
  --gs-red-700: #710000;

  --gs-border: rgba(24, 27, 24, 0.18);
  --gs-border-strong: #181B18;
  --gs-shadow-soft: 0 20px 60px rgba(24, 27, 24, 0.08);
  --gs-max-width: 1280px;
  --gs-side-padding: clamp(24px, 6vw, 80px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

p {
  margin: 0 0 20px;
}

p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Header
   ========================================================= */

.gfr-site-header {
  background: var(--gs-white);
  border-bottom: 1px solid rgba(24, 27, 24, 0.08);
}

.gfr-header-inner {
  max-width: var(--gs-max-width);
  margin: 0 auto;
  padding: 18px var(--gs-side-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.gfr-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gs-black);
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.gfr-logo-mark {
  width: 42px;
  height: 42px;
  position: relative;
  flex: 0 0 auto;
}

.gfr-logo-mark::before {
  content: "";
  position: absolute;
  inset: 9px 13px;
  border-radius: 50%;
  background: var(--gs-black);
}

.gfr-logo-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--gs-black);
  border-style: solid;
}

.gfr-logo-corner.tl {
  top: 3px;
  left: 3px;
  border-width: 4px 0 0 4px;
}

.gfr-logo-corner.tr {
  top: 3px;
  right: 3px;
  border-width: 4px 4px 0 0;
}

.gfr-logo-corner.bl {
  bottom: 3px;
  left: 3px;
  border-width: 0 0 4px 4px;
}

.gfr-logo-corner.br {
  right: 3px;
  bottom: 3px;
  border-width: 0 4px 4px 0;
}

.gfr-logo-text {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.gfr-main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.gfr-main-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
}

.gfr-main-nav a:hover,
.gfr-main-nav a:focus-visible {
  border-bottom-color: var(--gs-black);
}

/* =========================================================
   Shared layout
   ========================================================= */

.gfr-section {
  padding: 72px var(--gs-side-padding);
}

.gfr-section-inner {
  max-width: var(--gs-max-width);
  margin: 0 auto;
}

.gfr-section-soft-sunlight {
  background: var(--gs-soft-sunlight);
}

.gfr-section-mist-blue {
  background: var(--gs-mist-blue);
}

.gfr-section-fresh-sage {
  background: var(--gs-fresh-sage);
}

.gfr-kicker {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--gs-black);
  font-weight: 700;
  letter-spacing: -0.055em;
}

h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

h3 {
  font-size: 24px;
  line-height: 1.15;
}

.gfr-lead {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
}

.gfr-small-copy {
  font-size: 14px;
  line-height: 1.55;
}

/* =========================================================
   Buttons
   ========================================================= */

.gfr-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.gfr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 2px solid var(--gs-black);
  border-radius: 999px;
  background: var(--gs-black);
  color: var(--gs-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.15s ease-in-out;
  transition-property: background-color, border-color, color;
}

.gfr-button:hover,
.gfr-button:focus-visible {
  background: rgba(24, 27, 24, 0.78);
  border-color: rgba(24, 27, 24, 0.78);
}

.gfr-button-secondary {
  background: transparent;
  color: var(--gs-black);
}

.gfr-button-secondary:hover,
.gfr-button-secondary:focus-visible {
  background: rgba(24, 27, 24, 0.06);
  border-color: var(--gs-black);
}

.gfr-arrow-link {
  font-weight: 600;
  text-decoration: none;
}

.gfr-arrow-link::after {
  content: " →";
}

.gfr-arrow-link:hover,
.gfr-arrow-link:focus-visible {
  text-decoration: underline;
}

/* =========================================================
   Hero
   ========================================================= */

.gfr-hero {
  padding: 82px var(--gs-side-padding) 76px;
  background: var(--gs-white);
}

.gfr-hero-grid {
  max-width: var(--gs-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(42px, 7vw, 86px);
  align-items: center;
}

.gfr-hero-copy {
  max-width: 740px;
}

.gfr-hero-copy .gfr-lead {
  margin-top: 28px;
  max-width: 680px;
}

.gfr-hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.gfr-standard-card {
  text-align: center;
}

.gfr-standard-seal {
  width: min(190px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border: 2px solid var(--gs-black);
  border-radius: 50%;
  background: var(--gs-white);
  display: grid;
  place-items: center;
  position: relative;
}

.gfr-standard-seal::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid var(--gs-border);
  border-radius: 50%;
}

.gfr-standard-symbol {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gs-white);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  z-index: 1;
}

.gfr-standard-symbol.gots {
  background: var(--gs-sage-900);
}

.gfr-standard-symbol.grts {
  background: var(--gs-blue-900);
}

.gfr-standard-title {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.gfr-standard-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

/* =========================================================
   Purpose band
   ========================================================= */

.gfr-band-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: start;
}

.gfr-band-grid p {
  max-width: 720px;
}

/* =========================================================
   Cards / latest-style blocks
   ========================================================= */

.gfr-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 38px;
}

.gfr-card {
  min-height: 300px;
  padding: 28px;
  border: 2px solid var(--gs-black);
  background: var(--gs-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gfr-card p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
}

.gfr-card-media {
  margin: 24px 0;
  min-height: 120px;
  background: var(--gs-mist-blue);
  position: relative;
  overflow: hidden;
}

.gfr-card-media.sunlight {
  background: var(--gs-soft-sunlight);
}

.gfr-card-media.sage {
  background: var(--gs-fresh-sage);
}

.gfr-card-media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62px;
  height: 62px;
  border-left: 22px solid var(--gs-white);
  border-top: 22px solid var(--gs-white);
}

/* =========================================================
   Quick access
   ========================================================= */

.gfr-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 34px;
}

.gfr-quick-item {
  min-width: 0;
}

.gfr-quick-box {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  margin-bottom: 14px;
  background: var(--gs-white);
  border: 1px solid rgba(24, 27, 24, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.gfr-quick-box.blue {
  background: var(--gs-mist-blue);
}

.gfr-quick-box.yellow {
  background: var(--gs-soft-sunlight);
}

.gfr-quick-box.green {
  background: var(--gs-fresh-sage);
}

.gfr-quick-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.gfr-quick-label:hover,
.gfr-quick-label:focus-visible {
  text-decoration: underline;
}

.gfr-manual-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gs-black);
  color: var(--gs-white);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.gfr-mini-document {
  width: 92px;
  height: 122px;
  padding: 14px;
  background: var(--gs-white);
  border: 1px solid var(--gs-border);
  box-shadow: var(--gs-shadow-soft);
}

.gfr-mini-document::before,
.gfr-mini-document::after {
  content: "";
  display: block;
  height: 8px;
  margin-bottom: 9px;
  background: var(--gs-black);
}

.gfr-mini-document::after {
  width: 70%;
  background: var(--gs-border);
}

/* =========================================================
   About / stats
   ========================================================= */

.gfr-two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(38px, 8vw, 92px);
}

.gfr-stat-list {
  border-left: 2px solid var(--gs-black);
  padding-left: clamp(24px, 4vw, 44px);
}

.gfr-stat {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--gs-border);
}

.gfr-stat:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.gfr-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.gfr-stat span {
  display: block;
  font-size: 15px;
  line-height: 1.55;
}

/* =========================================================
   Steps
   ========================================================= */

.gfr-steps-header {
  max-width: 780px;
}

.gfr-steps {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.gfr-step {
  border-top: 2px solid var(--gs-black);
  padding-top: 18px;
}

.gfr-step-number {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
}

.gfr-step p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
}

/* =========================================================
   Footer
   ========================================================= */

.gfr-footer {
  background: var(--gs-black);
  color: var(--gs-white);
  padding: 38px var(--gs-side-padding);
}

.gfr-footer-inner {
  max-width: var(--gs-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 22px;
  font-size: 14px;
}

.gfr-footer a {
  color: var(--gs-white);
  text-decoration: none;
}

.gfr-footer a:hover,
.gfr-footer a:focus-visible {
  text-decoration: underline;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
  .gfr-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .gfr-main-nav {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .gfr-hero,
  .gfr-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .gfr-hero-grid,
  .gfr-band-grid,
  .gfr-two-column {
    grid-template-columns: 1fr;
  }

  .gfr-hero-visual {
    max-width: 520px;
  }

  .gfr-card-grid,
  .gfr-quick-grid,
  .gfr-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .gfr-logo-text {
    font-size: 13px;
  }

  .gfr-hero-visual {
    grid-template-columns: 1fr;
  }

  .gfr-button {
    width: 100%;
  }
}
