/*
Theme Name: Sonic Guide
Theme URI: http://sonic-menu.local/
Author: Sonic Menu
Description: Independent Sonic Drive-In menu guide with a clear price layout, hours, and guides.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Text Domain: sonic-guide
*/

@font-face {
	font-family: Quicksand;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/quicksand-400.ttf") format("truetype");
}
@font-face {
	font-family: Quicksand;
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/quicksand-600.ttf") format("truetype");
}
@font-face {
	font-family: Quicksand;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/quicksand-700.ttf") format("truetype");
}

:root {
	--red: #e40046;
	--red-dark: #c1003b;
	--navy: #10233f;
	--navy-2: #183258;
	--ink: #12151c;
	--muted: #5d6774;
	--line: #e4ebf3;
	--bg: #fbf6f1;
	--paper: #ffffff;
	--shadow: 0 12px 32px rgba(16, 35, 63, 0.08);
	--radius: 20px;
	--max: 1160px;
	--font: Quicksand, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--bg);
	font-size: 17px;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 600; }
.wp-block-button__link { font-weight: 600; }
a:hover { color: var(--red-dark); }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }

.skip-link {
	position: absolute;
	left: 12px;
	top: -40px;
	background: #fff;
	padding: 8px 12px;
	z-index: 100;
}
.skip-link:focus { top: 12px; }

.wrap {
	width: min(var(--max), calc(100% - 40px));
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #161616;
	border-bottom: 0;
}

.header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 76px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	line-height: 1.2;
	background: #fff;
	border-radius: 12px;
	padding: 4px 10px 4px 8px;
}
.brand img {
	height: 52px;
	width: auto;
	display: block;
}
.footer-logo {
	display: inline-block;
	background: #fff;
	border-radius: 14px;
	padding: 8px 10px;
	margin-bottom: 14px;
	line-height: 0;
}
.footer-logo img {
	height: 72px;
	width: auto;
	display: block;
}

.nav-toggle {
	display: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	border-radius: 10px;
	padding: 8px 12px;
	font: inherit;
	font-weight: 700;
	color: #fff;
}

.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a {
	display: block;
	padding: 10px 12px;
	color: #f6f1ec;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 10px;
}
.primary-nav .menu > li > a:hover,
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}
.primary-nav .sub-menu a { color: var(--navy); }
.primary-nav .sub-menu a:hover { background: #fff1f5; color: var(--red); }
.primary-nav .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% - 4px);
	left: 0;
	min-width: 240px;
	max-height: min(70vh, 520px);
	overflow: auto;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow);
	padding: 8px;
	list-style: none;
	z-index: 20;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { font-weight: 600; }

.hero {
	background:
		radial-gradient(900px 320px at 90% -10%, rgba(228, 0, 70, 0.45), transparent 60%),
		linear-gradient(160deg, #10233f 0%, #183258 70%);
	color: #fff;
	padding: 72px 0 56px;
}
.hero .eyebrow {
	display: inline-block;
	background: var(--red);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 6px 10px;
	border-radius: 999px;
	margin-bottom: 16px;
}
.hero p { color: #d7e2ef; max-width: 720px; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; color: #fff; }

.pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}
.pills a {
	color: #fff;
	text-decoration: none;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 999px;
	padding: 7px 12px;
	font-size: 0.86rem;
	font-weight: 700;
}
.pills a:hover { background: #fff; color: var(--navy); }

.section { padding: 64px 0; }
.section-head {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	align-items: flex-end;
	margin-bottom: 22px;
}
.section-head p { margin: 0; color: var(--muted); max-width: 640px; }
.kicker {
	color: var(--red);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.menu-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.menu-card {
	background: var(--paper);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 0 0 16px;
	display: flex;
	flex-direction: column;
	min-height: 180px;
	overflow: hidden;
}
.menu-card img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	background: #eef3f8;
	display: block;
}
.card-body {
	padding: 16px 18px 0;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.menu-card h3 { margin-bottom: 8px; color: var(--ink); }
.menu-card p { color: var(--muted); font-size: 0.95rem; }
.hero-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 28px;
	align-items: center;
}
.hero-photo {
	margin: 0;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.hero-photo img {
	display: block;
	width: 100%;
	height: 360px;
	object-fit: cover;
}
.hero-photo figcaption {
	background: #fff;
	color: var(--navy);
	font-weight: 700;
	padding: 10px 14px;
}
.card-kicker {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 8px;
}
.card-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}
.price { color: var(--navy); font-weight: 700; font-size: 1.2rem; }
.cals { color: var(--muted); font-size: 0.86rem; font-weight: 600; }
:is(.block-page, .editor-styles-wrapper) .wp-block-column.menu-card .cals {
	color: #ffffff !important;
	background: #e40046 !important;
}

.group-label {
	margin: 22px 0 12px;
	font-size: 1.05rem;
}

.note, .callout {
	background: #fff;
	border-left: 4px solid var(--red);
	border-radius: 12px;
	padding: 14px 16px;
	color: var(--muted);
	box-shadow: var(--shadow);
}
.steps, .info-grid, .link-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.step, .info-card, .link-card {
	background: #fff;
	border-radius: var(--radius);
	padding: 20px;
	box-shadow: var(--shadow);
	text-decoration: none;
	color: inherit;
}
.link-card:hover { color: inherit; outline: 2px solid var(--red); }
.link-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 14px; margin-bottom: 10px; display: block; }
.link-card span { color: var(--red); font-weight: 700; font-size: 0.85rem; }
.step strong { display: block; color: var(--red); margin-bottom: 6px; }

.table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.faq details {
	background: #fff;
	border-radius: 14px;
	padding: 14px 16px;
	margin-bottom: 10px;
	box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.page-hero {
	background: var(--navy);
	color: #fff;
	padding: 48px 0 36px;
}
.page-hero p { color: #d7e2ef; max-width: 740px; margin-bottom: 0; }
.crumbs { font-size: 0.86rem; margin-bottom: 12px; color: #b7c6d8; }
.crumbs a { color: #fff; }

.entry { padding: 42px 0 72px; }
.entry h2 { margin-top: 1.6rem; }
.entry ul, .entry ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.entry li { margin: 0.3rem 0; }

.post-list { display: grid; gap: 14px; }
.post-card {
	display: block;
	background: #fff;
	border-radius: 16px;
	padding: 20px;
	box-shadow: var(--shadow);
	text-decoration: none;
	color: inherit;
}
.post-card:hover { color: inherit; outline: 2px solid var(--red); }
.post-card time { color: var(--muted); font-size: 0.85rem; font-weight: 700; }

.contact-form {
	display: grid;
	gap: 12px;
	max-width: 640px;
	background: #fff;
	padding: 22px;
	border-radius: 18px;
	box-shadow: var(--shadow);
}
.contact-form label { font-weight: 700; color: var(--navy); }
.contact-form input,
.contact-form textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px;
	font: inherit;
}
.hp { position: absolute; left: -9999px; }

.kicker { letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; font-size: 0.78rem; color: var(--red); }
/* Page design lives in the WPCode snippet "Sonic menu design". */

.site-footer {
	background: #161616;
	color: #d9d0c8;
	padding: 64px 0 28px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 28px;
}
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffd0dc; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.legal {
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid rgba(255,255,255,.12);
	font-size: 0.86rem;
	color: #b7c4d4;
}

.author-card {
	display: flex;
	align-items: center;
	gap: 18px;
	width: min(1160px, calc(100% - 40px));
	margin: 8px auto 56px;
	padding: 22px;
	background: #fff;
	border: 1px solid #eadfd4;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(40, 24, 16, 0.05);
}
.author-card img {
	width: 84px !important;
	height: 84px !important;
	flex: 0 0 auto;
	border-radius: 50% !important;
	object-fit: cover !important;
	background: #f6f1eb;
}
.author-kicker {
	margin: 0 0 2px;
	color: var(--red);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.author-name {
	margin: 0 0 6px;
	font-size: 1.25rem;
	font-weight: 700;
}
.author-name a { color: var(--ink); text-decoration: none; }
.author-name a:hover { color: var(--red); }
.author-card p { margin: 0 0 8px; }
.author-links { margin: 0; font-weight: 700; }
.author-page { padding-top: 36px; }
.hero-split.wp-block-columns {
	align-items: stretch;
	gap: 40px;
	max-width: 1160px !important;
	width: min(1160px, 100%) !important;
	margin: 0 auto !important;
}
.hero-split > .hero-copy { flex-basis: 56% !important; }
.hero-split > .hero-photo {
	display: flex;
	flex-basis: 42% !important;
}
.hero-split .hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0px;
	background: #eadccb;
}
figure.wp-block-image.size-full.hero-shot {
	margin: 0px;
	height: 100%;
}
.wp-block-rank-math-toc-block {
	background: #fff;
	border: 1px solid #eadfd4;
	border-radius: 16px;
	padding: 0;
	margin: 22px 0 0;
	max-width: 1160px;
	overflow: hidden;
}
.block-page > .wp-block-rank-math-toc-block {
	width: min(1160px, calc(100% - 40px));
	margin: 0 auto 28px;
}
.wp-block-rank-math-toc-block summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}
.wp-block-rank-math-toc-block summary::-webkit-details-marker { display: none; }
.wp-block-rank-math-toc-block summary::marker { content: ""; }
.wp-block-rank-math-toc-block .toc-angle {
	width: 9px;
	height: 9px;
	border-right: 2px solid #1c1917;
	border-bottom: 2px solid #1c1917;
	transform: rotate(45deg);
	margin-top: -4px;
	flex: none;
	transition: transform 0.18s ease;
}
.wp-block-rank-math-toc-block details[open] .toc-angle {
	transform: rotate(-135deg);
	margin-top: 2px;
}
.wp-block-rank-math-toc-block nav {
	padding: 0 18px 14px;
}
.wp-block-rank-math-toc-block ul {
	margin: 0;
	padding-left: 1.15rem;
}
.wp-block-rank-math-toc-block li { margin: 0.28rem 0; }
.wp-block-rank-math-toc-block a { font-weight: 600; }
.menu-board { padding-top: 28px !important; }
.tools-cta .wp-block-heading {
	max-width: 860px;
	font-size: clamp(1.45rem, 2.6vw, 2rem);
}
.author-posts-title {
	width: min(1160px, calc(100% - 40px));
	margin: 0 auto 8px;
}
.author-posts {
	width: min(1160px, calc(100% - 40px));
	margin: 0 auto 64px;
	padding: 0;
	list-style: none;
}
.author-posts li { margin: 10px 0; }
.author-posts a {
	display: block;
	background: #fff;
	border-radius: 14px;
	padding: 16px 18px;
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}
.author-posts a:hover { color: var(--red); }


@media (max-width: 900px) {
	.menu-grid, .steps, .info-grid, .link-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
	.section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-split.wp-block-columns { flex-wrap: wrap !important; }
	.hero-split > .wp-block-column { flex-basis: 100% !important; }
	.hero-photo img,
	.hero-split .hero-photo img { height: 240px; }
	.brand img { height: 44px; }
	.nav-toggle { display: inline-flex; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
	.primary-nav .menu a,
	.primary-nav .sub-menu a { color: var(--navy); }
	.primary-nav.is-open { display: block; }
	.primary-nav .menu, .primary-nav .sub-menu { display: block; position: static; box-shadow: none; border: 0; min-width: 0; max-height: none; overflow: visible; padding-left: 8px; }
	.menu-grid, .steps, .info-grid, .link-grid, .footer-grid { grid-template-columns: 1fr; }
	.author-card { flex-direction: column; align-items: flex-start; width: min(1160px, calc(100% - 28px)); }
	.wrap { width: min(var(--max), calc(100% - 28px)); }
}
