/* ============================================================
   MAICA BRAND KIT — STYLESHEET
   ============================================================ */

/* ---- Custom Properties (Brand Tokens) -------------------- */
:root {
  --color-primary:      #196061;
  --color-primary-mid:  #7DA0A0;
  --color-navy:         #152c36;
  --color-offwhite:     #F7F9F9;
  --color-gray-light:   #EEEEEE;
  --color-text:         #1C2B2B;
  --color-text-muted:   #5A7070;

  --font-family:        'Poppins', sans-serif;

  --radius-sm:          6px;
  --radius-md:          12px;
  --radius-lg:          20px;

  --shadow-card:        0 2px 12px rgba(25, 96, 97, 0.08);
  --shadow-card-hover:  0 6px 24px rgba(25, 96, 97, 0.15);

  --nav-height:         60px;
  --section-pad:        80px;
  --inner-max:          1080px;
}

/* ---- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-offwhite);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }

/* ---- Navigation ------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #fff;
  border-bottom: 1px solid var(--color-gray-light);
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  padding: 0 32px;
}

.nav__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 24px;
  width: auto;
}

.nav__social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav__social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(25, 96, 97, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background 0.15s;
}

.nav__social-link:hover {
  background: rgba(25, 96, 97, 0.16);
  text-decoration: none;
}

/* ---- Hero ------------------------------------------------ */
.hero {
  background: var(--color-primary);
  padding: calc(var(--nav-height) + 72px) 32px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  position: relative;
}

.hero__content {
  max-width: 560px;
  padding-bottom: 60px;
}


.hero__title {
  display: block;
  font-family: var(--font-family);
  font-size: 52px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero__title-accent {
  font-weight: 700;
}

.hero__desc {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  opacity: 0.78;
  max-width: 460px;
}

/* ---- Hero Section Navigator Cards ----------------------- */
.hero-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 0;
}

.hero-nav__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 28px 28px;
  color: #fff;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.18s;
}

.hero-nav__card:last-child {
  border-right: none;
}

.hero-nav__card:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.hero-nav__icon {
  display: block;
  margin-bottom: 10px;
}

.hero-nav__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-nav__sub {
  font-size: 13px;
  opacity: 0.6;
}

/* ---- Sections -------------------------------------------- */
.section {
  padding: var(--section-pad) 32px;
}

.section--alt {
  background: #fff;
}

.section__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
}

.section__header {
  margin-bottom: 48px;
}

.section__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(25, 96, 97, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.section__title {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.section__desc {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.65;
}

.subsection-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-gray-light);
}

/* ---- Colour List (full-width rows) ----------------------- */
.colour-list {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.colour-row {
  display: flex;
  align-items: stretch;
  min-height: 72px;
  border-bottom: 1px solid var(--color-gray-light);
  transition: background 0.15s;
}

.colour-row:last-child {
  border-bottom: none;
}

.colour-row:hover {
  background: rgba(25, 96, 97, 0.025);
}

.colour-row__swatch {
  width: 80px;
  flex-shrink: 0;
}

.colour-row__info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.colour-row__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.colour-row__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

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

.colour-row__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Shared hex button (used in colour rows) */
.colour-card__hex {
  display: inline-block;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(25, 96, 97, 0.08);
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.colour-card__hex:hover {
  background: var(--color-primary);
  color: #fff;
}

.colour-card__rgb {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ---- Font Intro ------------------------------------------ */
.font-intro {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.font-intro__family {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.font-intro__source {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.font-intro__weights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weight-chip {
  font-size: 13px;
  color: var(--color-text);
  background: var(--color-offwhite);
  border: 1px solid var(--color-gray-light);
  border-radius: 100px;
  padding: 5px 14px;
}

.font-intro__sample {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.7;
  word-break: break-all;
}

/* ---- Type Specimens -------------------------------------- */
.type-specimens {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.specimen {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--color-gray-light);
}

.specimen:last-child { border-bottom: none; }

.specimen__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 120px;
}

.specimen__text {
  font-size: 22px;
  line-height: 1.4;
  color: var(--color-text);
}

/* ---- Type Scale ------------------------------------------ */
.type-scale {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.scale-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 32px;
  border-bottom: 1px solid var(--color-gray-light);
}

.scale-row:last-child { border-bottom: none; }

.scale-row__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.scale-row__spec {
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

.scale-row__example {
  color: var(--color-text);
  font-family: var(--font-family);
  word-break: break-word;
}

/* ---- Logo Grid ------------------------------------------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.logo-grid--narrow {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.logo-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.logo-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.logo-card__canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  min-height: 160px;
}

.logo-card__canvas img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-card__canvas--square {
  min-height: 180px;
}

.logo-card__canvas--square img {
  max-height: 120px;
}

.logo-card__canvas--light {
  background: #fff;
  border-bottom: 1px solid var(--color-gray-light);
}

.logo-card__canvas--dark {
  background: var(--color-navy);
}

.logo-card__canvas--black {
  background: #000000;
}

/* Invert a coloured logo to appear white on dark/black canvases */
.logo-on-dark {
  filter: brightness(0) invert(1);
}

.logo-card__info {
  padding: 20px 24px 24px;
}

.logo-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.logo-card__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.logo-card__downloads {
  display: flex;
  gap: 8px;
}

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ---- Footer ---------------------------------------------- */
.footer {
  background: var(--color-primary);
  padding: 40px 32px;
}

.footer__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer__logo {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.32);
  text-decoration: none;
}

/* ---- Toast ----------------------------------------------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--color-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 100px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Back to Top ----------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background 0.15s;
  pointer-events: none;
  z-index: 150;
  box-shadow: 0 4px 16px rgba(25, 96, 97, 0.35);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-primary-mid);
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
  }

  .hero__title { font-size: 36px; }
  .hero { padding: calc(var(--nav-height) + 48px) 20px 0; }
  .hero__content { padding-bottom: 44px; }

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

  .hero-nav__card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 20px 24px;
  }

  .hero-nav__card:last-child { border-bottom: none; }

  .section { padding: var(--section-pad) 24px; }
  .nav { padding: 0 20px; }
  .section__title { font-size: 26px; }

  .colour-row__info {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .colour-row__right {
    justify-content: flex-start;
  }

  .scale-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .scale-row__example[style*="font-size:48px"],
  .scale-row__example[style*="font-size:36px"] {
    font-size: 28px !important;
  }

  .specimen {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 20px;
  }

  .specimen__label { min-width: unset; }
  .specimen__text { font-size: 18px; }

  .font-intro { padding: 24px; }
  .font-intro__family { font-size: 30px; }

  .logo-grid,
  .logo-grid--narrow {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer__copy {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 28px; }
  .hero__desc { font-size: 15px; }
  .colour-row__swatch { width: 56px; }
}
