/*
Theme Name: Peak Web Company
Theme URI: https://peakwebcompany.com/
Author: Peak Web Co.
Author URI: https://peakwebcompany.com/
Description: The full website for Peak Web Company. Home, Packages, and Contact pages, with the two website packages, the optional care plan, and a contact form that sends mail to the business.
Version: 1.0.40
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: peak-web-company
Tags: custom, simple, business
*/

* { box-sizing: border-box; }

body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.6;
	color: #1a1a1a;
	background: #fff;
}

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

a { color: #1a1a1a; }
a:hover { color: #555; }

.wrap {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.site-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 32px 16px;
	background: #fff;
	border-bottom: 1px solid #ddd;
}
.site-header-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	background: transparent;
	border-bottom: 0;
}
body.admin-bar .site-header-overlay { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .site-header-overlay { top: 46px; }
}
.site-header .site-logo {
	width: 180px;
	max-width: 45vw;
	height: auto;
	display: block;
}
.main-nav { margin-top: 0; }
.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
	justify-content: flex-end;
	flex-wrap: nowrap;
}
.main-nav a {
	text-decoration: none;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 6px;
}
.main-nav a:hover { color: #2563eb; }
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
	background: #f0f0f0;
}
.site-header-overlay .main-nav .current-menu-item a,
.site-header-overlay .main-nav .current_page_item a {
	background: rgba(255, 255, 255, 0.55);
}

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: 200px 0 260px;
	background: linear-gradient(#dbe7ee, #f7f4ec);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-ground {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 60px;
	display: block;
}
.hero-art {
	position: absolute;
	bottom: 0;
	display: block;
}
.hero-art-left { left: 24px; width: 250px; height: auto; }
.hero-art-right { right: 24px; width: 240px; }
.hero-art-right img { display: block; width: 100%; height: auto; }
.hero-smoke {
	position: absolute;
	left: 20.4%;
	top: 16.2%;
	width: 0;
	height: 0;
}
.smoke-puff {
	position: absolute;
	left: -8px;
	top: -8px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #cdd8de;
	opacity: 0;
	animation: peak-smoke 4s ease-out infinite;
}
.smoke-2 { animation-delay: 1.3s; }
.smoke-3 { animation-delay: 2.6s; }
@keyframes peak-smoke {
	0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
	25% { opacity: 0.9; }
	100% { transform: translate(12px, -70px) scale(1.8); opacity: 0; }
}
.snow {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}
.snow span {
	position: absolute;
	top: -12px;
	background: #fff;
	border-radius: 50%;
	animation: peak-snow linear infinite;
}
@keyframes peak-snow { to { top: 105%; } }
@media (prefers-reduced-motion: reduce) {
	.snow span, .smoke-puff { animation: none; }
}
.hero h1 {
	font-size: 2.7em;
	line-height: 1.2;
	margin: 0 0 12px;
	font-weight: 800;
}
.hero p {
	font-size: 1.15em;
	color: #444;
	max-width: 700px;
	margin: 0 auto;
}

/* Sections */
.section { padding: 48px 0; }
.section-highlight {
	background: linear-gradient(#dbe7ee, #f7f4ec);
}
.contact-cta { text-align: center; }
.contact-cta .contact-blurb { max-width: 640px; margin: 0 auto 12px; }
.section h2 {
	font-size: 2em;
	margin: 0 0 16px;
	text-align: center;
}
.section p { margin: 0 0 12px; }
.section p:last-child { margin: 0; }

/* Services */
.services {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.services li {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
}
.services h3 { margin: 0 0 8px; font-size: 1.1em; }
.services p { margin: 0; color: #444; font-size: 0.95em; }
.hero .services { margin-top: 40px; }
.hero .services li { background: rgba(255, 255, 255, 0.6); border-color: #fff; text-align: center; transition: background-color 0.3s ease; }
.hero .services li:hover { background: #fff; }

/* Demo list */
.demo-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}
.demo-list li {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
}
.demo-list h3 { margin: 0 0 8px; font-size: 1.1em; }
.demo-list p { margin: 0 0 8px; color: #444; font-size: 0.95em; }
.demo-list p:last-child { margin: 0; }
.demo-list a { font-weight: 600; color: #2563eb; }
.demo-list li > a:first-child {
	display: block;
	margin: -20px -20px 16px;
	border-radius: 8px 8px 0 0;
	overflow: hidden;
}
.demo-list li > a:first-child img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	object-position: top;
	transition: transform 0.3s ease;
}
.demo-list li > a:first-child:hover img { transform: scale(1.03); }

/* Package cards on the home page */
.package-cards {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.package-cards li {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
}
.package-cards h3 { margin: 0 0 4px; font-size: 1.1em; }
.package-cards .price {
	font-size: 1.5em;
	font-weight: 700;
	color: #2563eb;
	margin: 0 0 8px;
}
.package-cards p { margin: 0; color: #444; font-size: 0.95em; }
.section .button-row {
	text-align: center;
	margin-top: 20px;
}

/* Buttons */
.button,
a.button {
	display: inline-block;
	background: #2563eb;
	color: #fff;
	text-decoration: none;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	padding: 10px 22px;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}
.button:hover,
a.button:hover { background: #1d4ed8; color: #fff; }
.button-outline,
a.button-outline {
	display: inline-block;
	background: transparent;
	color: #2563eb;
	text-decoration: none;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	padding: 9px 20px;
	border: 2px solid #2563eb;
	border-radius: 6px;
}
.button-outline:hover,
a.button-outline:hover { background: #eff6ff; color: #2563eb; }

/* Work cards */
.work-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}
.work-cards li {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
}
.work-cards h3 { margin: 0 0 8px; font-size: 1.1em; }
.work-cards h3 a { color: #2563eb; text-decoration: none; }
.work-cards h3 a:hover { text-decoration: underline; }
.work-cards p { margin: 0; color: #444; font-size: 0.95em; }
.work-cards li > a:first-child {
	display: block;
	margin: -20px -20px 16px;
	border-radius: 8px 8px 0 0;
	overflow: hidden;
}
.work-cards li > a:first-child img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	object-position: top;
	transition: transform 0.3s ease;
}
.work-cards li > a:first-child:hover img { transform: scale(1.03); }

/* Page content */
.page-content { padding: 40px 0; }
.page-content h1 {
	font-size: 2em;
	margin: 0 0 12px;
	text-align: center;
}
.page-content .page-intro {
	text-align: center;
	color: #444;
	max-width: 640px;
	margin: 0 auto 32px;
}

/* 404 page */
.not-found { text-align: center; }
.not-found-sketch {
	display: block;
	max-width: 640px;
	width: 100%;
	height: auto;
	margin: 0 auto 8px;
}
.not-found p { max-width: 640px; margin-left: auto; margin-right: auto; }
.not-found-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 24px auto;
}
.not-found-contact { color: #444; font-size: 0.95em; }

/* Package cards */
.packages {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin: 0 0 32px;
}
.package-card {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 24px;
}
.package-card h2 {
	font-size: 1.3em;
	margin: 0 0 4px;
	text-align: left;
}
.package-card .price {
	font-size: 1.5em;
	font-weight: 700;
	margin: 0 0 4px;
	color: #2563eb;
}
.package-card .price-note {
	color: #444;
	font-size: 0.95em;
	margin: 0 0 16px;
}
.package-card ul { margin: 0; padding-left: 20px; }
.package-card li { margin: 0 0 8px; color: #444; }
.package-card li:last-child { margin: 0; }

/* Care plan */
.care-plan {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 24px;
	margin: 0 0 32px;
}
.care-plan h2 {
	font-size: 1.3em;
	margin: 0 0 4px;
	text-align: left;
}
.care-plan .price {
	font-size: 1.5em;
	font-weight: 700;
	margin: 0 0 16px;
	color: #2563eb;
}
.care-plan ul { margin: 0 0 16px; padding-left: 20px; }
.care-plan li { margin: 0 0 8px; color: #444; }
.care-plan li:last-child { margin: 0; }
.care-plan p { margin: 0 0 12px; color: #444; }
.care-plan p:last-child { margin: 0; }

/* Terms */
.terms { margin: 0 0 32px; }
.terms h2 {
	font-size: 1.3em;
	margin: 0 0 12px;
	text-align: left;
}
.terms ul { margin: 0; padding-left: 20px; }
.terms li { margin: 0 0 8px; color: #444; }
.terms li:last-child { margin: 0; }

/* Contact details */
.contact-details {
	text-align: center;
	margin: 0 0 32px;
}
.contact-details p { margin: 0 0 8px; }
.contact-details p:last-child { margin: 0; }
.contact-details a { font-weight: 600; }

/* Contact form */
.contact-form { max-width: 640px; margin: 0 auto; }
.contact-form label {
	display: block;
	font-weight: 600;
	margin: 0 0 4px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	padding: 10px;
	border: 1px solid #bbb;
	border-radius: 6px;
	margin: 0 0 16px;
}
.contact-form textarea { min-height: 140px; }
.form-message {
	max-width: 640px;
	margin: 0 auto 24px;
	padding: 16px 20px;
	border-radius: 8px;
	text-align: center;
}
.form-message.success { background: #e8f5e9; border: 1px solid #a5d6a7; }
.form-message.error { background: #fce8e8; border: 1px solid #e8a0a0; }
.form-message p { margin: 0; }

/* Posts fallback (so the site never looks like a bare blog) */
.posts { padding: 32px 0; }
.posts h2 { font-size: 2em; margin: 0 0 16px; text-align: center; }
.post-item { margin: 0 0 24px; }
.post-item h3 { margin: 0 0 4px; font-size: 1.15em; }
.post-item time { color: #666; font-size: 0.9em; }

/* Footer */
.site-footer {
	background: #fff url('assets/footer-treeline-sketch.png') top center / 100% auto no-repeat;
	color: #444;
	margin-top: 32px;
	padding: 25.5vw 0 32px;
	text-align: center;
	font-size: 0.9em;
}
.footer-content { padding: 12px 20px 0; }
.footer-content p { margin: 0 0 8px; }
.footer-content p:last-child { margin: 0; }
.site-footer a { color: #2563eb; }
.site-footer a:hover { color: #1d4ed8; }

/* Scroll to top */
.scroll-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 50;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: #2563eb;
	color: #fff;
	font-size: 1.4em;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, background 0.2s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: #1d4ed8; }

@media (max-width: 640px) {
	.services { grid-template-columns: 1fr; }
	.demo-list { grid-template-columns: 1fr; }
	.package-cards { grid-template-columns: 1fr; }
	.work-cards { grid-template-columns: 1fr; }
	.packages { grid-template-columns: 1fr; }
	.hero h1 { font-size: 1.6em; }
	.page-content h1 { font-size: 1.6em; }

	.hero-art-left { left: 8px; width: 140px; }
	.hero-art-right { right: 8px; width: 140px; }
	.site-header { flex-direction: column; gap: 12px; padding: 20px 16px; }
	.site-header .site-logo { width: 150px; }
	.main-nav ul { justify-content: center; }
	.hero { padding: 190px 0 170px; } }
