/* ====================== style.css ====================== */
/* Matute 12 — Gastrobar Madrid | Обновлённая версия */

:root {
  --primary: #8C1F2F;     /* винный / бордовый */
  --dark: #1A1A1A;        /* почти чёрный */
  --accent: #D4AF37;      /* золотистый */
  --light: #F5F0E8;       /* кремовый фон */
  --text: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Playfair Display', serif;
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
}

/* ====================== CONTAINER ====================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* ====================== HEADER ====================== */
header {
  background-color: var(--dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 2px;
  white-space: nowrap;
}

.logo span {
  color: white;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 40px;                    /* расстояние между пунктами меню */
  flex-wrap: nowrap;            /* строго в одну строку */
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.08rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

nav a:hover {
  color: var(--accent);
}

/* ====================== HERO ====================== */
.hero {
  height: 85vh;
  min-height: 600px;
  background-image: url('hero.jpg');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(26,26,26,0.45), rgba(140,31,47,0.55));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 15px;
  text-shadow: 0 3px 15px rgba(0,0,0,0.7);
}

.hero p {
  font-size: 1.45rem;
  margin-bottom: 35px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 14px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.12rem;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.btn:hover {
  background-color: transparent;
  border-color: white;
  color: white;
}

/* ====================== MAIN ====================== */
main {
  padding: 80px 0;
}

.section {
  margin-bottom: 100px;
}

.section-title {
  font-size: 2.8rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 3px;
  background: var(--accent);
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
}

/* ====================== FOOTER ====================== */
footer {
  background-color: var(--dark);
  color: #ccc;
  padding: 70px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-col h3 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 18px;
  margin-top: 25px;
}

.social-links a {
  font-size: 1.7rem;
  color: #ccc;
}

.copyright {
  text-align: center;
  margin-top: 60px;
  padding-top: 25px;
  border-top: 1px solid #333;
  font-size: 0.95rem;
  color: #777;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 992px) {
  .container {
    padding-left: 25px;
    padding-right: 25px;
  }
  
  nav ul {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
    gap: 15px;
  }
  
  nav ul {
    gap: 20px;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 3.4rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
}