/*
Theme Name: Betterlife
Theme URI: https://example.com
Author: Betterlife Dev Team
Author URI: https://example.com
Description: Custom theme for Betterlife precious metal buying site.
Version: 0.1.0
Requires at least: 6.3
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: betterlife
*/

:root {
    --color-primary: #0b3c65;
    --color-secondary: #1f6ebd;
    --color-accent: #1f6ebd;
    --color-dark: #12233b;
    --color-light: #f7f9fd;
    --color-muted: #e3ecf7;
    --color-surface: #ffffff;
    --color-footer-bg: #0b2242;
    --color-footer-text: #ffffff;
    --color-footer-link: rgba(255, 255, 255, 0.85);
    --color-footer-link-hover: #dbe4f3;
    --color-border: rgba(17, 44, 82, 0.08);
    --color-border-strong: rgba(11, 60, 101, 0.18);
    --shadow-primary: rgba(11, 60, 101, 0.25);
    --shadow-primary-soft: rgba(11, 60, 101, 0.16);
    --shadow-card: rgba(11, 60, 101, 0.08);
    --gradient-primary-start: rgba(11, 60, 101, 0.08);
    --gradient-primary-end: rgba(255, 255, 255, 0.95);
    --text-muted-strong: rgba(11, 60, 101, 0.65);
    --color-step-primary: #113b78;
    --color-step-text: #ffffff;
    --font-base: 'Noto Serif JP', 'Noto Serif Japanese', serif;
    --max-width: 1200px;
}

:root[data-theme="sun-gold"] {
    --color-primary: #deb076;
    --color-secondary: #deb076;
    --color-accent: #deb076;
    --color-dark: #1f1f1f;
    --color-light: #fff9f0;
    --color-muted: #f5e4cd;
    --color-surface: #ffffff;
    --color-footer-bg: #fff9f0;
    --color-footer-text: #1f1f1f;
    --color-footer-link: rgba(31, 31, 31, 0.8);
    --color-footer-link-hover: #1f1f1f;
    --color-border: rgba(222, 176, 118, 0.4);
    --color-border-strong: rgba(222, 176, 118, 0.65);
    --shadow-primary: rgba(222, 176, 118, 0.45);
    --shadow-primary-soft: rgba(222, 176, 118, 0.28);
    --shadow-card: rgba(222, 176, 118, 0.18);
    --gradient-primary-start: rgba(222, 176, 118, 0.18);
    --gradient-primary-end: rgba(255, 255, 255, 0.96);
    --text-muted-strong: rgba(31, 31, 31, 0.7);
    --color-step-primary: #deb076;
    --color-step-text: #ffffff;
    --color-step-heading: #0b3c65;
    --color-step-label: #ffffff;
    --color-digest-background: #ffffff;
    --color-digest-text: #1f1f1f;
    --color-digest-inner-bg: rgba(255, 255, 255, 0.65);
    --color-digest-border: rgba(31, 31, 31, 0.12);
    --color-digest-item-border: rgba(31, 31, 31, 0.15);
}

html {
    background: #ffffff;
    width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-dark);
    background: var(--color-surface);
    overflow-x: hidden;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--color-secondary);
}

.site-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 4.5rem 2rem;
}

.site-footer a {
    color: var(--color-footer-link);
}

.site-footer a:hover {
    color: var(--color-footer-link-hover);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(18, 35, 59, 0.08);
    backdrop-filter: blur(6px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-dark);
    transition: color 0.2s ease;
}

.primary-nav a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

.hero {
    position: relative;
    padding: 0 0 7rem;
    min-height: 60vh;
    background-color: var(--color-primary);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero__spacer {
    width: 100%;
    min-height: 320px;
}

.hero__title,
.hero__lead {
    display: none;
}

@media (max-width: 768px) {
    .site-header__inner {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        height: auto;
        padding: 1rem 0;
    }

    .primary-nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero {
        min-height: 380px;
        padding-bottom: 4rem;
    }

    .hero__spacer {
        min-height: 220px;
    }
}
