/* =====================================================================
   French Food Finder — stylesheet (mobile-first, no framework)
   Breakpoints: 640px (large phone/small tablet), 900px (tablet/desktop)
   ===================================================================== */

:root {
  --navy: #002654;          /* deep blue of the French flag */
  --blue: #0055a4;          /* flag blue */
  --blue-dark: #003d7a;
  --blue-soft: #e8f0fb;
  --red: #d62839;           /* flag red, darkened slightly for text contrast */
  --red-dark: #b81f2f;
  --bg: #f5f8fd;
  --surface: #ffffff;
  --text: #0f1b2d;
  --muted: #586a82;
  --border: #dbe4f1;
  --gold: #a16207;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 38, 84, .06), 0 4px 14px rgba(0, 38, 84, .06);
  --shadow-hover: 0 2px 4px rgba(0, 38, 84, .08), 0 10px 24px rgba(0, 38, 84, .12);
  --max-width: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: "Outfit", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, iframe, svg { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-top: 2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #7fb2ff; outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .75rem 1rem; background: var(--surface); color: var(--navy); }
.skip-link:focus { top: .5rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.section { padding: 1.25rem 0; }
.container.section { padding: 1.25rem 1rem; }
.muted { color: var(--muted); font-weight: 400; }

/* ---------- Header ---------- */
.flag-bar {
  height: 4px;
  background: linear-gradient(90deg, #0055a4 0 33.33%, #ffffff 33.33% 66.66%, #ef4135 66.66% 100%);
}
.site-header { background: var(--navy); color: #fff; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .75rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.1rem; min-height: 44px; }
.logo:hover { text-decoration: none; }
.header-nav { display: flex; flex-wrap: wrap; gap: .25rem; margin-left: auto; }
.header-nav a { color: #dbe8ff; padding: 0 .75rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; font-weight: 500; }
.header-nav a:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }


/* search fields (hero and search page) */
input[type="search"] {
  -webkit-appearance: none; appearance: none;
  flex: 1; min-width: 0; min-height: 46px;
  font: inherit; font-size: 1rem;          /* >=16px stops iOS zooming on focus */
  padding: .6rem .9rem; border: 0; border-radius: 10px 0 0 10px;
  background: #fff; color: var(--text);
}
.hero-search button {
  font: inherit; font-weight: 700; min-height: 46px; padding: 0 1.25rem;
  border: 0; border-radius: 0 10px 10px 0; background: var(--red); color: #fff; cursor: pointer;
}
.hero-search button:hover { background: var(--red-dark); }

@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; }
  .logo { order: 1; }
  .header-nav { order: 3; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 2.5rem 0 2.75rem; text-align: center; }
.hero-logo { width: clamp(96px, 14vw, 160px); height: clamp(96px, 14vw, 160px); border-radius: 50%; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 6vw, 2.9rem); font-weight: 800; }
.hero-sub { color: #dbe8ff; max-width: 580px; margin: .5rem auto 1.5rem; font-size: 1.05rem; }
.hero-search { display: flex; max-width: 520px; margin: 0 auto; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); border-radius: 10px; }
.hero-search-inline { display: flex; max-width: 520px; margin: 1rem 0 1.5rem; box-shadow: var(--shadow); border-radius: 10px; }
.hero-search-inline input[type="search"] { border: 1px solid var(--border); border-right: 0; }
.hero-search-inline button { min-height: 46px; padding: 0 1.25rem; border: 0; border-radius: 0 10px 10px 0; background: var(--red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Intro (homepage) ---------- */
.intro { padding-top: 1.75rem; }
.intro-lead { font-size: clamp(1.05rem, 2.6vw, 1.3rem); font-weight: 500; color: var(--navy); max-width: 760px; margin: 0 auto 1.25rem; text-align: center; }
.intro-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.intro-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.intro-card:nth-child(2) { border-top-color: var(--red); }
.intro-card h2 { margin: 0 0 .4rem; font-size: 1.2rem; }
.intro-card p { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .intro-cards { grid-template-columns: 1fr 1fr; } }

/* ---------- Section headings with "view all" link ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { margin-top: 1.25rem; }
.section-head a { font-weight: 500; white-space: nowrap; }

/* ---------- Chips ---------- */
.chip-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .4rem 1rem; font-size: .95rem; font-weight: 500; color: var(--text); box-shadow: var(--shadow);
}
.chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.chip-count { background: var(--blue-soft); color: var(--blue-dark); border-radius: 999px; padding: 0 .5rem; font-size: .78rem; font-weight: 700; }

/* ---------- Business grid / card ---------- */
.business-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; margin-top: 1rem; }
.business-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.business-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.business-card-photo { display: block; aspect-ratio: 8 / 5; background: var(--blue-soft); overflow: hidden; }
.business-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.business-card-photo-placeholder { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 12%; background: var(--blue-soft); }
.business-card-body { padding: .9rem 1rem 1.1rem; }
.business-card-body h3 { margin: 0 0 .35rem; }
.business-card-body h3 a { color: var(--text); }
.business-card-body h3 a:hover { color: var(--blue); }
.business-card-meta { margin: 0 0 .35rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.business-card-location { color: var(--muted); font-size: .9rem; margin: 0; }
.business-card-match { color: var(--blue-dark); font-size: .88rem; margin: .5rem 0 0; }

.tag { display: inline-block; background: var(--blue-soft); color: var(--blue-dark); border-radius: 6px; padding: .15rem .55rem; font-size: .78rem; font-weight: 500; }
a.tag:hover { background: #d6e4f8; text-decoration: none; }
.rating { color: var(--gold); font-weight: 700; font-size: .9rem; }
.rating-large { font-size: 1.15rem; }

/* ---------- Breadcrumb ----------
   Every li is a flex item so the link text, the plain "current page"
   text, and the "›" separators all share one baseline regardless of
   whether a segment is an <a> or a <span> (an inline-block link with
   vertical padding baselines differently from plain inline text,
   which is what caused "Home ›" to sit off from the next segment). */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .35rem; padding: 0; margin: 0 0 1rem; font-size: .875rem; color: var(--muted); line-height: 1; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .35rem; line-height: 1; }
.breadcrumb a { padding: .2rem 0; }

/* ---------- Listing pages ---------- */
.intro-text { color: var(--muted); max-width: 720px; }
.result-count { color: var(--muted); font-size: .9rem; }
.empty-state { color: var(--muted); padding: 2rem 0; }
.related-links { border-top: 1px solid var(--border); margin-top: 1.5rem; }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: .3rem; break-inside: avoid; }
.link-list a { display: inline-block; padding: .3rem 0; }
.link-list-columns { columns: 1; column-gap: 2rem; }
@media (min-width: 640px) { .link-list-columns { columns: 2; } }
@media (min-width: 900px) { .link-list-columns { columns: 3; } }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .4rem; align-items: center; margin: 2rem 0; flex-wrap: wrap; }
.pagination a, .pagination-current, .pagination-ellipsis { min-width: 44px; min-height: 44px; padding: 0 .8rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: .95rem; }
.pagination a { border: 1px solid var(--border); background: var(--surface); }
.pagination a:hover { border-color: var(--blue); text-decoration: none; }
.pagination-current { background: var(--blue); color: #fff; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1rem; border-radius: 10px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; text-align: center; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--surface); color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-soft); }

/* ---------- Business detail ---------- */
.business-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 1rem; }
.business-detail-photo { display: block; width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; max-height: 420px; margin-bottom: 1rem; }
.business-detail-photo-placeholder { object-fit: contain; max-height: 320px; padding: 3rem; background: var(--blue-soft); box-sizing: border-box; }
.business-detail-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0; }
.business-detail-description { margin-top: 1rem; }

.hours-table { border-collapse: collapse; margin-top: .5rem; width: 100%; max-width: 460px; background: var(--surface); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.hours-table th, .hours-table td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--border); font-weight: 400; font-size: .95rem; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-today th, .hours-today td { font-weight: 700; background: var(--blue-soft); }

.business-detail-sidebar { display: grid; gap: 1rem; align-content: start; }
.info-card, .map-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.info-card { padding: 1.25rem; }
.info-row { margin: 0 0 1rem; font-size: .95rem; }
.info-row:last-child { margin-bottom: 0; }
.info-row a { overflow-wrap: anywhere; }

.map-card { overflow: hidden; }
.map-embed { position: relative; aspect-ratio: 4 / 3; background: var(--blue-soft); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: .9rem; }
.map-actions .btn { flex: 1 1 140px; }

@media (min-width: 900px) {
  .business-detail-grid { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 2rem; }
  .business-detail-sidebar { position: sticky; top: 1rem; align-self: start; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d8f0; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; padding-top: 2.25rem; padding-bottom: 1.5rem; }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.footer-about p { font-size: .92rem; margin: 0; }
.footer-about a, .footer-nav a { color: #dbe8ff; }
.footer-about a:hover, .footer-nav a:hover { color: #fff; }
.footer-grid .link-list a { color: #c9d8f0; font-size: .92rem; }
.footer-grid .link-list a:hover { color: #fff; }
.footer-cols { columns: 2; column-gap: 1.25rem; }
.footer-more { margin: .6rem 0 0; font-weight: 500; }
.footer-more a { color: #fff; padding: .3rem 0; display: inline-block; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1rem; padding-bottom: 1rem; font-size: .82rem; color: #9fb3d6; }
.footer-bottom p { margin: 0; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } .footer-about { grid-column: auto; } }

.not-found { text-align: center; padding: 4rem 0; }

.related-links.related-links-chips .chip-grid { margin-top: .5rem; }
.related-links-note { color: var(--muted); font-size: .88rem; margin-top: .5rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.business-card-photo picture { display: block; width: 100%; height: 100%; }
.business-card-photo img.image-fallback, .business-detail-photo.image-fallback { object-fit: contain; background: var(--blue-soft); padding: 1rem; }
.business-detail-photo { aspect-ratio: 8 / 5; height: auto; }
.prose { max-width: 800px; }

/* Outfit v15, SIL OFL 1.1. Served locally; original license in ../fonts/. */
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("/assets/fonts/outfit-latin-ext-v15.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("/assets/fonts/outfit-latin-v15.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
.logo { font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: -.035em; }
.header-nav [aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.header-nav .nav-search { border: 1px solid rgba(255,255,255,.35); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.info-page { padding-top: 2rem !important; padding-bottom: 3rem !important; }
.info-page h1 { font-size: clamp(2.4rem, 7vw, 3.5rem); letter-spacing: -.035em; }
.eyebrow { color: var(--blue); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-top: 1.75rem; }
.page-lead { font-size: 1.15rem; line-height: 1.7; color: var(--muted); }
.policy-date { font-size: .9rem; color: var(--muted); }
.contact-panel { padding: 1.5rem; margin: 2rem 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-panel h2 { margin-top: 0; }
.contact-email { display: inline-block; font-family: var(--font-heading); font-size: clamp(1.25rem, 5vw, 1.8rem); font-weight: 600; margin-bottom: 1rem; overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .header-nav { width: 100%; margin-left: 0; gap: .15rem; }
  .header-nav a { padding: 0 .6rem; font-size: .9rem; }
}
