/**
 * Homepage Sections Styles
 * Comprehensive styling for all customizable homepage sections
 */

/* ==========================================================================
   Section Base Styles
   ========================================================================== */

.penn-section {
    padding: 5rem 0;
    position: relative;
}

.section-spacing-compact .penn-section {
    padding: 3rem 0;
}

.section-spacing-spacious .penn-section {
    padding: 7rem 0;
}

/* Content Width Variations */
.content-width-narrow .flavor-container {
    max-width: 1000px;
}

.content-width-wide .flavor-container {
    max-width: 1440px;
}

.content-width-full .flavor-container {
    max-width: 100%;
    padding: 0 3rem;
}

/* Background Variations */
.bg-white {
    background: var(--flavor-white);
}

.bg-light {
    background: var(--flavor-gray-50);
}

.bg-dark {
    background: var(--flavor-gray-900);
    color: var(--flavor-white);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--flavor-white);
}

.bg-dark p, .bg-dark .section-eyebrow {
    color: var(--flavor-gray-300);
}

.bg-primary {
    background: var(--flavor-primary);
    color: var(--flavor-white);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--flavor-primary) 0%, var(--flavor-primary-dark) 100%);
    color: var(--flavor-white);
}

/* Section Headers */
.section-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--flavor-primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================================================
   Hero Section - Enhanced
   ========================================================================== */

.flavor-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--flavor-header-height) + 2rem) 0 4rem;
    overflow: hidden;
}

.flavor-hero.hero-large {
    min-height: 80vh;
}

.flavor-hero.hero-medium {
    min-height: 60vh;
}

.flavor-hero.hero-fullscreen {
    min-height: 100vh;
}

.hero-align-center .flavor-hero-content {
    text-align: center;
    margin: 0 auto;
}

.hero-align-center .flavor-hero-actions {
    justify-content: center;
}

.hero-align-right .flavor-hero-content {
    margin-left: auto;
    text-align: right;
}

.hero-align-right .flavor-hero-actions {
    justify-content: flex-end;
}

/* Hero Split Layout */
.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-split-grid.reverse {
    direction: rtl;
}

.hero-split-grid.reverse > * {
    direction: ltr;
}

.hero-split-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--flavor-shadow-xl);
}

@media (max-width: 1024px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-split-image {
        order: -1;
    }
}

/* Hero Title Styles */
.flavor-hero-title .gradient-text {
    background: linear-gradient(135deg, var(--flavor-primary-light), var(--flavor-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flavor-hero-title .underline-text {
    position: relative;
    display: inline-block;
}

.flavor-hero-title .underline-text::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: var(--flavor-accent);
    border-radius: 0.1em;
}

.flavor-hero-title .highlight-text {
    background: rgba(37, 99, 235, 0.2);
    padding: 0 0.3em;
    border-radius: 0.2em;
}

/* Hero Scroll Indicator */
.flavor-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.flavor-hero-scroll span {
    width: 6px;
    height: 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 3px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(15px); opacity: 0.3; }
}

/* Button Sizes */
.flavor-btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.flavor-btn-outline-white {
    background: transparent;
    color: var(--flavor-white);
    border: 2px solid rgba(255,255,255,0.5);
}

.flavor-btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--flavor-white);
    color: var(--flavor-white);
}

/* ==========================================================================
   Intro Section
   ========================================================================== */

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-grid.layout-image-left {
    direction: rtl;
}

.intro-grid.layout-image-left > * {
    direction: ltr;
}

.intro-grid.layout-centered {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--flavor-shadow-lg);
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--flavor-gray-600);
}

@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-grid {
    display: grid;
    gap: 2rem;
}

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

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

.services-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

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

/* Service Card Styles */
.service-card {
    padding: 2rem;
    border-radius: 1rem;
    transition: all var(--flavor-transition-base);
}

.style-cards .service-card {
    background: var(--flavor-white);
    box-shadow: var(--flavor-shadow-md);
}

.style-cards .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--flavor-shadow-xl);
}

.style-bordered .service-card {
    border: 2px solid var(--flavor-gray-200);
    background: transparent;
}

.style-bordered .service-card:hover {
    border-color: var(--flavor-primary);
}

.style-minimal .service-card {
    background: transparent;
    padding: 1.5rem 0;
}

.style-icon-top .service-card {
    text-align: center;
}

.style-icon-left .service-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--flavor-primary), var(--flavor-primary-dark));
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.service-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--flavor-white);
}

.style-icon-top .service-icon {
    margin: 0 auto 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-title a {
    color: inherit;
}

.service-title a:hover {
    color: var(--flavor-primary);
}

.service-desc {
    color: var(--flavor-gray-600);
    line-height: 1.6;
    margin: 0;
}

.bg-dark .service-desc {
    color: var(--flavor-gray-400);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.penn-stats-section {
    padding: 4rem 0;
}

.flavor-stats {
    display: grid;
    gap: 2rem;
}

.flavor-stats.4-columns {
    grid-template-columns: repeat(4, 1fr);
}

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

.flavor-stats.inline {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .flavor-stats.4-columns,
    .flavor-stats.3-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .flavor-stats.4-columns,
    .flavor-stats.3-columns {
        grid-template-columns: 1fr;
    }
    
    .flavor-stats.inline {
        gap: 2rem;
    }
}

.flavor-stat {
    text-align: center;
    padding: 1rem;
}

.flavor-stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.bg-dark .flavor-stat-number,
.bg-gradient .flavor-stat-number,
.bg-primary .flavor-stat-number {
    background: linear-gradient(135deg, var(--flavor-white), var(--flavor-gray-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-white .flavor-stat-number,
.bg-light .flavor-stat-number {
    background: linear-gradient(135deg, var(--flavor-primary), var(--flavor-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flavor-stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-grid.layout-image-right {
    direction: rtl;
}

.about-grid.layout-image-right > * {
    direction: ltr;
}

.about-grid.layout-centered {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--flavor-shadow-lg);
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--flavor-gray-600);
    margin-bottom: 1.5rem;
}

.about-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-weight: 500;
}

.about-features .dashicons {
    color: var(--flavor-primary);
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-grid {
    display: grid;
    gap: 2rem;
}

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

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

.features-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--flavor-gray-100);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all var(--flavor-transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--flavor-primary);
    transform: scale(1.1);
}

.feature-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--flavor-primary);
    transition: color var(--flavor-transition-base);
}

.feature-card:hover .feature-icon .dashicons {
    color: var(--flavor-white);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--flavor-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials-grid {
    display: grid;
    gap: 2rem;
}

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

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

.testimonials-grid.slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
}

.testimonials-grid.slider .testimonial-card {
    min-width: 350px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.testimonials-grid.single {
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .testimonials-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid.grid-2,
    .testimonials-grid.grid-3 {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: var(--flavor-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--flavor-shadow-md);
}

.bg-dark .testimonial-card {
    background: var(--flavor-gray-800);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating .star {
    color: var(--flavor-gray-300);
    font-size: 1.25rem;
}

.testimonial-rating .star.filled {
    color: #fbbf24;
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--flavor-gray-700);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.bg-dark .testimonial-quote {
    color: var(--flavor-gray-300);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 600;
    color: var(--flavor-gray-900);
}

.bg-dark .author-name {
    color: var(--flavor-white);
}

.author-title {
    font-size: 0.875rem;
    color: var(--flavor-gray-500);
}

/* ==========================================================================
   Blog Section
   ========================================================================== */

.blog-grid {
    display: grid;
    gap: 2rem;
}

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

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

.blog-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.blog-grid.list {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.blog-grid.featured {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
}

.blog-grid.featured .blog-card:first-child {
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .blog-grid.grid-3,
    .blog-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid.featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--flavor-transition-base);
}

.style-cards .blog-card {
    background: var(--flavor-white);
    box-shadow: var(--flavor-shadow-md);
}

.style-cards .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--flavor-shadow-xl);
}

.style-bordered .blog-card {
    border: 2px solid var(--flavor-gray-200);
}

.style-minimal .blog-card {
    background: transparent;
}

.style-overlay .blog-card {
    position: relative;
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--flavor-primary);
    color: var(--flavor-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 9999px;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--flavor-gray-500);
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: inherit;
}

.blog-card-title a:hover {
    color: var(--flavor-primary);
}

.blog-card-excerpt {
    color: var(--flavor-gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-link {
    font-weight: 600;
    color: var(--flavor-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-link:hover {
    gap: 0.5rem;
}

/* ==========================================================================
   Locations Section
   ========================================================================== */

.locations-content {
    display: grid;
    gap: 2rem;
}

.locations-content.layout-map-list {
    grid-template-columns: 1fr 1fr;
}

.locations-content.layout-map-only {
    grid-template-columns: 1fr;
}

.locations-content.layout-grid,
.locations-content.layout-list {
    grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
    .locations-content.layout-map-list {
        grid-template-columns: 1fr;
    }
}

.locations-map {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--flavor-shadow-md);
}

/* ==========================================================================
   Partners Section
   ========================================================================== */

.partners-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.partners-grid.logo-grid {
    grid-template-columns: repeat(6, 1fr);
}

.partners-grid.logo-carousel {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

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

@media (max-width: 1024px) {
    .partners-grid.logo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .partners-grid.cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .partners-grid.logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-grid.cards {
        grid-template-columns: 1fr;
    }
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.partner-item img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--flavor-transition-base);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-name {
    font-weight: 600;
    color: var(--flavor-gray-600);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.penn-cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.penn-cta-section.bg-image {
    background-size: cover;
    background-position: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
}

.penn-cta-section .flavor-container {
    position: relative;
    z-index: 1;
}

.penn-cta-section.layout-split .flavor-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.penn-cta-section.layout-boxed .flavor-cta-content {
    background: rgba(255,255,255,0.1);
    padding: 3rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.flavor-cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--flavor-white);
}

.flavor-cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.penn-cta-section.layout-split .cta-buttons {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .penn-cta-section.layout-split .flavor-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .penn-cta-section.layout-split .cta-buttons {
        justify-content: center;
    }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--flavor-gray-200);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

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

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--flavor-primary);
    transition: transform var(--flavor-transition-base);
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 0 1.5rem;
    color: var(--flavor-gray-600);
    line-height: 1.7;
}

/* ==========================================================================
   Dashicons Support
   ========================================================================== */

.dashicons {
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
    font-family: dashicons;
    text-decoration: inherit;
    font-weight: 400;
    font-style: normal;
    vertical-align: top;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}
