/* ==========================================================================
   Sue Cakes & Events - Main Design System
   ========================================================================== */

/* ── CSS Custom Properties ── */
:root {
    /* Brand Colors */
    --sce-pink: #E91E8C;
    --sce-pink-light: #F472B6;
    --sce-pink-dark: #BE185D;
    --sce-purple: #7B2D8E;
    --sce-purple-light: #A855C7;
    --sce-purple-dark: #581C87;
    --sce-gold: #D4A843;
    --sce-gold-light: #F0D078;

    /* Gradients */
    --sce-gradient: linear-gradient(135deg, var(--sce-pink), var(--sce-purple));
    --sce-gradient-reverse: linear-gradient(135deg, var(--sce-purple), var(--sce-pink));
    --sce-gradient-overlay: linear-gradient(135deg, rgba(233, 30, 140, 0.85), rgba(123, 45, 142, 0.85));

    /* Neutrals */
    --sce-white: #FFFFFF;
    --sce-off-white: #FAF7F5;
    --sce-light-gray: #F3F4F6;
    --sce-gray: #6B7280;
    --sce-dark-gray: #374151;
    --sce-dark: #1F1020;
    --sce-black: #111111;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Sizing */
    --container-max: 1200px;
    --container-wide: 1400px;
    --header-height: 84px;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --section-padding: 5rem 0;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-pink: 0 8px 25px rgba(233, 30, 140, 0.25);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--sce-dark-gray);
    background-color: var(--sce-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--sce-pink);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--sce-purple);
}

ul, ol {
    list-style: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--sce-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

.section-heading {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-heading h2 {
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--sce-gradient);
    border-radius: 2px;
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--sce-gray);
    max-width: 600px;
    margin: var(--space-md) auto 0;
}

.gradient-text {
    background: var(--sce-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide {
    max-width: var(--container-wide);
}

.section {
    padding: var(--section-padding);
}

.section-alt {
    background-color: var(--sce-off-white);
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sce-purple);
    color: var(--sce-white);
    padding: 0.5rem 1.5rem;
    z-index: 10000;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    color: var(--sce-white);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

.screen-reader-text:focus {
    clip: auto;
    display: block;
    height: auto;
    width: auto;
    position: fixed;
    top: 5px;
    left: 5px;
    z-index: 100000;
    background: var(--sce-white);
    padding: 1rem;
    font-size: 0.875rem;
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0;
    gap: var(--space-md);
}

.site-branding {
    flex-shrink: 0;
}

.site-branding img {
    max-height: 50px;
    width: auto;
}

.site-branding .custom-logo-link img {
    transition: transform var(--transition-base);
}

.site-branding .custom-logo-link:hover img {
    transform: scale(1.03);
}

.site-title-link {
    text-decoration: none;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--sce-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

/* On transparent header (hero pages), make text white */
body.home .site-header:not(.scrolled) .site-title {
    background: none;
    -webkit-text-fill-color: var(--sce-white);
    color: var(--sce-white);
}

body.home .site-header:not(.scrolled) .nav-menu li a {
    color: rgba(255, 255, 255, 0.9);
}

body.home .site-header:not(.scrolled) .nav-menu li a:hover,
body.home .site-header:not(.scrolled) .nav-menu li.current-menu-item a,
body.home .site-header:not(.scrolled) .nav-menu li.current_page_item a {
    color: var(--sce-white);
}

body.home .site-header:not(.scrolled) .header-cta {
    background: var(--sce-white);
    color: var(--sce-pink);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

body.home .site-header:not(.scrolled) .header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

body.home .site-header:not(.scrolled) .hamburger span {
    background: var(--sce-white);
}

/* Non-home pages get solid header bg */
body:not(.home) .site-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* WordPress admin bar offset */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }
}

/* ── Navigation ── */
.primary-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--sce-dark-gray);
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    transition: color var(--transition-fast);
    position: relative;
    border-radius: var(--radius-md);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--sce-gradient);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after,
.nav-menu li.current_page_item a::after {
    transform: scaleX(1);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    color: var(--sce-pink);
}

/* Dropdown */
.nav-menu li .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: var(--sce-white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu li .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--sce-white);
    border-radius: 2px;
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu li .sub-menu li a {
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-menu li .sub-menu li a:hover {
    background: var(--sce-off-white);
}

.nav-menu li .sub-menu a::after {
    display: none;
}

/* Header CTA */
.header-cta {
    flex-shrink: 0;
    padding: 0.65rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    letter-spacing: 0.02em;
}

/* ── Mobile Menu ── */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 26px;
}

.hamburger span {
    display: block;
    height: 2.5px;
    background: var(--sce-dark);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--sce-gradient);
    color: var(--sce-white);
    box-shadow: var(--shadow-pink);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(233, 30, 140, 0.35);
    color: var(--sce-white);
}

.btn-secondary {
    background: transparent;
    color: var(--sce-white);
    border: 2px solid var(--sce-white);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--sce-white);
    color: var(--sce-pink);
}

.btn-outline {
    background: transparent;
    color: var(--sce-pink);
    border: 2px solid var(--sce-pink);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--sce-gradient);
    color: var(--sce-white);
    border-color: transparent;
}

.btn-gold {
    background: var(--sce-gold);
    color: var(--sce-dark);
}

.btn-gold:hover,
.btn-gold:focus {
    background: var(--sce-gold-light);
    color: var(--sce-dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* ── Forms ── */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--sce-dark);
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--sce-pink);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--sce-dark-gray);
    background: var(--sce-white);
    border: 2px solid var(--sce-light-gray);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--sce-pink);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

.form-control::placeholder {
    color: #9CA3AF;
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-error {
    color: #DC2626;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.form-group.has-error .form-control {
    border-color: #DC2626;
}

.form-group.has-error .form-error {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* ── Cards ── */
.card {
    background: var(--sce-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-content {
    padding: var(--space-md);
}

/* ── Footer ── */
.site-footer {
    background: var(--sce-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-main {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer-site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sce-white);
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
}

.footer-about-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--sce-white);
    transition: all var(--transition-base);
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-facebook:hover {
    background: #1877F2;
    color: var(--sce-white);
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: var(--sce-white);
}

.social-whatsapp:hover {
    background: #25D366;
    color: var(--sce-white);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--sce-white);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--sce-gradient);
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    padding: 0.15rem 0;
}

.footer-menu a:hover {
    color: var(--sce-pink-light);
    padding-left: 5px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--sce-pink-light);
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-list a:hover {
    color: var(--sce-pink-light);
}

.footer-hours {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md) 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ── Breadcrumbs ── */
.breadcrumbs {
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
    color: var(--sce-gray);
}

.breadcrumbs a {
    color: var(--sce-gray);
}

.breadcrumbs a:hover {
    color: var(--sce-pink);
}

.breadcrumb-separator {
    margin: 0 0.25rem;
    color: var(--sce-gray);
}

.breadcrumb-current {
    color: var(--sce-pink);
}

/* ── Page Header ── */
.page-header {
    background: var(--sce-gradient);
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    text-align: center;
    color: var(--sce-white);
}

.page-header h1 {
    color: var(--sce-white);
    margin-bottom: var(--space-sm);
}

.page-header p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.page-header .breadcrumbs {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
}

.page-header .breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumbs a:hover {
    color: var(--sce-white);
}

.page-header .breadcrumb-current {
    color: var(--sce-white);
}

/* ── Content Area ── */
.content-area {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-3xl);
}

/* ── Blog Grid ── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

/* ── Pagination ── */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--sce-dark-gray);
    background: var(--sce-light-gray);
    transition: all var(--transition-fast);
}

.page-numbers:hover {
    background: var(--sce-gradient);
    color: var(--sce-white);
}

.page-numbers.current {
    background: var(--sce-gradient);
    color: var(--sce-white);
}

/* ── Widget Styles ── */
.widget {
    margin-bottom: var(--space-lg);
}

.widget-title {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--sce-light-gray);
}

/* ── Single Blog Post ── */

/* Hero Banner - Title on Featured Image */
.single-hero-banner {
    position: relative;
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: flex-end;
    background-color: var(--sce-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.single-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(31, 16, 32, 0.1) 0%,
        rgba(31, 16, 32, 0.25) 40%,
        rgba(31, 16, 32, 0.7) 75%,
        rgba(31, 16, 32, 0.92) 100%
    );
    z-index: 1;
}

.single-hero-banner:not(.has-image) {
    min-height: 50vh;
    background: var(--sce-gradient);
}

.single-hero-banner:not(.has-image)::before {
    background: linear-gradient(135deg, rgba(123, 45, 142, 0.3), rgba(233, 30, 140, 0.3));
}

.single-hero-banner-overlay {
    display: none;
}

.single-hero-banner-content {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-height) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
    max-width: 860px;
}

.single-category-badge {
    margin-bottom: var(--space-md);
}

.single-category-badge a {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--sce-white);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: all var(--transition-base);
}

.single-category-badge a:hover {
    background: var(--sce-white);
    color: var(--sce-pink);
    border-color: var(--sce-white);
}

.single-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.1;
    color: var(--sce-white);
    margin-bottom: var(--space-md);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.single-hero-excerpt {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

/* Blog Page-Load Animations */
.blog-animate {
    opacity: 0;
    will-change: opacity, transform;
    animation-fill-mode: forwards;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-delay: var(--delay, 0s);
}

.blog-animate-fade {
    animation-name: blogFadeIn;
}

.blog-animate-up {
    transform: translateY(25px);
    animation-name: blogSlideUp;
}

@keyframes blogFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blogSlideUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-animate {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Article Wrapper */
.single-article-wrapper {
    position: relative;
    z-index: 2;
    background: var(--sce-white);
}

.single-article-content {
    max-width: 780px;
    margin: 0 auto;
    padding: var(--space-2xl) 0 var(--space-2xl);
}

.single-article-content .post-tags-wrapper {
    border-top: none;
    padding-top: var(--space-md);
    justify-content: center;
}

/* Archive layout */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
    align-items: start;
}

.single-main {
    min-width: 0;
}

.single-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

/* ── Entry Content (rich blog content) ── */
.entry-content {
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--sce-dark-gray);
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
    position: relative;
    padding-bottom: var(--space-sm);
}

.entry-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--sce-gradient);
    border-radius: 2px;
}

.entry-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    line-height: 1.3;
}

.entry-content h4 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xs);
    font-size: 1.2rem;
}

.entry-content p {
    margin-bottom: var(--space-md);
}

.entry-content > p:first-of-type {
    font-size: 1.2rem;
    color: var(--sce-dark);
    line-height: 1.75;
}

.entry-content a {
    color: var(--sce-pink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(233, 30, 140, 0.3);
    transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
}

.entry-content a:hover {
    color: var(--sce-purple);
    text-decoration-color: var(--sce-purple);
}

.entry-content img {
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
}

.entry-content figure {
    margin: var(--space-xl) calc(-1 * var(--space-lg));
}

.entry-content figure img {
    margin: 0;
    border-radius: var(--radius-lg);
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.88rem;
    color: var(--sce-gray);
    margin-top: var(--space-sm);
    font-style: italic;
}

.entry-content blockquote {
    border-left: 4px solid var(--sce-pink);
    margin: var(--space-xl) 0;
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.04), rgba(123, 45, 142, 0.04));
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.7;
    font-family: var(--font-heading);
    color: var(--sce-dark);
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
    margin: var(--space-lg) 0;
    padding-left: 1.5rem;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li {
    margin-bottom: 0.6rem;
    padding-left: 0.25rem;
}

.entry-content li::marker {
    color: var(--sce-pink);
}

.entry-content pre {
    background: var(--sce-dark);
    color: #e2e8f0;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--space-xl) 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.entry-content code {
    background: var(--sce-off-white);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.88em;
    color: var(--sce-pink-dark);
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.entry-content th,
.entry-content td {
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--sce-light-gray);
    text-align: left;
}

.entry-content th {
    background: var(--sce-off-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.entry-content hr {
    border: none;
    height: 1px;
    background: var(--sce-light-gray);
    margin: var(--space-2xl) 0;
}

/* WordPress Gallery */
.entry-content .wp-block-gallery,
.entry-content .gallery {
    margin: var(--space-xl) calc(-1 * var(--space-lg));
}

.entry-content .wp-block-gallery .wp-block-image img,
.entry-content .gallery img {
    border-radius: var(--radius-lg);
    margin: 0;
}

.entry-content .wp-block-image {
    margin: var(--space-xl) 0;
}

.entry-content .wp-block-image.aligncenter {
    text-align: center;
}

.entry-content .wp-block-image.alignleft {
    float: left;
    margin-right: var(--space-xl);
    margin-bottom: var(--space-md);
    max-width: 45%;
}

.entry-content .wp-block-image.alignright {
    float: right;
    margin-left: var(--space-xl);
    margin-bottom: var(--space-md);
    max-width: 45%;
}

/* Full-width images break out of content */
.entry-content .wp-block-image.alignfull,
.entry-content .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.entry-content .alignfull img {
    border-radius: 0;
    width: 100%;
}

.entry-content .wp-block-image.alignwide,
.entry-content .alignwide {
    margin-left: calc(-1 * var(--space-2xl));
    margin-right: calc(-1 * var(--space-2xl));
}

.entry-content::after {
    content: '';
    display: table;
    clear: both;
}

/* ── Archive Card Styles ── */
.card-category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.08), rgba(123, 45, 142, 0.08));
    color: var(--sce-pink);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-sm);
}

.post-title a {
    color: var(--sce-dark);
    transition: color var(--transition-fast);
}

.post-title a:hover {
    color: var(--sce-pink);
}

.post-excerpt {
    color: var(--sce-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.read-more {
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--sce-pink);
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.read-more:hover {
    gap: 0.6rem;
    color: var(--sce-purple);
}

/* ── Post Tags ── */
.post-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: var(--space-xl) 0 0;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--sce-light-gray);
}

.post-tags-wrapper a {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--sce-off-white);
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--sce-dark-gray);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.post-tags-wrapper a:hover {
    background: var(--sce-gradient);
    color: var(--sce-white);
}

/* ── Author Box ── */
.author-box {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-lg);
    background: var(--sce-off-white);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.author-avatar img {
    border-radius: var(--radius-full);
    width: 80px;
    height: 80px;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.author-info p {
    font-size: 0.95rem;
    color: var(--sce-gray);
    margin-bottom: 0;
}

/* ── Post Navigation ── */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.post-nav-link {
    padding: var(--space-md);
    background: var(--sce-off-white);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    color: var(--sce-dark-gray);
}

.post-nav-link:hover {
    background: var(--sce-gradient);
    color: var(--sce-white);
}

.post-nav-link:hover .post-nav-label,
.post-nav-link:hover .post-nav-title {
    color: var(--sce-white);
}

.post-nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--sce-gray);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-nav-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sce-dark);
}

.post-nav-next {
    text-align: right;
}

/* ── Comments ── */
.comments-area {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--sce-light-gray);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-item {
    margin-bottom: var(--space-lg);
}

.comment-body {
    padding: var(--space-md);
    background: var(--sce-off-white);
    border-radius: var(--radius-md);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.comment-avatar img {
    border-radius: var(--radius-full);
}

.comment-author {
    font-size: 1rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--sce-gray);
    display: block;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

.comment-actions a {
    font-size: 0.85rem;
    font-weight: 600;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--sce-light-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    transition: border-color var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--sce-pink);
    outline: none;
}

/* ── FAQ Section ── */
.faq-section {
    margin: var(--space-2xl) 0;
    padding: var(--space-2xl);
    background: var(--sce-off-white);
    border-radius: var(--radius-lg);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.faq-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
}

.faq-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--sce-gradient);
    border-radius: 2px;
}

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

.faq-item {
    background: var(--sce-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sce-dark);
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--sce-pink);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--sce-pink);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 var(--space-lg);
}

.faq-answer.is-open {
    max-height: 500px;
    padding: 0 var(--space-lg) var(--space-md);
}

.faq-answer p {
    color: var(--sce-gray);
    line-height: 1.7;
    font-size: 0.98rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ── Page Links ── */
.page-links {
    margin: var(--space-lg) 0;
    font-weight: 600;
}

.page-links .page-links-label {
    margin-right: 0.5rem;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile nav breakpoint */
@media (max-width: 768px) {
    :root {
        --header-height: 68px;
        --section-padding: 3rem 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .primary-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--sce-white);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
        padding: calc(var(--header-height) + var(--space-xl)) var(--space-lg) var(--space-lg);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .primary-navigation.is-open {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav-menu li a {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        font-weight: 500;
        border-radius: var(--radius-md);
        border-bottom: none;
        color: var(--sce-dark-gray);
        transition: all var(--transition-fast);
    }

    .nav-menu li a:hover {
        background: var(--sce-off-white);
        color: var(--sce-pink);
    }

    .nav-menu li.current-menu-item a,
    .nav-menu li.current_page_item a {
        background: linear-gradient(135deg, rgba(233, 30, 140, 0.08), rgba(123, 45, 142, 0.08));
        color: var(--sce-pink);
        font-weight: 600;
    }

    .nav-menu li a::after {
        display: none;
    }

    .nav-menu li .sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0 0 0 var(--space-md);
        min-width: auto;
        border-radius: 0;
    }

    .nav-menu li .sub-menu::before {
        display: none;
    }

    .header-cta {
        display: none;
    }

    /* Mobile menu overlay */
    body.mobile-menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 998;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Force solid header on mobile when menu open */
    body.mobile-menu-open .site-header {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    body.mobile-menu-open .hamburger span {
        background: var(--sce-dark) !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .single-layout {
        grid-template-columns: 1fr;
    }

    .single-sidebar {
        position: static;
    }

    /* Single blog mobile */
    .single-hero-banner {
        min-height: 55vh;
    }

    .single-hero-banner-content {
        padding-bottom: var(--space-xl);
    }

    .single-hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .single-hero-excerpt {
        font-size: 1rem;
    }

    .entry-content {
        font-size: 1rem;
    }

    .entry-content > p:first-of-type {
        font-size: 1.05rem;
    }

    .entry-content figure {
        margin-left: 0;
        margin-right: 0;
    }

    .entry-content .wp-block-gallery,
    .entry-content .gallery {
        margin-left: 0;
        margin-right: 0;
    }

    .entry-content h2 {
        font-size: 1.4rem;
        margin-top: var(--space-xl);
    }

    .entry-content blockquote {
        padding: var(--space-md) var(--space-lg);
        font-size: 1.05rem;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .entry-content .wp-block-image.alignleft,
    .entry-content .wp-block-image.alignright {
        float: none;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .entry-content .alignwide {
        margin-left: 0;
        margin-right: 0;
    }

    .faq-section {
        padding: var(--space-lg);
    }

    .faq-question {
        font-size: 0.95rem;
        padding: var(--space-sm) var(--space-md);
    }

    .faq-answer {
        padding: 0 var(--space-md);
    }

    .faq-answer.is-open {
        padding: 0 var(--space-md) var(--space-sm);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .btn-lg {
        padding: 0.9rem 1.75rem;
        font-size: 1rem;
    }
}
