/* ================================================
   RESOURCES HUB PAGE STYLES
   Mobile-first responsive design
   Following DumpsterRentals.co Brand Guidelines v1.0
   ================================================ */

/* HERO SECTION - White/Light Gray ONLY per brand guidelines */
.resources-hero {
    background: #F9FAFB; /* Light gray - approved hero style */
    color: #111827; /* Dark text on light background */
    padding: 6rem 1rem 3rem;
    text-align: center;
}

.resources-hero h1 {
    font-size: 28px;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #111827; /* Brand: gray-900 for headings */
}

.resources-hero .hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #4B5563; /* Brand: gray-600 for secondary text */
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.resources-hero .hero-cta {
    margin-top: 2rem;
}

/* SECTION COMMON STYLES */
.interactive-tools,
.featured-guides,
.project-types,
.faq-section,
.latest-articles,
.secondary-cta {
    padding: 40px 16px;
}

section h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.section-intro {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* INTERACTIVE TOOLS */
.tools-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 50%;
    margin: 0 auto 1rem;
    color: #1e40af;
}

.tool-card h3 {
    font-size: 22px;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    text-align: center;
}

.tool-card > p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

/* CALCULATOR FORMS */
.calculator-form {
    margin-top: 1.5rem;
}

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

.calculator-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 16px;
}

.calculator-form .form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    min-height: 44px;
}

.calculator-form .btn {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
    font-weight: 600;
}

/* RADIO GROUP */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    min-height: 44px;
}

.radio-group label:hover {
    border-color: #1E40AF; /* Brand: Primary Blue */
    background: #F9FAFB; /* Brand: gray-50 */
}

.radio-group input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

.radio-group input[type="radio"]:checked + label,
.radio-group label:has(input:checked) {
    border-color: #1E40AF; /* Brand: Primary Blue */
    background: #EFF6FF; /* Light blue - brand compliant */
}

/* CALCULATOR RESULTS */
.calculator-result {
    margin-top: 2rem;
    padding: 2rem;
    background: #EFF6FF; /* Light blue background - brand compliant */
    border: 2px solid #1E40AF; /* Brand: Primary Blue */
    border-radius: 12px;
}

.calculator-result h4 {
    font-size: 20px;
    color: #1E40AF; /* Brand: Primary Blue */
    margin-bottom: 1rem;
}

.calculator-result p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

.calculator-result strong {
    color: var(--color-text);
}

.calculator-result .btn {
    margin-top: 1rem;
    width: 100%;
}

.calculator-note {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 14px;
    border-radius: 4px;
}

.disclaimer {
    font-size: 14px;
    font-style: italic;
    color: #6b7280;
}

.estimate-details ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.estimate-details li {
    padding: 0.5rem 0;
    font-size: 16px;
    color: var(--color-text-secondary);
}

/* FEATURED GUIDES */
.guides-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.guide-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.guide-card:hover {
    border-color: #1E40AF; /* Brand: Primary Blue */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.guide-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #1e40af;
}

.guide-card h3 {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.guide-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.guide-card .read-more {
    color: #1E40AF; /* Brand: Primary Blue */
    font-weight: 600;
    font-size: 16px;
}

.guide-card:hover .read-more {
    text-decoration: underline;
}

/* PROJECT TYPES */
.project-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    display: block;
}

.project-card:hover {
    border-color: #1E40AF; /* Brand: Primary Blue for hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.project-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* FAQ SECTION */
.faq-section {
    background: #f9fafb;
}

.faq-accordion {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s;
}

.faq-item.active {
    border-color: #1E40AF; /* Brand: Primary Blue */
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #374151; /* Brand: gray-700 for text */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 60px;
}

.faq-question:hover {
    background: #F9FAFB; /* Brand: gray-50 */
}

.faq-icon {
    flex-shrink: 0;
    color: #1E40AF; /* Brand: Primary Blue for icons */
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}

/* LATEST ARTICLES */
.articles-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.article-card:hover {
    border-color: #1E40AF; /* Brand: Primary Blue */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.article-thumbnail {
    overflow: hidden;
    height: 200px;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 14px;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: #1E40AF; /* Brand: Primary Blue for badges */
    color: white;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.article-date {
    color: #6b7280;
}

.article-content h3 {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.article-card .read-more {
    color: #1E40AF; /* Brand: Primary Blue for links */
    font-weight: 600;
    font-size: 16px;
}

.view-all-cta {
    text-align: center;
    margin-top: 3rem;
}

/* SECONDARY CTA - Brand compliant: White/Light Gray only */
.secondary-cta {
    background: #F9FAFB; /* Brand: Light gray - approved for sections */
    color: #111827;
    padding: 3rem 1rem;
    text-align: center;
}

.secondary-cta h2 {
    color: #111827; /* Brand: gray-900 for headings */
    margin-bottom: 1rem;
}

.secondary-cta p {
    font-size: 16px;
    line-height: 1.6;
    color: #4B5563; /* Brand: gray-600 for secondary text */
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* BUTTONS - Brand Guidelines Compliant */
.btn-primary {
  background: #E75A0F;
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #D14A00;
}

/* SECONDARY BUTTON - Blue (#1E40AF) - use sparingly */
.btn-secondary {
    background: transparent;
    color: #1E40AF; /* Brand: Primary Blue */
    border: 2px solid #1E40AF;
    padding: 12px 24px;
}

.btn-secondary:hover {
    background: #1E40AF;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* TABLET BREAKPOINT - 768px */
@media (min-width: 768px) {
    .resources-hero {
        padding: 8rem 2rem 4rem;
    }

    .resources-hero h1 {
        font-size: 40px;
    }

    .resources-hero .hero-subtitle {
        font-size: 18px;
    }

    .interactive-tools,
    .featured-guides,
    .project-types,
    .faq-section,
    .latest-articles,
    .secondary-cta {
        padding: 60px 32px;
    }

    section h2 {
        font-size: 36px;
    }

    .section-intro {
        font-size: 18px;
    }

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

    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .radio-group {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .radio-group label {
        flex: 1;
        min-width: 120px;
    }
}

/* DESKTOP BREAKPOINT - 1025px */
@media (min-width: 1025px) {
    .resources-hero h1 {
        font-size: 48px;
    }

    .resources-hero .hero-subtitle {
        font-size: 20px;
    }

    .guides-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .guide-card h3 {
        font-size: 20px;
    }

    .project-card h3 {
        font-size: 20px;
    }

    .article-content h3 {
        font-size: 20px;
    }
}

/* WIDE DESKTOP - 1280px */
@media (min-width: 1280px) {
    .guides-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
