/*
Theme Name: Assistance Guide Online
Theme URI: https://homerefreshpro.com/
Author: Assistance Guide
Author URI: https://homerefreshpro.com/
Description: Custom WordPress theme converted from a static Assistance Guide landing page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: assistance-guide-online
*/

/* ===== Base & Typography ===== */
:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-light: #e0f2fe;
    --bg-color: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.05);
    
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== Desktop Navigation ===== */
.site-header {
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-navigation a.text-dark:hover {
    color: var(--primary) !important;
}

/* ===== Desktop Hero Overrides ===== */
.hero-category {
    background-color: var(--primary-light); /* Soft light blue */
    position: relative;
    padding: 50px 15px; 
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border);
}

.hero-category__content {
    position: relative;
    z-index: 10;
    color: var(--text-main);
    max-width: 1100px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f172a;
    line-height: 1.25;
}
.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: #475569;
    line-height: 1.6;
}

.hero-image {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-height: 380px;
    object-fit: cover;
    width: 100%;
    border: 4px solid #ffffff;
}

@media (min-width: 992px) {
    .hero-category {
        padding: 80px 40px;
        border-radius: 0 0 40px 40px;
        margin-bottom: 60px;
    }
    .hero-title {
        font-size: 3.25rem;
        line-height: 1.15;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-text-col {
        padding-right: 40px;
    }
}

/* ===== Layout Overrides ===== */
#archive-wrapper {
    background-color: transparent;
    padding-bottom: 60px;
}

/* ===== Advanced CSS Grid for Desktop Layout (2 Columns) ===== */
.guides-main-list {
    margin: 0 auto;
}

@media (min-width: 992px) {
    .guides-main-list {
        max-width: 1100px; /* Reduced max-width for compact 2-column look */
        width: 100%;
        flex: 0 0 100%;
    }
    .guides-main-list__grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* EXACTLY 2 COLUMNS AS REQUESTED */
        gap: 30px;
        margin: 0 !important; 
        padding: 0 !important; 
    }
    .guides-main-list__grid::before, .guides-main-list__grid::after {
        display: none !important; 
    }
    .guide-card-node {
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 0 !important; 
    }
}

/* ===== Guide Cards - Standardized Row Layout ===== */
.guide-card-node {
    margin-bottom: 32px;
}

.guides-card {
    background: var(--surface);
    border-radius: var(--radius);
    margin: 0 !important;
    height: 100%;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    
    /* Enforce side-by-side flex layout uniformly */
    display: flex !important;
    flex-direction: row !important; /* Keep image left, text right */
    flex-wrap: nowrap !important;
    align-items: stretch !important; /* Allow the content height to equalize */
    padding: 20px !important;
}

.guides-card::before, .guides-card::after {
    display: none !important; 
}

/* Persistent Thumbnail Size - Image Left */
.guides-card__thumbnail {
    width: 42% !important;
    max-width: 42% !important;
    flex: 0 0 42% !important;
    padding-right: 20px !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important; /* override any bootstrap bottom margins */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Content Container - Text Right */
.guides-card__content {
    width: 58% !important;
    max-width: 58% !important;
    flex: 0 0 58% !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Hover effect */
.guides-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

/* Image styling */
.guides-card__thumbnail img {
    border-radius: 12px;
    object-fit: contain; /* Prevent awkward cropping of guidebook covers */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background-color: transparent;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%; /* Stretch gracefully */
}

@media (min-width: 768px) {
    .guides-card__thumbnail img {
        object-fit: cover;
    }
}

.guides-card:hover .guides-card__thumbnail img {
    transform: scale(1.03);
}

/* Content typography */
.guides-card__content a {
    text-decoration: none;
}

.guides-card__content .title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main) !important;
    margin-bottom: 12px !important;
    line-height: 1.35;
    transition: color 0.2s;
}

@media (min-width: 992px) {
    .guides-card__content .title {
        font-size: 1.35rem; /* Larger titles on Desktop since there are only 2 columns */
    }
}

.guides-card:hover .guides-card__content .title {
    color: var(--primary) !important;
}

.guides-card__content .excerpt span {
    font-size: 0.95rem;
    color: var(--text-muted) !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* CTA Button Styling */
.guides-card__content .cta {
    margin-top: auto; /* Hugs the bottom */
    margin-bottom: 0;
    opacity: 1 !important;
    width: 100%;
}
.guides-card__content .cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--primary-light);
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.guides-card__content .cta a::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.2s ease;
    display: inline-block; /* Essential for translate */
}

.guides-card:hover .guides-card__content .cta a {
    background: var(--primary);
    color: #ffffff !important;
}
.guides-card:hover .guides-card__content .cta a::after {
    transform: translateX(6px);
}

/* Mobile specific layout tweaks */
@media (max-width: 576px) {
    .guides-card {
        padding: 16px !important;
    }
    .guides-card__thumbnail {
        width: 38% !important;
        max-width: 38% !important;
        flex: 0 0 38% !important;
        padding-right: 16px !important;
    }
    .guides-card__content {
        width: 62% !important;
        max-width: 62% !important;
        flex: 0 0 62% !important;
    }
    .guides-card__content .title {
        font-size: 1.05rem;
        margin-bottom: 8px !important;
    }
    .guides-card__content .excerpt span {
        -webkit-line-clamp: 2; /* Less text on mobile */
        margin-bottom: 10px;
        font-size: 0.85rem;
    }
    .guides-card__content .cta a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Footer Banner */
.get-the-info-you-need-banner {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 60px !important;
}

/* ===== Primary Footer ===== */
.site-footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border);
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 0.9rem;
}

.site-footer__brand {
    margin-bottom: 30px;
}

.site-footer__logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 16px;
    opacity: 0.85;
    transition: var(--transition);
}

.site-footer__logo:hover {
    opacity: 1;
}

.site-footer__info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.site-footer__menu--column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px 24px;
}

@media (min-width: 576px) {
    .site-footer__menu--column {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .site-footer__menu--column {
        grid-template-columns: repeat(3, 1fr);
    }
}

.site-footer__menu .nav-item {
    margin-bottom: 0;
}

.site-footer__menu .nav-link {
    padding: 6px 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.site-footer__menu .nav-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* ===== Refreshment CTA Section ===== */
.refreshment-page__container {
    background-color: #ffffff; /* Requested white background */
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
    border: 1px solid var(--border);
}

@media (min-width: 992px) {
    .refreshment-page__container {
        padding: 50px 40px;
    }
}

.refreshment-home__hero__span {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.refreshment-home__hero__title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 24px;
}

@media (min-width: 992px) {
    .refreshment-home__hero__title {
        font-size: 2.5rem;
    }
}

.refreshment-home__hero__title span {
    color: var(--primary);
}

.refreshment-page__list {
    margin-bottom: 40px;
}

.refreshment-page__list__check {
    position: relative;
    padding-left: 48px; /* 32px icon width + 16px gap */
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    display: block; /* Override default or flex */
}

.refreshment-page__icon {
    position: absolute;
    left: 0;
    top: 0;
    background: #f1f5f9; /* Super subtle grey/blue circle behind the icon */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex; /* keep flex for the inner svg centering */
    align-items: center;
    justify-content: center;
}

.refreshment-page__icon svg {
    width: 14px;
    height: 14px;
}

/* Infinity Buttons */
.infinity-button__link {
    border: 2px solid var(--border);
    background-color: transparent;
    color: var(--text-main) !important;
    font-weight: 600;
    border-radius: 12px;
    padding: 14px 20px;
    transition: var(--transition);
}

.infinity-button__link:hover {
    border-color: var(--text-muted);
    background-color: #f8fafc;
}

.infinity-button__gradient {
    /* Utilizing gradient button class name logically */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 12px;
    padding: 14px 20px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.infinity-button__gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.refreshment-home__hero__image img {
    border-radius: 16px;
}
/* ===== FAQ Section ===== */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-title {
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--text-main);
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    color: var(--text-main);
    list-style: none; /* Hide default arrow */
    position: relative;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none; /* Safari */
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    padding: 0 24px 24px;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}
/* ===== DISCLAIMER SECTION ===== */
.disclaimer-section {
    max-width: 900px;
}

.disclaimer-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.disclaimer-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
}

.disclaimer-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.disclaimer-box strong {
    color: var(--text-main);
    font-weight: 600;
}

/* ===== SHORT DISCLAIMER ===== */
.short-disclaimer {
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    line-height: 1.5;
}

/* ===== STICKY DISCLAIMER (OPTIONAL - HIGHLY RECOMMENDED) ===== */
.sticky-disclaimer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.75rem;
    text-align: center;
    padding: 10px 15px;
    z-index: 999;
}

.sticky-disclaimer a {
    color: #38bdf8;
    text-decoration: underline;
}

.refreshment-page__section__title {
    font-size: 30px;
}

.refreshment-page__section__text {
    font-size: 14px;
}

/* ===== TOP DISCLAIMER BANNER (mb-0) ===== */
body > p.mb-0 {
    text-align: center;
    font-size: 0.85rem;
    padding: 10px 15px;
    background-color: #f1f5f9;
    color: #64748b;
    border-bottom: 1px solid var(--border);
}

body > p.mb-0 a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition);
}

body > p.mb-0 a:hover {
    color: var(--primary-hover);
}