/* Base Styles */
:root {
  --primary-color: #FF6200; /* Dutch orange */
  --secondary-color: #003082; /* Dutch blue */
  --accent-color: #F9D423;
  --text-color: #333333;
  --light-text: #777777;
  --background-light: #F8F8F8;
  --background-dark: #222222;
  --white: #FFFFFF;
  --black: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  padding: 10px 25px;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

nav ul li a.active {
  color: var(--primary-color);
}

/* Hero Sections */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/cafe-exterior.webp') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
}

.hero h1 {
  font-size: 60px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 22px;
  margin-bottom: 30px;
}

.menu-hero, .about-hero, .contact-hero, .legal-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/cafe-exterior-2.webp') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
}

.menu-hero h1, .about-hero h1, .contact-hero h1, .legal-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.menu-hero p, .about-hero p, .contact-hero p {
  font-size: 20px;
}

/* Featured Section */
.featured {
  padding: 80px 0;
  background-color: var(--background-light);
}

.featured h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
}

.featured-item {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-item img {
  width: 50%;
  height: 400px;
  object-fit: cover;
}

.featured-content {
  width: 50%;
  padding: 40px;
}

.featured-content h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.featured-content p {
  margin-bottom: 30px;
  font-size: 16px;
  color: var(--light-text);
}

/* About Preview */
.about-preview {
  padding: 80px 0;
}

.about-preview .container {
  display: flex;
  align-items: center;
}

.about-content {
  width: 50%;
  padding-right: 40px;
}

.about-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.about-content p {
  margin-bottom: 30px;
  font-size: 16px;
}

.about-image {
  width: 50%;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--white);
  text-align: center;
}

.testimonials h2 {
  font-size: 36px;
  margin-bottom: 50px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 16px;
}

.author {
  font-weight: 600;
}

/* Menu Page Styles */
.menu-section {
  padding: 80px 0;
}

.menu-category {
  margin-bottom: 60px;
}

.menu-category h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.menu-item {
  margin-bottom: 30px;
  position: relative;
}

.featured-item {
  background-color: var(--background-light);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.item-header h3 {
  font-size: 20px;
  color: var(--secondary-color);
}

.price {
  font-weight: 600;
  color: var(--primary-color);
}

.item-description {
  color: var(--light-text);
  font-size: 15px;
}

.highlight-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.menu-note {
  text-align: center;
  font-style: italic;
  color: var(--light-text);
  margin-top: 50px;
}

/* About Page Styles */
.about-content {
  padding: 80px 0;
}

.about-history {
  margin-bottom: 60px;
}

.about-history h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.about-history p {
  margin-bottom: 20px;
}

.about-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.about-image-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-team {
  margin-bottom: 60px;
}

.about-team h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.team-member {
  display: flex;
  align-items: center;
  gap: 40px;
}

.team-member img {
  width: 50%;
  border-radius: 10px;
}

.team-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.about-values {
  margin-bottom: 60px;
}

.about-values h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--secondary-color);
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-item {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.value-item h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Contact Page Styles */
.contact-content {
  padding: 80px 0;
}

.contact-content .container {
  display: flex;
  gap: 50px;
}

.contact-info {
  width: 40%;
}

.contact-info h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.contact-info address {
  font-style: normal;
  margin-bottom: 40px;
}

.contact-info address p {
  margin-bottom: 15px;
}

.social-links {
  margin-top: 40px;
}

.social-links h2 {
  margin-bottom: 20px;
}

.social-icon {
  display: inline-block;
  margin-right: 15px;
  color: var(--primary-color);
  font-weight: 600;
}

.contact-form {
  width: 60%;
  background-color: var(--background-light);
  padding: 40px;
  border-radius: 10px;
}

.contact-form h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Raleway', sans-serif;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.map {
  padding: 0 0 80px;
}

.map h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

.map-embed {
  height: 400px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.map-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Legal Pages */
.legal-content {
  padding: 80px 0;
}

.legal-content h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.legal-content h3 {
  font-size: 24px;
  margin: 30px 0 15px;
  color: var(--primary-color);
}

.legal-content p {
  margin-bottom: 20px;
}

.legal-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

/* Footer Styles */
footer {
  background-color: var(--background-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-section p {
  margin-bottom: 15px;
  color: #bbb;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #bbb;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #444;
  color: #bbb;
  font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .featured-item {
      flex-direction: column;
  }
  
  .featured-item img,
  .featured-content {
      width: 100%;
  }
  
  .about-preview .container {
      flex-direction: column;
  }
  
  .about-content,
  .about-image {
      width: 100%;
  }
  
  .about-content {
      padding-right: 0;
      margin-bottom: 40px;
  }
  
  .team-member {
      flex-direction: column;
  }
  
  .team-member img {
      width: 100%;
      margin-bottom: 30px;
  }
  
  .contact-content .container {
      flex-direction: column;
  }
  
  .contact-info,
  .contact-form {
      width: 100%;
  }
}

@media (max-width: 768px) {
  header .container {
      flex-direction: column;
  }
  
  nav ul {
      margin-top: 20px;
  }
  
  nav ul li {
      margin-left: 15px;
      margin-right: 15px;
  }
  
  .hero h1 {
      font-size: 48px;
  }
  
  .menu-hero h1, .about-hero h1, .contact-hero h1 {
      font-size: 36px;
  }
}

@media (max-width: 576px) {
  nav ul {
      flex-wrap: wrap;
      justify-content: center;
  }
  
  nav ul li {
      margin: 5px 10px;
  }
  
  .hero h1 {
      font-size: 36px;
  }
  
  .hero p {
      font-size: 18px;
  }
  
  .about-image-grid {
      grid-template-columns: 1fr;
  }
}

button {
  border: none;
}

.responsive-map {
  position: relative;
  padding-bottom: 56.25%; 
  height: 0;
  overflow: hidden;
}

.responsive-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal-content ul li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

/* Table of Contents */
.policy-toc {
  background: #ffffff;
  border: 1px solid #e3e3e3;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}
.policy-toc h2 {
  margin-top: 0;
  font-size: 1.75rem;
}
.policy-toc ul {
  list-style: none !important;
  padding: 0;
  display: flex;
  flex-direction: column;
  margin: 0.5rem 0 0;
}
.policy-toc li {
  list-style: none;
  margin: 0.35rem 0;
  padding-left: 0.75rem;
  position: relative;
}
.policy-toc a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  flex-direction: column;
}
.policy-toc a:hover,
.policy-toc a:focus {
  text-decoration: underline;
}
.policy-toc a:active,
.policy-toc .current {
  font-weight: 700;
}

/* Smooth anchor scrolling and target highlighting */
html {
  scroll-behavior: smooth;
}
:target {
  scroll-margin-top: 100px; /* учитывает фиксированный хедер, если есть */
}
:target h2::after,
:target h3::after {
  content: "";
  display: block;
  height: 4px;
  background: #d2691e;
  width: 60px;
  margin-top: 6px;
  border-radius: 2px;
}
