/* Add root variables and heading font (applied site-wide) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

:root {
  --dark-orange: #D9732B; /* dark orange used across header/footer/buttons */
  --dark-orange-rgb: 217, 115, 43; /* new: R G B for rgba(...) */
  --footer-h: 48px; /* base footer height */
  --nav-h: calc(var(--footer-h) * 1.5); /* nav/header height = 1.5 * footer */
}

/* Reset and base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {  
  width: 100%;
  font-family: 'Playfair Display', serif; /* heading font applied globally */
  line-height: 1.6;
  background-color: #f2f2f2;  /* Softer neutral background */
  color: #333;
}

/* Top header area above navigation */
header {
  position: relative;               /* anchor absolute hamburger */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* keep items starting from left */
  background-color: #ffffff;
  padding: 0 24px;
  height: var(--nav-h);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 15px;
  box-sizing: border-box;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Logo Image */
header img {
  margin: 0;           /* prevent auto-centering */
  padding-left: 8px;
  order: 1;            /* ensure logo stays first */
  flex: 0 0 auto;      /* don't let logo grow/shrink */
  max-height: calc(var(--nav-h) - 12px);
  width: auto;
}

/* Navigation */
nav {
  flex: 1 1 auto;
  background: transparent;
  height: 100%;
  padding: 0 12px; /* horizontal padding only, vertical controlled by header height */
  order: 2;
  margin-left: auto;   /* push nav to the right of the header */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  position: relative; /* ensure mobile menu is positioned relative to nav */
}

/* nav links: keep readable on dark orange header */
.nav-menu {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  flex-wrap: wrap;
}

.nav-menu li a {
  color: var(--dark-orange); /* changed from #fff so links contrast on the light header */
  text-decoration: none;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover / active: background uses dark orange (keeps black text for contrast) */
.nav-menu li a:hover,
.nav-menu li a.active {
  background: rgba(var(--dark-orange-rgb), 0.14); /* subtle tinted glass */
  color: #000;
  border: 1px solid rgba(var(--dark-orange-rgb), 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* HAMBURGER BUTTON (hidden on large screens) */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 120;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-orange);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}
.hamburger span::before { transform: translateY(-7px); }
.hamburger span::after  { transform: translateY(5px); }

/* hamburger "open" animation */
nav.open .hamburger span { background: transparent; }
nav.open .hamburger span::before { transform: rotate(45deg) translate(5px, 5px); }
nav.open .hamburger span::after  { transform: rotate(-45deg) translate(5px, -5px); }

/* MOBILE NAV: hide horizontal menu, show vertical when open */
@media (max-width: 900px) {
  header { padding: 0 12px; }

  /* show hamburger, place absolutely at header's right */
  .hamburger {
    display: flex;
    position: absolute;
    right: 12px;            /* right corner */
    top: 50%;
    transform: translateY(-50%);
    z-index: 120;
    order: 3;
  }

  /* nav becomes the last item so dropdown sits below header */
  nav {
    order: 2;
    width: 100%;
  }

  /* hide horizontal menu by default on mobile */
  .nav-menu {
    display: none;
  }

  /* when nav is opened, show vertical menu and force black text */
  nav.open .nav-menu {
    display: flex;
    position: absolute;
    top: calc(var(--nav-h));
    left: 0;
    right: 0;
    background: rgba(var(--dark-orange-rgb), 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    flex-direction: column;
    gap: 0;
    padding: 12px 16px;
    z-index: 90; /* below hamburger so hamburger stays clickable */
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  /* ensure expanded menu links are black for readability */
  nav.open .nav-menu li a {
    color: #000 !important;
  }

  .nav-menu li {
    width: 100%;
    text-align: left;
  }

  .nav-menu li a {
    display: block;
    padding: 12px 14px;
    color: var(--dark-orange);
  }

  .nav-menu li a:focus,
  .nav-menu li a:hover {
    background: rgba(var(--dark-orange-rgb), 0.08);
    color: #000;
  }
}

/* ensure nav-menu acts normally on larger screens */
@media (min-width: 901px) {
  .nav-menu { display: flex !important; flex-wrap: wrap; }
}

/* ensure accessible focus outline visible */
.nav-menu li a:focus,
.hamburger:focus {
  outline: 3px solid rgba(var(--dark-orange-rgb), 0.14);
  outline-offset: 3px;
}

/* Headings */
h1 {
  text-align: center;
  margin: 40px 0 20px;
  color: var(--dark-orange);
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
}

/* Paragraph Sections */
.orange-paragraph-container,
.orange-paragraph-right {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent; /* same as page */
  padding: 30px 20px;
  gap: 30px;
  border-radius: 15px;
  width: calc(100vw - 40px);
  margin-left: calc(-50vw + 50% + 20px);
  box-sizing: border-box;
  flex-wrap: wrap;
  margin-bottom: 30px;
  box-shadow: none;
  border: 0;
}

.orange-paragraph-container p,
.orange-paragraph-right p {
  margin: 0;
  color: #333;
  flex: 1 1 50%;
  text-align: justify;
  padding: 10px;
  max-width: 600px;
}

/* Side images */
.side-image,
.right-side-image {
  flex: 1 1 50%;
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--dark-orange-rgb), 0.12);
  border-top: 1px solid rgba(var(--dark-orange-rgb), 0.14);
  color: #000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 30px rgba(0,0,0,0.06);
  height: var(--footer-h);
  padding: 0 20px;
  font-size: 14px;
  border-radius: 0;
  margin: 0;
  box-sizing: border-box;
  position: static;
  left: 0;
  transform: none;
  max-width: none;
  white-space: normal;
}

/* Keyframes for smooth background animation */
@keyframes fadeInBg {
  0% {
    background-position: 0% 50%;
    opacity: 0;
  }
  100% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

/* Stats counter block (sleek orange animated counters) */
.stats-counter {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 18px 22px;
  border-radius: 14px;
  width: 100%;
  max-width: 900px;
  margin: 18px auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  transform: translateY(0);
  opacity: 0;
  animation: statsFadeIn 700ms ease forwards;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@keyframes statsFadeIn {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  padding: 6px 12px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-orange);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-number .plus {
  font-size: 1.05rem;
  color: var(--dark-orange);
  opacity: 0.95;
  margin-left: 4px;
}

.stat-label {
  margin-top: 6px;
  font-weight: 700;
  color: #444;
  font-size: 0.95rem;
  text-align: center;
}

/* subtle pulse once numbers finish */
.stat.pulse .stat-number {
  animation: pulseOnce 900ms ease 300ms;
}

@keyframes pulseOnce {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  :root { --footer-h: 44px; --nav-h: calc(var(--footer-h) * 1.5); }
  header { height: var(--nav-h); padding: 0 16px; }
  header img { max-height: calc(var(--nav-h) - 10px); }
  nav { padding: 0 8px; }

  .orange-paragraph-container,
  .orange-paragraph-right {
    flex-direction: column;
  }

  .side-image,
  .right-side-image {
    max-width: 100%;
  }

  .nav-menu {
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .menu-list,
  .services-list {
    grid-template-columns: 1fr;
  }

  .menu-list li,
  .services-list li {
    font-size: 1rem;
    padding: 10px 15px;
  }

  .contact-form {
    padding: 0 10px;
  }

  .contact-form button {
    width: 100%;
  }

  header img {
    width: 150px;
  }

  main.container section p {
    max-width: 100%;
  }

  .about-section {
    margin: 20px 10px 30px 10px;
    padding: 20px 15px;
  }

  .stats-counter {
    gap: 12px;
    padding: 14px;
    flex-wrap: wrap;
  }
  .stat-number { font-size: 1.6rem; }
  .stat { min-width: 90px; }
}

/* Menu Page */
.menu-section {
  margin-bottom: 50px;
  padding: 20px;
  background: linear-gradient(135deg, #fff8f0, #fff);
  border-radius: 15px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  animation: fadeInBg 1.5s ease forwards;
  background-size: 200% 200%;
}

/* Menu heading */
.menu-section h2 {
  color: var(--dark-orange);
  margin-bottom: 20px;
  font-size: 1.8rem;
  text-align: center;
  position: relative;
}

.menu-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: rgba(var(--dark-orange-rgb), 0.18);
  margin: 8px auto 0;
  border-radius: 2px;
}

.menu-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.menu-list li {
  background: transparent;
  border-radius: 10px;
  padding: 15px 25px;
  font-size: 1.15rem;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  list-style: none;
}

.menu-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Services Page */
.services-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background: linear-gradient(135deg, #fff8f0, #fff);
  background-size: 200% 200%;
  border-radius: 15px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  animation: fadeInBg 1.5s ease forwards;
  padding: 20px;
}

.services-list li {
  background: transparent;
  border-radius: 10px;
  padding: 15px 25px;
  font-size: 1.15rem;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  list-style: none;
}

.services-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* About Page styling enhancements */
.about-section {
  background: linear-gradient(135deg, #fff8f0, #fff);
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 900px;
  margin: 30px auto 40px auto;
  animation: fadeInBg 1.5s ease forwards;
  background-size: 200% 200%;
  line-height: 1.75;
  color: #444;
  font-size: 1.1rem;
  text-align: justify;
  border-left: 0;
}

/* About page paragraph alignment */
main.container section p {
  text-align: justify;
  max-width: 900px;
  margin: 0 auto 20px auto;
  line-height: 1.7;
  padding: 20px;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff8f0, #fff);
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  animation: fadeInBg 1.5s ease forwards;
  background-size: 200% 200%;
}

/* Contact Page */
.contact-form {
  max-width: 600px;
  margin: 20px auto 40px;
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: var(--dark-orange);
  outline: none;
}

.contact-form button {
  background: rgba(var(--dark-orange-rgb), 0.14);
  color: #000;
  border: 1px solid rgba(var(--dark-orange-rgb), 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--dark-orange);
  color: #000;
}

/* Contact Info */
.contact-info {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  color: #333;
}

.contact-info h2 {
  color: var(--dark-orange);
  margin-bottom: 15px;
  font-weight: 700;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--dark-orange);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}
  text-decoration: underline;
}
