/* Codeon Restaurant V2 — front-page sections. */

/* ============ MARQUEE ============ */
.marquee {
	background: var(--brand);
	color: #fff;
	overflow: hidden;
	padding: 18px 0;
	border-top: 1px solid rgba(255,255,255,0.1);
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.marquee-track {
	display: flex; gap: 56px;
	white-space: nowrap;
	animation: marquee 36s linear infinite;
	width: max-content;
}
.marquee-item {
	font-family: var(--font-display);
	font-size: 28px; font-style: italic;
	display: inline-flex; align-items: center; gap: 56px;
}
.marquee-item::after {
	content: '✦'; color: #e7c98a;
	font-size: 16px; font-style: normal;
}
@keyframes marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.marquee-track { animation: none; }
}

/* ============ FAIT MAISON ============ */
.fait-maison { padding: 140px 0 120px; background: var(--paper); position: relative; }
.fait-inner  { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 100px; align-items: center; }
.fait-text .eyebrow { color: var(--brand-text); margin-bottom: 28px; display: inline-flex; align-items: center; gap: 12px; }
.fait-text .eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--brand); }
.fait-text h2 { font-size: clamp(40px, 5vw, 72px); margin: 0 0 28px; color: var(--heading); font-family: var(--font-display); font-weight: 500; line-height: 1.02; }
.fait-text h2 em { font-style: italic; color: var(--accent-text); }
.fait-text p { font-size: 18px; line-height: 1.7; color: var(--ink-soft); max-width: 540px; margin: 0 0 24px; }
.fait-text .stats { display: flex; gap: 48px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.fait-stat .n { font-family: var(--font-display); font-size: 48px; line-height: 1; color: var(--brand-text); font-weight: 500; }
.fait-stat .l { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.fait-visual { position: relative; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; background: var(--brand-ink); }
.fait-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ============ SERVICES ============ */
.services { background: var(--brand-ink); color: #fff; padding: 120px 0; }
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 72px; }
.services-head .eyebrow { color: var(--on-brand-accent); }
.services-head h2 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); margin: 16px 0 0; color: #fff; font-weight: 500; line-height: 1.02; }
.services-head h2 em { font-style: italic; color: #e7c98a; }
.services-head p { color: rgba(255,255,255,0.75); font-size: 17px; line-height: 1.65; max-width: 460px; margin: 0; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 14px;
	padding: 36px 28px;
	transition: all 250ms ease;
}
.service-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); border-color: rgba(231,201,138,0.4); }
.service-card .num { font-family: var(--font-display); font-size: 14px; color: var(--on-brand-accent); font-style: italic; margin-bottom: 64px; }
.service-card .ico {
	width: 56px; height: 56px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: rgba(231,201,138,0.12);
	margin-bottom: 24px;
	color: #e7c98a;
}
.service-card h3 { font-family: var(--font-display); font-size: 24px; margin: 0 0 12px; font-weight: 500; color: #fff; }
.service-card p  { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.7); margin: 0; }

/* ============ STORY ============ */
.story { padding: 140px 0; background: var(--paper); }
.story-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.story-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; gap: 16px; }
.story-gallery img, .story-gallery .img-placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.story-gallery .tall, .story-gallery img.tall, .story-gallery .img-placeholder.tall { grid-row: span 2; height: 456px; }
.story-text .eyebrow { color: var(--brand-text); }
.story-text h2 { font-family: var(--font-display); font-size: clamp(38px, 5vw, 64px); margin: 20px 0 28px; color: var(--heading); font-weight: 500; line-height: 1.02; }
.story-text h2 em { font-style: italic; color: var(--accent-text); }
.story-text p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 18px; }
.story-sig { display: flex; gap: 20px; align-items: center; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.story-sig .name { font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--heading); }
.story-sig .role { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ============ GALLERY ============ */
.gallery { padding: 120px 0; background: var(--brand); color: #fff; }
.gallery-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 56px; gap: 40px; }
.gallery-head .eyebrow { color: var(--on-brand-accent-soft); }
.gallery-head h2 { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 56px); margin: 14px 0 0; color: #fff; font-weight: 500; line-height: 1.02; }
.gallery-head h2 em { font-style: italic; color: #e7c98a; }
.gallery-grid {
	display: grid; grid-template-columns: repeat(12, 1fr);
	grid-auto-rows: 140px; gap: 16px;
}
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: 6px; position: relative; background: rgba(0,0,0,0.2); }
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.g1 { grid-column: span 5; grid-row: span 2; }
.g2 { grid-column: span 4; grid-row: span 3; }
.g3 { grid-column: span 3; grid-row: span 2; }
.g4 { grid-column: span 4; grid-row: span 2; }
.g5 { grid-column: span 3; grid-row: span 3; }
.g6 { grid-column: span 5; grid-row: span 2; }

/* ============ HOURS ============ */
.hours { padding: 120px 0; background: var(--paper); }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hours-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 40px; }
.hours-card .eyebrow { color: var(--brand-text); margin-bottom: 8px; display: block; }
.hours-card h3 { font-family: var(--font-display); font-size: 32px; margin: 0 0 24px; color: var(--heading); font-weight: 500; }
.hours-card-body { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.hours-card-body table { width: 100%; border-collapse: collapse; }
.hours-card-body table tr { border-bottom: 1px dashed var(--line); }
.hours-card-body table td { padding: 12px 0; }
.hours-card-body table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ============ CODE-ORDER SECTIONS ============ */
.co-menu-section { padding: 120px 0; background: var(--paper); }
.co-reservation-section { padding: 120px 0; background: var(--surface-2); }
/* The section sits on the page grid; the form carries its own measure so it
   does not stretch across the full 1256px content width. */
.co-reservation-form { max-width: 820px; margin: 0 auto; }
.co-locator-section { padding: 120px 0; background: var(--paper); }

.codeon-rv2-locator {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 48px;
}
.codeon-rv2-loc-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 28px 28px 24px;
	display: flex; flex-direction: column;
	transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.codeon-rv2-loc-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-2);
	border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}
.codeon-rv2-loc-card.is-selected {
	border-color: color-mix(in srgb, var(--brand) 48%, transparent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 9%, transparent);
}
.codeon-rv2-loc-head {
	display: flex; justify-content: space-between; align-items: flex-start;
	gap: 14px;
	margin-bottom: 16px;
}
.codeon-rv2-loc-head h3 {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 500;
	color: var(--heading);
	margin: 0;
	line-height: 1.1;
}
.codeon-rv2-loc-status {
	display: inline-flex; align-items: center; gap: 7px;
	font-family: var(--font-eyebrow);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	padding: 5px 11px;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
}
.codeon-rv2-loc-status .dot { width: 6px; height: 6px; border-radius: 50%; }
.codeon-rv2-loc-status.is-open  { color: var(--heading); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.codeon-rv2-loc-status.is-open  .dot { background: #6dd5b2; }
/* A branch being shut is not an error either — same calm treatment as the
   drawer and hero status. --danger-* stays reserved for real failures. */
.codeon-rv2-loc-status.is-closed{ color: var(--ink-soft); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.codeon-rv2-loc-status.is-closed .dot { background: var(--muted); }

.codeon-rv2-loc-addr {
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink-soft);
	margin: 0 0 18px;
}
.codeon-rv2-loc-services {
	display: flex; flex-wrap: wrap; gap: 6px;
	margin-bottom: 20px;
}
.codeon-rv2-loc-tag {
	font-family: var(--font-eyebrow);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--heading);
	background: var(--surface-2);
	padding: 5px 11px;
	border-radius: 999px;
}
.codeon-rv2-loc-foot {
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px dashed var(--line);
	display: flex; flex-wrap: wrap; gap: 14px 20px;
}
.codeon-rv2-loc-select {
	flex: 1 0 100%;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--brand);
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.codeon-rv2-loc-select:hover:not(:disabled) { background: var(--brand-deep); border-color: var(--brand-deep); }
.codeon-rv2-loc-select:disabled,
.codeon-rv2-loc-select.is-selected {
	background: color-mix(in srgb, var(--brand) 10%, var(--surface));
	border-color: color-mix(in srgb, var(--brand) 24%, transparent);
	color: var(--heading);
	cursor: default;
}
.codeon-rv2-loc-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--brand-text);
	text-decoration: none;
	transition: color 180ms;
}
.codeon-rv2-loc-link:hover { color: color-mix(in srgb, var(--brand-text) 78%, var(--heading)); }
.codeon-rv2-loc-link svg { flex-shrink: 0; }

@media (max-width: 920px) {
	.co-locator-section { padding: 80px 0; }
	.codeon-rv2-locator { gap: 16px; }
	.codeon-rv2-loc-card { padding: 24px 22px 22px; }
	.codeon-rv2-loc-head h3 { font-size: 22px; }
}

/* ============ FAQ ============ */
.faq { padding: 140px 0; background: var(--surface-2); }
/* Left-aligned and on the page grid, like every other content section head
   (fait, story, services, gallery). It used to be centred inside .wrap-narrow,
   which put the question list 218px inside the grid at 1650 — a third container
   width competing with the header and the sections above it. */
.faq-head { text-align: left; margin-bottom: 56px; }
.faq-head .eyebrow { color: var(--brand-text); display: inline-block; margin-bottom: 14px; }
.faq-head h2 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); margin: 0; color: var(--heading); font-weight: 500; line-height: 1.02; }
.faq-head h2 em { font-style: italic; color: var(--accent-text); }
/* A measure for readability, anchored to the grid rather than centred. */
.faq-list { max-width: 820px; margin: 0; }
.faq-item { border-top: 1px solid var(--line-strong); }
.faq-item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-q {
	display: flex; justify-content: space-between; align-items: center;
	padding: 28px 0;
	cursor: pointer;
	font-family: var(--font-display);
	font-size: 24px; font-weight: 500;
	color: var(--heading);
	gap: 24px;
	transition: color 200ms;
	width: 100%; background: transparent; border: 0; text-align: left;
}
.faq-q:hover { color: var(--brand-text); }
.faq-q .toggle {
	width: 36px; height: 36px; flex-shrink: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	display: grid; place-items: center;
	transition: all 250ms;
	color: var(--ink-soft);
}
.faq-item.open .faq-q .toggle {
	background: var(--brand); color: #fff; border-color: var(--brand);
	transform: rotate(45deg);
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height 400ms ease; }
.faq-item.open .faq-a { max-height: 800px; }
.faq-a-inner {
	padding: 0 0 28px;
	font-size: 16px; line-height: 1.75;
	color: var(--ink-soft);
	max-width: 680px;
}

/* ============ CTA STRIP ============ */
.cta-strip { padding: 100px 0; background: var(--paper); text-align: center; }
.cta-strip h2 {
	font-family: var(--font-display);
	font-size: clamp(40px, 6vw, 84px);
	margin: 0 auto 32px;
	color: var(--heading);
	font-weight: 500;
	line-height: 1.02;
	max-width: 900px;
}
.cta-strip h2 em { font-style: italic; color: var(--accent-text); }
.cta-strip .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { background: var(--brand-ink); color: rgba(255,255,255,0.8); padding: 100px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 64px; }
.footer-brand .custom-logo { height: var(--logo-height-footer, 70px); width: auto; margin-bottom: 24px; filter: brightness(0) invert(1); }
.footer-brand .site-logo-dark { filter: none; }
.footer-brand p { font-family: var(--font-display); font-style: italic; font-size: 22px; color: #fff; line-height: 1.4; margin: 0 0 24px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.2);
	display: grid; place-items: center;
	text-decoration: none;
	color: rgba(255,255,255,0.85);
	transition: all 200ms;
}
.footer-socials a:hover { background: #fff; color: var(--brand-ink); border-color: #fff; }
.footer h4 { font-family: var(--font-eyebrow); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-brand-accent); margin: 0 0 24px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 12px; }
.footer a { text-decoration: none; color: rgba(255,255,255,0.75); font-size: 14px; transition: color 200ms; }
.footer a:hover { color: #fff; }
.footer-contact .item { font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.footer-bottom {
	padding-top: 32px;
	border-top: 1px solid rgba(255,255,255,0.12);
	display: flex; justify-content: space-between; align-items: center;
	font-size: 12px; color: rgba(255,255,255,0.66);
}
.footer-legal { display: flex; gap: 18px; list-style: none; padding: 0; margin: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
	.wrap, .wrap-narrow { padding: 0 24px; }
	.services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
	.fait-maison, .story, .gallery, .hours, .faq, .co-menu-section, .co-reservation-section { padding: 80px 0; }
	.services { padding: 80px 0; }
	.fait-inner, .story-grid, .hours-grid { grid-template-columns: 1fr; gap: 48px; }
	.services-head { grid-template-columns: 1fr; gap: 16px; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
	.g1, .g2, .g3, .g4, .g5, .g6 { grid-column: span 1; grid-row: span 1; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
	.footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
	.marquee-item { font-size: 22px; gap: 36px; }
}
@media (max-width: 600px) {
	.wrap, .wrap-narrow { padding: 0 18px; }
	.fait-text h2, .services-head h2, .story-text h2, .gallery-head h2, .faq-head h2, .cta-strip h2 { font-size: 36px; }

	.fait-maison, .story, .gallery, .hours, .faq, .cta-strip, .services, .co-menu-section, .co-reservation-section { padding: 64px 0; }
	.fait-text .stats { flex-wrap: wrap; gap: 24px; }
	.fait-stat .n { font-size: 36px; }
	.services-grid { grid-template-columns: 1fr; }
	.service-card { padding: 28px 22px; }
	.service-card .num { margin-bottom: 40px; }

	.story-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px; }
	.story-gallery .tall { height: 336px; }

	.gallery-head { flex-direction: column; align-items: flex-start; gap: 20px; }
	.gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }

	.hours-card { padding: 28px 24px; }
	.hours-card h3 { font-size: 26px; }

	.faq-q { font-size: 18px; padding: 22px 0; gap: 16px; }
	.faq-q .toggle { width: 32px; height: 32px; }

	.footer { padding: 72px 0 28px; }
	.footer-grid { grid-template-columns: 1fr; gap: 36px; }
	.footer-brand p { font-size: 18px; }

	.marquee-item { font-size: 18px; gap: 28px; }
	.btn { padding: 12px 18px; font-size: 12px; letter-spacing: 0.08em; }
}
