/* ==========================================================================
   Types page — modern dark + gold redesign (matches the About page).
   Relies on base.css (--gold var + font-size:62.5%) and nav.css (navbar).
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #0d0d0d;
  color: #eaeaea;
  overflow-x: hidden;
}

/* Cursive gold accent above headings */
.script-accent {
  font-family: "Great Vibes", cursive;
  font-size: 3.6rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.section-heading {
  font-size: 4.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4rem;
  color: #fff;
  margin-top: 0.5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 6rem;
}

.section-head .section-heading::after {
  content: "";
  display: block;
  width: 8rem;
  height: 0.3rem;
  background-color: var(--gold);
  margin: 1.5rem auto 0;
  border-radius: 1rem;
}

.section-sub {
  max-width: 62rem;
  margin: 2rem auto 0;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.8;
  color: #b5b5b5;
}

/* ---------------- Hero ---------------- */
.types-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("images/tybc.jpg") center / cover no-repeat fixed;
  padding: 12rem 2rem 6rem;
}

.types-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.6) 40%,
    rgba(13, 13, 13, 1)
  );
}

.types-hero-content {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  animation: heroRise 1s ease both;
}

.types-hero-content .script-accent {
  font-size: 4.5rem;
}

.types-hero-content h1 {
  font-size: 7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  color: #fff;
  margin: 0.5rem 0 2.5rem;
  line-height: 1.1;
}

.types-hero-content h1 span {
  color: var(--gold);
}

.types-hero-content p {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.9;
  color: #d0d0d0;
  max-width: 62rem;
  margin: 0 auto;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin-top: 4rem;
  border: 0.2rem solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 2rem;
  animation: bob 1.8s ease-in-out infinite;
  transition: background-color 0.3s, color 0.3s;
}

.hero-scroll:hover {
  background-color: var(--gold);
  color: #111;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(4rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(0.8rem); }
}

/* ---------------- Shared card grid ---------------- */
.properties,
.types {
  padding: 9rem 3rem;
  max-width: 120rem;
  margin: 0 auto;
}

.types {
  background: #111;
  max-width: none;
}

.types .cards-wrapper {
  max-width: 120rem;
  margin: 0 auto;
}

.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.card {
  background: #191919;
  border: 0.1rem solid rgba(255, 255, 255, 0.06);
  border-radius: 1.4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s, box-shadow 0.45s, border-color 0.45s;
}

.card:hover {
  transform: translateY(-1rem);
  border-color: var(--gold);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.6);
}

.card-media {
  overflow: hidden;
  height: 22rem;
  background: #0f0f0f;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-media img {
  transform: scale(1.12);
}

.card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.6rem;
  border-radius: 50%;
  background: rgba(196, 155, 99, 0.12);
  color: var(--gold);
  font-size: 2rem;
}

.card-title {
  font-size: 2.1rem;
  font-weight: 600;
  color: #fff;
  text-transform: capitalize;
  margin-bottom: 1rem;
}

.card-text {
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.8;
  color: #a8a8a8;
  flex: 1;
}

/* ---------------- Footer ---------------- */
footer {
  width: 100%;
  padding: 3.5rem 2rem;
  background-color: #0a0a0a;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.copyright {
  font-size: 1.4rem;
  color: #888;
}

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(4rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .types-hero-content { animation: none; }
  .hero-scroll { animation: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .types-hero { background-attachment: scroll; }
  .types-hero-content h1 { font-size: 5.2rem; }
}

@media (max-width: 600px) {
  .types-hero-content h1 { font-size: 4rem; letter-spacing: 0.3rem; }
  .types-hero-content p { font-size: 1.5rem; }
  .section-heading { font-size: 3.2rem; }
}
