/* =============================================
   ОЧАГ — RESTAURANT LANDING PAGE
   style.css
   ============================================= */

/* --- VARIABLES --- */
:root {
  --accent:  #c0622a;
  --accent2: #e8a060;
}
[data-theme="dark"] {
  --accent:  #e07840;
  --accent2: #c05820;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Jost', sans-serif;
  color: #fff;
  overflow-x: hidden;
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 6vw;
  background: rgba(15, 6, 0, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.4s;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent2);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent2);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 7px 16px;
  cursor: pointer;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.theme-toggle:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  z-index: 300;
  width: 0%;
  transition: width 0.08s linear;
}

/* =============================================
   SECTION BASE (background + overlay)
   ============================================= */
.bg-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  transition: filter 0.5s;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 6vw 80px;
}

/* =============================================
   SHARED TYPOGRAPHY
   ============================================= */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 14px;
}
.section-title em {
  font-style: italic;
  color: var(--accent2);
}
.section-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 480px;
  font-weight: 300;
}
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 18px 0;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.28s;
  cursor: pointer;
  border: none;
  font-family: 'Jost', sans-serif;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(192, 98, 42, 0.45);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero .bg-img {
  background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1800&q=85');
}
#hero .overlay {
  background: linear-gradient(135deg, rgba(10,3,0,0.78) 0%, rgba(60,20,0,0.45) 100%);
}
[data-theme="dark"] #hero .overlay {
  background: linear-gradient(135deg, rgba(5,2,0,0.88) 0%, rgba(30,10,0,0.6) 100%);
}

.hero-content {
  max-width: 650px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 18px;
  border-left: 3px solid var(--accent2);
  padding-left: 14px;
  animation: fadeLeft 1s ease both 0.2s;
  opacity: 0;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.02;
  margin-bottom: 22px;
  animation: fadeUp 1s ease both 0.4s;
  opacity: 0;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent2);
}
.hero-p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 460px;
  animation: fadeUp 1s ease both 0.6s;
  opacity: 0;
}
.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 1s ease both 0.8s;
  opacity: 0;
}

/* Floating food circles */
.float-items {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.fi {
  position: absolute;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.fi1 {
  width: 270px; height: 270px;
  right: 10%; top: 18%;
  background-image: url('https://images.unsplash.com/photo-1547592166-23ac45744acd?w=400&q=80');
  animation: floatA 7s ease-in-out infinite;
}
.fi2 {
  width: 150px; height: 150px;
  right: 27%; bottom: 18%;
  background-image: url('https://images.unsplash.com/photo-1563729784474-d77dbb933a9e?w=300&q=80');
  animation: floatB 8s ease-in-out infinite 1.2s;
}
.fi3 {
  width: 95px; height: 95px;
  right: 7%; bottom: 26%;
  background-image: url('https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?w=200&q=80');
  animation: floatA 5.5s ease-in-out infinite 0.6s;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
#about .bg-img {
  background-image: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1800&q=85');
  filter: brightness(0.4) saturate(0.7);
}
[data-theme="dark"] #about .bg-img {
  filter: brightness(0.25) saturate(0.5);
}
#about .overlay {
  background: linear-gradient(to right, rgba(8,3,0,0.88) 0%, rgba(8,3,0,0.55) 60%, transparent 100%);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 20px 30px 70px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s;
}
.about-img:hover {
  transform: scale(1.02);
}
.about-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--accent);
  color: #fff;
  padding: 16px 22px;
  border-radius: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  box-shadow: 0 10px 30px rgba(192, 98, 42, 0.4);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 18px;
  border-radius: 4px;
  transition: transform 0.3s, background 0.3s;
}
.stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.13);
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--accent2);
  line-height: 1;
}
.stat-label {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  letter-spacing: 0.08em;
}

/* =============================================
   MENU SECTION
   ============================================= */
#menu .bg-img {
  background-image: url('https://images.unsplash.com/photo-1565958011703-44f9829ba187?w=1800&q=85');
  filter: brightness(0.3) saturate(0.6);
}
[data-theme="dark"] #menu .bg-img {
  filter: brightness(0.18) saturate(0.4);
}
#menu .overlay {
  background: rgba(6, 2, 0, 0.72);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 38px;
  flex-wrap: wrap;
  gap: 20px;
}
.menu-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tab {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s;
  backdrop-filter: blur(6px);
}
.tab.active,
.tab:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 20px;
}
.menu-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.35s;
}
.menu-card:hover {
  transform: translateY(-9px);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}
.menu-img-wrap {
  overflow: hidden;
  height: 200px;
}
.menu-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block;
}
.menu-card:hover img {
  transform: scale(1.08);
}
.menu-card-body {
  padding: 20px;
}
.menu-card-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.38rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.menu-card-body p {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 14px;
  font-weight: 300;
}
.menu-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent2);
}
.badge {
  font-size: 0.68rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* =============================================
   GALLERY SECTION
   ============================================= */
#gallery .bg-img {
  background-image: url('https://images.unsplash.com/photo-1476224203421-9ac39bcb3327?w=1800&q=85');
  filter: brightness(0.25) saturate(0.5);
}
[data-theme="dark"] #gallery .bg-img {
  filter: brightness(0.15) saturate(0.3);
}
#gallery .overlay {
  background: rgba(5, 2, 0, 0.8);
}
#gallery {
  min-height: auto;
}
#gallery .content {
  padding: 90px 6vw;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 230px 230px;
  gap: 12px;
  margin-top: 40px;
}
.gitem {
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
.gitem::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(192, 98, 42, 0);
  transition: background 0.3s;
  border-radius: 4px;
}
.gitem:hover::after {
  background: rgba(192, 98, 42, 0.22);
}
.gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s;
  display: block;
}
.gitem:hover img {
  transform: scale(1.09);
}
.gitem.big {
  grid-row: 1 / 3;
}

/* =============================================
   RESERVATION SECTION
   ============================================= */
#reservation .bg-img {
  background-image: url('https://images.unsplash.com/photo-1544025162-d76694265947?w=1800&q=85');
  filter: brightness(0.28) saturate(0.5);
}
[data-theme="dark"] #reservation .bg-img {
  filter: brightness(0.15) saturate(0.3);
}
#reservation .overlay {
  background: linear-gradient(to left, rgba(5,2,0,0.88), rgba(5,2,0,0.7));
}

.res-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.res-contacts {
  margin-top: 36px;
}
.res-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.res-info-item:last-of-type {
  border-bottom: none;
}
.res-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
}
.res-info-item h4 {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 4px;
}
.res-info-item p {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

/* Form */
.form-box {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 36px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: #fff;
  transition: all 0.3s;
  outline: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(192, 98, 42, 0.15);
}
.form-group select option {
  background: #140a04;
  color: #fff;
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.form-submit {
  margin-top: 18px;
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}
.form-submit:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(192, 98, 42, 0.42);
}
.success-msg {
  display: none;
  background: rgba(42, 106, 58, 0.8);
  color: #fff;
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: center;
  backdrop-filter: blur(6px);
}

/* =============================================
   CONTACTS SECTION
   ============================================= */
#contacts .bg-img {
  background-image: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1800&q=85');
  filter: brightness(0.22) saturate(0.45);
}
[data-theme="dark"] #contacts .bg-img {
  filter: brightness(0.12) saturate(0.3);
}
#contacts .overlay {
  background: rgba(5, 2, 0, 0.82);
}
#contacts {
  min-height: auto;
}
#contacts .content {
  padding: 90px 6vw;
}

.contacts-heading {
  margin-bottom: 40px;
}
.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 26px;
  transition: transform 0.3s, background 0.3s;
}
.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}
.cc-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.contact-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 6px;
}
.contact-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  line-height: 1.65;
}
.contact-card a {
  color: var(--accent2);
  text-decoration: none;
}
.contact-card a:hover {
  text-decoration: underline;
}

.map-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  backdrop-filter: blur(6px);
  text-align: center;
  padding: 20px;
}
.map-placeholder span {
  font-size: 2.5rem;
}
.map-hint {
  font-size: 0.8rem;
  font-family: 'Jost', sans-serif;
  margin-top: 6px;
  opacity: 0.7;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #060200;
  color: rgba(255, 255, 255, 0.35);
  padding: 38px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  color: #fff;
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 20px;
}
footer a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--accent2);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes floatA {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(3deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(-4deg); }
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* =============================================
   RESPONSIVE / MOBILE
   ============================================= */
@media (max-width: 900px) {
  .nav-links      { display: none; }
  .about-inner    { grid-template-columns: 1fr; gap: 30px; }
  .res-inner      { grid-template-columns: 1fr; gap: 30px; }
  .contacts-inner { grid-template-columns: 1fr; gap: 30px; }
  .form-grid      { grid-template-columns: 1fr; }
  .contacts-grid  { grid-template-columns: 1fr; }
  .float-items    { display: none; }
  .gallery-grid   {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gitem.big { grid-row: auto; }
}
