/* =========================================================
   ASKJESUS.CA
   CLEAN FINAL LAYOUT
========================================================= */

:root {
  --navy: #032f49;
  --navy-dark: #01283f;
  --navy-light: #074765;

  --cream: #fffaf0;
  --white: #ffffff;

  --gold: #f7c45e;
  --muted: #cbd8e1;
}


/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;

  background: #074765;

  color: var(--cream);

  font-family: Arial, Helvetica, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  width: 100%;
  height: 125px;

  position: relative;
  z-index: 30;

  background: var(--navy-dark);
}

.header-inner {
  width: min(1600px, calc(100% - 100px));
  height: 100%;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 28px;
}

.ask-logo {
  width: 96px;
  height: 96px;

  border: 2px solid var(--gold);
  border-radius: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--gold);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: var(--cream);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.brand-tagline {
  margin-top: 13px;

  color: var(--white);

  font-size: 17px;
  line-height: 1;
  letter-spacing: 7px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 68px;
}

.main-nav a {
  position: relative;

  padding: 15px 0;

  color: var(--white);

  font-size: 18px;
}

.main-nav a.active {
  color: var(--gold);
}

.main-nav a.active::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;

  height: 2px;

  background: var(--gold);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  overflow: hidden;

  padding-bottom: 55px;

  background: #074765;
}

.hero-inner {
  position: relative;

  width: 100%;
  height: 650px;

  overflow: hidden;

  background-image:
    linear-gradient(
      to bottom,
      rgba(7, 71, 101, 0) 62%,
      rgba(7, 71, 101, 0.38) 78%,
      #074765 100%
    ),
    linear-gradient(
      90deg,
      rgba(3, 47, 73, 0.98) 0%,
      rgba(3, 47, 73, 0.92) 24%,
      rgba(3, 47, 73, 0.60) 37%,
      rgba(3, 47, 73, 0.20) 50%,
      rgba(3, 47, 73, 0) 64%
    );
}

.hero-copy {
  position: relative;
  z-index: 5;

  width: 42%;
  max-width: 620px;

  padding:
    62px
    0
    0
    5vw;
}

.eyebrow {
  margin-bottom: 20px;

  color: var(--gold);

  font-size: 17px;
  font-weight: 700;
  letter-spacing: 6px;
}

.hero-copy h1 {
  max-width: 560px;

  color: var(--cream);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 4.7vw, 86px);
  font-weight: 700;
  line-height: 0.91;
  letter-spacing: -3px;
}

.hero-description {
  width: 100%;
  max-width: 500px;

  margin-top: 28px;

  color: var(--white);

  font-size: clamp(20px, 1.45vw, 25px);
  line-height: 1.45;
}

.small-gold-line {
  width: 74px;
  height: 3px;

  margin-top: 22px;

  background: var(--gold);
}

.hero-subline {
  width: 520px;
  max-width: 100%;

  margin-top: 16px;

  color: #d9e5ec;

  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 3.5px;
  white-space: nowrap;
}


/* =========================================================
   JESUS IMAGE
========================================================= */

.jesus-image-wrap {
  position: absolute;
  inset: 0;

  z-index: 1;

  pointer-events: none;
}

.jesus-image {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;
}

.jesus-image-wrap::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 2;

  background:
    linear-gradient(
      90deg,
      rgba(3, 47, 73, 0.98) 0%,
      rgba(3, 47, 73, 0.92) 24%,
      rgba(3, 47, 73, 0.60) 37%,
      rgba(3, 47, 73, 0.20) 50%,
      rgba(3, 47, 73, 0) 64%
    );

  pointer-events: none;
}

.jesus-image-wrap::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 210px;

  z-index: 3;

  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(7, 71, 101, 0.35) 45%,
      #074765 100%
    );

  pointer-events: none;
}


/* =========================================================
   MATTHEW 7:7
========================================================= */

.scripture-quote {
  position: relative;
  z-index: 10;

  width: min(820px, 62%);

  margin:
    -145px
    auto
    20px;

  text-align: center;
}

.scripture-quote p {
  color: var(--cream);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 1.75vw, 30px);
  font-style: italic;
  line-height: 1.27;
}

.verse-reference {
  margin-top: 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.verse-reference span {
  width: 78px;
  height: 2px;

  background: var(--gold);
}

.verse-reference strong {
  color: var(--gold);

  font-size: 18px;
  letter-spacing: 7px;
}


/* =========================================================
   ASK / SEEK / KNOCK CIRCLES
========================================================= */

.ask-circles {
  position: relative;
  z-index: 10;

  width: min(520px, 90%);

  margin:
    18px
    auto
    34px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.ask-circle {
  width: 90px;
  height: 90px;

  border: 2px solid var(--gold);
  border-radius: 50%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: rgba(3, 47, 73, 0.28);

  color: var(--gold);
}

.circle-letter {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 0.9;
}

.circle-word {
  margin-top: 6px;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}


/* =========================================================
   QUESTION AREA
========================================================= */

.question-area {
  position: relative;
  z-index: 10;

  width: min(1450px, calc(100% - 90px));

  margin:
    0
    auto
    25px;
}

#questionForm {
  border: 2px solid var(--gold);
  border-radius: 28px;

  padding: 20px 25px 25px;

  background: rgba(2, 42, 64, 0.35);
}

#questionForm label {
  display: block;

  margin-bottom: 16px;

  color: var(--gold);

  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
}

.question-row {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 10px;
}

#question {
  width: 100%;
  height: 74px;

  resize: none;

  border: 1px solid rgba(151, 195, 221, 0.45);
  border-radius: 15px;

  outline: none;

  background: rgba(19, 70, 100, 0.85);

  color: var(--white);

  padding: 22px 26px;

  font-size: 19px;
  line-height: 1.4;
}

#question::placeholder {
  color: #abc3d5;
}

#question:focus {
  border-color: var(--gold);
}

#submitButton {
  border: none;
  border-radius: 15px;

  cursor: pointer;

  background:
    linear-gradient(
      90deg,
      #ffdc8b,
      #f2b64d
    );

  color: #082d46;

  font-size: 20px;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.button-arrow {
  font-size: 34px;
}

.loading-message,
.error-message {
  margin-top: 14px;

  text-align: center;

  font-size: 17px;
}

.loading-message {
  color: var(--gold);
}

.error-message {
  color: #ffd4d4;
}


/* =========================================================
   FEATURES
========================================================= */

.features {
  position: relative;
  z-index: 10;

  width: min(1300px, calc(100% - 90px));

  margin:
    35px
    auto
    25px;

  display: grid;

  grid-template-columns:
    1fr auto
    1fr auto
    1fr auto
    1fr;

  align-items: center;
}

.feature {
  text-align: center;
}

.feature-icon {
  min-height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--gold);

  font-size: 48px;
}

.book-icon {
  color: var(--white);
}

.feature h3 {
  margin-top: 8px;

  color: var(--white);

  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 3px;
}

.feature-divider {
  width: 1px;
  height: 100px;

  background: rgba(255,255,255,0.35);
}


/* =========================================================
   CLOSING MESSAGE
========================================================= */

.closing-message {
  position: relative;
  z-index: 10;

  margin:
    30px
    auto
    0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.closing-message span {
  width: 85px;
  height: 2px;

  background: var(--gold);
}

.closing-message p {
  color: #d8e3ea;

  font-size: 13px;
  letter-spacing: 4px;
}


/* =========================================================
   RESULTS
========================================================= */

.results-section {
  background: #f7f3ea;

  color: #12364c;

  padding: 70px 25px;
}

.results-inner {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.results-heading {
  margin-bottom: 12px;

  color: #b78326;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
}

#resultTitle {
  margin-bottom: 25px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-bottom: 25px;
}

.passages {
  display: grid;
  gap: 18px;
}


/* =========================================================
   SIMPLE SECTIONS
========================================================= */

.simple-section {
  padding: 80px 25px;

  background: #f8f4eb;

  color: #12364c;
}

.simple-section.alternate {
  background: #e8eef0;
}

.simple-section-inner {
  width: min(900px, 100%);
  margin: 0 auto;

  text-align: center;
}

.simple-section h2 {
  margin-bottom: 18px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
}

.simple-section p {
  font-size: 19px;
  line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 30px 20px;

  background: var(--navy-dark);

  color: #dce7ed;

  text-align: center;

  font-size: 14px;
  letter-spacing: 2px;
}

footer span {
  margin: 0 10px;

  color: var(--gold);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

  .header-inner {
    width: calc(100% - 50px);
  }

  .brand-name {
    font-size: 39px;
  }

  .brand-tagline {
    font-size: 13px;
    letter-spacing: 5px;
  }

  .main-nav {
    gap: 30px;
  }

  .hero-copy {
    width: 48%;
  }

  .hero-copy h1 {
    font-size: 65px;
  }

  .hero-description {
    font-size: 21px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

  .site-header {
    height: 130px;
  }

  .header-inner {
    width: calc(100% - 42px);
    justify-content: flex-start;
  }

  .brand {
    gap: 16px;
  }

  .ask-logo {
    width: 69px;
    height: 69px;

    border-radius: 17px;

    font-size: 29px;
  }

  .brand-name {
    font-size: 31px;
  }

  .brand-tagline {
    margin-top: 9px;

    font-size: 9px;
    letter-spacing: 4px;
  }

  .main-nav {
    display: none;
  }


  /* HERO */

  .hero {
    padding-bottom: 45px;
  }

  .hero-inner {
    width: 100%;
    height: 480px;

    background: none;
  }

  .hero-copy {
    position: absolute;

    top: 0;
    left: 0;

    z-index: 5;

    width: 54%;
    height: 100%;

    padding:
      40px
      0
      0
      22px;
  }

  .eyebrow {
    margin-bottom: 18px;

    font-size: 12px;
    letter-spacing: 4px;
  }

  .hero-copy h1 {
    font-size: clamp(43px, 11vw, 59px);
    line-height: 0.91;
    letter-spacing: -2px;
  }

  .hero-description {
    width: 100%;
    max-width: 100%;

    margin-top: 22px;

    font-size: 16px;
    line-height: 1.5;
  }

  .small-gold-line {
    width: 48px;

    margin-top: 20px;
  }

  .hero-subline {
    width: 260px;

    margin-top: 13px;

    font-size: 8px;
    letter-spacing: 2px;

    white-space: nowrap;
  }


  /* MOBILE IMAGE */

  .jesus-image-wrap {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
  }

  .jesus-image {
    object-position: 67% center;
  }

  .jesus-image-wrap::before {
    background:
      linear-gradient(
        90deg,
        rgba(3, 47, 73, 1) 0%,
        rgba(3, 47, 73, 0.96) 26%,
        rgba(3, 47, 73, 0.72) 43%,
        rgba(3, 47, 73, 0.12) 63%,
        transparent 80%
      );
  }

  .jesus-image-wrap::after {
    height: 90px;

    background:
      linear-gradient(
        to bottom,
        transparent,
        #074765
      );
  }


  /* QUOTE */

  .scripture-quote {
    width: calc(100% - 40px);

    margin:
      55px
      auto
      20px;
  }

  .scripture-quote p {
    font-size: 18px;
    line-height: 1.35;
  }

  .verse-reference {
    gap: 15px;

    margin-top: 17px;
  }

  .verse-reference span {
    width: 45px;
  }

  .verse-reference strong {
    font-size: 13px;
    letter-spacing: 4px;
  }


  /* ASK / SEEK / KNOCK */

  .ask-circles {
    width: calc(100% - 50px);

    margin:
      15px
      auto
      28px;

    gap: 18px;
  }

  .ask-circle {
    width: 62px;
    height: 62px;

    border-width: 1.5px;
  }

  .circle-letter {
    font-size: 24px;
  }

  .circle-word {
    margin-top: 3px;

    font-size: 6px;
    letter-spacing: 1px;
  }


  /* QUESTION */

  .question-area {
    width: calc(100% - 24px);
  }

  #questionForm {
    border-radius: 20px;
    padding: 20px;
  }

  #questionForm label {
    margin-bottom: 17px;

    font-size: 14px;
    letter-spacing: 3px;
  }

  .question-row {
    display: block;
  }

  #question {
    height: 115px;

    padding: 18px;

    border-radius: 16px;

    font-size: 16px;
  }

  #submitButton {
    width: 100%;
    height: 62px;

    margin-top: 12px;

    border-radius: 15px;

    font-size: 18px;
  }


  /* FEATURES */

  .features {
    width: calc(100% - 30px);

    grid-template-columns:
      1fr auto
      1fr auto
      1fr auto
      1fr;
  }

  .feature-icon {
    min-height: 42px;

    font-size: 31px;
  }

  .feature h3 {
    font-size: 8px;
    line-height: 1.45;
    letter-spacing: 2px;
  }

  .feature-divider {
    height: 68px;
  }


  /* CLOSING */

  .closing-message {
    width: calc(100% - 40px);

    gap: 10px;
  }

  .closing-message span {
    width: 32px;
  }

  .closing-message p {
    font-size: 7px;
    letter-spacing: 2px;

    white-space: nowrap;
  }


  /* LOWER SECTIONS */

  .results-section,
  .simple-section {
    padding:
      50px
      20px;
  }

  #resultTitle {
    font-size: 29px;
  }

  .simple-section h2 {
    font-size: 31px;
  }

  .simple-section p {
    font-size: 16px;
  }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 430px) {

  .site-header {
    height: 115px;
  }

  .header-inner {
    width: calc(100% - 30px);
  }

  .ask-logo {
    width: 62px;
    height: 62px;

    font-size: 25px;
  }

  .brand {
    gap: 13px;
  }

  .brand-name {
    font-size: 27px;
  }

  .brand-tagline {
    font-size: 8px;
    letter-spacing: 3px;
  }

  .hero-inner {
    height: 460px;
  }

  .hero-copy {
    width: 56%;

    padding-left: 20px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-subline {
    font-size: 7px;
  }

  .scripture-quote {
    margin-top: 45px;
  }

  .scripture-quote p {
    font-size: 17px;
  }

  .ask-circles {
    gap: 12px;
  }

}

/* =========================================================
   SCRIPTURE RESULT CARDS + LINKS
========================================================= */

.scripture-card {
  padding: 22px 0 24px;

  border-bottom: 1px solid rgba(11, 69, 104, 0.12);
}

.scripture-card:last-child {
  border-bottom: none;
}

.scripture-reference {
  margin-bottom: 6px;

  color: #073d5b;

  font-size: 22px;
  font-weight: 700;
}

.scripture-text {
  color: #12364c;

  font-size: 18px;
  line-height: 1.5;
}

.scripture-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;

  margin-top: 14px;
}

.scripture-context-link,
.scripture-chapter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;

  padding: 9px 14px;

  border-radius: 9px;

  text-decoration: none;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.scripture-context-link {
  color: #073d5b;

  background: #fff4d5;

  border: 1px solid #e3b854;
}

.scripture-chapter-link {
  color: #ffffff;

  background: #0b4568;

  border: 1px solid #0b4568;
}

.scripture-context-link:hover,
.scripture-chapter-link:hover {
  transform: translateY(-1px);
}

.scripture-context-link:hover {
  background: #ffe9aa;
}

.scripture-chapter-link:hover {
  background: #083754;
}

.category-tag {
  display: inline-block;

  padding: 6px 10px;

  border: 1px solid rgba(11, 69, 104, 0.18);
  border-radius: 999px;

  background: rgba(11, 69, 104, 0.06);

  color: #0b4568;

  font-size: 14px;
  font-weight: 700;
}


/* MOBILE RESULT LINKS */

@media (max-width: 768px) {

  .scripture-card {
    padding: 18px 0 20px;
  }

  .scripture-reference {
    font-size: 20px;
  }

  .scripture-text {
    font-size: 16px;
  }

  .scripture-links {
    flex-direction: column;
    align-items: stretch;

    gap: 9px;
  }

  .scripture-context-link,
  .scripture-chapter-link {
    width: 100%;

    text-align: center;

    font-size: 14px;
  }
}


/* =========================================================
   DESKTOP HERO — ROOMIER HEADLINE
   Keeps mobile unchanged and preserves ASK / SEEK / KNOCK circles.
========================================================= */

@media screen and (min-width: 769px) {

  /* Give the left copy more horizontal breathing room */
  .hero-copy {
    width: 52%;
    max-width: 900px;

    padding-left: 5.5vw;
    padding-top: 58px;
  }

  /*
    Current HTML has:
    Ask a<br>
    question.<br>
    Find the<br>
    Scripture.

    On desktop, combine it into two cleaner lines:
    Ask a question.
    Find the Scripture.
  */
  .hero-copy h1 br:nth-of-type(1),
  .hero-copy h1 br:nth-of-type(3) {
    display: none;
  }

  .hero-copy h1 br:nth-of-type(2) {
    display: block;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: 900px;

    font-size: clamp(60px, 4.25vw, 78px);
    line-height: 0.98;
    letter-spacing: -2px;
  }

  .hero-description {
    max-width: 620px;

    margin-top: 30px;
  }

  .hero-subline {
    max-width: 620px;
  }

  /* Keep Matthew 7:7 centered and separate from the headline */
  .scripture-quote {
    width: min(820px, 58%);

    margin-left: auto;
    margin-right: auto;
  }

  /* Explicitly preserve the clean circle layout */
  .ask-circles {
    width: min(520px, 90%);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 42px;
  }

  .ask-circle {
    width: 90px;
    height: 90px;

    border: 2px solid var(--gold);
    border-radius: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (min-width: 1400px) {

  .hero-copy {
    width: 54%;
    max-width: 960px;

    padding-left: 6vw;
  }

  .hero-copy h1 {
    max-width: 940px;

    font-size: clamp(64px, 4.1vw, 80px);
  }
}
