/* ========================================================
   Rock Paper TV -- Design System
   Colors extracted from rockpapertv.com live site
   ======================================================== */

/* ----- Variables ----- */
:root {
  --navy: #1c244b;
  --blue: #467ff7;
  --blue-hover: #3568d4;
  --blue-accessible: #2d5fd9;
  --green: #a2d242;
  --green-dark: #8bb938;
  --dark-gray: #333333;
  --mid-gray: #595959;
  --light-gray: #f5f5f7;
  --white: #ffffff;
  --shadow: 0 2px 16px rgba(28, 36, 75, 0.10);
  --shadow-lg: 0 8px 32px rgba(28, 36, 75, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --max-width: 1200px;
  --header-height: 72px;
}

/* ----- Reset ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----- Typography ----- */
/* Fonts loaded via <link> in HTML for performance */

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark-gray);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--navy);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blue-hover);
}

/* ----- Layout ----- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

section:nth-child(even) {
  background: var(--light-gray);
}

/* ========================================================
   Header
   ======================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--green), var(--blue));
  height: var(--header-height);
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.logo-sub {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 0;
  position: relative;
  transition: opacity var(--transition);
}

.nav a:hover {
  opacity: 0.85;
  color: var(--white);
}

.nav a.cta-nav {
  background: var(--white);
  color: var(--blue-accessible);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav a.cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown>a {
  cursor: pointer;
}

.nav-dropdown>a::after {
  content: ' \25BE';
  font-size: 0.7em;
  opacity: 0.7;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 200px;
  z-index: 200;
  margin-top: 8px;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  white-space: nowrap;
  font-size: 0.85rem;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.nav-dropdown-menu .dd-price {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 6px;
}

.nav-dropdown-menu .dd-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

/* ========================================================
   Hero
   ======================================================== */
.hero {
  padding: 100px 0 80px;
  background: var(--white);
}

.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--mid-gray);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-badge {
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  display: inline-block;
  margin-top: 24px;
}

.hero-badge .stars {
  color: #f5c518;
  margin-right: 6px;
}

/* ========================================================
   CTA Buttons
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: var(--blue-accessible);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--blue-accessible);
  padding: 12px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-green {
  background: var(--green);
  color: var(--navy);
}

.btn-green:hover {
  background: var(--green-dark);
}

/* ========================================================
   Service Cards
   ======================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card.featured {
  border: 2px solid var(--blue);
}

.service-card .price {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  margin: 16px 0;
}

.service-card .price-label {
  font-size: 0.85rem;
  color: var(--mid-gray);
  font-weight: 400;
}

.service-card ul {
  list-style: none;
  margin: 20px 0;
}

.service-card li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  border-bottom: 1px solid var(--light-gray);
}

.service-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.service-card .badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--blue-accessible);
  color: var(--white);
  padding: 8px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0 var(--radius-lg) 0 var(--radius);
}

/* ========================================================
   Process Steps
   ======================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 40px;
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: 32px 24px;
  counter-increment: step;
}

.process-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  border-radius: 50%;
  margin: 0 auto 20px;
}

/* ========================================================
   FAQ Accordion
   ======================================================== */
.faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--blue);
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ========================================================
   Footer
   ======================================================== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer h4,
.footer strong {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
  display: block;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* ========================================================
   Responsive
   ======================================================== */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 10px 16px;
    margin: 16px auto 0;
    display: block;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 24px;
    gap: 16px;
  }

  .nav.open>a,
  .nav.open .nav-dropdown>a {
    font-size: 1.15rem;
  }

  .nav.open .nav-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    padding: 4px 0 0;
    margin: 0;
    min-width: 0;
    background: transparent;
    border-radius: 0;
  }

  .nav.open .nav-dropdown-menu a {
    display: block;
    padding: 14px 20px;
    font-size: 1.05rem;
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    margin-bottom: 6px;
    font-weight: 600;
  }

  .nav.open .nav-dropdown-menu a:active {
    background: rgba(255, 255, 255, 0.15);
  }

  .nav.open .nav-dropdown>a::after {
    display: none;
  }

  .nav.open .nav-dropdown-menu .dd-divider {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0;
  }
}