/*
Theme Name: New Delhi Food Junction
Theme URI: https://newdelhifoodjunction.nz/
Author: Naveen
Description: Lightweight, builder-free theme for New Delhi Food Junction. Red, yellow and white design with built-in Restaurant schema. Content is edited in Appearance → Customize → Restaurant.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ndfj
*/

:root {
	--red: #B3122A;
	--red-dark: #8A0D20;
	--yellow: #FFC93C;
	--ink: #2A1A12;
	--body: #5C4636;
	--muted: #7A6252;
	--cream: #FFF8EC;
	--line: #F1E6D4;
	--line-2: #EADBC3;
	--white: #FFFFFF;
	--serif: 'DM Serif Display', Georgia, serif;
	--sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--radius: 28px;
	--wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--white); padding: 12px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 26px; border-radius: 999px;
	font-weight: 700; font-size: 16px; text-decoration: none;
	border: 2px solid transparent; transition: background .15s, color .15s, transform .15s;
	min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #FFD966; color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

.eyebrow { font-size: 13px; color: var(--red); text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.section-title { font-size: clamp(36px, 4vw, 56px); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 46px; height: 46px; border-radius: 999px; background: var(--red); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 22px; color: var(--red); }
.brand-sub { font-size: 12px; color: #6B5444; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.brand .custom-logo { max-height: 52px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 14px; font-weight: 600; font-size: 15px; display: inline-block; }
.main-nav a:not(.btn):hover { color: var(--red); }
.main-nav .btn { padding: 11px 22px; font-size: 15px; min-height: 44px; }

/* Hero */
.hero { background: var(--cream); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.badge svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(46px, 6vw, 84px); line-height: 1.02; letter-spacing: -.01em; }
.hero h1 em { color: var(--red); }
.hero-lead { max-width: 520px; color: var(--body); font-size: 19px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 32px; border-top: 1px solid var(--line-2); }
.fact { display: flex; flex-direction: column; padding-top: 16px; }
.fact-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.fact-value { font-weight: 700; }
.hero-media { flex: 1 1 420px; min-width: 0; height: 560px; border-radius: var(--radius); border: 6px solid var(--white); box-shadow: 0 0 0 2px var(--yellow); overflow: hidden; }
.hero-media img, .story-media img, .dish-media img { width: 100%; height: 100%; object-fit: cover; }

.placeholder { background: repeating-linear-gradient(135deg, #FCEBC8 0 14px, #F9E2B4 14px 28px); display: flex; align-items: flex-end; padding: 24px; }
.placeholder span { background: var(--white); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--body); }

/* Strip */
.strip { background: var(--red); color: var(--white); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 16px 40px; padding-top: 22px; padding-bottom: 22px; font-family: var(--serif); font-size: 22px; }
.strip .star { color: var(--yellow); }

/* Story */
.story .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 112px; padding-bottom: 112px; }
.story-media { flex: 1 1 420px; min-width: 0; height: 460px; border-radius: var(--radius); overflow: hidden; }
.story-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.story-copy .text { color: var(--body); }
.story-copy .text p + p { margin-top: 1em; }
.text-link { align-self: flex-start; font-weight: 700; padding: 10px 0; }

/* Favourites */
.favourites { background: var(--yellow); }
.favourites .wrap { display: flex; flex-direction: column; gap: 48px; padding-top: 112px; padding-bottom: 112px; }
.favourites .eyebrow { color: var(--ink); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.dish-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.dish { background: var(--white); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.dish-media { height: 220px; }
.dish-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.dish-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dish h3 { font-size: 26px; }
.dish-price { color: var(--red); font-weight: 700; white-space: nowrap; }
.dish p { color: var(--body); font-size: 15px; }

/* Visit */
.visit .wrap { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 112px; padding-bottom: 112px; }
.visit-info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.visit-info > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.info-card { background: var(--cream); border-top: 4px solid var(--red); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; font-style: normal; }
.info-card.alt { border-top-color: var(--yellow); }
.info-card strong, .info-card a { font-weight: 700; }
.info-card a { text-decoration: none; }
.info-card .sub { color: var(--body); }
.map { flex: 1 1 420px; min-width: 0; min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line-2); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--red); color: var(--white); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 40px; font-size: 15px; }
.footer-name { font-family: var(--serif); font-size: 20px; }
.footer-name small { font-family: var(--sans); font-size: 14px; opacity: .9; }
.footer-actions { display: flex; gap: 12px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--white); display: flex; align-items: center; justify-content: center; color: var(--white); }
.icon-btn:hover { background: var(--white); color: var(--red); }
.icon-btn svg { width: 18px; height: 18px; }

/* Generic pages */
.page-content { padding-top: 72px; padding-bottom: 96px; max-width: 820px; }
.page-content h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 24px; }
.page-content .entry > * + * { margin-top: 1em; }

@media (max-width: 640px) {
	.hero .wrap { padding-top: 40px; padding-bottom: 56px; gap: 36px; }
	.hero-media { height: 340px; }
	.story-media { height: 300px; }
	.story .wrap, .favourites .wrap, .visit .wrap { padding-top: 72px; padding-bottom: 72px; }
	.strip .star { display: none; }
	.strip .wrap { font-size: 19px; }
	.main-nav { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn, .btn:hover { transition: none; transform: none; }
}
