/* ==========================================================================
   Shine Forest App - static site stylesheet
   Ported from the original WordPress (Sydney theme) design.
   ========================================================================== */

:root {
	--accent: #d65050;
	--dark-bg: #1c1c1c;
	--header-bg: rgba(0, 0, 0, 0.9);
	--body-text: #47425d;
	--muted-text: #767676;
	--sidebar-title: #263246;
	--footer-text: #666666;
	--border-color: #dbdbdb;
	--field-bg: #fafafa;
	--header-height: 83px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Raleway", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
	font-size: 16px;
	line-height: 1.75;
	color: var(--body-text);
	background: #fff;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Raleway", sans-serif;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 20px;
}

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

a:hover {
	text-decoration: underline;
}

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

.container {
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #fff;
	color: #000;
	padding: 10px 15px;
	z-index: 10000;
}

.skip-link:focus {
	left: 10px;
}

/* ---- Header ---- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: var(--header-bg);
	padding: 18px 0;
	transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.header-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.site-branding {
	margin-bottom: 12px;
}

.site-title {
	margin: 0;
	font-size: 32px;
}

.site-title a,
.site-title a:hover {
	color: #fff;
	text-decoration: none;
}

.site-description {
	margin: 8px 0 0;
	font-size: 15px;
	color: #efefef;
	font-weight: 400;
}

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
	margin-bottom: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	position: relative;
	transition: all 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle span::before {
	top: -8px;
}

.nav-toggle span::after {
	top: 8px;
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.main-nav li {
	padding: 0 14px;
}

.main-nav a {
	display: block;
	padding: 6px 0;
	font-size: 14px;
	color: #fff;
	font-weight: 500;
	text-decoration: none;
}

.main-nav a:hover,
.main-nav a.is-current {
	color: var(--accent);
}

/* ---- Hero ---- */
.hero {
	height: 300px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: #000;
	position: relative;
	margin-top: var(--header-height);
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.55);
}

/* ---- Page layout ---- */
.page-wrap {
	padding: 60px 0 100px;
}

.content-grid {
	display: grid;
	grid-template-columns: 3fr 1fr;
	gap: 40px;
	align-items: start;
}

.page-title {
	font-size: 40px;
	margin-bottom: 30px;
}

.entry-content p {
	margin: 0 0 20px;
}

.entry-content h2 {
	font-size: 32px;
}

/* ---- Sidebar ---- */
.sidebar .widget {
	background: #fff;
	color: var(--muted-text);
}

.widget-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--sidebar-title);
	margin: 0 0 20px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--accent);
}

.sidebar p {
	margin: 0 0 16px;
	font-size: 15px;
}

/* ---- Download apps list ---- */
.app-card {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin-bottom: 30px;
}

.app-card img {
	border-radius: 20px;
	box-shadow: 1px 4px 6px 1px #999;
	flex-shrink: 0;
}

.app-card .app-meta p {
	margin: 0 0 4px;
	font-size: 15px;
}

/* ---- Contact form ---- */
.contact-form {
	max-width: 640px;
}

.form-row {
	margin: 0 0 20px;
}

.form-row label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
	width: 100%;
	color: var(--muted-text);
	background-color: var(--field-bg);
	border: 1px solid var(--border-color);
	padding: 4px 20px;
	font-family: inherit;
	font-size: 16px;
	transition: border-color 0.2s ease-in-out;
}

.form-row input[type="text"],
.form-row input[type="email"] {
	height: 50px;
}

.form-row textarea {
	height: 120px;
	padding: 15px 20px;
	resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
	outline: none;
	border-color: var(--accent);
}

.submit-btn {
	display: inline-block;
	font-family: "Raleway", sans-serif;
	font-size: 13px;
	line-height: 24px;
	font-weight: 700;
	padding: 12px 34px;
	color: #fff;
	background-color: var(--accent);
	border: 1px solid var(--accent);
	text-transform: uppercase;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.3s;
}

.submit-btn:hover:not(:disabled) {
	background-color: transparent;
	color: var(--accent);
}

.submit-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.form-response {
	margin-top: 16px;
	font-size: 15px;
}

.form-response.success {
	color: #2e7d32;
}

.form-response.error {
	color: var(--accent);
}

.field-error {
	color: var(--accent);
	font-size: 13px;
	display: block;
	margin-top: 4px;
}

/* ---- Footer ---- */
.site-footer {
	background-color: var(--dark-bg);
	color: var(--footer-text);
	padding: 24px 0;
	font-size: 14px;
	text-align: center;
}

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

/* ---- Go to top ---- */
.go-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	color: #fff;
	background-color: var(--accent);
	border-radius: 2px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s;
	z-index: 999;
	text-decoration: none;
}

.go-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.go-top:hover {
	background-color: #b83f3f;
	text-decoration: none;
}

/* ---- Responsive ---- */
@media only screen and (max-width: 900px) {
	.content-grid {
		grid-template-columns: 1fr;
	}
}

@media only screen and (max-width: 780px) {
	.page-title { font-size: 30px; }
	.entry-content h2 { font-size: 26px; }
	.app-card { flex-direction: column; }
}

@media only screen and (max-width: 640px) {
	.nav-toggle {
		display: block;
	}

	.main-nav {
		width: 100%;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	.main-nav.is-open {
		max-height: 300px;
	}

	.main-nav ul {
		flex-direction: column;
		align-items: center;
		padding: 10px 0;
	}

	.main-nav li {
		padding: 8px 0;
	}
}
