/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/* ===== SERENITY PRESS CUSTOM STYLES - WRITING & DOWNLOADS FOCUSED ===== */

/* CSS Variables for Brand Colors */
:root {
    --serenity-primary-teal: #00BCD4;
    --serenity-teal-hover: #00ACC1;
    --serenity-dark-gray: #2C2C2C;
    --serenity-light-gray: #F5F5F5;
    --serenity-text-dark: #333333;
    --serenity-text-light: #666666;
    --serenity-white: #FFFFFF;
}

/* Hero Section Styles */
.serenity-hero {
    padding: 60px 20px;
    text-align: center;
}

.serenity-hero .wp-block-cover {
    border-radius: 0;
    min-height: 500px;
}

.serenity-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.serenity-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* Button Styles */
.wp-block-button.serenity-btn-primary .wp-block-button__link {
    background-color: var(--serenity-white) !important;
    color: var(--serenity-primary-teal) !important;
    border-radius: 30px !important;
    padding: 16px 32px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.wp-block-button.serenity-btn-primary .wp-block-button__link:hover {
    background-color: var(--serenity-light-gray) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}

.wp-block-button.serenity-btn-secondary .wp-block-button__link {
    background-color: transparent !important;
    color: var(--serenity-white) !important;
    border: 2px solid var(--serenity-white) !important;
    border-radius: 30px !important;
    padding: 16px 32px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.wp-block-button.serenity-btn-secondary .wp-block-button__link:hover {
    background-color: var(--serenity-white) !important;
    color: var(--serenity-primary-teal) !important;
}

/* Main Features Section - Writing & Downloads */
.serenity-features {
    padding: 80px 20px;
    background-color: var(--serenity-light-gray);
}

.serenity-features h2 {
    font-size: 2.5rem;
    color: var(--serenity-dark-gray);
    text-align: center;
    margin-bottom: 1rem;
}

.serenity-features .section-subtitle {
    font-size: 1.2rem;
    color: var(--serenity-text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* Two-Column Layout for Writing & Downloads */
.serenity-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .serenity-two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Feature Cards - Larger for main offerings */
.wp-block-group.serenity-feature-card {
    background-color: var(--serenity-white) !important;
    padding: 3rem !important;
    border-radius: 15px !important;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease;
    border: none !important;
}

.wp-block-group.serenity-feature-card:hover {
    transform: translateY(-5px);
}

.serenity-feature-icon {
    width: 100px;
    height: 100px;
    background-color: var(--serenity-primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: var(--serenity-white);
}

.serenity-feature-card h3 {
    font-size: 1.8rem;
    color: var(--serenity-dark-gray);
    margin-bottom: 1.5rem;
}

.serenity-feature-card p {
    color: var(--serenity-text-light);
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Blog Preview Section */
.serenity-blog-preview {
    padding: 80px 20px;
}

.serenity-blog-preview h2 {
    font-size: 2.5rem;
    color: var(--serenity-dark-gray);
    text-align: center;
    margin-bottom: 1rem;
}

.serenity-blog-preview .section-subtitle {
    font-size: 1.2rem;
    color: var(--serenity-text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* Downloads Preview Section */
.serenity-downloads {
    padding: 80px 20px;
    background-color: var(--serenity-light-gray);
}

.serenity-downloads h2 {
    font-size: 2.5rem;
    color: var(--serenity-dark-gray);
    text-align: center;
    margin-bottom: 1rem;
}

.serenity-downloads .section-subtitle {
    font-size: 1.2rem;
    color: var(--serenity-text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* Download Cards */
.wp-block-group.serenity-download-card {
    background-color: var(--serenity-white) !important;
    padding: 2rem !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08) !important;
    transition: transform 0.3s ease;
    border: 1px solid #E0E0E0 !important;
}

.wp-block-group.serenity-download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12) !important;
}

.serenity-download-card h4 {
    color: var(--serenity-dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.serenity-download-card p {
    color: var(--serenity-text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Download Button Specific Style */
.wp-block-button.serenity-download-btn .wp-block-button__link {
    background-color: var(--serenity-primary-teal) !important;
    color: var(--serenity-white) !important;
    border-radius: 20px !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

/* CTA Section */
.serenity-cta {
    background-color: var(--serenity-dark-gray);
    padding: 80px 20px;
    text-align: center;
}

.serenity-cta h2 {
    font-size: 2.5rem;
    color: var(--serenity-white);
    margin-bottom: 1rem;
}

.serenity-cta p {
    font-size: 1.2rem;
    color: var(--serenity-white);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Footer Overrides */
.serenity-footer {
    background-color: var(--serenity-dark-gray) !important;
    color: var(--serenity-white) !important;
    padding: 48px 20px 16px !important;
}

.serenity-footer h3 {
    color: var(--serenity-primary-teal) !important;
    margin-bottom: 1rem;
}

.serenity-footer p,
.serenity-footer a {
    color: #CCCCCC !important;
    text-decoration: none;
    line-height: 1.8;
}

.serenity-footer a:hover {
    color: var(--serenity-primary-teal) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .serenity-hero h1 {
        font-size: 2.5rem;
    }
    
    .wp-block-buttons.serenity-hero-buttons .wp-block-button {
        display: block;
        margin-bottom: 1rem;
    }
    
    .serenity-features,
    .serenity-blog-preview,
    .serenity-downloads,
    .serenity-cta {
        padding: 60px 20px;
    }
}