/* ===================================
   Fresco Portugal – Style Sheet
   Mobile-first responsive design
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Nerissa&display=swap');

/* CSS Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Color Palette - Fresco Portugal */
  --color-primary-dark: #05493C;
  --color-primary: #065830;
  --color-secondary: #F8EE2CA;
  --color-tertiary: #E6DCAC;
  --color-background: #FFFAE6;
  --color-text: #05493C;
  --color-text-light: #065830;
  --color-white: #ffffff;
  --color-shadow: rgba(5, 73, 60, 0.08);
  --color-shadow-strong: rgba(5, 73, 60, 0.12);

  /* Typography */
  --font-family: Arial, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: var(--spacing-sm);
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-background);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   Site Header (Home Page)
   =================================== */
.home-page {
  background: #FFFAE6;
  min-height: 100vh;
}

.site-header {
  background: linear-gradient(135deg, #065830 0%, #044e29 100%);
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-sm);
  margin: -1rem -1rem 0 -1rem;
  margin-bottom: var(--spacing-lg);
  border-radius: 0 0 2rem 2rem;
  box-shadow: 0 8px 24px var(--color-shadow-strong);
}

.header-content {
  animation: fadeInDown 0.6s ease-out;
}

.site-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFAE6;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: 'Nerissa', sans-serif;
}

/* ===================================
   Navigation Buttons (Home Page)
   =================================== */
.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  min-height: 76px;
  font-family: inherit;
  font-size: 1.375rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  color: #FFFAE6;
  border: none;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px var(--color-shadow-strong);
}

.nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0s;
  z-index: 0;
  pointer-events: none;
}

.nav-button:hover::before {
  left: 100%;
}

.nav-button-label,
.nav-button-icon {
  position: relative;
  z-index: 1;
}

.nav-button-icon {
  font-size: 1.75rem;
  margin-left: var(--spacing-md);
}

/* Individual button colors */
.nav-button-brunch {
  background: #065830;
}

.nav-button-brunch:hover {
  background: #077535;
  transform: translateY(-4px);
  box-shadow: 0 10px 28px var(--color-shadow-strong);
}

.nav-button-almoco {
  background: #065830;
}

.nav-button-almoco:hover {
  background: #077535;
  transform: translateY(-4px);
  box-shadow: 0 10px 28px var(--color-shadow-strong);
}

.nav-button-bebidas {
  background: #065830;
  color: #FFFAE6;
}

.nav-button-bebidas:hover {
  background: #077535;
  transform: translateY(-4px);
  box-shadow: 0 10px 28px var(--color-shadow-strong);
}

/* ===================================
   Page Header (Section Pages)
   =================================== */
.page-header {
  padding: var(--spacing-sm) 0 var(--spacing-md);
}

.back-link {
  display: inline-block;
  padding: var(--spacing-xs) 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.back-link:hover {
  color: var(--color-text-light);
  text-decoration: underline;
}

.back-link:active {
  color: var(--color-primary-dark);
}

.back-link:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.section-title {
  margin: var(--spacing-sm) 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

/* ===================================
   Menu Images (Section Pages)
   =================================== */
.menu-images {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-xl);
}

.menu-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px var(--color-shadow);
}

/* ===================================
   Accessibility
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard navigation */
.nav-button:focus-visible,
.back-link:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

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

/* ===================================
   Footer
   =================================== */
.footer {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) 0;
  margin-top: var(--spacing-xl);
}

.social-link {
  display: inline-block;
  width: 32px;
  height: 32px;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.social-link:hover {
  opacity: 0.7;
}

.social-link svg {
  width: 100%;
  height: 100%;
  fill: var(--color-text);
}
