/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-glass: rgba(20, 20, 20, 0.85);
  --gold: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa8c2c;
  --gold-glow-rgb: 212, 175, 55;
  --text-main: #f5f5f5;
  --text-muted: #a3a3a3;
  --border-color: rgba(212, 175, 55, 0.25);
  --transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  --glow-gold: rgba(212, 175, 55, 0.4);
}

/* --- Global Keyframes & Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--gold-glow-rgb), 0.25); }
  50% { box-shadow: 0 0 40px rgba(var(--gold-glow-rgb), 0.55); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Global Resets & Standards --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  animation: fadeInUp 0.8s ease-out;
}

h1, h2, h3, .brand-title {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

ul {
  list-style: none;
}

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

/* --- Fixed Header Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0.8rem 5%;
  transition: var(--transition);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--gold);
  transition: var(--transition);
}

.logo-link:hover img {
  transform: rotate(360deg);
  box-shadow: 0 0 15px var(--gold);
}

.v-line {
  width: 1px;
  height: 24px;
  background-color: var(--gold);
  opacity: 0.8;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
  transition: var(--transition);
}

.brand-name:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--gold);
}

nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

nav a:not(.order-btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

nav a:not(.order-btn):hover {
  color: var(--gold);
}

nav a:not(.order-btn):hover::after {
  width: 100%;
}

nav .order-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

nav .order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

nav .order-btn:active {
  transform: scale(0.96);
}

/* Hamburger Icon Styling */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --- Hero Section & Backgrounds --- */
#top.hero-with-bg {
  width: 100%;
  position: relative;
  background: linear-gradient(rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.88)), 
              url('cafe-bg.jpg') center/cover no-repeat fixed; 
  padding: 140px 8% 90px 8%; 
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3.5rem;
}

#top span:first-child {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  padding: 0.4rem 1.1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  margin-bottom: 1.2rem;
  transition: var(--transition);
}

#top h1 {
  font-size: 3.6rem;
  line-height: 1.18;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

#top h1 span {
  color: var(--gold) !important;
  font-style: italic !important;
  font-size: inherit !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: inline !important;
}

#top p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

#top > div > div:nth-of-type(1) {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* --- Upgraded Visit Full Menu Button --- */
#top a.visit-menu-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  border: 1px solid var(--gold);
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  cursor: pointer;
}

#top a.visit-menu-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55);
  color: #000;
}

#top a.visit-menu-btn:active {
  transform: scale(0.96);
}

/* Ratings & Typewriter Row */
#top > div > div:nth-of-type(2),
.hero-ratings-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  padding-top: 1.2rem !important;
  border-top: 1px solid var(--border-color) !important;
}

#top > div > div:nth-of-type(2) > div {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.9rem !important;
  color: var(--text-main) !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.typewriter-container {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  background: rgba(212, 175, 55, 0.12) !important;
  border: 1px solid var(--gold) !important;
  padding: 0.4rem 1rem !important;
  border-radius: 50px !important;
  color: var(--gold-light) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  white-space: nowrap !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15) !important;
  min-height: 40px !important;
  min-width: 175px !important;
  overflow: hidden !important;
}

.cursor {
  display: inline-block !important;
  color: var(--gold) !important;
  animation: blink 0.7s infinite !important;
  margin-left: 3px !important;
}

#top > div:nth-child(2) {
  display: flex;
  justify-content: center;
  align-items: center;
}

#top > div:nth-child(2) img {
  width: 310px;
  height: 310px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  animation: float 4s ease-in-out infinite, pulseGlow 3.5s ease-in-out infinite;
  transition: var(--transition);
}

/* --- About Section --- */
section {
  padding: 90px 5%;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#about {
  text-align: center;
  max-width: 800px;
}

#about > div > div:first-child {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#about h2 {
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
}

#about h2 span {
  color: var(--gold);
}

#about p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

#about > div > div:last-child {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

#about span[class], #about > div > div:last-child span {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--gold-light);
  transition: var(--transition);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

/* --- Visit & Timing Section --- */
#visit.visit-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 90px 5%;
  text-align: center;
  background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), 
              url('visit-bg.jpg') center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visit-container {
  max-width: 800px;
  width: 100%;
}

.visit-badge {
  display: inline-block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

#visit h2 {
  font-size: 2.6rem;
  margin-bottom: 2rem;
  color: #fff;
}

#visit h2 span {
  color: var(--gold);
}

.visit-details, .visit-hours, .booking-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 1.8rem;
  border-radius: 16px;
  max-width: 600px;
  margin: 0 auto 1.8rem auto;
  transition: var(--transition);
}

/* Booking Form Styles */
.booking-card h3 {
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.booking-card input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.booking-card input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.booking-btn {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  margin-top: 0.5rem;
}

.booking-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.booking-btn:active {
  transform: scale(0.98);
}

.visit-hours h3 {
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.visit-hours ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d1d1;
}

.visit-hours ul li span:last-child {
  color: var(--gold);
  font-weight: 600;
}

/* --- Contact Section --- */
#contact {
  text-align: center;
  max-width: 800px;
  padding: 80px 5%;
}

#contact h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

#contact h2 span {
  color: var(--gold);
}

#contact p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
  align-items: center;
}

.contact-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
}

.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-actions a {
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-actions a[href^="tel"] {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.contact-actions a[target="_blank"] {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--gold);
}

/* --- Footer --- */
footer {
  max-width: 1200px;
  margin: 3rem auto 0 auto;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px 16px 0 0;
}

footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

footer img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  object-fit: cover;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  #top.hero-with-bg {
    padding-top: 130px;
    gap: 2.5rem;
  }

  #top h1 {
    font-size: 3rem;
  }

  #top > div:nth-child(2) img {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.7rem 4%;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 65px;
    right: -100%;
    width: 220px;
    background-color: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    align-items: flex-start;
  }

  nav.active {
    right: 4%;
  }

  nav a {
    width: 100%;
  }

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

  section {
    padding: 60px 4%;
  }

  #top.hero-with-bg {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 110px;
    padding-bottom: 50px;
    background-attachment: scroll;
  }

  #top h1 {
    font-size: 2.2rem;
  }

  #top p {
    margin: 0 auto 1.5rem auto;
    font-size: 0.98rem;
  }

  #top > div > div:nth-of-type(1) {
    justify-content: center;
  }

  #top > div > div:nth-of-type(2),
  .hero-ratings-row {
    justify-content: center !important;
  }

  #top > div:nth-child(2) {
    order: -1;
    margin-bottom: 1rem;
  }

  #top > div:nth-child(2) img {
    width: 200px;
    height: 200px;
  }

  #about h2, #visit h2, #contact h2 {
    font-size: 2rem;
  }

  #visit.visit-section {
    background-attachment: scroll;
    padding: 60px 4%;
  }

  .visit-details, .visit-hours, .booking-card {
    padding: 1.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .visit-hours ul li {
    font-size: 0.88rem;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.8rem 4%;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 0.92rem;
  }

  .v-line {
    height: 18px;
  }

  .logo-link img {
    width: 36px;
    height: 36px;
  }

  #top h1 {
    font-size: 1.85rem;
  }

  .typewriter-container {
    min-width: 150px !important;
    font-size: 0.8rem !important;
    padding: 0.35rem 0.8rem !important;
  }

  #top > div > div:nth-of-type(1) {
    flex-direction: column;
    width: 100%;
  }

  #top a.visit-menu-btn, 
  .contact-actions a {
    width: 100%;
    text-align: center;
  }

  .contact-item {
    border-radius: 16px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }
}