/* ============================================================
   Corso — Website UI kit styles
   Consumes tokens from ../../colors_and_type.css
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream-200);
  color: var(--fg1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[data-lucide] { width: 18px; height: 18px; stroke-width: 1.6; }

/* ---- shared bits ---- */
.corso-eyebrow {
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-600);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.corso-eyebrow-wrap { white-space: normal; }
.corso-eyebrow-ondark { color: var(--brass-300); }
.corso-rule { width: 38px; height: 1.5px; background: currentColor; display: inline-block; opacity: 0.8; }

.corso-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg1);
  margin: 14px 0 0;
}
.corso-h2-ondark { color: var(--cream-50); }
.corso-h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; margin: 10px 0; color: var(--fg1); }
.corso-body { font-family: var(--font-body); font-size: 1.075rem; line-height: 1.65; color: var(--fg2); }
.corso-small { font-family: var(--font-body); font-size: 0.875rem; line-height: 1.5; color: var(--fg3); }
.corso-link { color: var(--brass-600); font-weight: 700; font-size: 0.95rem; border-bottom: 1.5px solid transparent; transition: border-color .2s var(--ease); }
.corso-link:hover { border-color: var(--brass-500); }

.corso-section-head { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.corso-section-head-center { text-align: center; }
.corso-section-head-center .corso-eyebrow { justify-content: center; }

/* ---- buttons ---- */
.corso-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 24px;
  transition: all .2s var(--ease);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  line-height: 1; white-space: nowrap;
}
.corso-btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.corso-btn-block { width: 100%; padding: 15px; }
.corso-btn-primary { background: var(--brass-500); color: var(--espresso-900); }
.corso-btn-primary:hover { background: var(--brass-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.corso-btn-tomato { background: var(--tomato-500); color: var(--cream-50); }
.corso-btn-tomato:hover { background: var(--tomato-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.corso-btn-tomato:active { transform: translateY(0); box-shadow: none; }
.corso-btn-ghost-light { background: transparent; color: var(--cream-50); box-shadow: inset 0 0 0 1.5px rgba(248,243,236,0.5); }
.corso-btn-ghost-light:hover { background: rgba(248,243,236,0.1); box-shadow: inset 0 0 0 1.5px var(--cream-50); }

.corso-chip { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; background: var(--cream-300); color: var(--warm-700); padding: 7px 15px; border-radius: 999px; }
.corso-chip-dark { background: var(--espresso-800); color: var(--brass-300); }

/* ============================================================ HEADER */
.corso-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.corso-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; gap: 24px;
}
.corso-logo { flex-shrink: 0; }
.corso-logo img { height: 46px; transition: height .3s var(--ease); }
.corso-logo-light { display: block; }
.corso-logo-dark { display: none; }
.corso-header.is-scrolled { background: var(--cream-100); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); backdrop-filter: blur(8px); }
.corso-header.is-scrolled .corso-logo img { height: 38px; }
.corso-header.is-scrolled .corso-logo-light { display: none; }
.corso-header.is-scrolled .corso-logo-dark { display: block; }

.corso-nav { display: flex; gap: 26px; margin-left: auto; }
.corso-nav a {
  font-weight: 600; font-size: 0.92rem; color: var(--cream-100);
  letter-spacing: 0.01em; padding: 4px 0; position: relative; transition: color .2s;
}
.corso-nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--brass-400); transition: width .25s var(--ease); }
.corso-nav a:hover::after { width: 100%; }
.corso-header.is-scrolled .corso-nav a { color: var(--warm-700); }

.corso-header-actions { display: flex; align-items: center; gap: 14px; }
.corso-phone { display: none; align-items: center; gap: 7px; font-weight: 700; font-size: 0.92rem; color: var(--cream-100); }
.corso-header.is-scrolled .corso-phone { color: var(--espresso-800); }
.corso-burger { display: none; background: none; border: none; cursor: pointer; color: var(--cream-100); padding: 6px; }
.corso-header.is-scrolled .corso-burger { color: var(--espresso-800); }
.corso-burger [data-lucide] { width: 26px; height: 26px; }

.corso-nav-mobile { display: none; flex-direction: column; background: var(--cream-100); padding: 12px 32px 20px; gap: 4px; box-shadow: var(--shadow-md); }
.corso-nav-mobile a { padding: 12px 0; font-weight: 600; color: var(--warm-700); border-bottom: 1px solid var(--line); }
.corso-nav-mobile-phone { color: var(--brass-600) !important; }

/* ============================================================ HERO */
.corso-hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.corso-hero-bg { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
.corso-hero-bg::part(frame) { background: radial-gradient(120% 120% at 70% 20%, #4E3A2C 0%, #2B1E16 55%, #1C140F 100%); }
.corso-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,20,15,0.55) 0%, rgba(28,20,15,0.30) 40%, rgba(28,20,15,0.72) 100%);
}
.corso-hero-content { position: relative; z-index: 2; max-width: 1240px; width: 100%; margin: 0 auto; padding: 132px 32px 110px; }
.corso-hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 5.2vw, 4.9rem); line-height: 1.02; letter-spacing: -0.015em;
  color: var(--cream-50); margin: 22px 0 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.corso-hero-sub { font-size: 1.25rem; line-height: 1.6; color: var(--cream-100); opacity: 0.94; max-width: 46ch; margin: 22px 0 0; }
.corso-hero-sub em { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--brass-300); }
.corso-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.corso-hero-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 38px; }
.corso-hero-meta span { display: inline-flex; align-items: center; gap: 9px; color: var(--cream-100); opacity: 0.85; font-size: 0.95rem; font-weight: 500; }
.corso-hero-meta [data-lucide] { color: var(--brass-300); }
.corso-hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--cream-100); opacity: 0.7; animation: corso-bob 2.4s var(--ease) infinite; }
.corso-hero-scroll [data-lucide] { width: 28px; height: 28px; }
@keyframes corso-bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ============================================================ USP */
.corso-usp { max-width: 1180px; margin: 0 auto; padding: 100px 32px; }
.corso-usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.corso-usp-card {
  background: var(--cream-100); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 26px; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.corso-usp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.corso-usp-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--cream-300); color: var(--brass-600); margin-bottom: 18px; }
.corso-usp-icon [data-lucide] { width: 26px; height: 26px; }
.corso-usp-title { font-family: var(--font-body); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--warm-700); margin: 0 0 10px; line-height: 1.4; }
.corso-usp-body { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.6; color: var(--fg2); margin: 0; }

/* ============================================================ STORY (dark) */
.corso-story { background: var(--espresso-900); color: var(--cream-100); }
.corso-story-inner { max-width: 1180px; margin: 0 auto; padding: 110px 32px; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 70px; align-items: start; }
.corso-story-lead { font-size: 1.15rem; line-height: 1.7; color: var(--fg-on-dark-2); margin: 22px 0 0; }
.corso-timeline { list-style: none; margin: 6px 0 0; padding: 0; position: relative; }
.corso-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1.5px; background: var(--line-dark); }
.corso-timeline-item { position: relative; padding: 0 0 30px 38px; }
.corso-timeline-item:last-child { padding-bottom: 0; }
.corso-timeline-dot { position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: var(--espresso-900); border: 2px solid var(--brass-500); }
.corso-timeline-item:last-child .corso-timeline-dot { background: var(--brass-500); }
.corso-timeline-year { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--brass-300); line-height: 1; margin-bottom: 6px; }
.corso-timeline-text { font-size: 1rem; line-height: 1.55; color: var(--fg-on-dark-2); }

/* ============================================================ MENU */
.corso-menu { max-width: 880px; margin: 0 auto; padding: 100px 32px; }
.corso-menu-tabs { display: flex; justify-content: center; gap: 8px; margin: 38px 0 36px; }
.corso-menu-tab { font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; white-space: nowrap; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--warm-600); cursor: pointer; transition: all .2s var(--ease); }
.corso-menu-tab:hover { border-color: var(--brass-400); color: var(--warm-700); }
.corso-menu-tab.is-active { background: var(--espresso-800); color: var(--brass-300); border-color: var(--espresso-800); }
.corso-menu-list { list-style: none; margin: 0; padding: 0; }
.corso-menu-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.corso-menu-item-head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 18px; }
.corso-menu-item-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: var(--fg1); }
.corso-menu-price { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; color: var(--brass-600); font-variant-numeric: tabular-nums; white-space: nowrap; }
.corso-menu-item-desc { font-family: var(--font-body); font-size: 0.95rem; color: var(--fg2); margin: 6px 0 0; max-width: 80%; }
.corso-menu-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; justify-content: center; }
.corso-menu-foot .corso-link { margin-left: auto; }

/* ============================================================ CAFE */
.corso-cafe { max-width: 1180px; margin: 0 auto; padding: 30px 32px 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.corso-cafe-media { position: relative; }
.corso-cafe-slot { width: 100% !important; height: 460px !important; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.corso-cafe-slot::part(frame) { background: linear-gradient(135deg, #6E5544, #3A2A1F); }
.corso-cafe-badge { position: absolute; bottom: -22px; right: -18px; background: var(--espresso-800); color: var(--cream-50); border-radius: 50%; width: 134px; height: 134px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: var(--shadow-md); border: 1.5px solid var(--brass-500); }
.corso-cafe-badge-top { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-on-dark-2); margin-bottom: 6px; }
.corso-cafe-badge-year { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.95rem; color: var(--brass-300); }
.corso-cafe-badge-sub { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-on-dark-2); margin-top: 7px; }
.corso-tick-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.corso-tick-list li { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--warm-700); }
.corso-tick-list [data-lucide] { color: var(--brass-600); width: 20px; height: 20px; flex-shrink: 0; }

/* ============================================================ GALLERY */
.corso-gallery { max-width: 1180px; margin: 0 auto; padding: 30px 32px 100px; }
.corso-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; margin-top: 44px; }
.corso-gal-cell { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, #ECE0CC, #DECBAE); }
.corso-gal-cell image-slot { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
.corso-gal-cell image-slot::part(frame) { background: transparent; }
.corso-gal-tall { grid-row: span 2; }
.corso-gal-wide { grid-column: span 2; }

/* ============================================================ CONTACT (dark) */
.corso-contact { background: var(--espresso-950); color: var(--cream-100); }
.corso-contact-inner { max-width: 1180px; margin: 0 auto; padding: 100px 32px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.corso-contact-rows { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; }
.corso-contact-row { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; color: var(--cream-100); transition: color .2s; }
.corso-contact-row:hover { color: var(--brass-300); }
.corso-contact-row [data-lucide] { color: var(--brass-400); width: 22px; height: 22px; }
.corso-contact-social { display: flex; gap: 12px; margin-top: 6px; }
.corso-contact-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; color: var(--cream-100); transition: all .2s var(--ease); }
.corso-contact-social a:hover { background: var(--brass-500); color: var(--espresso-900); border-color: var(--brass-500); }

.corso-hours-card { background: var(--espresso-800); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 30px 32px; }
.corso-hours-title { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--font-display); font-size: 1.5rem; color: var(--cream-50); margin: 0 0 18px; }
.corso-hours-title [data-lucide] { color: var(--brass-400); }
.corso-hours { width: 100%; border-collapse: collapse; }
.corso-hours td { padding: 9px 0; font-size: 0.98rem; color: var(--fg-on-dark-2); border-bottom: 1px solid var(--line-dark); }
.corso-hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--cream-100); }
.corso-hours tr:last-child td { border-bottom: none; }
.corso-hours tr.is-today td { color: var(--brass-300); font-weight: 700; }
.corso-hours-note { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--fg-on-dark-2); margin: 16px 0 0; }
.corso-hours-note [data-lucide] { color: var(--brass-400); width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================ FOOTER */
.corso-footer { background: var(--espresso-950); color: var(--cream-100); border-top: 1px solid var(--line-dark); }
.corso-footer-inner { max-width: 1180px; margin: 0 auto; padding: 60px 32px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.corso-footer-logo { height: 70px; }
.corso-footer-tag { font-size: 1rem; line-height: 1.7; color: var(--fg-on-dark-2); margin: 0; }
.corso-footer-tag em { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--brass-300); }
.corso-footer-social { display: flex; gap: 14px; }
.corso-footer-social a { color: var(--cream-100); opacity: 0.8; transition: opacity .2s, color .2s; }
.corso-footer-social a:hover { opacity: 1; color: var(--brass-300); }
.corso-footer-bar { max-width: 1180px; margin: 0 auto; padding: 22px 32px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--warm-500); }

/* ============================================================ MODAL */
.corso-modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(28,20,15,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: corso-fade .2s var(--ease); }
.corso-modal { position: relative; background: var(--cream-100); border-radius: var(--radius-xl); padding: 38px 40px; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); animation: corso-rise .28s var(--ease); }
.corso-modal-close { position: absolute; top: 18px; right: 18px; background: none; border: none; cursor: pointer; color: var(--warm-500); padding: 6px; border-radius: 50%; transition: background .2s; }
.corso-modal-close:hover { background: var(--cream-300); }
.corso-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.corso-form-row { display: flex; gap: 14px; }
.corso-field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.corso-field span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg2); }
.corso-field input, .corso-field select { font-family: var(--font-body); font-size: 0.98rem; padding: 11px 14px; border-radius: var(--radius-md); border: 1px solid var(--cream-400); background: var(--cream-50); color: var(--fg1); }
.corso-field input:focus, .corso-field select:focus { outline: none; border-color: var(--brass-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass-500) 22%, transparent); }
.corso-modal-done { text-align: center; padding: 14px 0; }
.corso-modal-check { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--brass-500); color: var(--espresso-900); margin-bottom: 8px; }
.corso-modal-check [data-lucide] { width: 30px; height: 30px; stroke-width: 2.4; }
@keyframes corso-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes corso-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================ RESPONSIVE */
@media (max-width: 960px) {
  .corso-nav { display: none; }
  .corso-burger { display: block; }
  .corso-header.is-scrolled + * .corso-nav-mobile, .corso-nav-mobile { display: flex; }
  .corso-usp-grid { grid-template-columns: repeat(2, 1fr); }
  .corso-story-inner, .corso-cafe, .corso-contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .corso-cafe > *, .corso-story-inner > *, .corso-contact-inner > * { min-width: 0; }
  .corso-cafe-badge { width: 100px; height: 100px; bottom: -16px; right: 8px; }
}
@media (max-width: 600px) {
  .corso-header-actions .corso-btn { display: none; }
  .corso-eyebrow { white-space: normal; }
  .corso-usp-grid { grid-template-columns: 1fr; }
  .corso-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .corso-form-row { flex-direction: column; }
  .corso-hero-meta { gap: 14px; }
  .corso-menu-foot .corso-link { margin-left: 0; }
}
