/* Homepage styles — Oasis restaurant */

/* ---- Hero Slider ---- */
.hero-slider { position: relative; width: 100%; height: 368px; overflow: hidden; background: #1a0a0a; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.7s ease; display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
}
.hero-slide-inner {
  position: relative; z-index: 1;
  max-width: 1160px; margin: 0 auto; padding: 0 40px; width: 100%;
}
.hero-slide-title {
  font: 700 36px/1.2 var(--font-head); color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5); margin-bottom: 14px;
}
.hero-slide-text {
  font: 400 16px/1.6 var(--font-main); color: rgba(255,255,255,0.92);
  max-width: 480px; margin-bottom: 28px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.hero-slide-btn {
  display: inline-block; padding: 12px 30px;
  background: var(--red); color: #fff;
  font: 700 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.hero-slide-btn:hover { background: transparent; color: #fff; border-color: #fff; }
.hero-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer; transition: background 0.2s;
}
.hero-dot.active { background: #fff; }
.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(0,0,0,0.35); color: #fff;
  border: none; cursor: pointer; width: 40px; height: 40px;
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.hero-prev:hover, .hero-next:hover { background: rgba(0,0,0,0.6); }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
@media(max-width:600px) {
  .hero-slider { height: 224px; }
  .hero-slide-title { font-size: 22px; }
  .hero-slide-text { font-size: 13px; max-width: 280px; }
}
:root {
  --red: #7f0403;
  --red-dark: #5a0202;
  --red-light: #aa2a27;
  --gold: #c8960c;
  --bg: #ffffff;
  --bg-light: #f7f5f2;
  --text: #333333;
  --text-muted: #777777;
  --border: #e0e0e0;
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --font-main: 'Open Sans', sans-serif;
  --font-head: 'Ubuntu', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-light); }
img { max-width: 100%; }

/* ---- Site header (white) ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.site-header-inner {
  position: relative;
  max-width: 1160px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo-img { display: flex; align-items: center; flex-shrink: 0; }
.logo-img img { display: block; width: auto; max-height: 80px; }

.header-contacts { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 10px; }
.header-phone-icon {
  width: 36px; height: 36px;
  background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; flex-shrink: 0;
}
.header-phone-num {
  font-size: 22px; font-weight: 700; font-family: var(--font-head);
  color: var(--text); display: block; line-height: 1.2;
}
.header-phone-num:hover { color: var(--red); }
.header-phone-sub { font-size: 11px; color: var(--text-muted); }
.btn-call {
  display: inline-block; padding: 9px 20px;
  border: 2px solid var(--red); color: var(--red); border-radius: var(--radius);
  font-weight: 700; font-size: 13px; font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.btn-call:hover { background: var(--red); color: #fff; }

/* ---- Nav bar ---- */
.main-nav {
  background: var(--red);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.main-nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: center;
  list-style: none;
}
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; }
.main-nav li { list-style: none; }
.main-nav a {
  display: inline-block; padding: 14px 18px;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.main-nav a::after { content: '›'; margin-left: 6px; opacity: 0.6; font-size: 16px; }
.main-nav a:last-child::after { display: none; }
.main-nav a:hover, .main-nav a.active { background: rgba(0,0,0,0.15); color: #fff; }

/* ---- Mobile nav ---- */
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.burger span { display: block; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.mob-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 400; }
.mob-overlay.open { display: block; }
.mob-nav {
  position: fixed; top: 0; right: -300px; bottom: 0; width: 280px;
  background: var(--red-dark); z-index: 500; transition: right 0.3s; overflow-y: auto;
}
.mob-nav.open { right: 0; }
.mob-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mob-close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 20px; cursor: pointer; }
.mob-nav-body { padding: 8px 0; }
.mob-link {
  display: block; padding: 13px 20px;
  color: rgba(255,255,255,0.9); font-family: var(--font-head); font-size: 15px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mob-link:hover { background: rgba(0,0,0,0.15); color: #fff; }
.mob-cta {
  display: block; margin: 12px 20px; padding: 12px 20px;
  background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.4);
  color: #fff; border-radius: var(--radius); font-weight: 700;
  text-align: center; font-family: var(--font-head); text-transform: uppercase;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 480px;
  background: #1a0000 url('images/hero-bg.jpg') center/cover no-repeat;
  display: flex; align-items: center; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(90,2,2,0.88) 0%, rgba(90,2,2,0.7) 45%, rgba(0,0,0,0.1) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1160px; margin: 0 auto; padding: 80px 20px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero h1 {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 700;
  color: var(--white); line-height: 1.2; margin-bottom: 14px;
}
.hero p { font-size: 1rem; color: rgba(255,255,255,0.9); margin-bottom: 10px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 11px 28px; border-radius: var(--radius);
  font-weight: 700; font-family: var(--font-head); font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.04em;
  cursor: pointer; transition: background 0.15s, color 0.15s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-light); border-color: var(--red-light); color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-outline-red { background: transparent; border-color: var(--red); color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; }

/* ---- Features bar ---- */
.features-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.features-bar-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.feature-item { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.feature-icon { font-size: 36px; flex-shrink: 0; color: var(--text-muted); }
.feature-icon img { width: 48px; height: 48px; object-fit: contain; opacity: 0.6; }
.feature-text { font-size: 14px; color: var(--text); line-height: 1.4; font-weight: 600; }

/* ---- Sections ---- */
.section { padding: 48px 20px; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--red-dark); color: #fff; }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.section-title {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
  position: relative; padding-bottom: 12px;
}
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 48px; height: 3px; background: var(--red); border-radius: 2px;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-title::after { background: rgba(255,255,255,0.4); }
.section-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; margin-top: 8px; }
.section-dark .section-sub { color: rgba(255,255,255,0.7); }
.text-center { text-align: center; }
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }

/* ---- Cards grid ---- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.card-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.card-icon { font-size: 36px; margin-bottom: 12px; }
.card-item h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 8px; }
.card-item p { font-size: 14px; color: var(--text-muted); }
.card-item .btn { margin-top: 16px; }

/* ---- Contact form ---- */
#form { scroll-margin-top: 60px; }
.form-section { background: var(--bg-light); padding: 56px 20px; }
.form-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px; max-width: 640px;
  margin: 0 auto; box-shadow: var(--shadow);
}
.form-wrap h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 20px; color: var(--text); }
.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text-muted); }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font-main); background: #fff; color: var(--text);
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--red); }
.form-group textarea { resize: vertical; }

/* ---- Home two-column layout ---- */
.home-wrap {
  max-width: 1100px; margin: 0 auto; padding: 36px 24px;
  display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start;
}
.home-main h1 {
  font: 700 26px/1.35 var(--font-head); color: #222; margin-bottom: 22px;
}
.home-main p {
  font: 400 15px/1.75 var(--font-main); color: #444; margin-bottom: 14px;
}
.home-main p strong { font-weight: 600; color: #222; }
.home-main p a { color: var(--red); }
.home-main p a:hover { text-decoration: underline; }

/* ---- Home sidebar blocks ---- */
.home-sidebar { display: flex; flex-direction: column; gap: 32px; }

.hs-block-title {
  font: 700 20px/1.2 var(--font-head); color: #222; margin-bottom: 12px;
  border-bottom: 3px solid var(--red); padding-bottom: 8px;
}
.hs-news-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.hs-news-head h2 { font: 700 20px/1.2 var(--font-head); color: #222; margin: 0; }
.hs-all-news {
  font: 600 11px/1 var(--font-main); color: var(--red); border: 1px solid var(--red);
  padding: 5px 10px; text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none; white-space: nowrap;
}
.hs-all-news:hover { background: var(--red); color: #fff; }
.hs-news-item {
  display: flex; gap: 12px; align-items: flex-start;
  border-bottom: 1px solid #eee; padding-bottom: 14px; margin-bottom: 14px;
}
.hs-news-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.hs-news-thumb {
  width: 80px; height: 60px; object-fit: cover; flex-shrink: 0; border-radius: 2px;
}
.hs-news-date { font: 400 11px/1 var(--font-main); color: #999; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.hs-news-title { font: 600 13px/1.4 var(--font-main); color: var(--red); margin-bottom: 4px; display: block; text-decoration: none; }
.hs-news-title:hover { text-decoration: underline; }
.hs-news-desc { font: 400 12px/1.5 var(--font-main); color: #555; }

.hs-dish-img { width: 100%; border-radius: 3px; display: block; margin-bottom: 8px; }
.hs-dish-caption { font: 400 13px/1.5 var(--font-main); color: #333; margin-bottom: 2px; }
.hs-dish-price { font: 600 13px/1 var(--font-main); color: var(--red); }

.hs-hours-text { font: 400 14px/1.6 var(--font-main); color: #444; }

@media(max-width: 800px) {
  .home-wrap { grid-template-columns: 1fr; padding: 24px 16px; gap: 32px; }
}

/* ---- News sidebar (legacy, unused) ---- */

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---- Footer ---- */
footer { background: #2a2a2a; color: rgba(255,255,255,0.75); padding-top: 40px; }
.ft-top {
  max-width: 1160px; margin: 0 auto; padding: 0 20px 36px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
}
.ft-about { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 12px; line-height: 1.8; }
.ft-col h5 {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9); margin-bottom: 14px;
  border-bottom: 2px solid var(--red); padding-bottom: 8px; display: inline-block;
}
.ft-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 7px; }
.ft-col a:hover { color: var(--white); }
.ft-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); max-width: 1160px; margin: 0 auto;
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.35);
}
.ft-bottom a { color: rgba(255,255,255,0.35); }
.ft-social { display: flex; gap: 10px; align-items: center; }
.ft-social-link { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); transition: background 0.2s, color 0.2s; }
.ft-social-link:hover { background: var(--red); color: #fff; }
.ft-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ---- Sticky header wrap ---- */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 300;
}
.site-header { transition: padding 0.25s ease; }
.logo-img img { transition: max-height 0.25s ease; }
.header-contacts { transition: opacity 0.2s ease; }
.header-contacts { display: none; }
.header-compact {
  display: flex; align-items: center; gap: 20px; flex-shrink: 0;
  opacity: 1; pointer-events: auto;
  position: static;
}
.header-compact-item {
  display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text);
}
.header-compact-item .hci-icon {
  width: 28px; height: 28px; background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; flex-shrink: 0;
}
.header-compact-item a { color: var(--text); font-weight: 600; }
.header-compact-item a:hover { color: var(--red); }

body.page-scrolled .header-wrap { box-shadow: 0 2px 12px rgba(0,0,0,0.12); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .ft-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger { display: flex; margin-left: auto; }
  .site-header-inner { flex-wrap: nowrap; gap: 8px; }
  .logo-img img { max-height: 44px; }
  .header-compact .header-compact-item { display: none; }
  .header-compact { gap: 8px; justify-content: flex-end; }
  .header-compact .btn-call { font-size: 12px; padding: 7px 12px; white-space: nowrap; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 32px 16px; }
  .section-title { font-size: 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .ft-top { grid-template-columns: 1fr; }
  .ft-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-inner { padding: 48px 16px; }
  .features-bar-inner { grid-template-columns: 1fr; }
  .btn-call { display: none; }
  .header-compact .btn-call { display: none; }
}
