/* ============================================
   Flower Slice - WordPress Block Theme Style
   White Background | Black Text | Consistent Dark Colors
   ============================================ */

/* CSS Variables - Darker Colors */
:root {
    --wp--preset--color--black: #000000;
    --wp--preset--color--white: #ffffff;
    --wp--preset--color--mild: #E8E0D5;
    --wp--preset--color--mild-dark: #D9CFC0;
    --wp--preset--color--hero: #E5D9CC;
    --wp--preset--color--accent: #5D3A1A;
    --wp--preset--color--accent-light: #8B5A2B;
    --wp--preset--color--text-dark: #1A1A1A;
    --wp--preset--color--text-medium: #2C2C2C;
    --wp--preset--spacing--20: 0.5rem;
    --wp--preset--spacing--30: 1rem;
    --wp--preset--spacing--40: 2rem;
    --wp--preset--spacing--50: 3rem;
    --wp--preset--spacing--60: 4rem;
    --wp--style--block-gap: 2rem;
}

/* Base Styles - Darker Body Text */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--wp--preset--color--white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--wp--preset--color--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* WordPress Container */
.wp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Classes - 40% Darker */
.has-mild-background {
    background: var(--wp--preset--color--mild);
}

.has-hero-background {
    background: linear-gradient(135deg, #E5D9CC 0%, #D9CFC0 100%);
}

/* ============================================
   HEADER & NAVIGATION - No Sticky
   ============================================ */

.wp-header {
    background: var(--wp--preset--color--white);
    border-bottom: 1px solid #D4C8B8;
}

.wp-site-logo {
    text-align: center;
    padding: 2rem 0 1rem;
}

.logo-img {
    max-width: 220px;
    height: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-img:hover {
    transform: scale(1.02);
}

/* Navigation - WordPress Style */
.wp-navigation {
    padding: 0.5rem 0 1rem;
}

.wp-navigation__list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
}

.wp-navigation__list a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    color: var(--wp--preset--color--text-dark);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.wp-navigation__list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wp--preset--color--accent);
    transition: width 0.3s ease;
}

.wp-navigation__list a:hover::after,
.wp-navigation__list a.active::after {
    width: 100%;
}

.wp-navigation__list a:hover {
    color: var(--wp--preset--color--accent);
    transform: translateY(-2px);
}

.wp-navigation__list a.active {
    font-weight: 700;
    color: var(--wp--preset--color--accent);
}

/* ============================================
   HERO BLOCK
   ============================================ */

.hero-block {
    text-align: center;
    padding: 4rem 0 3rem;
    position: relative;
}

h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--wp--preset--color--text-dark);
}

.wp-block-paragraph {
    font-size: 1.2rem;
    color: var(--wp--preset--color--text-medium);
    max-width: 680px;
    margin: 0 auto;
}

/* ============================================
   SECTION BLOCKS
   ============================================ */

.wp-block-group {
    padding: 4rem 0;
}

.wp-block-group__inner-container {
    position: relative;
}

/* Section Title with Light Background */
.wp-block-heading.has-light-bg {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-align: center;
    display: inline-block;
    width: auto;
    padding: 0.5rem 2rem;
    background: rgba(93, 58, 26, 0.12);
    border-radius: 60px;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    animation: titleGlow 3s ease-in-out infinite;
    color: var(--wp--preset--color--text-dark);
}

@keyframes titleGlow {
    0%, 100% {
        background: rgba(93, 58, 26, 0.12);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    50% {
        background: rgba(93, 58, 26, 0.18);
        box-shadow: 0 4px 16px rgba(93, 58, 26, 0.12);
    }
}

.wp-block-heading.has-light-bg::before {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--wp--preset--color--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.wp-block-heading.has-light-bg:hover::before {
    width: 80px;
}

.section-sub {
    text-align: center;
    color: var(--wp--preset--color--text-medium);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* ============================================
   CARDS
   ============================================ */

.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 0;
}

.wp-block-column {
    flex: 1;
    min-width: 260px;
    max-width: 280px;
}

.card {
    background: var(--wp--preset--color--white);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #D4C8B8;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--wp--preset--color--accent), var(--wp--preset--color--accent-light));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: translateX(0);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    color: var(--wp--preset--color--accent);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--wp--preset--color--accent);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    color: var(--wp--preset--color--text-dark);
}

.card:hover h3 {
    color: var(--wp--preset--color--accent);
}

.card p {
    color: var(--wp--preset--color--text-medium);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Button Styles */
.wp-block-button__link {
    display: inline-block;
    font-weight: 500;
    text-decoration: none;
    color: var(--wp--preset--color--text-dark);
    border: 1.5px solid #D4C8B8;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(93, 58, 26, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.wp-block-button__link:hover::before {
    width: 300px;
    height: 300px;
}

.wp-block-button__link:hover {
    border-color: var(--wp--preset--color--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 58, 26, 0.2);
    color: var(--wp--preset--color--accent);
}

/* ============================================
   BLOG CARDS
   ============================================ */

.blog-card {
    background: var(--wp--preset--color--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #D4C8B8;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.blog-img-placeholder {
    background: linear-gradient(135deg, #E5D9CC, #D9CFC0);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: transform 0.3s ease;
    color: var(--wp--preset--color--accent);
}

.blog-card:hover .blog-img-placeholder {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B5A4A;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    color: var(--wp--preset--color--text-dark);
}

.blog-card:hover .blog-content h3 {
    color: var(--wp--preset--color--accent);
}

.blog-content p {
    color: var(--wp--preset--color--text-medium);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.read-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--wp--preset--color--text-dark);
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wp--preset--color--accent);
    transition: width 0.3s ease;
}

.read-link:hover::after {
    width: 100%;
}

.read-link:hover {
    transform: translateX(5px);
    color: var(--wp--preset--color--accent);
}

/* ============================================
   FOOTER
   ============================================ */

.wp-footer {
    text-align: center;
    padding: 2.5rem 0;
    color: #6B5A4A;
    border-top: 1px solid #D4C8B8;
    background: var(--wp--preset--color--white);
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .wp-container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .wp-block-heading.has-light-bg {
        font-size: 1.8rem;
        padding: 0.4rem 1.5rem;
    }

    .wp-block-paragraph {
        font-size: 1rem;
    }

    .wp-navigation__list {
        gap: 1.2rem;
    }

    .wp-navigation__list a {
        font-size: 0.95rem;
    }

    .wp-block-column {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 640px) {
    .wp-block-column {
        min-width: 100%;
        max-width: 100%;
    }

    h1 {
        font-size: 1.6rem;
    }

    .wp-block-heading.has-light-bg {
        font-size: 1.5rem;
        padding: 0.3rem 1.2rem;
    }

    .wp-block-group {
        padding: 3rem 0;
    }

    .hero-block {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .wp-container {
        padding: 0 1rem;
    }

    .wp-navigation__list {
        gap: 0.8rem;
    }

    .logo-img {
        max-width: 160px;
    }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #E8E0D5;
}

::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--accent-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wp--preset--color--accent);
}

/* ============================================
   FOCUS STATES
   ============================================ */

*:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
}