/* ============================================
   The Tax Priest - Main Stylesheet
   Design: Sinclair Creative
   Color Scheme: Warm brown base with yellow accents
   ============================================ */

:root {
    /* Primary Colors - Yellow Accent Theme */
    --primary-color: #F2A900;
    --primary-dark: #D49000;
    --secondary-color: #FFD166;
    --accent-color: #E8D5C4;
    --highlight-bg: #FFF4D6;

    /* Text Colors */
    --text-dark: #2C2416;
    --text-light: #5C4E3C;

    /* Background Colors */
    --background: #FDFBF8;
    --background-alt: #F8F4ED;

    /* Utility Colors */
    --border-color: #E5DDD3;
    --success-color: #7C9070;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(44, 36, 22, 0.08);
    --shadow-md: 0 4px 12px rgba(44, 36, 22, 0.12);
    --shadow-lg: 0 8px 24px rgba(44, 36, 22, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.25rem;
    text-align: center;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.4rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.logo-text {
    font-family: 'Crimson Text', serif;
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.06rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Nav button with white text */
.btn-nav {
    color: white !important;
}

.btn-nav:hover {
    color: white !important;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
/* Hero Section - Grid Layout Rebuild */
#hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    /* Reduced from 650px - 20% shorter */
    background-image: url('images/jack-wide.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Gradient Overlay - fades from opaque brown (left) to transparent (right) */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Near-black on left to transparent right. 
       To adjust color, change the rgb values (currently 10, 8, 5) in all stops below.
       Example: rgb(0, 0, 0) for pure black, rgb(44, 36, 22) for the original brown. */
    background: linear-gradient(to right,
            rgb(10, 8, 5) 0%,
            rgba(10, 8, 5, 0.99) 5%,
            rgba(10, 8, 5, 0.98) 15%,
            rgba(10, 8, 5, 0.95) 30%,
            rgba(10, 8, 5, 0.70) 40%,
            rgba(10, 8, 5, 0.10) 80%,
            rgba(10, 8, 5, 0.00) 100%);
    z-index: 1;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Text needs a bit more space, photo on right */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    height: 100%;
}

.hero-text-col {
    padding: 2rem 2rem 2rem 0;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* User request: Text centered above where buttons are */
    align-items: center;
    text-align: center;
}

.hero-image-col {
    /* Empty column to reserve space for the photo visibility */
    min-height: 1px;
}

.hero-text-col h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.hero-buttons .btn {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    /* Clean standard padding */
    white-space: nowrap;
    min-width: 160px;
    /* Ensure consistency */
}

/* Bio Section */
#bio {
    padding: 4rem 0 2.5rem;
    background: var(--background);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: stretch;
}

.bio-image img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    position: relative;
}

/* Warm filter overlay to match hero (50% of hero opacity) */
.bio-image {
    height: 100%;
    display: flex;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.bio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 36, 22, 0.1) 0%, rgba(139, 111, 71, 0) 100%);
    border-radius: 12px;
    pointer-events: none;
}

.bio-content {
    text-align: left;
}

.bio-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.bio-intro {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.bio-content .btn {
    margin-top: 1rem;
}

/* About Section */
#about {
    padding: 2rem 0 3rem;
    background: var(--background-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.about-card {
    background: var(--background);
    padding: 1.25rem 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 50%;
    color: var(--primary-color);
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.about-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Services Section */
#services {
    padding: 2rem 0 2.5rem;
    background: var(--background);
}

/* Services grid - 2x2 on desktop, 1 column on mobile */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-item {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    list-style: none;
    cursor: pointer;
}

.service-item summary::-webkit-details-marker {
    display: none;
}

.service-item summary h3 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.25rem;
}

/* Toggle icon - always visible */
.service-toggle {
    display: block;
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.service-toggle::before,
.service-toggle::after {
    content: '';
    position: absolute;
    background: var(--primary-color);
    transition: transform 0.2s ease;
}

.service-toggle::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service-toggle::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service-item[open] .service-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.service-content {
    padding: 0 1.25rem 1.25rem;
}

.service-item ul {
    list-style: none;
    padding-left: 0;
}

.service-item li {
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
}

.service-item li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.highlight {
    background: var(--accent-color);
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

/* Testimonials Section */
#testimonials {
    padding: 4rem 0 5rem;
    background: var(--primary-color);
    color: white;
}

#testimonials h2 {
    color: white;
    margin-bottom: 2.5rem;
}

.testimonials-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-wrapper {
    position: relative;
    width: 100%;
    min-height: 220px;
    overflow: hidden;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-card blockquote {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.8;
    font-style: italic;
    text-align: center;
}

.testimonial-card blockquote p {
    color: white;
    margin-bottom: 1.5rem;
}

.testimonial-card cite {
    font-style: normal;
    font-weight: 500;
    color: #F8F4ED;
    display: block;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: white;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover,
.dot.active {
    background: white;
    transform: scale(1.2);
}

/* FAQ Section */
#faq {
    padding: 4rem 0 5rem;
    background: var(--background);
}

/* Main FAQ Toggle Button */
.faq-main-toggle {
    max-width: 800px;
    margin: 0 auto;
}

.faq-main-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    cursor: pointer;
    list-style: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
}

.faq-main-button::-webkit-details-marker {
    display: none;
}

.faq-main-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.faq-main-button h2 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.faq-main-subtitle {
    color: var(--accent-color);
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 400;
}

.faq-toggle-icon {
    width: 40px;
    height: 40px;
    margin-top: 1rem;
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: '';
    position: absolute;
    background: white;
    transition: transform 0.3s ease;
}

.faq-toggle-icon::before {
    width: 3px;
    height: 18px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.faq-toggle-icon::after {
    width: 18px;
    height: 3px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.faq-main-toggle[open] .faq-toggle-icon::before {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-main-toggle[open] .faq-main-button {
    border-radius: 16px 16px 0 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 1.5rem;
    background: var(--background-alt);
    border-radius: 0 0 16px 16px;
    padding: 1.5rem;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-dark);
    background: var(--background);
    list-style: none;
    position: relative;
    padding-right: 3rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
    background: var(--background-alt);
}

.faq-content {
    padding: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
#contact {
    padding: 4rem 0 5rem;
    background: var(--background-alt);
}

.contact-intro {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--background);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Captcha styling */
.captcha-group input {
    max-width: 150px;
}

.captcha-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-buttons .btn {
    flex: 1;
    min-width: 200px;
}

.form-success {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.form-success .success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-success .success-icon svg {
    color: white;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: white;
}

.form-success p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
}

.form-success a {
    color: white;
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.email-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    word-break: break-all;
}

.email-link:hover {
    background: var(--secondary-color);
    color: white;
}

/* CTA Section */
#cta {
    padding: 4rem 0 5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.cta-card {
    text-align: center;
    color: white;
}

.cta-card h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-card p {
    color: var(--accent-color);
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline {
    border-color: white;
    color: white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--accent-color);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 0.25rem 0;
}

.footer-section a {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section button {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    font-family: inherit;
    text-align: left;
    transition: color 0.3s ease;
}

.footer-section button:hover {
    color: var(--secondary-color);
}

.footer-tagline {
    font-style: italic;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-portal-btn {
    margin-top: 0.75rem;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.footer-portal-btn:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--accent-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.ebook-features {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.ebook-features h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ebook-features ul {
    list-style: none;
}

.ebook-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-light);
    position: relative;
}

.ebook-features li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
}

.ebook-price {
    text-align: center;
    margin-bottom: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.price-note {
    color: var(--text-light);
}

.ebook-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ebook-form input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.ebook-guarantee {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    font-style: italic;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }

    .hero-container {
        gap: 2rem;
    }

    .bio-grid {
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Intermediate step to keep nav visible longer before switching to hamburger */
@media (max-width: 960px) {
    .nav-container {
        padding: 0.8rem 20px;
        /* Reduces bar height by ~40% (1.4 -> 0.8) which is > 20% */
    }

    .nav-links {
        gap: 0.6rem;
    }

    .nav-links a {
        font-size: 0.95rem;
        /* ~20% smaller than 1.25rem base but readable */
    }

    .logo-text {
        font-size: 1.35rem;
    }
}

/* Medium screens - switch to hamburger later */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--background);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: 1rem;
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links .btn {
        width: 100%;
        text-align: center;
    }
}

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }

    .hero-container {
        gap: 2rem;
    }

    .bio-grid {
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium screens - About section 2x2 layout */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small screens - About section single column */
@media (max-width: 576px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Tablets */
@media (max-width: 600px) {

    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--background);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: 1rem;
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links .btn {
        width: 100%;
        text-align: center;
    }

    /* Hero */
    #hero {
        padding: 6rem 0;
        min-height: 500px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    /* Bio - Image stays above text on mobile */
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bio-image {
        order: 1;
        max-width: 350px;
        margin: 0 auto;
    }

    .bio-content {
        order: 2;
    }

    .bio-content h2,
    .bio-content .bio-intro {
        text-align: center;
    }

    .bio-content .btn {
        display: block;
        text-align: center;
        margin: 1rem auto 0;
        max-width: 250px;
    }

    .about-card {
        padding: 1.25rem 1rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }

    .about-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .about-card p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    /* Services - Collapsed by default on mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .service-item {
        border-radius: 8px;
    }

    .service-item summary {
        padding: 1rem;
        cursor: pointer;
        pointer-events: auto;
        /* Enable clicking on mobile */
    }

    .service-item summary h3 {
        font-size: 1rem;
    }

    /* Show toggle on mobile */
    .service-toggle {
        display: block;
        width: 24px;
        height: 24px;
        position: relative;
        flex-shrink: 0;
    }

    .service-toggle::before,
    .service-toggle::after {
        content: '';
        position: absolute;
        background: var(--secondary-color);
        transition: transform 0.3s ease;
    }

    .service-toggle::before {
        width: 2px;
        height: 14px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .service-toggle::after {
        width: 14px;
        height: 2px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .service-item[open] .service-toggle::before {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .service-content {
        padding: 0 1rem 1rem;
    }

    /* Testimonials */
    .testimonials-carousel {
        flex-direction: column;
        gap: 1rem;
    }

    .carousel-btn {
        display: none;
    }

    .testimonial-wrapper {
        min-height: 200px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        order: 1;
    }

    .contact-info {
        order: 2;
    }

    /* Footer - More condensed on mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-section {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .footer-section p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .footer-section li {
        padding: 0;
    }

    .footer-section button {
        text-align: center;
    }

    .footer-tagline {
        font-size: 0.85rem;
    }

    .footer-portal-btn {
        margin: 0.5rem auto 0;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 1rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {

    /* General spacing */
    section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 15px;
    }

    /* Hero */
    #hero {
        padding: 2rem 0 3rem;
    }



    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    #testimonials {
        padding: 2.5rem 0 3rem;
    }

    /* Bio */
    .bio-grid {
        gap: 2.5rem;
    }

    .bio-content {
        text-align: center;
    }

    .bio-content h2 {
        font-size: 1.75rem;
        text-align: center;
    }

    .bio-intro {
        text-align: center;
    }

    /* About cards */
    .about-card {
        padding: 1.25rem 1rem;
    }

    .card-icon {
        width: 56px;
        height: 56px;
    }

    .card-icon svg {
        width: 28px;
        height: 28px;
    }

    /* Services */
    .service-item {
        padding: 1.25rem 1rem;
    }

    /* Testimonials */
    .testimonial-wrapper {
        min-height: 220px;
    }

    .testimonial-card blockquote {
        font-size: 0.95rem;
    }

    .testimonial-card cite {
        font-size: 0.85rem;
    }

    /* FAQ Mobile */
    .faq-container {
        padding: 1rem;
    }

    .faq-main-button {
        padding: 1.5rem 1rem;
    }

    .faq-main-button h2 {
        font-size: 1.5rem;
    }

    .faq-item summary {
        padding: 1rem;
        font-size: 0.95rem;
        padding-right: 2.5rem;
    }

    .faq-item summary::after {
        right: 1rem;
    }

    .faq-content {
        padding: 1rem;
    }

    /* Contact form */
    .contact-form-container {
        padding: 1.5rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .form-buttons .btn {
        width: 100%;
        min-width: unset;
    }

    .info-card {
        padding: 1.25rem;
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Modal */
    .modal-content {
        padding: 1.5rem;
    }

    .price {
        font-size: 2.5rem;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    #hero {
        padding: 4rem 0;
        min-height: 450px;
    }



    .testimonial-wrapper {
        min-height: 380px;
    }

    h2 {
        font-size: 1.35rem;
    }
}

/* ============================================
   Yellow Accent Theme Overrides
   ============================================ */

/* Hero Section */
.hero-overlay {
    background: linear-gradient(135deg, rgba(44, 36, 22, 0.85) 0%, rgba(139, 111, 71, 0.75) 100%);
}

.hero-subtitle {
    color: var(--secondary-color);
}

/* Testimonials Section */
#testimonials {
    background: var(--primary-color);
}

/* Card Icons */
.card-icon {
    background: var(--highlight-bg);
    color: var(--primary-color);
}

/* Highlight Text */
.highlight {
    background: var(--highlight-bg);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

/* Email Link Styling */
.email-link {
    background: var(--highlight-bg);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

/* ============================================
   FAQ Section - Yellow Header Theme
   ============================================ */

#faq .container {
    max-width: 800px;
}

.faq-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    border-radius: 12px 12px 0 0;
    text-align: center;
    color: white;
}

.faq-header h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.faq-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.faq-container {
    background: var(--background);
    padding: 2rem;
    border-radius: 0 0 12px 12px;
}

/* FAQ See More */
.faq-extra {
    display: none;
}

.faq-extra.visible {
    display: block;
}

.faq-see-more {
    text-align: center;
    margin-top: 1.5rem;
}

.faq-see-more.hidden {
    display: none;
}

/* ============================================
   Contact Form Toggle Slider
   ============================================ */

.contact-toggle-slider {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.toggle-slider-track {
    display: flex;
    position: relative;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.toggle-slider-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(33.333% - 2px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(242, 169, 0, 0.35);
    z-index: 1;
}

/* Indicator positions based on active button */
.toggle-slider-track[data-active="0"] .toggle-slider-indicator {
    transform: translateX(0);
}

.toggle-slider-track[data-active="1"] .toggle-slider-indicator {
    transform: translateX(100%);
}

.toggle-slider-track[data-active="2"] .toggle-slider-indicator {
    transform: translateX(200%);
}

.toggle-slider-btn {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 0.85rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.toggle-slider-btn.active {
    color: white;
}

.toggle-slider-btn:hover:not(.active) {
    color: var(--primary-color);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

/* Mobile responsive for toggle slider */
@media (max-width: 640px) {
    .toggle-slider-track {
        flex-direction: column;
        border-radius: 16px;
        width: 100%;
        max-width: 280px;
    }

    .toggle-slider-indicator {
        width: calc(100% - 8px);
        height: calc(33.333% - 2px);
        border-radius: 12px;
    }

    .toggle-slider-track[data-active="0"] .toggle-slider-indicator {
        transform: translateY(0);
    }

    .toggle-slider-track[data-active="1"] .toggle-slider-indicator {
        transform: translateY(100%);
    }

    .toggle-slider-track[data-active="2"] .toggle-slider-indicator {
        transform: translateY(200%);
    }

    .toggle-slider-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        text-align: center;
    }
}

/* ============================================
   Footer Responsive - Hide sections on mobile
   ============================================ */

.footer-links-desktop {
    display: block;
}

@media (max-width: 768px) {
    .footer-links-desktop {
        display: none;
    }
}

/* Pricing Section */
#pricing {
    padding: 2rem 0 5rem;
    background: var(--background-alt);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--background);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(229, 221, 211, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.pricing-icon {
    width: 64px;
    height: 64px;
    background: var(--highlight-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.pricing-icon svg {
    stroke-width: 1.5px;
}

.pricing-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.pricing-desc {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.4;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Crimson Text', serif;
    margin-top: auto;
}

.pricing-card .note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    opacity: 0.8;
}

/* Minimal pricing cards (no icons) */
.pricing-card-minimal {
    padding-top: 2rem;
}

.pricing-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

/* Pricing link style */
.pricing-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pricing-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Nonprofit pricing tiers */
.pricing-tiers {
    width: 100%;
    margin-top: 0.5rem;
}

.pricing-tier {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    align-items: center;
}

.pricing-tier:last-child {
    border-bottom: none;
}

.tier-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.tier-form {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.tier-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-family: 'Crimson Text', serif;
    text-align: right;
}

/* Minimal about cards (no icons, no boxes) */
.about-grid-minimal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.about-card-minimal {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
}

.about-card-minimal:hover {
    transform: none;
    box-shadow: none;
}

.about-card-minimal h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.about-card-minimal p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Button font fix - ensure serif font */
.btn {
    font-family: 'Lora', serif;
}

/* Mobile responsive for minimal about cards */
@media (max-width: 768px) {
    .about-grid-minimal {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-grid-minimal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pricing-tier {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        text-align: center;
    }

    .tier-price {
        text-align: center;
    }
}

/* Mobile responsive updates for pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Form Helper Text */
.form-helper-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* ============================================
   Hero Typography - Consolidated Responsive Rules
   H1: Big & Bold, 1-2 lines max
   Subtitle: 25% smaller, never wraps
   ============================================ */

/* Large tablets and small desktops - show line break */
/* Responsive Hero Adjustments */

/* Tablet & Mobile (Stacking Layout) */
@media (max-width: 768px) {
    #hero {
        align-items: flex-end;
        /* Align content to bottom */
        background-position: 70% 20%;
        /* Shift photo */
        padding: 0;
        height: auto;
        min-height: 700px;
    }

    /* On mobile, gradient should go from bottom (dark) to top (transparent) */
    #hero::before {
        background: linear-gradient(to top,
                rgba(44, 36, 22, 1) 0%,
                rgba(44, 36, 22, 0.95) 40%,
                rgba(44, 36, 22, 0.6) 60%,
                rgba(44, 36, 22, 0) 100%);
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        /* Top space for image, bottom for text */
        height: 100%;
        padding-top: 30vh;
        /* Push text down to reveal face */
        padding-bottom: 4rem;
    }

    /* Since we're pushing with padding, we don't strictly need grid-rows if we just stack */
    /* But sticking to the structure: */

    .hero-text-col {
        padding: 2rem 1rem;
        /* Ensure text is clearly legible against the dark bottom gradient */
        z-index: 3;
    }

    .hero-image-col {
        display: none;
        /* Logic is handled by container padding/background */
    }

    .hero-text-col h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-wrapper {
        padding-top: 40vh;
        /* Even more space for photo on small screens */
    }

    .hero-text-col h1 {
        font-size: 2.25rem;
    }
}

/* ============================================
   Pricing CTA and Compact Nonprofit Tiers
   ============================================ */

.pricing-cta {
    text-align: center;
    margin-top: 2rem;
}

.pricing-tiers-compact {
    margin-top: 0.75rem;
}

.tier-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.tier-row:last-child {
    border-bottom: none;
}

.tier-row span:first-child {
    color: var(--text-light);
}

.tier-row span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   Payment Options Section
   ============================================ */

.payment-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.payment-section h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.payment-subtitle {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.payment-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
}

.payment-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.payment-icon svg {
    width: 32px;
    height: 32px;
}

.venmo-icon {
    color: #008CFF;
}

.zelle-icon {
    color: #6D1ED4;
}

.payment-card h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.payment-handle {
    color: var(--accent-color);
    font-family: 'Lora', serif;
    font-size: 1rem;
    word-break: break-all;
}

@media (max-width: 480px) {
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .payment-card {
        padding: 1.5rem;
    }
}

/* ============================================
   Clickable Pricing Cards
   ============================================ */

.pricing-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.pricing-card-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card-link h3 {
    color: var(--primary-color);
}

/* ============================================
   Footer Payment Buttons
   ============================================ */

.footer-payment {
    max-width: 320px;
}

.footer-payment-options {
    margin-top: 1rem;
}

.footer-payment-options h5 {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-payment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.venmo-btn {
    background: linear-gradient(135deg, #008CFF 0%, #0070CC 100%);
    color: white;
}

.zelle-btn {
    background: linear-gradient(135deg, #6D1ED4 0%, #5817AA 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.payment-buttons-row {
    display: flex;
    gap: 0.5rem;
}

.payment-buttons-row .btn-payment {
    width: auto;
    padding: 0.5rem 0.75rem;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.payment-logo {
    flex-shrink: 0;
}

.footer-payment-options h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* Mobile hero height reduction and centering */
@media (max-width: 768px) {
    #hero {
        min-height: 416px;
        /* 520px * 0.8 = 416px (20% less) */
    }

    .hero-wrapper {
        justify-items: center;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Footer mobile centering - ALL sections */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section ul {
        text-align: center;
    }

    .footer-payment-options {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .payment-buttons-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #hero {
        min-height: 350px;
        /* Even smaller on tiny screens */
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
}

/* Fix Zelle button to match Venmo shape */
.zelle-btn {
    background: linear-gradient(135deg, #6D1ED4 0%, #5817AA 100%);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

/* Payment Options heading in footer - yellow */
.footer-payment-options h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* Fix btn-outline hover state for light yellow buttons */
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Client Portal button hover - dark text */
.btn-client-portal:hover {
    background: var(--primary-color);
    color: var(--text-dark) !important;
    border-color: var(--primary-color);
}

/* Payment PNG images */
.payment-img-link {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.payment-img-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.payment-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

/* Desktop hero - 5% taller on widest screens */
@media (min-width: 1200px) {
    #hero {
        min-height: 546px;
        /* 520px * 1.05 = 546px */
    }
}

/* Footer typography consistency */
footer .footer-section h4 {
    color: var(--secondary-color);
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

footer .footer-section p,
footer .footer-section .footer-portal-btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

footer .footer-payment-options h4 {
    font-size: 1rem;
    margin-top: 1rem;
}

/* Footer layout - 2 columns on desktop */
.footer-content {
    grid-template-columns: 1fr 1fr;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #hero {
        min-height: 333px;
    }

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

    /* Footer mobile - center all content */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section,
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-payment-options {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .payment-buttons-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #hero {
        min-height: 280px;
    }
}

/* Hero image position adjustment - prevent head cutoff at wider viewports */
@media (min-width: 925px) {
    #hero {
        background-position: top right;
    }
}

/* Hero image max-width constraint */
@media (min-width: 1200px) {
    #hero {
        background-size: 1200px auto;
        background-position: top right;
    }
}

/* Truly mobile - hamburger menu (under 600px) */
@media (max-width: 600px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--background);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: 1rem;
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-text-item,
    .nav-btn-item {
        display: block;
        width: 100%;
    }

    .nav-links .btn {
        width: 100%;
        text-align: center;
    }
}

/* Payment item with handle underneath */
.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.payment-handle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-align: center;
}

/* Venmo handle - subtle blue tint */
.venmo-handle {
    color: rgba(160, 195, 240, 0.85);
}

/* Zelle handle - subtle purple tint */
.zelle-handle {
    color: rgba(200, 175, 235, 0.85);
}

/* Client Portal button - keep on one line */
.btn-client-portal {
    white-space: nowrap;
}

/* Smoother nav transitions */
.nav-links {
    transition: all 0.3s ease;
}

.nav-btn-item .btn {
    white-space: nowrap;
}

/* =========================================
   Mobile Bio Layout Adjustments - UPDATED
   ========================================= */

/* Hide mobile-specific image on desktop */
.mobile-bio-img {
    display: none;
}

/* Mobile layout (Tablet and smaller) */
@media (max-width: 768px) {

    /* Show mobile image - smaller and centered */
    .mobile-bio-img {
        display: block;
        width: 70%;
        max-width: 300px;
        margin: 1.5rem auto;
        border-radius: 12px;
        box-shadow: var(--shadow-md);
    }

    .mobile-bio-img img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        object-fit: cover;
    }

    /* Hide desktop image column */
    .bio-image {
        display: none !important;
    }

    /* Reset grid to block flow */
    .bio-grid {
        display: block;
    }

    /* Enforce left text alignment */
    .bio-content,
    .bio-content p,
    .bio-intro {
        text-align: left !important;
    }
}

/* =========================================
   Clergy Page Bio Grid - Custom Styling
   ========================================= */

/* Clergy bio text improvements */
.clergy-bio-grid .bio-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.clergy-bio-grid .bio-content p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.clergy-bio-grid .trust-points {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.clergy-bio-grid .trust-point {
    text-align: left;
    flex: 1;
    min-width: 120px;
}

.clergy-bio-grid .trust-point strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.clergy-bio-grid .trust-point span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Clergy page mobile - keep photo visible and stack properly */
@media (max-width: 768px) {
    .clergy-bio-grid {
        display: flex !important;
        flex-direction: column;
    }

    .clergy-bio-grid .bio-image {
        display: block !important;
        width: 70%;
        max-width: 280px;
        margin: 0 auto 2rem;
    }

    .clergy-bio-grid .bio-image img {
        width: 100%;
        border-radius: 12px;
        box-shadow: var(--shadow-md);
    }

    .clergy-bio-grid .trust-points {
        flex-direction: column;
        gap: 1rem;
    }

    .clergy-bio-grid .trust-point {
        text-align: center;
    }
}

/* =========================================
   Homepage Bio Image Whitespace Fix
   ========================================= */

/* Remove any whitespace/padding around mobile bio image */
.mobile-bio-img {
    line-height: 0;
    font-size: 0;
}

.mobile-bio-img img {
    display: block;
    vertical-align: bottom;
}

/* =========================================
   Additional Centering & Styling Fixes
   ========================================= */

/* Homepage: Center bio-intro on mobile */
@media (max-width: 768px) {
    .bio-intro {
        text-align: center !important;
    }
}

/* Clergy page: Center the h3 heading */
.clergy-bio-grid .bio-content h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Clergy page: Trust points with card boxes (like homepage about cards) */
.clergy-bio-grid .trust-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.clergy-bio-grid .trust-point {
    background: var(--background);
    padding: 1.25rem 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clergy-bio-grid .trust-point:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Clergy page mobile: Stack trust point cards */
@media (max-width: 768px) {
    .clergy-bio-grid .trust-points {
        grid-template-columns: 1fr;
    }

    .clergy-bio-grid .bio-content h3 {
        text-align: center;
    }
}

/* =========================================
   Stack Dual-Entity Badges Vertically
   ========================================= */

.dual-entity-badge {
    flex-direction: column !important;
    align-items: center;
    gap: 0.75rem !important;
}

/* Ensure individual badges don't get too wide */
.dual-entity-badge .badge {
    display: inline-block;
    width: auto;
}

/* =========================================
   CORRECTION: Badges Side-by-Side
   ========================================= */

.dual-entity-badge {
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    /* Safety wrap for tiny screens */
    gap: 1rem !important;
}

/* =========================================
   Specificity Fix: Force Mobile Centering for Bio Intro
   ========================================= */

@media (max-width: 768px) {
    div.bio-content p.bio-intro {
        text-align: center !important;
    }
}

/* =========================================
   Sync Bio Title & Subtitle Alignment
   ========================================= */

@media (max-width: 768px) {
    div.bio-content h2 {
        text-align: center !important;
    }
}