/* ==========================================================
   My5K Block Styles
   CSS for all 16 block types rendered by the block converter.
   Uses CSS custom properties from brand settings.
   ========================================================== */

/* --- Hero --- */
.my5k-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.my5k-hero-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.my5k-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.my5k-hero-content h1 {
    font-family: var(--my5k-heading-font);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.my5k-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* --- Text / Heading --- */
.my5k-text {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    font-family: var(--my5k-body-font);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--my5k-text);
}

.my5k-heading {
    font-family: var(--my5k-heading-font);
    max-width: 800px;
    margin: 2rem auto 1rem;
    padding: 0 1.5rem;
    color: var(--my5k-text);
}

/* --- Image --- */
.my5k-image {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

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

.my5k-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* --- Gallery --- */
.my5k-gallery {
    display: grid;
    gap: 1rem;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.my5k-cols-2 { grid-template-columns: repeat(2, 1fr); }
.my5k-cols-3 { grid-template-columns: repeat(3, 1fr); }
.my5k-cols-4 { grid-template-columns: repeat(4, 1fr); }

.my5k-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 640px) {
    .my5k-cols-3, .my5k-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Services --- */
.my5k-services {
    display: grid;
    gap: 2rem;
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.my5k-service-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: #f9fafb;
    transition: box-shadow 0.2s;
}

.my5k-service-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.my5k-service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.my5k-service-card h3 {
    font-family: var(--my5k-heading-font);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--my5k-text);
}

.my5k-service-card p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
}

/* --- Team --- */
.my5k-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.my5k-team-card {
    text-align: center;
    padding: 2rem;
}

.my5k-team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.my5k-team-card h3 {
    font-family: var(--my5k-heading-font);
    margin-bottom: 0.25rem;
}

.my5k-team-role {
    color: var(--my5k-primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* --- Testimonials --- */
.my5k-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.my5k-testimonial {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--my5k-primary);
}

.my5k-testimonial-stars {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.my5k-testimonial blockquote {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    color: var(--my5k-text);
}

.my5k-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.my5k-testimonial-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.my5k-testimonial-author strong {
    display: block;
    font-size: 0.95rem;
}

.my5k-testimonial-author span {
    font-size: 0.8rem;
    color: #6b7280;
}

/* --- Menu (Restaurant) --- */
.my5k-menu {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.my5k-menu-category h3 {
    font-family: var(--my5k-heading-font);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--my5k-primary);
    padding-bottom: 0.5rem;
    margin: 2rem 0 1rem;
}

.my5k-menu-item {
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

.my5k-menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.my5k-menu-item-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.my5k-menu-item-price {
    font-weight: 700;
    color: var(--my5k-primary);
    white-space: nowrap;
}

.my5k-menu-item-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* --- Contact Form --- */
.my5k-contact-form {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.my5k-form-field {
    margin-bottom: 1.25rem;
}

.my5k-form-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--my5k-text);
}

.my5k-form-field input,
.my5k-form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: var(--my5k-body-font);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.my5k-form-field input:focus,
.my5k-form-field textarea:focus {
    outline: none;
    border-color: var(--my5k-primary);
    box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.1);
}

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

/* --- Map --- */
.my5k-map {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.my5k-map iframe {
    border-radius: 12px;
    width: 100%;
}

/* --- CTA --- */
.my5k-cta {
    text-align: center;
    padding: 4rem 2rem;
    color: #fff;
}

.my5k-cta h2 {
    font-family: var(--my5k-heading-font);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.my5k-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- FAQ --- */
.my5k-faq {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.my5k-faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.my5k-faq-item summary {
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--my5k-text);
}

.my5k-faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.2s;
}

.my5k-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.my5k-faq-answer {
    padding: 1rem 0 0.5rem;
    color: #4b5563;
    line-height: 1.6;
}

/* --- Pricing --- */
.my5k-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.my5k-pricing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.my5k-pricing-highlighted {
    border-color: var(--my5k-primary);
    box-shadow: 0 8px 30px rgba(107, 33, 168, 0.15);
    transform: scale(1.02);
}

.my5k-pricing-card h3 {
    font-family: var(--my5k-heading-font);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.my5k-pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--my5k-primary);
    margin-bottom: 1.5rem;
}

.my5k-pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

.my5k-pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.my5k-pricing-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
}

.my5k-pricing-card li::before {
    content: '\2713';
    color: var(--my5k-accent);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* --- Video --- */
.my5k-video {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.my5k-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

/* --- Social Links --- */
.my5k-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    flex-wrap: wrap;
}

.my5k-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: #f3f4f6;
    border-radius: 8px;
    color: var(--my5k-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.my5k-social-link:hover {
    background: var(--my5k-primary);
    color: #fff;
}

/* --- Divider --- */
.my5k-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.my5k-divider-dots {
    border-top: none;
    text-align: center;
}

.my5k-divider-dots::before {
    content: '...';
    font-size: 2rem;
    letter-spacing: 0.5rem;
    color: #d1d5db;
}

.my5k-spacer {
    display: block;
}

/* --- Buttons --- */
.my5k-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--my5k-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.my5k-btn:hover {
    opacity: 0.9;
}

.my5k-btn-white {
    background: #fff;
    color: var(--my5k-primary);
}

.my5k-btn-white:hover {
    background: #f3f4f6;
}
