/*
Theme Name: Steffen Bauer Theme
Description: Custom theme based on Canva design.
Author: Antigravity
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steffen-bauer-theme
*/

/* Cooper Hewitt — place font files in themes/steffen-bauer-theme/fonts/ */
@font-face { font-family: 'Cooper Hewitt'; src: url('fonts/CooperHewitt-Light.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('fonts/CooperHewitt-LightItalic.woff') format('woff'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('fonts/CooperHewitt-Book.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('fonts/CooperHewitt-BookItalic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('fonts/CooperHewitt-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('fonts/CooperHewitt-MediumItalic.woff') format('woff'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('fonts/CooperHewitt-Semibold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('fonts/CooperHewitt-SemiboldItalic.woff') format('woff'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('fonts/CooperHewitt-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('fonts/CooperHewitt-BoldItalic.woff') format('woff'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('fonts/CooperHewitt-Heavy.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cooper Hewitt'; src: url('fonts/CooperHewitt-HeavyItalic.woff') format('woff'); font-weight: 800; font-style: italic; font-display: swap; }

:root {
    --color-blue: #446BFA;
    --color-orange: #FF9A00;
    --color-red: #FE4B4B;
    --color-gray-light: #F3F3F3;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --font-family-base: 'Cooper Hewitt', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-base);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0;
}

/* Alignments for Gutenberg Blocks */
.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

/* Base Block Styling */
.wp-block-group {
    padding: 40px 20px;
}

/* Specific Section Styles based on design */
/* Blue Background Sections */
.has-blue-background-color {
    background-color: var(--color-blue);
    color: var(--color-white);
}
.has-blue-background-color h1,
.has-blue-background-color h2,
.has-blue-background-color h3 {
    color: var(--color-white);
}

/* Red Background Sections (YouTube) */
.has-red-background-color {
    background-color: var(--color-red);
    color: var(--color-white);
}

/* Light Gray Background (Person/Footer) */
.has-light-gray-background-color {
    background-color: var(--color-gray-light);
}

/* Buttons */
.wp-block-button__link {
    background-color: var(--color-orange) !important;
    color: var(--color-white) !important;
    border-radius: 50px !important; /* Pill shape */
    padding: 12px 30px !important;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
}
.wp-block-button__link:hover {
    background-color: #e68a00 !important;
}

/* Standard WP Content Container */
.site-content {
    max-width: 100%;
}

.entry-content {
    max-width: 100%;
}

/* Full-height hero only */
.sbs-fullscreen-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tracker Section */
.sbs-tracker-card {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sbs-tracker-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.sbs-tracker-logo {
    font-weight: 900;
    font-size: 15px;
    color: var(--color-blue);
    white-space: nowrap;
}

.sbs-tracker-church-name {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.4;
}

.sbs-tracker-progress-label {
    font-weight: 700;
    font-size: 13px;
    margin-top: 14px;
    margin-bottom: 6px;
}

.sbs-progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 4px;
}

.sbs-progress-fill {
    height: 100%;
    border-radius: 5px;
}

.sbs-progress-green { background-color: #4CAF50; }
.sbs-progress-red   { background-color: var(--color-red); }

.sbs-category-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sbs-category-name {
    font-size: 13px;
    min-width: 130px;
    flex-shrink: 0;
}

.sbs-category-row .sbs-progress-bar {
    flex: 1;
    margin-bottom: 0;
}

/* Default Page Template */
.page-default {
    background-color: var(--color-white);
    min-height: calc(100vh - 80px);
}

.page-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.page-back-btn {
    display: inline-block;
    margin-bottom: 32px;
    padding: 10px 24px;
    background-color: var(--color-blue);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.page-back-btn:hover {
    background-color: #2f56e0;
    color: var(--color-white);
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--color-blue);
}

.page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.page-content h2 {
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.page-content h3 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 10px;
}

.page-content p {
    margin-bottom: 20px;
}

.page-content a {
    color: var(--color-blue);
    text-decoration: underline;
}

.page-content a:hover {
    color: #2f56e0;
}

@media (max-width: 600px) {
    .page-wrapper {
        padding: 40px 16px 60px;
    }
}
