/* Apple-inspired CSS for Amadeus Catering */

:root {
  /* Color palette from logo */
  --light-blue: #A8DEFF;
  --medium-blue: #5297BF;
  --dark-blue: #003366;
  --gold: #D4AF37;
  
  /* Apple-style neutrals */
  --white: #FFFFFF;
  --light-gray: #F5F5F7;
  --medium-gray: #86868B;
  --dark-gray: #1D1D1F;
  --black: #000000;
  
  /* Typography */
  --heading-font: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --body-font: "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  --logo-font: "Baskerville", serif;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--body-font);
  color: var(--dark-gray);
  background-color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 {
  font-size: 4rem; /* 64px */
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  font-size: 3rem; /* 48px */
  line-height: 1.1;
  font-weight: 600;
}

h3 {
  font-size: 2rem; /* 32px */
  line-height: 1.2;
}

p {
  font-size: 1.125rem; /* 18px */
  line-height: 1.5;
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.small-text {
  font-size: 0.875rem; /* 14px */
  line-height: 1.4;
}

/* Gradient text like Apple */
.gradient-text {
  background: linear-gradient(90deg, var(--medium-blue), var(--light-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Apple-style grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background-color: transparent;
  transition: backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--logo-font);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-gray);
  text-decoration: none;
}

.logo img {
  height: 80px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--medium-blue);
}

.nav-link.active {
  color: var(--medium-blue);
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
}

/* Hero section */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 1.5rem;
  z-index: 1;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Apple-style buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 980px; /* Apple's rounded button style */
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--medium-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--dark-blue);
}

.btn-secondary {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--medium-blue);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.btn-text {
  color: var(--medium-blue);
  padding: 0;
  background: none;
  border-radius: 0;
  position: relative;
}

.btn-text::after {
  content: ">";
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.btn-text:hover::after {
  transform: translateX(5px);
}

/* Product showcase section (Apple style) */
.product-section {
  padding: 6rem 0;
  text-align: center;
  background-color: var(--light-gray);
}

.product-title {
  margin-bottom: 1rem;
}

.product-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--medium-gray);
}

.product-image {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
}

.product-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Horizontal scrolling section (Apple style) */
.scroll-section {
  overflow-x: auto;
  white-space: nowrap;
  padding: 2rem 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.scroll-section::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.scroll-container {
  display: inline-flex;
  padding: 0 1.5rem;
}

.scroll-item {
  flex: 0 0 auto;
  width: 300px;
  margin-right: 1.5rem;
  white-space: normal;
}

/* Gallery grid (Apple style) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1/1;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* Menu section */
.menu-section {
  padding: 6rem 0;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 1rem;
}

.menu-tab {
  padding: 0.5rem 1.5rem;
  margin: 0 0.5rem;
  cursor: pointer;
  color: var(--medium-gray);
  transition: color 0.3s ease;
  position: relative;
}

.menu-tab.active {
  color: var(--dark-gray);
}

.menu-tab.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: var(--medium-blue);
}

.menu-content {
  display: none;
}

.menu-content.active {
  display: block;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.menu-item {
  text-align: center;
}

.menu-item-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.menu-item-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.menu-item-description {
  font-size: 0.875rem;
  color: var(--medium-gray);
}

/* Contact form (Apple style) */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-family: var(--body-font);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--medium-blue);
  box-shadow: 0 0 0 2px rgba(82, 151, 191, 0.2);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--medium-gray);
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
  top: -0.5rem;
  left: 0.5rem;
  font-size: 0.75rem;
  background-color: var(--white);
  padding: 0 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--light-gray);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 0.75rem;
}

.footer-link a {
  color: var(--medium-gray);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-link a:hover {
  color: var(--medium-blue);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 0.75rem;
  color: var(--medium-gray);
}

/* Animations and effects */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Parallax effect */
.parallax {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: translateZ(0);
}

/* Responsive styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    display: block;
  }
  
  .nav-item {
    margin: 0;
  }
  
  .nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .menu-grid,
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .menu-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
