/* ===== Restaurant Marràkech — estilos ===== */

:root {
  --night: #12282a;
  --night-deep: #0b1c1d;
  --plaster: #f2ede1;
  --plaster-deep: #e6dcc6;
  --white: #ffffff;
  --gold: #c9962f;
  --gold-soft: #e0b556;
  --emerald: #1f6f5c;
  --paprika: #a3311f;
  --text-dim: #5c554a;
  --line: rgba(18, 40, 42, 0.14);
  --line-invert: rgba(242, 237, 225, 0.18);

  --font-display: 'Amiri', Georgia, serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--night);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.35em;
  text-wrap: balance;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--night);
  padding: 12px 18px;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald);
  margin: 0 0 0.8em;
}

/* ---------- photo frames (moorish arch) ---------- */
.photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg, rgba(18,40,42,0.55), rgba(163,49,31,0.28)),
    linear-gradient(200deg, #d8c48a 0%, #c9962f 45%, #1f6f5c 100%);
  background-blend-mode: multiply, normal;
  overflow: hidden;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--photo-url, none);
  background-size: cover;
  background-position: center;
}
.photo-frame.arch {
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  border: 3px solid var(--gold);
  box-shadow: inset 0 0 0 8px var(--night), 0 0 90px 10px rgba(201, 150, 47, 0.25);
}

/* ---------- star divider ---------- */
.star-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 36px 0;
  background: var(--plaster);
}
.star-divider svg path { fill: var(--gold); }
.star-divider svg:nth-child(2) { opacity: 0.6; transform: scale(0.7); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--night);
  border-radius: 999px 999px 4px 4px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--night); color: var(--plaster); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }

.btn-ghost { background: transparent; color: var(--night); border-color: var(--night); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }

.btn-call { padding: 12px 24px; font-size: 0.85rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--plaster);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
}

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 32px;
}
.nav a {
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding-bottom: 4px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}
.nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--night);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  margin: 0 8px;
  background: var(--night);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  background: var(--night);
  color: var(--plaster);
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%23c9962f' stroke-width='1'%3E%3Cpath d='M28 2 L34 22 L54 28 L34 34 L28 54 L22 34 L2 28 L22 22 Z'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 90px 0 90px 28px;
}
.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--plaster);
  max-width: 560px;
}
.hero-sub {
  max-width: 460px;
  font-size: 1.08rem;
  color: var(--plaster-deep);
  margin: 0;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--night); }
.hero .btn-primary:hover { background: var(--plaster); border-color: var(--plaster); color: var(--night); }
.hero .btn-ghost { border-color: var(--line-invert); color: var(--plaster); }
.hero .btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.hero-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid var(--line-invert);
  width: fit-content;
}
.rating-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--gold-soft);
  line-height: 0.9;
}
.rating-meta { display: flex; flex-direction: column; gap: 3px; }
.rating-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
.rating-count { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--plaster-deep); }

.hero-photo { position: relative; z-index: 2; min-height: 380px; align-self: end; margin: 0 28px 0 0; }


/* ---------- menu ---------- */
.menu { padding: 90px 0 110px; }
.section-head { display: flex; flex-direction: column; margin-bottom: 46px; }
.section-head-center { align-items: center; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }

.menu-list { list-style: none; margin: 0 0 30px; padding: 0; }
.menu-row { padding: 24px 0; border-bottom: 1px solid var(--line); transition: border-color 0.3s var(--ease); }
.menu-row:hover { border-color: var(--paprika); }
.menu-row:hover .menu-name { color: var(--paprika); }
.menu-row-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.menu-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.menu-line {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}
.menu-desc { margin: 8px 0 0; color: var(--text-dim); font-size: 0.98rem; max-width: 640px; }
.menu-note { font-size: 0.88rem; color: var(--text-dim); font-style: italic; }

/* ---------- about ---------- */
.about { background: var(--night); color: var(--plaster); padding: 100px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--plaster); }
.about-copy p { color: var(--plaster-deep); font-size: 1.05rem; max-width: 480px; }
.about-stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line-invert);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--gold-soft);
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--plaster-deep);
  margin-top: 4px;
}
.about-visual { aspect-ratio: 3 / 4; }
.about-photo { width: 100%; height: 100%; }

/* ---------- gallery ---------- */
.gallery { padding: 100px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-photo { aspect-ratio: 3 / 4; }

/* ---------- reviews ---------- */
.reviews { padding: 100px 0; background: var(--plaster-deep); }
.reviews-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 46px;
}
.reviews-score { display: flex; align-items: baseline; gap: 16px; }
.score-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 5vw, 3.8rem); color: var(--night); line-height: 0.85; }
.score-meta { display: flex; flex-direction: column; gap: 4px; }
.score-stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.score-count { font-size: 0.85rem; letter-spacing: 0.02em; color: var(--text-dim); }

.review-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--plaster);
  margin: 0;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 180px;
  border-top: 3px solid var(--gold);
}
.review-card p { font-size: 1.02rem; margin: 0; font-family: var(--font-display); font-style: italic; }
.review-card cite {
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 600;
}

/* ---------- contact ---------- */
.contact { background: var(--emerald); color: var(--plaster); padding: 100px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}
.contact-title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: var(--plaster); }
.contact-sub { font-size: 1.05rem; max-width: 380px; color: rgba(242,237,225,0.85); margin-bottom: 30px; }

.contact-hours {
  border-top: 1px solid rgba(242,237,225,0.3);
  padding-top: 20px;
  max-width: 380px;
}
.contact-hours-title { font-weight: 600; margin: 0 0 6px; color: var(--gold-soft); }
.contact-hours p { margin: 0 0 4px; color: rgba(242,237,225,0.9); }
.contact-hours-note { font-size: 0.82rem; font-style: italic; color: rgba(242,237,225,0.65); }

.contact-actions { display: flex; flex-direction: column; gap: 2px; }
.contact-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
  border-top: 1px solid rgba(242,237,225,0.3);
  transition: padding-left 0.3s var(--ease);
}
.contact-actions .contact-link:last-child { border-bottom: 1px solid rgba(242,237,225,0.3); }
.contact-link:hover { padding-left: 14px; }
.contact-link:hover .contact-link-value { color: var(--gold-soft); }
.contact-link-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(242,237,225,0.7);
}
.contact-link-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  transition: color 0.3s var(--ease);
}

/* ---------- footer ---------- */
.site-footer { background: var(--night-deep); color: var(--plaster-deep); padding: 24px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand-footer { font-family: var(--font-display); font-style: italic; color: var(--plaster); font-size: 1.1rem; }
.footer-copy { font-size: 0.78rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-call { display: none; }

  .site-header.menu-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--plaster);
    border-bottom: 1px solid var(--night);
    padding: 20px 28px 28px;
    gap: 18px;
    margin: 0;
  }

  .hero { grid-template-columns: 1fr; }
  .hero-inner { padding: 60px 24px 40px; }
  .hero-photo { margin: 0 24px 40px; min-height: 260px; align-self: auto; }

  .menu-row-head { flex-wrap: wrap; }
  .menu-line { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 340px; margin: 0 auto; order: -1; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .review-cards { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
}
