/* ============================================
   ESPAÇO ESCULTURAL CAFÉ
   Since 1991 — Vila Nova Conceição, SP
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Warm earthy palette — home from 1991 */
  --color-bg: #f5efe4;
  --color-bg-alt: #ede4d3;
  --color-cream: #faf6ee;
  --color-ink: #2a2420;
  --color-ink-soft: #4a3f38;
  --color-terracotta: #b8583e;
  --color-terracotta-dark: #8f4130;
  --color-moss: #5c6f4a;
  --color-moss-dark: #3f4d32;
  --color-ochre: #c4933d;
  --color-line: #d4c7b0;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-text: 680px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Subtle paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(184, 88, 62, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(92, 111, 74, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

main, header, footer {
  position: relative;
  z-index: 2;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.display-xl {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144;
  line-height: 0.95;
}

.display-lg {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-variation-settings: "opsz" 144;
}

.display-md {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-variation-settings: "opsz" 48;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-terracotta);
  display: inline-block;
}

p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-ink-soft);
}

p.lead {
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-ink);
}

a {
  color: var(--color-terracotta-dark);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--color-terracotta);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.nav-brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-top: 2px;
}

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

.nav-menu a {
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-terracotta);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--color-terracotta);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-ink);
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-line);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 5rem 2rem 6rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-text .eyebrow {
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-text h1 em {
  color: var(--color-terracotta);
  font-style: italic;
}

.hero-text .lead {
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-image {
  aspect-ratio: 4/5;
  background: var(--color-bg-alt);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(42, 36, 32, 0.25);
}

.hero-image-placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(184, 88, 62, 0.15) 0%, rgba(92, 111, 74, 0.15) 100%),
    radial-gradient(circle at 30% 40%, rgba(196, 147, 61, 0.3) 0%, transparent 60%),
    var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-placeholder svg {
  width: 40%;
  opacity: 0.4;
}

.hero-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--color-ink);
  color: var(--color-cream);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  transform: rotate(-8deg);
  box-shadow: 0 10px 30px -10px rgba(42, 36, 32, 0.4);
}

.hero-badge .since {
  font-size: 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  font-style: normal;
}

.hero-badge .year {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 600px) {
  .hero-badge {
    width: 100px;
    height: 100px;
    bottom: -1rem;
    right: -1rem;
  }
  .hero-badge .year {
    font-size: 1.8rem;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: var(--color-cream);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-cream);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
}

.btn-ghost:hover {
  background: var(--color-ink);
  color: var(--color-cream);
  border-color: var(--color-ink);
}

.btn .arrow {
  transition: transform 0.3s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: var(--space-xl) 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--color-bg-alt);
  max-width: 100%;
  margin: 0;
  padding: var(--space-xl) 2rem;
}

.section-alt-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header .eyebrow {
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

/* ============================================
   FEATURES / VALUE PROPS
   ============================================ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.feature {
  text-align: left;
}

.feature-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3rem;
  color: var(--color-terracotta);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
  font-weight: 300;
}

.feature h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.feature p {
  font-size: 0.95rem;
}

/* ============================================
   IMAGE GALLERY
   ============================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  background: var(--color-bg-alt);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background-image:
    linear-gradient(135deg, rgba(184, 88, 62, 0.08) 0%, rgba(92, 111, 74, 0.08) 100%);
}

.gallery-item svg {
  width: 30%;
  opacity: 0.3;
}

.gallery-item:nth-child(1) { grid-column: span 7; aspect-ratio: 4/3; }
.gallery-item:nth-child(2) { grid-column: span 5; aspect-ratio: 4/5; }
.gallery-item:nth-child(3) { grid-column: span 5; aspect-ratio: 4/5; }
.gallery-item:nth-child(4) { grid-column: span 7; aspect-ratio: 4/3; }

@media (max-width: 768px) {
  .gallery-item {
    grid-column: span 12 !important;
    aspect-ratio: 4/3 !important;
  }
}

/* ============================================
   QUOTE / TESTIMONIAL
   ============================================ */

.quote-block {
  text-align: center;
  padding: var(--space-lg) 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-terracotta);
  line-height: 0.5;
  font-style: italic;
  display: block;
  margin-bottom: 1rem;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-ink);
  margin-bottom: 1.5rem;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* ============================================
   CTA BAND
   ============================================ */

.cta-band {
  background: var(--color-ink);
  color: var(--color-cream);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(184, 88, 62, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(196, 147, 61, 0.15) 0%, transparent 50%);
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-band h2 {
  color: var(--color-cream);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(250, 246, 238, 0.75);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-band .btn {
  background: var(--color-cream);
  color: var(--color-ink);
  border-color: var(--color-cream);
}

.cta-band .btn:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-cream);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-line);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-ink-soft);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.footer-col a {
  color: var(--color-ink);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   PAGE-SPECIFIC: HISTORY
   ============================================ */

.page-hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero .eyebrow {
  margin-bottom: 1.5rem;
}

.prose {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 2rem;
}

.prose p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.prose p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4rem;
  float: left;
  line-height: 0.9;
  padding: 0.5rem 0.75rem 0 0;
  color: var(--color-terracotta);
  font-style: italic;
  font-weight: 300;
}

.prose h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.prose blockquote {
  border-left: 2px solid var(--color-terracotta);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-ink);
}

.timeline {
  max-width: var(--max-width-text);
  margin: 4rem auto;
  padding: 0 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-line);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--color-terracotta);
  font-weight: 300;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ============================================
   PAGE-SPECIFIC: MENU
   ============================================ */

.menu-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.menu-category {
  margin-bottom: 4rem;
}

.menu-category-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-line);
}

.menu-category-header h2 {
  font-size: 2rem;
  color: var(--color-ink);
}

.menu-category-header .eyebrow {
  color: var(--color-ink-soft);
}

.menu-items {
  display: grid;
  gap: 1.5rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: baseline;
}

.menu-item-info h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

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

.menu-item-dots {
  flex: 1;
  border-bottom: 1px dotted var(--color-line);
  transform: translateY(-4px);
  min-width: 40px;
}

.price-card {
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  padding: 3rem;
  text-align: center;
  margin: 4rem auto;
  max-width: 500px;
  border-radius: 2px;
  position: relative;
}

.price-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: var(--color-terracotta);
}

.price-card .eyebrow {
  margin-bottom: 0.5rem;
}

.price-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.price-card .price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--color-terracotta);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.price-card .price-label {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

/* ============================================
   PAGE-SPECIFIC: CONTACT
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.contact-detail {
  margin-bottom: 2rem;
}

.contact-detail .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-terracotta);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.contact-detail .value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-ink);
  line-height: 1.4;
}

.contact-detail a {
  color: var(--color-ink);
}

.contact-detail a:hover {
  color: var(--color-terracotta);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-line);
}

.hours-table td {
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.hours-table td:last-child {
  text-align: right;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-ink-soft);
}

.hours-table tr.closed td:last-child {
  color: var(--color-terracotta);
}

.map-frame {
  aspect-ratio: 1/1;
  background: var(--color-bg-alt);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px -15px rgba(42, 36, 32, 0.25);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.animate-on-scroll {
  opacity: 0;
  animation: fade-up 1s ease-out forwards;
}

.hero-text > * {
  opacity: 0;
  animation: fade-up 1s ease-out forwards;
}

.hero-text .eyebrow { animation-delay: 0.1s; }
.hero-text h1 { animation-delay: 0.25s; }
.hero-text .lead { animation-delay: 0.4s; }
.hero-text .btn-group { animation-delay: 0.55s; }

.hero-image {
  opacity: 0;
  animation: fade-up 1.2s ease-out 0.2s forwards;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
