/* TESFAM® Precision Foam Analysis — Stylesheet */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --gold:        #f4bf1e;
  --gold-dark:   #d4a418;
  --white:       #ffffff;
  --text-dark:   #111111;
  --text-mid:    #444444;
  --text-light:  #777777;
  --bg-light:    #f7f7f7;
  --border:      #e8e8e8;
  --nav-height:  60px;
  --radius:      6px;
  --transition:  0.22s ease;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
h1 { font-size: 2.75rem; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 2rem;    font-weight: 700; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-size: 0.9rem;  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
p  { margin-bottom: 0.85rem; color: var(--text-light); font-size: 0.97rem; line-height: 1.7; }
strong { color: var(--text-dark); font-weight: 600; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.bg-light   { background: var(--bg-light); }
.bg-white   { background: var(--white); }

/* ─── Section label (eyebrow) ───────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(244, 191, 30, 0.1);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ─── Scroll animation ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }

/* ─── Navbar ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--white);
  z-index: 1000;
  border-bottom: 1.5px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition);
}
nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom-color: transparent;
}
nav .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .logo img {
  height: 56px;
  width: auto;
}
nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.25rem;
}
nav ul li a {
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}
nav ul li a:hover,
nav ul li a.active {
  color: var(--text-dark);
  background: rgba(0,0,0,0.04);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--text-dark) !important;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 9px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.cta-btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(244,191,30,0.35);
}
.cta-btn.outline {
  background: transparent;
  color: var(--text-dark) !important;
  border-color: var(--border);
}
.cta-btn.outline:hover {
  background: var(--bg-light);
  border-color: var(--text-dark);
  box-shadow: none;
}

/* ─── Hamburger ──────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.25s ease;
  display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(244,191,30,0.07) 0%, transparent 55%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 24px;
  animation: heroFadeIn 0.7s ease both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-logo {
  display: flex;
  justify-content: center;
}
.hero-logo img {
  height: 200px;
  width: auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.hero-content > p {
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 2.5rem auto 1.5rem;
  border-radius: 2px;
}
.badge-strip {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}
.badge {
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Problem ────────────────────────────────────────────────── */
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.4rem; }
.section-header p  { max-width: 560px; font-size: 1rem; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.problem-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.problem-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.problem-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.problem-card h3 { color: var(--text-dark); margin-bottom: 0.4rem; }

/* ─── Overview ───────────────────────────────────────────────── */
.overview-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.overview-features { list-style: none; }
.overview-features li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.overview-features li:first-child { padding-top: 0; }
.overview-features li:last-child  { border-bottom: none; }
.feature-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}
.feature-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.feature-text p {
  font-size: 0.88rem;
  margin-bottom: 0;
  color: var(--text-light);
}
.overview-image {
  position: relative;
}
.overview-image img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.overview-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  background: rgba(244,191,30,0.06);
}

/* ─── How It Works ───────────────────────────────────────────── */
.principle-block {
  background: var(--bg-light);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2.5rem;
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.principle-block p { margin-bottom: 0; }
.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.image-grid img {
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.image-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.capability-card {
  background: var(--white);
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.capability-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(244,191,30,0.1);
}
.capability-card h4 {
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}
.capability-card p { margin-bottom: 0; font-size: 0.92rem; }

/* ─── Specs ──────────────────────────────────────────────────── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.spec-card {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.spec-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.spec-card h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.spec-card p {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
}

/* ─── Applications ───────────────────────────────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.app-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.app-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.app-icon {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.app-card h3 { font-size: 1rem; color: var(--text-dark); margin-bottom: 0.4rem; }
.app-card p  { font-size: 0.88rem; margin-bottom: 0; }

/* ─── Results ────────────────────────────────────────────────── */
.results-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}
.rsd-block {
  background: var(--text-dark);
  color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}
.rsd-value {
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.rsd-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}
.rsd-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 0;
}
.results-cards { display: flex; flex-direction: column; gap: 1rem; }
.result-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.result-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.result-card h4 { color: var(--gold-dark); margin-bottom: 0.4rem; }
.result-card p  { font-size: 0.9rem; margin-bottom: 0; }

/* ─── Partners ───────────────────────────────────────────────── */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.partner-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.partner-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(244,191,30,0.1);
}
.partner-card img {
  height: 48px;
  width: auto;
  margin-bottom: 1.25rem;
  object-fit: contain;
  image-orientation: none;
}
.partner-card h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.partner-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.partner-card p  { font-size: 0.9rem; margin-bottom: 0.6rem; color: var(--text-light); }
.partner-contact {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.partner-contact-item { font-size: 0.85rem; color: var(--text-light); }
.partner-contact-label { font-weight: 600; color: var(--text-dark); }

/* ─── Contact ────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.contact-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(244,191,30,0.1);
}
.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-details { flex: 1; }
.contact-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.contact-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}
.contact-info p { font-size: 0.88rem; margin-bottom: 3px; }
.contact-info a { color: var(--gold-dark); font-weight: 500; }
.contact-info a:hover { text-decoration: underline; }

.address-block {
  background: var(--text-dark);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.address-block::before {
  content: '📍';
  font-size: 1.2rem;
  flex-shrink: 0;
}
.address-block p { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.9rem; }
.address-block strong { color: var(--white); }

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 2.5rem 0;
  border-top: 2px solid var(--gold);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: row; gap: 1rem; align-items: center; }
.footer-logo {
  height: 100px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.footer-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.footer-logos img {
  height: 100px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  image-orientation: none;
  opacity: 0.75;
  transition: opacity var(--transition);
}
.footer-logos img:hover { opacity: 1; }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: right;
}

/* ─── Mobile: 768px ──────────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 52px 0; }

  /* Nav mobile */
  .hamburger { display: flex; }
  nav ul {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 8px 0 16px;
  }
  nav ul.active { display: flex; }
  nav ul li a {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.95rem;
  }
  nav ul li a:hover { background: var(--bg-light); }
  .cta-btn { margin: 8px 16px 0; display: block; text-align: center; }

  /* Hero */
  .hero-content h1  { font-size: 2rem; }
  .hero-content > p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .cta-btn { width: 220px; margin: 0; }

  /* Grids collapse */
  .problem-grid     { grid-template-columns: 1fr; }
  .overview-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .image-grid       { grid-template-columns: 1fr; }
  .capability-grid  { grid-template-columns: repeat(2, 1fr); }
  .specs-grid       { grid-template-columns: repeat(2, 1fr); }
  .app-grid         { grid-template-columns: 1fr; }
  .results-layout   { grid-template-columns: 1fr; }
  .rsd-block        { position: static; }
  .partners-grid    { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner   { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-copy    { text-align: left; }
}

/* ─── Mobile: 480px ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .section { padding: 40px 0; }

  nav .logo img { height: 32px; }
  .hero-content h1 { font-size: 1.7rem; }

  .capability-grid { grid-template-columns: 1fr 1fr; }
  .specs-grid      { grid-template-columns: 1fr 1fr; }

  .contact-card { flex-direction: column; align-items: flex-start; }
  .rsd-value    { font-size: 2.5rem; }

  .badge-strip { gap: 1rem; }

  .footer-logos { flex-wrap: wrap; gap: 1rem; }
  .footer-logos img { height: 60px; max-width: 120px; object-fit: contain; }
}
