/*
Theme Name: Salt Catering
Author: Salt Catering
Description: Custom theme for Salt Catering, Coeur d'Alene, Idaho. High-end, seed-oil-free catering. Edit everything from Appearance → Editor.
Version: 2.2.2
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: salt
*/

/* ---------- Type helpers ---------- */
.salt-eyebrow {
	font-family: var(--wp--preset--font-family--caps);
	font-size: 0.78rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}
.salt-muted { color: var(--wp--preset--color--muted); }
.salt-dark .salt-muted { color: #B9B2A6; }

/* ---------- Dark sections ---------- */
.salt-dark { color: #EDE8DF; }
.salt-dark :where(h1, h2, h3, h4) { color: #F6F2EA; }
.salt-dark a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--gold-soft); }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	color: var(--wp--preset--color--ink);
}
.salt-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #F6F2EA; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { color: var(--wp--preset--color--gold); }

/* ---------- Header ---------- */
.salt-sticky { position: sticky; top: 0; z-index: 30; }
body.admin-bar .salt-sticky { top: 32px; }
@media (max-width: 782px) { body.admin-bar .salt-sticky { top: 0; position: relative; } }
.salt-header { border-bottom: 1px solid rgba(201, 151, 63, 0.35); }
.salt-logo img { display: block; }
.salt-header .salt-logo img { width: 88px; height: 88px; }
@media (max-width: 781px) { .salt-header .salt-logo img { width: 64px; height: 64px; } }
.salt-header .wp-block-navigation a { color: #EDE8DF; }
.salt-header .wp-block-navigation a:hover { color: var(--wp--preset--color--gold-soft); }
.salt-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--ink); color: #EDE8DF; }
.salt-header .wp-block-navigation__responsive-container-open,
.salt-header .wp-block-navigation__responsive-container-close { color: #EDE8DF; }

/* ---------- Photos ---------- */
.salt-photo img { width: 100%; height: auto; object-fit: cover; display: block; }
.salt-hero-photo img { aspect-ratio: 4 / 5; }
.salt-tall img { aspect-ratio: 3 / 4; }
.salt-square img { aspect-ratio: 1 / 1; }
.salt-wide img { aspect-ratio: 16 / 9; }
.salt-team img { aspect-ratio: 3 / 2; }
.wp-block-image.salt-photo { margin-bottom: 0; }
.salt-caption {
	font-family: var(--wp--preset--font-family--caps);
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* ---------- Hero ---------- */
.salt-hero h1 { letter-spacing: -0.01em; }
.salt-hero h1 em { color: var(--wp--preset--color--gold-soft); font-style: italic; }

/* ---------- Promise strip ---------- */
.salt-promises { border-bottom: 1px solid var(--wp--preset--color--line); }
.salt-promises h3 { font-size: 1.6rem; }
.salt-promises p { color: var(--wp--preset--color--muted); }

/* ---------- Menu list ---------- */
.salt-menu-list { list-style: none; padding: 0; margin: 0; counter-reset: course; }
.salt-menu-list li {
	counter-increment: course;
	position: relative;
	padding: 14px 0 14px 3rem;
	border-bottom: 1px solid rgba(221, 180, 106, 0.22);
	font-size: 0.92rem;
	line-height: 1.5;
	color: #B9B2A6;
}
.salt-menu-list li strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: 1.35rem;
	line-height: 1.25;
	color: #F6F2EA;
	margin-bottom: 2px;
}
.salt-menu-list li:last-child { border-bottom: 0; }
.salt-menu-list li::before {
	content: counter(course, upper-roman);
	position: absolute;
	left: 0;
	top: 20px;
	font-family: var(--wp--preset--font-family--caps);
	font-size: 0.85rem;
	color: var(--wp--preset--color--gold);
}

/* ---------- Salt flight ---------- */
.salt-flight-item { border-top: 1px solid var(--wp--preset--color--gold); padding-top: 14px; }
.salt-flight-item h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.salt-flight-item p { color: var(--wp--preset--color--muted); }

/* ---------- Services ---------- */
.salt-services { border-top: 1px solid var(--wp--preset--color--ink); }
.salt-service { border-bottom: 1px solid var(--wp--preset--color--line); }
.salt-service p { color: var(--wp--preset--color--muted); }
.salt-service .salt-meta {
	font-family: var(--wp--preset--font-family--caps);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	line-height: 1.9;
}

/* ---------- Steps ---------- */
.salt-steps { counter-reset: step; }
.salt-step { counter-increment: step; border-top: 1px solid var(--wp--preset--color--line); padding-top: 18px; }
.salt-step::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	font-family: var(--wp--preset--font-family--caps);
	color: var(--wp--preset--color--gold);
	font-size: 0.85rem;
	letter-spacing: 0.2em;
	margin-bottom: 10px;
}
.salt-step h3 { font-size: 1.5rem; }
.salt-step p { color: var(--wp--preset--color--muted); }

/* ---------- Contact ---------- */
.salt-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.salt-contact-list strong {
	display: block;
	font-family: var(--wp--preset--font-family--caps);
	font-weight: 400;
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}
.salt-contact-list a { text-decoration: none; font-size: 1.15rem; word-break: break-word; }

/* ---------- Footer ---------- */
.salt-footer { border-top: 1px solid rgba(201, 151, 63, 0.35); }
.salt-footer .salt-logo img { width: 140px; height: 140px; }
.salt-footer p { color: #B9B2A6; }
.salt-footer a { color: #EDE8DF; text-decoration: none; }
.salt-footer a:hover { color: var(--wp--preset--color--gold-soft); }

/* ---------- Forms (WPForms, Contact Form 7, Jetpack) ---------- */
.wp-site-blocks input[type="text"], .wp-site-blocks input[type="email"], .wp-site-blocks input[type="tel"],
.wp-site-blocks input[type="date"], .wp-site-blocks input[type="number"], .wp-site-blocks select, .wp-site-blocks textarea {
	font: inherit;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	padding: 12px 13px;
	color: var(--wp--preset--color--ink);
}
.wp-site-blocks input:focus, .wp-site-blocks select:focus, .wp-site-blocks textarea:focus {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 1px;
}

:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 781px) {
	.salt-hero-photo img { aspect-ratio: 4 / 3; }
}

/* Sections sit flush against each other */
.wp-site-blocks > * + * { margin-block-start: 0; }
main.wp-block-group > .alignfull { margin-block: 0; }

/* Course photo grid: four across, two across on phones */
.salt-course-grid { gap: 1rem; }
.salt-course-grid .salt-caption { margin-top: 0.6rem; color: #B9B2A6; }
@media (max-width: 781px) {
	.salt-course-grid.wp-block-columns { flex-wrap: wrap !important; }
	.salt-course-grid > .wp-block-column { flex-basis: calc(50% - 0.5rem) !important; flex-grow: 0; }
}

/* Text card standing in for a course photo */
.salt-course-card {
	aspect-ratio: 1 / 1;
	border: 1px solid var(--wp--preset--color--gold);
	padding: 1.25rem;
	text-align: center;
	gap: 0.6rem;
	background: radial-gradient(circle at 50% 40%, rgba(201, 151, 63, 0.10), transparent 70%);
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}
.salt-course-card p { margin: 0; }
.salt-card-num { font-family: var(--wp--preset--font-family--caps); color: var(--wp--preset--color--gold); letter-spacing: 0.24em; font-size: 0.85rem; }
.salt-card-title { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.15; color: #F6F2EA; }
.salt-card-sub { font-size: 0.85rem; color: #B9B2A6; }
@media (max-width: 781px) {
	.salt-course-card { padding: 0.75rem; gap: 0.35rem; }
	.salt-card-title { font-size: 1.15rem; }
	.salt-card-sub { font-size: 0.75rem; }
}

/* Extras that come with the dinner */
.salt-extras { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.salt-extras li { border-top: 1px solid var(--wp--preset--color--gold); padding-top: 12px; font-size: 0.88rem; color: #B9B2A6; }
.salt-extras li strong { display: block; font-family: var(--wp--preset--font-family--display); font-weight: 500; font-size: 1.3rem; color: #F6F2EA; line-height: 1.2; }

/* Large logo at the top of the hero */
.salt-hero-logo img { width: 170px; height: 170px; filter: drop-shadow(0 0 28px rgba(201, 151, 63, 0.25)); }
@media (max-width: 781px) { .salt-hero-logo img { width: 130px; height: 130px; } }

/* Salt Experience */
.salt-salt-columns { border-top: 1px solid var(--wp--preset--color--line); padding-top: var(--wp--preset--spacing--50); }
.salt-mineral-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.salt-mineral-list li { border-top: 1px solid var(--wp--preset--color--gold); padding-top: 12px; color: var(--wp--preset--color--muted); font-size: 0.95rem; }
.salt-mineral-list li strong { display: block; font-family: var(--wp--preset--font-family--display); font-weight: 500; font-size: 1.3rem; color: var(--wp--preset--color--ink); }
.salt-note { font-size: 0.9rem; font-style: italic; }

/* Menu request note */
.salt-menu-cta { border-left: 2px solid var(--wp--preset--color--gold); padding: 4px 0 4px 18px; }
.salt-menu-cta p { color: #F6F2EA; font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.3rem; line-height: 1.35; }

/* ---------- Multi-page (v2) ---------- */
.wp-block-post-content > .alignfull { margin-block: 0; }
.wp-block-post-content > * + * { margin-block-start: 0; }
.salt-title-band h1 { letter-spacing: -0.01em; }
.salt-lede { max-width: 60ch; }
.salt-tagline { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; color: var(--wp--preset--color--gold); }
.salt-explore img { aspect-ratio: 4 / 3; }
.salt-explore + h3 a, h3 a { text-decoration: none; color: inherit; }
.salt-more a { font-family: var(--wp--preset--font-family--caps); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wp--preset--color--gold); text-decoration: none; }
.salt-vip { border-top: 1px solid rgba(201, 151, 63, 0.4); }
.salt-gallery-grid.wp-block-gallery { gap: 12px; }
.salt-gallery-grid img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Tabs stay visible on every screen size */
.salt-header-row { gap: 1.6rem; }
.salt-header-row > .wp-block-navigation { margin-left: auto; }
.salt-header .wp-block-navigation__container { flex-wrap: nowrap; }
@media (max-width: 900px) {
	.salt-header-row { row-gap: 6px; }
	.salt-header-row > .wp-block-navigation { order: 3; width: 100%; margin-left: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
	.salt-header .wp-block-navigation__container { gap: 1.2rem; }
	.salt-header .salt-logo img { width: 56px; height: 56px; }
	.salt-header .wp-element-button { padding: 11px 18px; }
}
@media (max-width: 480px) {
	.salt-header .wp-block-navigation { font-size: 0.68rem; letter-spacing: 0.1em; }
	.salt-header .wp-block-navigation__container { gap: 0.8rem; justify-content: space-between; width: 100%; }
}

/* ---------- Edge-to-edge photos (v2.2) ---------- */
.wp-block-image.salt-bleed { margin: 0 !important; }
.salt-bleed img { display: block; width: 100%; max-width: none; object-fit: cover; }
.salt-hero-banner img { height: clamp(360px, 72vh, 820px); object-position: 50% 48%; }
.salt-kitchen-band img { height: clamp(420px, 88vh, 980px); object-position: 50% 62%; }
@media (max-width: 781px) {
	.salt-hero-banner img { height: auto; aspect-ratio: 3 / 2; object-position: 50% 50%; }
	.salt-kitchen-band img { height: 75vh; object-position: 48% 64%; }
}
.salt-hero-sub {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	line-height: 1.25;
	color: var(--wp--preset--color--gold-soft);
	margin-top: 0.25rem;
}
.salt-hero .wp-block-buttons { margin-top: var(--wp--preset--spacing--30); }

/* Salt, fat, acid, heat */
.salt-element { border-top: 1px solid var(--wp--preset--color--line); padding-top: 16px; }
.salt-element h3 { font-size: 1.7rem; margin-bottom: 0.3rem; }
.salt-element p { color: var(--wp--preset--color--muted); }
.salt-element-salt { border-top: 2px solid var(--wp--preset--color--gold); }
.salt-element-salt h3 { color: var(--wp--preset--color--gold); }
@media (max-width: 781px) {
	.salt-elements.wp-block-columns { flex-wrap: wrap !important; }
	.salt-elements > .wp-block-column { flex-basis: calc(50% - 1rem) !important; flex-grow: 0; }
}
