/* ============================================
   Classic Blue Cafe - Main Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1B3A5C;
  --secondary: #2C5F8A;
  --accent: #D4A574;
  --light: #F5F0EB;
  --dark: #1A1A2E;
  --white: #FFFFFF;
  --muted: #6B7B8D;
  --shadow: 0 4px 20px rgba(27, 58, 92, 0.1);
  --shadow-hover: 0 8px 30px rgba(27, 58, 92, 0.2);
  --transition: all 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', 'Segoe UI', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(27, 58, 92, 0.95);
  backdrop-filter: blur(10px);
  padding: 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--primary);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  font-size: 28px;
}

.nav-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.nav-logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 8px 18px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(212, 165, 116, 0.2);
}

.nav-links a.active {
  border-bottom: 2px solid var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(27, 58, 92, 0.7) 0%,
    rgba(26, 26, 46, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease;
}

.hero-badge {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 8px 24px;
  border: 1px solid rgba(212, 165, 116, 0.4);
  border-radius: 30px;
}

.hero h1 {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-dark:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

/* ---------- Section Styles ---------- */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--white);
}

.section-cream {
  background: var(--light);
}

.section-dark {
  background: var(--primary);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Featured Items (Homepage) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.featured-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.featured-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.featured-card-body {
  padding: 28px;
  border-top: 3px solid var(--accent);
}

.featured-card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.featured-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.featured-card-body .price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- About Teaser (Homepage) ---------- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-teaser-img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-teaser-content h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.about-teaser-content .divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 20px;
  border-radius: 2px;
}

.about-teaser-content p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.about-teaser-content .btn {
  margin-top: 10px;
}

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 58, 92, 0.85);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Menu Page ---------- */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.page-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(27, 58, 92, 0.6) 0%,
    rgba(26, 26, 46, 0.8) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Menu Category */
.menu-category {
  margin-bottom: 60px;
}

.menu-category:last-child {
  margin-bottom: 0;
}

.menu-category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.menu-category-icon {
  font-size: 2rem;
}

.menu-category-header h3 {
  font-size: 2rem;
}

.menu-category-header .line {
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.menu-item:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
}

.menu-item-info h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.menu-item-info p {
  font-size: 0.9rem;
  color: var(--muted);
}

.menu-item-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  margin-left: 16px;
}

/* ---------- About Page ---------- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-story-img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-story-content h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.about-story-content .divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 20px;
  border-radius: 2px;
}

.about-story-content p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 3px solid var(--accent);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Contact Page ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form-group {
  margin-bottom: 24px;
}

.contact-form-group label {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-form-group input,
.contact-form-group textarea,
.contact-form-group select {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  border: 2px solid #e0d8d0;
  border-radius: 6px;
  transition: var(--transition);
  outline: none;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus,
.contact-form-group select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.1);
}

.contact-form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form-group .error-msg {
  display: none;
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 6px;
}

.contact-form-group.error input,
.contact-form-group.error textarea {
  border-color: #c0392b;
}

.contact-form-group.error .error-msg {
  display: block;
}

.contact-info-card {
  background: var(--primary);
  color: var(--white);
  padding: 40px;
  border-radius: 8px;
  height: fit-content;
}

.contact-info-card h3 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-info-card > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .icon {
  font-size: 1.5rem;
  margin-top: 2px;
}

.contact-info-item h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.contact-info-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
}

.contact-social a:hover {
  background: var(--accent);
  color: var(--dark);
}

/* Success Message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show {
  display: block;
}

.form-success .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--dark);
}

.footer-col h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

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

  .about-teaser,
  .about-story {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-teaser-img,
  .about-story-img {
    height: 350px;
  }

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

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

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--primary);
    padding: 20px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

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

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

  .page-hero h1 {
    font-size: 2.5rem;
  }

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

  .cta-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}
