
/* =========================================
   PURETINKER WEBSITE
   Stylesheet — Version 1.2

   Corporate identity inspired by
   the OriNauta packaging.
   ========================================= */

/* COLORS */

:root {
  --blue: #0798f9;
  --blue-dark: #0875bf;
  --yellow: #ffd32a;
  --red: #e92027;
  --green: #2da34a;

  --cream: #fff9f3;
  --white: #ffffff;
  --ink: #222222;
  --muted: #626262;
  --line: #e7e4df;
}

/* RESET AND GENERAL */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, 90%);
  margin: auto;
}

/* =========================================
   NAVIGATION
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 249, 243, 0.97);
  border-bottom: 1px solid var(--line);
}

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

.brand img {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 52px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--blue-dark);
}

/* =========================================
   TYPOGRAPHY
   ========================================= */

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  margin: 0 0 28px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0 0 26px;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 22px;
}

.eyebrow {
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.lead {
  color: var(--muted);
  font-size: 1.17rem;
  max-width: 700px;
}

/* =========================================
   GENERAL SECTIONS
   ========================================= */

.section {
  padding: 100px 0;
  scroll-margin-top: 85px;
}

.section-light {
  background: var(--cream);
}

.section-blue {
  background: var(--blue);
  color: var(--white);
}

.section-blue .eyebrow,
.section-blue .section-text p {
  color: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
}

.section-text p {
  color: var(--muted);
}

/* =========================================
   BUTTONS
   ========================================= */

.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 700;
  transition:
    transform 0.2s,
    background 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-outline {
  border: 2px solid var(--ink);
  color: var(--ink);
}

.button-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: #444444;
}

.button-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* =========================================
   HERO / HOMEPAGE
   ========================================= */

.hero {
  background: var(--cream);
  padding: 115px 0;
  overflow: hidden;
  scroll-margin-top: 85px;
}

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

.hero-description {
  font-size: 1.2rem;
  color: var(--muted);
}

.hero-image {
  position: relative;
  background: var(--white);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 12px 12px 0 var(--blue);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Decorative geometric shapes */

.shape {
  position: absolute;
  pointer-events: none;
}

.shape-yellow {
  width: 65px;
  height: 65px;
  background: var(--yellow);
  clip-path: polygon(
    50% 0,
    100% 100%,
    0 100%
  );
  top: -34px;
  right: -28px;
}

.shape-red {
  width: 38px;
  height: 38px;
  background: var(--red);
  border-radius: 50%;
  bottom: -20px;
  left: -20px;
}

/* =========================================
   INSTITUTIONAL SECTION

   CIÊNCIAS ULisboa
   CFTC
   TecLabs
   ========================================= */

.institution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.institution-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 30px;
  min-width: 0;
}

/* Uniform logo area */

.institution-card > a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 110px;
  margin-bottom: 15px;
  text-decoration: none;
}

/* Official institutional logos */

.institution-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85px;
  object-fit: contain;
  object-position: left center;
}

/* Fallback for text-only institutions */

.institution-name {
  display: flex;
  align-items: center;
  min-height: 110px;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 15px;
}

/* Card text */

.institution-card h3 {
  margin: 0 0 18px;
  font-size: 1.3rem;
}

.institution-card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* =========================================
   ORI PRODUCT FAMILY
   ========================================= */

.product-grid {
  margin-top: 20px;
}

.product-image {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.product-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.product-grid h3 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 45px;
}

.feature-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 30px;
}

.feature-number {
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.feature-card h3 {
  margin: 18px 0;
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* =========================================
   PARTNERSHIPS
   ========================================= */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 32px;
}

.partner-card h3 {
  margin-top: 0;
}

.partner-card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* =========================================
   CONTACT
   ========================================= */

.contact-section {
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.contact-content {
  max-width: 750px;
}

.contact-section .eyebrow {
  color: var(--yellow);
}

.contact-section p:not(.eyebrow) {
  color: #e0e0e0;
}

.contact-section .button-primary {
  background: var(--blue);
  color: var(--white);
}

.contact-email {
  margin-top: 24px;
  font-size: 0.95rem;
}

.contact-email a {
  color: var(--white);
  text-underline-offset: 4px;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background: #161616;
  color: #d5d5d5;
  padding: 30px 0;
  font-size: 0.86rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 950px) {
  .hero-grid,
  .two-columns {
    gap: 40px;
  }

  .institution-card {
    padding: 22px;
  }

  .feature-card {
    padding: 24px;
  }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 760px) {
  .navigation {
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-links {
    justify-content: center;
    gap: 16px;
  }

  .section {
    padding: 70px 0;
    scroll-margin-top: 140px;
  }

  .hero {
    padding: 75px 0;
  }

  .hero-grid,
  .two-columns,
  .institution-grid,
  .feature-grid,
  .partner-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-image {
    box-shadow: 7px 7px 0 var(--blue);
  }

  .shape-yellow {
    right: -12px;
  }

  .institution-card > a {
    height: 95px;
  }

  .institution-card img {
    max-height: 75px;
  }

  .institution-name {
    min-height: 95px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================
   ACCESSIBILITY
   ========================================= */

a:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .nav-links a {
    transition: none;
  }
}
