/**
 * BarnYard Information Pages CSS
 * Consolidated from: about.css, contact.css, help.css, legal.css
 */

/* ==========================================================================
   SHARED STYLES
   Common patterns used across information pages
   ========================================================================== */

/* Info page section base */
.about-section,
.contact-section,
.legal-content {
    padding: 40px 0;
}

/* Shared card container style */
.card-style,
.contact-form-container,
.contact-methods-container,
.faq-container,
.content-container,
.quick-link-card,
.faq-item,
.trouble-item,
.team-member,
.value-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Section heading styles */
.about-intro h2,
.about-story h2,
.about-team h2,
.about-values h2,
.contact-intro h2,
.contact-methods-container h3,
.faq-container h3,
.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.about-content {
    margin-bottom: 60px;
}

.about-intro,
.about-story {
    margin-bottom: 40px;
}

.about-intro h2,
.about-story h2,
.about-team h2,
.about-values h2 {
    font-size: 28px;
}

.about-intro p,
.about-story p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
}

/* Team Section */
.about-team {
    margin-bottom: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Scott Thomas photo - crop to focus on face */
.team-member[data-member="scott-thomas"] .team-photo img {
    object-position: center 15%;
}

.team-member h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Values Section */
.about-values {
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.value-item {
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.value-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.value-item p {
    font-size: 14px;
    line-height: 1.5;
}

/* Card Style */
.card-style {
    padding: 30px;
}

/* CTA Section */
.cta-section {
    padding: 40px;
    text-align: center;
}

.cta-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 28px;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.contact-intro h2 {
    font-size: 28px;
}

.contact-intro p {
    font-size: 16px;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Contact Form Styles */
.contact-form-container {
    padding: 30px;
}

.contact-form-container h3 {
    font-size: 22px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

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

/* Checkbox styling */
.form-checkbox-group {
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.checkbox-container label {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-container a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Contact methods section */
.contact-methods-container {
    padding: 30px;
}

.contact-methods-container h3,
.faq-container h3 {
    font-size: 22px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.contact-details h4 {
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-details p {
    margin-bottom: 5px;
    color: #555;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Contact Page FAQ Section */
.faq-container {
    padding: 30px;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-page .faq-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.contact-page .faq-item:last-of-type {
    border-bottom: none;
}

.contact-page .faq-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.contact-page .faq-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.faq-footer {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
}

/* ==========================================================================
   HELP PAGE
   ========================================================================== */

/* Fix for logo display */
.help-page .logo h1::after,
.help-page .logo h1::before {
    content: none !important;
}

/* Ensure proper spacing in the header */
.help-page header .container {
    gap: 20px;
}

/* Quick links section styling */
.quick-links {
    margin-bottom: 50px;
}

.quick-links h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.quick-link-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.quick-link-card span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* FAQ section styling */
.faq-section {
    margin-bottom: 50px;
}

.faq-section h2,
.troubleshooting-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 28px;
}

.faq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.faq-item {
    padding: 25px;
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
}

/* Troubleshooting section styling */
.troubleshooting-section {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.troubleshooting-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.trouble-item {
    padding: 25px;
}

.trouble-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.trouble-item ul {
    padding-left: 20px;
}

.trouble-item ul li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.5;
}

/* ==========================================================================
   LEGAL PAGES (Terms, Privacy)
   ========================================================================== */

.legal-content {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.content-container h2 {
    color: #2c3e50;
    font-size: 24px;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.content-container h2:first-of-type {
    margin-top: 10px;
}

.content-container h3 {
    color: #34495e;
    font-size: 20px;
    margin: 25px 0 15px;
}

.content-container p,
.content-container ul,
.content-container ol {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
}

.content-container p strong {
    font-weight: 600;
    color: #e74c3c;
}

.content-container ul,
.content-container ol {
    padding-left: 25px;
}

.content-container ul li,
.content-container ol li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.content-container ol li {
    list-style-type: decimal;
}

/* Section specific styling */
.content-container ul + p,
.content-container ol + p {
    margin-top: 20px;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* Large tablets and small desktops */
@media (max-width: 992px) {
    /* About page */
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Contact page */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        gap: 30px;
    }

    /* Help page */
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* Legal pages */
    .content-container {
        padding: 30px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* About page */
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

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

    .cta-section {
        padding: 30px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }

    /* Contact page */
    .contact-method {
        flex-direction: column;
    }

    .contact-icon {
        margin-bottom: 10px;
    }

    /* Help page */
    .page-header h1 {
        font-size: 28px;
    }

    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .troubleshooting-list {
        grid-template-columns: 1fr;
    }

    .faq-item,
    .trouble-item {
        padding: 20px;
    }

    /* Legal pages */
    .page-header {
        padding: 40px 0;
    }

    .page-header p {
        font-size: 16px;
    }

    .legal-content {
        padding: 40px 0;
    }

    .content-container {
        padding: 25px;
    }

    .content-container h2 {
        font-size: 22px;
    }

    .content-container h3 {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    /* About page */
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .about-intro h2,
    .about-story h2,
    .about-team h2,
    .about-values h2,
    .cta-section h2 {
        font-size: 24px;
    }

    /* Contact page */
    .contact-intro h2,
    .contact-methods-container h3,
    .faq-container h3 {
        font-size: 24px;
    }

    .contact-form-container,
    .contact-methods-container,
    .faq-container {
        padding: 20px;
    }

    /* Help page */
    .page-header {
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .quick-links h2,
    .faq-section h2,
    .troubleshooting-section h2 {
        font-size: 22px;
    }

    /* Legal pages */
    .content-container {
        padding: 20px;
    }
}
