html {
    font-size: 100%;
}

body {
    background-color: #2C444C;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

h1 { 
    font-size: clamp(2.25rem, 5vw, 3.5rem); 
}

h2 { 
    font-size: clamp(1.75rem, 4vw, 2.5rem); 
}

h3 {
     font-size: 1.4rem; 
}

p  { 
    font-size: 1.125rem; 
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.3s ease-in-out;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    margin-left: 1rem;
}

.navbar {
    top: 0;
    left: 0;
    z-index: 1000;
    position: fixed;
    height: 78px;
    width: 100%;
    background-color: #2C444C;
    color: #F4E9D8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid #FEF488; /* Subtle border matching your color scheme */
}

.navbar ul {
    list-style-type: none;
    margin: 0.5rem;
    padding: 1rem;
    display: flex;
}

.navbar li {
    margin: 0 1rem;
    font-size: 1.2rem;
}

.navbar a {
    color: #F4E9D8;
    text-decoration: none;
}

.navbar a:hover {
    color: #FEF488; /* Subtle hover effect matching your color scheme */
    border: 2px solid #FEF488; /* Subtle border on hover */
}

.hero {
    margin: 80px auto 0; /* 80px top margin clears navbar; auto centers the container */
    max-width: 1100px; /* Prevents the two halves from drifting too far apart on wide screens */
    min-height: 55vh; /* Much tighter vertical height than 85vh */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    gap: 2.5rem;
}

.hero-left,
.hero-right {
    flex: 1; /* Gives each side 50% of the available space */
}

.hero-left {
    display: flex;
    justify-content: center;
}

.hero-left img {
    max-width: 100%;
    max-height: 400px; /* Keeps the logo from getting too tall */
    height: auto;
    border-style: groove;
    border-color: #FEF488; /* Subtle border matching your color scheme */
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.hero-right blockquote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    color: #FEF488;
}

.hero-right cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-style: normal;
    font-weight: bold;
    color: #FEF488;
}

.tagline {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #F4E9D8;
}

.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    scroll-margin-top: 80px; /* Prevents fixed navbar from covering the heading on anchor click */
}

.content-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.75rem;
    color: #F4E9D8;
}

.section-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    color: #FEF488;
    line-height: 1.5;
}

.card-container {
    display: flex;
    flex-wrap: wrap; /* Allows cards to wrap onto a new line on smaller screens */
    justify-content: center;
    gap: 2rem;
}

.verse-card {
    flex: 1 1 300px; /* Grow, shrink, and start at a 300px base width */
    background-color: #2C444C; /* Dark background to match your color scheme */
    border: 1px solid #FEF488; /* Subtle border matching your color scheme */
    border-top: 4px solid #FEF488; /* Subtle accent bar matching your navbar */
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.verse-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    color: #F4E9D8;
    margin-bottom: 1rem;
}

.verse-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #FEF488;
    font-style: italic;
}

.footer p {
    text-align: center;
    font-size: 0.9rem;
    color: #FEF488;
    margin: 1rem 0;
}

.testimony-section {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on smaller screens */
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 2rem;
}

.testimony-left {
    flex: 1;
}

.testimony-left img {
    max-width: 100%;
    height: auto;
    align-self: center; /* Centers the image vertically if the text is taller */
}

.testimony-right {
    flex: 3;
    max-width: 1200px; /* Optional: limits the width of the text for better readability */
    align-self: center; /* Centers the text vertically if the image is taller */
    align-items: center;
}

.testimony-right h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: #F4E9D8;
    margin-bottom: 1rem;
    align-items: center; /* Centers the heading vertically */
}

.testimony-right p {
    font-size: 1.125rem;
    line-height: 1.4;
    color: #FEF488;
    align-items: center; /* Centers the paragraph vertically */
}   

:root { --nav-h: 80px; }
.navbar { height: var(--nav-h); }
.hero { margin-top: var(--nav-h); }
.content-section { scroll-margin-top: var(--nav-h); }

@media (max-width: 768px) {
  :root { --nav-h: 120px; }          /* tune after testing on a real phone */
  .navbar { flex-direction: column; justify-content: center; }
  .navbar ul { flex-wrap: wrap; justify-content: center; padding: 0; }
  .hero { flex-direction: column; }  /* stack image above the verse */
}