/* ==========================================================================
   Adam's Sandwich Shop: site styles on top of the Solid Ground Starter parent theme.
   Black and white like the logo and the menu board, sandwich sketches behind some sections,
   the checkered deli paper from the food photos, Viga headings and Poppins text.
   ========================================================================== */

@font-face { font-family: "Viga"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/viga-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
	--ink: #111;
	--ink-2: #1c1c1c;
	--ink-3: #2a2a2a;
	--steel: #4a4a4a;
	--steel-light: #b5b5b5;
	--line: #dedede;
	--paper: #f4f4f2;
	--accent: #111;
	--accent-strong: #333;
	--accent-text: #111;
	--accent-soft: #f0f0f0;
	--on-accent: #fff;
	--open: #2ea043;
	--font-head: "Viga", "Arial Black", Arial, sans-serif;
	--font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--radius: 12px;
	--radius-lg: 18px;
	--header-h: 96px;
}

html, body { overflow-x: clip; }
body { font-size: 16.5px; }
h1, h2, h3, h4 { font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
a { text-decoration-color: currentColor; }
a:hover { color: #000; }
:focus-visible { outline-color: #111; }

/* Buttons: rounded pills, black and white */
.btn { border-radius: 999px; font-weight: 600; padding: 15px 26px; }
.btn--accent:hover { background: #333; color: #fff; }
.btn--outline { border-color: #111; color: #111; background: #fff; }
.btn--outline:hover { background: #111; color: #fff; }
.asm-btn-white { background: #fff; color: #111; border-color: #fff; }
.asm-btn-white:hover { background: #ececec; color: #111; }
.asm-btn-line { background: transparent; color: #fff; border-color: #fff; }
.asm-btn-line:hover { background: #fff; color: #111; }
.eyebrow { color: #111; }
.eyebrow::before { background: #111; }

.section-title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; margin-bottom: .35em; }

/* Sandwich sketches and checkered paper */
.asm-sketch { background: #fff url("../img/sketch-tile.png") repeat; background-size: 560px; }
.asm-on-paper { background: #fff; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .15em; }
.asm-checker { height: 26px; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 26px 26px; }

/* ---------- Notice bar ---------- */
.asm-bar { background: #111; color: #fff; font-size: 14.5px; }
.asm-bar__list { list-style: none; margin: 0 auto; padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; text-align: center; }
.asm-bar__item--holiday::before { content: "Hours update"; display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 1px solid #fff; border-radius: 999px; padding: 1px 9px; margin-right: 10px; vertical-align: 1px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 2px solid #111; }
.brand__logo { height: 74px; }
.main-nav .menu a { font-weight: 600; font-size: 15.5px; white-space: nowrap; padding: 10px 12px; }
.main-nav .menu > li > a:hover { background: #f1f1f1; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current_page_parent > a { box-shadow: inset 0 -3px 0 #111; }
.site-header__actions { gap: 16px; }
.asm-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.asm-hours__dot { width: 10px; height: 10px; border-radius: 50%; background: #9a9a9a; display: inline-block; flex: none; }
.is-open .asm-hours__dot { background: var(--open); box-shadow: 0 0 0 3px rgba(46,160,67,.2); }
.is-closed .asm-hours__dot { background: #c9382c; }
.asm-call { padding: 13px 22px; }
@media (max-width: 1240px) { .asm-status { display: none; } }
@media (max-width: 1023px) {
	:root { --header-h: 76px; }
	.brand__logo { height: 56px; }
	.asm-call { display: none; }
	.main-nav { background: #111; }
	.main-nav__cta { background: #fff; color: #111; }
	.main-nav .menu > li > a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: #fff; text-decoration: underline; }
	.nav-toggle { background: #111; border-radius: 999px; }
}

/* ---------- Homepage hero ---------- */
.asm-hero { position: relative; overflow: hidden; background: #111; color: #fff; border-bottom: 2px solid #111; }
.asm-hero__bg { position: absolute; inset: -30px; background-size: cover; background-position: 30% center; filter: blur(7px) saturate(1.1); transform: scale(1.04); }
.asm-hero::after, .asm-page-hero::after { content: ""; position: absolute; inset: 0; height: auto; background: rgba(0,0,0,var(--asm-dark, .55)); }
.asm-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 96px); }
.asm-hero__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.asm-hero__award { height: clamp(92px, 9vw, 120px); width: auto; max-width: 100%; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.asm-hero__eyebrow { font-family: var(--font-head); font-size: clamp(20px, 2vw, 26px); text-transform: uppercase; line-height: 1.15; margin: 0; }
.asm-hero__title { color: #fff; font-size: clamp(54px, 7vw, 100px); line-height: .98; margin: 0; }
.asm-hero__line { font-size: 19px; font-weight: 600; margin: 0; }
.asm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.asm-hero__media { position: relative; padding-bottom: 100px; }
.asm-hero__photo { border: 3px solid #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); aspect-ratio: 16 / 11; background: #222; }
.asm-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 55%; }

/* Hours box (glass over the hero photo) */
.asm-hours { margin: 0; }
.asm-hours p { margin: 0; }
.asm-hours--glass {
	position: absolute; left: -32px; bottom: 0; width: min(310px, calc(100% - 16px));
	color: #fff; background: rgba(10,10,10,.5); -webkit-backdrop-filter: blur(14px) brightness(.65); backdrop-filter: blur(14px) brightness(.65);
	border: 1px solid rgba(255,255,255,.3); border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.4);
	padding: 16px 20px; display: flex; flex-direction: column; gap: 5px;
}
.asm-hours__status { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.asm-hours__today { font-family: var(--font-head); font-size: 23px; line-height: 1.1; text-transform: uppercase; }
.asm-hours__week { font-size: 13.5px; opacity: .9; }
.asm-hours__notices { list-style: none; margin: 6px 0 0; padding: 8px 0 0; border-top: 1px solid rgba(255,255,255,.3); font-size: 13.5px; line-height: 1.4; display: grid; gap: 4px; }
.asm-hours__notice--holiday { font-weight: 600; }

@media (max-width: 900px) {
	.asm-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.asm-hero__media { padding-bottom: 0; }
	.asm-hours--glass { position: relative; left: auto; bottom: auto; width: auto; margin: -36px 14px 0; }
}

/* ---------- Photo grids ---------- */
.asm-photos { padding: 24px 0; }
.asm-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 14px; }
.asm-bento__item { display: block; overflow: hidden; border-radius: 14px; background: #eee; }
.asm-bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
a.asm-bento__item:hover img { transform: scale(1.04); }
.asm-bento__item--tall { grid-row: span 2; }
.asm-bento__item--big { grid-row: span 2; grid-column: span 2; }
@media (max-width: 760px) {
	.asm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 10px; }
}

/* ---------- Menu ---------- */
.asm-menu-section { padding-top: clamp(56px, 7vw, 88px); }
.asm-menu-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 26px; }
.asm-menu-section__head .section-title { margin: 0; }
.asm-menu-section__head p { margin: 0; max-width: 470px; color: var(--steel); }
.asm-menu-section--page { padding-top: clamp(40px, 5vw, 64px); }
.asm-menu__lead { color: var(--steel); max-width: 720px; }
.asm-menu__tabs { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 22px; border-bottom: 2px solid #111; margin-bottom: 30px; }
.asm-menu__tab { min-height: 44px; padding: 0 18px; border: 2px solid #111; border-radius: 999px; background: #fff; color: #111; font: 600 14.5px var(--font-body); cursor: pointer; }
.asm-menu__tab:hover { background: #f1f1f1; }
.asm-menu__tab[aria-selected="true"] { background: #111; color: #fff; }
.asm-menu__panel { margin-bottom: 48px; }
.asm-menu.is-tabbed .asm-menu__panel { margin-bottom: 0; }
.asm-menu__banner { position: relative; border: 3px solid #111; border-radius: 20px; overflow: hidden; height: clamp(200px, 24vw, 300px); margin-bottom: 26px; }
.asm-menu__banner img { width: 100%; height: 100%; object-fit: cover; }
.asm-menu__banner-text { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.asm-menu__banner .asm-menu__cat { background: #fff; border: 2px solid #111; border-radius: 10px; padding: 8px 16px; margin: 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1; }
.asm-menu__note { margin: 0; background: #111; color: #fff; padding: 5px 12px; border-radius: 6px; font-weight: 600; font-size: 14.5px; }
.asm-menu__head { margin-bottom: 20px; }
.asm-menu__head .asm-menu__cat { font-size: clamp(28px, 3.2vw, 38px); margin: 0 0 4px; }
.asm-menu__note--plain { background: none; color: var(--steel); padding: 0; font-weight: 500; }
.asm-menu__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.asm-item { border: 2px solid #111; border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.asm-item__photo { border-bottom: 2px solid #111; aspect-ratio: 3 / 2; background: #f4f4f2; }
.asm-item__photo img { width: 100%; height: 100%; object-fit: cover; }
.asm-menu--favorites .asm-item__photo { aspect-ratio: 1; }
.asm-menu--favorites .asm-item__photo img { object-fit: contain; padding: 12px; }
.asm-item__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.asm-item__name { font-size: 20px; line-height: 1.15; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.asm-item__desc { margin: 0; font-size: 14.5px; line-height: 1.5; color: #333; }
.asm-item__prices { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.asm-price { display: inline-flex; align-items: baseline; gap: 6px; border: 1.5px solid #111; border-radius: 6px; padding: 3px 10px; font-weight: 700; font-size: 14px; }
.asm-price small { font-weight: 500; color: #555; font-size: 12.5px; }
.asm-badge { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #111; color: #fff; border-radius: 999px; padding: 2px 9px; }
.asm-badge--out { background: #c9382c; }
.asm-item.is-soldout .asm-item__photo, .asm-item.is-soldout .asm-item__prices { opacity: .45; }
.asm-menu__addons { margin: 28px 0 0; padding-top: 16px; border-top: 2px dashed #111; font-size: 15px; }
.asm-menu__call { margin: 14px 0 0; font-weight: 600; }
.asm-menu__empty { padding: 24px; border: 2px dashed #bbb; border-radius: 12px; }
.entry-content .asm-menu { max-width: none; margin: 1.5em 0; }
.entry-content .asm-menu h3, .entry-content .asm-menu h4 { margin-top: 0; }

/* ---------- Desserts ---------- */
.asm-split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 26px; }
.asm-split-head .section-title { margin: 0; }
.asm-split-head p { margin: 0; max-width: 480px; color: var(--steel); }
.asm-treats { border-top: 2px solid #111; }
.asm-treats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.asm-treats__item { border: 2px solid #111; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.asm-treats__item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Catering band ---------- */
.asm-catering { background: #111; color: #e8e8e8; }
.asm-catering .section-title { color: #fff; }
.asm-catering__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); align-items: center; }
.asm-catering__lead { font-size: 18px; max-width: 560px; }
.asm-catering__prices { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; max-width: 620px; }
.asm-catering__prices li { border: 2px solid #fff; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; font-size: 15px; }
.asm-catering__prices strong { font-family: var(--font-head); font-weight: 400; font-size: 28px; color: #fff; }
.asm-catering__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 180px 180px; gap: 12px; }
.asm-catering__photos > div { border: 2px solid #fff; border-radius: 14px; overflow: hidden; }
.asm-catering__photos img { width: 100%; height: 100%; object-fit: cover; }
.asm-catering__big { grid-row: span 2; }
.asm-catering__photos--one { grid-template-columns: 1fr; }
@media (max-width: 900px) { .asm-catering__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- House favorites ---------- */
.asm-favs { border-bottom: 2px solid #111; }
.asm-favs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: center; }
.asm-favs__text p { color: var(--steel); }
.asm-favs__jar { background: #f4f4f2; border-radius: 16px; height: 320px; display: grid; place-items: center; padding: 18px; }
.asm-favs__jar img { max-height: 100%; width: auto; object-fit: contain; }
.asm-favs__shop { border-radius: 16px; overflow: hidden; height: 320px; }
.asm-favs__shop img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .asm-favs__grid { grid-template-columns: 1fr 1fr; } .asm-favs__text { grid-column: 1 / -1; } }

/* ---------- Reviews ---------- */
.asm-reviews { border-top: 2px solid #111; }
.asm-reviews .section-title { margin-bottom: 28px; }
.sg-stars__fg { color: #111; }
.asm-reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.asm-review { margin: 0; background: #fff; border: 2px solid #111; border-radius: 14px; padding: 24px; box-shadow: 5px 5px 0 #111; display: flex; flex-direction: column; gap: 12px; }
.asm-review blockquote { margin: 0; }
.asm-review blockquote p { margin: 0; font-size: 16px; line-height: 1.55; }
.asm-review figcaption { font-weight: 700; }
.asm-review .sg-stars, .asm-review .sg-stars__fg { color: #111; }
.asm-reviews__more { margin: 28px 0 0; text-align: center; }

/* ---------- Inner page title band ---------- */
.asm-page-hero { position: relative; overflow: hidden; background: #111; }
.asm-page-hero::before { display: none; }
.asm-page-hero .container { position: relative; z-index: 1; }
.asm-page-hero .asm-hero__bg { filter: blur(6px); background-position: center; }
.page-hero { border-bottom: 2px solid #111; }
.page-hero__title { color: #fff; }
.page-hero__text { color: #e8e8e8; }
.crumbs, .crumbs a { color: #ddd; }

/* ---------- Content ---------- */
.entry-content h2, .entry-content h3 { text-transform: uppercase; }
.entry-content p, .entry-content li { color: #2f2f2f; }
.entry-content a { text-decoration-color: #111; }
.entry-content img { border-radius: 14px; }
.entry-content blockquote, .entry-content .wp-block-quote { border-left-color: #111; }
.entry-content .wp-block-separator { background: #111; }
.entry-content .wp-block-button__link { background: #111; color: #fff; border-radius: 999px; }

/* Catering band with the form (inner pages) */
.estimate { background: #111; }
.estimate::before { background: url("../img/sketch-tile.png") repeat; background-size: 560px; opacity: .06; filter: invert(1); }
.estimate .eyebrow, .estimate .eyebrow--light { color: #fff; }
.estimate .eyebrow::before { background: #fff; }
.estimate__phone-icon { background: #fff; color: #111; }
.estimate__phone:hover { color: #fff; }
.checklist .sg-icon { background: #fff; color: #111; }
.estimate-form input:focus, .estimate-form select:focus, .estimate-form textarea:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(0,0,0,.12); }
.estimate-form .btn { border-radius: 999px; }
.form-card h2 { text-transform: uppercase; }

/* Contact page */
.contact-cards__icon { background: #111; color: #fff; }
.contact-cards li { align-items: flex-start; }
.asm-hours-table { border-collapse: collapse; font-size: 15.5px; width: 100%; max-width: 360px; }
.asm-hours-table th, .asm-hours-table td { text-align: left; padding: 3px 0; font-weight: 500; vertical-align: top; }
.asm-hours-table td { text-align: right; font-weight: 600; padding-left: 14px; white-space: nowrap; }
.asm-hours-table__special th, .asm-hours-table__special td { font-weight: 700; }
.contact-cards .asm-hours-table { margin-top: 4px; }
.map-wrap iframe { filter: grayscale(1); }

/* Thank-you page */
.thanks__icon { background: #111; color: #fff; }

/* ---------- Footer ---------- */
.asm-footer { background: #111; color: #cfcfcf; }
.asm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; padding-bottom: 56px; }
.asm-footer .site-footer__logo { height: 92px; }
.asm-footer__about p { max-width: 380px; }
.asm-footer__social { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.asm-footer .asm-hours-table { color: #e4e4e4; font-size: 15px; }
.site-footer__contact .sg-icon { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 960px) { .asm-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .asm-footer__grid { grid-template-columns: 1fr; } }

/* Phone bar: Call and Menu */
.mobile-bar__quote { background: #fff; color: #111; border-top: 2px solid #111; }
.mobile-bar__quote:hover { color: #111; }

@media (prefers-reduced-motion: reduce) {
	.asm-bento__item img { transition: none; }
}

/* Phone menu: hidden until opened (keeps the page from scrolling sideways) */
@media (max-width: 1023px) {
	.main-nav { display: none; transform: none; transition: none; }
	.nav-open .main-nav { display: flex; }
}

/* Phones: every category tab visible (wrapped, smaller), photos as thumbnails beside the text */
@media (max-width: 700px) {
	.asm-menu__tabs { gap: 7px; padding-bottom: 16px; margin-bottom: 20px; }
	.asm-menu__tab { min-height: 38px; padding: 0 13px; font-size: 13px; border-width: 1.5px; }
	.asm-menu__banner { height: 150px; border-width: 2px; border-radius: 14px; margin-bottom: 16px; }
	.asm-menu__banner-text { left: 12px; right: 12px; bottom: 12px; }
	.asm-menu__banner .asm-menu__cat { font-size: 24px; padding: 6px 12px; }
	.asm-menu__note { font-size: 13px; }
	.asm-menu__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.asm-item { flex-direction: row; border-width: 1.5px; border-radius: 12px; }
	.asm-item__photo { flex: none; width: 104px; aspect-ratio: auto; border-bottom: 0; border-right: 1.5px solid #111; }
	.asm-menu--favorites .asm-item__photo { aspect-ratio: auto; }
	.asm-item__body { padding: 12px 14px 14px; gap: 6px; min-width: 0; }
	.asm-item__name { font-size: 17px; }
	.asm-item__desc { font-size: 13.5px; }
	.asm-price { font-size: 13px; padding: 2px 8px; }
	.asm-menu-section__head { margin-bottom: 18px; }
}
.asm-menu--catering .asm-menu__grid { align-items: start; }

/* Inner page title band: darker, less blur, so the title reads clearly */
.asm-page-hero::after { background: rgba(0,0,0,.7); }
.asm-page-hero .asm-hero__bg { filter: blur(2.5px); transform: scale(1.02); inset: -10px; }
.asm-page-hero .page-hero__title, .asm-page-hero .page-hero__text, .asm-page-hero .crumbs { text-shadow: 0 2px 14px rgba(0,0,0,.55); }

/* Award graphics are shown whole, never cropped */
.entry-content img[src*="best-sub-shop"], .entry-content img[src*="thank-you-voters"] { aspect-ratio: auto !important; object-fit: contain !important; height: auto !important; min-height: 0 !important; }

/* Category banner when the category has no photo: the menu board's sandwich sketches */
.asm-menu__banner--sketch { background: #fff url("../img/sketch-tile.png") repeat center; background-size: 520px; }
.asm-menu__banner--sketch .asm-menu__banner-text { top: 50%; bottom: auto; transform: translateY(-50%); align-items: center; text-align: center; }
