/* ── Eric Robb RC — Website Redesign ── */
/* Inspired by YouTube channel aesthetic: Navy, technical, maker-focused */

:root {
  --navy: #001f3f;
  --navy-light: #0052a3;
  --navy-dark: #000d1a;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-mid: #e0e6f0;
  --gray-dark: #64748b;
  --accent: #0052a3;
  --text: #0f172a;
  --muted: #64748b;
  --success: #10b981;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2f9 50%, #f0f4fa 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  height: 45px;
}

.nav__brand img {
  height: 45px;
  width: auto;
  display: block;
}

.nav__brand-logo {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 1.2rem;
}

.nav__brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--navy);
}

.nav__cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700 !important;
}

.nav__cta:hover {
  background: var(--navy-light);
}

/* ── Hero Section ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}

.hero__content h1 {
  color: var(--navy);
  margin-bottom: 20px;
  font-weight: 900;
}

.hero__sub {
  font-size: 1.25rem;
  color: var(--gray-dark);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
}

.hero__badge {
  display: inline-block;
  background: rgba(0, 31, 63, 0.08);
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 31, 63, 0.2);
}

.btn--secondary {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__visual img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--navy);
  display: block;
}

.hero__shipping {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero__shipping strong {
  color: var(--navy);
  font-weight: 700;
}

/* ── Section ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}

.section__label {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.section__title {
  color: var(--navy);
  margin-bottom: 40px;
}

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

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.card {
  background: var(--white);
  border: 2px solid var(--gray-mid);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 31, 63, 0.1);
}

.card__icon {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: rgba(0, 31, 63, 0.1);
  padding: 12px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 14px;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.card__desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--gray-mid);
  aspect-ratio: 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__item__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: 24px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ── Features List ── */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature {
  padding: 24px;
  border-left: 4px solid var(--navy);
  background: var(--gray-light);
  border-radius: 8px;
}

.feature__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Video Section ── */
.video-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 32px;
}

.video__container {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--navy);
  border-radius: 12px;
  border: 2px solid var(--navy);
  overflow: hidden;
}

.video__container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video__title {
  text-align: center;
  margin-bottom: 32px;
  color: var(--navy);
}

/* ── Builder Spotlight ── */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 32px;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--gray-light);
  border-radius: 12px;
}

.spotlight__photo {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--navy);
  display: block;
  margin: 0 auto;
}

.spotlight__content h2 {
  color: var(--navy);
  margin-bottom: 20px;
}

.spotlight__content p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.spotlight__cta {
  display: inline-block;
  margin-top: 20px;
}

/* ── Compatibility Box ── */
.compat-box {
  background: rgba(0, 31, 63, 0.05);
  border: 2px solid var(--navy);
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
}

.compat-box h3 {
  color: var(--navy);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.compat-box ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.compat-box ul li {
  padding-left: 24px;
  position: relative;
}

.compat-box ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 900;
  font-size: 1.1rem;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 32px;
  text-align: center;
  border-top: 4px solid var(--navy-light);
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.footer__links a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer__links a:hover {
  opacity: 0.75;
}

.footer__credit {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero,
  .spotlight {
    grid-template-columns: 1fr;
    padding: 48px 24px;
  }

  .nav {
    padding: 12px 16px;
  }

  .nav__links {
    gap: 16px;
    font-size: 0.85rem;
  }

  .section {
    padding: 48px 24px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .footer__links {
    gap: 12px;
  }
}
