/* Core theme setup */
:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: #003407 url('images/appsthatpaycash.com-background-image.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #e9e9ea;
  font-family: "Roboto", Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* Inner pages use a slightly different base color over the same image */
body.standard-page,
body.about-page {
  background-color: #0f0f10;
}

.wrap {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  padding: 18px 0;
  border-bottom: 1px solid #222;
  text-align: center;
}

.brand {
  font-weight: 700;
  font-size: 1.5rem;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #f3f3f4;
  text-decoration: none;
}

body.home .brand {
  font-size: 24px;
}

.brand img {
  display: block;
  margin-bottom: 6px;
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

/* Homepage layout centers content vertically */
body.home main {
  justify-content: center;
}

/* Inner pages push content toward the top with extra padding */
body.standard-page main,
body.about-page main {
  justify-content: center;
  align-items: center;
}

/* Homepage hero block */
.hero {
  text-align: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.hero .logo {
  margin: 0 auto 28px;
  opacity: 0.95;
  display: block;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 24px;
}

.hero p + .hero-video {
  margin-top: 0;
}

.hero-video {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 28px auto 0;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Generic content container used by inner pages */
.content {
  max-width: 880px;
  text-align: center;
}

body.standard-page .content,
body.about-page .content {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

body.standard-page h1,
body.about-page h1 {
  text-align: left;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 16px;
  color: #cfd0d2;
}

.breadcrumb a {
  color: #5ee68a;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 24px;
  margin: 0 0 14px;
  letter-spacing: 0.3px;
  text-align: center;
}

body.home h1,
body.about-page h1 {
  font-size: 20px;
}

p {
  margin: 10px 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cfd0d2;
}

body.home p {
  font-size: 17px;
}

a {
  color: #5ee68a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-links a {
  line-height: 0;
  white-space: nowrap;
}

footer {
  border-top: 1px solid #222;
  padding: 18px 0;
  color: #b9babc;
  text-align: center;
  font-size: 15px;
}

.footer-meta {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 24px;
  line-height: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  footer {
    padding: 18px 16px;
  }

  body.home h1 {
    font-size: 40px;
  }

  body.home p {
    font-size: 16px;
  }

  body.standard-page h1,
  body.about-page h1 {
    font-size: 1.6rem;
  }

  body.standard-page p,
  body.about-page p {
    font-size: 1rem;
  }

  /* Mobile footer: consistent line spacing (override flex+gap) */
  footer nav br {
    display: none;
  }

  .footer-links {
    display: block;
    margin-bottom: 0;
    text-align: center;
  }

  .footer-links a {
    display: inline-block;
    margin: 0 0.4rem 0 0;
    line-height: 1.9rem;
  }

  .footer-meta {
    margin-top: 10px;
  }
}


@media (max-width: 480px) {
  h1 {
    font-size: 16px;
  }

  body.home h1 {
    font-size: 16px;
  }

  .hero .logo {
    width: 150px;
    height: 150px;
  }

  body.home p {
    font-size: 15px;
  }

  body.standard-page p,
  body.about-page p {
    font-size: 0.95rem;
  }
}

@media (min-width: 1200px) {
  .hero {
    max-width: 960px;
  }

  .hero-video {
    max-width: 900px;
  }

  .content {
    max-width: 560px;
  }

  body.home p {
    font-size: 16px;
    line-height: 1.55;
  }

  body.standard-page p,
  body.about-page p {
    font-size: 0.98rem;
    line-height: 1.55;
  }
}
