/*
 * Elphun Child Theme
 * A child theme for the Astra WordPress theme.
 * This file declares the theme relationship and defines
 * the core brand styles for the Elphun website.
 *
 * Theme Name:   Elphun Child
 * Theme URI:    https://elphun.com
 * Description:  Elphun child theme based on Astra
 * Author:       Elphun
 * Template:     astra
 * Version:      1.0.0
 * Text Domain:  elphun-child
*/

/* =============================================================================
   Brand Color Palette & Typography Variables
   ============================================================================= */

:root {
    --color-terracotta:   #C4603A;
    --color-cream:        #FAF3E0;
    --color-forest-green: #2C4A35;
    --color-charcoal:     #3A3A3A;
    --color-warm-gray:    #F5EFE6;

    --font-body:    'Lato', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* =============================================================================
   Base Typography
   ============================================================================= */

body {
    font-family: var(--font-body);
    color: var(--color-charcoal);
    background-color: var(--color-warm-gray);

}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

/* =============================================================================
   Links
   ============================================================================= */

a,
a:visited {
    color: var(--color-terracotta);
}

a:hover,
a:focus {
    color: var(--color-forest-green);
}

/* =============================================================================
   Hero Section — .elphun-hero
   ============================================================================= */

.elphun-hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    background-color: var(--color-forest-green); /* fallback before image loads */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay so text stays readable over any photo */
.elphun-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.elphun-hero__content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    text-align: center;
    padding: 0 1.5rem;
}

.elphun-hero__content h1 {
    font-family: var(--font-heading);
    color: var(--color-cream);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.elphun-hero__sub {
    font-family: var(--font-body);
    color: var(--color-cream);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 580px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Primary CTA button */
.elphun-btn-primary {
    display: inline-block;
    background-color: var(--color-terracotta);
    color: var(--color-cream);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.elphun-btn-primary:hover,
.elphun-btn-primary:focus {
    filter: brightness(0.9);
    color: var(--color-cream); /* keep cream on hover, override global link rule */
}

/* =============================================================================
   How It Works Section — .elphun-how-it-works
   ============================================================================= */

.elphun-how-it-works {
    background: var(--color-cream);
    padding: 5rem 2rem;
    text-align: center;
}

.elphun-how-it-works__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.elphun-how-it-works h2 {
    font-family: 'Playfair Display', serif;
    color: var(--color-green);
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.elphun-section-sub {
    font-family: 'Lato', sans-serif;
    color: var(--color-charcoal);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.85;
}

.elphun-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    text-align: left;
}

.elphun-step {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.elphun-step__number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--color-terracotta);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.elphun-step h3 {
    font-family: 'Playfair Display', serif;
    color: var(--color-green);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.elphun-step p {
    font-family: 'Lato', sans-serif;
    color: var(--color-charcoal);
    font-size: 0.95rem;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .elphun-steps {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   Elphun Home Template — Full-Width Layout Override
   Scoped to .page-template-page-home so it only affects the homepage.
   ============================================================================= */

.page-template-page-home #content,
.page-template-page-home #primary,
.page-template-page-home .site-content,
.page-template-page-home .content-area,
.page-template-page-home .entry-content,
.page-template-page-home .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.page-template-page-home .site-primary {
    width: 100% !important;
}

.page-template-page-home #secondary,
.page-template-page-home .widget-area,
.page-template-page-home aside.secondary {
    display: none !important;
}

.page-template-page-home #primary,
.page-template-page-home .site-main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.page-template-page-home #page,
.page-template-page-home #content {
    max-width: 100% !important;
}

/* =============================================================================
   Custom Header — .elphun-header
   ============================================================================= */

.elphun-header {
    background: #FAF3E0;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e8e0d0;
}

.elphun-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.elphun-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2C4A35;
    text-decoration: none;
    font-weight: 700;
}

.elphun-logo:hover {
    color: #2C4A35;
}

.elphun-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.elphun-nav ul li a {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2C4A35;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.elphun-nav ul li a:hover {
    color: #C4603A;
}

/* =============================================================================
   Trust Bar — .elphun-trust
   ============================================================================= */

.elphun-trust {
    background: var(--color-forest-green);
    padding: 4rem 2rem;
}

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

.elphun-trust__item {
    text-align: center;
    color: var(--color-cream);
}

.elphun-trust__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.elphun-trust__item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--color-cream);
}

.elphun-trust__item p {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .elphun-trust__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .elphun-trust__inner {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   Footer — .elphun-footer
   ============================================================================= */

.elphun-footer {
    background: #1e3326;
    color: var(--color-cream);
    padding: 4rem 2rem 0;
}

.elphun-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.elphun-footer__logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--color-cream);
    text-decoration: none;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.elphun-footer__brand p {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    line-height: 1.65;
    opacity: 0.75;
}

.elphun-footer__links h5,
.elphun-footer__contact h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.elphun-footer__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elphun-footer__links ul li {
    margin-bottom: 0.5rem;
}

.elphun-footer__links ul li a {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--color-cream);
    text-decoration: none;
    opacity: 0.75;
}

.elphun-footer__links ul li a:hover {
    opacity: 1;
    color: var(--color-cream);
}

.elphun-footer__contact p {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    line-height: 1.65;
    opacity: 0.75;
    margin-bottom: 1.25rem;
}

.elphun-btn-small {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

.elphun-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 1.25rem 2rem;
    max-width: 100%;
}

.elphun-footer__bottom p {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    opacity: 0.5;
    margin: 0;
}

@media (max-width: 768px) {
    .elphun-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =============================================================================
   Start Planning Page — .elphun-page-hero & .elphun-form-section
   ============================================================================= */

.elphun-page-hero {
    background: #2C4A35;
    padding: 5rem 2rem 4rem;
    text-align: center;
    color: var(--color-cream);
}

.elphun-page-hero__content {
    max-width: 700px;
    margin: 0 auto;
}

.elphun-page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.elphun-page-hero p {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 520px;
    margin: 0 auto;
}

.elphun-form-section {
    background: #F5EFE6;
    padding: 5rem 2rem;
}

.elphun-form-section__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.elphun-form-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.elphun-form-wrap h2 {
    font-family: 'Playfair Display', serif;
    color: #2C4A35;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.elphun-form-intro {
    font-family: 'Lato', sans-serif;
    color: var(--color-charcoal);
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1.75rem;
}

.elphun-form-reassurance {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding: 1.25rem;
    background: var(--color-cream);
    border-radius: 8px;
    border-left: 3px solid var(--color-terracotta);
}

.elphun-reassurance-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.elphun-form-reassurance p {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--color-charcoal);
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   About Page — .elphun-about-section
   ============================================================================= */

.elphun-about-section {
    background: #F5EFE6;
    padding: 5rem 2rem;
}

.elphun-about-section__inner {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.elphun-about-story h2,
.elphun-about-approach h2,
.elphun-about-cta h2 {
    font-family: 'Playfair Display', serif;
    color: #2C4A35;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.elphun-about-story p,
.elphun-about-approach > p {
    font-family: 'Lato', sans-serif;
    color: #3A3A3A;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.elphun-approach-items {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.elphun-approach-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.elphun-approach-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.elphun-approach-item h4 {
    font-family: 'Playfair Display', serif;
    color: #2C4A35;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.elphun-approach-item p {
    font-family: 'Lato', sans-serif;
    color: #3A3A3A;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

.elphun-about-cta {
    text-align: center;
    background: #2C4A35;
    padding: 3rem 2rem;
    border-radius: 12px;
    color: #FAF3E0;
}

.elphun-about-cta h2 {
    color: #FAF3E0;
    margin-bottom: 0.75rem;
}

.elphun-about-cta p {
    font-family: 'Lato', sans-serif;
    color: #FAF3E0;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.elphun-about-cta .elphun-btn-primary {
    color: #FAF3E0 !important;
}

.elphun-about-cta .elphun-btn-primary:hover {
    color: #FAF3E0 !important;
}

/* =============================================================================
   How It Works Page — .elphun-hiw-section, .elphun-hiw-faq, .elphun-hiw-cta
   ============================================================================= */

.elphun-hiw-section {
    background: #FAF3E0;
    padding: 5rem 2rem;
}

.elphun-hiw-section__inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.elphun-hiw-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
}

.elphun-hiw-step__number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #C4603A;
    line-height: 1;
    text-align: center;
}

.elphun-hiw-step__content h2 {
    font-family: 'Playfair Display', serif;
    color: #2C4A35;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.elphun-hiw-step__content p {
    font-family: 'Lato', sans-serif;
    color: #3A3A3A;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.elphun-hiw-faq {
    background: #fff;
    padding: 5rem 2rem;
}

.elphun-hiw-faq__inner {
    max-width: 820px;
    margin: 0 auto;
}

.elphun-hiw-faq__inner h2 {
    font-family: 'Playfair Display', serif;
    color: #2C4A35;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.elphun-faq-item {
    border-bottom: 1px solid #e8e0d0;
    padding: 1.75rem 0;
}

.elphun-faq-item:last-child {
    border-bottom: none;
}

.elphun-faq-item h4 {
    font-family: 'Playfair Display', serif;
    color: #2C4A35;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.elphun-faq-item p {
    font-family: 'Lato', sans-serif;
    color: #3A3A3A;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.elphun-hiw-cta {
    background: #2C4A35;
    padding: 5rem 2rem;
    text-align: center;
}

.elphun-hiw-cta__inner {
    max-width: 600px;
    margin: 0 auto;
}

.elphun-hiw-cta h2 {
    font-family: 'Playfair Display', serif;
    color: #FAF3E0;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.elphun-hiw-cta p {
    font-family: 'Lato', sans-serif;
    color: #FAF3E0;
    opacity: 0.85;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.elphun-hiw-cta .elphun-btn-primary {
    color: #FAF3E0 !important;
}

@media (max-width: 600px) {
    .elphun-hiw-step {
        grid-template-columns: 1fr;
    }
    .elphun-hiw-step__number {
        font-size: 2.5rem;
        text-align: left;
    }
}

/* =============================================================================
   Blog & Single Post Styles
   ============================================================================= */

/* Fix background color sitewide */
body {
    background-color: #FAF3E0 !important;
}

/* Blog header - use our custom header styles */
.site-header {
    background: #FAF3E0 !important;
    border-bottom: 1px solid #e8e0d0 !important;
}

.site-header .site-title a,
.site-header .site-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.5rem !important;
    color: #C4603A !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.main-header-bar .main-header-bar-wrap,
.ast-masthead-custom-menu-items {
    background: #FAF3E0 !important;
}

/* Nav menu styling */
.main-navigation .menu-item a,
.main-header-menu .menu-item a {
    font-family: 'Lato', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #2C4A35 !important;
    text-decoration: none !important;
}

.main-navigation .menu-item a:hover,
.main-header-menu .menu-item a:hover {
    color: #C4603A !important;
}

/* Blog page and single post background */
.blog .site-content,
.single .site-content,
.blog #page,
.single #page {
    background-color: #FAF3E0 !important;
}

/* Post content area */
.blog .entry-content,
.single .entry-content,
.blog article,
.single article {
    background: #ffffff;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    max-width: 780px;
    margin: 2rem auto;
}

/* Post title */
.blog .entry-title,
.single .entry-title,
h1.entry-title {
    font-family: 'Playfair Display', serif !important;
    color: #2C4A35 !important;
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
}

/* Post meta (author, date) */
.entry-meta,
.posted-on,
.byline {
    font-family: 'Lato', sans-serif !important;
    color: #C4603A !important;
    font-size: 0.9rem !important;
}

/* Post body text */
.entry-content p,
.single .entry-content p {
    font-family: 'Lato', sans-serif !important;
    color: #3A3A3A !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
    margin-bottom: 1.25rem !important;
}

/* Post headings */
.entry-content h2 {
    font-family: 'Playfair Display', serif !important;
    color: #2C4A35 !important;
    font-size: 1.5rem !important;
    margin: 2rem 0 1rem !important;
}

.entry-content h3 {
    font-family: 'Playfair Display', serif !important;
    color: #2C4A35 !important;
    font-size: 1.2rem !important;
    margin: 1.5rem 0 0.75rem !important;
}

/* Post links */
.entry-content a {
    color: #C4603A !important;
}

.entry-content a:hover {
    color: #2C4A35 !important;
}

/* Featured image */
.single .wp-post-image,
.blog .wp-post-image {
    border-radius: 8px !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    height: auto !important;
}

/* Blog list page */
.blog .posts-container,
.blog .ast-row {
    max-width: 860px !important;
    margin: 2rem auto !important;
    padding: 0 1.5rem !important;
}

.blog .ast-article-post {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

/* Astra footer override */
.site-footer {
    background: #1e3326 !important;
    color: #FAF3E0 !important;
    text-align: center !important;
    padding: 1.5rem !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 0.8rem !important;
}

.site-footer a {
    color: #C4603A !important;
}

/* Hide sidebar on blog pages */
.blog #secondary,
.single #secondary {
    display: none !important;
}

.blog #primary,
.single #primary {
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix blog list card width and title size */
.blog .ast-article-post {
    max-width: 860px !important;
    margin: 2rem auto !important;
    width: 100% !important;
}

.blog .entry-title {
    font-size: 1.4rem !important;
}

/* Fix footer - hide Astra footer inner white box */
.site-footer .ast-footer-copyright {
    background: #1e3326 !important;
    color: rgba(250, 243, 224, 0.6) !important;
    padding: 1.25rem !important;
}

.footer-widget-area,
.ast-footer-widgets-wrap {
    display: none !important;
}

/* Remove Powered by Astra link */
.site-footer .ast-footer-copyright a {
    display: none !important;
}

.site-footer .ast-footer-copyright::after {
    content: ' El Phun. All rights reserved.';
    color: rgba(250, 243, 224, 0.5);
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
}

/* =============================================================================
   Blog Single Post Template
   ============================================================================= */

.elphun-post-hero {
    background: #2C4A35;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.elphun-post-hero__inner {
    max-width: 780px;
    margin: 0 auto;
}

.elphun-post-title {
    font-family: 'Playfair Display', serif;
    color: #FAF3E0;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.elphun-post-meta {
    font-family: 'Lato', sans-serif;
    color: #FAF3E0;
    opacity: 0.75;
    font-size: 0.9rem;
}

.elphun-post-section {
    background: #F5EFE6;
    padding: 4rem 2rem;
}

.elphun-post-section__inner {
    max-width: 780px;
    margin: 0 auto;
}

.elphun-post-content {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.elphun-post-image {
    margin-bottom: 2rem;
}

.elphun-post-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.elphun-post-body p {
    font-family: 'Lato', sans-serif;
    color: #3A3A3A;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.elphun-post-body h2 {
    font-family: 'Playfair Display', serif;
    color: #2C4A35;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.elphun-post-body h3 {
    font-family: 'Playfair Display', serif;
    color: #2C4A35;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.elphun-post-body a {
    color: #C4603A;
}

.elphun-post-body ul,
.elphun-post-body ol {
    font-family: 'Lato', sans-serif;
    color: #3A3A3A;
    font-size: 1rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.elphun-post-cta {
    background: #2C4A35;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    color: #FAF3E0;
}

.elphun-post-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #FAF3E0;
}

.elphun-post-cta p {
    font-family: 'Lato', sans-serif;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.elphun-post-cta .elphun-btn-primary {
    color: #FAF3E0 !important;
}

/* =============================================================================
   Blog Index Template
   ============================================================================= */

.elphun-blog-section {
    background: #F5EFE6;
    padding: 4rem 2rem;
}

.elphun-blog-section__inner {
    max-width: 860px;
    margin: 0 auto;
}

.elphun-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.elphun-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.elphun-blog-card__content {
    padding: 2rem;
}

.elphun-blog-card__meta {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: #C4603A;
    margin-bottom: 0.75rem;
}

.elphun-blog-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.elphun-blog-card__title a {
    color: #2C4A35;
    text-decoration: none;
}

.elphun-blog-card__title a:hover {
    color: #C4603A;
}

.elphun-blog-card__excerpt {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #3A3A3A;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.elphun-blog-read-more {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #C4603A;
    text-decoration: none;
}

.elphun-blog-read-more:hover {
    color: #2C4A35;
}

@media (max-width: 640px) {
    .elphun-blog-card {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   Ellie Embedded Chat Section — .elphun-ellie-section
   ============================================================================= */

.elphun-ellie-section {
    background: #FAF3E0;
    padding: 5rem 2rem;
    border-top: 1px solid #e8e0d0;
}

.elphun-ellie-section__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.elphun-ellie-text h2 {
    font-family: 'Playfair Display', serif;
    color: #2C4A35;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.elphun-ellie-text p {
    font-family: 'Lato', sans-serif;
    color: #3A3A3A;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.elphun-ellie-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elphun-ellie-bullets li {
    font-family: 'Lato', sans-serif;
    color: #2C4A35;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.4rem 0;
}

.elphun-ellie-embed {
    width: 100%;
}

@media (max-width: 768px) {
    .elphun-ellie-section__inner {
        grid-template-columns: 1fr;
    }
    .elphun-ellie-embed,
    .elphun-ellie-embed iframe {
        height: 450px;
    }
}

/* Move Astra scroll-to-top arrow to left side — keeps right clear for Ellie */
#ast-scroll-top.ast-scroll-to-top-right {
    right: auto !important;
    left: 1.5rem !important;
}

/* =============================================================================
   Ellie Inline Chat Widget
   ============================================================================= */

.ellie-chat-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 520px;
}

.ellie-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #FAF3E0;
}

.ellie-msg {
    display: flex;
    max-width: 85%;
}

.ellie-msg--bot {
    align-self: flex-start;
}

.ellie-msg--user {
    align-self: flex-end;
}

.ellie-msg__bubble {
    padding: 0.85rem 1.1rem;
    border-radius: 18px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ellie-msg--bot .ellie-msg__bubble {
    background: #2C4A35;
    color: #FAF3E0;
    border-bottom-left-radius: 4px;
}

.ellie-msg--user .ellie-msg__bubble {
    background: #C4603A;
    color: #FAF3E0;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.ellie-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #FAF3E0;
    border-radius: 50%;
    margin: 0 2px;
    animation: ellie-bounce 1.2s infinite;
}

.ellie-dot:nth-child(2) { animation-delay: 0.2s; }
.ellie-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes ellie-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Input row */
.ellie-chat-input-row {
    display: flex;
    padding: 1rem;
    gap: 0.75rem;
    background: #fff;
    border-top: 1px solid #e8e0d0;
}

.ellie-chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e8e0d0;
    border-radius: 24px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #3A3A3A;
    outline: none;
    background: #FAF3E0;
}

.ellie-chat-input:focus {
    border-color: #2C4A35;
}

.ellie-chat-send {
    background: #C4603A;
    color: #FAF3E0;
    border: none;
    border-radius: 24px;
    padding: 0.75rem 1.25rem;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: filter 0.2s;
}

.ellie-chat-send:hover {
    filter: brightness(0.9);
}

.ellie-chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================================================
   Mobile Optimizations — max-width 768px
   ============================================================================= */

@media (max-width: 768px) {

    /* --- Header: stack logo + nav vertically, stay on cream --- */
    .elphun-header {
        padding: 1rem;
    }

    .elphun-header__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .elphun-nav ul {
        flex-wrap: wrap;
        gap: 0.5rem 1.25rem;
    }

    .elphun-nav ul li a {
        font-size: 0.9rem;
    }

    /* --- Hero: fix crop, reduce height, tighten padding --- */
    .elphun-hero {
        min-height: 70vh;
        background-position: center top;
    }

    .elphun-hero__content {
        padding: 2rem 1.25rem;
    }

    /* --- Sections: reduce side padding so text breathes --- */
    .elphun-how-it-works,
    .elphun-hiw-section,
    .elphun-hiw-faq,
    .elphun-about-section,
    .elphun-form-section,
    .elphun-ellie-section,
    .elphun-trust,
    .elphun-hiw-cta,
    .elphun-about-cta {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* --- Blog cards: full-width image on top, content below --- */
    .elphun-blog-card {
        grid-template-columns: 1fr;
    }

    .elphun-blog-card__image img {
        height: 200px;
        width: 100%;
        object-fit: cover;
    }

    .elphun-blog-card__content {
        padding: 1.25rem;
    }

    /* --- Single post: tighter card padding --- */
    .elphun-post-content {
        padding: 1.5rem 1.25rem;
    }

    /* --- Ellie chat section: reduce height on mobile --- */
    .ellie-chat-box {
        height: 460px;
    }

    /* --- Form card: tighter padding on small screens --- */
    .elphun-form-wrap {
        padding: 1.5rem 1.25rem;
    }

    /* --- Footer: tighten up --- */
    .elphun-footer {
        padding: 3rem 1.25rem 0;
    }

    /* --- How It Works step cards --- */
    .elphun-step {
        padding: 1.5rem 1.25rem;
    }
}

/* =============================================================================
   Mobile Optimizations — max-width 480px
   ============================================================================= */

@media (max-width: 480px) {

    /* Hero even shorter, text smaller */
    .elphun-hero {
        min-height: 60vh;
    }

    /* Nav: smaller gap, wraps tidily */
    .elphun-nav ul {
        gap: 0.4rem 1rem;
    }

    /* Blog cards: single column already handled, just tighten content */
    .elphun-blog-card__content {
        padding: 1rem;
    }

    /* Ellie chat height on very small screens */
    .ellie-chat-box {
        height: 400px;
    }

    /* Reduce section top/bottom padding */
    .elphun-how-it-works,
    .elphun-hiw-section,
    .elphun-hiw-faq,
    .elphun-about-section,
    .elphun-form-section,
    .elphun-ellie-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}
