@import "tailwindcss";

/* Global custom styles extracted from index.html and nav behaviour */
:root {
  --font-playfair: "Playfair Display", serif;

}

body {
  font-family: "Inter", sans-serif;
  color: #333;
  background-color: #fdfdfd;
}

/* Typography in nav (uses Playfair for nicer display) */
nav a, .nav-link {
  font-family: var(--font-playfair);
}

/* Reset any nav display overrides so Bootstrap collapse works correctly */
nav {
  display: block;
}

/* Ensure the navbar container matches requested max-width */
nav.container {
  max-width: 947px !important;
  padding-left: 0;
  padding-right: 0;
}

/* Reset Bootstrap list spacing if present and ensure no gap between nav items */
.navbar-nav {
  gap: 0;
  margin: 0;
  padding: 0;

}

.navbar-nav .nav-item {
  margin: 0;
  padding: 0;

}

nav a,
.nav-link,
.navbar-nav .nav-link {
  /* switch from inline-block to block + flex so there is no inter-item whitespace and widths are equal */
  display: block; /* previously inline-block */
  flex: 1 1 0;
  text-align: center;
  position: relative;
  padding: 16px 0 !important; /* remove horizontal padding so widths match */
  text-decoration: none !important;
  color: #333 !important;
  box-sizing: border-box;
  font-size: 15px !important;
  white-space: nowrap;
}

/* Top border indicator: hidden by default using pseudo-element */
.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px; /* thickness of the indicator */
  background-color: transparent;
  transition: background-color 180ms ease;
}

/* Show top border on hover */
.nav-link:hover::before,
.nav-link:focus::before {
  background-color: #333; /* dark indicator matching text */
}

/* Active link always shows the top border */
.nav-link.active::before,
.nav-link[aria-current="page"]::before {
  background-color: #333;
}

/* Improve focus visibility for keyboard users */
.nav-link:focus {
  outline: 2px solid rgba(0,0,0,0.08);
  outline-offset: 2px;
}

/* Simple fade-in animation for sections */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Ensure carousel items don't shrink */
.carousel-item {
  flex-shrink: 0;
}

/* Ensure logo image has exact requested size */
header img[alt="Pão da Terra logo"] {
  width: 119px !important;
  height: 131px !important;
  object-fit: contain;
}

/* Small responsive tweak so nav links don't overflow */
@media (max-width: 640px) {
  .nav-link {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* Page h3 style — centralized sizes/weight with Playfair font */
.page-h3 {
  font-family: var(--font-playfair);
  font-weight: 600; /* matches font-semibold */
  margin-bottom: 0.5rem; /* mb-2 */
  font-size: 1rem; /* text-md */
  line-height: 1.3;
}

@media (min-width: 768px) {
  .page-h3 {
    font-size: 1.125rem; /* md:text-lg */
  }
}

/* Family section and typography adjustments */
/* Apply Playfair to all headings and Arimo to paragraphs */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-playfair);
}

p {
  font-family: var(--font-arimo);
}

/* Center captions and add spacing specifically for the family grid */
.family-item p {
  /* left align captions and increase gap to image */
  text-align: left;
  font-size: 20px;
  margin-bottom: 1rem;
  font-family: var(--font-arimo);
}

/* Optional h3 adjustments (padding and size) */
#family-grid h3,
h3.page-h3 {
  font-size: 24px;
  font-family: var(--font-playfair);
}

/* Footer hero styling is now inline in the HTML (background-image moved back to the element). */

