/* Tokoman — main stylesheet */

:root {
  --site-primary: #8b5278;
  --site-primary-light: #a691a4;
  --site-primary-dark: #4e243e;
  --site-secondary: #985a3f;
  --site-accent: #0778b3;
  --site-surface: #f2f2f2;
  --site-text-secondary: #565556;
  --bs-body-bg: #ffe6f9;
  --bs-body-color: #191116;
  --bs-body-font-family: 'Karla', sans-serif;
  --bs-link-color: #8b5278;
  --bs-link-hover-color: #4e243e;

  /* Type scale — editorial, ~1.333 */
  --fs-h1: clamp(2.4rem, 5vw, 3.4rem);
  --fs-h2: 2.2rem;
  --fs-h3: 1.5rem;
  --fs-body: 1.125rem;
  --fs-small: 0.95rem;
  --fs-eyebrow: 0.78rem;

  --section-pad: clamp(5rem, 8vw, 7rem);
  --section-pad-tight: calc(clamp(5rem, 8vw, 7rem) * 0.6);
}

body {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-body-font-family);
  font-size: var(--fs-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Pro', serif;
  color: var(--bs-body-color);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }

p { text-wrap: pretty; }

small, .fs-small { font-size: var(--fs-small); }

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--site-secondary);
  font-family: 'Karla', sans-serif;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.text-secondary-tok { color: var(--site-text-secondary); }

.prose {
  max-width: 64ch;
}

.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Links / Buttons ---------- */
a { color: var(--site-primary); text-decoration: none; }
a:hover { color: var(--site-primary-dark); }

.btn {
  border-radius: 8px;
  padding: 0.65rem 1.6rem;
  font-weight: 600;
  box-shadow: none;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border-width: 1px;
}

.btn-primary {
  background-color: var(--site-primary);
  border-color: var(--site-primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--site-primary-dark);
  border-color: var(--site-primary-dark);
  color: #fff;
}

.btn-outline-primary {
  color: var(--site-primary);
  border-color: var(--site-primary);
  background-color: transparent;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--site-primary);
  border-color: var(--site-primary);
  color: #fff;
}

.btn-outline-light {
  color: #fff;
  border-color: #fff;
  background-color: transparent;
}
.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: #fff;
  border-color: #fff;
  color: var(--site-primary-dark);
}

.bg-primary { background-color: var(--site-primary) !important; }
.text-primary { color: var(--site-primary) !important; }
.border-primary { border-color: var(--site-primary) !important; }

/* ---------- Cards ---------- */
.card {
  border: none;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  background-color: #fff;
}

.card-tile {
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  background-color: #fff;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: block;
}
.card-tile:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.card-tile h3 { margin-bottom: 0.5rem; }
.card-tile .tile-num {
  font-family: 'Crimson Pro', serif;
  font-size: 1.6rem;
  color: var(--site-primary-light);
  display: block;
  margin-bottom: 0.75rem;
}

/* ---------- Inputs ---------- */
.form-control, .form-select {
  border-radius: 12px;
  border: 1px solid #d8ccd5;
  padding: 0.65rem 1rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--site-primary);
  box-shadow: 0 0 0 0.2rem rgba(139, 82, 120, 0.15);
}
.form-check-input:checked {
  background-color: var(--site-primary);
  border-color: var(--site-primary);
}
label { font-weight: 600; font-size: var(--fs-small); }

/* ---------- Images ---------- */
img { border-radius: 16px; }
.rounded-img { border-radius: 16px; }

/* ---------- Nav ---------- */
.navbar {
  background-color: var(--bs-body-bg);
  box-shadow: none;
  border-bottom: none;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.navbar-brand {
  font-family: 'Crimson Pro', serif;
  font-size: 1.5rem;
  color: var(--bs-body-color) !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.navbar-brand img { border-radius: 0; width: 34px; height: 34px; }
.navbar .nav-link {
  color: var(--bs-body-color);
  font-size: var(--fs-small);
  margin: 0 0.5rem;
}
.navbar .nav-link:hover { color: var(--site-primary); }
.navbar .btn { margin-left: 0.5rem; }

/* ---------- Hero background images ---------- */
#heroHome { background-image: url('../../images/hero-cucina-a-vista-tokoman.jpg'); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  border-radius: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(25, 17, 22, 0.28);
}
.hero-panel {
  position: relative;
  z-index: 2;
  background: rgba(25, 17, 22, 0.72);
  color: #ffe6f9;
  border-radius: 16px;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  max-width: 620px;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-panel h1, .hero-panel p { color: #ffffff; }
.hero-panel .eyebrow { color: var(--site-primary-light); }

/* ---------- Sections ---------- */
.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  background-color: var(--bs-body-bg);
}
.section-tight {
  padding-top: var(--section-pad-tight);
  padding-bottom: var(--section-pad-tight);
}
.section-surface { background-color: var(--site-surface); }
.section-wash { background-color: #f7eef5; }

.hairline-top { border-top: 1px solid #e2d3dd; }

/* Offset sidebar band (edge-to-edge visual) */
.offset-band {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .offset-band { grid-template-columns: 7fr 3fr; align-items: stretch; }
}
.offset-band .offset-text {
  padding: var(--section-pad) 1.5rem var(--section-pad) clamp(1.5rem, 8vw, 6rem);
}
.offset-band .offset-aside {
  display: flex;
  align-items: center;
  padding: 2rem;
}
.offset-band .offset-aside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 0 0 16px;
  min-height: 320px;
}
@media (min-width: 992px) {
  .offset-band .offset-aside { padding: 0; }
  .offset-band .offset-aside img { border-radius: 16px 0 0 16px; }
}

/* Offset sidebar band #2 — surface, pull-quote aside */
.offset-band-quote {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: var(--section-pad) 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .offset-band-quote { grid-template-columns: 7fr 3fr; gap: 3rem; }
}
.offset-aside-panel {
  background-color: var(--site-secondary);
  color: #ffe6f9;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  border-radius: 16px 0 0 16px;
}
@media (max-width: 991.98px) {
  .offset-aside-panel { border-radius: 16px; }
}
.offset-aside-panel .eyebrow-inverse { color: #ffe6f9; opacity: 0.85; }
.pull-quote-inv {
  font-family: 'Crimson Pro', serif;
  font-size: 1.25rem;
  color: #ffe6f9;
  margin-bottom: 0;
}

.container-narrow { max-width: 880px; }
.container-wide { max-width: 1280px; }
.container-1140 { max-width: 1140px; }

.menu-photo { max-height: 420px; object-fit: cover; }

.pull-quote {
  border-left: 3px solid var(--site-primary-light);
  padding-left: 1.25rem;
  font-family: 'Crimson Pro', serif;
  font-size: 1.25rem;
  color: var(--site-primary-dark);
  align-self: center;
}

/* Tokoman in breve — record rows */
.record-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(78, 36, 62, 0.12);
}
@media (min-width: 768px) {
  .record-row { grid-template-columns: 1fr 3fr; gap: 2rem; align-items: baseline; }
}
.record-row:last-child { border-bottom: none; }
.record-label {
  font-family: 'Crimson Pro', serif;
  font-size: 1.15rem;
  color: var(--site-primary-dark);
}

/* FAQ overlap band */
.faq-overlap {
  margin-top: -48px;
  position: relative;
  z-index: 3;
  background-color: var(--site-surface);
  border-radius: 24px 24px 0 0;
}

/* Footer */
footer {
  background-color: var(--site-surface);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  min-height: 200px;
}
footer h6 {
  font-family: 'Karla', sans-serif;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--site-text-secondary);
  margin-bottom: 1rem;
}
footer a {
  color: var(--bs-body-color);
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--fs-small);
}
footer a:hover { color: var(--site-primary); }
footer .footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: var(--fs-small);
  color: var(--site-text-secondary);
}

/* Map */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background-color: var(--bs-body-color);
  color: #ffe6f9;
  padding: 1.25rem 1.5rem;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin-bottom: 0.75rem; color: #ffe6f9; }
.cookie-banner .cookie-text { max-width: 640px; }
.cookie-banner .btn-outline-primary {
  color: #ffe6f9;
  border-color: #ffe6f9;
}
.cookie-banner .btn-outline-primary:hover {
  background-color: #ffe6f9;
  color: var(--bs-body-color);
}

/* Confirmation message */
.form-confirm {
  display: none;
  border-radius: 24px;
  background-color: #f7eef5;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.form-confirm.show { display: block; }

/* Inverted-style helper (unused globally, kept minimal per no-inverted-band skeleton) */

@media (max-width: 767.98px) {
  .hero { min-height: 80vh; }
}
