/*
Theme Name: The Gap Table Demo
Theme URI: https://peakwebcompany.com/
Author: Peak Web Co.
Author URI: https://peakwebcompany.com/
Description: A demo website for a fictional restaurant, built by Peak Web Co. to show the Standard package: a three-page website with a blog.
Version: 1.0.1
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: gap-table-demo
*/

* { 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: #2b2118;
	background: #fdf8f0;
}

a { color: #5b3a1e; }
a:hover { color: #7a4e28; }

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

/* Demo banner */
.demo-banner {
	background: #f5c542;
	color: #1a1a1a;
	text-align: center;
	font-size: 0.9em;
	padding: 10px 16px;
}
.demo-banner a { color: #1a1a1a; font-weight: 700; }

/* Header */
.site-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	max-width: 880px;
	margin: 0 auto;
	padding: 20px;
}
.site-header .site-name {
	font-size: 1.6em;
	font-weight: 800;
	margin: 0;
}
.site-header .site-name a { text-decoration: none; color: #2b2118; }
.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
}
.main-nav a {
	text-decoration: none;
	font-weight: 600;
	color: #2b2118;
}
.main-nav a:hover { text-decoration: underline; }

.call-button {
	display: inline-block;
	background: #5b3a1e;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	padding: 10px 18px;
	border-radius: 6px;
	white-space: nowrap;
}
.call-button:hover { background: #7a4e28; color: #fff; }

/* Hero */
.hero img {
	display: block;
	width: 100%;
	height: 420px;
	object-fit: cover;
}
.hero-text {
	max-width: 880px;
	margin: 0 auto;
	padding: 32px 20px 8px;
	text-align: center;
}
.hero-text h1 { font-size: 2em; line-height: 1.2; margin: 0 0 12px; }
.hero-text p { color: #555; margin: 0 0 16px; }

/* Sections */
.section { padding: 28px 0; }
.section h2 { font-size: 1.4em; margin: 0 0 12px; }
.section p { margin: 0 0 12px; }
.page-content { padding: 32px 0; }
.page-content h1 { font-size: 1.8em; margin: 0 0 16px; }

/* Info boxes */
.info-boxes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 8px 0 0;
}
.info-boxes div {
	border: 1px solid #e0d4c0;
	border-radius: 8px;
	background: #fff;
	padding: 16px 18px;
}
.info-boxes h3 { margin: 0 0 6px; font-size: 1.05em; }
.info-boxes p { margin: 0; color: #555; font-size: 0.95em; }

/* Menu */
.menu-group { margin: 0 0 24px; }
.menu-group h2 { font-size: 1.3em; margin: 0 0 8px; border-bottom: 2px solid #e0d4c0; padding-bottom: 6px; }
.menu-item {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0;
	border-bottom: 1px solid #eee3d3;
}
.menu-item .dish { font-weight: 600; }
.menu-item .dish span { display: block; font-weight: 400; color: #666; font-size: 0.9em; }
.menu-item .price { font-weight: 700; white-space: nowrap; }

/* Gallery */
.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 16px 0 0;
}
.gallery img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

/* Blog */
.blog-post { margin: 0 0 32px; padding-bottom: 24px; border-bottom: 1px solid #eee3d3; }
.blog-post:last-child { border-bottom: 0; }
.blog-post h2 { font-size: 1.3em; margin: 0 0 4px; }
.blog-post h2 a { text-decoration: none; }
.blog-post h2 a:hover { text-decoration: underline; }
.post-date { color: #777; font-size: 0.9em; margin: 0 0 8px; }

/* Map */
.map-wrap iframe { width: 100%; height: 300px; border: 0; border-radius: 8px; }

/* Footer */
.site-footer {
	border-top: 1px solid #e0d4c0;
	margin-top: 32px;
	padding: 24px 20px 32px;
	text-align: center;
	color: #777;
	font-size: 0.9em;
}

@media (max-width: 640px) {
	.info-boxes { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: 1fr; }
	.gallery img { height: 260px; }
	.hero img { height: 260px; }
	.hero-text h1 { font-size: 1.6em; }
}
