/*
  provider-style.css
  Standalone styles for the Bidmaids.com provider page.
  Header styles are now synced with the main site's CSS.
*/

/* 1. Base, Fonts & Body */
html {
    font-size: 62.5%; /* Set base font size for rem units */
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif; /* Match index.html font */
    font-size: 1.6rem;
    line-height: 1.6;
    color: #212121;
    background-color: #fafafa;
    margin: 0;
}

/* 2. Layout & Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Fix for sticky header covering section titles */
section[id] {
  scroll-margin-top: 10rem; /* Adjust this value if needed */
}

/* 3. Header & Navigation (Synced with index.html CSS) */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.main-nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3f51b5;
    text-decoration: none;
    z-index: 1;
}

.main-nav__logo img {
  width: 150px;
  display: block;
}

.main-nav__links {
    display: none; /* Hidden on mobile */
}

.main-nav__links a {
    color: #757575;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.main-nav__links a:hover {
    color: #757575;
}

.main-nav__links a.active {
    color: #757575;
    font-weight: 600;
}

.main-nav__auth {
     display: none; /* Hidden on mobile */
     z-index: 1;
}

.mobile-menu-button {
    display: block;
}

/* 4. Buttons (Synced with index.html CSS) */
.mat-raised-button, .mat-stroked-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 0.8rem 1.6rem; /* Adjusted padding to match index.html */
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.4rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.mat-raised-button {
    background-color: #3f51b5;
    color: #ffffff;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
}

.mat-raised-button:hover {
    background-color: #303f9f;
    box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
}

.mat-stroked-button {
    border-color: rgba(0, 0, 0, 0.12);
    color: #3f51b5;
    background-color: transparent;
}
.mat-stroked-button:hover {
    background-color: rgba(63, 81, 181, 0.04);
}

.md-btn-accent {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 3.2rem;
    font-size: 1.6rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    background-color: #4CAF50;
    color: #ffffff;
    border: none;
    text-decoration: none;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
    transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.md-btn-accent:hover {
    background-color: #43A047;
    box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
}


/* 5. Sections & Typography */
.section {
    padding: 6rem 0;
}

.section-hero {
    background-color: #E3F2FD;
    text-align: center;
}

.section-how-it-works {
    background-color: #f5f5f5;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 500;
    color: #3f51b5;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.8rem;
    color: #757575;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #616161;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

/* 6. Features Grid & Cards */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.md-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
    transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2.4rem;
    text-align: center;
}

.md-card:hover {
    box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
}

.md-card h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.feature-icon-wrapper {
    width: 6.4rem;
    height: 6.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.6rem;
    background-color: #e8eaf6;
}

.feature-icon-wrapper svg {
    width: 4rem;
    height: 4rem;
    color: #3f51b5;
}

/* 7. How It Works Section */
.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    background-color: #3f51b5;
    color: #ffffff;
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.step h4 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.step p {
    max-width: 25rem;
    color: #616161;
}

.step-arrow {
    display: none;
}

/* 8. FAQ Section */
.faq-container {
    max-width: 70rem;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.6rem;
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
}

.faq-question:hover {
    background-color: #f5f5f5;
}

.faq-answer {
    padding: 0 1.6rem; /* No vertical padding when closed */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out, padding-bottom 0.3s ease-out;
    color: #616161;
}

.faq-icon {
    transition: transform 0.3s ease-out;
    width: 2.4rem;
    height: 2.4rem;
}

.faq-item.open .faq-answer {
    max-height: 20rem; /* Adjust as needed */
    padding-top: 0.8rem;
    padding-bottom: 1.6rem; /* Add vertical padding only when open */
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* 9. CTA & Footer */
.final-cta {
    background-color: #3f51b5;
    color: #ffffff;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.final-cta p {
    color: rgba(255,255,255,0.8);
    max-width: 50rem;
    margin: 0 auto 2rem;
}

.final-cta .mat-raised-button {
    background-color: #ffffff;
    color: #3f51b5;
}

.final-cta .mat-raised-button:hover {
    background-color: #f5f5f5;
}

.footer {
    background-color: #333;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.footer p, .footer li {
    color: #ccc;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 1rem;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    text-align: center;
    color: #aaa;
    font-size: 1.4rem;
}

.social-links { display: flex; gap: 1.5rem; }
.social-links svg { width: 2.4rem; height: 2.4rem; }

/* 10. Responsive Design */
@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
    .main-nav__links {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
        /* Center the links */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .main-nav__auth {
        display: flex;
        align-items: center;
        gap: 0.8rem; /* Correctly adds space between buttons */
    }
    .main-nav {
        display: flex;
    }
    .hero-title {
        font-size: 5rem;
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .steps-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }
    .step-arrow {
        display: flex;
        align-items: center;
        height: 12rem; /* Aligns with step content */
        font-size: 2.5rem;
        color: #BDBDBD;
    }
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}


