/* =========================================================
   Missinglinks Design System — Stable Master Layout + Mobile
   ========================================================= */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 40% 30%, rgba(212,175,55,0.10), transparent 65%),
    radial-gradient(circle at 60% 70%, rgba(212,175,55,0.06), transparent 70%),
    #0f0f0f;
  color: #f5f5f5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

body.page-visible {
  opacity: 1;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 16px;
}

h1 { font-size: 2.7rem; letter-spacing: 0.03em; }
h2 { font-size: 2rem; }
p, li { font-size: 1.08rem; line-height: 1.75; }

/* Links */
a {
  color: #d4af37;
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: #c9a032; }
a:visited { color: #b8962e; }

/* Ensure CTA buttons are never affected by link colour states */
a.cta-btn,
a.cta-btn:visited,
a.cta-btn:hover,
a.cta-btn:active {
  color: #000000 !important;
}

/* Header */
.header {
  max-width: 1200px;
  margin: 32px auto 24px auto;
  text-align: center;
}
.header img {
  max-width: 220px;
  height: auto;
}

/* Hero */
.hero {
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
  padding: 48px 24px;
}
.hero p {
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Sections */
.section {
  max-width: 900px;
  margin: 70px auto;
  padding: 0 24px;
}

/* CTA */
.cta {
  max-width: 900px;
  margin: 70px auto;
  text-align: center;
}

/* Buttons */
.cta-btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: #000000 !important;
  background: linear-gradient(180deg, #d4af37 0%, #c9a032 100%);
  box-shadow: 0 4px 12px rgba(212,175,55,0.25);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn:hover {
  background: linear-gradient(180deg, #e0b94a 0%, #c9a032 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212,175,55,0.35);
}

/* Cards */
.card {
  background: #111;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.25);
  box-shadow: 0 0 0 rgba(212,175,55,0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(212,175,55,0.35);
  border-color: rgba(212,175,55,0.6);
}

/* Brand grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 40px auto 70px auto;
}

.brand-card {
  text-align: center;
  background: #111;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.25);
  box-shadow: 0 0 0 rgba(212,175,55,0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(212,175,55,0.35);
  border-color: rgba(212,175,55,0.6);
}

.brand-logo {
  width: 100%;
  max-width: 160px;
  height: auto;
  margin: 0 auto 16px auto;
  display: block;
}

.footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.footer p {
  margin: 6px 0;
}

.footer a {
  color: #d4af37;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-links {
  margin-top: 12px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.parallax-hero,
.parallax-header {
  will-change: transform;
  transition: transform 0.4s ease-out;
}

/* =========================================================
   MOBILE RESPONSIVE LAYER — POLISH 1–4
   ========================================================= */

/* Tablets */
@media (max-width: 900px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Phones */
@media (max-width: 500px) {

  /* 1️⃣ Mobile Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  p, li { font-size: 1rem; line-height: 1.65; }

  /* 2️⃣ Mobile Spacing */
  .hero { padding: 32px 16px; }
  .section { margin: 40px auto; padding: 0 16px; }

  /* 3️⃣ Mobile Button Sizing */
  .cta-btn {
    padding: 14px 28px;
    font-size: 16px;
  }

  /* 4️⃣ Mobile Footer Optimisation */
  .footer {
    padding: 24px 16px;
    font-size: 1px;
    line-height: 1.6;
  }

  /* Brand grid → 1 column */
  .brand-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
